InvoiceClearanceResponse class

Response model for invoice clearance requests.

Constructors

InvoiceClearanceResponse.new({ValidationResults? validationResults, ClearanceData? clearanceData, String? clearanceStatus, ServerErrorResponse? serverErrorResponse, UnauthorizedResponse? unauthorizedResponse, String? clearedInvoice, String? base64EncodedQrCode, String? fileName, required InvoiceClearanceResponseStatus status, required int statusCode})
Constructs an InvoiceClearanceResponse instance.
InvoiceClearanceResponse.fromJson(Map<String, dynamic> json, int statusCode)
Parses a InvoiceClearanceResponse object from a JSON map and status code.
factory

Properties

base64EncodedQrCode String?
Base64 encoded qrCode of the cleared invoice
final
clearanceData ClearanceData?
The invoice clearance payload (cleared invoice and status).
final
clearanceStatus String?
The high-level clearance status returned by ZATCA.
final
clearedInvoice String?
Base64 encoded cleared invoice.
final
fileName String?
Base64 hash of the invoice.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serverErrorResponse ServerErrorResponse?
Details of any server-side error returned by ZATCA.
final
status InvoiceClearanceResponseStatus
Parsed enum representing the clearance response status.
final
statusCode int
HTTP status code returned by the server.
final
unauthorizedResponse UnauthorizedResponse?
Information about an unauthorized response.
final
validationResults ValidationResults?
A list of messages that include validation results (errors, warnings, info).
final

Methods

getQrCode() Future<String>
Extract the QR Code from the cleared invoice return by Zatca
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts the object into a JSON map.
toString() String
A string representation of this object.
inherited

Operators

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