מפרט ההזמנה

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

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

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

יצירת הזמנה

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

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

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

עדכון הזמנה

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

איך בודקים את הסטטוס של הזמנה

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