Skip to content

Commit

Permalink
Merge pull request #183 from razorpay/release/1.5.3
Browse files Browse the repository at this point in the history
Version Bump (1.5.3)
  • Loading branch information
Nemo committed Apr 8, 2020
2 parents 668f2ed + 9eac189 commit 063b363
Show file tree
Hide file tree
Showing 16 changed files with 113 additions and 32 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Expand Up @@ -5,6 +5,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## UNRELEASED

## 1.5.3

### Changed

- Metadata updates

## 1.5.2

### Changed
Expand Down
4 changes: 2 additions & 2 deletions ifsc.gemspec
Expand Up @@ -3,8 +3,8 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)

Gem::Specification.new do |s|
s.name = 'ifsc'
s.version = '1.5.2'
s.date = '2020-03-27'
s.version = '1.5.3'
s.date = '2020-04-08'
s.summary = 'IFSC code database to help you validate IFSC codes'
s.description = 'A simple gem by @razorpay to help you validate your IFSC codes. IFSC codes are bank codes within India'
s.authors = ['Abhay Rana', 'Nihal Gonsalves']
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Expand Up @@ -4,7 +4,7 @@ defmodule IFSC.Mixfile do
def project do
[
app: :ifsc,
version: "1.5.2",
version: "1.5.3",
elixir: "~> 1.5",
start_permanent: Mix.env == :prod,
description: description(),
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "ifsc",
"version": "1.5.2",
"version": "1.5.3",
"description": "This is part of the IFSC toolset released by Razorpay. You can find more details about the entire release at [ifsc.razorpay.com](https://ifsc.razorpay.com). Includes only a validation library as of now.",
"main": "src/node/index.js",
"directories": {
Expand Down
10 changes: 5 additions & 5 deletions scraper/Gemfile.lock
Expand Up @@ -2,13 +2,13 @@ GEM
remote: https://rubygems.org/
specs:
mini_portile2 (2.4.0)
nokogiri (1.10.8)
nokogiri (1.10.9)
mini_portile2 (~> 2.4.0)
ruby-ole (1.2.12.2)
rubyXL (3.4.12)
nokogiri (>= 1.4.4)
rubyXL (3.4.14)
nokogiri (>= 1.10.8)
rubyzip (>= 1.3.0)
rubyzip (2.2.0)
rubyzip (2.3.0)
spreadsheet (1.2.6)
ruby-ole (>= 1.0)

Expand All @@ -21,4 +21,4 @@ DEPENDENCIES
spreadsheet

BUNDLED WITH
2.0.2
2.1.4
5 changes: 3 additions & 2 deletions scraper/scripts/bootstrap.sh
Expand Up @@ -8,8 +8,9 @@ if [[ $@ == *'--no-download'* ]]; then
echo "Skipping download"
else
# List of sublet branches, and IMPS only branches
wget --timeout=10 "https://www.npci.org.in/national-automated-clearing-live-members-1" --output-document=nach.html --user-agent="Firefox"
wget --timeout=10 "https://www.npci.org.in/upi-live-members" --output-document=upi.html --user-agent="Firefox"
# Till NPCI fixes their certificate: https://twitter.com/captn3m0/status/1247806778529599496
wget --no-check-certificate --timeout=10 "https://www.npci.org.in/national-automated-clearing-live-members-1" --output-document=nach.html --user-agent="Firefox"
wget --no-check-certificate --timeout=10 "https://www.npci.org.in/upi-live-members" --output-document=upi.html --user-agent="Firefox"
wget --timestamping --no-verbose --directory-prefix=sheets/ "https://rbidocs.rbi.org.in/rdocs/content/docs/68774.xlsx" || true
wget --timestamping --no-verbose --directory-prefix=sheets/ "https://rbidocs.rbi.org.in/rdocs/RTGS/DOCs/RTGEB0815.xlsx" || true

Expand Down
2 changes: 1 addition & 1 deletion src/IFSC.json

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions src/banknames.json
Expand Up @@ -417,6 +417,7 @@
"HPSC": "Himachal Pradesh State Co-operative Bank",
"HPSX": "Himachal Pradesh State Co-operative Bank",
"HSBC": "Hongkong & Shanghai Banking Corporation",
"HSBM": "Haveli Sahakari Bank",
"HSBX": "Harihareshwar Sahakari Bank",
"HSCX": "Haryana State Co-operative Apex Bank",
"HSDX": "Hassan District Co-operative Central Bank",
Expand Down Expand Up @@ -741,6 +742,7 @@
"MKPB": "Malkapur Urban Co-operative Bank",
"MKUX": "Malkapur Urban Co-operative Bank",
"MKYX": "Marketyard Commercial Co-operativebank",
"MLCG": "Merchants Liberal Co-operative Bank",
"MLDX": "Malda District Central Co-operative Bank",
"MMCX": "Mattancherry Mahajanik Co-operative Urban Bank",
"MMMX": "Mahila Nagrik Sahakari Bank Maryadit Mahasamund",
Expand Down Expand Up @@ -1174,6 +1176,7 @@
"SVCB": "Shamrao Vithal Co-operative Bank",
"SVCX": "Sarvodaya Commerical Co-operative Bank",
"SVGX": "Sivagangai District Central Co-operative Bank",
"SVMC": "Shri Vijay Mahantesh Co-operative Bank",
"SVNX": "Shivaji Nagari Sahakari Bank",
"SVOX": "Sarvodaya Sahakari Bank",
"SVRX": "Shree Vardhaman Sahakari Bank",
Expand All @@ -1191,6 +1194,7 @@
"TBDX": "Buldana District Central Co-operative Bank",
"TBHX": "Bhadran People's Co-operative Bank",
"TBMX": "Bapunagar Mahila Co-operative Bank",
"TBNS": "Becharaji Nagarik Sahakari Bank",
"TBPX": "Botad Peoples Co-operative Bank",
"TBSB": "Thane Bharat Sahakari Bank",
"TBSX": "Bihar State Co-operative Bank",
Expand Down
52 changes: 49 additions & 3 deletions src/banks.json
Expand Up @@ -1178,7 +1178,8 @@
"apbs": true,
"ach_credit": true,
"ach_debit": true,
"nach_debit": false
"nach_debit": false,
"upi": true
},
"BCBX": {
"code": "BCBX",
Expand Down Expand Up @@ -4172,6 +4173,17 @@
"nach_debit": true,
"upi": true
},
"HSBM": {
"code": "HSBM",
"type": "O-UCB",
"ifsc": "YESB0HSBLM0",
"micr": "411945002",
"iin": "508550",
"apbs": false,
"ach_credit": true,
"ach_debit": false,
"nach_debit": false
},
"HSBX": {
"code": "HSBX",
"type": "O-UCB",
Expand Down Expand Up @@ -7443,6 +7455,17 @@
"ach_debit": true,
"nach_debit": false
},
"MLCG": {
"code": "MLCG",
"type": "O-UCB",
"ifsc": "UTIB0SMLCBK",
"micr": "582802002",
"iin": null,
"apbs": false,
"ach_credit": true,
"ach_debit": false,
"nach_debit": false
},
"MLDX": {
"code": "MLDX",
"type": "DCCB",
Expand Down Expand Up @@ -9503,7 +9526,7 @@
"ifsc": "PYTM0000001",
"micr": "110766001",
"iin": "608032",
"apbs": false,
"apbs": true,
"ach_credit": true,
"ach_debit": true,
"nach_debit": false,
Expand Down Expand Up @@ -11758,6 +11781,17 @@
"ach_debit": true,
"nach_debit": false
},
"SVMC": {
"code": "SVMC",
"type": "O-UCB",
"ifsc": "UTIB0SSVMCB",
"micr": "587866501",
"iin": null,
"apbs": false,
"ach_credit": true,
"ach_debit": false,
"nach_debit": false
},
"SVNX": {
"code": "SVNX",
"type": "O-UCB",
Expand Down Expand Up @@ -11935,6 +11969,17 @@
"ach_debit": true,
"nach_debit": false
},
"TBNS": {
"code": "TBNS",
"type": "O-UCB",
"ifsc": "GSCB0UTBSBL",
"micr": "384822501",
"iin": "608223",
"apbs": false,
"ach_credit": true,
"ach_debit": false,
"nach_debit": false
},
"TBPX": {
"code": "TBPX",
"type": "O-UCB",
Expand Down Expand Up @@ -13932,7 +13977,8 @@
"apbs": true,
"ach_credit": true,
"ach_debit": true,
"nach_debit": false
"nach_debit": false,
"upi": true
},
"VSSX": {
"code": "VSSX",
Expand Down
4 changes: 4 additions & 0 deletions src/node/bank.js
Expand Up @@ -416,6 +416,7 @@ module.exports = Object.freeze({
HPSC: 'HPSC',
HPSX: 'HPSX',
HSBC: 'HSBC',
HSBM: 'HSBM',
HSBX: 'HSBX',
HSCX: 'HSCX',
HSDX: 'HSDX',
Expand Down Expand Up @@ -740,6 +741,7 @@ module.exports = Object.freeze({
MKPB: 'MKPB',
MKUX: 'MKUX',
MKYX: 'MKYX',
MLCG: 'MLCG',
MLDX: 'MLDX',
MMCX: 'MMCX',
MMMX: 'MMMX',
Expand Down Expand Up @@ -1173,6 +1175,7 @@ module.exports = Object.freeze({
SVCB: 'SVCB',
SVCX: 'SVCX',
SVGX: 'SVGX',
SVMC: 'SVMC',
SVNX: 'SVNX',
SVOX: 'SVOX',
SVRX: 'SVRX',
Expand All @@ -1190,6 +1193,7 @@ module.exports = Object.freeze({
TBDX: 'TBDX',
TBHX: 'TBHX',
TBMX: 'TBMX',
TBNS: 'TBNS',
TBPX: 'TBPX',
TBSB: 'TBSB',
TBSX: 'TBSX',
Expand Down
4 changes: 2 additions & 2 deletions src/patches/banks/upi-enabled-banks.yml
Expand Up @@ -22,6 +22,7 @@ banks:
- AUBL
- BACB
- BARB
- BCBM
- BDBL
- BGBX
- BGGX
Expand Down Expand Up @@ -149,8 +150,7 @@ banks:
- VIJB
- VIJX
- VSBL
- VSCX
- VVSB
- XJKG
# Enabled here because NPCI website still lists it,
# But disabled via a second patch.
- YESB
4 changes: 4 additions & 0 deletions src/php/Bank.php
Expand Up @@ -421,6 +421,7 @@ class Bank
const HPSC = 'HPSC';
const HPSX = 'HPSX';
const HSBC = 'HSBC';
const HSBM = 'HSBM';
const HSBX = 'HSBX';
const HSCX = 'HSCX';
const HSDX = 'HSDX';
Expand Down Expand Up @@ -745,6 +746,7 @@ class Bank
const MKPB = 'MKPB';
const MKUX = 'MKUX';
const MKYX = 'MKYX';
const MLCG = 'MLCG';
const MLDX = 'MLDX';
const MMCX = 'MMCX';
const MMMX = 'MMMX';
Expand Down Expand Up @@ -1178,6 +1180,7 @@ class Bank
const SVCB = 'SVCB';
const SVCX = 'SVCX';
const SVGX = 'SVGX';
const SVMC = 'SVMC';
const SVNX = 'SVNX';
const SVOX = 'SVOX';
const SVRX = 'SVRX';
Expand All @@ -1195,6 +1198,7 @@ class Bank
const TBDX = 'TBDX';
const TBHX = 'TBHX';
const TBMX = 'TBMX';
const TBNS = 'TBNS';
const TBPX = 'TBPX';
const TBSB = 'TBSB';
const TBSX = 'TBSX';
Expand Down
21 changes: 11 additions & 10 deletions src/php/Entity.php
Expand Up @@ -20,16 +20,17 @@ public function __construct(ResponseInterface $response)
{
$data = json_decode($response->getBody(), true);

$this->bank = $data['BANK'];
$this->branch = $data['BRANCH'];
$this->address = $data['ADDRESS'];
$this->contact = $data['CONTACT'];
$this->city = $data['CITY'];
$this->code = $this->ifsc = $data['IFSC'];
$this->district = $data['DISTRICT'];
$this->state = $data['STATE'];

$this->bankCode = $this->getBankCode();
if ($data) {
$this->bank = $data['BANK'];
$this->branch = $data['BRANCH'];
$this->address = $data['ADDRESS'];
$this->contact = $data['CONTACT'];
$this->city = $data['CITY'];
$this->code = $this->ifsc = $data['IFSC'];
$this->district = $data['DISTRICT'];
$this->state = $data['STATE'];
$this->bankCode = $this->getBankCode();
}
}

public function getBankCode()
Expand Down
4 changes: 4 additions & 0 deletions src/ruby/bank.rb
Expand Up @@ -420,6 +420,7 @@ module Bank
HPSC = :HPSC
HPSX = :HPSX
HSBC = :HSBC
HSBM = :HSBM
HSBX = :HSBX
HSCX = :HSCX
HSDX = :HSDX
Expand Down Expand Up @@ -744,6 +745,7 @@ module Bank
MKPB = :MKPB
MKUX = :MKUX
MKYX = :MKYX
MLCG = :MLCG
MLDX = :MLDX
MMCX = :MMCX
MMMX = :MMMX
Expand Down Expand Up @@ -1177,6 +1179,7 @@ module Bank
SVCB = :SVCB
SVCX = :SVCX
SVGX = :SVGX
SVMC = :SVMC
SVNX = :SVNX
SVOX = :SVOX
SVRX = :SVRX
Expand All @@ -1194,6 +1197,7 @@ module Bank
TBDX = :TBDX
TBHX = :TBHX
TBMX = :TBMX
TBNS = :TBNS
TBPX = :TBPX
TBSB = :TBSB
TBSX = :TBSX
Expand Down
4 changes: 4 additions & 0 deletions src/sublet.json
Expand Up @@ -120,6 +120,7 @@
"GSCB0USHNBL": "SINX",
"GSCB0USMCBL": "TSMX",
"GSCB0USSNPL": "SALX",
"GSCB0UTBSBL": "TBNS",
"GSCB0UTKSBL": "TKAX",
"GSCB0UTPCBL": "PGTX",
"GSCB0UTSNBL": "SNBX",
Expand Down Expand Up @@ -940,6 +941,7 @@
"UTIB0SMCB01": "MOGX",
"UTIB0SMCC01": "MCCX",
"UTIB0SMCCB1": "MCLX",
"UTIB0SMLCBK": "MLCG",
"UTIB0SMMCB1": "MAMX",
"UTIB0SMNSB1": "MGSX",
"UTIB0SMPCB1": "MPCX",
Expand Down Expand Up @@ -968,6 +970,7 @@
"UTIB0SSSB01": "SGLX",
"UTIB0SSSBL1": "SISX",
"UTIB0SSUCB1": "SSWX",
"UTIB0SSVMCB": "SVMC",
"UTIB0STMNBI": "MUNX",
"UTIB0STTN01": "TTCX",
"UTIB0SUBBLR": "BUCL",
Expand Down Expand Up @@ -1026,6 +1029,7 @@
"YESB0GUCB01": "GUBX",
"YESB0HCBL01": "HCLX",
"YESB0HPB051": "HPSX",
"YESB0HSBLM0": "HSBM",
"YESB0HSCB01": "HSSX",
"YESB0ICBL01": "INCX",
"YESB0ICMB02": "ICMX",
Expand Down

0 comments on commit 063b363

Please sign in to comment.