cadrumo.domain.contribuyente.ccaa module

Opaque CCAA tokens projected from the governed tax-residence catalogue.

The community membership and the retired ISO aliases are filing facts. This module keeps only the token type and compatibility-shaped parsing mechanics; the dated vocabulary is resolved by ccaa_catalogue.

class CCAA(value, *, _registry_validated=False)[source]

Bases: str

Registry-projected ordinary common-regime CCAA token.

Instantiation is deliberately fail-closed: arbitrary strings cannot become CCAA values without passing through the selected dated facts catalogue. from_registry is private to the typed projection module.

Parameters:
Return type:

Self

classmethod from_registry(value)[source]

Construct the typed value from its canonical registry token.

Return type:

Self

Parameters:

value (str)

classmethod from_iso_code(code)[source]

Resolve one of the registry-declared three-letter aliases.

Return type:

Self

Parameters:

code (str)

classmethod from_label(label)[source]

Resolve a canonical token, normalized label, or ISO alias.

Return type:

Self

Parameters:

label (str)

property value: str

Return the canonical token used by profile and registry bindings.

property name: str

Return the canonical token as a diagnostic name.