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

الحجز هو موعد لخانات مستودع. ويحتوي على المعلومات اللازمة لتحديد الموعد وإجرائه.

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

Create a booking

تتوفّر طريقتان لإنشاء حجز:

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

لمزيد من التفاصيل، يُرجى الاطّلاع على CreateBooking.

تعديل حجز

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

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

يمكن قراءة حالة الحجز (راجِع BookingStatus) وحالة الدفع المسبق (راجِع PrepaymentStatus) لأحد الحجوزات من خلال GetBookingStatus وListBookings.