GatewayTransactionRequestBuilder class
Helper that builds a GatewayTransactionRequest from the already-validated inputs the controller has at hand, enforcing the reader-metadata allow-list at construction time. Lives next to the model so the safe-fields contract is auditable in one file.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
Static Methods
-
build(
{required Map< String, dynamic> encryptedPayloadMap, required int amountMinorUnits, required String currency, required String idempotencyKey, Map<String, dynamic> ? transactionMetadata}) → GatewayTransactionRequest -
Build a request from raw input. The encrypted-payload
bridge map (
encryptedPayload/ksn/entryMode/deviceSerial/batteryLevel/reader) is what the native transaction-runner emits today viaTransactionPayloadMapper.buildEncryptedPayload.
Constants
-
readerSafeKeys
→ const Set<
String> -
Keys allowed inside the
readersub-map. Anything else is silently dropped to keep the wire shape stable.