BillingFlowParams.ProrationMode
public
static
abstract
@interface
BillingFlowParams.ProrationMode
implements
Annotation
com.android.billingclient.api.BillingFlowParams.ProrationMode |
This @interface is deprecated.
use BillingFlowParams.SubscriptionUpdateParams.ReplacementMode
instead.
Replace SKU ProrationMode.
Summary
Constants | |
---|---|
int |
DEFERRED
Replacement takes effect when the old plan expires, and the new price will be charged at the same time. |
int |
IMMEDIATE_AND_CHARGE_FULL_PRICE
Replacement takes effect immediately, and the user is charged full price of new plan and is given a full billing cycle of subscription, plus remaining prorated time from the old plan. |
int |
IMMEDIATE_AND_CHARGE_PRORATED_PRICE
Replacement takes effect immediately, and the billing cycle remains the same. |
int |
IMMEDIATE_WITHOUT_PRORATION
Replacement takes effect immediately, and the new price will be charged on next recurrence time. |
int |
IMMEDIATE_WITH_TIME_PRORATION
Replacement takes effect immediately, and the remaining time will be prorated and credited to the user. |
int |
UNKNOWN_SUBSCRIPTION_UPGRADE_DOWNGRADE_POLICY
|
Inherited methods | |
---|---|
Constants
DEFERRED
public static final int DEFERRED
Replacement takes effect when the old plan expires, and the new price will be charged at the same time.
Constant Value: 4 (0x00000004)
IMMEDIATE_AND_CHARGE_FULL_PRICE
public static final int IMMEDIATE_AND_CHARGE_FULL_PRICE
Replacement takes effect immediately, and the user is charged full price of new plan and is given a full billing cycle of subscription, plus remaining prorated time from the old plan.
Constant Value: 5 (0x00000005)
IMMEDIATE_AND_CHARGE_PRORATED_PRICE
public static final int IMMEDIATE_AND_CHARGE_PRORATED_PRICE
Replacement takes effect immediately, and the billing cycle remains the same. The price for the remaining period will be charged. This option is only available for subscription upgrade.
Constant Value: 2 (0x00000002)
IMMEDIATE_WITHOUT_PRORATION
public static final int IMMEDIATE_WITHOUT_PRORATION
Replacement takes effect immediately, and the new price will be charged on next recurrence time. The billing cycle stays the same.
Constant Value: 3 (0x00000003)
IMMEDIATE_WITH_TIME_PRORATION
public static final int IMMEDIATE_WITH_TIME_PRORATION
Replacement takes effect immediately, and the remaining time will be prorated and credited to the user. This is the current default behavior.
Constant Value: 1 (0x00000001)
UNKNOWN_SUBSCRIPTION_UPGRADE_DOWNGRADE_POLICY
public static final int UNKNOWN_SUBSCRIPTION_UPGRADE_DOWNGRADE_POLICY
Constant Value: 0 (0x00000000)