cadrumo.adapters.persistence.profile.invoice_confirmation module¶
Persistence adapter for the invoice-confirmation capability.
The application confirmation flow consumes the public attachment-store protocol. This module binds that protocol to the encrypted attachment store for one bucket and translates storage failures into the application-owned confirmation error before they cross the boundary.
- class InvoiceConfirmationAttachmentStoreAdapter(*, store)[source]¶
Bases:
AttachmentStoreProtocolTranslate the encrypted attachment store to the confirmation port.
- Parameters:
store (AttachmentStore)
- write_manifest(attachment)[source]¶
Write a manifest while translating persistence failures.
- Return type:
- Parameters:
attachment (Attachment)
- load_manifest(attachment_id)[source]¶
Load a manifest while preserving an ordinary domain miss.
- Return type:
- Parameters:
attachment_id (str)