BillingFlowParams.SubscriptionUpdateParams.Builder

public static class BillingFlowParams.SubscriptionUpdateParams.Builder
extends Object

java.lang.Object
   ↳ com.android.billingclient.api.BillingFlowParams.SubscriptionUpdateParams.Builder


Helps to construct BillingFlowParams.SubscriptionUpdateParams.

Summary

Public methods

BillingFlowParams.SubscriptionUpdateParams build()
BillingFlowParams.SubscriptionUpdateParams.Builder setOldSkuPurchaseToken(String purchaseToken)

Specifies the purchase token of the SKU that the user is upgrading or downgrading from.

BillingFlowParams.SubscriptionUpdateParams.Builder setReplaceSkusProrationMode(int replaceSkusProrationMode)

Specifies the mode of proration during subscription upgrade/downgrade.

Inherited methods

Public methods

setOldSkuPurchaseToken

public BillingFlowParams.SubscriptionUpdateParams.Builder setOldSkuPurchaseToken (String purchaseToken)

Specifies the purchase token of the SKU that the user is upgrading or downgrading from.

Parameters
purchaseToken String

Returns
BillingFlowParams.SubscriptionUpdateParams.Builder

setReplaceSkusProrationMode

public BillingFlowParams.SubscriptionUpdateParams.Builder setReplaceSkusProrationMode (int replaceSkusProrationMode)

Specifies the mode of proration during subscription upgrade/downgrade.

The default mode is BillingFlowParams.ProrationMode.IMMEDIATE_WITH_TIME_PRORATION.

Parameters
replaceSkusProrationMode int

Returns
BillingFlowParams.SubscriptionUpdateParams.Builder