ifsc 2.0.6 → 2.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +57 -9
- data/CONTRIBUTING.md +2 -0
- data/README.md +63 -15
- data/ifsc.gemspec +2 -2
- data/src/IFSC.json +1 -1
- data/src/banknames.json +141 -129
- data/src/banks.json +3919 -3883
- data/src/custom-sublets.json +5 -1
- data/src/ruby/bank.rb +18 -4
- data/src/ruby/bank.rb.tpl +28 -0
- data/src/ruby/ifsc.rb +8 -1
- data/src/sublet.json +10 -9
- data/tests/ruby/bank_spec.rb +2 -5
- data/tests/ruby/ifsc_spec.rb +8 -10
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 407f881d03db3f1c1ad70b784cd659399ccd24768f18e2542278a22b727968ce
|
4
|
+
data.tar.gz: d1d27d2c7d6528409149abd8310e0132301f8913da1326dc3605ca6d5274d7b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3354b4f3789501cbe28068eac873a8ab64fee4be431dc4b7f233010b14003fad0a9f8c5fffed37279e7c4a6d3df5ce19fe85f2aab2ea16b022f0630b0eb3e950
|
7
|
+
data.tar.gz: 29826b703bf1122a701f1a528c7ba67466bbdc2b751142803ea62f32da7383ab89d18a186589a62075373b8893f1df9f0dbfdef98bc692acc24759e666919635
|
data/CHANGELOG.md
CHANGED
@@ -5,28 +5,73 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
5
5
|
|
6
6
|
## [UNRELEASED][unreleased]
|
7
7
|
|
8
|
+
## [2.0.9][2.0.9]
|
9
|
+
### Changed
|
10
|
+
- Updates on list of UPI enabled banks
|
11
|
+
```diff
|
12
|
+
+ABSB Abhinav Sahakari Bank
|
13
|
+
+AJKB Akola Janata Commercial Co-operative Bank
|
14
|
+
+APRR A.P. Raja Rajeswari Mahila Co-operative Urban Bank
|
15
|
+
+BDBX Bellary District Co-operative Central Bank
|
16
|
+
+BHCX Bhuj Commercial Co-operative Bank
|
17
|
+
+BMCB Bombay Mercantile Co-operative Bank
|
18
|
+
-CGBX Chhattisgarh Rajya Gramin Bank
|
19
|
+
+CRGB Chhattisgarh Rajya Gramin Bank
|
20
|
+
+FINX Financial Co-operative Bank
|
21
|
+
+GUNX Guntur Co-operative Urban Bank
|
22
|
+
+JONX Jodhpur Nagrik Sahakari Bank
|
23
|
+
+MCUX Mahaveer Co-operative Urban Bank
|
24
|
+
-MMMX Mahila Nagrik Sahakari Bank Maryadit Mahasamund
|
25
|
+
-MSOX Manorama Co-operative Bank Solapur
|
26
|
+
+MSSX Merchants Souharda Sahakara Bank Niyamitha
|
27
|
+
+SWSX Shree Warana Sahakari Bank
|
28
|
+
+TKTX Kottakkal Co-operative Urban Bank
|
29
|
+
+UCBX Urban Co-operative Bank Bareilly
|
30
|
+
+VADX Valsad District Central Co-operative Bank
|
31
|
+
+VASJ Vasai Janata Sahakari Bank
|
32
|
+
-VJSX Vasai Janata Sahakari Bank
|
33
|
+
+COMX Co-operative Bank of Mehsana
|
34
|
+
```
|
35
|
+
- Metadata Updates
|
36
|
+
- Dependency Updates
|
37
|
+
|
38
|
+
## [2.0.8][2.0.8]
|
39
|
+
### Changed
|
40
|
+
- Metadata updates
|
41
|
+
|
42
|
+
## [2.0.7][2.0.7]
|
43
|
+
### Changed
|
44
|
+
- Dependency Updates
|
45
|
+
- Updated metadata
|
46
|
+
- All constant files are now automatically generated
|
47
|
+
- `IXXX` as custom bank code for "Indrayani Co-operative Bank"
|
48
|
+
- NPCI does not publish bank type any more, so these are now maintained in this repository as patches
|
49
|
+
- Minor bank name updates
|
50
|
+
- Support for Go 1.18
|
51
|
+
- New field added: `ISO3166` (`IN-XX`, as per the ISO-3166 specification).
|
52
|
+
|
8
53
|
## [2.0.6][2.0.6]
|
9
|
-
|
54
|
+
### Changed
|
10
55
|
- Updated Metadata
|
11
56
|
|
12
57
|
## [2.0.5][2.0.5]
|
13
|
-
|
58
|
+
### Changed
|
14
59
|
- Updated Metadata
|
15
60
|
|
16
61
|
## [2.0.4][2.0.4]
|
17
|
-
|
62
|
+
### Changed
|
18
63
|
- Update IFSC.json for the below 20 IFSC codes
|
19
64
|
|
20
65
|
## [2.0.3][2.0.3]
|
21
|
-
|
66
|
+
### Changed
|
22
67
|
- Adds back 20 IFSC codes removed due to a change on the RBI sheet structure in 2.0.2
|
23
68
|
|
24
69
|
## [2.0.2][2.0.2]
|
25
|
-
|
70
|
+
### Changed
|
26
71
|
- Metadata changes
|
27
72
|
|
28
73
|
## [2.0.1][2.0.1]
|
29
|
-
|
74
|
+
### Changed
|
30
75
|
- Metadata changes
|
31
76
|
|
32
77
|
## [2.0.0][2.0.0]
|
@@ -66,11 +111,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
66
111
|
- Improved support for Contact details that are sourced from RTGS dataset. CONTACT details are returned in E.164 format
|
67
112
|
|
68
113
|
## [1.5.11][1.5.11]
|
69
|
-
|
114
|
+
### Changed
|
70
115
|
- Metadata updates
|
71
116
|
|
72
117
|
## [1.5.10][1.5.10]
|
73
|
-
|
118
|
+
### Changed
|
74
119
|
- 2 new banks:
|
75
120
|
- ARBL: Arvind Sahakari Bank
|
76
121
|
- TNCB: Nawanagar Co-operative Bank
|
@@ -243,7 +288,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
243
288
|
|
244
289
|
- Removes some data formats (YAML/Large JSON) for cleaner code. If you were using them, please let create an issue.
|
245
290
|
|
246
|
-
[unreleased]: https://github.com/razorpay/ifsc/compare/2.0.
|
291
|
+
[unreleased]: https://github.com/razorpay/ifsc/compare/2.0.9...HEAD
|
292
|
+
[2.0.9]: https://github.com/razorpay/ifsc/releases/tag/2.0.9
|
293
|
+
[2.0.8]: https://github.com/razorpay/ifsc/releases/tag/2.0.8
|
294
|
+
[2.0.7]: https://github.com/razorpay/ifsc/releases/tag/2.0.7
|
247
295
|
[2.0.6]: https://github.com/razorpay/ifsc/releases/tag/2.0.6
|
248
296
|
[2.0.5]: https://github.com/razorpay/ifsc/releases/tag/2.0.5
|
249
297
|
[2.0.4]: https://github.com/razorpay/ifsc/releases/tag/2.0.4
|
data/CONTRIBUTING.md
CHANGED
@@ -21,6 +21,8 @@ file, here are a few guidelines:
|
|
21
21
|
7. Try not to leave any unexpanded abbreviations in the name
|
22
22
|
8. Also ensure that the 4 character code is committed to `Bank.php`
|
23
23
|
9. No period after `Co-operative`
|
24
|
+
10. Grameen is spelled three ways: Grameen/Gramin/Grameena. Check the RBI List for the corresponding bank [here](https://m.rbi.org.in/scripts/Bs_viewcontent.aspx?Id=3657).
|
25
|
+
11. `Sahakari`, not `sahkari`.
|
24
26
|
|
25
27
|
## Code Guidelines
|
26
28
|
|
data/README.md
CHANGED
@@ -4,9 +4,7 @@ This is part of the IFSC toolset released by Razorpay.
|
|
4
4
|
You can find more details about the entire release at
|
5
5
|
[ifsc.razorpay.com](https://ifsc.razorpay.com).
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
[![](https://images.microbadger.com/badges/version/razorpay/ifsc:2.0.6.svg)](https://microbadger.com/images/razorpay/ifsc:2.0.6) [![npm version](https://badge.fury.io/js/ifsc.svg)](https://badge.fury.io/js/ifsc) [![Gem Version](https://badge.fury.io/rb/ifsc.svg)](https://badge.fury.io/rb/ifsc) [![PHP version](https://badge.fury.io/ph/razorpay%2Fifsc.svg)](https://badge.fury.io/ph/razorpay%2Fifsc) [![Hex pm](http://img.shields.io/hexpm/v/ifsc.svg)](https://hex.pm/packages/ifsc)
|
7
|
+
![Docker Image Version (latest semver)](https://img.shields.io/docker/v/razorpay/ifsc) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT) [![npm version](https://badge.fury.io/js/ifsc.svg)](https://badge.fury.io/js/ifsc) [![Gem Version](https://badge.fury.io/rb/ifsc.svg)](https://badge.fury.io/rb/ifsc) [![PHP version](https://badge.fury.io/ph/razorpay%2Fifsc.svg)](https://badge.fury.io/ph/razorpay%2Fifsc)
|
10
8
|
|
11
9
|
## Dataset
|
12
10
|
|
@@ -16,29 +14,41 @@ The latest `scraper` workflow on GitHub should publish a `release-artifact` as w
|
|
16
14
|
|
17
15
|
### Source
|
18
16
|
|
19
|
-
|
20
|
-
|
21
|
-
- List of NEFT IFSCs from [RBI website][combined]
|
22
|
-
- List of RTGS IFSCs from [RBI website][rtgs]
|
23
|
-
-
|
24
|
-
-
|
25
|
-
-
|
17
|
+
Various official sources are linked below, with the ones currently used marked with a †
|
18
|
+
|
19
|
+
- List of NEFT IFSCs from [RBI website][combined]†
|
20
|
+
- List of RTGS IFSCs from [RBI website][rtgs]†
|
21
|
+
- RBI maintains several lists:
|
22
|
+
- [List of banks in India](https://www.rbi.org.in/commonman/english/scripts/banksinindia.aspx)
|
23
|
+
- [Websites of banks in India](https://www.rbi.org.in/scripts/banklinks.aspx).
|
24
|
+
- [Bankwise Volumes in ECS/NEFT/RTGS/Mobile](https://www.rbi.org.in/Scripts/NEFTUserView.aspx?Id=166)
|
25
|
+
- [List of Banks permitted to provide Mobile Banking](https://www.rbi.org.in/Scripts/bs_viewcontent.aspx?Id=2463)
|
26
|
+
- NPCI website has several lists:
|
27
|
+
- [NACH Live Members][ach]†
|
28
|
+
- [RuPay Live Members](https://www.npci.org.in/what-we-do/rupay/live-members)
|
29
|
+
- [IMPS Live members](https://www.npci.org.in/what-we-do/imps/live-members)
|
30
|
+
- [Banks and Apps live on AutoPay](https://www.npci.org.in/what-we-do/autopay/list-of-banks-and-apps-live-on-autopay)
|
31
|
+
- [Sub member banks IFSC and MICR Codes](https://www.npci.org.in/PDF/npci/ifsc-and-micr-codes/Submember-banks-IFSC-and-MICR.xlsx)
|
32
|
+
- [Merged banks IFSC and MICR Codes](https://www.npci.org.in/PDF/npci/ifsc-and-micr-codes/Merged-banks-IFSC-and-MICR.xlsx)
|
33
|
+
- [Routing codes used in API E-Mandates](https://www.npci.org.in/PDF/nach/live-members-e-mandates/Routing%20codes%20to%20be%20used%20in%20API%20E-Mandates_11_7_19.pdf)
|
34
|
+
- [Merged Banks on NACH](https://www.npci.org.in/what-we-do/nach/live-members/merged-banks)
|
35
|
+
- [Blocked Banks on NACH](https://www.npci.org.in/what-we-do/nach/live-members/blocked-banks)
|
26
36
|
|
27
37
|
#### SWIFT
|
28
38
|
|
29
39
|
SWIFT/BIC codes are supported for a few banks.
|
30
40
|
|
31
41
|
##### SBI
|
32
|
-
- https://sbi.co.in/web/nri/quick-links/swift-codes
|
33
|
-
- https://sbi.co.in/documents/16012/263663/sbinri_merged_bran_swfcodet.xlsx
|
42
|
+
- https://sbi.co.in/web/nri/quick-links/swift-codes †
|
43
|
+
- https://sbi.co.in/documents/16012/263663/sbinri_merged_bran_swfcodet.xlsx †
|
34
44
|
- Branch codes from above are checked against the [SBI Branch Locator](https://www.sbi.co.in/web/home/locator/branch) to get the IFSC.
|
35
45
|
|
36
46
|
##### PNB
|
37
|
-
- https://pnbindia.com/downloadprocess.aspx?fid=Zb7ImdUNlz9Ge73qn1nXQg==
|
38
|
-
- https://www.pnbindia.in/document/PNB-helpdesk/bic_code.pdf
|
47
|
+
- https://pnbindia.com/downloadprocess.aspx?fid=Zb7ImdUNlz9Ge73qn1nXQg== †
|
48
|
+
- https://www.pnbindia.in/document/PNB-helpdesk/bic_code.pdf †
|
39
49
|
|
40
50
|
##### HDFC
|
41
|
-
- https://www.hdfcbank.com/nri-banking/correspondent-banks
|
51
|
+
- https://www.hdfcbank.com/nri-banking/correspondent-banks †
|
42
52
|
|
43
53
|
## Installation
|
44
54
|
|
@@ -165,8 +175,15 @@ echo $res->contact; // '4131000'
|
|
165
175
|
echo $res->city; // 'GURGAON'
|
166
176
|
echo $res->district; // 'GURGAON'
|
167
177
|
echo $res->state; // 'HARYANA'
|
178
|
+
echo $res->centre; // 'GURGAON'
|
168
179
|
echo $res->getBankCode(); // KKBK
|
169
180
|
echo $res->getBankName(); // 'Kotak Mahindra Bank'
|
181
|
+
echo $res->micr; // '110485003'
|
182
|
+
// Boolean fields: $res->upi, $res->rtgs, $res->neft, res->imps
|
183
|
+
|
184
|
+
// You will get a SWIFT code where possible:
|
185
|
+
|
186
|
+
echo $client->lookupIFSC('https://ifsc.razorpay.com/HDFC0CAGSBK')->swift; // 'HDFCINBB'
|
170
187
|
|
171
188
|
// lookupIFSC may throw `Razorpay\IFSC\Exception\ServerError`
|
172
189
|
// in case of server not responding in time
|
@@ -184,6 +201,24 @@ ifsc.validate('BOTM0XEEMRA'); // returns false
|
|
184
201
|
|
185
202
|
ifsc.fetchDetails('KKBK0000261').then(function(res) {
|
186
203
|
console.log(res);
|
204
|
+
// {
|
205
|
+
// MICR: '560226263',
|
206
|
+
// BRANCH: 'THE AGS EMPLOYEES COOP BANK LTD',
|
207
|
+
// ADDRESS: 'SANGMESH BIRADAR BANGALORE',
|
208
|
+
// STATE: 'KARNATAKA',
|
209
|
+
// CONTACT: '+91802265658',
|
210
|
+
// UPI: true,
|
211
|
+
// RTGS: true,
|
212
|
+
// CITY: 'BANGALORE',
|
213
|
+
// CENTRE: 'BANGALORE URBAN',
|
214
|
+
// DISTRICT: 'BANGALORE URBAN',
|
215
|
+
// NEFT: true,
|
216
|
+
// IMPS: true,
|
217
|
+
// SWIFT: 'HDFCINBB',
|
218
|
+
// BANK: 'HDFC Bank',
|
219
|
+
// BANKCODE: 'HDFC',
|
220
|
+
// IFSC: 'HDFC0CAGSBK'
|
221
|
+
// }
|
187
222
|
});
|
188
223
|
|
189
224
|
console.log(ifsc.bank.PUNB); // prints PUNB
|
@@ -261,6 +296,19 @@ code.district
|
|
261
296
|
# => "GURGAON"
|
262
297
|
code.state
|
263
298
|
# => "HARYANA"
|
299
|
+
code.centre
|
300
|
+
# => GURGAON
|
301
|
+
code.neft
|
302
|
+
# => true
|
303
|
+
code.upi
|
304
|
+
# => true
|
305
|
+
code.imps
|
306
|
+
# => true
|
307
|
+
code.rtgs
|
308
|
+
# => true
|
309
|
+
code.swift
|
310
|
+
# => ""
|
311
|
+
|
264
312
|
```
|
265
313
|
|
266
314
|
#### Sublet Branches
|
data/ifsc.gemspec
CHANGED
@@ -3,8 +3,8 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = 'ifsc'
|
6
|
-
s.version = '2.0.
|
7
|
-
s.date = '2022-
|
6
|
+
s.version = '2.0.9'
|
7
|
+
s.date = '2022-08-04'
|
8
8
|
s.summary = 'IFSC code database to help you validate IFSC codes'
|
9
9
|
s.description = 'A simple gem by @razorpay to help you validate your IFSC codes. IFSC codes are bank codes within India'
|
10
10
|
s.authors = ['Abhay Rana', 'Nihal Gonsalves']
|