Class FixedPriceShippingDiscount

Represents a fixed price shipping discount in the discount plan, for example “Shipping only 0.99 for iPods.”

Property Summary 

PropertyDescription
fixedPrice: Number (read-only)Returns the fixed price amount, for example 0.99 for a “Shipping only $0.99” discount.

Constructor Summary 

ConstructorDescription
FixedPriceShippingDiscount(Number)Create a fixed-price-shipping-discount on the fly.

Method Summary 

MethodDescription
getFixedPrice()Returns the fixed price amount, for example 0.99 for a “Shipping only $0.99” 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 

fixedPrice 

fixedPrice: Number (read-only)

Returns the fixed price amount, for example 0.99 for a "Shipping only $0.99" discount.


Constructor Details 

FixedPriceShippingDiscount(Number) 

FixedPriceShippingDiscount(amount: Number)

Create a fixed-price-shipping-discount on the fly. Can be used to create a custom price adjustment.

Parameters:

  • amount - fixed price for shipping e.g. 10.00

Method Details 

getFixedPrice() 

getFixedPrice(): Number

Returns the fixed price amount, for example 0.99 for a "Shipping only $0.99" discount.

Returns:

  • Fixed price amount