Creates a new instance of the service.
The logger instance used for logging messages, warnings and errors.
Generate an e-invoice. The input gets validated against the invoiceSchema JSON schema, to make sure that it properly fulfills the Invoice interface.
If the specific format is an XML format (has the MIME type
"application/xml"
), it gets returned as a string
. In case of a
PDF format (MIME type "application/pdf"
), a Uint8Array
is returned.
the input data
modify various aspects of the invoice.
the rendered invoice
Render an e-invoice from either an Invoice object or a spreadsheet and a Mapping.