cadrumo.application.ledger.import_ports module¶
Application-owned capabilities for ledger source imports.
The ledger import action coordinates source parsing and persistence, but it
does not choose a provider implementation or know the secure-object namespace
used by the transaction catalogue. Those choices are supplied by an outer
composition root through the two capabilities in LedgerImportPorts.
The value records in this module are the small application boundary DTOs. An inbound adapter may use richer parser records internally, but it must translate them to these records before handing control to the application action.
- class LedgerParsedRow(raw, direction)[source]¶
Bases:
objectApplication view of one parsed source row.
- Parameters:
raw (RawTransaction)
direction (TransactionDirection)
-
raw:
RawTransaction¶
-
direction:
TransactionDirection¶
- class LedgerProviderValidation(is_valid, warnings=(), detected_encoding=None, detected_dialect=None, unavailable_optional_extra=None)[source]¶
Bases:
objectApplication view of provider validation facts.
- Parameters:
- class LedgerProviderResolverProtocol(*args, **kwargs)[source]¶
Bases:
ProtocolResolve one canonical provider ID to an application source port.
- class TransactionCatalogueLocationProtocol(*args, **kwargs)[source]¶
Bases:
ProtocolRender the application-facing location of a persisted catalogue.
- class LedgerImportPorts(provider_resolver, catalogue_location)[source]¶
Bases:
objectRequired source and catalogue-location capabilities for ledger import.
- Parameters:
provider_resolver (LedgerProviderResolverProtocol)
catalogue_location (TransactionCatalogueLocationProtocol)
-
provider_resolver:
LedgerProviderResolverProtocol¶
-
catalogue_location:
TransactionCatalogueLocationProtocol¶