API reference
API reference
Select your platform
No SDKs available
No versions available

ReplacementMode

ReplacementMode

annotation class ReplacementMode
Supported replacement modes to replace an existing subscription with a new one.

Types

NameSummary
Companion
object Companion

Companion

object Companion

Properties

NameSummary
CHARGE_FULL_PRICE
const val CHARGE_FULL_PRICE: Int = 5
The new plan 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.
CHARGE_PRORATED_PRICE
const val CHARGE_PRORATED_PRICE: Int = 2
The new plan takes effect immediately, and the billing cycle remains the same.
DEFERRED
const val DEFERRED: Int = 6
The new purchase takes effect immediately, the new plan will take effect when the old item expires.
UNKNOWN_REPLACEMENT_MODE
const val UNKNOWN_REPLACEMENT_MODE: Int = 0
WITH_TIME_PRORATION
const val WITH_TIME_PRORATION: Int = 1
WITHOUT_PRORATION
const val WITHOUT_PRORATION: Int = 3
The new plan takes effect immediately, and the new price will be charged on next recurrence time.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon