ZatcaQr class
A class representing a ZATCA-compliant QR code and invoice data.
Constructors
- ZatcaQr({required String sellerName, required String sellerTRN, required String issueDateTime, required String invoiceHash, required String digitalSignature, required String publicKey, required String certificateSignature, required BaseInvoice invoiceData, required String xmlString})
-
ZatcaQr.fromMap(Map<
String, dynamic> json) -
Creates a new ZatcaQr instance from a map.
factory
Properties
- certificateSignature → String
-
Base64-encoded certificate signature
final
- digitalSignature → String
-
ECDSA digital signature
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- invoiceData → BaseInvoice
-
The invoice data
final
- invoiceHash → String
-
SHA-256 hash of the invoice
final
- issueDateTime → String
-
ISO 8601 format date and time
final
- publicKey → String
-
Base64-encoded public key
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sellerName → String
-
Seller's name
final
- sellerTRN → String
-
Seller's VAT registration number
final
- xmlString → String
-
The XML string representation of the invoice
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> - Converts the ZatcaQr instance to a map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited