Represents product's listing details.

interface Product {
    currentPrice: Price;
    defaultNonSubscriptionOption: null | NonSubscriptionOption;
    defaultPurchaseOption: PurchaseOption;
    defaultSubscriptionOption: null | SubscriptionOption;
    description: null | string;
    displayName: string;
    identifier: string;
    normalPeriodDuration: null | string;
    presentedOfferingContext: PresentedOfferingContext;
    presentedOfferingIdentifier: string;
    productType: ProductType;
    subscriptionOptions: {
        [optionId: string]: SubscriptionOption;
    };
    title: string;
}

Properties

currentPrice: Price

Price of the product. This will match the default option's base phase price in subscriptions or the price in non-subscriptions.

defaultNonSubscriptionOption: null | NonSubscriptionOption

The default non-subscription option for this product. Null in the case of subscriptions.

defaultPurchaseOption: PurchaseOption

The default purchase option for this product.

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.

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. Null for non-subscriptions.

presentedOfferingContext: PresentedOfferingContext

The context from which this product was obtained.

presentedOfferingIdentifier: string

The offering ID used to obtain this product.

productType: ProductType

The type of 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. Will be empty for non-subscriptions

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

title: string

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