অনুরোধ
বুকিং অনুরোধ তৈরি করুন
ফেরত মান
CreateBookingResponse সম্পর্কে
পার্শ্ব প্রতিক্রিয়া
CreateBooking একটি লিজ ব্যবহার করে, যা পরবর্তী বুকিংয়ের জন্য এটিকে অবৈধ করে তোলে।
ক্যানোনিকাল জিআরপিসি ত্রুটি কোডগুলি
-
INVALID_ARGUMENTযদি প্রদত্ত ClientInformation অবৈধ হয়, যেমন ক্ষেত্র অনুপস্থিত থাকার কারণে - প্রদত্ত লিজ আইডি বৈধ না হলে
NOT_FOUND। -
RESOURCE_EXHAUSTED(যদি লিজ তৈরির পর থেকে স্লটটি অনুপলব্ধ থাকে, যেমন একটি বিরোধপূর্ণ বুকিংয়ের কারণে) -
ALREADY_EXISTS(যদি ক্লায়েন্টের ইতিমধ্যেই স্লটের জন্য বুকিং থাকে)
// Request to create a [ext.maps.booking.partner.v0.Booking] for an inventory // slot. Consumes the lease. message CreateBookingRequest { option features.(pb.java).nest_in_file_class = YES; // 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 { option features.(pb.java).nest_in_file_class = YES; // 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; }