مواصفات الحجز

الحجز هو موعد للحصول على خانة مخزون. يحتوي على المعلومات اللازمة لتحديد الموعد وحجزه.

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

Create a booking

هناك طريقتان لإنشاء حجز:

  • يمكن إنشاء حجز مباشرةً من الخانة.
  • مع الدعم الاختياري للإيجار، يتم إنشاء عقد الإيجار للخانة أولاً، ثم يتم الانتهاء منه ليصبح حجزًا.

راجِع CreateBooking للحصول على التفاصيل.

تعديل حجز

يمكن تعديل الحجز، أي إعادة جدولته أو إلغاؤه.
يمكنك الاطّلاع على UpdateBooking للحصول على التفاصيل.

الحصول على حالة الحجز

يمكن الاطّلاع على حالة الحجز (يُرجى الاطّلاع على BookingStatus) وحالة الدفع المُسبق (اطّلِع على PrepaymentStatus) للحجز من خلال GetBookingStatus وListBookings.