מפרט ההזמנה

הזמנה היא פגישה לשימוש בזמן פרסום. הוא מכיל את המידע הנדרש לזיהוי ולקביעת הפגישה.

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

יצירת הזמנה

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

  • אפשר ליצור הזמנה ישירות ממשבצת.
  • בתמיכה אופציונלית ב-Lease, המערכת יוצרת קודם Lease עבור המרווח ואז הופכת אותו להזמנה.

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

עדכון הזמנה

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

אחזור סטטוס של הזמנה

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