cadrumo.domain.calculations.registry.applicability_payer_facts module¶
Typed payer-fact predicates and projections for modelo applicability.
- class PayerFact(*values)[source]¶
Bases:
StrEnumApplication-mechanics payer facts not owned by the dated catalogue.
- PAYS_WITHHELD_INCOME¶
- PAYS_RENT_WITH_RETENCION¶
- TRADES_INTRACOMMUNITY¶
- IVA_GROUP_MEMBER¶
- IVA_GROUP_DOMINANT_ENTITY¶
- OSS_ENROLLED¶
- class PayerFactProjection(token, profile_key, label, legal_refs)[source]¶
Bases:
objectOne dated, registry-owned payer-applicability declaration.
- resolve_payer_fact_catalogue(*, effective_date=None, authority=None)[source]¶
Resolve the selected dated payer-applicability entity set.
Core types:
ValidatedRegistryAuthority.- Return type:
- Parameters:
effective_date (date | None)
authority (ValidatedRegistryAuthority | None)
- resolve_payer_fact(value, *, effective_date=None, authority=None)[source]¶
Resolve a raw applicability token through mechanics or the dated fact.
Core types:
ValidatedRegistryAuthority.- Return type:
TypeAliasType- Parameters:
value (str | PayerFact | PayerFactProjection)
effective_date (date | None)
authority (ValidatedRegistryAuthority | None)
- payer_fact_holds(profile, fact)[source]¶
Return whether
profilepositively declares the supplied payer fact.Core types:
TaxpayerProfile.- Return type:
- Parameters:
profile (TaxpayerProfile)
fact (PayerFactValue)