Skip to content

Latest commit

 

History

History
218 lines (117 loc) · 6.89 KB

ModifierGroup.md

File metadata and controls

218 lines (117 loc) · 6.89 KB

ModifierGroup

Properties

Name Type Description Notes
Id string The modifier group's ID that is on the partner system. This ID should be unique.
Name string The name of the modifier group.
NameTranslation Pointer to map[string]string Translation of the modifier group name. Only support up to 1 translated language. Refer Menu Translation. [optional]
AvailableStatus string The status for the modifier group. > The item may be marked as `"UNAVAILABLE"` if no available modifier to be selected within the required modifier group where `"selectionRangeMin": 1`.
SelectionRangeMin Pointer to int32 The minimum quantity of the modifiers to be selected. Refer to FAQs for more details about selection range. [optional]
SelectionRangeMax int32 The maximum quantity of the modifiers to be selected. Refer to FAQs for more details about selection range.
Sequence Pointer to int32 The sort or display order of the modifier group within the menu. [optional]
Modifiers Pointer to []MenuModifier An array of modifier JSON objects. Max 100 per modifierGroup. Refer to Modifiers for more information. [optional]

Methods

NewModifierGroup

func NewModifierGroup(id string, name string, availableStatus string, selectionRangeMax int32, ) *ModifierGroup

NewModifierGroup instantiates a new ModifierGroup 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

NewModifierGroupWithDefaults

func NewModifierGroupWithDefaults() *ModifierGroup

NewModifierGroupWithDefaults instantiates a new ModifierGroup 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

GetId

func (o *ModifierGroup) GetId() string

GetId returns the Id field if non-nil, zero value otherwise.

GetIdOk

func (o *ModifierGroup) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetId

func (o *ModifierGroup) SetId(v string)

SetId sets Id field to given value.

GetName

func (o *ModifierGroup) GetName() string

GetName returns the Name field if non-nil, zero value otherwise.

GetNameOk

func (o *ModifierGroup) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetName

func (o *ModifierGroup) SetName(v string)

SetName sets Name field to given value.

GetNameTranslation

func (o *ModifierGroup) GetNameTranslation() map[string]string

GetNameTranslation returns the NameTranslation field if non-nil, zero value otherwise.

GetNameTranslationOk

func (o *ModifierGroup) GetNameTranslationOk() (*map[string]string, bool)

GetNameTranslationOk returns a tuple with the NameTranslation field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetNameTranslation

func (o *ModifierGroup) SetNameTranslation(v map[string]string)

SetNameTranslation sets NameTranslation field to given value.

HasNameTranslation

func (o *ModifierGroup) HasNameTranslation() bool

HasNameTranslation returns a boolean if a field has been set.

GetAvailableStatus

func (o *ModifierGroup) GetAvailableStatus() string

GetAvailableStatus returns the AvailableStatus field if non-nil, zero value otherwise.

GetAvailableStatusOk

func (o *ModifierGroup) GetAvailableStatusOk() (*string, bool)

GetAvailableStatusOk returns a tuple with the AvailableStatus field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetAvailableStatus

func (o *ModifierGroup) SetAvailableStatus(v string)

SetAvailableStatus sets AvailableStatus field to given value.

GetSelectionRangeMin

func (o *ModifierGroup) GetSelectionRangeMin() int32

GetSelectionRangeMin returns the SelectionRangeMin field if non-nil, zero value otherwise.

GetSelectionRangeMinOk

func (o *ModifierGroup) GetSelectionRangeMinOk() (*int32, bool)

GetSelectionRangeMinOk returns a tuple with the SelectionRangeMin field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetSelectionRangeMin

func (o *ModifierGroup) SetSelectionRangeMin(v int32)

SetSelectionRangeMin sets SelectionRangeMin field to given value.

HasSelectionRangeMin

func (o *ModifierGroup) HasSelectionRangeMin() bool

HasSelectionRangeMin returns a boolean if a field has been set.

GetSelectionRangeMax

func (o *ModifierGroup) GetSelectionRangeMax() int32

GetSelectionRangeMax returns the SelectionRangeMax field if non-nil, zero value otherwise.

GetSelectionRangeMaxOk

func (o *ModifierGroup) GetSelectionRangeMaxOk() (*int32, bool)

GetSelectionRangeMaxOk returns a tuple with the SelectionRangeMax field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetSelectionRangeMax

func (o *ModifierGroup) SetSelectionRangeMax(v int32)

SetSelectionRangeMax sets SelectionRangeMax field to given value.

GetSequence

func (o *ModifierGroup) GetSequence() int32

GetSequence returns the Sequence field if non-nil, zero value otherwise.

GetSequenceOk

func (o *ModifierGroup) GetSequenceOk() (*int32, bool)

GetSequenceOk returns a tuple with the Sequence field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetSequence

func (o *ModifierGroup) SetSequence(v int32)

SetSequence sets Sequence field to given value.

HasSequence

func (o *ModifierGroup) HasSequence() bool

HasSequence returns a boolean if a field has been set.

GetModifiers

func (o *ModifierGroup) GetModifiers() []MenuModifier

GetModifiers returns the Modifiers field if non-nil, zero value otherwise.

GetModifiersOk

func (o *ModifierGroup) GetModifiersOk() (*[]MenuModifier, bool)

GetModifiersOk returns a tuple with the Modifiers field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetModifiers

func (o *ModifierGroup) SetModifiers(v []MenuModifier)

SetModifiers sets Modifiers field to given value.

HasModifiers

func (o *ModifierGroup) HasModifiers() bool

HasModifiers returns a boolean if a field has been set.

[Back to Model list] [Back to API list] [Back to README]