Booking specification
Stay organized with collections
Save and categorize content based on your preferences.
To finalize an appointment, a Lease is converted into a Booking. Information
about the client (user) making the booking is only transferred at this stage.
After a Lease has been used once to create a Booking, it is retired and cannot
be used to create any further bookings.
// 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;
}
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-20 UTC.
[null,null,["Last updated 2025-05-20 UTC."],[[["\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```"]]