cadrumo.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[source]

Bases: str

Opaque registry-projected IVA deductibility hint token.

property value: str

Return the opaque token for string-oriented serialization.

class CategoryProfile(**data)[source]

Bases: _CategoryProfileStrictFrozenModel

Explainable category profile for one spending category.

Parameters:

data (Any)

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