cadrumo.domain.calculations.registry.iva_rate_role_catalogue module¶
Typed projection of the IVA rate-role vocabulary and default.
- class IvaRateRole(value, *, _registry_validated=False)[source]¶
Bases:
strOpaque IVA rate-role token projected from the facts registry.
- class IvaRateRoleDefinition(token, is_default, supersedes_tier_default)[source]¶
Bases:
objectOne registry-declared rate role and its selector semantics.
- Parameters:
token (IvaRateRole)
is_default (bool)
supersedes_tier_default (bool)
-
token:
IvaRateRole¶
- class IvaRateRoleCatalogue(definitions, default_role)[source]¶
Bases:
objectDated projection of the rate-role selector vocabulary.
- Parameters:
definitions (tuple[IvaRateRoleDefinition, ...])
default_role (IvaRateRole)
-
definitions:
tuple[IvaRateRoleDefinition,...]¶
-
default_role:
IvaRateRole¶
- property roles: tuple[IvaRateRole, ...]¶
Return roles in registry-authored order.
- resolve_iva_rate_role_catalogue(*, effective_date=None, authority=None)[source]¶
Resolve the IVA rate-role vocabulary through the selected facts authority.
- Return type:
- Parameters:
effective_date (date | None)
authority (GovernedFactSource | None)