Método ListBookings
Este método muestra las reservas futuras de un usuario en cualquier comercio. No debe mostrar reservas anteriores ni canceladas.
Solicitud
ListBookingsRequest
Valor que se muestra
ListBookingsResponse
// Request to list all bookings for a user
message ListBookingsRequest {
// ID of the user (required)
string user_id = 1;
}
// Response for the ListBookings RPC with all bookings for the requested user.
message ListBookingsResponse {
// All bookings of the user (required)
repeated Booking bookings = 1;
}
Salvo que se indique lo contrario, el contenido de esta página está sujeto a la licencia Atribución 4.0 de Creative Commons, y los ejemplos de código están sujetos a la licencia Apache 2.0. Para obtener más información, consulta las políticas del sitio de Google Developers. Java es una marca registrada de Oracle o sus afiliados.
Última actualización: 2024-11-26 (UTC)
[null,null,["Última actualización: 2024-11-26 (UTC)"],[[["The `ListBookings` method retrieves a user's future bookings at any merchant, excluding past or cancelled bookings."],["The request message, `ListBookingsRequest`, requires the user's ID."],["The response message, `ListBookingsResponse`, provides a list of the user's bookings in the `bookings` field."]]],["The `ListBookingsRequest` retrieves a user's future bookings, excluding past or cancelled ones, by utilizing a required `user_id`. The `ListBookingsResponse` returns a list of `Booking` objects, representing all future bookings associated with the specified user. The response contains a repeated `bookings` field, which is mandatory.\n"]]