cadrumo.application.invoices.source_resolver_ports module

Application-owned capabilities for invoice source resolution.

The invoice source-mesh resolver needs only a read projection of the invoice catalogue. The application owns that narrow capability and its translated persistence failure; an outer composition root binds the encrypted repository adapter for each bucket.

Core types: InvoiceCatalogue.

exception InvoiceSourcePersistenceError(operation)[source]

Bases: CadrumoError

Translated failure while reading the invoice source catalogue.

Parameters:

operation (str)

Return type:

None

code
class InvoiceSourceCatalogueReader(*args, **kwargs)[source]

Bases: Protocol

Read the bucket-bound invoice catalogue used by source resolution.

load()[source]

Return the validated invoice catalogue for the composed bucket.

Return type:

InvoiceCatalogue

class InvoiceSourceResolverPorts(catalogue_reader)[source]

Bases: object

Required capabilities for one invoice source-mesh resolver.

Parameters:

catalogue_reader (InvoiceSourceCatalogueReader)

catalogue_reader: InvoiceSourceCatalogueReader