aeat.domain.invoices._ids module

Typed id alias for Invoice records.

InvoiceId pins the hex-64 sha-256 shape derive_invoice_id() mints for every persisted Invoice. The alias lives in the invoice domain package because the invoice domain owns both the minting algorithm and the persisted-record shape; consumers in aeat.application.ledger and the CLI payload surface import the alias under its public name per ADR Rule 4.

InvoiceId

Hex-64 content-addressed invoice identity. Minted via derive_invoice_id().

alias of Annotated[str, StringConstraints(strip_whitespace=True, to_upper=None, to_lower=None, strict=None, min_length=64, max_length=64, pattern=^[0-9a-f]{64}$, ascii_only=None)]