cadrumo.adapters.inbound.justificante package

Inbound parser adapter for AEAT justificante receipt PDFs.

Parses the receipt PDF AEAT issues after a filing into the strict domain.justificante.schema.Justificante domain record used by reconciliation and evidence workflows. A justificante is receipt metadata (CSV, modelo, period, taxpayer, timestamp, totals, verification URL), not the casilla-complete filing copy handled by adapters.inbound.declaracion.

Both public entry points keep the receipt boundary narrow: the filesystem route hashes the PDF and the bytes route supports secure-storage captures without materialising plaintext scratch files. The field extraction discipline and structured domain.justificante.errors.JustificanteParseError attributes live below this package boundary.

Major declaration:

  • parse_justificante() — parse a justificante PDF into its typed domain record.

  • parse_justificante_bytes() — parse secure-storage bytes without materialising a plaintext file.

Subpackages

Submodules