aeat.domain.categories._profile module

Category profile schema consumed by downstream classifiers.

CategoryProfile binds a SpendingCategory to its display label, ProportionalityRule, and optional IvaDeductibilityHint.

class IvaDeductibilityHint(*values)[source]

Bases: StrEnum

Local IVA hint kept decoupled from the IVA taxonomy branch.

GENERAL
EXEMPT_OR_NON_SUBJECT
NON_DEDUCTIBLE_INPUT
class CategoryProfile(**data)[source]

Bases: _CategoryProfileStrictFrozenModel

Explainable category profile for one spending category.

Parameters:
category: SpendingCategory
display_label: tr
proportionality: ProportionalityRule
iva_hint: IvaDeductibilityHint | None