cadrumo.adapters.inbound.financial.ledger_import module

Adapter boundary for application-owned ledger import capabilities.

Concrete statement providers remain in providers. This module is the translation point that makes their DTOs and failure hierarchy invisible to the application ledger action, and it binds the storage-facing catalogue location without exporting storage namespace metadata inward.

class FinancialProviderResolverAdapter[source]

Bases: object

Resolve the supported provider IDs using the concrete parser registry.

resolve(*, provider_id, path)[source]

Return a translated provider for provider_id and path.

Return type:

FinancialProviderProtocol | None

Parameters:
class SecureTransactionCatalogueLocationAdapter(*args, **kwargs)[source]

Bases: TransactionCatalogueLocationProtocol

Translate the transaction catalogue namespace to its public URI form.

path_for(*, bucket_id)[source]

Return the stable URI used in application import summaries.

Return type:

str

Parameters:

bucket_id (str)

build_ledger_import_ports()[source]

Compose the provider and catalogue-location capabilities for import.

Return type:

LedgerImportPorts