Store Opening Times

A single entry of availabilities looks like the code snippet below.

{
    "dayOfWeek": 1,
    "startTime": "13:00",
    "endTime": "21:30"
}

For a single entry, the fields are dayOfWeek, startTime, and endTime. An explanation of their use is in the table below.

FieldUseType
dayOfWeekAn integer value that indicates the day of the week for this availability (starting at 1 for Monday).integer
startTimeA 24-hour HH:MM format notation of the start time of an availability.string
endTimeA 24-hour HH:MM format notation of the end time of an availability.string

📘

Menu Availability vs Busy Mode

The availabilities of a menu should be reflected in the opening hours set per store. This should work in conjunction with stores being closed temporarily i.e. ordering from a menu should not be possible when the store is set to a 'PAUSED' status via 'Busy Mode'..

It should be clear to customers where ordering isn't possible if this is due to being outside the store's opening hours or if the store has been temporarily closed.

Day of weekInteger value
Monday1
Tuesday2
Wednesday3
Thursday4
Friday5
Saturday6
Sunday7

See below an example entry of availabilities.

"availabilities": [
    {
        "dayOfWeek": 1,
        "endTime": "17:00",
        "startTime": "09:00"
    },
    {
        "dayOfWeek": 2,
        "endTime": "17:00",
        "startTime": "09:00"
    },
    {
        "dayOfWeek": 3,
        "endTime": "17:00",
        "startTime": "09:00"
    },
    {
        "dayOfWeek": 4,
        "endTime": "17:00",
        "startTime": "09:00"
    },
    {
        "dayOfWeek": 5,
        "endTime": "17:00",
        "startTime": "09:00"
    },
    {
        "dayOfWeek": 6,
        "endTime": "17:00",
        "startTime": "09:00"
    },
    {
        "dayOfWeek": 6,
        "endTime": "22:00",
        "startTime": "19:00"
    },
    {
        "dayOfWeek": 7,
        "endTime": "17:00",
        "startTime": "09:00"
    }
],