king_dtaus 2.0.1.pre → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +9 -0
- data/.travis.yml +3 -0
- data/Gemfile +0 -1
- data/README.markdown +128 -0
- data/Rakefile +16 -16
- data/king_dtaus.gemspec +22 -61
- data/lib/king_dta/account.rb +47 -28
- data/lib/king_dta/dta.rb +10 -0
- data/lib/king_dta/dtaus.rb +126 -135
- data/lib/king_dta/dtazv.rb +186 -227
- data/lib/king_dta/helper.rb +3 -1
- data/lib/king_dta/version.rb +3 -0
- data/lib/king_dtaus.rb +1 -0
- data/spec/account_spec.rb +90 -154
- data/spec/booking_spec.rb +1 -3
- data/spec/dtaus_spec.rb +35 -12
- data/spec/dtazv_spec.rb +54 -155
- data/spec/spec_helper.rb +44 -66
- metadata +121 -111
- data/.rvmrc +0 -1
- data/Gemfile.lock +0 -38
- data/README.rdoc +0 -120
- data/VERSION +0 -1
- data/docs/dtazv.pdf +0 -0
- data/docs/dtazv_bank_bbk.pdf +0 -0
- data/example.output +0 -7
- data/spec/dtazv_test.rb +0 -105
data/spec/dtazv_spec.rb
CHANGED
@@ -6,42 +6,9 @@ require 'spec_helper'
|
|
6
6
|
describe KingDta::Dtazv do
|
7
7
|
|
8
8
|
before :each do
|
9
|
-
@dtazv = KingDta::Dtazv.new(Date.
|
10
|
-
@
|
11
|
-
@
|
12
|
-
|
13
|
-
@dtazv.account = KingDta::Account.new(
|
14
|
-
:account_number => @dudes_konto.account_number,
|
15
|
-
:bank_number => @dudes_konto.bank_number,
|
16
|
-
:client_name => @dudes_konto.client_name,
|
17
|
-
:client_number => @dudes_konto.client_number,
|
18
|
-
:bank_street => @dudes_konto.account_street,
|
19
|
-
:bank_city => @dudes_konto.account_city,
|
20
|
-
:bank_zip_code => @dudes_konto.account_zip_code,
|
21
|
-
:bank_name => @dudes_konto.bank_name,
|
22
|
-
:client_street => @dudes_konto.client_street,
|
23
|
-
:client_city => @dudes_konto.client_city,
|
24
|
-
:client_zip_code => @dudes_konto.client_zip_code,
|
25
|
-
:bank_country_code => @dudes_konto.bank_country_code,
|
26
|
-
:client_country_code => @dudes_konto.client_country_code
|
27
|
-
)
|
28
|
-
|
29
|
-
@dalai_lamas_booking = KingDta::Booking.new(KingDta::Account.new(
|
30
|
-
:account_number => @dalai_lamas_account.account_number,
|
31
|
-
:bank_number => @dalai_lamas_account.bank_number,
|
32
|
-
:client_name => @dalai_lamas_account.client_name,
|
33
|
-
:client_number => @dalai_lamas_account.client_number,
|
34
|
-
:bank_street => @dalai_lamas_account.account_street,
|
35
|
-
:bank_city => @dalai_lamas_account.account_city,
|
36
|
-
:bank_zip_code => @dalai_lamas_account.account_zip_code,
|
37
|
-
:bank_name => @dalai_lamas_account.bank_name,
|
38
|
-
:client_street => @dalai_lamas_account.client_street,
|
39
|
-
:client_city => @dalai_lamas_account.client_city,
|
40
|
-
:client_zip_code => @dalai_lamas_account.client_zip_code,
|
41
|
-
:bank_country_code => @dalai_lamas_account.bank_country_code,
|
42
|
-
:client_country_code => @dalai_lamas_account.client_country_code
|
43
|
-
), 220.25)
|
44
|
-
|
9
|
+
@dtazv = KingDta::Dtazv.new(Date.parse('2011-08-28'))
|
10
|
+
@dtazv.account = KingDta::Account.new sender_opts
|
11
|
+
@booking = KingDta::Booking.new( KingDta::Account.new( receiver_opts ), 220.25)
|
45
12
|
end
|
46
13
|
|
47
14
|
it "should init without values" do
|
@@ -62,42 +29,26 @@ describe KingDta::Dtazv do
|
|
62
29
|
|
63
30
|
it "should create file" do
|
64
31
|
@dtazv.default_text = 'Default Verwendungszweck'
|
65
|
-
6.times { @dtazv.add(@
|
32
|
+
6.times { @dtazv.add(@booking) }
|
66
33
|
# create test output file in spec dir
|
67
34
|
filename = File.join(File.dirname(__FILE__), 'test_output.dta')
|
68
35
|
@dtazv.create_file(filename)
|
69
36
|
str = ''
|
70
|
-
File.open(filename, 'r').each
|
71
|
-
str << ln
|
72
|
-
end
|
37
|
+
File.open(filename, 'r').each { |ln| str << ln }
|
73
38
|
str.length.should == 5120
|
74
39
|
#remove testfile
|
75
40
|
File.delete(filename)
|
76
41
|
end
|
77
42
|
|
78
43
|
it "should not add a booking if closed" do
|
79
|
-
@dtazv.add(@
|
44
|
+
@dtazv.add(@booking)
|
80
45
|
@dtazv.create
|
81
|
-
lambda{ @dtazv.add(@
|
46
|
+
lambda{ @dtazv.add(@booking) }.should raise_error(KingDta::Exception)
|
82
47
|
end
|
83
48
|
|
84
49
|
it "should not add a booking if closed" do
|
85
|
-
@dtazv.add(@
|
86
|
-
negative_booking = KingDta::Booking.new(KingDta::Account.new(
|
87
|
-
:account_number => @dalai_lamas_account.account_number,
|
88
|
-
:bank_number => @dalai_lamas_account.bank_number,
|
89
|
-
:client_name => @dalai_lamas_account.client_name,
|
90
|
-
:client_number => @dalai_lamas_account.client_number,
|
91
|
-
:bank_street => @dalai_lamas_account.account_street,
|
92
|
-
:bank_city => @dalai_lamas_account.account_city,
|
93
|
-
:bank_zip_code => @dalai_lamas_account.account_zip_code,
|
94
|
-
:bank_name => @dalai_lamas_account.bank_name,
|
95
|
-
:client_street => @dalai_lamas_account.client_street,
|
96
|
-
:client_city => @dalai_lamas_account.client_city,
|
97
|
-
:client_zip_code => @dalai_lamas_account.client_zip_code,
|
98
|
-
:bank_country_code => @dalai_lamas_account.bank_country_code,
|
99
|
-
:client_country_code => @dalai_lamas_account.client_country_code
|
100
|
-
), -220.25)
|
50
|
+
@dtazv.add(@booking)
|
51
|
+
negative_booking = KingDta::Booking.new(KingDta::Account.new( receiver_opts ), -220.25)
|
101
52
|
lambda{ @dtazv.add(negative_booking) }.should raise_error(KingDta::Exception)
|
102
53
|
end
|
103
54
|
|
@@ -105,53 +56,34 @@ describe KingDta::Dtazv do
|
|
105
56
|
lambda{ @dtazv.create}.should raise_error(KingDta::Exception)
|
106
57
|
end
|
107
58
|
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
# str.should include(@dtaus.default_text.upcase)
|
117
|
-
# out = "0128ALK3704004400000000GIMME YOUR MONEY AG #{Date.today.strftime("%d%m%y")} 78289700370000000000 #{Date.today.strftime("%d%m%Y")} 1"+
|
118
|
-
# "0187C00000000370400440002787777000000000000005000 0000000000037040044782897003700000022025 PETER & MAY GMBH GIMME YOUR MONEY AGDEFAULT VERWENDUNGSZWECK 1 00 "+
|
119
|
-
# "0128E 0000001000000000000000000000002787777000000000370400440000000022025 "
|
120
|
-
# str.should == out
|
121
|
-
# end
|
59
|
+
it "should create the whole dta string with a single booking" do
|
60
|
+
@dtazv.add(@booking)
|
61
|
+
str = @dtazv.create
|
62
|
+
str.length.should == 1280
|
63
|
+
str.should include(receiver_opts[:owner_name].upcase)
|
64
|
+
out = "0256Q370502991326049634JAN KUS MEINE EINE STRASSE 2 51063 MEINE KOELN 11082801110828N0000000000 0768T37050299EUR132604963411082800000000 0000000000COBADEFF366 DE DALAI LAMA BUSH-AVENUE 55 445555 INDIA /PL10105013151000002308622378 EUR00000000000220250 00000000 0013 0 000256Z000000000000220000000000000001 "
|
65
|
+
str.should == out
|
66
|
+
end
|
122
67
|
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
# "0128E 0000001000000000000000000000002787777000000000370400440000000022025 "
|
133
|
-
# str.should == out
|
134
|
-
# end
|
68
|
+
it "should create whole dta string with long booking text in extension" do
|
69
|
+
@dtazv.add(@booking)
|
70
|
+
@dtazv.bookings.first.text = 'Rgn R-3456-0102220 Monatsbeitrag 08/10 Freelancer Version Vielen Dank Ihre SalesKing GmbH'
|
71
|
+
str = @dtazv.create
|
72
|
+
str.length.should == 1280
|
73
|
+
str.should include(receiver_opts[:owner_name].upcase)
|
74
|
+
out = "0256Q370502991326049634JAN KUS MEINE EINE STRASSE 2 51063 MEINE KOELN 11082801110828N0000000000 0768T37050299EUR132604963411082800000000 0000000000COBADEFF366 DE DALAI LAMA BUSH-AVENUE 55 445555 INDIA /PL10105013151000002308622378 EUR00000000000220250RGN R-3456-0102220 MONATSBEITRAG 08/10 FREELANCER VERSION VIELEN DANK IHRE SALESKING GMBH 00000000 0013 0 000256Z000000000000220000000000000001 "
|
75
|
+
str.should == out
|
76
|
+
end
|
135
77
|
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
# out = "0128ALK3704004400000000GIMME YOUR MONEY AG #{Date.today.strftime("%d%m%y")} 78289700370000000000 #{Date.today.strftime("%d%m%Y")} 1"+
|
146
|
-
# "0187C00000000370400440002787777000000000000005000 0000000000037040044782897003700000022025 PETER & MAY GMBH GIMME YOUR MONEY AGDEFAULT VERWENDUNGSZWECK 1 00 "+
|
147
|
-
# "0187C00000000370400440002787777000000000000005000 0000000000037040044782897003700000022025 PETER & MAY GMBH GIMME YOUR MONEY AGDEFAULT VERWENDUNGSZWECK 1 00 "+
|
148
|
-
# "0187C00000000370400440002787777000000000000005000 0000000000037040044782897003700000022025 PETER & MAY GMBH GIMME YOUR MONEY AGDEFAULT VERWENDUNGSZWECK 1 00 "+
|
149
|
-
# "0187C00000000370400440002787777000000000000005000 0000000000037040044782897003700000022025 PETER & MAY GMBH GIMME YOUR MONEY AGDEFAULT VERWENDUNGSZWECK 1 00 "+
|
150
|
-
# "0187C00000000370400440002787777000000000000005000 0000000000037040044782897003700000022025 PETER & MAY GMBH GIMME YOUR MONEY AGDEFAULT VERWENDUNGSZWECK 1 00 "+
|
151
|
-
# "0187C00000000370400440002787777000000000000005000 0000000000037040044782897003700000022025 PETER & MAY GMBH GIMME YOUR MONEY AGDEFAULT VERWENDUNGSZWECK 1 00 "+
|
152
|
-
# "0128E 0000006000000000000000000000016726662000000002222402640000000132150 "
|
153
|
-
# str.should == out
|
154
|
-
# end
|
78
|
+
it "should create the whole dta string with a lot of bookings" do
|
79
|
+
6.times { @dtazv.add(@booking) }
|
80
|
+
str = @dtazv.create
|
81
|
+
str.length.should == 5120
|
82
|
+
str.should include(receiver_opts[:owner_name].upcase)
|
83
|
+
str.should include(sender_opts[:owner_name].upcase)
|
84
|
+
out = "0256Q370502991326049634JAN KUS MEINE EINE STRASSE 2 51063 MEINE KOELN 11082801110828N0000000000 0768T37050299EUR132604963411082800000000 0000000000COBADEFF366 DE DALAI LAMA BUSH-AVENUE 55 445555 INDIA /PL10105013151000002308622378 EUR00000000000220250 00000000 0013 0 000768T37050299EUR132604963411082800000000 0000000000COBADEFF366 DE DALAI LAMA BUSH-AVENUE 55 445555 INDIA /PL10105013151000002308622378 EUR00000000000220250 00000000 0013 0 000768T37050299EUR132604963411082800000000 0000000000COBADEFF366 DE DALAI LAMA BUSH-AVENUE 55 445555 INDIA /PL10105013151000002308622378 EUR00000000000220250 00000000 0013 0 000768T37050299EUR132604963411082800000000 0000000000COBADEFF366 DE DALAI LAMA BUSH-AVENUE 55 445555 INDIA /PL10105013151000002308622378 EUR00000000000220250 00000000 0013 0 000768T37050299EUR132604963411082800000000 0000000000COBADEFF366 DE DALAI LAMA BUSH-AVENUE 55 445555 INDIA /PL10105013151000002308622378 EUR00000000000220250 00000000 0013 0 000768T37050299EUR132604963411082800000000 0000000000COBADEFF366 DE DALAI LAMA BUSH-AVENUE 55 445555 INDIA /PL10105013151000002308622378 EUR00000000000220250 00000000 0013 0 000256Z000000000001320000000000000006 "
|
85
|
+
str.should == out
|
86
|
+
end
|
155
87
|
|
156
88
|
end
|
157
89
|
|
@@ -159,104 +91,71 @@ describe "KingDta::DtazvSegments" do
|
|
159
91
|
|
160
92
|
before :each do
|
161
93
|
@date = Date.today
|
162
|
-
@
|
163
|
-
@
|
164
|
-
@
|
165
|
-
|
166
|
-
|
167
|
-
:bank_number => @dudes_konto.bank_number,
|
168
|
-
:client_name => @dudes_konto.client_name,
|
169
|
-
:bank_name => @dudes_konto.bank_name,
|
170
|
-
:client_number => @dudes_konto.client_number,
|
171
|
-
:bank_street => @dudes_konto.account_street,
|
172
|
-
:bank_city => @dudes_konto.account_city,
|
173
|
-
:bank_zip_code => @dudes_konto.account_zip_code,
|
174
|
-
:client_street => @dudes_konto.client_street,
|
175
|
-
:client_city => @dudes_konto.client_city,
|
176
|
-
:client_zip_code => @dudes_konto.client_zip_code,
|
177
|
-
:bank_country_code => @dudes_konto.bank_country_code,
|
178
|
-
:client_country_code => @dudes_konto.client_country_code
|
179
|
-
)
|
180
|
-
|
181
|
-
@dalai_lamas_booking = KingDta::Booking.new(KingDta::Account.new(
|
182
|
-
:account_number => @dalai_lamas_account.account_number,
|
183
|
-
:bank_number => @dalai_lamas_account.bank_number,
|
184
|
-
:client_name => @dalai_lamas_account.client_name,
|
185
|
-
:bank_name => @dalai_lamas_account.bank_name,
|
186
|
-
:client_number => @dalai_lamas_account.client_number,
|
187
|
-
:bank_street => @dalai_lamas_account.account_street,
|
188
|
-
:bank_city => @dalai_lamas_account.account_city,
|
189
|
-
:bank_zip_code => @dalai_lamas_account.account_zip_code,
|
190
|
-
:client_street => @dalai_lamas_account.client_street,
|
191
|
-
:client_city => @dalai_lamas_account.client_city,
|
192
|
-
:client_zip_code => @dalai_lamas_account.client_zip_code,
|
193
|
-
:bank_country_code => @dalai_lamas_account.bank_country_code,
|
194
|
-
:client_country_code => @dalai_lamas_account.client_country_code
|
195
|
-
), 220.25)
|
196
|
-
|
197
|
-
@bookings = []
|
198
|
-
@bookings << @dalai_lamas_booking
|
94
|
+
@dtazv = KingDta::Dtazv.new(@date)
|
95
|
+
@dtazv.account = KingDta::Account.new( sender_opts)
|
96
|
+
@booking = KingDta::Booking.new(KingDta::Account.new( receiver_opts ), 220.25)
|
97
|
+
|
98
|
+
@bookings = [@booking]
|
199
99
|
end
|
200
100
|
|
201
101
|
|
202
102
|
# P SEGMENT NOT IMPLEMENTED AND USED YET
|
203
103
|
# it "should return the proper P segment" do
|
204
|
-
# @
|
104
|
+
# @dtazv.add_p.should == "0256P37040044 Commerzbank K\303\266ln 5th avenue 55323 los angeles11060801 "
|
205
105
|
# end
|
206
106
|
|
207
107
|
# it "should return the proper length of P segment" do
|
208
|
-
# @
|
108
|
+
# @dtazv.add_p.size.should == 256
|
209
109
|
# end
|
210
110
|
|
211
111
|
it "should return the proper Q segment" do
|
212
|
-
@
|
112
|
+
@dtazv.add_q.should == "0256Q370502991326049634JAN KUS MEINE EINE STRASSE 2 51063 MEINE KOELN #{@date.strftime("%y%m%d")}01#{@date.strftime("%y%m%d")}N0000000000 "
|
213
113
|
end
|
214
114
|
|
215
115
|
it "should return the proper length of P segment" do
|
216
|
-
@
|
116
|
+
@dtazv.add_q.size.should == 256
|
217
117
|
end
|
218
118
|
|
219
119
|
it "should return the proper T segment" do
|
220
|
-
@
|
221
|
-
|
120
|
+
@dtazv.add_t(@booking).should == "0768T37050299EUR1326049634#{@date.strftime("%y%m%d")}00000000 0000000000COBADEFF366 DE DALAI LAMA BUSH-AVENUE 55 445555 INDIA /PL10105013151000002308622378 EUR00000000000220250 00000000 0013 0 00"
|
222
121
|
end
|
223
122
|
|
224
123
|
it "should return the proper length of T segment" do
|
225
|
-
@
|
124
|
+
@dtazv.add_t(@booking).size.should == 768
|
226
125
|
end
|
227
126
|
|
228
127
|
# V SEGMENT NOT IMPLEMENTED AND USED YET
|
229
128
|
# it "should return the proper V segment" do
|
230
|
-
# @
|
129
|
+
# @dtazv.add_t.should == "..........."
|
231
130
|
# end
|
232
131
|
|
233
132
|
# it "should return the proper length of V segment" do
|
234
|
-
# @
|
133
|
+
# @dtazv.add_t.size.should == 256
|
235
134
|
# end
|
236
135
|
|
237
136
|
# W SEGMENT NOT IMPLEMENTED AND USED YET
|
238
137
|
# it "should return the proper W segment" do
|
239
|
-
# @
|
138
|
+
# @dtazv.add_t.should == "..........."
|
240
139
|
# end
|
241
140
|
|
242
141
|
# it "should return the proper length of W segment" do
|
243
|
-
# @
|
142
|
+
# @dtazv.add_t.size.should == 256
|
244
143
|
# end
|
245
144
|
|
246
145
|
it "should return the proper Y segment" do
|
247
|
-
@
|
146
|
+
@dtazv.add_y(@bookings).should == "0256Y000000000000000000000000000000000000000000000000000000000000000000000001 "
|
248
147
|
end
|
249
148
|
|
250
149
|
it "should return the proper length of Y segment" do
|
251
|
-
@
|
150
|
+
@dtazv.add_y(@bookings).size.should == 256
|
252
151
|
end
|
253
152
|
|
254
153
|
it "should return the proper Z segment" do
|
255
|
-
@
|
154
|
+
@dtazv.add_z(@bookings).should == "0256Z000000000000220000000000000001 "
|
256
155
|
end
|
257
156
|
|
258
157
|
it "should return the proper length of Z segment" do
|
259
|
-
@
|
158
|
+
@dtazv.add_z(@bookings).size.should == 256
|
260
159
|
end
|
261
160
|
|
262
161
|
# TODO
|
data/spec/spec_helper.rb
CHANGED
@@ -4,7 +4,7 @@ $:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
|
4
4
|
|
5
5
|
require 'simplecov'
|
6
6
|
SimpleCov.start 'rails'
|
7
|
-
SimpleCov.coverage_dir 'coverage
|
7
|
+
SimpleCov.coverage_dir 'coverage'
|
8
8
|
|
9
9
|
require 'rubygems'
|
10
10
|
require "king_dtaus"
|
@@ -15,98 +15,76 @@ require 'date'
|
|
15
15
|
RSpec.configure do |config|
|
16
16
|
end
|
17
17
|
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
# bankort:Felsblock
|
36
|
-
|
37
|
-
def dudes_konto
|
38
|
-
opts = {
|
39
|
-
:account_number => '1326049634',
|
40
|
-
:bank_number => '37050299',
|
41
|
-
:bank_name => 'Kreissparkasse Köln',
|
42
|
-
:zweck => 'Monatsbeitrag',
|
43
|
-
:account_street => "Bank Eine Straße 2",
|
44
|
-
:account_city => "Bank Köln",
|
45
|
-
:account_zip_code => "51063",
|
46
|
-
:client_number => "",
|
47
|
-
:client_name =>'Jan Kus',
|
48
|
-
:client_street => "Meine Eine Straße 2",
|
49
|
-
:client_city => "Meine Köln",
|
50
|
-
:client_zip_code => "51063",
|
51
|
-
:bank_country_code => "DE",
|
52
|
-
:client_country_code => "DE"
|
53
|
-
}
|
54
|
-
TestKonto.new(opts)
|
18
|
+
# a full account, address infos are only needed if BIC or IBAN is unknown
|
19
|
+
def sender_opts
|
20
|
+
{
|
21
|
+
:bank_account_number => '1326049634',
|
22
|
+
:bank_number => '37050299',
|
23
|
+
:bank_name => 'Kreissparkasse Köln',
|
24
|
+
:bank_street => "Bank Eine Straße 2",
|
25
|
+
:bank_city => "Bank Köln",
|
26
|
+
:bank_zip => "51063",
|
27
|
+
:bank_country_code => "DE",
|
28
|
+
:owner_number => "",
|
29
|
+
:owner_name =>'Jan Kus',
|
30
|
+
:owner_street => "Meine Eine Straße 2",
|
31
|
+
:owner_city => "Meine Köln",
|
32
|
+
:owner_zip_code => "51063",
|
33
|
+
:owner_country_code => "DE"
|
34
|
+
}
|
55
35
|
end
|
56
36
|
|
57
|
-
def
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
}
|
75
|
-
TestKonto.new(opts)
|
37
|
+
def receiver_opts
|
38
|
+
{
|
39
|
+
:bank_iban => 'PL10105013151000002308622378',
|
40
|
+
:bank_bic => 'COBADEFF366',
|
41
|
+
:owner_name =>'Dalai Lama',
|
42
|
+
:owner_street => "Bush-Avenue 55",
|
43
|
+
:owner_city => "India",
|
44
|
+
:owner_zip_code => "445555",
|
45
|
+
:owner_country_code => "DE" # actually wrong since iban is in poland
|
46
|
+
# only needed if no bic present
|
47
|
+
# :bank_name => 'Dalai Lamas Bank',
|
48
|
+
# :bank_street => "5th avenue",
|
49
|
+
# :bank_city => "Pulheim",
|
50
|
+
# :bank_zip => "55323",
|
51
|
+
# :owner_number => "",
|
52
|
+
# :bank_country_code => "DE",
|
53
|
+
}
|
76
54
|
end
|
77
55
|
|
78
56
|
def test_kto1
|
79
57
|
opts = {
|
80
|
-
:
|
58
|
+
:bank_account_number => '7828970037',
|
81
59
|
:bank_number => '37040044',
|
82
|
-
:
|
60
|
+
:owner_name =>'Gimme your Money AG',
|
83
61
|
:bank_name => 'Commerzbank Köln',
|
84
62
|
:zweck => 'Monatsbeitrag',
|
85
|
-
:
|
63
|
+
:owner_number => ""
|
86
64
|
}
|
87
65
|
TestKonto.new(opts)
|
88
66
|
end
|
89
67
|
|
90
68
|
def test_kto2
|
91
69
|
opts = {
|
92
|
-
:
|
70
|
+
:bank_account_number => '2787777',
|
93
71
|
:bank_number => '37040044',
|
94
|
-
:
|
72
|
+
:owner_name =>'Peter & May GmbH',
|
95
73
|
:bank_name => 'Commerzbank Köln',
|
96
74
|
:zweck => 'Monatsbeitrag',
|
97
|
-
:
|
75
|
+
:owner_number => ""
|
98
76
|
}
|
99
77
|
TestKonto.new(opts)
|
100
78
|
end
|
101
79
|
|
102
80
|
def test_kto3
|
103
81
|
opts = {
|
104
|
-
:
|
82
|
+
:bank_account_number => '2787777',
|
105
83
|
:bank_number => '37040044',
|
106
|
-
:
|
84
|
+
:owner_name =>'Andrew Müller',
|
107
85
|
:bank_name => 'Commerzbank Köln',
|
108
86
|
:zweck => 'Monatsbeitrag',
|
109
|
-
:
|
87
|
+
:owner_number => ""
|
110
88
|
}
|
111
89
|
TestKonto.new(opts)
|
112
90
|
end
|