@e-invoice-eu/core
Version:
Generate e-invoices (E-Rechnung in German) conforming to EN16931 (Factur-X/ZUGFeRD, UBL, CII, XRechnung aka X-Rechnung) from LibreOffice Calc/Excel data or JSON.
20 lines (19 loc) • 686 B
TypeScript
import { Logger } from '../logger.interface';
import { EInvoiceFormat } from './format.e-invoice-format.interface';
export type EInvoiceMIMEType = 'application/pdf' | 'application/xml';
export type FormatInfo = {
name: string;
customizationID: string;
profileID: string;
mimeType: EInvoiceMIMEType;
syntax: 'UBL' | 'CII';
};
export declare class FormatFactoryService {
private readonly formatServices;
private readonly formatServicesLookup;
constructor();
createFormatService(format: string, logger: Logger): EInvoiceFormat;
listFormatServices(): FormatInfo[];
normalizeFormat(format: string): string;
info(format: string): FormatInfo;
}