Skip to content

v1.2.0

Choose a tag to compare

@github-actions github-actions released this 25 Jan 08:52
· 92 commits to main since this release

Added

  • Mark Paid Support: Mark incoming invoices as paid (mandatory status in French e-invoicing lifecycle)

    • invoices.markPaid(id, data?) - Mark invoice as paid with optional payment reference, date, and note
  • Download Invoice Files: Download original invoice files as binary content

    • invoices.downloadFile(id) - Download PDF (Factur-X with embedded XML)
    • invoices.downloadFile(id, 'xml') - Download standalone XML (UBL/CII)
    • Returns ArrayBuffer for direct file manipulation in Node.js or browser
  • HTTP Client Enhancement:

    • HttpClient.getRaw() - New method for downloading binary content
  • New Types:

    • MarkPaidInput - Input type for marking invoices as paid
    • InvoiceFileFormat - Type for download format ('pdf' | 'xml')
    • InvoiceIncomingPaidPayload - Webhook payload for paid invoices
    • Added paid_at, payment_reference, payment_note fields to Invoice type
    • Added 'paid', 'disputed', 'cancelled' to InvoiceStatus type
  • New Webhook Event:

    • invoice.incoming.paid - Triggered when an incoming invoice is marked as paid