@openade/fe
Version:
Fatturazione Elettronica - Electronic Invoicing for Sistema di Interscambio (SDI)
21 lines • 1.03 kB
TypeScript
import type { NotificaEsito, NotificaMancataConsegna, NotificaScarto, ReceiptType, RicevutaConsegna } from '@openade/common';
export declare function parseReceiptType(filename: string): ReceiptType | null;
export declare function parseReceiptFilename(filename: string): {
idPaese?: string;
idCodice?: string;
progressivoInvio?: string;
tipoFile?: ReceiptType;
identificativoSdI?: string;
};
export declare class ReceiptHandler {
private parser;
constructor();
parseReceipt(xml: string, type?: ReceiptType): RicevutaConsegna | NotificaScarto | NotificaMancataConsegna | NotificaEsito | null;
private parseDeliveryReceipt;
private parseRejectionNotice;
private parseUndeliveredNotice;
private parseOutcomeNotice;
isSuccessReceipt(receipt: RicevutaConsegna | NotificaScarto | NotificaMancataConsegna | NotificaEsito): boolean;
getErrors(receipt: RicevutaConsegna | NotificaScarto | NotificaMancataConsegna | NotificaEsito): string[];
}
//# sourceMappingURL=receipt.handler.d.ts.map