cadrumo.domain.transactions.m210_income_classification module

Typed Modelo 210 income-classification boundary.

The selected Modelo 210 registry revision owns the income-code catalogue, labels, and payer applicability. This module retains only the transaction validation/type shell while that registry declaration is consumed by the calculation path.

resolve_m210_payer_mode(value=None, *, effective_date=None, operation=None)[source]

Project an operator or stored payer-mode token from the detail fact.

Return type:

M210PayerMode

Parameters:
required_m210_payer_mode_for_code(code, *, effective_date=None, operation=None)[source]

Return the payer mode required for one registry-declared income code.

Return type:

M210PayerMode | None

Parameters:
class M210IncomeClassification(**data)[source]

Bases: BaseModel

One operator-supplied M210 income classification.

Parameters:

data (Any)

official_tipo_renta_code: str
gross_income_amount: Decimal
applicable_rate: UnitProportion
payer_mode: M210PayerMode
payer_id: str | None
asset_or_right_id: str | None