cadrumo.domain.calculations.registry.tax_id_format module

Authority adapters for the pure Spanish tax-identifier validation kernel.

tax_id_format_from_declarations(declarations)[source]

Build the typed format from a complete fact mapping, without defaults.

Return type:

SpanishTaxIdFormat

Parameters:

declarations (Mapping[str, str])

tax_id_format_from_catalogue(catalogue)[source]

Derive one temporally invariant bootstrap format from a catalogue.

Return type:

SpanishTaxIdFormat

Parameters:

catalogue (GovernedFactCatalogue)

tax_id_format(authority, *, effective_date)[source]

Resolve the format from one explicitly supplied established authority.

Return type:

SpanishTaxIdFormat

Parameters:
tax_id_format_value(key, *, effective_date=None, authority=None)[source]

Resolve one declaration through the established runtime authority.

Return type:

str

Parameters:
runtime_tax_id_format(*, effective_date=None, authority=None)[source]

Resolve the format from the established authority operation or scope.

Return type:

SpanishTaxIdFormat

Parameters:
SubjectTaxId