Information about the GrabFood client updating their food menu.
Name | Type | Description | Notes |
---|---|---|---|
merchant_id | str | The merchant's ID that is in GrabFood's database. | |
var_field | str | The record type that you want to update. | |
id | str | The record's ID on the partner system. For example, the modifier id in case type is MODIFIER. | |
price | int | The record's price in minor unit format. | [optional] |
name | str | Only required when updating modifiers. The record's name. Used as identifier to locate the correct record. | |
available_status | str | The record's availableStatus. | [optional] |
is_free | 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] |
advanced_pricings | List[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] |
from grabfood.models.update_menu_modifier import UpdateMenuModifier
# TODO update the JSON string below
json = "{}"
# create an instance of UpdateMenuModifier from a JSON string
update_menu_modifier_instance = UpdateMenuModifier.from_json(json)
# print the JSON string representation of the object
print(UpdateMenuModifier.to_json())
# convert the object into a dict
update_menu_modifier_dict = update_menu_modifier_instance.to_dict()
# create an instance of UpdateMenuModifier from a dict
update_menu_modifier_from_dict = UpdateMenuModifier.from_dict(update_menu_modifier_dict)