ifsc 2.0.5 → 2.0.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9d90a0c2df8a4894f92f10f3f227143e9c9650a7d74597327d1be1f7afbf7897
4
- data.tar.gz: 9ce9a0b3da3c41f2843f514c58b4f79d514c402ab11df199a38aabc0c6a839c7
3
+ metadata.gz: 9eb5f47a3b6155e6811e3ec39961ec91f7eb6c9bc11f2adc82051e7ad24a65fc
4
+ data.tar.gz: 8def555fa4403818a7284091acf73fb7828543c60d9b85124aeadcec523afd61
5
5
  SHA512:
6
- metadata.gz: 881ac8774ff080249a56c31b59a58bce6ed453b8a8cb318efc20d93cec4a5bb16b204718afce7aebc1469283f461dee303a04664bb76d5873bbb5cb627b07a93
7
- data.tar.gz: 7d7541d3d886ac3c243ae30a8a03e71235b8d8aaab55a5cdfd79ed8c92008cfba822f87d47fb721aed85e3903fe385e75fc6191818dddc66cd8713f48bcc8f80
6
+ metadata.gz: f721a1721228f82d9368148fee57e8056e329e0f2e8f47f469228544decabcfaee3a7d8df70a412cb056da8010621664e79211a5a4ae837c8530650d15b1950b
7
+ data.tar.gz: 00efdee869fd0ed60ab15b1d4bc335aa2966ad5b27f50b739d83f75b729615767252e8f47a90c4ba27fca4d1c6786dd3b6325c0453e92327336335504ddbb444
data/CHANGELOG.md CHANGED
@@ -5,24 +5,42 @@ 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.8][2.0.8]
9
+ ### Changed
10
+ - Metadata updates
11
+
12
+ ## [2.0.7][2.0.7]
13
+ ### Changed
14
+ - Dependency Updates
15
+ - Updated metadata
16
+ - All constant files are now automatically generated
17
+ - `IXXX` as custom bank code for "Indrayani Co-operative Bank"
18
+ - NPCI does not publish bank type any more, so these are now maintained in this repository as patches
19
+ - Minor bank name updates
20
+ - Support for Go 1.18
21
+
22
+ ## [2.0.6][2.0.6]
23
+ ### Changed
24
+ - Updated Metadata
25
+
8
26
  ## [2.0.5][2.0.5]
9
- ## Changed
27
+ ### Changed
10
28
  - Updated Metadata
11
29
 
12
30
  ## [2.0.4][2.0.4]
13
- ## Changed
31
+ ### Changed
14
32
  - Update IFSC.json for the below 20 IFSC codes
15
33
 
16
34
  ## [2.0.3][2.0.3]
17
- ## Changed
35
+ ### Changed
18
36
  - Adds back 20 IFSC codes removed due to a change on the RBI sheet structure in 2.0.2
19
37
 
20
38
  ## [2.0.2][2.0.2]
21
- ## Changed
39
+ ### Changed
22
40
  - Metadata changes
23
41
 
24
42
  ## [2.0.1][2.0.1]
25
- ## Changed
43
+ ### Changed
26
44
  - Metadata changes
27
45
 
28
46
  ## [2.0.0][2.0.0]
@@ -62,11 +80,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
62
80
  - Improved support for Contact details that are sourced from RTGS dataset. CONTACT details are returned in E.164 format
63
81
 
64
82
  ## [1.5.11][1.5.11]
65
- ## Changed
83
+ ### Changed
66
84
  - Metadata updates
67
85
 
68
86
  ## [1.5.10][1.5.10]
69
- ## Changed
87
+ ### Changed
70
88
  - 2 new banks:
71
89
  - ARBL: Arvind Sahakari Bank
72
90
  - TNCB: Nawanagar Co-operative Bank
@@ -239,7 +257,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
239
257
 
240
258
  - Removes some data formats (YAML/Large JSON) for cleaner code. If you were using them, please let create an issue.
241
259
 
242
- [unreleased]: https://github.com/razorpay/ifsc/compare/2.0.3...HEAD
260
+ [unreleased]: https://github.com/razorpay/ifsc/compare/2.0.8...HEAD
261
+ [2.0.8]: https://github.com/razorpay/ifsc/releases/tag/2.0.8
262
+ [2.0.7]: https://github.com/razorpay/ifsc/releases/tag/2.0.7
263
+ [2.0.6]: https://github.com/razorpay/ifsc/releases/tag/2.0.6
264
+ [2.0.5]: https://github.com/razorpay/ifsc/releases/tag/2.0.5
265
+ [2.0.4]: https://github.com/razorpay/ifsc/releases/tag/2.0.4
243
266
  [2.0.3]: https://github.com/razorpay/ifsc/releases/tag/2.0.3
244
267
  [2.0.2]: https://github.com/razorpay/ifsc/releases/tag/2.0.2
245
268
  [2.0.1]: https://github.com/razorpay/ifsc/releases/tag/2.0.1
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
- [![](https://images.microbadger.com/badges/image/razorpay/ifsc:2.0.5.svg)](https://microbadger.com/images/razorpay/ifsc:2.0.5) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)
8
-
9
- [![](https://images.microbadger.com/badges/version/razorpay/ifsc:2.0.5.svg)](https://microbadger.com/images/razorpay/ifsc:2.0.5) [![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
- The source for the dataset are the following files:
20
-
21
- - List of NEFT IFSCs from [RBI website][combined]
22
- - List of RTGS IFSCs from [RBI website][rtgs]
23
- - List of ACH Live Banks from [NPCI website][ach] used for IFSC sublet branches
24
- - List of [IMPS Live members](https://www.npci.org.in/what-we-do/imps/live-members) on the NPCI website.
25
- - RBI maintains a [list of banks in India](https://www.rbi.org.in/commonman/english/scripts/banksinindia.aspx) and [websites of banks in India](https://www.rbi.org.in/scripts/banklinks.aspx)
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.5'
7
- s.date = '2021-12-08'
6
+ s.version = '2.0.8'
7
+ s.date = '2022-06-15'
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']