> For the complete documentation index, see [llms.txt](https://onestore-dev.gitbook.io/dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://onestore-dev.gitbook.io/dev/eng/tools/billing/v21/references/annptations/purchaseflowparams.prorationmode.md).

# PurchaseFlowParams.ProrationMode

public static @interface PurchaseFlowParams.ProrationMode\
com.gaa.sdk.iap.PurchaseFlowParams.ProrationMode\
\
Proportional distribution mode for upgrading or downgrading subscriptions.

<br>

## Constants <a href="#id-en-purchaseflowparams.prorationmode-constants" id="id-en-purchaseflowparams.prorationmode-constants"></a>

***

### UNKNOWN\_SUBSCRIPTION\_UPGRADE\_DOWNGRADE\_POLICY <a href="#id-en-purchaseflowparams.prorationmode-unknown_subscription_upgrade_downgrade_policy" id="id-en-purchaseflowparams.prorationmode-unknown_subscription_upgrade_downgrade_policy"></a>

int UNKNOWN\_SUBSCRIPTION\_UPGRADE\_DOWNGRADE\_POLICY\
Unspecified status value\
Constant Value: 0

### &#x20;IMMEDIATE\_WITH\_TIME\_PRORATION <a href="#id-en-purchaseflowparams.prorationmode-immediate_with_time_proration" id="id-en-purchaseflowparams.prorationmode-immediate_with_time_proration"></a>

int IMMEDIATE\_WITH\_TIME\_PRORATION\
The replacement will take effect immediately, and the new expiration time will be proportionally distributed and deposited or charged to the user (default).\
Constant Value: 1

### &#x20;IMMEDIATE\_AND\_CHARGE\_PRORATED\_PRICE <a href="#id-en-purchaseflowparams.prorationmode-immediate_and_charge_prorated_price" id="id-en-purchaseflowparams.prorationmode-immediate_and_charge_prorated_price"></a>

int IMMEDIATE\_AND\_CHARGE\_PRORATED\_PRICE\
The replacement will take effect immediately and the billing cycle will remain the same. You will be charged for the remainder of the period.\
Constant Value: 2

### &#x20;IMMEDIATE\_WITHOUT\_PRORATION <a href="#id-en-purchaseflowparams.prorationmode-immediate_without_proration" id="id-en-purchaseflowparams.prorationmode-immediate_without_proration"></a>

int IMMEDIATE\_WITHOUT\_PRORATION\
The replacement will take effect immediately and you will be charged the new price on the next payment date. The billing cycle will remain the same.\
Constant Value: 3

### &#x20;DEFERRED <a href="#id-en-purchaseflowparams.prorationmode-deferred" id="id-en-purchaseflowparams.prorationmode-deferred"></a>

int DEFERRED\
When an existing plan expires, a replacement will take effect and you will be charged a new rate simultaneously.\
Constant Value: 4


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://onestore-dev.gitbook.io/dev/eng/tools/billing/v21/references/annptations/purchaseflowparams.prorationmode.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
