Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Yêu cầu
CreateBookingRequest
Giá trị trả về
CreateBookingResponse
Tác dụng phụ
CreateĐặt phòng sử dụng một Gói thuê bao, khiến lượt đặt trước đó không hợp lệ đối với mọi lượt đặt phòng tiếp theo.
Mã lỗi gRPC chính tắc
INVALID_ARGUMENT nếu ClientInformation được cung cấp không hợp lệ, ví dụ: do
trường bị thiếu
NOT_FOUND nếu mã cho thuê đã cung cấp không hợp lệ.
RESOURCE_EXHAUSTED (nếu vùng quảng cáo không còn trống kể từ khi tạo
cho thuê, ví dụ: do xung đột đặt chỗ)
ALREADY_EXISTS (nếu khách hàng đã đặt trước cho vùng đó)
// Request to create a [ext.maps.booking.partner.v0.Booking] for an inventory// slot. Consumes the lease.messageCreateBookingRequest{// The lease that is being confirmed to make this bookingLeaseReferencelease_ref=1;// Personal information of the client making the appointmentClientInformationclient_information=2;// Information about payments. If the booking request does not succeed,// payment authorizations are automatically canceled.PaymentInformationpayment_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).PaymentProcessingParameterspayment_processing_parameters=4;}// Response with the created [ext.maps.booking.partner.v0.Booking] for an// inventory slotmessageCreateBookingResponse{// The created bookingBookingbooking=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.UserPaymentOptionuser_payment_option=2;}