ibandit 1.20.0 → 1.22.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/tests.yml +1 -1
- data/.rubocop.yml +2 -48
- data/.rubocop_todo.yml +27 -35
- data/.ruby-version +1 -1
- data/CHANGELOG.md +12 -0
- data/Gemfile +10 -0
- data/bin/build_german_iban_rules.rb +26 -24
- data/config/locales/da.yml +1 -0
- data/config/locales/de.yml +1 -0
- data/config/locales/en.yml +1 -0
- data/config/locales/es.yml +3 -2
- data/config/locales/fr.yml +1 -0
- data/config/locales/it.yml +2 -2
- data/config/locales/nb.yml +1 -0
- data/config/locales/nl.yml +1 -0
- data/config/locales/pt.yml +1 -0
- data/config/locales/sl.yml +1 -0
- data/config/locales/sv.yml +1 -0
- data/data/german_iban_rules.yml +38 -92
- data/data/raw/BLZ2.xml +1 -0
- data/data/raw/IBANSTRUCTURE.xml +105 -9
- data/data/raw/IBAN_Registry.txt +52 -51
- data/data/raw/pseudo_ibans.yml +5 -2
- data/data/raw/structure_additions.yml +18 -11
- data/data/structures.yml +97 -11
- data/ibandit.gemspec +1 -8
- data/lib/ibandit/iban.rb +29 -25
- data/lib/ibandit/sweden/bank_lookup.rb +1 -1
- data/lib/ibandit/version.rb +1 -1
- data/lib/ibandit.rb +2 -4
- data/spec/ibandit/iban_assembler_spec.rb +26 -22
- data/spec/ibandit/iban_spec.rb +61 -21
- metadata +4 -105
- data/data/raw/BLZ2.txt +0 -14692
data/data/german_iban_rules.yml
CHANGED
@@ -29,6 +29,9 @@
|
|
29
29
|
'10011001':
|
30
30
|
:check_digit_rule: '09'
|
31
31
|
:iban_rule: '000000'
|
32
|
+
'10012345':
|
33
|
+
:check_digit_rule: '09'
|
34
|
+
:iban_rule: '000000'
|
32
35
|
'10014000':
|
33
36
|
:check_digit_rule: '09'
|
34
37
|
:iban_rule: '000000'
|
@@ -38,6 +41,12 @@
|
|
38
41
|
'10017997':
|
39
42
|
:check_digit_rule: '09'
|
40
43
|
:iban_rule: '000000'
|
44
|
+
'10018000':
|
45
|
+
:check_digit_rule: '09'
|
46
|
+
:iban_rule: '000000'
|
47
|
+
'10019000':
|
48
|
+
:check_digit_rule: '09'
|
49
|
+
:iban_rule: '000000'
|
41
50
|
'10020200':
|
42
51
|
:check_digit_rule: '60'
|
43
52
|
:iban_rule: '000800'
|
@@ -62,18 +71,12 @@
|
|
62
71
|
'10030500':
|
63
72
|
:check_digit_rule: '09'
|
64
73
|
:iban_rule: '000000'
|
65
|
-
'10030600':
|
66
|
-
:check_digit_rule: '88'
|
67
|
-
:iban_rule: '000000'
|
68
74
|
'10030700':
|
69
75
|
:check_digit_rule: '16'
|
70
76
|
:iban_rule: '000000'
|
71
77
|
'10030730':
|
72
78
|
:check_digit_rule: '16'
|
73
79
|
:iban_rule: '000000'
|
74
|
-
'10031000':
|
75
|
-
:check_digit_rule: '09'
|
76
|
-
:iban_rule: '000000'
|
77
80
|
'10033300':
|
78
81
|
:check_digit_rule: '09'
|
79
82
|
:iban_rule: '004700'
|
@@ -239,6 +242,9 @@
|
|
239
242
|
'10310666':
|
240
243
|
:check_digit_rule: '09'
|
241
244
|
:iban_rule: '000000'
|
245
|
+
'10320700':
|
246
|
+
:check_digit_rule: '09'
|
247
|
+
:iban_rule: '000000'
|
242
248
|
'11010100':
|
243
249
|
:check_digit_rule: '09'
|
244
250
|
:iban_rule: '000000'
|
@@ -599,9 +605,6 @@
|
|
599
605
|
'20041199':
|
600
606
|
:check_digit_rule: '13'
|
601
607
|
:iban_rule: '000503'
|
602
|
-
'20050000':
|
603
|
-
:check_digit_rule: C5
|
604
|
-
:iban_rule: '003600'
|
605
608
|
'20050550':
|
606
609
|
:check_digit_rule: '00'
|
607
610
|
:iban_rule: '000000'
|
@@ -791,9 +794,6 @@
|
|
791
794
|
'20220100':
|
792
795
|
:check_digit_rule: '09'
|
793
796
|
:iban_rule: '000000'
|
794
|
-
'20220400':
|
795
|
-
:check_digit_rule: '09'
|
796
|
-
:iban_rule: '000000'
|
797
797
|
'20220800':
|
798
798
|
:check_digit_rule: '09'
|
799
799
|
:iban_rule: '000000'
|
@@ -1160,12 +1160,6 @@
|
|
1160
1160
|
'21241540':
|
1161
1161
|
:check_digit_rule: '13'
|
1162
1162
|
:iban_rule: '000503'
|
1163
|
-
'21261089':
|
1164
|
-
:check_digit_rule: '33'
|
1165
|
-
:iban_rule: '000000'
|
1166
|
-
'21261227':
|
1167
|
-
:check_digit_rule: '33'
|
1168
|
-
:iban_rule: '000000'
|
1169
1163
|
'21270020':
|
1170
1164
|
:check_digit_rule: '63'
|
1171
1165
|
:iban_rule: '002002'
|
@@ -1343,9 +1337,6 @@
|
|
1343
1337
|
'23040022':
|
1344
1338
|
:check_digit_rule: '13'
|
1345
1339
|
:iban_rule: '000503'
|
1346
|
-
'23050000':
|
1347
|
-
:check_digit_rule: C5
|
1348
|
-
:iban_rule: '003600'
|
1349
1340
|
'23050101':
|
1350
1341
|
:check_digit_rule: '00'
|
1351
1342
|
:iban_rule: '000000'
|
@@ -2529,7 +2520,7 @@
|
|
2529
2520
|
:check_digit_rule: '56'
|
2530
2521
|
:iban_rule: '000000'
|
2531
2522
|
'30030889':
|
2532
|
-
:check_digit_rule: '
|
2523
|
+
:check_digit_rule: '00'
|
2533
2524
|
:iban_rule: '000000'
|
2534
2525
|
'30030900':
|
2535
2526
|
:check_digit_rule: '00'
|
@@ -2555,6 +2546,9 @@
|
|
2555
2546
|
'30040063':
|
2556
2547
|
:check_digit_rule: '09'
|
2557
2548
|
:iban_rule: '000503'
|
2549
|
+
'30040098':
|
2550
|
+
:check_digit_rule: '13'
|
2551
|
+
:iban_rule: '000500'
|
2558
2552
|
'30040099':
|
2559
2553
|
:check_digit_rule: '13'
|
2560
2554
|
:iban_rule: '000503'
|
@@ -2847,7 +2841,7 @@
|
|
2847
2841
|
:check_digit_rule: '06'
|
2848
2842
|
:iban_rule: '000000'
|
2849
2843
|
'33060592':
|
2850
|
-
:check_digit_rule: '
|
2844
|
+
:check_digit_rule: '09'
|
2851
2845
|
:iban_rule: '000000'
|
2852
2846
|
'33070024':
|
2853
2847
|
:check_digit_rule: '63'
|
@@ -3012,7 +3006,7 @@
|
|
3012
3006
|
:check_digit_rule: '09'
|
3013
3007
|
:iban_rule: '000000'
|
3014
3008
|
'36020030':
|
3015
|
-
:check_digit_rule: '
|
3009
|
+
:check_digit_rule: '09'
|
3016
3010
|
:iban_rule: '002101'
|
3017
3011
|
'36020186':
|
3018
3012
|
:check_digit_rule: '99'
|
@@ -3045,7 +3039,7 @@
|
|
3045
3039
|
:check_digit_rule: '34'
|
3046
3040
|
:iban_rule: '000000'
|
3047
3041
|
'36060591':
|
3048
|
-
:check_digit_rule: '
|
3042
|
+
:check_digit_rule: '09'
|
3049
3043
|
:iban_rule: '000000'
|
3050
3044
|
'36070024':
|
3051
3045
|
:check_digit_rule: '63'
|
@@ -3180,7 +3174,7 @@
|
|
3180
3174
|
:check_digit_rule: '06'
|
3181
3175
|
:iban_rule: '001501'
|
3182
3176
|
'37060590':
|
3183
|
-
:check_digit_rule: '
|
3177
|
+
:check_digit_rule: '09'
|
3184
3178
|
:iban_rule: '000000'
|
3185
3179
|
'37060993':
|
3186
3180
|
:check_digit_rule: '91'
|
@@ -3386,9 +3380,6 @@
|
|
3386
3380
|
'37551780':
|
3387
3381
|
:check_digit_rule: '00'
|
3388
3382
|
:iban_rule: '000000'
|
3389
|
-
'37560092':
|
3390
|
-
:check_digit_rule: '06'
|
3391
|
-
:iban_rule: '000000'
|
3392
3383
|
'37570024':
|
3393
3384
|
:check_digit_rule: '63'
|
3394
3385
|
:iban_rule: '002002'
|
@@ -3596,11 +3587,8 @@
|
|
3596
3587
|
'40060265':
|
3597
3588
|
:check_digit_rule: '34'
|
3598
3589
|
:iban_rule: '000000'
|
3599
|
-
'40060300':
|
3600
|
-
:check_digit_rule: '34'
|
3601
|
-
:iban_rule: '000000'
|
3602
3590
|
'40060560':
|
3603
|
-
:check_digit_rule: '
|
3591
|
+
:check_digit_rule: '09'
|
3604
3592
|
:iban_rule: '000000'
|
3605
3593
|
'40061238':
|
3606
3594
|
:check_digit_rule: '34'
|
@@ -4625,6 +4613,9 @@
|
|
4625
4613
|
'50033300':
|
4626
4614
|
:check_digit_rule: '09'
|
4627
4615
|
:iban_rule: '004700'
|
4616
|
+
'50034200':
|
4617
|
+
:check_digit_rule: '09'
|
4618
|
+
:iban_rule: '000000'
|
4628
4619
|
'50038800':
|
4629
4620
|
:check_digit_rule: '09'
|
4630
4621
|
:iban_rule: '000000'
|
@@ -4989,7 +4980,7 @@
|
|
4989
4980
|
:check_digit_rule: '09'
|
4990
4981
|
:iban_rule: '000503'
|
4991
4982
|
'50090500':
|
4992
|
-
:check_digit_rule: '
|
4983
|
+
:check_digit_rule: '09'
|
4993
4984
|
:iban_rule: '000000'
|
4994
4985
|
'50090900':
|
4995
4986
|
:check_digit_rule: '91'
|
@@ -5033,6 +5024,9 @@
|
|
5033
5024
|
'50110801':
|
5034
5025
|
:check_digit_rule: '09'
|
5035
5026
|
:iban_rule: '000000'
|
5027
|
+
'50110808':
|
5028
|
+
:check_digit_rule: '09'
|
5029
|
+
:iban_rule: '000000'
|
5036
5030
|
'50110855':
|
5037
5031
|
:check_digit_rule: '09'
|
5038
5032
|
:iban_rule: '000000'
|
@@ -5060,12 +5054,12 @@
|
|
5060
5054
|
'50120900':
|
5061
5055
|
:check_digit_rule: '06'
|
5062
5056
|
:iban_rule: '000000'
|
5063
|
-
'50123400':
|
5064
|
-
:check_digit_rule: '28'
|
5065
|
-
:iban_rule: '000000'
|
5066
5057
|
'50127000':
|
5067
5058
|
:check_digit_rule: '09'
|
5068
5059
|
:iban_rule: '000000'
|
5060
|
+
'50127700':
|
5061
|
+
:check_digit_rule: '09'
|
5062
|
+
:iban_rule: '000000'
|
5069
5063
|
'50130000':
|
5070
5064
|
:check_digit_rule: '09'
|
5071
5065
|
:iban_rule: '000000'
|
@@ -5117,6 +5111,9 @@
|
|
5117
5111
|
'50220900':
|
5118
5112
|
:check_digit_rule: '00'
|
5119
5113
|
:iban_rule: '000000'
|
5114
|
+
'50228899':
|
5115
|
+
:check_digit_rule: '09'
|
5116
|
+
:iban_rule: '000000'
|
5120
5117
|
'50230000':
|
5121
5118
|
:check_digit_rule: '00'
|
5122
5119
|
:iban_rule: '000000'
|
@@ -5897,9 +5894,6 @@
|
|
5897
5894
|
'53350000':
|
5898
5895
|
:check_digit_rule: '06'
|
5899
5896
|
:iban_rule: '000000'
|
5900
|
-
'53361724':
|
5901
|
-
:check_digit_rule: '32'
|
5902
|
-
:iban_rule: '000000'
|
5903
5897
|
'53370008':
|
5904
5898
|
:check_digit_rule: '63'
|
5905
5899
|
:iban_rule: '002002'
|
@@ -6242,9 +6236,6 @@
|
|
6242
6236
|
'56270044':
|
6243
6237
|
:check_digit_rule: '63'
|
6244
6238
|
:iban_rule: '002002'
|
6245
|
-
'56290000':
|
6246
|
-
:check_digit_rule: '06'
|
6247
|
-
:iban_rule: '000000'
|
6248
6239
|
'57000000':
|
6249
6240
|
:check_digit_rule: '09'
|
6250
6241
|
:iban_rule: '004201'
|
@@ -6335,9 +6326,6 @@
|
|
6335
6326
|
'57091000':
|
6336
6327
|
:check_digit_rule: '06'
|
6337
6328
|
:iban_rule: '000000'
|
6338
|
-
'57091100':
|
6339
|
-
:check_digit_rule: '06'
|
6340
|
-
:iban_rule: '000000'
|
6341
6329
|
'57092800':
|
6342
6330
|
:check_digit_rule: '06'
|
6343
6331
|
:iban_rule: '000000'
|
@@ -6860,9 +6848,6 @@
|
|
6860
6848
|
'60069336':
|
6861
6849
|
:check_digit_rule: '10'
|
6862
6850
|
:iban_rule: '000000'
|
6863
|
-
'60069343':
|
6864
|
-
:check_digit_rule: '10'
|
6865
|
-
:iban_rule: '000000'
|
6866
6851
|
'60069346':
|
6867
6852
|
:check_digit_rule: '10'
|
6868
6853
|
:iban_rule: '000000'
|
@@ -6884,12 +6869,6 @@
|
|
6884
6869
|
'60069419':
|
6885
6870
|
:check_digit_rule: '10'
|
6886
6871
|
:iban_rule: '000000'
|
6887
|
-
'60069420':
|
6888
|
-
:check_digit_rule: '10'
|
6889
|
-
:iban_rule: '000000'
|
6890
|
-
'60069431':
|
6891
|
-
:check_digit_rule: '10'
|
6892
|
-
:iban_rule: '000000'
|
6893
6872
|
'60069442':
|
6894
6873
|
:check_digit_rule: '10'
|
6895
6874
|
:iban_rule: '000000'
|
@@ -6899,9 +6878,6 @@
|
|
6899
6878
|
'60069457':
|
6900
6879
|
:check_digit_rule: '10'
|
6901
6880
|
:iban_rule: '000000'
|
6902
|
-
'60069461':
|
6903
|
-
:check_digit_rule: '10'
|
6904
|
-
:iban_rule: '000000'
|
6905
6881
|
'60069462':
|
6906
6882
|
:check_digit_rule: '10'
|
6907
6883
|
:iban_rule: '000000'
|
@@ -6944,9 +6920,6 @@
|
|
6944
6920
|
'60069639':
|
6945
6921
|
:check_digit_rule: '10'
|
6946
6922
|
:iban_rule: '000000'
|
6947
|
-
'60069648':
|
6948
|
-
:check_digit_rule: '10'
|
6949
|
-
:iban_rule: '000000'
|
6950
6923
|
'60069669':
|
6951
6924
|
:check_digit_rule: '10'
|
6952
6925
|
:iban_rule: '000100'
|
@@ -7031,9 +7004,6 @@
|
|
7031
7004
|
'60069976':
|
7032
7005
|
:check_digit_rule: '10'
|
7033
7006
|
:iban_rule: '000000'
|
7034
|
-
'60069980':
|
7035
|
-
:check_digit_rule: '10'
|
7036
|
-
:iban_rule: '000000'
|
7037
7007
|
'60070024':
|
7038
7008
|
:check_digit_rule: '63'
|
7039
7009
|
:iban_rule: '002002'
|
@@ -7083,7 +7053,7 @@
|
|
7083
7053
|
:check_digit_rule: '10'
|
7084
7054
|
:iban_rule: '000000'
|
7085
7055
|
'60090800':
|
7086
|
-
:check_digit_rule: '
|
7056
|
+
:check_digit_rule: '09'
|
7087
7057
|
:iban_rule: '000000'
|
7088
7058
|
'60090900':
|
7089
7059
|
:check_digit_rule: '91'
|
@@ -7589,9 +7559,6 @@
|
|
7589
7559
|
'65080009':
|
7590
7560
|
:check_digit_rule: '76'
|
7591
7561
|
:iban_rule: '000503'
|
7592
|
-
'65090100':
|
7593
|
-
:check_digit_rule: '10'
|
7594
|
-
:iban_rule: '000000'
|
7595
7562
|
'65091040':
|
7596
7563
|
:check_digit_rule: '10'
|
7597
7564
|
:iban_rule: '000000'
|
@@ -8294,9 +8261,6 @@
|
|
8294
8261
|
'70011600':
|
8295
8262
|
:check_digit_rule: '06'
|
8296
8263
|
:iban_rule: '000000'
|
8297
|
-
'70011700':
|
8298
|
-
:check_digit_rule: '01'
|
8299
|
-
:iban_rule: '000000'
|
8300
8264
|
'70011900':
|
8301
8265
|
:check_digit_rule: '10'
|
8302
8266
|
:iban_rule: '000100'
|
@@ -8510,6 +8474,9 @@
|
|
8510
8474
|
'70110500':
|
8511
8475
|
:check_digit_rule: '09'
|
8512
8476
|
:iban_rule: '000000'
|
8477
|
+
'70110570':
|
8478
|
+
:check_digit_rule: '09'
|
8479
|
+
:iban_rule: '000000'
|
8513
8480
|
'70120100':
|
8514
8481
|
:check_digit_rule: '09'
|
8515
8482
|
:iban_rule: '000000'
|
@@ -8759,9 +8726,6 @@
|
|
8759
8726
|
'71050000':
|
8760
8727
|
:check_digit_rule: '00'
|
8761
8728
|
:iban_rule: '000000'
|
8762
|
-
'71051010':
|
8763
|
-
:check_digit_rule: '00'
|
8764
|
-
:iban_rule: '000000'
|
8765
8729
|
'71052050':
|
8766
8730
|
:check_digit_rule: '00'
|
8767
8731
|
:iban_rule: '000000'
|
@@ -9053,9 +9017,6 @@
|
|
9053
9017
|
'72180002':
|
9054
9018
|
:check_digit_rule: '76'
|
9055
9019
|
:iban_rule: '000503'
|
9056
|
-
'72191600':
|
9057
|
-
:check_digit_rule: '88'
|
9058
|
-
:iban_rule: '000000'
|
9059
9020
|
'72220074':
|
9060
9021
|
:check_digit_rule: '99'
|
9061
9022
|
:iban_rule: '003200'
|
@@ -9107,9 +9068,6 @@
|
|
9107
9068
|
'73190000':
|
9108
9069
|
:check_digit_rule: '88'
|
9109
9070
|
:iban_rule: '000000'
|
9110
|
-
'73191500':
|
9111
|
-
:check_digit_rule: '10'
|
9112
|
-
:iban_rule: '000000'
|
9113
9071
|
'73311600':
|
9114
9072
|
:check_digit_rule: '09'
|
9115
9073
|
:iban_rule: '000100'
|
@@ -9203,9 +9161,6 @@
|
|
9203
9161
|
'73451450':
|
9204
9162
|
:check_digit_rule: '00'
|
9205
9163
|
:iban_rule: '000000'
|
9206
|
-
'73460046':
|
9207
|
-
:check_digit_rule: '88'
|
9208
|
-
:iban_rule: '000000'
|
9209
9164
|
'73480013':
|
9210
9165
|
:check_digit_rule: '76'
|
9211
9166
|
:iban_rule: '000503'
|
@@ -9719,9 +9674,6 @@
|
|
9719
9674
|
'76220073':
|
9720
9675
|
:check_digit_rule: '99'
|
9721
9676
|
:iban_rule: '003200'
|
9722
|
-
'76230000':
|
9723
|
-
:check_digit_rule: '11'
|
9724
|
-
:iban_rule: '000000'
|
9725
9677
|
'76240011':
|
9726
9678
|
:check_digit_rule: '13'
|
9727
9679
|
:iban_rule: '000503'
|
@@ -9830,9 +9782,6 @@
|
|
9830
9782
|
'77069739':
|
9831
9783
|
:check_digit_rule: '88'
|
9832
9784
|
:iban_rule: '000000'
|
9833
|
-
'77069746':
|
9834
|
-
:check_digit_rule: '88'
|
9835
|
-
:iban_rule: '000000'
|
9836
9785
|
'77069764':
|
9837
9786
|
:check_digit_rule: '88'
|
9838
9787
|
:iban_rule: '000000'
|
@@ -10343,9 +10292,6 @@
|
|
10343
10292
|
'83064488':
|
10344
10293
|
:check_digit_rule: '32'
|
10345
10294
|
:iban_rule: '000000'
|
10346
|
-
'83064568':
|
10347
|
-
:check_digit_rule: '32'
|
10348
|
-
:iban_rule: '000000'
|
10349
10295
|
'83065408':
|
10350
10296
|
:check_digit_rule: '32'
|
10351
10297
|
:iban_rule: '000000'
|