cadrumo.domain.calculations.registry.activity_kind_catalogue module¶
Typed projection of the registry-owned IRPF activity-kind vocabulary.
- class IrpfActivityKindDefinition(token, selector_fact_ids)[source]¶
Bases:
objectOne registry-declared activity-kind token and its selector owners.
- Parameters:
token (IrpfActivityKind)
-
token:
IrpfActivityKind¶
- class IrpfActivityKindCatalogue(definitions)[source]¶
Bases:
objectTyped projection of the activity-kind values carried by fact 0082.
- Parameters:
definitions (tuple[IrpfActivityKindDefinition, ...])
-
definitions:
tuple[IrpfActivityKindDefinition,...]¶
- property all_activity_kinds: frozenset[IrpfActivityKind]¶
Return every activity-kind token declared by the catalogue.
- require(value)[source]¶
Return a token only when the selected registry fact declares it.
- Return type:
- Parameters:
value (object)
- resolve_irpf_activity_kind_catalogue(*, effective_date=None, authority=None)[source]¶
Resolve activity-kind membership from the M036 selector catalogue.
- Return type:
- Parameters:
effective_date (date | None)
authority (GovernedFactSource | None)
- require_irpf_activity_kind(value, *, effective_date=None, authority=None)[source]¶
Return an activity-kind token only when fact 0082 declares it.
- Return type:
- Parameters:
value (object)
effective_date (date | None)
authority (GovernedFactSource | None)
- irpf_activity_kind_profesional_token(*, effective_date=None, authority=None)[source]¶
Return the registry-declared professional activity-kind token.
- Return type:
- Parameters:
effective_date (date | None)
authority (GovernedFactSource | None)
- irpf_activity_kind_sectorial_token(*, effective_date=None, authority=None)[source]¶
Return the registry-declared sectorial activity-kind token.
- Return type:
- Parameters:
effective_date (date | None)
authority (GovernedFactSource | None)
- is_irpf_activity_kind_profesional(value, *, effective_date=None, authority=None)[source]¶
Return whether a value is the registry-declared professional token.
- Return type:
- Parameters:
value (IrpfActivityKind | str | None)
effective_date (date | None)
authority (GovernedFactSource | None)
- is_irpf_activity_kind_sectorial(value, *, effective_date=None, authority=None)[source]¶
Return whether a value is the registry-declared sectorial token.
- Return type:
- Parameters:
value (IrpfActivityKind | str | None)
effective_date (date | None)
authority (GovernedFactSource | None)