ifsc 2.0.6 → 2.0.7

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d80e9b738a4490f5de6c0def79efa67949c480f411596b251bbfd910e918914b
4
- data.tar.gz: ac72033b1a663ea558b05f76caa28a18e4a417126a48c5e8dffd51b6069fa426
3
+ metadata.gz: 3cf4f7922b3fb6f1c4eb15911f5db41711c5b86935dec139c1b0f83831a41607
4
+ data.tar.gz: dfa6fd32e3e9a062af832d3d160710c89b6591e023d340314aa4c5d92fd7afb1
5
5
  SHA512:
6
- metadata.gz: 4e9667c3d3ec19509063e629ce9926dfa43ce1271f27afe91f18ac1b41b68cb4970f5ada236c8ded0b88915b8eb0364f6ababe1e649e5055a23d73cac5d625a6
7
- data.tar.gz: 24b567174fe7fa29945be187ae83eedd58939e0bf8ab01b181f350f72c4142c177278d538b77acd1d75da60b9ffee7849beae43fb3a7346ab3c9fdb85af1f542
6
+ metadata.gz: fe39e3c22f9c59f959a953d3aa6befcf8f73178c5466423f8e44a146382c6901ccb96ecd600e4052dd3f80e4d8c073de58cdfcdbe36237da5ad006d10eb1392f
7
+ data.tar.gz: ea9d4e9a20f95210f075adbc2a6d0fb50a21885e0a8dfcb685a86ce4b019138c105d93be72c3e9299c42713a1cf8c2ae7e415e0ede78f99470daea56876c95b6
data/CHANGELOG.md CHANGED
@@ -5,6 +5,16 @@ 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
+
8
18
  ## [2.0.6][2.0.6]
9
19
  ## Changed
10
20
  - Updated Metadata
@@ -243,7 +253,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
243
253
 
244
254
  - Removes some data formats (YAML/Large JSON) for cleaner code. If you were using them, please let create an issue.
245
255
 
246
- [unreleased]: https://github.com/razorpay/ifsc/compare/2.0.6...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
247
258
  [2.0.6]: https://github.com/razorpay/ifsc/releases/tag/2.0.6
248
259
  [2.0.5]: https://github.com/razorpay/ifsc/releases/tag/2.0.5
249
260
  [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,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.6.svg)](https://microbadger.com/images/razorpay/ifsc:2.0.6) [![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.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)
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.6'
7
- s.date = '2022-01-25'
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']