TransactionResultStatus enum

Canonical outcome status of a transaction attempt.

Every transaction terminates in exactly one of these states. The gateway (via em-api) is the source of truth for approved/declined; the SDK is the source of truth for cancelled / timedOut / failed when the gateway was never reached.

Wire identifiers are stable; renaming an existing value is breaking. New values are added by appending.

Inheritance
Available extensions

Values

approved → const TransactionResultStatus
const TransactionResultStatus('approved')
declined → const TransactionResultStatus
const TransactionResultStatus('declined')
cancelled → const TransactionResultStatus
const TransactionResultStatus('cancelled')
timedOut → const TransactionResultStatus
const TransactionResultStatus('timed_out')
failed → const TransactionResultStatus
const TransactionResultStatus('failed')
unknown → const TransactionResultStatus
const TransactionResultStatus('unknown')

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
wire → String
final

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

Static Methods

fromWire(String? value) → TransactionResultStatus

Constants

values → const List<TransactionResultStatus>
A constant List of the values in this enum, in order of their declaration.