Represents product's listing details.

interface Product {
    currentPrice: Price;
    defaultSubscriptionOption: null | SubscriptionOption;
    description: null | string;
    displayName: string;
    identifier: string;
    normalPeriodDuration: null | string;
    presentedOfferingIdentifier: string;
    subscriptionOptions: {
        [optionId: string]: SubscriptionOption;
    };
    title: string;
}

Properties

currentPrice: Price

Price of the product. In the case of subscriptions, this will match the default option's base phase price.

defaultSubscriptionOption: null | SubscriptionOption

The default subscription option for this product. Null if no subscription options are available like in the case of consumables and non-consumables.

description: null | string

The description of the product as configured in the RevenueCat dashboard.

displayName: string

Name of the product.

Deprecated

identifier: string

The product ID.

normalPeriodDuration: null | string

The period duration for a subscription product. This will match the default option's base phase period duration.

presentedOfferingIdentifier: string

The offering ID used to obtain this product.

subscriptionOptions: {
    [optionId: string]: SubscriptionOption;
}

A dictionary with all the possible subscription options available for this product. Each key contains the key to be used when executing a purchase.

If retrieved through getOfferings the offers are only the ones the customer is entitled to.

Type declaration

title: string

The title of the product as configured in the RevenueCat dashboard.