GoogleSubscriptionOption

data class GoogleSubscriptionOption(    val id: String,     val pricingPhases: List<PricingPhase>,     val tags: List<String>,     val token: String) : SubscriptionOption, Parcelable

Defines an option for purchasing a Google subscription

Constructors

Link copied to clipboard
fun GoogleSubscriptionOption(    id: String,     pricingPhases: List<PricingPhase>,     tags: List<String>,     token: String)

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
open override val id: String

For Google subscriptions: If this SubscriptionOption represents a base plan, this will be the basePlanId. If it represents an offer, it will be {basePlanId}:{offerId}

Link copied to clipboard
open val isBasePlan: Boolean

True if this SubscriptionOption represents a Google subscription base plan (rather than an offer). Not applicable for Amazon subscriptions.

Link copied to clipboard
open override val pricingPhases: List<PricingPhase>

Pricing phases defining a user's payment plan for the product over time.

Link copied to clipboard
open override val tags: List<String>

Tags defined on the base plan or offer. Empty for Amazon.

Link copied to clipboard
val token: String

Token used to purchase

Sources

Link copied to clipboard