An offering is a collection of Packages (PurchasesPackage) available for the user to purchase. For more info see https://docs.revenuecat.com/docs/entitlements

Hierarchy

  • PurchasesOffering

Properties

annual: null | PurchasesPackage

Annual package type configured in the RevenueCat dashboard, if available.

availablePackages: PurchasesPackage[]

Array of Package objects available for purchase.

identifier: string

Unique identifier defined in RevenueCat dashboard.

lifetime: null | PurchasesPackage

Lifetime package type configured in the RevenueCat dashboard, if available.

metadata: {
    [key: string]: unknown;
}

Offering metadata defined in RevenueCat dashboard. To access values, you need to check the type beforehand. For example: const my_unknown_value: unknown = offering.metadata['my_key']; const my_string_value: string | undefined = typeof(my_unknown_value) === 'string' ? my_unknown_value : undefined;

Type declaration

  • [key: string]: unknown
monthly: null | PurchasesPackage

Monthly package type configured in the RevenueCat dashboard, if available.

serverDescription: string

Offering description defined in RevenueCat dashboard.

sixMonth: null | PurchasesPackage

Six month package type configured in the RevenueCat dashboard, if available.

threeMonth: null | PurchasesPackage

Three month package type configured in the RevenueCat dashboard, if available.

twoMonth: null | PurchasesPackage

Two month package type configured in the RevenueCat dashboard, if available.

weekly: null | PurchasesPackage

Weekly package type configured in the RevenueCat dashboard, if available.

Generated using TypeDoc