TransactionCoordinatorOutcomeKind enum
What kind of outcome the TransactionCoordinator produced.
Distinct from TransactionResultStatus because the
coordinator answers a different question: not "what is the
gateway's verdict" (that's TransactionResult.status) but
"which path did we take to arrive at the terminal
state?"
The two enums are deliberately not 1:1:
payloadCapturedOnlyis the coordinator's "we got the encrypted payload and we are NOT doing the handoff; the POS must forward" outcome. The wrapped TransactionResult.status is TransactionResultStatus.unknown because the gateway never ran.gatewayApprovedis the coordinator's "we ran the handoff and the gateway said yes" outcome. The wrapped TransactionResult.status is TransactionResultStatus.approved and there is a non-null TransactionCoordinatorOutcome.gatewayResponse.
Wire identifiers are stable; renaming is breaking.
Values
- payloadCapturedOnly → const TransactionCoordinatorOutcomeKind
-
gatewayHandoffwas disabled or the SDK is configured forpayloadOnlymode. The reader produced an encrypted payload that the POS must forward through its own backend client. The wrapped TransactionResult hasstatus = unknownand the encrypted payload is available on the unified event stream asencryptedPayloadReady.const TransactionCoordinatorOutcomeKind('payload_captured_only') - gatewayApproved → const TransactionCoordinatorOutcomeKind
-
gatewayHandoffran and the backend approved.const TransactionCoordinatorOutcomeKind('gateway_approved') - gatewayDeclined → const TransactionCoordinatorOutcomeKind
-
gatewayHandoffran and the backend declined.const TransactionCoordinatorOutcomeKind('gateway_declined') - gatewayPending → const TransactionCoordinatorOutcomeKind
-
gatewayHandoffran and the backend has not yet made a decision (async authorization). The POS polls via its own backend hooks; the SDK does not poll.const TransactionCoordinatorOutcomeKind('gateway_pending') - gatewayFailed → const TransactionCoordinatorOutcomeKind
-
gatewayHandoffran but the request never produced a gateway verdict (network failure, parse failure, timeout, mis-configuration). TransactionCoordinatorOutcome.gatewayError carries the structured cause.const TransactionCoordinatorOutcomeKind('gateway_failed') - readerFailed → const TransactionCoordinatorOutcomeKind
-
The reader / native layer failed (BLE drop, MTSCRA_NOT_WIRED, encrypted payload missing, ...) before any handoff could happen. TransactionCoordinatorOutcome.readerError carries the structured cause.
const TransactionCoordinatorOutcomeKind('reader_failed') - cancelled → const TransactionCoordinatorOutcomeKind
-
The transaction was cancelled (by the POS or by the reader user).
const TransactionCoordinatorOutcomeKind('cancelled') - timedOut → const TransactionCoordinatorOutcomeKind
-
The end-to-end coordinator timeout fired.
const TransactionCoordinatorOutcomeKind('timed_out')
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
Constants
-
values
→ const List<
TransactionCoordinatorOutcomeKind> - A constant List of the values in this enum, in order of their declaration.