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:
- Parameters:
- tax_id_format_from_catalogue(catalogue)[source]¶
Derive one temporally invariant bootstrap format from a catalogue.
- Return type:
- Parameters:
catalogue (GovernedFactCatalogue)
- tax_id_format(authority, *, effective_date)[source]¶
Resolve the format from one explicitly supplied established authority.
- Return type:
- Parameters:
authority (GovernedFactSource)
effective_date (date)
- tax_id_format_value(key, *, effective_date=None, authority=None)[source]¶
Resolve one declaration through the established runtime authority.
- Return type:
- Parameters:
key (str)
effective_date (date | None)
authority (GovernedFactSource | None)
- runtime_tax_id_format(*, effective_date=None, authority=None)[source]¶
Resolve the format from the established authority operation or scope.
- Return type:
- Parameters:
effective_date (date | None)
authority (GovernedFactSource | None)
- SubjectTaxId¶