Skip to content

Commit

Permalink
Merge pull request #44 from MataGBM/enhancement/722-bank-code
Browse files Browse the repository at this point in the history
[ENHANCEMENT] Add Mercado Pago W bank code
  • Loading branch information
dpilafian authored Dec 28, 2023
2 parents 506227e + 5da5573 commit 81adc06
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 11 deletions.
1 change: 1 addition & 0 deletions clabe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ const clabe = {
689: { tag: 'FOMPED', name: 'Fondo Mexicano del Petroleo para la Estabilizacion y el Desarrollo' },
706: { tag: 'ARCUS', name: 'Arcus Financial Intelligence' },
710: { tag: 'NVIO', name: 'NVIO Pagos México' },
722: { tag: 'MERCADO PAGO W', name: 'Mercado Pago W' },
723: { tag: 'CUENCA', name: 'Cuenca' },
812: { tag: 'BBVA BANCOMER2', name: 'BBVA Bancomer' },
814: { tag: 'SANTANDER2', name: 'Banco Santander' },
Expand Down
2 changes: 1 addition & 1 deletion dist/clabe.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! clabe-validator v2.1.9 ~~ https://github.com/center-key/clabe-validator ~~ MIT License
//! clabe-validator v2.1.10 ~~ https://github.com/center-key/clabe-validator ~~ MIT License

export type ClabeBank = {
tag?: string;
Expand Down
5 changes: 3 additions & 2 deletions dist/clabe.dev.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//! clabe-validator v2.1.9 ~~ https://github.com/center-key/clabe-validator ~~ MIT License
//! clabe-validator v2.1.10 ~~ https://github.com/center-key/clabe-validator ~~ MIT License

const clabe = {
version: '2.1.9',
version: '2.1.10',
computeChecksum(clabeNum17) {
const x = (i) => [3, 7, 1][i % 3];
const add = (sum, digit, i) => sum + (Number(digit) * x(i)) % 10;
Expand Down Expand Up @@ -180,6 +180,7 @@ const clabe = {
689: { tag: 'FOMPED', name: 'Fondo Mexicano del Petroleo para la Estabilizacion y el Desarrollo' },
706: { tag: 'ARCUS', name: 'Arcus Financial Intelligence' },
710: { tag: 'NVIO', name: 'NVIO Pagos México' },
722: { tag: 'MERCADO PAGO W', name: 'Mercado Pago W' },
723: { tag: 'CUENCA', name: 'Cuenca' },
812: { tag: 'BBVA BANCOMER2', name: 'BBVA Bancomer' },
814: { tag: 'SANTANDER2', name: 'Banco Santander' },
Expand Down
5 changes: 3 additions & 2 deletions dist/clabe.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//! clabe-validator v2.1.9 ~~ https://github.com/center-key/clabe-validator ~~ MIT License
//! clabe-validator v2.1.10 ~~ https://github.com/center-key/clabe-validator ~~ MIT License

const clabe = {
version: '2.1.9',
version: '2.1.10',
computeChecksum(clabeNum17) {
const x = (i) => [3, 7, 1][i % 3];
const add = (sum, digit, i) => sum + (Number(digit) * x(i)) % 10;
Expand Down Expand Up @@ -180,6 +180,7 @@ const clabe = {
689: { tag: 'FOMPED', name: 'Fondo Mexicano del Petroleo para la Estabilizacion y el Desarrollo' },
706: { tag: 'ARCUS', name: 'Arcus Financial Intelligence' },
710: { tag: 'NVIO', name: 'NVIO Pagos México' },
722: { tag: 'MERCADO PAGO W', name: 'Mercado Pago W' },
723: { tag: 'CUENCA', name: 'Cuenca' },
812: { tag: 'BBVA BANCOMER2', name: 'BBVA Bancomer' },
814: { tag: 'SANTANDER2', name: 'Banco Santander' },
Expand Down
4 changes: 2 additions & 2 deletions dist/clabe.min.js

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions dist/clabe.umd.cjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! clabe-validator v2.1.9 ~~ https://github.com/center-key/clabe-validator ~~ MIT License
//! clabe-validator v2.1.10 ~~ https://github.com/center-key/clabe-validator ~~ MIT License

(function (factory) {
if (typeof module === "object" && typeof module.exports === "object") {
Expand All @@ -13,7 +13,7 @@
Object.defineProperty(exports, "__esModule", { value: true });
exports.clabe = void 0;
const clabe = {
version: '2.1.9',
version: '2.1.10',
computeChecksum(clabeNum17) {
const x = (i) => [3, 7, 1][i % 3];
const add = (sum, digit, i) => sum + (Number(digit) * x(i)) % 10;
Expand Down Expand Up @@ -192,6 +192,7 @@
689: { tag: 'FOMPED', name: 'Fondo Mexicano del Petroleo para la Estabilizacion y el Desarrollo' },
706: { tag: 'ARCUS', name: 'Arcus Financial Intelligence' },
710: { tag: 'NVIO', name: 'NVIO Pagos México' },
722: { tag: 'MERCADO PAGO W', name: 'Mercado Pago W' },
723: { tag: 'CUENCA', name: 'Cuenca' },
812: { tag: 'BBVA BANCOMER2', name: 'BBVA Bancomer' },
814: { tag: 'SANTANDER2', name: 'Banco Santander' },
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "clabe-validator",
"version": "2.1.9",
"version": "2.1.10",
"description": "Analyze or create a CLABE number for a Mexican bank account (written in functional TypeScript)",
"license": "MIT",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion spec/package.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ describe('Current number of banks and cities', () => {

it('is correct ' + counts, () => {
const actual = { banks: numBanks, cities: numCities };
const expected = { banks: 129, cities: 883 }; //update this line when adding a new bank or city
const expected = { banks: 130, cities: 883 }; //update this line when adding a new bank or city
assertDeepStrictEqual(actual, expected);
});

Expand Down

0 comments on commit 81adc06

Please sign in to comment.