Una prenotazione è un appuntamento per uno spazio dell'inventario. Contiene le informazioni necessarie per identificare e fissare l'appuntamento.
// 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; }
Crea una prenotazione
Esistono due modi per creare una prenotazione:
- Una prenotazione può essere creata direttamente da un slot.
- Con il supporto facoltativo di Lease, viene creato un Contratto di cessione per lo Slot e poi finalizzato in una Prenotazione.
Per maggiori dettagli, consulta CreateBooking.
Aggiornare una prenotazione
Una prenotazione può essere aggiornata, ovvero riprogrammata o annullata.
Per informazioni dettagliate, consulta UpdateBooking.
Ottenere lo stato di una prenotazione
Lo stato di una prenotazione (vedi BookingStatus) e lo stato del pagamento anticipato (vedi PrepaymentStatus) possono essere letti tramite GetBookingStatus e ListBookings.