aeat.domain.modelos._verification_repository module¶
Encrypted SQL repository for verification reports.
VerificationReportCatalogueRepository persists
and loads VerificationReport entries in a
VerificationReportCatalogue via
SecureObjectRepository at
FINANCIAL SensitivityClass.
The catalogue is stored as a single encrypted BLOB per profile bucket and
wrapped in Envelope before
serialisation.
The storage contract is declared by
aeat.adapters.persistence.storage.MODELO_VERIFICATION_REPORT_CATALOGUE_NAMESPACE;
its default object key is the singleton catalogue row.
- exception VerificationReportPersistenceError(message=None, *, context=None, suggestion=None, translated_message=None)[source]¶
Bases:
ModeloErrorRaised when the verification-report catalogue cannot be persisted or loaded.
This wraps storage-boundary failures from
VerificationReportCatalogueRepositorywhile preserving translated recovery context for callers.- Parameters:
- Return type:
None
- code: ClassVar[ErrorCode]¶
- upsert_verification_report(catalogue, report)[source]¶
Return a new catalogue with
reportinserted or replaced.- Return type:
- Returns:
A
VerificationReportCataloguewith the given report added or updated.- Parameters:
catalogue (VerificationReportCatalogue)
report (VerificationReport)