ReaderConfig class

Immutable configuration supplied by the POS app to initialize().

The SDK does not own merchant identity, processor credentials, or gateway endpoints. The POS app constructs this config; credentials for the gateway live exclusively in em-api.

Constructors

ReaderConfig({required ReaderEnvironment environment, required String merchantId, String? locale, ReaderLogLevel logLevel = ReaderLogLevel.info, String? defaultCurrency, bool enableEventStream = true})
const
ReaderConfig.fromJson(Map<String, dynamic> json)
factory

Properties

defaultCurrency → String?
Optional default ISO 4217 currency used when a TransactionRequest omits one. The SDK does not pick a default; the POS does.
final
enableEventStream → bool
If false, the SDK will not push events on the MobileReaderSdk.events stream (the methods still return their futures). Defaults to true.
final
environment → ReaderEnvironment
em-api environment to target.
final
hashCode → int
The hash code for this object.
no setteroverride
locale → String?
Optional BCP-47 locale (e.g. en-US) for reader prompts.
final
logLevel → ReaderLogLevel
SDK log verbosity. Defaults to ReaderLogLevel.info.
final
merchantId → String
POS-supplied merchant identifier. Opaque to the SDK; passed through to em-api on every authorization request.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({ReaderEnvironment? environment, String? merchantId, String? locale, ReaderLogLevel? logLevel, String? defaultCurrency, bool? enableEventStream}) → ReaderConfig
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.
override