AUTHORS
Vincent Lucas (code and documentation)
Marc Chantreux (podification and cpan distrib)
SYNOPSIS
Package helper to compute BBAN key and generate an BBAN from a bank identifier, a bank location identifier and an account identifier.
Converts alpha characters into digit following the described table (beware, there is a gap between R and S):
Char | Digit
--------------------
A, J | 1
B, K, S | 2
C, L, T | 3
D, M, U | 4
E, N, V | 5
F, O, W | 6
G, P, X | 7
H, q, Y | 8
I, R, Z | 9
to_digit ( $bban )
when $bban
is string representation of the Basic Bank Account Number (BBAN), which can contains some alpha caracters.
returns string representation of the Basic Bank Account Number (BBAN), which contains only digits.
compute_key ( $bban )
Computes the key corresponding to a given Basic Bank Account Number (BBAN)
when $bban
is a string representation of the Basic Bank Account Number (BBAN), which contains only digits, but does not contains the key part.
returns the computed key of the BBAN given in parameter.
get_BBAN ( $bank_id, $bank_location_id, $account_id )
Computes and returns the Basic Bank Account Number (BBAN) corresponding to the given bank identifier, bank location identifier and the account identifier. When
$bank_id is the bank identifier.
$bank_locaiton_id is the bank location identifier.
$account_id is the account identifier.
return the string representation of the Basic Bank Account Number (BBAN) with the key part. The returned BBAN can contains alpha and digit characters.