aeat.domain.iva._catalogue module¶
Read-only IVA regulation catalogue registry.
load_iva_catalogue() validates one committed TOML file into an
IvaCatalogue whose entries are keyed by IvaCategory and
stored as IvaRegulation; resolve_catalogue() selects the year
catalogue used by filing-date consumers.
- load_iva_catalogue(path)[source]¶
Load one IVA catalogue TOML file.
- Return type:
- Returns:
The validated
IvaCataloguefrom the file.- Parameters:
path (Path)
- load_iva_catalogues(root=None)[source]¶
Load every year-keyed
IvaCatalogueunderroot.Resolves the bundled catalogues directory on every call when no override is supplied; the
bundled_pathboundary is the single resolution surface.- Return type:
- Parameters:
root (Path | None)
- resolve_catalogue(*, on)[source]¶
Return the exact IVA catalogue for
on.- Return type:
- Returns:
The
IvaCataloguefor the year ofon.- Parameters:
on (date)