تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
يستخدم العميل UpdateBooking لتعديل حجز حالي أو إلغائه.
إذا تعذّر تعديل حجز بسبب أي خطأ في منطق النشاط التجاري، يجب أن يتم
ملء الخطأ في الاستجابة. اطّلِع على تعذُّر
الحجز للحصول على
معلومات تفصيلية.
الطلب
UpdateBookingRequest
تحتوي رسالة الطلب على معلومات معدَّلة في حقل الحجز، وتسرد
مسارات جميع حقول الحجز التي سيتم تعديلها في حقل update_mask. على سبيل المثال، يحتوي الحقل update_mask لطلب يعيد جدولة حجز حالي على المسارين التاليين:
INVALID_ARGUMENT (إذا كانت قناع الحقل المقدَّم يحتوي على قيم غير صالحة أو كانت أيًا من
حقول الحجز المعدَّلة غير صالحة)
NOT_FOUND (إذا كان رقم تعريف الحجز المقدَّم غير معروف للشريك)
// Request to update a [ext.maps.booking.partner.v2.Booking]messageUpdateBookingRequest{// Field mask of all booking fields to be updated (optional)google.protobuf.FieldMaskupdate_mask=1;// The booking to be updated// The following fields can be set in a booking:// - status, to cancel a booking.// - one of the following is required:// - start_time AND duration in the slot, to reschedule a booking.// - party_size (for dining reservations).Bookingbooking=2;}// Response with the updated [ext.maps.booking.partner.v2.Booking]messageUpdateBookingResponse{// The updated booking (required)Bookingbooking=1;// The updated user payment option originally used to pay for this booking.// This should be set if the UpdateBookingRequest results in a change to// the UserPaymentOption.// For instance, if the booking is canceled, the UserPaymentOption should// reflect an additional credit to the user. In the case of a multi-use// payment option, the current_count should be increased by one to// allow the user to create another booking with this payment option. In the// case of a single-use payment option, a new single-use user payment option// should be returned. (required if altered in update)UserPaymentOptionuser_payment_option=2;// If updating a booking fails, this field should reflect the business logic// error (e.g., booking is not cancellable) (required if failure occurs)BookingFailurebooking_failure=3;}
تاريخ التعديل الأخير: 2025-05-24 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","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"]],["تاريخ التعديل الأخير: 2025-05-24 (حسب التوقيت العالمي المتفَّق عليه)"],[[["`UpdateBooking` enables clients to modify or cancel existing bookings by specifying updated fields and an `update_mask`."],["The request must contain a `Booking` object with desired changes and a `FieldMask` indicating which fields are being updated."],["Potential errors include `INVALID_ARGUMENT` for incorrect requests and `NOT_FOUND` if the booking ID is invalid."],["The response returns an updated `Booking` object, potentially a modified `UserPaymentOption`, or a `BookingFailure` if the update fails."],["Rescheduling requires updating `start_time` and `duration` within the `slot` field, while cancellations involve updating the `status` field."]]],["The `UpdateBooking` function modifies existing bookings. A request includes the updated booking details and a field mask specifying which fields to change, such as `slot.start_time` and `slot.duration` for rescheduling. The response returns the updated booking and may include a modified `UserPaymentOption` or a `BookingFailure` for business logic errors. Possible errors include `INVALID_ARGUMENT` for invalid fields or `NOT_FOUND` for an unknown booking ID. The status can be updated to cancel a booking.\n"]]