Skip to content

Commit

Permalink
Merge pull request #202 from razorpay/release/1.5.8
Browse files Browse the repository at this point in the history
[release] 1.5.8
  • Loading branch information
Nemo authored Dec 11, 2020
2 parents 417fe79 + b81958f commit a8e8a9d
Show file tree
Hide file tree
Showing 14 changed files with 123 additions and 22 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ 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).

[![wercker status](https://app.wercker.com/status/bc9b22047e1b8eb55ce98ba451d7b504/s/master 'wercker status')](https://app.wercker.com/project/byKey/bc9b22047e1b8eb55ce98ba451d7b504) [![](https://images.microbadger.com/badges/image/razorpay/ifsc:1.5.7.svg)](https://microbadger.com/images/razorpay/ifsc:1.5.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)
[![wercker status](https://app.wercker.com/status/bc9b22047e1b8eb55ce98ba451d7b504/s/master 'wercker status')](https://app.wercker.com/project/byKey/bc9b22047e1b8eb55ce98ba451d7b504) [![](https://images.microbadger.com/badges/image/razorpay/ifsc:1.5.8.svg)](https://microbadger.com/images/razorpay/ifsc:1.5.8) [![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)

[![](https://images.microbadger.com/badges/version/razorpay/ifsc:1.5.7.svg)](https://microbadger.com/images/razorpay/ifsc:1.5.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)
[![](https://images.microbadger.com/badges/version/razorpay/ifsc:1.5.8.svg)](https://microbadger.com/images/razorpay/ifsc:1.5.8) [![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)

## Dataset

Expand Down
2 changes: 1 addition & 1 deletion ifsc.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)

Gem::Specification.new do |s|
s.name = 'ifsc'
s.version = '1.5.7'
s.version = '1.5.8'
s.date = '2020-09-23'
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'
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule IFSC.Mixfile do
def project do
[
app: :ifsc,
version: "1.5.7",
version: "1.5.8",
elixir: "~> 1.5",
start_permanent: Mix.env == :prod,
description: description(),
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ifsc",
"version": "1.5.7",
"version": "1.5.8",
"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
6 changes: 5 additions & 1 deletion scraper/scripts/methods_nach.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ def match_length_or_nil(data, expected_length)
data.length === expected_length ? data : nil
end

def get_value(data)
(data != nil && data.text.strip == 'Yes') ? true : false
end

def bank_data(bank_code, data, _ifsc)
{
code: bank_code,
Expand All @@ -34,7 +38,7 @@ def bank_data(bank_code, data, _ifsc)
apbs: data[7].text.strip == 'Yes',
ach_credit: data[8].text.strip == 'Yes',
ach_debit: data[9].text.strip == 'Yes',
nach_debit: data[10].text.strip == 'Yes'
nach_debit: get_value(data[10])
}
end

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
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"AJSX": "Ambarnath Jai-hind Co-operative Bank",
"AJUX": "Ajara Urban Co-operative Bank Bom",
"AKJB": "Akola Janata Commercial Co-operative Bank",
"AKKB": "Akkamahadevi Mahila Sahakari Bank Niyamit",
"AKMX": "Akola Merchant Co-operative Bank",
"AKOX": "Akola Urban Co-operative Bank",
"ALAX": "Alavi Co-operative Bank",
Expand Down Expand Up @@ -773,6 +774,7 @@
"MSSX": "Merchants Souharda Sahakara Bank Niyamita",
"MUBL": "Municipal Co-operative Bank",
"MUBX": "Maharaja Co-operative Urban Bank",
"MUCG": "Merchants Urban Coop Bank",
"MUCX": "Mapusa Urban Co-operative Bank of Goa",
"MUDX": "Madheshwari Urban Development Co-operative Bank",
"MUNX": "Mahudha Nagarik Sahakari Bank",
Expand Down Expand Up @@ -1030,6 +1032,7 @@
"SAVX": "Sardar Vallabhbhai Sahakari Bank",
"SAWX": "Sawai Madhopur Kendriya Sahakari Bank",
"SBBJ": "State Bank of Bikaner and Jaipur",
"SBCR": "Shree Basaveshwar Urban Coop Bank",
"SBCX": "Sultan's Battery Co-operative Urban Bank",
"SBHY": "State Bank of Hyderabad",
"SBIN": "State Bank of India",
Expand All @@ -1040,6 +1043,7 @@
"SBMX": "Sri Banashankari Mahila Co-operative Bank",
"SBMY": "State Bank of Mysore",
"SBNX": "Shree Bhavnagar Nagrik Sahakari Bank",
"SBPS": "Sri Basaveshwar Pattana Sahakari Bank",
"SBPX": "Sardar Bhiladwala Pardi People's Co-operative Bank",
"SBSX": "Shivajirao Bhosale Sahakari Bank",
"SBTR": "State Bank of Travancore",
Expand Down
91 changes: 78 additions & 13 deletions src/banks.json
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,17 @@
"ach_debit": true,
"nach_debit": false
},
"AKKB": {
"code": "AKKB",
"type": "O-UCB",
"ifsc": "UTIB0SAMMSB",
"micr": "590924002",
"iin": null,
"apbs": false,
"ach_credit": true,
"ach_debit": false,
"nach_debit": false
},
"AKMX": {
"code": "AKMX",
"type": "O-UCB",
Expand Down Expand Up @@ -2608,7 +2619,8 @@
"apbs": true,
"ach_credit": true,
"ach_debit": true,
"nach_debit": false
"nach_debit": false,
"upi": true
},
"CSBK": {
"code": "CSBK",
Expand Down Expand Up @@ -4184,6 +4196,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": true,
"nach_debit": false
},
"HSBX": {
"code": "HSBX",
"type": "O-UCB",
Expand Down Expand Up @@ -4487,7 +4510,8 @@
"apbs": true,
"ach_credit": true,
"ach_debit": true,
"nach_debit": false
"nach_debit": false,
"upi": true
},
"ISBX": {
"code": "ISBX",
Expand Down Expand Up @@ -5807,7 +5831,8 @@
"apbs": true,
"ach_credit": true,
"ach_debit": true,
"nach_debit": false
"nach_debit": false,
"upi": true
},
"KBNX": {
"code": "KBNX",
Expand Down Expand Up @@ -6321,7 +6346,8 @@
"apbs": true,
"ach_credit": true,
"ach_debit": true,
"nach_debit": false
"nach_debit": false,
"upi": true
},
"KRCX": {
"code": "KRCX",
Expand Down Expand Up @@ -7765,6 +7791,17 @@
"ach_debit": true,
"nach_debit": false
},
"MUCG": {
"code": "MUCG",
"type": "O-UCB",
"ifsc": "UTIB0SMUCBG",
"micr": "582883002",
"iin": null,
"apbs": false,
"ach_credit": true,
"ach_debit": false,
"nach_debit": false
},
"MUDX": {
"code": "MUDX",
"type": "O-UCB",
Expand Down Expand Up @@ -8995,7 +9032,8 @@
"apbs": true,
"ach_credit": true,
"ach_debit": true,
"nach_debit": false
"nach_debit": false,
"upi": true
},
"PDBX": {
"code": "PDBX",
Expand Down Expand Up @@ -9550,7 +9588,7 @@
"ifsc": "PYTM0000001",
"micr": "110766001",
"iin": "608032",
"apbs": true,
"apbs": false,
"ach_credit": true,
"ach_debit": true,
"nach_debit": false,
Expand Down Expand Up @@ -10310,6 +10348,17 @@
"ach_debit": false,
"nach_debit": false
},
"SBCR": {
"code": "SBCR",
"type": "O-UCB",
"ifsc": "UTIB0SBUBRN",
"micr": "581821102",
"iin": null,
"apbs": false,
"ach_credit": true,
"ach_debit": false,
"nach_debit": false
},
"SBCX": {
"code": "SBCX",
"type": "O-UCB",
Expand Down Expand Up @@ -10388,6 +10437,17 @@
"ach_debit": true,
"nach_debit": false
},
"SBPS": {
"code": "SBPS",
"type": "O-UCB",
"ifsc": "UTIB0SBPSBN",
"micr": "586824002",
"iin": null,
"apbs": false,
"ach_credit": true,
"ach_debit": false,
"nach_debit": false
},
"SBPX": {
"code": "SBPX",
"type": "S-UCB",
Expand Down Expand Up @@ -10564,7 +10624,8 @@
"apbs": true,
"ach_credit": true,
"ach_debit": true,
"nach_debit": false
"nach_debit": false,
"upi": true
},
"SDCX": {
"code": "SDCX",
Expand Down Expand Up @@ -10605,7 +10666,7 @@
"type": "O-UCB",
"ifsc": "IBKL01340DT",
"micr": "591846202",
"iin": "990324",
"iin": null,
"apbs": true,
"ach_credit": true,
"ach_debit": false,
Expand Down Expand Up @@ -10675,7 +10736,8 @@
"apbs": true,
"ach_credit": true,
"ach_debit": true,
"nach_debit": false
"nach_debit": false,
"upi": true
},
"SGCX": {
"code": "SGCX",
Expand Down Expand Up @@ -11314,7 +11376,8 @@
"apbs": true,
"ach_credit": true,
"ach_debit": true,
"nach_debit": false
"nach_debit": false,
"upi": true
},
"SOBX": {
"code": "SOBX",
Expand Down Expand Up @@ -12041,7 +12104,7 @@
"ifsc": "GSCB0UTBSBL",
"micr": "384822501",
"iin": "608223",
"apbs": false,
"apbs": true,
"ach_credit": true,
"ach_debit": false,
"nach_debit": false
Expand Down Expand Up @@ -12686,7 +12749,8 @@
"apbs": true,
"ach_credit": true,
"ach_debit": true,
"nach_debit": false
"nach_debit": false,
"upi": true
},
"TMTX": {
"code": "TMTX",
Expand Down Expand Up @@ -14325,7 +14389,8 @@
"apbs": true,
"ach_credit": true,
"ach_debit": true,
"nach_debit": false
"nach_debit": false,
"upi": true
},
"YMSX": {
"code": "YMSX",
Expand Down
4 changes: 4 additions & 0 deletions src/node/bank.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ module.exports = Object.freeze({
AJSX: 'AJSX',
AJUX: 'AJUX',
AKJB: 'AKJB',
AKKB: 'AKKB',
AKMX: 'AKMX',
AKOX: 'AKOX',
ALAX: 'ALAX',
Expand Down Expand Up @@ -772,6 +773,7 @@ module.exports = Object.freeze({
MSSX: 'MSSX',
MUBL: 'MUBL',
MUBX: 'MUBX',
MUCG: 'MUCG',
MUCX: 'MUCX',
MUDX: 'MUDX',
MUNX: 'MUNX',
Expand Down Expand Up @@ -1029,6 +1031,7 @@ module.exports = Object.freeze({
SAVX: 'SAVX',
SAWX: 'SAWX',
SBBJ: 'SBBJ',
SBCR: 'SBCR',
SBCX: 'SBCX',
SBHY: 'SBHY',
SBIN: 'SBIN',
Expand All @@ -1039,6 +1042,7 @@ module.exports = Object.freeze({
SBMX: 'SBMX',
SBMY: 'SBMY',
SBNX: 'SBNX',
SBPS: 'SBPS',
SBPX: 'SBPX',
SBSX: 'SBSX',
SBTR: 'SBTR',
Expand Down
Loading

0 comments on commit a8e8a9d

Please sign in to comment.