aeat.domain.transactions._model_validation module¶
Validation helpers for strict transaction boundary models.
The transaction models keep their Pydantic validators on the boundary records, while this helper module owns the reusable parsing and invariant checks those validators call. It normalizes raw transactions, UTC timestamps, classifier provenance, confidence ranges, identifier tuples, lineage text, and non-negative tax amount fields without turning those rules into a separate public API.
See also
TransactionStrict transaction record whose validators delegate to these helpers.
RawTransactionUpstream row model accepted directly or coerced from JSON-compatible payloads.
BusinessClassificationClassification enum coupled to
business_pctby this module.TransactionValidationErrorTyped domain error raised for validation failures.
validate_utc_aware()UTC-awareness gate wrapped into the transaction error hierarchy.
- Governing vault records
2026-05-27-source-jurisdiction-axis-adrand2026-05-28-source-jurisdiction-axis-auditcapture the transaction model axis and validator behavior this helper preserves.