ProductDiscount Type
Constructors
| Constructor |
Description
|
Full Usage:
ProductDiscount(identifier, type, price, priceLocale, paymentMode, numberOfPeriods, ?subscriptionPeriod)
Parameters:
string
-
A string used to uniquely identify a discount offer for a product.
type : float
-
The type of discount offer.
price : float
-
The discount price of the product in the local currency.
priceLocale : string
-
The locale used to format the discount price of the product.
paymentMode : PaymentMode
-
The payment mode for this product discount. Can be payAsYouGo, payUpFront, or freeTrial.
numberOfPeriods : float
-
An integer that indicates the number of periods the product discount is available.
?subscriptionPeriod : ProductSubscriptionPeriod
-
An object that defines the period for the product discount.
Returns: ProductDiscount
|
|
Instance members
| Instance member |
Description
|
Full Usage:
this.identifier
|
A string used to uniquely identify a discount offer for a product. |
Full Usage:
this.numberOfPeriods
|
An integer that indicates the number of periods the product discount is available. |
Full Usage:
this.paymentMode
|
The payment mode for this product discount. Can be payAsYouGo, payUpFront, or freeTrial. |
Full Usage:
this.price
|
The discount price of the product in the local currency. |
Full Usage:
this.priceLocale
|
The locale used to format the discount price of the product. |
Full Usage:
this.subscriptionPeriod
|
An object that defines the period for the product discount. |
Full Usage:
this.type
|
The type of discount offer. |
fable-electron-docs-api