MagicStarterStorePurchaseOutcome enum

How a store purchase ended, for the screen to report.

An exception is NOT an outcome: a rail failure is thrown by MagicStarterBillingController.purchaseInStoreAndWait and reported by its code, and a store-pending purchase is one of them.

Inheritance
Available extensions

Values

dismissed → const MagicStarterStorePurchaseOutcome

The customer closed the sheet. Nothing was bought and nothing is waiting.

confirmed → const MagicStarterStorePurchaseOutcome

The backend's entitlement moved, so the purchase is reflected.

deferred → const MagicStarterStorePurchaseOutcome

The store applies the change at the end of the current paid period (StoreChangeTiming.atRenewal), so the entitlement is not expected to move now and nothing was polled.

processing → const MagicStarterStorePurchaseOutcome

The store reported the purchase and the backend had not reflected it by the end of the wait. Not a failure: the webhook may still land.

abandoned → const MagicStarterStorePurchaseOutcome

The wait was cancelled (the screen closed, or the team switched) before it reached an answer, so there is nothing left to report to.

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<MagicStarterStorePurchaseOutcome>
A constant List of the values in this enum, in order of their declaration.