cadrumo.adapters.inbound.reconciliation_parser module¶
Inbound PDF parser composition for modelo reconciliation.
Core types:
RegistrySnapshot.
- class InboundReconciliationEvidenceParser(*args, **kwargs)[source]¶
Bases:
ReconciliationEvidenceParserPortCompose the shipped declaración and justificante PDF parsers.
The PDF parser trees load on first parse, not when the host binds this port.
- parse_justificante(source)[source]¶
Parse one local justificante PDF.
- Return type:
- Parameters:
source (Path)
- parse_justificante_bytes(source)[source]¶
Parse one in-memory justificante PDF.
- Return type:
- Parameters:
source (bytes)
- parse_declaracion(source, *, modelo, filing_year, period)[source]¶
Parse one local declaración PDF against its addressed work unit.
- Return type:
- Parameters:
- parse_declaracion_bytes(source, *, modelo, filing_year, period, registry_snapshot)[source]¶
Parse decrypted declaration bytes against a validated snapshot.
Core types:
RegistrySnapshot.- Return type:
- Parameters:
source (bytes)
modelo (str)
filing_year (int)
period (str)
registry_snapshot (RegistrySnapshot)