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:
StrEnumLocal IVA hint kept decoupled from the IVA taxonomy branch.
- GENERAL¶
- EXEMPT_OR_NON_SUBJECT¶
- NON_DEDUCTIBLE_INPUT¶
- class CategoryProfile(**data)[source]¶
Bases:
_CategoryProfileStrictFrozenModelExplainable category profile for one spending category.
- Parameters:
category (SpendingCategory)
display_label (Translatable)
proportionality (ProportionalityRule)
iva_hint (IvaDeductibilityHint | None)
- category: SpendingCategory¶
- display_label: tr¶
- proportionality: ProportionalityRule¶
- iva_hint: IvaDeductibilityHint | None¶