ReplacementMode enum
Enum representing the replacement mode.
When upgrading or downgrading a subscription, set this mode to provide details about the replacement that will be applied when the subscription changes.
Wraps BillingFlowParams.SubscriptionUpdateParams.ReplacementMode
See the linked documentation for an explanation of the different constants.
Values
- unknownReplacementMode → const ReplacementMode
-
Unknown upgrade or downgrade policy.
- withTimeProration → const ReplacementMode
-
Replacement takes effect immediately, and the remaining time will be prorated and credited to the user.
This is the current default behavior.
- chargeProratedPrice → const ReplacementMode
-
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.
- withoutProration → const ReplacementMode
-
Replacement takes effect immediately, and the new price will be charged on next recurrence time.
The billing cycle stays the same.
- deferred → const ReplacementMode
-
Replacement takes effect when the old plan expires, and the new price will be charged at the same time.
- chargeFullPrice → const ReplacementMode
-
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.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
ReplacementMode> - A constant List of the values in this enum, in order of their declaration.