Name | Type | Description | Notes |
---|---|---|---|
type | TypeEnum | ||
amountOff | BigDecimal | Amount taken off the subtotal of a price. Value is multiplied by 100 to precisely represent 2 decimal places. For example, a $10 discount is written as 1000. | [optional] |
amountOffFormula | String | [optional] | |
aggregatedAmountLimit | Integer | Maximum discount amount per order. | [optional] |
effect | EffectEnum | [optional] | |
isDynamic | Boolean | Flag indicating whether the discount was calculated using a formula. | [optional] |
unitOff | Integer | Number of units to be granted a full value discount. | [optional] |
unitOffFormula | String | [optional] | |
unitType | String | The product deemed as free, chosen from product inventory (e.g. time, items). | [optional] |
product | SimpleProductDiscountUnit | [optional] | |
sku | SimpleSkuDiscountUnit | [optional] | |
units | List<DiscountUnitMultipleOneUnit> | [optional] | |
percentOff | BigDecimal | The percent discount that the customer will receive. | [optional] |
percentOffFormula | String | [optional] | |
amountLimit | BigDecimal | Upper limit allowed to be applied as a discount. Value is multiplied by 100 to precisely represent 2 decimal places. For example, a $6 maximum discount is written as 600. | [optional] |
fixedAmount | BigDecimal | Sets a fixed value for an order total or the item price. The value is multiplied by 100 to precisely represent 2 decimal places. For example, a $10 discount is written as 1000. If the fixed amount is calculated by the formula, i.e. the `fixed_amount_formula` parameter is present in the fixed amount definition, this value becomes the fallback value. As a result, if the formula cannot be calculated due to missing metadata, for example, this value will be used as the fixed value. | [optional] |
fixedAmountFormula | String | [optional] |
Name | Value |
---|---|
AMOUNT | "AMOUNT" |
UNIT | "UNIT" |
PERCENT | "PERCENT" |
FIXED | "FIXED" |
Name | Value |
---|---|
APPLY_TO_ORDER | "APPLY_TO_ORDER" |
APPLY_TO_ITEMS | "APPLY_TO_ITEMS" |
APPLY_TO_ITEMS_PROPORTIONALLY | "APPLY_TO_ITEMS_PROPORTIONALLY" |
APPLY_TO_ITEMS_PROPORTIONALLY_BY_QUANTITY | "APPLY_TO_ITEMS_PROPORTIONALLY_BY_QUANTITY" |
APPLY_TO_ITEMS_BY_QUANTITY | "APPLY_TO_ITEMS_BY_QUANTITY" |
ADD_MISSING_ITEMS | "ADD_MISSING_ITEMS" |
ADD_NEW_ITEMS | "ADD_NEW_ITEMS" |
ADD_MANY_ITEMS | "ADD_MANY_ITEMS" |