Packagecom.myflashlab.air.extensions.billing
Classpublic class ProrationMode
InheritanceProrationMode Inheritance Object

(Android) available proration modes when using replaceSubscription method.



Public Constants
 ConstantDefined By
  DEFERRED : int = 4
[static] Replacement takes effect when the old plan expires, and the new price will be charged at the same time.
ProrationMode
  IMMEDIATE_AND_CHARGE_PRORATED_PRICE : int = 2
[static] Replacement takes effect immediately, and the billing cycle remains the same.
ProrationMode
  IMMEDIATE_WITHOUT_PRORATION : int = 3
[static] Replacement takes effect immediately, and the new price will be charged on next recurrence time.
ProrationMode
  IMMEDIATE_WITH_TIME_PRORATION : int = 1
[static] Replacement takes effect immediately, and the remaining time will be prorated and credited to the user.
ProrationMode
  UNKNOWN_SUBSCRIPTION_UPGRADE_DOWNGRADE_POLICY : int = 0
[static]
ProrationMode
Constant Detail
DEFERREDConstant
public static const DEFERRED:int = 4

Replacement takes effect when the old plan expires, and the new price will be charged at the same time.

IMMEDIATE_AND_CHARGE_PRORATED_PRICEConstant 
public static const IMMEDIATE_AND_CHARGE_PRORATED_PRICE:int = 2

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.

IMMEDIATE_WITH_TIME_PRORATIONConstant 
public static const IMMEDIATE_WITH_TIME_PRORATION:int = 1

Replacement takes effect immediately, and the remaining time will be prorated and credited to the user. This is the current default behavior.

IMMEDIATE_WITHOUT_PRORATIONConstant 
public static const IMMEDIATE_WITHOUT_PRORATION:int = 3

Replacement takes effect immediately, and the new price will be charged on next recurrence time. The billing cycle stays the same.

UNKNOWN_SUBSCRIPTION_UPGRADE_DOWNGRADE_POLICYConstant 
public static const UNKNOWN_SUBSCRIPTION_UPGRADE_DOWNGRADE_POLICY:int = 0