The scope level for a particular campaign.
Name | Type | Description | Notes |
---|---|---|---|
type | str | The scope type for this campaign. * `order` - order level campaign. * `items` - item level campaign or bundle offer. * `category` - category level campaign where all items within applies the same discount. | |
object_ids | List[str] | The list of item IDs in the partner's database applicable for discount when `discount.scope.type` is `items` (or category IDs for `category`). One and only 1 item supported when `discount.type` is: - `freeItem` - `bundleSameNet` - `bundleSamePercentage` - `bundleSameFixPrice` Minimum 2 - Maximum 20 items supported when `discount.type` is: - `bundleDiffNet` - `bundleDiffPercentage` - `bundleDiffFixPrice` | [optional] |
from grabfood.models.campaign_scope import CampaignScope
# TODO update the JSON string below
json = "{}"
# create an instance of CampaignScope from a JSON string
campaign_scope_instance = CampaignScope.from_json(json)
# print the JSON string representation of the object
print(CampaignScope.to_json())
# convert the object into a dict
campaign_scope_dict = campaign_scope_instance.to_dict()
# create an instance of CampaignScope from a dict
campaign_scope_from_dict = CampaignScope.from_dict(campaign_scope_dict)