مشخصات رزرو
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
برای نهایی کردن یک قرار ملاقات، اجاره نامه به رزرو تبدیل می شود. اطلاعات مربوط به مشتری (کاربر) که رزرو را انجام می دهد فقط در این مرحله منتقل می شود. پس از اینکه اجاره نامه یک بار برای ایجاد یک رزرو استفاده شد، بازنشسته می شود و نمی توان از آن برای ایجاد رزرو بیشتر استفاده کرد.
// A booking for an inventory slot
message Booking {
// ID of this booking
string booking_id = 1;
// ID of the merchant for the slot
string merchant_id = 2;
// ID of the merchant service
string service_id = 3;
// Start time of the appointment slot
google.protobuf.Timestamp start_time = 4;
// Duration of the appointment slot
google.protobuf.Duration duration = 5;
// Personal information of the client making the appointment
ClientInformation client_information = 6;
// Status of the booking
BookingStatus status = 7;
// Information about payment transactions that relate to the booking.
PaymentInformation payment_information = 8;
// Information about virtual session related to this booking. (optional)
VirtualSessionInfo virtual_session_info = 9;
}
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003eA \u003ccode\u003eBooking\u003c/code\u003e represents a finalized appointment and is created from a \u003ccode\u003eLease\u003c/code\u003e, transferring client information during this conversion.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eLease\u003c/code\u003e objects are retired after generating one \u003ccode\u003eBooking\u003c/code\u003e, preventing their reuse for further appointment scheduling.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eBooking\u003c/code\u003e includes details like booking ID, merchant and service IDs, appointment time, duration, client information, booking status, payment details, and optional virtual session data.\u003c/p\u003e\n"]]],["A Lease is transformed into a Booking to confirm an appointment. Client details are transferred during this conversion. Once a Lease is used for a Booking, it becomes inactive. A Booking record includes a unique ID, merchant and service identifiers, start time, duration, client information, booking status, payment details, and optional virtual session information.\n"],null,["# Booking specification\n\nTo finalize an appointment, a Lease is converted into a Booking. Information\nabout the client (user) making the booking is only transferred at this stage.\nAfter a Lease has been used once to create a Booking, it is retired and cannot\nbe used to create any further bookings. \n\n```scilab\n// A booking for an inventory slot\nmessage Booking {\n // ID of this booking\n string booking_id = 1;\n\n // ID of the merchant for the slot\n string merchant_id = 2;\n\n // ID of the merchant service\n string service_id = 3;\n\n // Start time of the appointment slot\n google.protobuf.Timestamp start_time = 4;\n\n // Duration of the appointment slot\n google.protobuf.Duration duration = 5;\n\n // Personal information of the client making the appointment\n ClientInformation client_information = 6;\n\n // Status of the booking\n BookingStatus status = 7;\n\n // Information about payment transactions that relate to the booking.\n PaymentInformation payment_information = 8;\n\n // Information about virtual session related to this booking. (optional)\n VirtualSessionInfo virtual_session_info = 9;\n}\n```"]]