initializeZacta method

void initializeZacta({
  1. required String privateKeyPem,
  2. required String certificatePem,
  3. required Supplier supplier,
  4. required String sellerName,
  5. required String sellerTRN,
})

Initializes the ZATCA manager with the required supplier and cryptographic details. supplier - The supplier information. privateKeyPem - The private key in Base64 format. certificatePem - (CSR) The certificate request in Base64 format. sellerName - The name of the seller. sellerTRN - The Tax Registration Number (TRN) of the seller. issuedCertificateBase64 - The issued certificate from zatca compliance. only required for generating UBL standard XML

Implementation

/// [supplier] - The supplier information.
/// [privateKeyPem] - The private key in Base64 format.
/// [certificatePem] - (CSR) The certificate request in Base64 format.
/// [sellerName] - The name of the seller.
/// [sellerTRN] - The Tax Registration Number (TRN) of the seller.
/// [issuedCertificateBase64] - The issued certificate from zatca compliance.  only required for generating UBL standard XML

void initializeZacta({
  required String privateKeyPem,
  required String certificatePem,
  required Supplier supplier,
  required String sellerName,
  required String sellerTRN,
}) {
  _privateKeyPem = privateKeyPem;
  _certificatePem = certificatePem;
  _sellerName = sellerName;
  _sellerTRN = sellerTRN;
  _supplier = supplier;
}