BREAKING CHANGE(XInvoice): Refactor XInvoice API for XML handling and PDF export by replacing deprecated methods (addXmlString and getParsedXmlData) with fromXml and loadXml, and by introducing a new ExportFormat type for type-safe export. Update tests accordingly.
This commit is contained in:
@ -45,6 +45,13 @@ export enum InvoiceFormat {
|
||||
FATTURAPA = 'fatturapa' // FatturaPA (Italian e-invoice format)
|
||||
}
|
||||
|
||||
/**
|
||||
* Formats supported for export operations
|
||||
* This is a subset of InvoiceFormat that only includes formats
|
||||
* that can be generated and embedded in PDFs
|
||||
*/
|
||||
export type ExportFormat = 'facturx' | 'zugferd' | 'xrechnung' | 'ubl';
|
||||
|
||||
/**
|
||||
* Describes a validation level for invoice validation
|
||||
*/
|
||||
|
Reference in New Issue
Block a user