ComplianceInvoiceCheckResponse class
Response model for invoice compliance status checking.
This model is used to represent the outcome of a compliance check for an invoice submission to ZATCA. It captures both successful validations and various error cases including unauthorized access or server failures.
Constructors
- ComplianceInvoiceCheckResponse.new({ValidationResults? validationResults, String? reportingStatus, String? clearanceStatus, String? qrSellertStatus, String? qrBuyertStatus, ServerErrorResponse? serverErrorResponse, UnauthorizedResponse? unauthorizedResponse, required CCSIDCheckResponseStatus status, required int statusCode})
- Constructor for creating a ComplianceInvoiceCheckResponse instance.
-
ComplianceInvoiceCheckResponse.fromJson(Map<
String, dynamic> json, int statusCode) -
Factory constructor that creates a ComplianceInvoiceCheckResponse object from JSON.
factory
Properties
- clearanceStatus → String?
-
Indicates the clearance status of the invoice (e.g., "CLEARED", "NOT_CLEARED").
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- qrBuyertStatus → String?
-
QR code status as seen by the buyer side, useful for QR validation.
final
- qrSellertStatus → String?
-
QR code status as seen by the seller side, useful for QR validation.
final
- reportingStatus → String?
-
Indicates the reporting status of the invoice (e.g., "REPORTED", "NOT_REPORTED").
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serverErrorResponse → ServerErrorResponse?
-
Represents server-side error response, if a server error occurred.
final
- status → CCSIDCheckResponseStatus
-
Represents the overall status of the response based on server interpretation.
final
- statusCode → int
-
The HTTP status code of the response.
final
-
Represents the response data when a request is unauthorized (HTTP 401/403).
final
- validationResults → ValidationResults?
-
Contains detailed results of the validation process if available.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts the ComplianceInvoiceCheckResponse instance back to a JSON map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited