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) : StoreProduct, Parcelable

Constructors

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

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)

Properties

Link copied to clipboard
val basePlanId: String?
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
open override val id: String

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

Link copied to clipboard
open override val period: Period?

Subscription period.

Link copied to clipboard
open override val price: Price

Price information for a non-subscription product. Base plan price for a Google subscription. Term price for an Amazon subscription. For subscriptions, use SubscriptionOption's pricing phases.

Link copied to clipboard
val productDetails: ProductDetails
Link copied to clipboard
val productId: String
Link copied to clipboard
open override val purchasingData: PurchasingData
Link copied to clipboard
open override val subscriptionOptions: SubscriptionOptions?

Contains all SubscriptionOptions. Null for Amazon or 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.

Sources

Link copied to clipboard