aeat.domain.iva._rates module

Read-only IVA rate registry.

load_iva_rate_table() validates committed rate TOML into mappings from EUMemberState to dated IvaRateRecord windows partitioned by IvaRateKind, rejecting same-kind overlaps with IvaRateOverlapError.

load_iva_rate_table(path=None)[source]

Load IVA rates from the committed registry file.

Resolves the bundled rates path on every call so the bundled_path boundary stays the single resolution surface.

Return type:

Mapping[EUMemberState, tuple[IvaRateRecord, ...]]

Returns:

Mapping from EUMemberState to a tuple of IvaRateRecord items.

Parameters:

path (Path | None)