Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 2 KB

EditOrderItem.md

File metadata and controls

32 lines (23 loc) · 2 KB

EditOrderItem

Properties

Name Type Description Notes
item_id str The item's ID in Grab system that can be obtained from the Submit Order Webhook request payload parameters under `items[].grabItemID`, or `items[].outOfStockInstruction.replacementGrabItemID` for item replacement. External item ID from Partner system is only supported when `ADDED` status and `isExternalItemID: true`.
status str The item's edited status. Leave empty string if there is no change to the item.
quantity int The item's quantity. If the item is not being updated or deleted, use the original quantity. [optional]
is_external_item_id bool Only applicable for `ADDED`status. Indicate if the `itemID` is an external item ID. Grab checks for the items that are mapped to the provided item ID, considering their availability. If multiple Grab items are found to be mapped to the provided external item ID, the last updated item will be chosen. If no suitable record is found, an 400 error will be returned to the partner, indicating that the submitted external item ID cannot be edited. [optional]

Example

from grabfood.models.edit_order_item import EditOrderItem

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

# convert the object into a dict
edit_order_item_dict = edit_order_item_instance.to_dict()
# create an instance of EditOrderItem from a dict
edit_order_item_from_dict = EditOrderItem.from_dict(edit_order_item_dict)

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