# SubscriptionUpdateParams.Builder

public class SubscriptionUdpateParams extends Object\
java.lang.Object   ↳ com.gaa.sdk.iap.PurchaseFlowParams.SubscriptionUpdateParams.Builder

\
A builder that helps create a [SubscriptionUpdateParams](subscriptionupdateparams) instance easily.

\
Public methods <a href="#id-en-subscriptionupdateparams.builder-publicmethods" id="id-en-subscriptionupdateparams.builder-publicmethods"></a>
---------------------------------------------------------------------------------------------------------------------------------------------

***

### setProrationMode() <a href="#id-en-subscriptionupdateparams.builder-setprorationmode" id="id-en-subscriptionupdateparams.builder-setprorationmode"></a>

SubscriptionUpdateParams.Builder setProrationMode(ProrationMode prorationMode)

| **Parameters:**                  |                                                                                                                                                             |
| -------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
| prorationMode                    | <p>Proration mode for upgrade or downgrade of the subscription products.<br><a href="../annptations/purchaseflowparams.prorationmode">ProrationMode</a></p> |
| **Returns:**                     |                                                                                                                                                             |
| SubscriptionUpdateParams.Builder | <p><br></p>                                                                                                                                                 |

### setOldPurchaseToken() <a href="#id-en-subscriptionupdateparams.builder-setoldpurchasetoken" id="id-en-subscriptionupdateparams.builder-setoldpurchasetoken"></a>

SubscriptionUpdateParams.Builder setOldPurchaseToken()

| **Parameters:**                  |                                                        |
| -------------------------------- | ------------------------------------------------------ |
| String                           | Purchase token of the purchased subscription products. |
| **Returns:**                     |                                                        |
| SubscriptionUpdateParams.Builder | <p><br></p>                                            |

### newBuilder <a href="#id-en-subscriptionupdateparams.builder-newbuilder" id="id-en-subscriptionupdateparams.builder-newbuilder"></a>

SubscriptionUpdateParams[\[EN\]SubscriptionUpdateParams](subscriptionupdateparams)newBuilder()\
Creates a SubscriptionUpdateParams instance.

| **Returns:**                                         |             |
| ---------------------------------------------------- | ----------- |
| [SubscriptionUpdateParams](subscriptionupdateparams) | <p><br></p> |
