Type Alias InvoiceServiceOptions

InvoiceServiceOptions: {
    attachments?: FileInfo[];
    embedPDF?: boolean;
    format: string;
    lang: string;
    libreOfficePath?: string;
    pdf?: FileInfo;
    spreadsheet?: FileInfo;
}

Invoice creation options.

Type declaration

  • Optionalattachments?: FileInfo[]

    An array of supplementary attachments.

  • OptionalembedPDF?: boolean

    Set to invoice description if invoice should be embedded.

  • format: string

    The invoice format like XRECHNUNG-UBL or Factur-X-Extended.

  • lang: string

    A language identifier like "fr-ca".

  • OptionallibreOfficePath?: string

    Path to LibreOffice executable.

  • Optionalpdf?: FileInfo

    A PDF version of the invoice. For Factur-X, either data or pdf must be present.

  • Optionalspreadsheet?: FileInfo

    The spreadsheet data.