Name | Type | Description | Notes |
---|---|---|---|
OpenPeriodType | string | The period type for when the outlet is open. - OpenPeriod = open only in given periods - OpenAllDay = open 24 hours - CloseAllDay = closed 24 hours | |
Periods | Pointer to []OpenPeriod | An array of open periods. Only required when `openPeriodType` is OpenPeriod | [optional] |
func NewServiceHour(openPeriodType string, ) *ServiceHour
NewServiceHour instantiates a new ServiceHour object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewServiceHourWithDefaults() *ServiceHour
NewServiceHourWithDefaults instantiates a new ServiceHour object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *ServiceHour) GetOpenPeriodType() string
GetOpenPeriodType returns the OpenPeriodType field if non-nil, zero value otherwise.
func (o *ServiceHour) GetOpenPeriodTypeOk() (*string, bool)
GetOpenPeriodTypeOk returns a tuple with the OpenPeriodType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ServiceHour) SetOpenPeriodType(v string)
SetOpenPeriodType sets OpenPeriodType field to given value.
func (o *ServiceHour) GetPeriods() []OpenPeriod
GetPeriods returns the Periods field if non-nil, zero value otherwise.
func (o *ServiceHour) GetPeriodsOk() (*[]OpenPeriod, bool)
GetPeriodsOk returns a tuple with the Periods field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ServiceHour) SetPeriods(v []OpenPeriod)
SetPeriods sets Periods field to given value.
func (o *ServiceHour) HasPeriods() bool
HasPeriods returns a boolean if a field has been set.