요청
CreateBookingRequest
반환값
CreateBookingResponse
부작용
CreateBooking은 임대를 사용하고 향후 예약에 유효하지 않은 것으로 렌더링합니다.
표준 gRPC 오류 코드
INVALID_ARGUMENT
: 제공된 ClientInformation이 잘못된 경우(예: 필드 누락으로 인해)NOT_FOUND
: 제공된 임대 ID가 유효하지 않은 경우RESOURCE_EXHAUSTED
: 임대를 만들어 시간대가 예약 불가능하게 된 경우(예: 예약 충돌로 인해)ALREADY_EXISTS
: 고객이 이미 시간대에 예약한 경우
// Request to create a [ext.maps.booking.partner.v0.Booking] for an inventory // slot. Consumes the lease. message CreateBookingRequest { // The lease that is being confirmed to make this booking LeaseReference lease_ref = 1; // Personal information of the client making the appointment ClientInformation client_information = 2; // Information about payments. If the booking request does not succeed, // payment authorizations are automatically canceled. PaymentInformation payment_information = 3; // The parameters to be used if the payment is processed by the partner // (i.e. payment_information.payment_processed_by is equal to // PROCESSED_BY_PARTNER). PaymentProcessingParameters payment_processing_parameters = 4; } // Response with the created [ext.maps.booking.partner.v0.Booking] for an // inventory slot message CreateBookingResponse { // The created booking Booking booking = 1; // The updated user payment option used in this booking. // If a new payment option was purchased to pay for the booking, this should // be a newly created user payment option. // If an already purchased user payment option was used for this booking, // this should reflect an updated version of that user payment option. UserPaymentOption user_payment_option = 2; }