aeat.application.filing._complementaria module¶
Filing-amendment boundaries for application.filing.
This module builds local complementaria records from a submitted-filing
shape such as domain.submission.ModeloPresentado. It loads
the original domain.filing.ModeloDraft through the governed
draft repository, verifies that the draft still matches the active registry
snapshot, rebuilds an amended draft with
application.filing.build_draft(), computes the
domain.filing.CasillaChange delta, and persists the resulting
domain.filing.ModeloComplementaria.
The read helpers expose the same governed amendment repository and may
return either domain.filing.ModeloComplementaria or
domain.filing.ModeloSustitutiva because the encrypted
repository stores both amendment variants.
See also
domain.filingCanonical amendment records, draft records, and governed repository ports used by this application boundary.
adapters.persistence.profile.filing_amendments.ModeloAmendmentRepositoryAUDIT-classified encrypted persistence for complementaria and sustitutiva records.
application.modelo._amendment_actionsSeparate work-unit amendment flow for externally evidenced modelo filing records.
- build_complementaria(original, updated_inputs, *, schema_provider)[source]¶
Build, persist, and return the
ModeloComplementariafor a submitted filing.- Return type:
- Parameters:
original (object)
updated_inputs (CasillaInputs)
schema_provider (CasillaSchemaProvider)
- load_amendment(amendment_id)[source]¶
Load a previously persisted amendment by id.
Returns a
ModeloComplementariaorModeloSustitutivadepending on the amendment kind.- Return type:
- Parameters:
amendment_id (str)
- list_amendments(*, modelo=None)[source]¶
Return every persisted amendment, optionally filtered by modelo.
Each element is a
ModeloSustitutivaorModeloComplementariadepending on its amendment kind.- Return type:
- Parameters:
modelo (str | None)