stdnum.ar.cbu¶
CBU (Clave Bancaria Uniforme, Argentine bank account number).
CBU it s a code of the Banks of Argentina to identify customer accounts. The number consists of 22 digits and consists of a 3 digit bank identiefyer, followed by a 4 digit branch identifyer, a check digit, a 13 digit account identifyer and another check digit.
More information:
- https://es.wikipedia.org/wiki/Clave_Bancaria_Uniforme
- http://www.clientebancario.gov.ar/mediospago/mp080000.asp
>>> validate('2850590940090418135201')
'2850590940090418135201'
>>> format('2850590940090418135201')
'28505909 40090418135201'
>>> validate('2810590940090418135201')
Traceback (most recent call last):
...
InvalidChecksum: ...
-
stdnum.ar.cbu.
calc_check_digit
(number)¶ Calculate the check digit.
-
stdnum.ar.cbu.
compact
(number)¶ Convert the number to the minimal representation. This strips the number of any valid separators and removes surrounding whitespace.
-
stdnum.ar.cbu.
format
(number)¶ Reformat the number to the standard presentation format.
-
stdnum.ar.cbu.
is_valid
(number)¶ Check if the number is a valid CBU.
-
stdnum.ar.cbu.
validate
(number)¶ Check if the number is a valid CBU.