cadrumo.domain.calculations.registry.tax_identity_admission module

Registry-backed admission of tax identities for redaction.

Answers the redaction gate from the published authority: the Spanish control-character format decides a NIF/NIE/CIF, and the dated NIF-IVA country catalogue decides a prefixed Member State number. A prefix the catalogue does not declare admits nothing.

class RegistryTaxIdentityAdmission[source]

Bases: object

Admit redaction candidates against the published registry authority.

admits_spanish_identity(normalised)[source]

Return whether normalised validates against the Spanish tax-ID format.

Return type:

bool | None

Parameters:

normalised (str)

admits_nif_iva(normalised)[source]

Return whether normalised matches its declared Member State format.

Return type:

bool | None

Parameters:

normalised (str)