cadrumo.domain.calculations.registry.situacion_familiar_m145_catalogue module¶
Typed projection of the Modelo 145 family-situation vocabulary.
- class SituacionFamiliarM145Definition(token, description, legal_refs, supplementary_reduction_eligible)[source]¶
Bases:
objectOne registry-declared Modelo 145 family-situation token.
- Parameters:
token (SituacionFamiliarM145)
description (str)
supplementary_reduction_eligible (bool)
-
token:
SituacionFamiliarM145¶
- class SituacionFamiliarM145Catalogue(definitions)[source]¶
Bases:
objectComplete typed projection of the dated Modelo 145 fact.
- Parameters:
definitions (tuple[SituacionFamiliarM145Definition, ...])
-
definitions:
tuple[SituacionFamiliarM145Definition,...]¶
- property choices: tuple[SituacionFamiliarM145, ...]¶
Return the registry-declared choices in authored order.
- property all_situaciones: frozenset[SituacionFamiliarM145]¶
Return the registry-declared family-situation tokens.
- require(value)[source]¶
Project one token only when the selected authority declares it.
- Return type:
- Parameters:
value (object)
- resolve_situacion_familiar_m145_catalogue(*, effective_date=None, authority=None)[source]¶
Resolve the dated Modelo 145 vocabulary through the facts authority.
- Return type:
- Parameters:
effective_date (date | None)
authority (GovernedFactSource | None)
- require_situacion_familiar_m145(value, *, effective_date=None, authority=None)[source]¶
Return a Modelo 145 token only when fact 0142 declares it.
- Return type:
- Parameters:
value (object)
effective_date (date | None)
authority (GovernedFactSource | None)