MenuEntity
Name |
Type |
Description |
Notes |
id |
str |
The record's ID on the partner system. For example, the item id in case type is ITEM, modifier id is MODIFIER. |
[optional] |
price |
int |
The record's price in minor unit format. |
[optional] |
available_status |
str |
The record's availableStatus. Note: In order to set an item as "UNAVAILABLE", it is required to update both the `availableStatus` and `maxStock` fields, whereby the `maxStock` value should be set to 0. |
[optional] |
max_stock |
int |
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] |
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] |
purchasabilities |
List[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] |
from grabfood.models.menu_entity import MenuEntity
# TODO update the JSON string below
json = "{}"
# create an instance of MenuEntity from a JSON string
menu_entity_instance = MenuEntity.from_json(json)
# print the JSON string representation of the object
print(MenuEntity.to_json())
# convert the object into a dict
menu_entity_dict = menu_entity_instance.to_dict()
# create an instance of MenuEntity from a dict
menu_entity_from_dict = MenuEntity.from_dict(menu_entity_dict)
[Back to Model list] [Back to API list] [Back to README]