SubscriptionStatus enum
The state of a subscription, as returned by the API.
Values
- newSubscription → const SubscriptionStatus
-
The subscription was just created and has not yet started billing.
const SubscriptionStatus('NEW')
- trial → const SubscriptionStatus
-
The customer is currently enjoying a free-trial period.
const SubscriptionStatus('TRIAL')
- incomplete → const SubscriptionStatus
-
The subscription is incomplete.
const SubscriptionStatus('INCOMPLETE')
- active → const SubscriptionStatus
-
The subscription is in good standing.
const SubscriptionStatus('ACTIVE')
- pastDue → const SubscriptionStatus
-
Payment is overdue.
const SubscriptionStatus('PAST_DUE')
- pendingCancellation → const SubscriptionStatus
-
Subscription is waiting to be canceled.
const SubscriptionStatus('PENDING_CANCELLATION')
- cancelled → const SubscriptionStatus
-
Subscription was cancelled.
const SubscriptionStatus('CANCELLED')
- ended → const SubscriptionStatus
-
Subscription reached its natural.
const SubscriptionStatus('ENDED')
- terminated → const SubscriptionStatus
-
Subscription was terminated.
const SubscriptionStatus('TERMINATED')
- paused → const SubscriptionStatus
-
Subscription is paused.
const SubscriptionStatus('PAUSED')
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
-
toJson(
) → String - Encode to the exact API string.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromJson(
String? value) → SubscriptionStatus? -
Decode from the API string. Returns
null
if the value isnull
.
Constants
-
values
→ const List<
SubscriptionStatus> - A constant List of the values in this enum, in order of their declaration.