The import of supplier e-invoices needs a reading layer that turns a
received file into plain records, whatever form the file arrives in.
- Fiscal.Abstractions: IIncomingInvoiceReader, an optional pack feature,
with the IncomingInvoiceFile records and the incoming.* error codes the
import service and screens build on.
- Infrastructure: CmsSignedData, a minimal CMS SignedData (CAdES .p7m)
reader on System.Formats.Asn1, since System.Security.Cryptography.Pkcs
is a separate package. It accepts DER, BER with indefinite lengths and
chunked content, base64 text and nested envelopes; it checks the
message digest and the RSA (PKCS#1, PSS) or ECDSA signature with the
embedded certificate and reports signer, tax code, validity and signing
time. No trust chain or revocation check: no trusted list offline.
- Fiscal.Italy: FatturaPaReader for FPR12/FPA12 v1.2.x and FSM10, matched
by local name, DTD prohibited and no resolver, BOM/windows-1252/missing
declaration tolerated, batches as one invoice per body, attachments
decoded; registered in ItalyFiscalPack.
- Tests build every sample and signed envelope in code (AsnWriter and
self-signed certificates), nothing downloaded.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>