Script: Class dw.campaign.PercentageOptionDiscount
Class PercentageOptionDiscount
- Object
- dw.campaign.Discount
- dw.campaign.PercentageOptionDiscount
- dw.campaign.Discount
Represents a percentage-off options discount in the discount plan, for example "50% off monogramming on shirts".
Properties
percentage : Number Read Only
The percentage discount value, for example 10.00 for a "10% off" discount.
Constructor Summary
This class does not have a constructor, so you cannot create it directly.
Method Summary
getPercentage() : Number
Returns the percentage discount value, for example 10.00 for a "10% off" discount.
Methods inherited from class Discount
getItemPromotionTiers, getPromotion, getPromotionTier, getQuantity, getType
Methods inherited from class Object
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
Method Detail
getPercentage
getPercentage() : Number
Returns the percentage discount value, for example 10.00 for a "10% off" discount.
Returns:
Discount percentage value