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:

IvaCatalogue

Returns:

The validated IvaCatalogue from the file.

Parameters:

path (Path)

load_iva_catalogues(root=None)[source]

Load every year-keyed IvaCatalogue under root.

Resolves the bundled catalogues directory on every call when no override is supplied; the bundled_path boundary is the single resolution surface.

Return type:

Mapping[int, IvaCatalogue]

Parameters:

root (Path | None)

resolve_catalogue(*, on)[source]

Return the exact IVA catalogue for on.

Return type:

IvaCatalogue

Returns:

The IvaCatalogue for the year of on.

Parameters:

on (date)