Component: DEFAULT_OPENING_HOURS
Abstract
Default opening hours are the “usual” opening hours (as opposed to seasonal opening hours, which override the default if set).
Values for this component can be set via ExperienceComponentsDto.defaultOpeningHours which is of OpeningHoursDto type. Default opening hours are optional (strictly speaking) but in some scenarios it won’t be possible to activate/publish a product if they’re unset.
Set empty timeIntervals in order to erase opening hours for any given day.
Send null value in order to unset any presence of opening hours like so:
{
   ...
   defaultOpeningHours: null,
   ...
}Note: the above has different semantics to omitting defaultOpeningHours; the latter option prevents the system from making any default opening hours changes.
Attributes of OpeningHoursDto
| Attribute JSON path | Data type | Mandatory | Settable | Notes | 
| id | long | Mandatory on update, should be omitted on create | ID of this opening hours object | |
| monday | OpeningHoursWeekdayDto | ✓ | ✓ | Opening hours for Monday | 
| tuesday | OpeningHoursWeekdayDto | ✓ | ✓ | Opening hours for Tuesday | 
| wednesday | OpeningHoursWeekdayDto | ✓ | ✓ | Opening hours for Wednesday | 
| thursday | OpeningHoursWeekdayDto | ✓ | ✓ | Opening hours for Thursday | 
| friday | OpeningHoursWeekdayDto | ✓ | ✓ | Opening hours for Friday | 
| saturday | OpeningHoursWeekdayDto | ✓ | ✓ | Opening hours for Saturday | 
| sunday | OpeningHoursWeekdayDto | ✓ | ✓ | Opening hours for Sunday | 
Attributes of OpeningHoursWeekdayDto
| Attribute JSON path | Data type | Mandatory | Settable | Notes | 
| open24Hours | boolean | ✓ | ✓ | Whether premises are open 24hr/day | 
| timeIntervals | Array of  OpeningHoursTimeIntervalDtos | Mandatory if  open24Hoursis false. Empty array is OK, in which case it means that given day is closed for business | ✓ | What are the working intervals (if not open 24 hours).
Note: omitting pre-existing entry/ies on update operation will result removal of said interval | 
Attributes of OpeningHoursTimeIntervalDto
| Attribute JSON path | Data type | Mandatory | Settable | Notes | 
| id | long | Mandatory on update, should be omitted on create | ID of opening hours time interval object | |
| openFrom | LocalTimeDto | ✓ | ✓ | When does the opening interval start? | 
| openForHours | int | ✓ | ✓ | How many hours open since  openFrom. This is added toopenFromalong withopenForMinutesto get the closing time | 
| openForMinutes | int | ✓ | ✓ | Specifies for how many minutes this facility is open. This is added to  openFromalong withopenForHoursto get the closing time | 
            Did this answer your question?
          
 
              😞
            
              😐
            
              🤩