cadrumo.application.ledger.invoice_confirmation_ports module

Application-owned capabilities for invoice confirmation.

Invoice confirmation links the source attachment to the invoice that the confirmation mints (or reuses). The application owns that capability’s boundary; an executable composition root supplies the bucket-bound attachment store implementation. Attachment manifests and their domain errors remain domain values, so no persistence adapter DTO or exception crosses inward.

exception InvoiceConfirmationPersistenceError(operation)[source]

Bases: CadrumoError

Translated failure from the confirmation attachment capability.

Parameters:

operation (str)

Return type:

None

code
class InvoiceConfirmationPorts(attachment_store)[source]

Bases: object

Required authorities for one bucket-scoped invoice confirmation.

Parameters:

attachment_store (AttachmentStoreProtocol)

attachment_store: AttachmentStoreProtocol
class InvoiceConfirmationPortsFactory(*args, **kwargs)[source]

Bases: Protocol

Construct the complete confirmation capability bundle for one bucket.