idnumbers
    Preparing search index...

    Class TaxIdentificationNumber

    Implements

    Index
    METADATA: IdMetadata = ...
    • Check that, within the first 10 digits, no digit fills three directly consecutive positions. The check digit (the 11th) is excluded, so a check digit that completes a run of three is allowed (ELSTER, "Prüfung der Steuer- und Steueridentifikationsnummer", section 2.2).

      Parameters

      • idNumber: string

      Returns boolean

    • Check if only one digit has multiple occurrences

      Parameters

      • idNumber: string

      Returns boolean

    • Calculate checksum for German Tax ID using the official algorithm

      Parameters

      • idNumber: string

      Returns boolean

    • Normalize by removing spaces

      Parameters

      • idNumber: string

      Returns string

    • Validate German Tax Identification Number

      Parameters

      • idNumber: string

      Returns boolean