هناك العديد من الحالات التي يريد فيها التاجر حجز خدمات أو
خانات محدّدة قبل وقت قصير. ويمكن ضبط هذه الإعدادات على مستوى
الخدمة و/أو على مستوى مدى التوفّر. وفي حال ضبطه على كلا المستويَين، سيتم استخدام الإعداد
على مستوى مدى التوفّر.
تعريف مستوى الخدمة
في
مستوى الخدمة، يُسمى الحقل rules.min_advance_booking. يجب ضبط هذا الحقل
على عدد الثواني قبل بدء الحجز
التي يجب إجراء الحجز خلالها. على سبيل المثال، إذا كان يجب إجراء الحجز دائمًا
قبل ساعة واحدة من وقت البدء، سيتم ضبط هذا الحقل على
3600 (لذا يمكن حجز موعد في الساعة 3 مساءً حتى الساعة 2 مساءً). وينطبق ذلك على
جميع الفتحات لهذه الخدمة (ما لم يتم إلغاؤه من خلال تعريف مستوى الفتحة).
تاريخ التعديل الأخير: 2024-11-26 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2024-11-26 (حسب التوقيت العالمي المتفَّق عليه)"],[[["Merchants can set minimum advanced booking times for services or specific time slots."],["Service-level settings use `rules.min_advance_booking` to define the minimum booking time in seconds before the start time."],["Slot-level settings utilize `scheduling_rule_overrides.last_bookable_sec` to specify the last bookable time for individual slots using an EPOCH timestamp."],["Implementing advance booking limits in feeds requires additional checks within your booking system to ensure the booking is within the allowed window and handle potential booking failures."]]],["Merchants can set a minimum time for advance bookings at either the service or availability slot level. The service level uses `rules.min_advance_booking` (in seconds), affecting all slots unless overridden. The slot level utilizes `scheduling_rule_overrides.last_bookable_sec` (EPOCH timestamp), specific to each slot. If both are set, the slot level takes precedence. It's crucial to validate the booking window during booking requests and reject those outside it with `SLOT_UNAVAILABLE`.\n"]]