Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 1.96 KB

CampaignDiscount.md

File metadata and controls

35 lines (23 loc) · 1.96 KB

CampaignDiscount

The discount detail for a particular campaign when conditions are satisfied.

Properties

Name Type Description Notes
type TypeEnum The type of discount
cap Double The maximum discount dollar amount. It is not required and will be ignored when the `discount.type` is: - `net` - `delivery` - `freeItem` - `bundleSameNet` - `bundleSamePercentage` - `bundleSameFixPrice` - `bundleDiffNet` - `bundleDiffPercentage` - `bundleDiffFixPrice` [optional]
value Double Specify the discount amount. Decimal number is not supported For VN, ID and TH. For example, `10.5` is not allowed and it should be `10.0`. * Dollar amount value when `discount.type` is `net`, `delivery`, `bundleSameNet`, `bundleSameFixPrice`, `bundleDiffNet`, `bundleDiffFixPrice`. * Percentage value (0-100) when `discount.type` is `percentage`, `bundleSamePercentage`, `bundleDiffPercentage`. * Not required when `discount.type` is `freeItem`. [optional]
scope CampaignScope

Enum: TypeEnum

Name Value
NET "net"
PERCENTAGE "percentage"
DELIVERY "delivery"
FREE_ITEM "freeItem"
BUNDLE_SAME_NET "bundleSameNet"
BUNDLE_SAME_PERCENTAGE "bundleSamePercentage"
BUNDLE_SAME_FIX_PRICE "bundleSameFixPrice"
BUNDLE_DIFF_NET "bundleDiffNet"
BUNDLE_DIFF_PERCENTAGE "bundleDiffPercentage"
BUNDLE_DIFF_FIX_PRICE "bundleDiffFixPrice"
UNKNOWN_DEFAULT_OPEN_API "unknown_default_open_api"