مشخصات رزرو
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
رزرو یک قرار ملاقات برای یک اسلات موجودی است. این شامل اطلاعات مورد نیاز برای شناسایی و تعیین قرار ملاقات است.
// A booking for an inventory slot
message Booking {
// ID of this booking (required)
string booking_id = 1;
// The appointment slot of this booking (required for CreateBooking and
// UpdateBooking:modify, but not UpdateBooking:cancel)
Slot slot = 2;
// Personal information of the user making the appointment (required for
// CreateBooking)
UserInformation user_information = 3;
// Status of the booking (required for CreateBooking and UpdateBooking:cancel,
// but not UpdateBooking:modify)
BookingStatus status = 4;
// Information about payment transactions that relate to the booking.
// (optional)
PaymentInformation payment_information = 5;
// Information about virtual session related to this booking. (optional)
VirtualSessionInfo virtual_session_info = 6;
}
رزرو ایجاد کنید
دو راه برای ایجاد رزرو وجود دارد:
- یک رزرو را می توان مستقیماً از یک اسلات ایجاد کرد.
- با پشتیبانی اختیاری Lease ، ابتدا یک اجاره نامه برای اسلات ایجاد می شود و سپس به صورت رزرو نهایی می شود.
برای جزئیات بیشتر به CreateBooking مراجعه کنید.
یک رزرو را به روز کنید
یک رزرو را می توان به روز کرد، به عنوان مثال، زمان بندی مجدد یا لغو کرد.
برای جزئیات به UpdateBooking مراجعه کنید.
برای رزرو وضعیت دریافت کنید
وضعیت رزرو (به وضعیت رزرو مراجعه کنید) و وضعیت پیش پرداخت (به وضعیت پیش پرداخت ) یک رزرو را می توان از طریق GetBookingStatus و ListBookings خواند.
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003eA Booking represents an appointment for an inventory slot and contains details like user information, booking status, and payment information.\u003c/p\u003e\n"],["\u003cp\u003eBookings can be created directly from a Slot or by finalizing a Lease.\u003c/p\u003e\n"],["\u003cp\u003eExisting Bookings can be updated to reschedule or cancel them.\u003c/p\u003e\n"],["\u003cp\u003eBooking status and Prepayment status can be retrieved using GetBookingStatus and ListBookings methods.\u003c/p\u003e\n"]]],["A `Booking` represents an appointment for an inventory slot and includes a `booking_id`, `slot`, `user_information`, `status`, and optional `payment_information` and `virtual_session_info`. Bookings are created from a `Slot`, or optionally via a `Lease`. Bookings can be updated, meaning they can be rescheduled or canceled. The booking's status, and optionally its prepayment status, can be retrieved via `GetBookingStatus` or `ListBookings`. The method `CreateBooking` is used to create a Booking, and `UpdateBooking` to update it.\n"],null,["# Booking specification\n\nA Booking is an appointment for an inventory slot. It contains the information\nneeded to identify and make the appointment. \n\n```scilab\n// A booking for an inventory slot\nmessage Booking {\n // ID of this booking (required)\n string booking_id = 1;\n\n // The appointment slot of this booking (required for CreateBooking and\n // UpdateBooking:modify, but not UpdateBooking:cancel)\n Slot slot = 2;\n\n // Personal information of the user making the appointment (required for\n // CreateBooking)\n UserInformation user_information = 3;\n\n // Status of the booking (required for CreateBooking and UpdateBooking:cancel,\n // but not UpdateBooking:modify)\n BookingStatus status = 4;\n\n // Information about payment transactions that relate to the booking.\n // (optional)\n PaymentInformation payment_information = 5;\n\n // Information about virtual session related to this booking. (optional)\n VirtualSessionInfo virtual_session_info = 6;\n}\n```\n\nCreate a booking\n----------------\n\nThere are two ways to create a Booking:\n\n- A Booking can be created directly from a [Slot](/actions-center/reference/grpc-api-v2/slot-specification).\n- With optional support of [Lease](/actions-center/reference/grpc-api-v2/lease-specification), a Lease is created for the Slot first and then finalized into a Booking.\n\nSee [CreateBooking](/actions-center/reference/grpc-api-v2/createbooking-method)\nfor details.\n\nUpdate a booking\n----------------\n\nA Booking can be updated, i.e., rescheduled or cancelled. \n\nSee [UpdateBooking](/actions-center/reference/grpc-api-v2/updatebooking-method)\nfor details.\n\nGet status for a booking\n------------------------\n\nBooking status (see\n[BookingStatus](/actions-center/reference/grpc-api-v2/booking-status-specification))\nand Prepayment status (see\n[PrepaymentStatus](/actions-center/reference/grpc-api-v2/payment-specification))\nof a Booking can be read via\n[GetBookingStatus](/actions-center/reference/grpc-api-v2/getbookingstatus-method)\nand [ListBookings](/actions-center/reference/grpc-api-v2/listbookings-method)."]]