ข้อกำหนดการจอง

หากต้องการสรุปการนัดหมาย ระบบจะแปลงสัญญาเช่าเป็นการจอง ระบบจะโอนข้อมูล เกี่ยวกับไคลเอ็นต์ (ผู้ใช้) ที่ทำการจองในขั้นตอนนี้เท่านั้น หลังจากใช้สัญญาเช่าเพื่อสร้างการจองแล้ว สัญญาเช่าจะถูกยกเลิกและนำไปใช้สร้างการจองอื่นๆ ไม่ได้

// A booking for an inventory slot
message Booking {
  option features.(pb.java).nest_in_file_class = YES;

  // 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;
}