FatooraService class
Zatca Fatoora Service has all the API for doing everything that the Zataca Java SDK provides.
These include the following:
1
Generating CSR.
2
Signing Invoice/Note.
3
Validating Invoice/Note.
4
Generating Invoice Hash.
5
Generating Invoice QR Code.
6
Generating Invoice Request API.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
Static Methods
-
generateCsr(
{required String csrConfigFile, String? privateKeyFile, String? outputCsrFile}) → Future< FatooraServiceCsrResponse> - This method generates a CSR file using Fatoora CLI Note: Because providing file name for generated private key and csr file makes the result not accurate, we have disabled it and used a work-aroud for providing the name of the generated csr and key files accordingly in a way that is more reliable. That means you can provide what you want the generated csr and key file to be named and it will be renamed to those you provide.
-
generateInvoiceHash(
String invoiceFileName) → Future< FatooraInvoiceHashResponse> - Generate Invoice Hash. Just pass in the name of the invoice/note file you want to generate hash from
-
generateInvoiceQRCode(
String invoiceFileName) → Future< FatooraQrCodeResponse> - Generates a QR code for the invoice.
-
generateInvoiceRequestAPI(
{required String invoiceFileName, String? outputJsonFileName, bool forClearance = false}) → Future< FatooraInvoiceRequestApiResponse> - Generates an Invoice Request API for a given invoice.
-
getHelp(
) → Future< FatooraServiceResponse> - Provides help information for using the Fatoora CLI.
-
signInvoice(
{required String invoiceFileName, String? outputSignedInvoiceFileName, bool isForComplianceCheck = false}) → Future< FatooraServiceResponse> - Signs an invoice XML file using Fatoora CLI
-
validateInvoice(
{required String invoiceFileName, bool ignoreWarningForResponseStatus = false}) → Future< FatooraServiceResponse> - Validates an invoice XML file using Fatoora CLI.