@disruptive-learning/cfdi-to-pdf
Version:
Librería para crear un pdf basado en un XML CFDI o Retenciones
31 lines (30 loc) • 1.02 kB
TypeScript
import { type XmlNodeInterface } from '@nodecfdi/cfdi-core/types';
export default abstract class AbstractInvoiceData {
protected _emisor: XmlNodeInterface;
protected _receptor: XmlNodeInterface;
protected _timbreFiscalDigital: XmlNodeInterface;
protected _qrUrl: string;
protected _tfdSourceString: string;
protected _logo: string | undefined;
protected _additionalFields: {
title: string;
value: string;
}[] | undefined;
protected _legendFooter: string;
emisor(): XmlNodeInterface;
receptor(): XmlNodeInterface;
timbreFiscalDigital(): XmlNodeInterface;
qrUrl(): string;
tfdSourceString(): string;
logo(): string | undefined;
additionalFields(): {
title: string;
value: string;
}[] | undefined;
buildTfdSource(): void;
buildUrlQr(node: XmlNodeInterface): void;
private createTfdSourceString1_0;
private createTfdSourceString1_1;
setLegendFooter(legendFooter: string): void;
legendFooter(): string;
}