מפרט הזמנות

'הזמנה' היא פגישה למשבצת מלאי. בהודעה יש את המידע הנחוץ לזיהוי ולקביעת הפגישה.

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

יצירת הזמנה

יש שתי דרכים ליצור הזמנה:

  • אפשר ליצור הזמנה ישירות ממשבצת.
  • עם תמיכה אופציונלית בחכירה, קודם כול נוצר חכירה עבור יחידת הקיבולת (Slot) ולאחר מכן מסתיים בתהליך הזמנה.

פרטים נוספים זמינים במאמר CreateBooking.

עדכון הזמנה

אפשר לעדכן הזמנה, למשל לדחות אותה או לבטל אותה.
פרטים נוספים זמינים במאמר UpdateBooking.

הצגת הסטטוס של הזמנה

אפשר לקרוא את סטטוס ההזמנה (מידע נוסף: BookingStatus) וסטטוס התשלום מראש (מידע נוסף: PrepaymentStatus) לגבי ההזמנה: GetBookingStatus ו-ListBookings.