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

การจองคือการนัดหมายสําหรับช่วงสินค้าคงคลัง ซึ่งจะมีข้อมูลที่จำเป็นต้องระบุและทำการนัดหมาย

// A booking for an inventory slot
message Booking {
  // ID of this booking (required)
  string booking_id = 1;

  // The appointment slot of this booking (required for CreateBooking and
  // UpdateBooking:modify, but not UpdateBooking:cancel)
  Slot slot = 2;

  // Personal information of the user making the appointment (required for
  // CreateBooking)
  UserInformation user_information = 3;

  // Status of the booking (required for CreateBooking and UpdateBooking:cancel,
  // but not UpdateBooking:modify)
  BookingStatus status = 4;

  // Information about payment transactions that relate to the booking.
  // (optional)
  PaymentInformation payment_information = 5;

  // Information about virtual session related to this booking. (optional)
  VirtualSessionInfo virtual_session_info = 6;
}

ทำการจอง

การสร้างการจองมี 2 วิธีดังนี้

  • คุณสร้างการจองจากสล็อตได้โดยตรง
  • หากมีการสนับสนุนที่ไม่บังคับสำหรับการเช่า ระบบจะสร้างการเช่าสำหรับสล็อตก่อนแล้วจึงสรุปในการจอง

ดูรายละเอียดที่CreateBooking

อัปเดตการจอง

คุณจะอัปเดตการจองได้ เช่น กำหนดเวลาใหม่หรือยกเลิก
ดูรายละเอียดในUpdateBooking

ดูสถานะการจอง

สถานะการจอง (ดู BookingStatus) และสถานะการชำระล่วงหน้า (ดู PrepaymentStatus) ของการจองสามารถอ่านได้ผ่านทาง GetBookingStatus และ ListBookings