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 setOldPurchaseToken(String purchaseToken)

Specifies the Google Play Billing purchase token that the user is upgrading or downgrading from. Included in documentation by the annotations: @Annotations.ProductDetails

BillingFlowParams.SubscriptionUpdateParams.Builder setOldSkuPurchaseToken(String purchaseToken)

This method is deprecated. Use setOldPurchaseToken(String) instead.

BillingFlowParams.SubscriptionUpdateParams.Builder setReplaceProrationMode(int replaceSkusProrationMode)

Specifies the Google Play Billing mode of proration during subscription upgrade/downgrade. Included in documentation by the annotations: @Annotations.ProductDetails

BillingFlowParams.SubscriptionUpdateParams.Builder setReplaceSkusProrationMode(int replaceSkusProrationMode)

This method is deprecated. Use setReplaceProrationMode(int) instead.

Inherited methods

Public methods

setOldPurchaseToken

public BillingFlowParams.SubscriptionUpdateParams.Builder setOldPurchaseToken (String purchaseToken)
Included in documentation by the annotations: @Annotations.ProductDetails

Specifies the Google Play Billing purchase token that the user is upgrading or downgrading from.

Parameters
purchaseToken String

Returns
BillingFlowParams.SubscriptionUpdateParams.Builder

setOldSkuPurchaseToken

public BillingFlowParams.SubscriptionUpdateParams.Builder setOldSkuPurchaseToken (String purchaseToken)

This method is deprecated.
Use setOldPurchaseToken(String) instead.

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

Parameters
purchaseToken String

Returns
BillingFlowParams.SubscriptionUpdateParams.Builder

setReplaceProrationMode

public BillingFlowParams.SubscriptionUpdateParams.Builder setReplaceProrationMode (int replaceSkusProrationMode)
Included in documentation by the annotations: @Annotations.ProductDetails

Specifies the Google Play Billing mode of proration during subscription upgrade/downgrade.

The default mode is BillingFlowParams.ProrationMode.IMMEDIATE_WITH_TIME_PRORATION.

Parameters
replaceSkusProrationMode int

Returns
BillingFlowParams.SubscriptionUpdateParams.Builder

setReplaceSkusProrationMode

public BillingFlowParams.SubscriptionUpdateParams.Builder setReplaceSkusProrationMode (int replaceSkusProrationMode)

This method is deprecated.
Use setReplaceProrationMode(int) instead.

Specifies the Google Play Billing mode of proration during subscription upgrade/downgrade.

The default mode is BillingFlowParams.ProrationMode.IMMEDIATE_WITH_TIME_PRORATION.

Parameters
replaceSkusProrationMode int

Returns
BillingFlowParams.SubscriptionUpdateParams.Builder