সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
অনুরোধ
বুকিং রিকোয়েস্ট তৈরি করুন
রিটার্ন মান
বুকিং রেসপন্স তৈরি করুন
পার্শ্বপ্রতিক্রিয়া
CreateBooking একটি ইজারা গ্রহণ করে, এটিকে পরবর্তী বুকিংয়ের জন্য অবৈধ করে।
ক্যানোনিকাল gRPC ত্রুটি কোড
INVALID_ARGUMENT যদি প্রদত্ত ক্লায়েন্ট তথ্য অবৈধ হয়, যেমন অনুপস্থিত ক্ষেত্রগুলির কারণে
NOT_FOUND যদি প্রদত্ত লিজ আইডি বৈধ না হয়।
RESOURCE_EXHAUSTED (যদি লিজ তৈরির পর থেকে স্লটটি অনুপলব্ধ হয়ে থাকে, যেমন একটি বিরোধপূর্ণ বুকিংয়ের কারণে)
ALREADY_EXISTS (যদি ক্লায়েন্টের ইতিমধ্যেই স্লটের জন্য বুকিং থাকে)
// 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;}
[[["সহজে বোঝা যায়","easyToUnderstand","thumb-up"],["আমার সমস্যার সমাধান হয়েছে","solvedMyProblem","thumb-up"],["অন্যান্য","otherUp","thumb-up"]],[["এতে আমার প্রয়োজনীয় তথ্য নেই","missingTheInformationINeed","thumb-down"],["খুব জটিল / অনেক ধাপ","tooComplicatedTooManySteps","thumb-down"],["পুরনো","outOfDate","thumb-down"],["অনুবাদ সংক্রান্ত সমস্যা","translationIssue","thumb-down"],["নমুনা / কোড সংক্রান্ত সমস্যা","samplesCodeIssue","thumb-down"],["অন্যান্য","otherDown","thumb-down"]],["2024-11-26 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["The `CreateBooking` API creates a booking for an inventory slot using a provided lease, client, payment, and payment processing information."],["If successful, it returns the created booking and potentially updated user payment information, consuming the initial lease."],["Potential errors include invalid client data, invalid lease ID, slot unavailability due to conflict or if the client already has a booking for the given slot."],["`CreateBookingRequest` contains lease, client, payment, and processing details, while `CreateBookingResponse` returns the booking and user payment information."]]],["The `CreateBookingRequest` message initiates a booking, consuming a lease and requiring `LeaseReference`, `ClientInformation`, and `PaymentInformation`. A successful request returns a `CreateBookingResponse` containing the `Booking` details and potentially an updated `UserPaymentOption`. Side effects include lease invalidation. Errors include `INVALID_ARGUMENT` (invalid client info), `NOT_FOUND` (invalid lease), `RESOURCE_EXHAUSTED` (slot unavailable), and `ALREADY_EXISTS` (existing booking). The request also includes optional `PaymentProcessingParameters` for partner-processed payments.\n"]]