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

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

// 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 วิธีดังนี้

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

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

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

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

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

คุณสามารถอ่านสถานะการจอง (ดูหัวข้อ BookingStatus) และสถานะการชำระเงินล่วงหน้า (ดูหัวข้อ PrepaymentStatus) ของการจองผ่าน GetBookingStatus และ ListBookings