Skip to content

Latest commit

 

History

History
45 lines (36 loc) · 3.88 KB

MenuItem.md

File metadata and controls

45 lines (36 loc) · 3.88 KB

MenuItem

Properties

Name Type Description Notes
id str The item's ID in the partner system. This ID should be unique.
name str The name of the item.
name_translation Dict[str, str] Translation of the item name. Only support up to 1 translated language. Refer Menu Translation. [optional]
available_status str The status for the item. Refer to FAQs for more details about availableStatus. > Note: In order to set an item as `"UNAVAILABLE"`, it is required to update both the `availableStatus` and `maxStock` fields, whereby the `maxStock` should be set to 0.
description str The description of the item. There is a custom length limit of 2000 for `VN`. [optional]
description_translation Dict[str, str] Translation of the item description. Only support up to 1 translated language. Refer Menu Translation. [optional]
price int The item's price in minor format. For example: 1900 means $19 with `currency.exponent` as 2. Refer to FAQ to determine whether the pricing should be tax-inclusive or tax-exclusive.
photos List[str] An array string for the item’s image URL link. Only 1 image is supported. Refer to FAQs for more details about images formats. [optional]
special_type str The item's special Tag. Refer to FAQs for more details about specialType. [optional]
taxable bool For Indonesia only. This field allows the configuration for an item to be marked as tax applicable, and marked item would then be included in a commercial invoice to consumers as per the government's regulations. [optional]
barcode str The barcode Number (GTIN). Max 64 allowed. GTIN must be 8, 12, 13, 14 numeric digits. [optional]
selling_time_id str The selling time's ID for the item. This value overrides the category's selling time if it is different. Empty value implies the category's selling time will be applied. [optional]
max_stock int Available stocks under inventory for this item. Auto reduce when there is order placed for this item. Empty value implies no limit. > 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]
sequence int The sort or display order of the item within the menu. [optional]
advanced_pricing AdvancedPricing [optional]
purchasability Purchasability [optional]
modifier_groups List[ModifierGroup] An array of the modifierGroup JSON objects. Max 30 allowed per item. Refer to Modifier groups for more information. [optional]

Example

from grabfood.models.menu_item import MenuItem

# TODO update the JSON string below
json = "{}"
# create an instance of MenuItem from a JSON string
menu_item_instance = MenuItem.from_json(json)
# print the JSON string representation of the object
print(MenuItem.to_json())

# convert the object into a dict
menu_item_dict = menu_item_instance.to_dict()
# create an instance of MenuItem from a dict
menu_item_from_dict = MenuItem.from_dict(menu_item_dict)

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