Interface SubscriptionOption

Contains all details associated with a SubscriptionOption Used only for Google

interface SubscriptionOption {
    billingPeriod: null | Period;
    freePhase: null | PricingPhase;
    fullPricePhase: null | PricingPhase;
    id: string;
    installmentsInfo: null | InstallmentsInfo;
    introPhase: null | PricingPhase;
    isBasePlan: boolean;
    isPrepaid: boolean;
    presentedOfferingContext: null | PresentedOfferingContext;
    presentedOfferingIdentifier: null | string;
    pricingPhases: PricingPhase[];
    productId: string;
    storeProductId: string;
    tags: string[];
}

Properties

billingPeriod: null | Period

The subscription period of fullPricePhase (after free and intro trials).

freePhase: null | PricingPhase

The free trial PricingPhase of the subscription. Looks for the first pricing phase of the SubscriptionOption where amountMicros is 0. There can be a freeTrialPhase and an introductoryPhase in the same SubscriptionOption.

fullPricePhase: null | PricingPhase

The full price PricingPhase of the subscription. Looks for the last price phase of the SubscriptionOption.

id: string

Identifier of the subscription option If this SubscriptionOption represents a base plan, this will be the basePlanId. If it represents an offer, it will be basePlanId:offerId

installmentsInfo: null | InstallmentsInfo

For installment subscriptions, the details of the installment plan the customer commits to. Null for non-installment subscriptions. Installment plans are only available for Google Play subscriptions.

introPhase: null | PricingPhase

The intro trial PricingPhase of the subscription. Looks for the first pricing phase of the SubscriptionOption where amountMicros is greater than 0. There can be a freeTrialPhase and an introductoryPhase in the same SubscriptionOption.

isBasePlan: boolean

True if this SubscriptionOption represents a subscription base plan (rather than an offer).

isPrepaid: boolean

True if the subscription is pre-paid.

presentedOfferingContext: null | PresentedOfferingContext

Offering context this package belongs to. Null if not using offerings or if fetched directly from store via getProducts.

presentedOfferingIdentifier: null | string

Offering identifier the subscription option was presented from

Deprecated

Use presentedOfferingContext

pricingPhases: PricingPhase[]

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

productId: string

Identifer of the subscription associated with this SubscriptionOption This will be subId

storeProductId: string

Identifier of the StoreProduct associated with this SubscriptionOption This will be subId:basePlanId

tags: string[]

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