TestStoreProduct
A test-only StoreProduct implementation. This can be used to create mock data for tests or Jetpack Compose previews.
Constructors
Functions
For internal RevenueCat use.
Null for INAPP products. The price of the StoreProduct in the given locale in a monthly recurrence. This means that, for example, if the period is annual, the price will be divided by 12. It uses a currency formatter to format the price in the given locale. Note that this value may be an approximation. For Google subscriptions, this value will use the basePlan to calculate the value.
Null for INAPP products. The price of the StoreProduct in the given locale in a monthly recurrence. This means that, for example, if the period is annual, the price will be divided by 12. It uses a currency formatter to format the price in the given locale. Note that this value may be an approximation. For Google subscriptions, this value will use the basePlan to calculate the value.
Null for INAPP products. The price of the StoreProduct in the given locale in a weekly recurrence. This means that, for example, if the period is monthly, the price will be divided by 4. It uses a currency formatter to format the price in the given locale. Note that this value may be an approximation. For Google subscriptions, this value will use the basePlan to calculate the value.
Null for INAPP products. The price of the StoreProduct in the given locale in a yearly recurrence. This means that, for example, if the period is monthly, the price will be multiplied by 12. It uses a currency formatter to format the price in the given locale. Note that this value may be an approximation. For Google subscriptions, this value will use the basePlan to calculate the value.
Properties
StoreProduct object containing Amazon-specific fields: originalProductJson
freeTrialPeriod
iconUrl
The default SubscriptionOption that will be used when purchasing and not specifying a different option. Null for INAPP products.
The description of the product.
StoreProduct object containing Google-specific fields: productId
basePlanId
productDetails
The context from which this product was obtained.
Contains only data that is required to make the purchase.
Contains all SubscriptionOptions. Null for Amazon or for INAPP products.
Type of product. One of ProductType.