Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 1.68 KB

CampaignScope.md

File metadata and controls

31 lines (22 loc) · 1.68 KB

CampaignScope

The scope level for a particular campaign.

Properties

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]

Example

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)

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