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. Ther first two digits contain the ISO country code, the nex two are check digitsi for the ISO 7064 Mod 97, 10 checksum, the next tree contain the Creditor Bussines Code (or ZZZ if no bussness code used) and the remainder contain the country-specific identifier.
>>> validate('ES23ZZZ47690558N')
'ES23ZZZ47690558N'
>>> validate('ES2300047690558N')
'ES2300047690558N'
>>> compact('ES++()+23ZZZ4//7690558N')
'ES23ZZZ47690558N'
Convert the AT-02 number to the minimal representation. This strips the number of any valid separators and removes invalid characters.
Checks to see if the number provided is a valid AT-02.
Checks to see if the number provided is a valid AT-02.