Salesforce B2C Commerce 23.6
>
B2C Commerce API
>
B2C Commerce Script
>
dw.campaign
Overview
API Versioning
Deprecated
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.
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
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
© Copyright 2000-2023, salesforce.com inc. All rights reserved. Various trademarks held by their respective owners.
X
Privacy Update:
We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used. By continuing to use this site you are giving us your consent to do this.
Privacy Policy.