DO: Check the IBAN KEY The IBAN string must be in basic format, all non alphanumeric characters removed. 0- move the first four characters of the IBAN to the end. 1- convert the letters into numerics. 2- apply MOD 97-10 (ISO 7064) : remainder of n by 97 must be 1 3- return T when the IBAN key checks. RETURN: Whether the IBAN key checks.
COMPUTE-IBAN-KEY (COUNTRY ACCOUNT)
DO: Compute the IBAN key for the given ACCOUNT. ACCOUNT must be in basic format, all non alphanumeric characters removed. 0- create artificial IBAN with 00 check sum. 1- move the first four characters of the IBAN to the end. 2- convert the letters into numerics. 3- apply MOD 97-10 (ISO 7064): check sum is 98 - n mod 97. 4- return the complete IBAN. RETURN: The new complete IBANA.
Returns a list of 2-letter country codes.
DO: Checks the country code in the basic-form, and raises an error if not valid. RAISE: IBAN-ERROR RETURN: SELF
GET-AND-CHECK-ALPHANUM (SELF STRING &OPTIONAL LENGTH)
Check that STRING contains only alphanumeric character valid in an IBAN.
RETURN: The country code in the IBAN.
GET-IBAN (SELF &KEY WITH-SPACES (WITH-SPACES NIL))
RETURN: The IBAN as a string, with spaces inserted when WITH-SPACES is true, else in basic form.
RETURN: The computed key of the IBAN.
SET-IBAN (SELF IBAN &KEY WITH-KEY (WITH-KEY NIL))
DO: Change the IBAN. If WITH-KEY is true then the IBAN key is checked and an error raised if it is not valid, else the IBAN key is computed and substituted. RETURN: SELF SIGNAL: An IBAN-ERROR when with-key and the key in the IBAN is incorrect.
The RETURN: The basic form of the IBAN.
List of 2-letter country codes.
The Internationnal Bank Account Number class.
An IBAN error.