ProductDetails.SubscriptionOfferDetails

public final class ProductDetails.SubscriptionOfferDetails


Represents the available purchase plans to buy a subscription product.

Summary

Public methods

String

Returns the base plan id associated with the subscription product.

String

Returns the offer id associated with the subscription product.

List<String>

Returns the offer tags associated with this Subscription Offer.

String

Returns the offer token required to pass in launchBillingFlow to purchase the subscription product with these pricing phases.

ProductDetails.PricingPhases

Returns the pricing phases for the subscription product.

Public methods

getBasePlanId

public String getBasePlanId()

Returns the base plan id associated with the subscription product.

getOfferId

public String getOfferId()

Returns the offer id associated with the subscription product.

Note: This field is only set for a discounted offer. Returns null for a regular base plan.

getOfferTags

public List<StringgetOfferTags()

Returns the offer tags associated with this Subscription Offer.

getOfferToken

public String getOfferToken()

Returns the offer token required to pass in launchBillingFlow to purchase the subscription product with these pricing phases.

getPricingPhases

public ProductDetails.PricingPhases getPricingPhases()

Returns the pricing phases for the subscription product.