Método ListBookings

Solicitação

ListBookingsRequest

Valor de retorno

ListBookingsResponse

Esse método precisa retornar apenas os agendamentos futuros de um usuário, não todos que foram feitos.

Códigos de erro canônicos de gRPC

  • NOT_FOUND (se o parceiro desconhecer o ID do usuário solicitado)
// 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;
}