dw.campaign
Class Discount
Object
dw.campaign.Discount
Constants
TYPE_AMOUNT  :  String = "AMOUNT"
Constant representing discounts of type amount.
TYPE_BONUS  :  String = "BONUS"
Constant representing discounts of type bonus.
TYPE_BONUS_CHOICE  :  String = "BONUS_CHOICE"
Constant representing discounts of type bonus choice.
TYPE_FIXED_PRICE  :  String = "FIXED_PRICE"
Constant representing discounts of type fixed-price.
TYPE_FIXED_PRICE_SHIPPING  :  String = "FIXED_PRICE_SHIPPING"
Constant representing discounts of type fixed price shipping.
TYPE_FREE  :  String = "FREE"
Constant representing discounts of type free.
TYPE_FREE_SHIPPING  :  String = "FREE_SHIPPING"
Constant representing discounts of type free shipping.
TYPE_PERCENTAGE  :  String = "PERCENTAGE"
Constant representing discounts of type percentage.
TYPE_PERCENTAGE_OFF_OPTIONS  :  String = "PERCENTAGE_OFF_OPTIONS"
Constant representing discounts of type percent off options.
TYPE_PRICEBOOK_PRICE  :  String = "PRICE_BOOK_PRICE"
Constant representing discounts of type price book price.
TYPE_TOTAL_FIXED_PRICE  :  String = "TOTAL_FIXED_PRICE"
Constant representing discounts of type total fixed price.
Properties
promotion  :  Promotion  (Read Only)
The promotion this discount is based on.
quantity  :  Number  (Read Only)
The quantity of the discount. This quantity specifies how often this discount applies to its target object. For example, a 10% off discount with quantity 2 associated to a product line item with quantity 3 is applied to two items of the product line item.
Discounts of order and shipping promotions, and bonus discounts have a fix quantity of 1.
type  :  String  (Read Only)
The type of the discount.
Constructor Summary
This class does not have a constructor, so you cannot create it directly. To get an instance of this class, use one of the subclass constructors.
Method Summary
getPromotion() : Promotion
Returns the promotion this discount is based on.
getQuantity() : Number
Returns the quantity of the discount.
getType() : String
Returns the type of the discount.
Methods inherited from class Object
Method Detail
getPromotion
getPromotion() : Promotion
Returns the promotion this discount is based on.
Returns:
Promotion related to this discount

getQuantity
getQuantity() : Number
Returns the quantity of the discount. This quantity specifies how often this discount applies to its target object. For example, a 10% off discount with quantity 2 associated to a product line item with quantity 3 is applied to two items of the product line item.
Discounts of order and shipping promotions, and bonus discounts have a fix quantity of 1.
Returns:
Discount quantity

getType
getType() : String
Returns the type of the discount.
Returns:
Discount type