Skip to content

Latest commit

 

History

History
187 lines (100 loc) · 5.56 KB

MenuCategory.md

File metadata and controls

187 lines (100 loc) · 5.56 KB

MenuCategory

Properties

Name Type Description Notes
Id string The category's ID that is on the partner system. This ID should be unique.
Name string The name of the category.
NameTranslation Pointer to map[string]string Translation of the category name. Only support up to 1 translated language. Refer Menu Translation. [optional]
AvailableStatus string The status for the category. Refer to FAQs for more details about availableStatus.
SellingTimeID string The selling time's ID for the category. All items within the category will apply the same selling time unless there is another selling time specified for the item.
Sequence Pointer to int32 The sort or display order of the category within the menu. [optional]
Items []MenuItem An array of item JSON objects. Max 300 allowed per category. Refer to Items for more information.

Methods

NewMenuCategory

func NewMenuCategory(id string, name string, availableStatus string, sellingTimeID string, items []MenuItem, ) *MenuCategory

NewMenuCategory instantiates a new MenuCategory 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

NewMenuCategoryWithDefaults

func NewMenuCategoryWithDefaults() *MenuCategory

NewMenuCategoryWithDefaults instantiates a new MenuCategory 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 *MenuCategory) GetId() string

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

GetIdOk

func (o *MenuCategory) 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 *MenuCategory) SetId(v string)

SetId sets Id field to given value.

GetName

func (o *MenuCategory) GetName() string

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

GetNameOk

func (o *MenuCategory) 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 *MenuCategory) SetName(v string)

SetName sets Name field to given value.

GetNameTranslation

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

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

GetNameTranslationOk

func (o *MenuCategory) 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 *MenuCategory) SetNameTranslation(v map[string]string)

SetNameTranslation sets NameTranslation field to given value.

HasNameTranslation

func (o *MenuCategory) HasNameTranslation() bool

HasNameTranslation returns a boolean if a field has been set.

GetAvailableStatus

func (o *MenuCategory) GetAvailableStatus() string

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

GetAvailableStatusOk

func (o *MenuCategory) 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 *MenuCategory) SetAvailableStatus(v string)

SetAvailableStatus sets AvailableStatus field to given value.

GetSellingTimeID

func (o *MenuCategory) GetSellingTimeID() string

GetSellingTimeID returns the SellingTimeID field if non-nil, zero value otherwise.

GetSellingTimeIDOk

func (o *MenuCategory) GetSellingTimeIDOk() (*string, bool)

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

SetSellingTimeID

func (o *MenuCategory) SetSellingTimeID(v string)

SetSellingTimeID sets SellingTimeID field to given value.

GetSequence

func (o *MenuCategory) GetSequence() int32

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

GetSequenceOk

func (o *MenuCategory) 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 *MenuCategory) SetSequence(v int32)

SetSequence sets Sequence field to given value.

HasSequence

func (o *MenuCategory) HasSequence() bool

HasSequence returns a boolean if a field has been set.

GetItems

func (o *MenuCategory) GetItems() []MenuItem

GetItems returns the Items field if non-nil, zero value otherwise.

GetItemsOk

func (o *MenuCategory) GetItemsOk() (*[]MenuItem, bool)

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

SetItems

func (o *MenuCategory) SetItems(v []MenuItem)

SetItems sets Items field to given value.

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