GatewayHandoffEvent class

Single event on the gateway-handoff stream.

Wire shape. This is a leaf object that the orchestrator embeds inside a unified ReaderEvent (the integration branch wires that field). Subscribers can also read these objects directly through the dedicated gatewayHandoffEvents stream the orchestrator exposes.

Security. response and error are passed through verbatim; their toString forms already redact sensitive substructures. The event's own toString does the same.

Constructors

GatewayHandoffEvent({required GatewayHandoffEventType type, required String idempotencyKey, DateTime? timestamp, int? attempt, GatewayHandoffResponse? response, GatewayError? error})
GatewayHandoffEvent.fromJson(Map<String, dynamic> json)
factory

Properties

attempt → int?
1-based attempt number when type is completed or failed. null on started.
final
error → GatewayError?
Failure reason, present only on failed.
final
hashCode → int
The hash code for this object.
no setterinherited
idempotencyKey → String
Idempotency key from the originating GatewayTransactionRequest. Lets the POS correlate the handoff event with the transaction it asked for.
final
response → GatewayHandoffResponse?
Gateway response, present only on completed.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
timestamp → DateTime
UTC event time.
final
type → GatewayHandoffEventType
Discriminator.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited