@wrcb/cb-common 1.0.247 → 1.0.249
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/types/bankList.d.ts +3 -1
- package/build/types/bankList.js +22 -10
- package/package.json +1 -1
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { Country } from './country';
|
|
1
2
|
export interface BankInfo {
|
|
2
3
|
code: string;
|
|
3
4
|
name: string;
|
|
4
5
|
}
|
|
5
|
-
export declare const
|
|
6
|
+
export declare const BanksByCountry: Record<Country, BankInfo[]>;
|
|
7
|
+
export declare function getBanksByCountry(country: Country): BankInfo[];
|
package/build/types/bankList.js
CHANGED
|
@@ -1,12 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
3
|
+
exports.BanksByCountry = void 0;
|
|
4
|
+
exports.getBanksByCountry = getBanksByCountry;
|
|
5
|
+
const country_1 = require("./country");
|
|
6
|
+
exports.BanksByCountry = {
|
|
7
|
+
[country_1.Country.Brasil]: [
|
|
8
|
+
{ code: '001', name: 'Banco do Brasil' },
|
|
9
|
+
{ code: '033', name: 'Santander' },
|
|
10
|
+
{ code: '104', name: 'Caixa Econômica Federal' },
|
|
11
|
+
{ code: '237', name: 'Bradesco' },
|
|
12
|
+
{ code: '341', name: 'Itaú' },
|
|
13
|
+
{ code: '260', name: 'Nubank' },
|
|
14
|
+
{ code: '077', name: 'Inter' }
|
|
15
|
+
],
|
|
16
|
+
[country_1.Country.Argentina]: [
|
|
17
|
+
{ code: '072', name: 'Santander Río' },
|
|
18
|
+
{ code: '285', name: 'BBVA Argentina' },
|
|
19
|
+
{ code: '007', name: 'Banco Nación' }
|
|
20
|
+
]
|
|
21
|
+
};
|
|
22
|
+
function getBanksByCountry(country) {
|
|
23
|
+
return exports.BanksByCountry[country] || [];
|
|
24
|
+
}
|