aeat.domain.modelos._filing_repository module¶
Domain-side filing-record catalogue port surface.
This module owns the pure filing-record catalogue vocabulary: the
ModeloRecordPersistenceError raised at the storage boundary, the
upsert_filing_record() pure mutator, and the namespace / schema-version
constants that name the persisted envelope contract. The concrete encrypted
SQL repository lives in the persistence adapter
ModeloRecordCatalogueRepository,
behind the read-side
ModeloRecordCatalogueRepositoryProtocol; the
domain package depends only on the structural port.
- exception ModeloRecordPersistenceError(message=None, *, context=None, suggestion=None, translated_message=None)[source]¶
Bases:
ModeloErrorRaised when the filing-record catalogue cannot be persisted or loaded.
This wraps storage-boundary failures from
ModeloRecordCatalogueRepositorywhile preserving translated recovery context for callers.- Parameters:
- Return type:
None
- code: ClassVar[ErrorCode]¶
- upsert_filing_record(catalogue, record)[source]¶
Return a new
ModeloRecordCataloguewithrecordinserted or replaced.- Parameters:
catalogue (
ModeloRecordCatalogue) – Source catalogue to update.record (
ModeloRecord) – TheModeloRecordto insert or replace.
- Return type: