⚠️ The annual cost of maintaining the server where this website is hosted, the domain, and keeping it up-to-date is approximately €3,000 per year. Help us with a small donation to cover these expenses. Support Now!

0 / 10000
dw.campaign
Class AmountDiscount
Object
dw.campaign.Discount
dw.campaign.AmountDiscount
Represents an amount-off discount in the discount plan, for example "$10 off all orders $100 or more".
Properties
amount  :  Number  (Read Only)
The discount amount, for example 10.00 for a "$10 off" discount.
Constructor Summary
AmountDiscount(amount : Number)
Create an amount-discount on the fly.
Method Summary
getAmount() : Number
Returns the discount amount, for example 10.00 for a "$10 off" discount.
Constructor Detail
AmountDiscount
public 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

Method Detail
getAmount
getAmount() : Number
Returns the discount amount, for example 10.00 for a "$10 off" discount.
Returns:
Discount amount