cadrumo.domain.calculations.registry.irpf_income_categories module¶
Typed projections for the IRPF income-category vocabulary fact (0128).
- class IrpfIncomeCategoryDefinition(token, description, tax_regime, activity_gate_modelos, payment_modelos, legal_refs)[source]¶
Bases:
objectOne registry-declared IRPF income category and its semantics.
- Parameters:
-
token:
IrpfIncomeCategory¶
- class IrpfIncomeCategoryCatalogue(definitions, activity_token)[source]¶
Bases:
objectTyped projection of the dated IRPF income-category vocabulary.
- Parameters:
definitions (tuple[IrpfIncomeCategoryDefinition, ...])
activity_token (IrpfIncomeCategory)
-
definitions:
tuple[IrpfIncomeCategoryDefinition,...]¶
-
activity_token:
IrpfIncomeCategory¶
- property all_categories: frozenset[IrpfIncomeCategory]¶
Return the complete declared category membership.
- property choices: tuple[IrpfIncomeCategory, ...]¶
Return categories in their declared presentation order.
- require(value)[source]¶
Return one declared category or refuse an unknown value.
- Return type:
- Parameters:
value (object)
- resolve_irpf_income_category_catalogue(*, effective_date=None, authority=None)[source]¶
Resolve all six income categories from fact 0128.
- Return type:
- Parameters:
effective_date (date | None)
authority (GovernedFactSource | None)
- require_irpf_income_category(value, *, effective_date=None, authority=None)[source]¶
Return one registry-declared IRPF income category.
- Return type:
- Parameters:
value (object)
effective_date (date | None)
authority (GovernedFactSource | None)
- irpf_income_category_choices(*, effective_date=None, authority=None)[source]¶
Return the registry-declared IRPF income categories in order.
- Return type:
- Parameters:
effective_date (date | None)
authority (GovernedFactSource | None)
- irpf_income_category_actividad_economica_token(*, effective_date=None, authority=None)[source]¶
Return the category designated for economic-activity income.
- Return type:
- Parameters:
effective_date (date | None)
authority (GovernedFactSource | None)