lbx-invoice
Version:
Provides functionality around generating invoices.
17 lines (16 loc) • 840 B
TypeScript
import { BaseCompanyInfo, BaseInvoice } from '../models';
/**
* Provides functionality for handling the german X-Rechnung format.
*/
export declare abstract class XRechnungUtilities {
/**
* Creates and attaches a factur-x xml to the invoice pdf at the given path.
* @param pdfFilePath - The path of the invoice pdf to attach to.
* @param invoice - The invoice data to generate the xml from.
* @param currency - The currency code, eg. 'USD'.
* @param companyInfo - Info about the seller.
* @param tradeContact - The trade contact. Defaults to companyInfo.ceo.
*/
static attachXRechnung<Invoice extends BaseInvoice>(pdfFilePath: string, invoice: Invoice, currency: string, companyInfo: BaseCompanyInfo, tradeContact?: string | undefined): Promise<void>;
private static createXRechnungBytes;
}