Метод GetBookingStatus
Оптимизируйте свои подборки
Сохраняйте и классифицируйте контент в соответствии со своими настройками.
Запрос
GetBookingStatusRequest
Возвращаемое значение
GetBookingStatusResponse
Канонические коды ошибок gRPC
-
NOT_FOUND
(если предоставленный идентификатор бронирования неизвестен партнеру)
// Request to get booking status and prepayment status for a
// [ext.maps.booking.partner.v2.Booking]
message GetBookingStatusRequest {
// ID of the existing booking (required)
string booking_id = 1;
}
// Response for the [ext.maps.booking.partner.v2.GetBookingStatus] RPC with
// booking status and prepayment status
message GetBookingStatusResponse {
// ID of the booking (required)
string booking_id = 1;
// Status of the booking (required)
BookingStatus booking_status = 2;
// Prepayment status of the booking (required)
PrepaymentStatus prepayment_status = 3;
}
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2025-07-24 UTC.
[null,null,["Последнее обновление: 2025-07-24 UTC."],[[["\u003cp\u003e\u003ccode\u003eGetBookingStatusRequest\u003c/code\u003e retrieves the status and prepayment status of a booking using the booking ID.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGetBookingStatusResponse\u003c/code\u003e returns the booking ID, booking status (\u003ccode\u003eBookingStatus\u003c/code\u003e), and prepayment status (\u003ccode\u003ePrepaymentStatus\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eIf the booking ID is not found, a \u003ccode\u003eNOT_FOUND\u003c/code\u003e error is returned.\u003c/p\u003e\n"]]],["The `GetBookingStatusRequest` requires a `booking_id` to retrieve booking information. The `GetBookingStatusResponse` returns the `booking_id`, the `booking_status`, and the `prepayment_status`. A `NOT_FOUND` error is returned if the provided `booking_id` is not recognized. This interaction allows partners to check the status and prepayment status of a booking by its ID.\n"],null,["# GetBookingStatus method\n\n**Request**\n\nGetBookingStatusRequest\n\n**Return value**\n\nGetBookingStatusResponse\n\n**Canonical gRPC error codes**\n\n- `NOT_FOUND` (if the provided booking ID is unknown to the partner)\n\n```scilab\n// Request to get booking status and prepayment status for a\n// [ext.maps.booking.partner.v2.Booking]\nmessage GetBookingStatusRequest {\n // ID of the existing booking (required)\n string booking_id = 1;\n}\n\n// Response for the [ext.maps.booking.partner.v2.GetBookingStatus] RPC with\n// booking status and prepayment status\nmessage GetBookingStatusResponse {\n // ID of the booking (required)\n string booking_id = 1;\n\n // Status of the booking (required)\n BookingStatus booking_status = 2;\n\n // Prepayment status of the booking (required)\n PrepaymentStatus prepayment_status = 3;\n}\n```"]]