Metodo ListBookings

Richiedi

Richiesta di prenotazione di un elenco

Valore restituito

Risposta ListBookings

Questa operazione deve restituire solo le prenotazioni future per un utente, non quelle per tutta la durata.

Codici di errore gRPC canonici

  • NOT_FOUND (se l'ID utente richiesto è sconosciuto al partner)
// Request to list all upcoming bookings for a user
message ListBookingsRequest {
  // ID of the user (required)
  string user_id = 1;
}

// Response for the [ext.maps.booking.partner.v2.ListBookings] RPC with all
// upcoming bookings for the requested user
message ListBookingsResponse {
  // All bookings of the user (required)
  repeated Booking bookings = 1;
}