Class AmountDiscount
Represents an amount-off discount in the discount plan, for example "$10 off all orders $100 or more".
| Property | Description |
|---|---|
amount: Number (read-only) | Returns the discount amount, for example 10.00 for a "$10 off" discount. |
| Constructor | Description |
|---|---|
| AmountDiscount(Number) | Create an amount-discount on the fly. |
| Method | Description |
|---|---|
| getAmount() | Returns the discount amount, for example 10.00 for a "$10 off" discount. |
getItemPromotionTiers, getPromotion, getPromotionTier, getQuantity, getType
assign, create, create, defineProperties, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toLocaleString, toString, valueOf, values
- amount: Number
(read-only) Returns the discount amount, for example 10.00 for a "$10 off" discount.
- AmountDiscount(amount: Number)
Create an amount-discount on the fly. Can be used to create a custom price adjustment.
Parameters:
- amount - amount off, e.g. 15.00 for a "15$ off" discount
- getAmount(): Number
Returns the discount amount, for example 10.00 for a "$10 off" discount.
Returns:
- Discount amount