aeat.application.filing._history_models module

Strict filing-history records for encrypted filing-state persistence.

ModeloHistory groups ModeloHistoryEntry rows by ModeloIdentifier before ModeloHistoryRepository stores the aggregate in encrypted AUDIT-class persistence.

The payload is intentionally narrower than the modelo filing-record catalogue: it records local filing history rows by modelo and period, while domain.modelos.ModeloRecord carries the richer current / superseded filing lifecycle for calculation revisions.

See also

application.filing.ModeloHistoryRepository

Encrypted AUDIT-class repository that stores these payloads.

domain.modelos

Work-unit filing records and supersession history for calculation revisions.

domain.modelos.ModeloRecordCatalogue

Current/superseded filing-record catalogue that owns the authoritative work-unit filing lifecycle.

application.calculations

Past-filing casilla observations used by cross-period calculation resolvers.

class ModeloHistoryEntry(**data)[source]

Bases: BaseModel

One local filing-history row for a ModeloIdentifier and Period.

Parameters:
modelo: ModeloIdentifier
period: Period
submitted_at: datetime
status: str
class ModeloHistory(**data)[source]

Bases: BaseModel

Per-modelo tuple of ModeloHistoryEntry rows for one ModeloIdentifier.

Parameters:
modelo: ModeloIdentifier
entries: tuple[ModeloHistoryEntry, ...]