Interface PurchasesStoreProductDiscount

Contains information about a discount offer for a product

interface PurchasesStoreProductDiscount {
    cycles: number;
    identifier: string;
    period: string;
    periodNumberOfUnits: number;
    periodUnit: string;
    price: number;
    priceString: string;
}

Properties

cycles: number

Number of subscription billing periods for which the user will be given the discount, such as 3.

identifier: string

Identifier of the discount.

period: string

Billing period of the discount, specified in ISO 8601 format.

periodNumberOfUnits: number

Number of units for the billing period of the discount.

periodUnit: string

Unit for the billing period of the discount, can be DAY, WEEK, MONTH or YEAR.

price: number

Price in the local currency.

priceString: string

Formatted price, including its currency sign, such as €3.99.