banking_data 0.8.0 → 0.9.0

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
- SHA1:
3
- metadata.gz: 9f270c18b8ff55f63f7be545ccb26ffbca4ad620
4
- data.tar.gz: 2976ea5d0fd6ad55339f1a688644e0e98469a2ea
2
+ SHA256:
3
+ metadata.gz: 5dfb494c20fe9405c662d8266b3da4457c082e80d92d84c0744b09507c327829
4
+ data.tar.gz: 66babc00d38a2efa966edc4187daa535c1f546eac62c810948560719e972e93f
5
5
  SHA512:
6
- metadata.gz: f05c498dad3b7667dcde96e7c4fba949c7b39273a2ebee313ae41c3f0cc375c1f910e7370d5d8f0723b1d1e90c1fddf3c77c0f57b2e335149c9ebbf389207b26
7
- data.tar.gz: 6af956e70bc082925ec7d310cacce1a2cad47cf474baf6012c5b59aa5cfc5727f2664a06bb260a721cf7614925691ba5bbbdd4074cba1949fdae6169e7b13a00
6
+ metadata.gz: 124367140688cb0c1c741fc6d067ad50126ef2109b44fc03018de74b021c5ca29c4486d2c6d55c5f51ab078a785da6924cc2f0b9d2f4e96c38083b3722d5fc90
7
+ data.tar.gz: 7515051b86cbb9a29a1a67bba33a524327f982243213378332795da61dd8bf176f1121cef2a24c81df3abfe8229610dab8211dec936f1e038e77ea78ac55aadd
data/README.md CHANGED
@@ -4,10 +4,14 @@
4
4
  [![Coverage Status](https://coveralls.io/repos/opahk/banking_data/badge.png?branch=master)](https://coveralls.io/r/opahk/banking_data?branch=master)
5
5
  [![Code Climate](https://codeclimate.com/github/opahk/banking_data.png)](https://codeclimate.com/github/opahk/banking_data)
6
6
 
7
- Banking data (including SWIFT-codes/BIC) for Germany, Austria, Switzerland.
7
+ Banking data (including SWIFT-codes/BIC) for Germany, Austria, Switzerland, Netherlands.
8
8
 
9
9
  ## CHANGELOG
10
10
 
11
+ ### 0.9.0
12
+
13
+ * add SWIFT data of dutch banks
14
+
11
15
  ### 0.8.0
12
16
 
13
17
  * Update data of swiss banks (bcbankenstamm.txt)
@@ -0,0 +1,71 @@
1
+ Laatste update: 12-06-2018,,,,
2
+ Bank Identifier,BIC,Naam Bank,,
3
+ ABNA,ABNANL2A,ABN AMRO BANK ,,
4
+ ADYB,ADYBNL2A,ADYEN,,
5
+ AEGO,AEGONL2U,AEGON BANK ,,
6
+ ANDL,ANDLNL2A,ANADOLUBANK,,
7
+ ARBN,ARBNNL22,ACHMEA BANK ,,
8
+ ARSN,ARSNNL21,ARGENTA SPAARBANK ,,
9
+ ASNB,ASNBNL21,ASN BANK,,
10
+ ATBA,ATBANL2A,AMSTERDAM TRADE BANK,,
11
+ BCDM,BCDMNL22,BANQUE CHAABI DU MAROC,,
12
+ BCIT,BCITNL2A,INTESA SANPAOLO,,
13
+ BICK,BICKNL2A,BINCKBANK ,,
14
+ BINK,BINKNL21,"BINCKBANK, PROF",,
15
+ BKCH,BKCHNL2R,BANK OF CHINA,,
16
+ BKMG,BKMGNL2A,BANK MENDES GANS,,
17
+ BLGW,BLGWNL21,BLG WONEN,,
18
+ BMEU,BMEUNL21,BMCE EUROSERVICES,,
19
+ BNDA,BNDANL2A,BRAND NEW DAY BANK,,
20
+ BNGH,BNGHNL2G,BANK NEDERLANDSE GEMEENTEN,,
21
+ BNPA,BNPANL2A,BNP PARIBAS,,
22
+ BOFA,BOFANLNX,BANK OF AMERICA,,
23
+ BOFS,BOFSNL21002,"BANK OF SCOTLAND, AMSTERDAM",,
24
+ BOTK,BOTKNL2X,MUFG BANK,,
25
+ BUNQ,BUNQNL2A,BUNQ,,
26
+ CHAS,CHASNL2X,JPMORGAN CHASE,,
27
+ CITC,CITCNL2A,CITCO BANK,,
28
+ CITI,CITINL2X,CITIBANK INTERNATIONAL,,
29
+ COBA,COBANL2X,COMMERZBANK,,
30
+ DEUT,DEUTNL2A,DEUTSCHE BANK (bij alle SEPA-transacties),,
31
+ DHBN,DHBNNL2R,DEMIR-HALK BANK,,
32
+ DLBK,DLBKNL2A,DELTA LLOYD BANK,,
33
+ DNIB,DNIBNL2G,NIBC,,
34
+ EBUR,EBURNL21,EBURY NETHERLANDS,,
35
+ FBHL,FBHLNL2A,CREDIT EUROPE BANK,,
36
+ FLOR,FLORNL2A,DE NEDERLANDSCHE BANK,,
37
+ FRGH,FRGHNL21,FGH BANK,,
38
+ FRNX,FRNXNL2A,FRANX,,
39
+ FTSB,ABNANL2A,ABN AMRO (ex FORTIS),,
40
+ FVLB,FVLBNL22,VAN LANSCHOT ,,
41
+ GILL,GILLNL2A,INSINGERGILISSEN ,,
42
+ HAND,HANDNL2A,SVENSKA HANDELSBANKEN,,
43
+ HHBA,HHBANL22,HOF HOORNEMAN BANKIERS,,
44
+ HSBC,HSBCNL2A,HSBC BANK,,
45
+ ICBK,ICBKNL2A,INDUSTRIAL & COMMERCIAL BANK OF CHINA,,
46
+ INGB,INGBNL2A,ING,,
47
+ ISAE,ISAENL2A,"CACEIS BANK, Netherlands Branch",,
48
+ ISBK,ISBKNL2A,ISBANK,,
49
+ KABA,KABANL2A,YAPI KREDI BANK,,
50
+ KASA,KASANL2A,KAS BANK ,,
51
+ KNAB,KNABNL2H,KNAB,,
52
+ KOEX,KOEXNL2A,KOREA EXCHANGE BANK,,
53
+ KRED,KREDNL2X,KBC BANK,,
54
+ LOCY,LOCYNL2A,LOMBARD ODIER DARIER HENTSCH & CIE,,
55
+ LOYD,LOYDNL2A,LLOYDS TSB BANK ,,
56
+ LPLN,LPLNNL2F,LEASEPLAN CORPORATION ,,
57
+ MHCB,MHCBNL2A,MIZUHO BANK EUROPE NV,,
58
+ MOYO,MOYONL21,MONEYOU,,
59
+ NNBA,NNBANL2G,NATIONALE-NEDERLANDEN BANK,,
60
+ NWAB,NWABNL2G,NEDERLANDSE WATERSCHAPSBANK,,
61
+ PCBC,PCBCNL2A,"CHINA CONSTRUCTION BANK, AMSTERDAM BRANCH",,
62
+ RABO,RABONL2U,RABOBANK,,
63
+ RBRB,RBRBNL21,REGIOBANK,,
64
+ SNSB,SNSBNL2A,SNS,,
65
+ SOGE,SOGENL2A,SOCIETE GENERALE,,
66
+ TEBU,TEBUNL2A,THE ECONOMY BANK ,,
67
+ TRIO,TRIONL2U,TRIODOS BANK,,
68
+ UBSW,UBSWNL2A,"UBS EUROPE, NETHERLANDS BRANCH",,
69
+ UGBI,UGBINL2A,GARANTIBANK INTERNATIONAL ,,
70
+ VOWA,VOWANL21,VOLKSWAGEN BANK,,
71
+ ZWLB,ZWLBNL21,SNS ( ex ZWITSERLEVENBANK),,
data/data/README.md CHANGED
@@ -6,6 +6,7 @@
6
6
  * https://www.oenb.at/idakilz/kiverzeichnis?action=toDownloadPage
7
7
  * https://www.six-interbank-clearing.com/de/home/bank-master-data/download-bc-bank-master.html
8
8
  * https://www.bundesbank.de/Redaktion/DE/Standardartikel/Aufgaben/Unbarer_Zahlungsverkehr/bankleitzahlen_download.html
9
+ * https://www.betaalvereniging.nl/aandachtsgebieden/giraal-betalingsverkeer/bic-sepa-transacties/
9
10
 
10
11
  #### bump version and adjust changelog
11
12
  ```
@@ -0,0 +1,50 @@
1
+ require 'active_support/core_ext/object/blank'
2
+
3
+ class BankingData::DutchBank < BankingData::Bank
4
+ extend ActiveModel::Naming
5
+ include ActiveModel::Conversion
6
+ include ActiveModel::AttributeMethods
7
+
8
+ LOCALE = :nl
9
+
10
+ attr_accessor :bank_id, :bic, :name
11
+
12
+ class << self
13
+
14
+ delegate :where, :only, to: :query
15
+ delegate :map, :each, to: :all
16
+
17
+ def all
18
+ @@all ||= get_all
19
+ end
20
+
21
+ private
22
+
23
+ def get_all
24
+ banks = []
25
+ SmarterCSV.process(file, opts).each do |line|
26
+ bank_id = line[:bank_identifier].to_s
27
+ bic = line[:bic]
28
+ name = line[:naam_bank].to_s
29
+ if bank_id && bic && name
30
+ banks << new(name: name, bank_id: bank_id, bic: bic)
31
+ end
32
+ end
33
+ banks.uniq
34
+ end
35
+
36
+ private
37
+
38
+ def file
39
+ File.dirname(__FILE__) +
40
+ '/../../data/BIC-lijst-NL.csv'
41
+ end
42
+
43
+ def opts
44
+ {
45
+ col_sep: ',',
46
+ skip_lines: 1
47
+ }
48
+ end
49
+ end
50
+ end
@@ -1,4 +1,4 @@
1
1
  module BankingData
2
2
  # banking_data version
3
- VERSION = '0.8.0'
3
+ VERSION = '0.9.0'
4
4
  end
data/lib/banking_data.rb CHANGED
@@ -6,6 +6,7 @@ require 'banking_data/bank'
6
6
  require 'banking_data/german_bank'
7
7
  require 'banking_data/austrian_bank'
8
8
  require 'banking_data/swiss_bank'
9
+ require 'banking_data/dutch_bank'
9
10
 
10
11
  module BankingData
11
12
 
@@ -0,0 +1,15 @@
1
+ require 'spec_helper'
2
+
3
+ module BankingData
4
+ describe DutchBank do
5
+ describe 'end-to-end test' do
6
+ ['ABNANL2A', 'INGBNL2A', 'RABONL2U'].each do |bic|
7
+ it "includes #{bic}" do
8
+ expect(DutchBank.only(:bic).map(&:first)).to include(bic)
9
+ expect(Bank.where(locale: :nl).only(:bic).map(&:first))
10
+ .to include(bic)
11
+ end
12
+ end
13
+ end
14
+ end
15
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: banking_data
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Frank C. Eckert
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-22 00:00:00.000000000 Z
11
+ date: 2018-08-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -154,6 +154,7 @@ files:
154
154
  - README.md
155
155
  - Rakefile
156
156
  - banking_data.gemspec
157
+ - data/BIC-lijst-NL.csv
157
158
  - data/README.md
158
159
  - data/SEPA-ZV-VZ_gesamt_de_1502983225066.csv
159
160
  - data/bcbankenstamm.txt
@@ -165,6 +166,7 @@ files:
165
166
  - lib/banking_data.rb
166
167
  - lib/banking_data/austrian_bank.rb
167
168
  - lib/banking_data/bank.rb
169
+ - lib/banking_data/dutch_bank.rb
168
170
  - lib/banking_data/german_bank.rb
169
171
  - lib/banking_data/query.rb
170
172
  - lib/banking_data/swiss_bank.rb
@@ -172,6 +174,7 @@ files:
172
174
  - rubocop-todo.yml
173
175
  - spec/banking_data/austrian_bank_spec.rb
174
176
  - spec/banking_data/bank_spec.rb
177
+ - spec/banking_data/dutch_bank_spec.rb
175
178
  - spec/banking_data/german_bank_spec.rb
176
179
  - spec/banking_data/swiss_bank_spec.rb
177
180
  - spec/banking_data_spec.rb
@@ -196,13 +199,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
196
199
  version: '0'
197
200
  requirements: []
198
201
  rubyforge_project:
199
- rubygems_version: 2.6.12
202
+ rubygems_version: 2.7.6
200
203
  signing_key:
201
204
  specification_version: 4
202
205
  summary: Banking data for German, Austrian and Swiss banks
203
206
  test_files:
204
207
  - spec/banking_data/austrian_bank_spec.rb
205
208
  - spec/banking_data/bank_spec.rb
209
+ - spec/banking_data/dutch_bank_spec.rb
206
210
  - spec/banking_data/german_bank_spec.rb
207
211
  - spec/banking_data/swiss_bank_spec.rb
208
212
  - spec/banking_data_spec.rb