ifsc 2.0.4 → 2.0.7

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: fc01e72e5df817eeeb2ec95732531f4396cb8e5b50a037fe3f484718dff1a7e2
4
- data.tar.gz: e244b034d9d8bd7ded3a5f21ff49377820aa566b28d490cb0907070aac73c464
3
+ metadata.gz: 3cf4f7922b3fb6f1c4eb15911f5db41711c5b86935dec139c1b0f83831a41607
4
+ data.tar.gz: dfa6fd32e3e9a062af832d3d160710c89b6591e023d340314aa4c5d92fd7afb1
5
5
  SHA512:
6
- metadata.gz: fb89b16b8f54e316a2df2f02c77a211ae69c1a339280297dbc11e1b5deb1239ed4b3cb4c19b86a213d9576f94175289c6b52773e95b127f98e105d1e41823aae
7
- data.tar.gz: 709ade8c00c1d1cdba48867cd13844869bf318656f575f1b6c7557cab6bcb2a70482f90eea990ab2d835bf782d3af563e72a3ed649d95683af93da54d73498a4
6
+ metadata.gz: fe39e3c22f9c59f959a953d3aa6befcf8f73178c5466423f8e44a146382c6901ccb96ecd600e4052dd3f80e4d8c073de58cdfcdbe36237da5ad006d10eb1392f
7
+ data.tar.gz: ea9d4e9a20f95210f075adbc2a6d0fb50a21885e0a8dfcb685a86ce4b019138c105d93be72c3e9299c42713a1cf8c2ae7e415e0ede78f99470daea56876c95b6
data/CHANGELOG.md CHANGED
@@ -5,6 +5,24 @@ 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.7][2.0.7]
9
+ ## Changed
10
+ - Dependency Updates
11
+ - Updated metadata
12
+ - All constant files are now automatically generated
13
+ - `IXXX` as custom bank code for "Indrayani Co-operative Bank"
14
+ - NPCI does not publish bank type any more, so these are now maintained in this repository as patches
15
+ - Minor bank name updates
16
+ - Support for Go 1.18
17
+
18
+ ## [2.0.6][2.0.6]
19
+ ## Changed
20
+ - Updated Metadata
21
+
22
+ ## [2.0.5][2.0.5]
23
+ ## Changed
24
+ - Updated Metadata
25
+
8
26
  ## [2.0.4][2.0.4]
9
27
  ## Changed
10
28
  - Update IFSC.json for the below 20 IFSC codes
@@ -235,7 +253,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
235
253
 
236
254
  - Removes some data formats (YAML/Large JSON) for cleaner code. If you were using them, please let create an issue.
237
255
 
238
- [unreleased]: https://github.com/razorpay/ifsc/compare/2.0.3...HEAD
256
+ [unreleased]: https://github.com/razorpay/ifsc/compare/2.0.7...HEAD
257
+ [2.0.6]: https://github.com/razorpay/ifsc/releases/tag/2.0.7
258
+ [2.0.6]: https://github.com/razorpay/ifsc/releases/tag/2.0.6
259
+ [2.0.5]: https://github.com/razorpay/ifsc/releases/tag/2.0.5
260
+ [2.0.4]: https://github.com/razorpay/ifsc/releases/tag/2.0.4
239
261
  [2.0.3]: https://github.com/razorpay/ifsc/releases/tag/2.0.3
240
262
  [2.0.2]: https://github.com/razorpay/ifsc/releases/tag/2.0.2
241
263
  [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,9 @@ 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.4.svg)](https://microbadger.com/images/razorpay/ifsc:2.0.4) [![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)
7
+ [![](https://images.microbadger.com/badges/image/razorpay/ifsc:2.0.7.svg)](https://microbadger.com/images/razorpay/ifsc:2.0.7) [![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
8
 
9
- [![](https://images.microbadger.com/badges/version/razorpay/ifsc:2.0.4.svg)](https://microbadger.com/images/razorpay/ifsc:2.0.4) [![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)
9
+ [![](https://images.microbadger.com/badges/version/razorpay/ifsc:2.0.7.svg)](https://microbadger.com/images/razorpay/ifsc:2.0.7) [![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)
10
10
 
11
11
  ## Dataset
12
12
 
@@ -165,8 +165,15 @@ echo $res->contact; // '4131000'
165
165
  echo $res->city; // 'GURGAON'
166
166
  echo $res->district; // 'GURGAON'
167
167
  echo $res->state; // 'HARYANA'
168
+ echo $res->centre; // 'GURGAON'
168
169
  echo $res->getBankCode(); // KKBK
169
170
  echo $res->getBankName(); // 'Kotak Mahindra Bank'
171
+ echo $res->micr; // '110485003'
172
+ // Boolean fields: $res->upi, $res->rtgs, $res->neft, res->imps
173
+
174
+ // You will get a SWIFT code where possible:
175
+
176
+ echo $client->lookupIFSC('https://ifsc.razorpay.com/HDFC0CAGSBK')->swift; // 'HDFCINBB'
170
177
 
171
178
  // lookupIFSC may throw `Razorpay\IFSC\Exception\ServerError`
172
179
  // in case of server not responding in time
@@ -184,6 +191,24 @@ ifsc.validate('BOTM0XEEMRA'); // returns false
184
191
 
185
192
  ifsc.fetchDetails('KKBK0000261').then(function(res) {
186
193
  console.log(res);
194
+ // {
195
+ // MICR: '560226263',
196
+ // BRANCH: 'THE AGS EMPLOYEES COOP BANK LTD',
197
+ // ADDRESS: 'SANGMESH BIRADAR BANGALORE',
198
+ // STATE: 'KARNATAKA',
199
+ // CONTACT: '+91802265658',
200
+ // UPI: true,
201
+ // RTGS: true,
202
+ // CITY: 'BANGALORE',
203
+ // CENTRE: 'BANGALORE URBAN',
204
+ // DISTRICT: 'BANGALORE URBAN',
205
+ // NEFT: true,
206
+ // IMPS: true,
207
+ // SWIFT: 'HDFCINBB',
208
+ // BANK: 'HDFC Bank',
209
+ // BANKCODE: 'HDFC',
210
+ // IFSC: 'HDFC0CAGSBK'
211
+ // }
187
212
  });
188
213
 
189
214
  console.log(ifsc.bank.PUNB); // prints PUNB
@@ -261,6 +286,19 @@ code.district
261
286
  # => "GURGAON"
262
287
  code.state
263
288
  # => "HARYANA"
289
+ code.centre
290
+ # => GURGAON
291
+ code.neft
292
+ # => true
293
+ code.upi
294
+ # => true
295
+ code.imps
296
+ # => true
297
+ code.rtgs
298
+ # => true
299
+ code.swift
300
+ # => ""
301
+
264
302
  ```
265
303
 
266
304
  #### 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.4'
7
- s.date = '2021-11-18'
6
+ s.version = '2.0.7'
7
+ s.date = '2022-03-21'
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']