aeat.application.transactions package

Pre-persistence ledger-import diagnostics package.

Transaction catalogue mutation primitives are pure domain services; import them from domain.transactions. This application package hosts the diagnostic preview helper the ledger import path consumes before persistence.

import_ledger_with_diagnostics() evaluates provider-emitted domain.transactions.RawTransaction rows against an existing domain.transactions.TransactionCatalogue, returns an immutable LedgerImportResult, and leaves catalogue mutation, FX normalization, and bucket-event emission to application.ledger. Duplicate diagnostics use the same domain.transactions.derive_import_fingerprint() identity as the persisting import path, so dry-run reports and saved imports agree.

See also

LedgerImportDiagnostic

Typed import finding grouped by LedgerImportDiagnosticKind and core.errors.BaseSeverity.

LedgerImportResult

Immutable preview summary containing imported/skipped counts and diagnostics.

import_ledger_with_diagnostics()

Diagnostic-only import preview helper.

application.ledger.import_ledger_transactions()

Bucket-scoped import service that persists new transactions and emits ledger bucket events.

application.ledger.import_ledger_source()

CLI-facing source import orchestration that parses provider files before calling the persisting ledger import path.

Submodules