aeat.domain.filing package

Public filing facade for modelo drafts, validation, and amendment records.

The domain.filing subpackage owns the immutable records and repository contracts that describe registry-backed local drafts: ModeloDraft, ModeloValue, ModeloBindingValue, ModeloCasillaProvenance, and ModeloValidationFinding. Those records preserve the registry snapshot_ref, casilla values, binding provenance, and casilla provenance that identify and ground a local draft.

The facade also exports ModeloValidator, the protocol contracts consumed by application.filing, the LGT Art. 122 amendment records ModeloComplementaria and ModeloSustitutiva, their CasillaChange deltas, and the governed repository contracts. Drafts persist through ModeloDraftRepository (behind ModeloDraftRepositoryProtocol) in FINANCIAL encrypted storage; amendments persist through ModeloAmendmentRepository (behind ModeloAmendmentRepositoryProtocol) in AUDIT encrypted storage.

The orchestration entry points (application.filing.build_draft(), application.filing.validate_draft(), application.filing.approve_draft(), application.filing.build_complementaria(), application.filing.import_filing_from_justificante()) live at application.filing: domain records are stable boundary-crossing types; the use cases that compose them belong on the application layer. domain.justificante.Justificante data is receipt metadata and import evidence, not a casilla-value authority; when the application import path needs an audit baseline, it composes these draft records with domain.submission.ModeloPresentado rather than extending the draft schema with submission state.

See also

application.filing

Application facade that builds, reviews, approves, exports, verifies, imports, and amends these draft records.

ModeloDraft

Registry-backed draft aggregate carrying values, binding provenance, casilla provenance, and registry snapshot identity.

ModeloValidator

Domain validator used by application review and approval flows.

ModeloAmendmentRepositoryProtocol

Narrow domain-facing port for governed AUDIT persistence of complementaria and sustitutiva records.

domain.submission

Local-only submission audit records paired with imported or historical draft baselines without turning draft records into live submissions.

domain.justificante

Receipt metadata that filing imports may compose with drafts, without treating receipt data as a casilla-value authority.

domain.calculations.registry

Registry snapshot and export-layout authority used to construct and verify draft casilla payloads.

Subpackages

Submodules