Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 1.67 KB

File metadata and controls

33 lines (24 loc) · 1.67 KB

OrderItemModifier

Properties

Name Type Description Notes
id str The modifier's ID that is on the partner's system. [optional]
price int The modifier's price (tax-inclusive) in minor format. ``` price = round(165 * (1 + 0.06)) = 175 [optional]
tax int Tax in minor format for 1 modifier. Refer to FAQs for more details about tax. ``` tax = 165*0.06=10 [optional]
quantity int The number of modifiers present. The value is always 1. [optional]
bcrs_unit_count int For Singapore only. The number of BCRS (Beverage Container Return Scheme) eligible containers for this modifier. Only present when the modifier is BCRS-eligible and the merchant has BCRS enabled; omitted otherwise. [optional]

Example

from grabfood.models.order_item_modifier import OrderItemModifier

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

# convert the object into a dict
order_item_modifier_dict = order_item_modifier_instance.to_dict()
# create an instance of OrderItemModifier from a dict
order_item_modifier_from_dict = OrderItemModifier.from_dict(order_item_modifier_dict)

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