Header menu logo fable-electron-docs-api

ProductDiscount Type

Constructors

Constructor Description

ProductDiscount(identifier, type, price, priceLocale, paymentMode, numberOfPeriods, ?subscriptionPeriod)

Full Usage: ProductDiscount(identifier, type, price, priceLocale, paymentMode, numberOfPeriods, ?subscriptionPeriod)

Parameters:
    identifier : 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
identifier : 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

this.identifier

Full Usage: this.identifier

A string used to uniquely identify a discount offer for a product.

this.numberOfPeriods

Full Usage: this.numberOfPeriods

An integer that indicates the number of periods the product discount is available.

this.paymentMode

Full Usage: this.paymentMode

The payment mode for this product discount. Can be payAsYouGo, payUpFront, or freeTrial.

this.price

Full Usage: this.price

The discount price of the product in the local currency.

this.priceLocale

Full Usage: this.priceLocale

The locale used to format the discount price of the product.

this.subscriptionPeriod

Full Usage: this.subscriptionPeriod

An object that defines the period for the product discount.

this.type

Full Usage: this.type

The type of discount offer.

Type something to start searching.