king_dtaus 2.0.2.pre → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 2.0.2.pre
Binary file
Binary file
@@ -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
@@ -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
-
13
- def dudes_konto
14
- opts = {
15
- :account_number => '1326049634',
16
- :bank_number => '37050299',
17
- :bank_name => 'Kreissparkasse Köln',
18
- :zweck => 'Monatsbeitrag',
19
- :account_street => "Bank Eine Straße 2",
20
- :account_city => "Bank Köln",
21
- :account_zip_code => "51063",
22
- :client_number => "",
23
- :client_name =>'Jan Kus',
24
- :client_street => "Meine Eine Straße 2",
25
- :client_city => "Meine Köln",
26
- :client_zip_code => "51063",
27
- :bank_country_code => "DE",
28
- :client_country_code => "DE"
29
- }
30
- TestKonto.new(opts)
31
- end
32
-
33
- def dalai_lamas_account
34
- opts = {
35
- :account_number => 'GR1601101250000000012300695',
36
- :bank_number => 'MARKF1100',
37
- :bank_name => 'Dalai Lamas Bank',
38
- :zweck => 'Lama Fee',
39
- :account_street => "5th avenue",
40
- :account_city => "los angeles",
41
- :account_zip_code => "55323",
42
- :client_number => "",
43
- :client_name =>'Dalai Lama',
44
- :client_street => "Bush-Avenue 55",
45
- :client_city => "India",
46
- :client_zip_code => "066600",
47
- :client_zip_code => "445555",
48
- :bank_country_code => "DE",
49
- :client_country_code => "DE"
50
- }
51
- TestKonto.new(opts)
52
- end
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
- @dtazv = KingDta::Dtazv.new(Date.today)
60
- @dudes_konto = dudes_konto
61
- @dalai_lamas_account = dalai_lamas_account
62
-
63
- @dtazv.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
- @dtazv.add(@dalai_lamas_booking)
96
- puts @dtazv.create
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