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 +4 -4
- data/CHANGELOG.md +12 -1
- data/CONTRIBUTING.md +2 -0
- data/README.md +40 -2
- data/ifsc.gemspec +2 -2
- data/src/IFSC.json +1 -1
- data/src/banknames.json +123 -117
- data/src/banks.json +3887 -3868
- data/src/custom-sublets.json +4 -1
- data/src/ruby/bank.rb +12 -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: 3cf4f7922b3fb6f1c4eb15911f5db41711c5b86935dec139c1b0f83831a41607
|
4
|
+
data.tar.gz: dfa6fd32e3e9a062af832d3d160710c89b6591e023d340314aa4c5d92fd7afb1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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://microbadger.com/images/razorpay/ifsc:2.0.7) [](https://opensource.org/licenses/MIT) [](http://makeapullrequest.com)
|
8
8
|
|
9
|
-
[](https://microbadger.com/images/razorpay/ifsc:2.0.7) [](https://badge.fury.io/js/ifsc) [](https://badge.fury.io/rb/ifsc) [](https://badge.fury.io/ph/razorpay%2Fifsc) [](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.
|
7
|
-
s.date = '2022-
|
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']
|