# stdnum.eu.at_02

SEPA Identifier of the Creditor (AT-02).

This identifier is indicated in the ISO 20022 data element Creditor Scheme Identification. The creditor can be a legal entity, or an association that is not a legal entity, or a person.

The first two digits contain the ISO country code, the next two are check digits for the ISO 7064 Mod 97, 10 checksum, the next tree contain the Creditor Business Code (or ZZZ if no business code used) and the remainder contains the country-specific identifier.

    >>> validate('ES 23 ZZZ 47690558N')
    'ES23ZZZ47690558N'
    >>> validate('ES2300047690558N')
    'ES2300047690558N'
    >>> compact('ES++()+23ZZZ4//7690558N')
    'ES23ZZZ47690558N'
    >>> calc_check_digits('ESXXZZZ47690558N')
    '23'

stdnum.eu.at_02.calc_check_digits(number: str) → str

  Calculate the check digits that should be put in the number to make it valid. Check digits in the supplied number are ignored.

stdnum.eu.at_02.compact(number: str) → str

  Convert the AT-02 number to the minimal representation. This strips the number of any valid separators and removes invalid characters.

stdnum.eu.at_02.is_valid(number: str) → bool

  Check if the number provided is a valid AT-02.

stdnum.eu.at_02.validate(number: str) → str

  Check if the number provided is a valid AT-02.