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.

ProductDetails.InstallmentPlanDetails

Returns the additional details of an installment plan.

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.

getInstallmentPlanDetails

public ProductDetails.InstallmentPlanDetails getInstallmentPlanDetails()

Returns the additional details of an installment plan.

Note: This field is only set for an installment subscription plan. Returns null for other non-installment subscription plans.

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.