预订规范
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
为了完成预约,系统会将“租借”转换为“预订”。仅在此阶段传输执行预订操作的客户端(用户)的相关信息。使用“租借”创建一次预订后,相应“租借”便无法再用于创建其他预订。
// 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;
}
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\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```"]]