GoogleStoreProduct

data class GoogleStoreProduct(val productId: String, val basePlanId: String?, val type: ProductType, val price: Price, val title: String, val description: String, val period: Period?, val subscriptionOptions: SubscriptionOptions?, val defaultOption: SubscriptionOption?, val productDetails: ProductDetails, val presentedOfferingIdentifier: String? = null) : StoreProduct

Constructors

Link copied to clipboard
constructor(productId: String, basePlanId: String?, type: ProductType, price: Price, title: String, description: String, period: Period?, subscriptionOptions: SubscriptionOptions?, defaultOption: SubscriptionOption?, productDetails: ProductDetails, presentedOfferingIdentifier: String? = null)

Functions

Link copied to clipboard
open override fun copyWithOfferingId(offeringId: String): StoreProduct

For internal RevenueCat use.

Properties

Link copied to clipboard

The basePlanId for subscription products. Null for INAPP.

Link copied to clipboard
open override val defaultOption: SubscriptionOption?

The default SubscriptionOption that will be used when purchasing and not specifying a different option. Null for INAPP products.

Link copied to clipboard
open override val description: String

The description of the product.

Link copied to clipboard

StoreProduct object containing Google-specific fields: productId basePlanId productDetails

Link copied to clipboard
open override val id: String

The product ID. INAPP: "" Sub: "productId:basePlanID"

Link copied to clipboard
open override val period: Period?

Subscription period. Null for INAPP products.

Link copied to clipboard
open override val presentedOfferingIdentifier: String? = null

The offering ID this GoogleStoreProduct was returned from.

Link copied to clipboard
open override val price: Price

Price information for a non-subscription product. Base plan price for a subscription. Use SubscriptionOption's pricing phases for offer pricing.

Link copied to clipboard
val productDetails: ProductDetails

The ProductDetails object returned from BillingClient that was used to construct this product.

Link copied to clipboard

The productId. For subscriptions, this is the high-level productId set up for a subscription in the Play Console, unique to an entitlement.

Link copied to clipboard
open override val purchasingData: PurchasingData

Contains only data that is required to make the purchase.

Link copied to clipboard

Contains all SubscriptionOptions. Null for INAPP products.

Link copied to clipboard
open override val title: String

Title of the product.

Link copied to clipboard
open override val type: ProductType

Type of product. One of ProductType.