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
metadata
CHANGED
@@ -1,114 +1,134 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: king_dtaus
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 2
|
8
|
-
- 0
|
9
|
-
- 1
|
10
|
-
- pre
|
11
|
-
version: 2.0.1.pre
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2.0.1
|
5
|
+
prerelease:
|
12
6
|
platform: ruby
|
13
|
-
authors:
|
7
|
+
authors:
|
14
8
|
- Georg Leciejewski
|
15
9
|
- Georg Ledermann
|
10
|
+
- Jan Kus
|
16
11
|
autorequire:
|
17
12
|
bindir: bin
|
18
13
|
cert_chain: []
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
name: king_dtaus
|
25
|
-
version_requirements: &id001 !ruby/object:Gem::Requirement
|
14
|
+
date: 2011-11-15 00:00:00.000000000 Z
|
15
|
+
dependencies:
|
16
|
+
- !ruby/object:Gem::Dependency
|
17
|
+
name: i18n
|
18
|
+
requirement: !ruby/object:Gem::Requirement
|
26
19
|
none: false
|
27
|
-
requirements:
|
28
|
-
- -
|
29
|
-
- !ruby/object:Gem::Version
|
30
|
-
|
31
|
-
segments:
|
32
|
-
- 0
|
33
|
-
version: "0"
|
34
|
-
prerelease: false
|
20
|
+
requirements:
|
21
|
+
- - ! '>='
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: '0'
|
35
24
|
type: :runtime
|
36
|
-
requirement: *id001
|
37
|
-
- !ruby/object:Gem::Dependency
|
38
|
-
name: rspec
|
39
|
-
version_requirements: &id002 !ruby/object:Gem::Requirement
|
40
|
-
none: false
|
41
|
-
requirements:
|
42
|
-
- - ">="
|
43
|
-
- !ruby/object:Gem::Version
|
44
|
-
hash: 3
|
45
|
-
segments:
|
46
|
-
- 0
|
47
|
-
version: "0"
|
48
25
|
prerelease: false
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
26
|
+
version_requirements: !ruby/object:Gem::Requirement
|
27
|
+
none: false
|
28
|
+
requirements:
|
29
|
+
- - ! '>='
|
30
|
+
- !ruby/object:Gem::Version
|
31
|
+
version: '0'
|
32
|
+
- !ruby/object:Gem::Dependency
|
33
|
+
name: rdoc
|
34
|
+
requirement: !ruby/object:Gem::Requirement
|
54
35
|
none: false
|
55
|
-
requirements:
|
56
|
-
- -
|
57
|
-
- !ruby/object:Gem::Version
|
58
|
-
|
59
|
-
|
60
|
-
- 0
|
61
|
-
version: "0"
|
36
|
+
requirements:
|
37
|
+
- - ! '>='
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '0'
|
40
|
+
type: :development
|
62
41
|
prerelease: false
|
42
|
+
version_requirements: !ruby/object:Gem::Requirement
|
43
|
+
none: false
|
44
|
+
requirements:
|
45
|
+
- - ! '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
- !ruby/object:Gem::Dependency
|
49
|
+
name: rspec
|
50
|
+
requirement: !ruby/object:Gem::Requirement
|
51
|
+
none: false
|
52
|
+
requirements:
|
53
|
+
- - ! '>='
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '0'
|
63
56
|
type: :development
|
64
|
-
|
65
|
-
|
57
|
+
prerelease: false
|
58
|
+
version_requirements: !ruby/object:Gem::Requirement
|
59
|
+
none: false
|
60
|
+
requirements:
|
61
|
+
- - ! '>='
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '0'
|
64
|
+
- !ruby/object:Gem::Dependency
|
66
65
|
name: simplecov
|
67
|
-
|
66
|
+
requirement: !ruby/object:Gem::Requirement
|
68
67
|
none: false
|
69
|
-
requirements:
|
70
|
-
- -
|
71
|
-
- !ruby/object:Gem::Version
|
72
|
-
|
73
|
-
segments:
|
74
|
-
- 0
|
75
|
-
version: "0"
|
76
|
-
prerelease: false
|
68
|
+
requirements:
|
69
|
+
- - ! '>='
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
version: '0'
|
77
72
|
type: :development
|
78
|
-
|
79
|
-
|
73
|
+
prerelease: false
|
74
|
+
version_requirements: !ruby/object:Gem::Requirement
|
75
|
+
none: false
|
76
|
+
requirements:
|
77
|
+
- - ! '>='
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: '0'
|
80
|
+
- !ruby/object:Gem::Dependency
|
80
81
|
name: mocha
|
81
|
-
|
82
|
+
requirement: !ruby/object:Gem::Requirement
|
82
83
|
none: false
|
83
|
-
requirements:
|
84
|
-
- -
|
85
|
-
- !ruby/object:Gem::Version
|
86
|
-
|
87
|
-
|
88
|
-
- 0
|
89
|
-
version: "0"
|
84
|
+
requirements:
|
85
|
+
- - ! '>='
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: '0'
|
88
|
+
type: :development
|
90
89
|
prerelease: false
|
90
|
+
version_requirements: !ruby/object:Gem::Requirement
|
91
|
+
none: false
|
92
|
+
requirements:
|
93
|
+
- - ! '>='
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: '0'
|
96
|
+
- !ruby/object:Gem::Dependency
|
97
|
+
name: rake
|
98
|
+
requirement: !ruby/object:Gem::Requirement
|
99
|
+
none: false
|
100
|
+
requirements:
|
101
|
+
- - ! '>='
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 0.9.2
|
91
104
|
type: :development
|
92
|
-
|
93
|
-
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
none: false
|
108
|
+
requirements:
|
109
|
+
- - ! '>='
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
version: 0.9.2
|
112
|
+
description: ! 'DTA/DTAUS and DTAZV are text-based formats to create bank transfers
|
113
|
+
for german banks.
|
114
|
+
|
115
|
+
This gem creates DTA/DATAUS files for inner german credit and debit(Gutschrift/Lastschrift)
|
116
|
+
transfers.
|
117
|
+
|
118
|
+
It is also capable of creating DTAZV credit-files for transfers from Germany to
|
119
|
+
European SEPA region.'
|
94
120
|
email: gl@salesking.eu
|
95
121
|
executables: []
|
96
|
-
|
97
122
|
extensions: []
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
- .
|
123
|
+
extra_rdoc_files:
|
124
|
+
- README.markdown
|
125
|
+
files:
|
126
|
+
- .gitignore
|
127
|
+
- .travis.yml
|
103
128
|
- Gemfile
|
104
|
-
- Gemfile.lock
|
105
129
|
- MIT-LICENSE
|
106
|
-
- README.
|
130
|
+
- README.markdown
|
107
131
|
- Rakefile
|
108
|
-
- VERSION
|
109
|
-
- docs/dtazv.pdf
|
110
|
-
- docs/dtazv_bank_bbk.pdf
|
111
|
-
- example.output
|
112
132
|
- king_dtaus.gemspec
|
113
133
|
- lib/king_dta/account.rb
|
114
134
|
- lib/king_dta/booking.rb
|
@@ -117,49 +137,39 @@ files:
|
|
117
137
|
- lib/king_dta/dtazv.rb
|
118
138
|
- lib/king_dta/exception.rb
|
119
139
|
- lib/king_dta/helper.rb
|
140
|
+
- lib/king_dta/version.rb
|
120
141
|
- lib/king_dtaus.rb
|
121
142
|
- spec/account_spec.rb
|
122
143
|
- spec/booking_spec.rb
|
123
144
|
- spec/dtaus_spec.rb
|
124
145
|
- spec/dtazv_spec.rb
|
125
|
-
- spec/dtazv_test.rb
|
126
146
|
- spec/helper_spec.rb
|
127
147
|
- spec/spec_helper.rb
|
128
|
-
has_rdoc: true
|
129
148
|
homepage: http://github.com/salesking/king_dtaus
|
130
149
|
licenses: []
|
131
|
-
|
132
150
|
post_install_message:
|
133
151
|
rdoc_options: []
|
134
|
-
|
135
|
-
require_paths:
|
152
|
+
require_paths:
|
136
153
|
- lib
|
137
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
154
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
138
155
|
none: false
|
139
|
-
requirements:
|
140
|
-
- -
|
141
|
-
- !ruby/object:Gem::Version
|
142
|
-
|
143
|
-
segments:
|
156
|
+
requirements:
|
157
|
+
- - ! '>='
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0'
|
160
|
+
segments:
|
144
161
|
- 0
|
145
|
-
|
146
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
162
|
+
hash: -4042495413161916256
|
163
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
147
164
|
none: false
|
148
|
-
requirements:
|
149
|
-
- -
|
150
|
-
- !ruby/object:Gem::Version
|
151
|
-
|
152
|
-
segments:
|
153
|
-
- 1
|
154
|
-
- 3
|
155
|
-
- 1
|
156
|
-
version: 1.3.1
|
165
|
+
requirements:
|
166
|
+
- - ! '>='
|
167
|
+
- !ruby/object:Gem::Version
|
168
|
+
version: '0'
|
157
169
|
requirements: []
|
158
|
-
|
159
170
|
rubyforge_project:
|
160
|
-
rubygems_version: 1.
|
171
|
+
rubygems_version: 1.8.24
|
161
172
|
signing_key:
|
162
173
|
specification_version: 3
|
163
|
-
summary: Generate DTAUS
|
174
|
+
summary: Generate DTA/DTAUS and DTAZV bank transfer files .. the easy way
|
164
175
|
test_files: []
|
165
|
-
|
data/.rvmrc
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
rvm use --create ree@dtazv
|
data/Gemfile.lock
DELETED
@@ -1,38 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
king_dtaus (2.0.0.pre)
|
5
|
-
king_dtaus
|
6
|
-
|
7
|
-
GEM
|
8
|
-
remote: http://rubygems.org/
|
9
|
-
specs:
|
10
|
-
diff-lcs (1.1.2)
|
11
|
-
git (1.2.5)
|
12
|
-
jeweler (1.6.2)
|
13
|
-
bundler (~> 1.0)
|
14
|
-
git (>= 1.2.5)
|
15
|
-
rake
|
16
|
-
mocha (0.9.12)
|
17
|
-
rake (0.9.1)
|
18
|
-
rspec (2.6.0)
|
19
|
-
rspec-core (~> 2.6.0)
|
20
|
-
rspec-expectations (~> 2.6.0)
|
21
|
-
rspec-mocks (~> 2.6.0)
|
22
|
-
rspec-core (2.6.3)
|
23
|
-
rspec-expectations (2.6.0)
|
24
|
-
diff-lcs (~> 1.1.2)
|
25
|
-
rspec-mocks (2.6.0)
|
26
|
-
simplecov (0.4.2)
|
27
|
-
simplecov-html (~> 0.4.4)
|
28
|
-
simplecov-html (0.4.5)
|
29
|
-
|
30
|
-
PLATFORMS
|
31
|
-
ruby
|
32
|
-
|
33
|
-
DEPENDENCIES
|
34
|
-
jeweler
|
35
|
-
king_dtaus!
|
36
|
-
mocha
|
37
|
-
rspec
|
38
|
-
simplecov
|
data/README.rdoc
DELETED
@@ -1,120 +0,0 @@
|
|
1
|
-
= DTAUS & DTAZV always comes together
|
2
|
-
|
3
|
-
DTAUS & DTAZV are formats for German bank transfers and is short for
|
4
|
-
"Datenträgeraustausch". The format itself totally sucks because it was
|
5
|
-
established in the last century, to be used on floppy disks. Still almost
|
6
|
-
all German banks use it (they only seem innovative at robbing), and it is
|
7
|
-
therefore supported in common banking programs too.
|
8
|
-
|
9
|
-
This gem saves you all the trouble when generating DTAUS- or DTAZV-text.
|
10
|
-
|
11
|
-
We love building payment applications
|
12
|
-
|
13
|
-
== Install
|
14
|
-
|
15
|
-
gem install king_dtaus
|
16
|
-
|
17
|
-
== Features
|
18
|
-
|
19
|
-
* create DTAUS debit advice (Lastschrift)
|
20
|
-
* create DTAUS credit advice (Gutschrift)
|
21
|
-
* create DTAZV debit advice
|
22
|
-
|
23
|
-
== TODOs
|
24
|
-
|
25
|
-
* first gem with no todo's - never seen it, huh? - just kidding
|
26
|
-
* some more edge-case tests needed
|
27
|
-
|
28
|
-
== Resources
|
29
|
-
|
30
|
-
* DTAZV-Viewer: http://www.meta-evolutions.de/pages/artikel-20070630-dtazv-datei-betrachter.html
|
31
|
-
* DTA/DTAZV PHP Pear: http://pear.php.net/package/Payment_DTA
|
32
|
-
* Ruby Kernel Module: http://www.ruby-doc.org/core/classes/Kernel.html
|
33
|
-
* Windata ZV-Tools: http://www.windata.de/Site/2Produkte2/ZVTools.aspx
|
34
|
-
* The Swift Codes: http://www.theswiftcodes.com/
|
35
|
-
* StarMoney: http://www.starmoney.de/index.php?id=starmoneybusiness_testen
|
36
|
-
* SalesKing: http://salesking.eu
|
37
|
-
|
38
|
-
== Examples
|
39
|
-
|
40
|
-
Here are some examples how to create a DTA- or DTAZV-File. Also check out the spec/dtazv_test.rb to have a running Example of an Export.
|
41
|
-
|
42
|
-
=== DTA
|
43
|
-
|
44
|
-
# create a new dtaus object
|
45
|
-
dta = KingDta::Dtaus.new('LK')
|
46
|
-
# set sender account
|
47
|
-
dta.account = KingDta::Account.new(:account_number => @kto1.account_number, :bank_number => @kto1.bank_number, :client_name => @kto1.client_name, :bank_name => @kto1.bank_name)
|
48
|
-
# the following should be done in a loop to add multiple bookings
|
49
|
-
# create receiving account
|
50
|
-
rec_acnt = KingDta::Account.new(:account_number => @kto1.account_number, :bank_number => @kto1.bank_number, :client_name => @kto1.client_name, :bank_name => @kto1.bank_name)
|
51
|
-
# create booking
|
52
|
-
booking = KingDta::Booking.new(rec_acnt, 100.00 )
|
53
|
-
# set booking text if you want to
|
54
|
-
booking.text = "Thanks for your purchase"
|
55
|
-
# add booking
|
56
|
-
dta.add( booking )
|
57
|
-
# end loop
|
58
|
-
|
59
|
-
# create datausstring and do with it whatever fits your workflow
|
60
|
-
my_str = dta.create
|
61
|
-
|
62
|
-
=== DTAZV
|
63
|
-
|
64
|
-
@date = Date.today
|
65
|
-
@dudes_dtazv_export = KingDta::Dtazv.new(@date)
|
66
|
-
@dudes_konto = self.dudes_konto
|
67
|
-
@dalai_lamas_account = self.dalai_lamas_account
|
68
|
-
@dudes_dtazv_export.account = KingDta::Account.new(
|
69
|
-
:account_number => @dudes_konto.account_number,
|
70
|
-
:bank_number => @dudes_konto.bank_number,
|
71
|
-
:client_name => @dudes_konto.client_name,
|
72
|
-
:client_number => @dudes_konto.client_number,
|
73
|
-
:bank_street => @dudes_konto.account_street,
|
74
|
-
:bank_city => @dudes_konto.account_city,
|
75
|
-
:bank_zip_code => @dudes_konto.account_zip_code,
|
76
|
-
:bank_name => @dudes_konto.bank_name,
|
77
|
-
:client_street => @dudes_konto.client_street,
|
78
|
-
:client_city => @dudes_konto.client_city,
|
79
|
-
:client_zip_code => @dudes_konto.client_zip_code,
|
80
|
-
:bank_country_code => @dudes_konto.bank_country_code,
|
81
|
-
:client_country_code => @dudes_konto.client_country_code
|
82
|
-
)
|
83
|
-
|
84
|
-
@dalai_lamas_booking = KingDta::Booking.new(KingDta::Account.new(
|
85
|
-
:account_number => @dalai_lamas_account.account_number,
|
86
|
-
:bank_number => @dalai_lamas_account.bank_number,
|
87
|
-
:client_name => @dalai_lamas_account.client_name,
|
88
|
-
:client_number => @dalai_lamas_account.bank_name,
|
89
|
-
:bank_street => @dalai_lamas_account.account_street,
|
90
|
-
:bank_city => @dalai_lamas_account.account_city,
|
91
|
-
:bank_zip_code => @dalai_lamas_account.account_zip_code,
|
92
|
-
:bank_name => @dalai_lamas_account.bank_name,
|
93
|
-
:client_street => @dalai_lamas_account.client_street,
|
94
|
-
:client_city => @dalai_lamas_account.client_city,
|
95
|
-
:client_zip_code => @dalai_lamas_account.client_zip_code,
|
96
|
-
:bank_country_code => @dalai_lamas_account.bank_country_code,
|
97
|
-
:client_country_code => @dalai_lamas_account.client_country_code
|
98
|
-
), 220.25)
|
99
|
-
|
100
|
-
@dudes_dtazv_export.add(@dalai_lamas_booking)
|
101
|
-
@dudes_dtazv_export.create_file
|
102
|
-
|
103
|
-
# Output is DTAZV0.TXT
|
104
|
-
|
105
|
-
also make sure to read the specs
|
106
|
-
|
107
|
-
== Credits
|
108
|
-
|
109
|
-
Bugfixes and enhancements by
|
110
|
-
|
111
|
-
* Georg Ledermann - https://github.com/ledermann
|
112
|
-
* Kim Rudolph - https://github.com/krudolph
|
113
|
-
* Thorsten Böttger - https://github.com/alto
|
114
|
-
* Jan Kus - https://github.com/koos
|
115
|
-
|
116
|
-
This gem used https://rubygems.org/gems/DTAUS as a starting point.
|
117
|
-
It was disected, turned into a real class structure, bugs where fixed and
|
118
|
-
of course a full test suite ensures its functionality.
|
119
|
-
|
120
|
-
Copyright (c) 2009-2011 Georg Leciejewski (SalesKing), Jan Kus (Railslove), released under the MIT license
|
data/VERSION
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
2.0.1.pre
|
data/docs/dtazv.pdf
DELETED
Binary file
|
data/docs/dtazv_bank_bbk.pdf
DELETED
Binary file
|
data/example.output
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
0256P37040044 Commerzbank Köln 5th avenue 55323 los angeles1106080100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
2
|
-
|
3
|
-
0256Q370400447828970037 GIMME YOUR MONEY AG 6th avenue 445555 los angeles11060801110608N000000000000000000000000000000000000000000000000000000000000000000000000000000
|
4
|
-
|
5
|
-
0572T37040044EUR782897003711060837040044EUR0037040044 MARKF1100 FIDEL CASTRO 0 GR1601101250000000012300695EUR00000000000220025 0 0 0 0 00013 0 00000000000000000000000000000000000000000000000000000 00
|
6
|
-
|
7
|
-
256Y000000000000000000000000000000000000000000000000000000000000000000000001 0
|
data/spec/dtazv_test.rb
DELETED
@@ -1,105 +0,0 @@
|
|
1
|
-
$:.unshift(File.dirname(__FILE__))
|
2
|
-
$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
3
|
-
|
4
|
-
require 'rubygems'
|
5
|
-
require "king_dtaus"
|
6
|
-
require 'rspec'
|
7
|
-
require 'ostruct'
|
8
|
-
require 'date'
|
9
|
-
|
10
|
-
class Dtazv
|
11
|
-
|
12
|
-
def dudes_konto
|
13
|
-
opts = {
|
14
|
-
:account_number => '1326049634',
|
15
|
-
:bank_number => '37050299',
|
16
|
-
:bank_name => 'Kreissparkasse Köln',
|
17
|
-
:zweck => 'Monatsbeitrag',
|
18
|
-
:account_street => "Bank Eine Straße 2",
|
19
|
-
:account_city => "Bank Köln",
|
20
|
-
:account_zip_code => "51063",
|
21
|
-
:client_number => "",
|
22
|
-
:client_name =>'Jan Kus',
|
23
|
-
:client_street => "Meine Eine Straße 2",
|
24
|
-
:client_city => "Meine Köln",
|
25
|
-
:client_zip_code => "51063",
|
26
|
-
:bank_country_code => "DE",
|
27
|
-
:client_country_code => "DE"
|
28
|
-
}
|
29
|
-
TestKonto.new(opts)
|
30
|
-
end
|
31
|
-
|
32
|
-
def dalai_lamas_account
|
33
|
-
opts = {
|
34
|
-
:account_number => 'GR1601101250000000012300695',
|
35
|
-
:bank_number => 'MARKF1100',
|
36
|
-
:bank_name => 'India Bank',
|
37
|
-
:zweck => 'Lama-Fee',
|
38
|
-
:account_street => "5th avenue",
|
39
|
-
:account_city => "los angeles",
|
40
|
-
:account_zip_code => "55323",
|
41
|
-
:client_number => "",
|
42
|
-
:client_name =>'Dalai Lama',
|
43
|
-
:client_street => "Bush-Avenue 55",
|
44
|
-
:client_city => "Kuba",
|
45
|
-
:client_zip_code => "066600",
|
46
|
-
:client_zip_code => "445555",
|
47
|
-
:bank_country_code => "DE",
|
48
|
-
:client_country_code => "DE"
|
49
|
-
}
|
50
|
-
TestKonto.new(opts)
|
51
|
-
end
|
52
|
-
|
53
|
-
# The DTAVZ format as string. All data is appended to it during creation
|
54
|
-
def dta_string
|
55
|
-
@dta_string ||= ''
|
56
|
-
end
|
57
|
-
|
58
|
-
def create_dtazv
|
59
|
-
@date = Date.today
|
60
|
-
@dudes_dtazv_export = KingDta::Dtazv.new(@date)
|
61
|
-
@dudes_konto = self.dudes_konto
|
62
|
-
@dalai_lamas_account = self.dalai_lamas_account
|
63
|
-
@dudes_dtazv_export.account = KingDta::Account.new(
|
64
|
-
:account_number => @dudes_konto.account_number,
|
65
|
-
:bank_number => @dudes_konto.bank_number,
|
66
|
-
:client_name => @dudes_konto.client_name,
|
67
|
-
:client_number => @dudes_konto.client_number,
|
68
|
-
:bank_street => @dudes_konto.account_street,
|
69
|
-
:bank_city => @dudes_konto.account_city,
|
70
|
-
:bank_zip_code => @dudes_konto.account_zip_code,
|
71
|
-
:bank_name => @dudes_konto.bank_name,
|
72
|
-
:client_street => @dudes_konto.client_street,
|
73
|
-
:client_city => @dudes_konto.client_city,
|
74
|
-
:client_zip_code => @dudes_konto.client_zip_code,
|
75
|
-
:bank_country_code => @dudes_konto.bank_country_code,
|
76
|
-
:client_country_code => @dudes_konto.client_country_code
|
77
|
-
)
|
78
|
-
|
79
|
-
@dalai_lamas_booking = KingDta::Booking.new(KingDta::Account.new(
|
80
|
-
:account_number => @dalai_lamas_account.account_number,
|
81
|
-
:bank_number => @dalai_lamas_account.bank_number,
|
82
|
-
:client_name => @dalai_lamas_account.client_name,
|
83
|
-
:client_number => @dalai_lamas_account.client_number,
|
84
|
-
:bank_street => @dalai_lamas_account.account_street,
|
85
|
-
:bank_city => @dalai_lamas_account.account_city,
|
86
|
-
:bank_zip_code => @dalai_lamas_account.account_zip_code,
|
87
|
-
:bank_name => @dalai_lamas_account.bank_name,
|
88
|
-
:client_street => @dalai_lamas_account.client_street,
|
89
|
-
:client_city => @dalai_lamas_account.client_city,
|
90
|
-
:client_zip_code => @dalai_lamas_account.client_zip_code,
|
91
|
-
:bank_country_code => @dalai_lamas_account.bank_country_code,
|
92
|
-
:client_country_code => @dalai_lamas_account.client_country_code
|
93
|
-
), 220.25)
|
94
|
-
|
95
|
-
@dudes_dtazv_export.add(@dalai_lamas_booking)
|
96
|
-
@dudes_dtazv_export.create_file
|
97
|
-
end
|
98
|
-
|
99
|
-
# the test account responds to everything
|
100
|
-
class TestKonto < OpenStruct; end
|
101
|
-
|
102
|
-
end
|
103
|
-
|
104
|
-
d = Dtazv.new
|
105
|
-
d.create_dtazv
|