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 slotmessageBooking{// ID of this bookingstringbooking_id=1;// ID of the merchant for the slotstringmerchant_id=2;// ID of the merchant servicestringservice_id=3;// Start time of the appointment slotgoogle.protobuf.Timestampstart_time=4;// Duration of the appointment slotgoogle.protobuf.Durationduration=5;// Personal information of the client making the appointmentClientInformationclient_information=6;// Status of the bookingBookingStatusstatus=7;// Information about payment transactions that relate to the booking.PaymentInformationpayment_information=8;// Information about virtual session related to this booking. (optional)VirtualSessionInfovirtual_session_info=9;}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["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```"]]