@e-invoice-eu/core
    Preparing search index...

    Class InvoiceService

    Render an e-invoice from either an Invoice object or a spreadsheet and a Mapping.

    Index

    Constructors

    Methods

    Constructors

    Methods

    • 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.

      Parameters

      Returns Promise<string | Uint8Array<ArrayBufferLike>>

      the rendered invoice