Purpose
Set opening hours for a given location and/or apply unique opening hours per channel(s) within a location.
Format
Opening hours are defined as time ranges specified for a given weekday (dayOfWeek), and multiple non-overlapping ranges can be defined for the same day. Time ranges must not overlap. Opening hours can be set independently at two levels: within "locations": [] for the location itself, and within "channels": [] for individual channels.
Publish Opening Hours
When opening hours are updated to Deliverect, these will be communicated to ordering platforms within the next menu publish event. additional attribute triggerUpdate where equal to true will trigger a re-publishing of all existing menus. This will in turn update the opening times on each associated merchant store. If updating the opening hours where no action to publish updates is intended, triggerUpdate should be set as false
Opening times past midnight
Opening hours can't cross midnight in a single time range as each range must stay within one 24hr period. To represent hours that run past midnight, split them into two entries.
As an example, a store opening 10am–2am will need two ranges;
1st Range (current day): "startTime": "10:00" → "endTime": "23:59"
2nd Range (next day): "startTime": "00:00" → "endTime": "02:00"
