A multi-use object that is used to:
A Schedule
object defines a set of days of the week and a set of time ranges for those days. Days that have identical time ranges are grouped into a single Schedule
object, for example, MONDAY, TUESDAY, WEDNESDAY, THURSDAY, and FRIDAY in the example below have identical time ranges and are in the same Schedule
object while SATURDAY and SUNDAY are in a separate Schedule
object because their time ranges differ from the weekday time ranges.
"availability": {
"alwaysAvailable": false,
"schedule": [
{
"days": [
"MONDAY",
"TUESDAY",
"WEDNESDAY",
"THURSDAY"
],
"timeRanges": [
{
"start": "09:00",
"end": "18:00"
}
]
},
{
"days": [
"FRIDAY",
"SATURDAY"
],
"timeRanges": [
{
"start": "09:00",
"end": "18:00"
},
{
"start": "20:00",
"end": "23:00"
}
]
}
]
}
Time ranges are in 24-hour HH:MM format.
If a day is not represented in the Schedule
objects, the menu or time-specific price is not available on that day.
days | Array of strings An array of days of the week that are associated with identical time ranges. The time ranges are defined in a corresponding |
Array of objects (TimeRange) An array of |
{- "days": [
- "SUNDAY"
], - "timeRanges": [
- {
- "start": "string",
- "end": "string"
}
]
}