Skip to content

Latest commit

 

History

History
52 lines (42 loc) · 4.58 KB

File metadata and controls

52 lines (42 loc) · 4.58 KB

EditOrderV2Response

Properties

Name Type Description Notes
order_id str The order's ID that is returned from GrabFood. Refer to FAQs for more details about orderID and shortOrderNumber. [optional]
short_order_number str The GrabFood short order number. This is unique for each merchant per day. Refer to FAQs for more details about orderID and shortOrderNumber. [optional]
merchant_id str The merchant's ID that is in GrabFood's database. [optional]
partner_merchant_id str The merchant's ID that is on the partner's database. [optional]
payment_type str The payment method used. Refer to FAQs for more details about paymentType. [optional]
cutlery bool The boolean value to indicate whether cutlery are needed or not. Refer to FAQs for more details about cutlery. [optional]
order_time str The UTC time that a consumer places the order, based on ISO_8601/RFC3339. [optional]
submit_time datetime The order submit time, based on ISO_8601/RFC3339. `null` in EditOrder V2 response. Only present in the List Orders response. [optional]
complete_time datetime The order complete time, based on ISO_8601/RFC3339. `null` in EditOrder V2 response. Only present in the List Orders response. [optional]
scheduled_time str The order scheduled time, based on ISO_8601/RFC3339. Empty for non-scheduled orders. [optional]
order_state str The state of the order. Empty in EditOrder V2 response. Only present in the List Orders response. Refer to Order States. [optional]
currency Currency [optional]
feature_flags OrderFeatureFlags [optional]
items List[OrderItem] The ordered items in an array of JSON Object. [optional]
campaigns List[OrderCampaign] The campaigns that are applicable for the order. `null` when there is no campaign applied. Only campaigns that are funded by merchants will be sent. [optional]
promos List[OrderPromo] An array of promotion objects. `null` when there is no promo code applied. Only promotions that are funded by merchants will be sent. [optional]
price OrderPrice [optional]
dine_in DineIn [optional]
receiver object This field is set to `null` in the EditOrder V2 response. Refer to the Submit Order payload for the complete receiver information. [optional]
order_ready_estimation OrderReadyEstimation [optional]
membership_id str Membership ID for loyalty project. Only present for loyalty program partners. Empty if not applicable. [optional]
discounts List[GrabDiscount1] The discounts that are applicable for the paybill order in dineout STO case. `null` when there is no discount applied. This is only applicable for STO order [optional]
payments List[str] This field is set to `null` in the EditOrder V2 response. Refer to the Submit Order payload for the complete payment details. [optional]

Example

from grabfood.models.edit_order_v2_response import EditOrderV2Response

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

# convert the object into a dict
edit_order_v2_response_dict = edit_order_v2_response_instance.to_dict()
# create an instance of EditOrderV2Response from a dict
edit_order_v2_response_from_dict = EditOrderV2Response.from_dict(edit_order_v2_response_dict)

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