Name |
Type |
Description |
Notes |
id |
str |
The campaign's ID returned by GrabFood upon campaign creation. |
[optional] |
name |
str |
The name of the campaign. This campaign name has been automatically generated by Grab for display in the customer app. |
[optional] |
campaign_name_for_mex |
str |
The campaign name provided by the merchant in Create Campaign. Whitelist required, reach out to your integration manager. |
[optional] |
level |
str |
The campaign level. |
[optional] |
type |
str |
The type of campaign. |
[optional] |
usage_count |
int |
The redemption count of same campaign in this order. |
[optional] |
mex_funded_ratio |
int |
The ratio funded by the merchant in percentage. |
[optional] |
deducted_amount |
int |
The total discount amount in minor unit format applied to the order based on the campaign's usage count. The amount is rounded to the nearest value for `VND`, `IDR`, and `THB`, as decimals are not supported. ``` deductedAmount = Item price(tax inclusive) * 20% discount |
2375*0.2=475 |
deducted_part |
str |
The part that the campaign is applied. |
[optional] |
applied_item_ids |
List[str] |
An array of item IDs that get discount under this campaign. `null` if no item applied in this campaign. |
[optional] |
free_item |
OrderFreeItem |
|
[optional] |
from grabfood.models.order_campaign import OrderCampaign
# TODO update the JSON string below
json = "{}"
# create an instance of OrderCampaign from a JSON string
order_campaign_instance = OrderCampaign.from_json(json)
# print the JSON string representation of the object
print(OrderCampaign.to_json())
# convert the object into a dict
order_campaign_dict = order_campaign_instance.to_dict()
# create an instance of OrderCampaign from a dict
order_campaign_from_dict = OrderCampaign.from_dict(order_campaign_dict)
[Back to Model list] [Back to API list] [Back to README]