0.1.1 • Published 3 years ago

perciban v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

perciban

Peruvian "Codigo Cuenta Interbancario" to "Bank Account Number" Tool to decipher Peruvian Bank Account Numbers from CCI codes.

A CCI Code is a 20 digit long number, which consists of the Bank Account Number padded with a series of digits. This CCI code is used in cross operations between banks. What this tool does is recognize a 20 digit string as a CCI code and then transform it into it's corresponding bank account number.

Herramienta para decifrar Numeros de Cuenta Peruanos con codigos CCI.

Un CCI es una cadena de 20 dígitos, que consiste del Numero de Cuenta Bancario en adición a una serie de dígitos. Este CCI se usa para operaciones cruzadas entre bancos. Lo que hace esta herramienta es reconocer una cadena de 20 dígitos como un CCI y luego transformarlo a su numero de cuenta correspondiente.

HOW TO USE:

This library exposes two functions:

getBankFromCCI:

Expects a correct CCI, returns a string containing the CCI bank name

getDetailsFromCCI:

Expects a correct CCI, return an object containing the name of the bank, the account number, and if available, the currency of the account and the type of account.