Skip to content

Latest commit

 

History

History
270 lines (145 loc) · 8.86 KB

UpdateMenuRequest.md

File metadata and controls

270 lines (145 loc) · 8.86 KB

UpdateMenuRequest

Properties

Name Type Description Notes
MerchantID string The merchant's ID that is in GrabFood's database.
Field string The record type that you want to update.
Id string The record's ID on the partner system. For example, the modifier id in case type is MODIFIER.
Price Pointer to int64 The record's price in minor unit format. [optional]
AvailableStatus Pointer to string The record's availableStatus. [optional]
MaxStock Pointer to int64 Available stocks under inventory for this item. Auto reduce when there is order placed for this item. Note: It is necessary to set `maxStock` to 0 if the `availableStatus` of the item is "UNAVAILABLE". Item will be set to "AVAILABLE" if `maxStock` > 0. [optional]
AdvancedPricings Pointer to []UpdateAdvancedPricing Price configuration (in minor unit) for different service, order type and channel combination. If a service type does not have a specified price, it will utilize the default price of the item. [optional]
Purchasabilities Pointer to []UpdatePurchasability Purchasability is set to true by default for all service type, unless it is explicitly set to false. Modifier will reuse it’s item’s purchasability. [optional]
Name string Only required when updating modifiers. The record's name. Used as identifier to locate the correct record.
IsFree Pointer to bool Allows the modifier's price to be explicitly set as zero. Possible values are as follows: * `isFree` && `price == 0` sets the modifier's price to zero. * `isFree` && `price > 0` returns an error message that "price cannot be set to > 0, if modifier is free”. * `!isFree` && `price > 0` sets the modifier's price to the defined price. * `!isFree` && `price == 0` does not update the modifier's price and reuses the existing price. [optional]

Methods

NewUpdateMenuRequest

func NewUpdateMenuRequest(merchantID string, field string, id string, name string, ) *UpdateMenuRequest

NewUpdateMenuRequest instantiates a new UpdateMenuRequest 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

NewUpdateMenuRequestWithDefaults

func NewUpdateMenuRequestWithDefaults() *UpdateMenuRequest

NewUpdateMenuRequestWithDefaults instantiates a new UpdateMenuRequest 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

GetMerchantID

func (o *UpdateMenuRequest) GetMerchantID() string

GetMerchantID returns the MerchantID field if non-nil, zero value otherwise.

GetMerchantIDOk

func (o *UpdateMenuRequest) GetMerchantIDOk() (*string, bool)

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

SetMerchantID

func (o *UpdateMenuRequest) SetMerchantID(v string)

SetMerchantID sets MerchantID field to given value.

GetField

func (o *UpdateMenuRequest) GetField() string

GetField returns the Field field if non-nil, zero value otherwise.

GetFieldOk

func (o *UpdateMenuRequest) GetFieldOk() (*string, bool)

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

SetField

func (o *UpdateMenuRequest) SetField(v string)

SetField sets Field field to given value.

GetId

func (o *UpdateMenuRequest) GetId() string

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

GetIdOk

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

SetId sets Id field to given value.

GetPrice

func (o *UpdateMenuRequest) GetPrice() int64

GetPrice returns the Price field if non-nil, zero value otherwise.

GetPriceOk

func (o *UpdateMenuRequest) GetPriceOk() (*int64, bool)

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

SetPrice

func (o *UpdateMenuRequest) SetPrice(v int64)

SetPrice sets Price field to given value.

HasPrice

func (o *UpdateMenuRequest) HasPrice() bool

HasPrice returns a boolean if a field has been set.

GetAvailableStatus

func (o *UpdateMenuRequest) GetAvailableStatus() string

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

GetAvailableStatusOk

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

SetAvailableStatus sets AvailableStatus field to given value.

HasAvailableStatus

func (o *UpdateMenuRequest) HasAvailableStatus() bool

HasAvailableStatus returns a boolean if a field has been set.

GetMaxStock

func (o *UpdateMenuRequest) GetMaxStock() int64

GetMaxStock returns the MaxStock field if non-nil, zero value otherwise.

GetMaxStockOk

func (o *UpdateMenuRequest) GetMaxStockOk() (*int64, bool)

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

SetMaxStock

func (o *UpdateMenuRequest) SetMaxStock(v int64)

SetMaxStock sets MaxStock field to given value.

HasMaxStock

func (o *UpdateMenuRequest) HasMaxStock() bool

HasMaxStock returns a boolean if a field has been set.

GetAdvancedPricings

func (o *UpdateMenuRequest) GetAdvancedPricings() []UpdateAdvancedPricing

GetAdvancedPricings returns the AdvancedPricings field if non-nil, zero value otherwise.

GetAdvancedPricingsOk

func (o *UpdateMenuRequest) GetAdvancedPricingsOk() (*[]UpdateAdvancedPricing, bool)

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

SetAdvancedPricings

func (o *UpdateMenuRequest) SetAdvancedPricings(v []UpdateAdvancedPricing)

SetAdvancedPricings sets AdvancedPricings field to given value.

HasAdvancedPricings

func (o *UpdateMenuRequest) HasAdvancedPricings() bool

HasAdvancedPricings returns a boolean if a field has been set.

GetPurchasabilities

func (o *UpdateMenuRequest) GetPurchasabilities() []UpdatePurchasability

GetPurchasabilities returns the Purchasabilities field if non-nil, zero value otherwise.

GetPurchasabilitiesOk

func (o *UpdateMenuRequest) GetPurchasabilitiesOk() (*[]UpdatePurchasability, bool)

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

SetPurchasabilities

func (o *UpdateMenuRequest) SetPurchasabilities(v []UpdatePurchasability)

SetPurchasabilities sets Purchasabilities field to given value.

HasPurchasabilities

func (o *UpdateMenuRequest) HasPurchasabilities() bool

HasPurchasabilities returns a boolean if a field has been set.

GetName

func (o *UpdateMenuRequest) GetName() string

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

GetNameOk

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

SetName sets Name field to given value.

GetIsFree

func (o *UpdateMenuRequest) GetIsFree() bool

GetIsFree returns the IsFree field if non-nil, zero value otherwise.

GetIsFreeOk

func (o *UpdateMenuRequest) GetIsFreeOk() (*bool, bool)

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

SetIsFree

func (o *UpdateMenuRequest) SetIsFree(v bool)

SetIsFree sets IsFree field to given value.

HasIsFree

func (o *UpdateMenuRequest) HasIsFree() bool

HasIsFree returns a boolean if a field has been set.

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