هناك العديد من الحالات التي يريد فيها التاجر حجز خدمات أو
خانات محدّدة قبل وقت قصير. ويمكن ضبط هذه الإعدادات على مستوى
الخدمة و/أو على مستوى مدى التوفّر. وفي حال ضبطه على كلا المستويَين، سيتم استخدام الإعداد
على مستوى مدى التوفّر.
تعريف مستوى الخدمة
في
مستوى الخدمة، يُسمى الحقل rules.min_advance_booking. يجب ضبط هذا الحقل
على عدد الثواني قبل بدء الحجز
التي يجب إجراء الحجز خلالها. على سبيل المثال، إذا كان يجب إجراء الحجز دائمًا
قبل ساعة واحدة من وقت البدء، سيتم ضبط هذا الحقل على
3600 (لذا يمكن حجز موعد في الساعة 3 مساءً حتى الساعة 2 مساءً). وينطبق ذلك على
جميع الفتحات لهذه الخدمة (ما لم يتم إلغاؤه من خلال تعريف مستوى الفتحة).
تاريخ التعديل الأخير: 2024-11-26 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2024-11-26 (حسب التوقيت العالمي المتفَّق عليه)"],[[["Merchants can set a minimum advance booking time for services, ensuring bookings are made within a specified timeframe before the service start time."],["This can be configured at the service level (affecting all slots) or at the individual slot level, offering flexibility in setting booking windows."],["Service-level settings use `rules.min_advance_booking` (in seconds), while slot-level settings use `scheduling_rule_overrides.last_bookable_sec` (as an EPOCH timestamp)."],["Merchants still need to validate booking requests against the booking window on their end and handle potential booking failures appropriately, as feed-based limits might not cover all edge cases."]]],["Merchants can set minimum advanced booking times for services or slots. At the service level, the `rules.min_advance_booking` field specifies the minimum seconds needed before a reservation's start time. At the slot level, `scheduling_rule_overrides.last_bookable_sec` defines the last bookable time via an epoch timestamp. If both are set, the slot-level rule takes precedence. Regardless of feed settings, the booking system must validate booking windows upon receiving a `CreateBooking` request and respond with `SLOT_UNAVAILABLE` if the booking is outside the allowed window.\n"]]