EmvData class

Represents the data structure for an EMV Compliant QR Code.

This model holds raw data that will be processed by the EmvBuilder.

Constructors

EmvData({bool isDynamic = false, required String currency, String? amount, required String country, required String merchantName, required String merchantCity, String merchantCategory = '0000', required Map<String, String> merchantAccountInfo, String? additionalData})
Creates an instance of EmvData containing all QR payload information.
const

Properties

additionalData String?
Additional Data Field (ID 62). Contains extra info like Terminal ID, Bill Number, or Reference Label.
final
amount String?
Transaction amount. Note: Kept as String to preserve precision and formatting.
final
country String
ISO 3166-1 alpha-2 Country Code (e.g., 'VN').
final
currency String
ISO 4217 Currency Code (e.g., '704' for VND).
final
hashCode int
The hash code for this object.
no setterinherited
isDynamic bool
Defines if the QR is Dynamic (one-time use) or Static.
final
merchantAccountInfo Map<String, String>
Map of Merchant Account Information (IDs 26-51). Key: ID (e.g., '38'), Value: The raw string content of that field.
final
merchantCategory String
Merchant Category Code (MCC). Defaults to '0000' for general undefined category.
final
merchantCity String
Merchant City (Mandatory by EMVCo).
final
merchantName String
Merchant Name (Mandatory by EMVCo).
final
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