Metodo ListBookings

Richiedi

ListBookingsRequest

Valore restituito

ListBookingsResponse

Deve restituire solo le prenotazioni future per un utente, non le prenotazioni per tutto il tempo.

Codici di errore gRPC canonici

  • NOT_FOUND (se l'ID utente richiesto non è noto 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;
}