Class PercentageOptionDiscount

Represents a percentage-off options discount in the discount plan, for example “50% off monogramming on shirts”.

Property Summary 

PropertyDescription
percentage: Number (read-only)Returns 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 

MethodDescription
getPercentage()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

Property Details 

percentage 

percentage: Number (read-only)

Returns the percentage discount value, for example 10.00 for a "10% off" discount.


Method Details 

getPercentage() 

getPercentage(): Number

Returns the percentage discount value, for example 10.00 for a "10% off" discount.

Returns:

  • Discount percentage value

DID THIS ARTICLE SOLVE YOUR ISSUE?
Let us know so we can improve!