nordea-rb 0.2.0
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/LICENSE +19 -0
- data/README.markdown +163 -0
- data/Rakefile +25 -0
- data/VERSION +1 -0
- data/bin/nordea +66 -0
- data/lib/nordea/request.rb +42 -0
- data/lib/nordea/resources/account.rb +102 -0
- data/lib/nordea/resources/card.rb +5 -0
- data/lib/nordea/resources/fund.rb +5 -0
- data/lib/nordea/resources/loan.rb +5 -0
- data/lib/nordea/resources/resource.rb +7 -0
- data/lib/nordea/resources.rb +17 -0
- data/lib/nordea/session.rb +63 -0
- data/lib/nordea/support.rb +63 -0
- data/lib/nordea/transaction.rb +27 -0
- data/lib/nordea/version.rb +9 -0
- data/lib/nordea.rb +72 -0
- data/test/fixtures/account.wml +408 -0
- data/test/fixtures/account_10_transactions.wml +257 -0
- data/test/fixtures/account_15_transactions.wml +335 -0
- data/test/fixtures/account_5_transactions.wml +186 -0
- data/test/fixtures/accounts.wml +197 -0
- data/test/fixtures/accounts_overview.wml +111 -0
- data/test/fixtures/error.wml +32 -0
- data/test/fixtures/logged_in_main_menu.wml +133 -0
- data/test/fixtures/login.wml +44 -0
- data/test/fixtures/transfer_to_own_account.wml +175 -0
- data/test/fixtures/transfers.wml +74 -0
- data/test/fixtures/transfers_1.wml +116 -0
- data/test/fixtures/transfers_2.wml +115 -0
- data/test/fixtures/transfers_3.wml +121 -0
- data/test/test_account.rb +168 -0
- data/test/test_functional.rb +63 -0
- data/test/test_helper.rb +58 -0
- data/test/test_nordea.rb +49 -0
- data/test/test_request.rb +44 -0
- data/test/test_session.rb +129 -0
- data/test/test_transaction.rb +58 -0
- metadata +99 -0
@@ -0,0 +1,175 @@
|
|
1
|
+
<?xml version="1.0"?>
|
2
|
+
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
|
3
|
+
|
4
|
+
|
5
|
+
|
6
|
+
|
7
|
+
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
<wml>
|
12
|
+
|
13
|
+
<template>
|
14
|
+
<do type="options" label="Solo meny">
|
15
|
+
<go href="https://gfs.nb.se/bin2/gfskod" method="
|
16
|
+
post
|
17
|
+
|
18
|
+
">
|
19
|
+
<postfield name="OBJECT" value="WAPL10" />
|
20
|
+
<postfield name="sid" value="123456789" />
|
21
|
+
</go>
|
22
|
+
</do>
|
23
|
+
|
24
|
+
</template>
|
25
|
+
|
26
|
+
|
27
|
+
<card title="Till eg. 1(4)" newcontext="true">
|
28
|
+
|
29
|
+
<onevent type="onenterforward">
|
30
|
+
<refresh>
|
31
|
+
<setvar name="sid" value="123456789" />
|
32
|
+
|
33
|
+
<setvar name="amount" value="" />
|
34
|
+
|
35
|
+
</refresh>
|
36
|
+
</onevent>
|
37
|
+
|
38
|
+
<p>
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
Från konto<br /><select name="from_account_info" title="Från konto" ivalue="1">
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
<option value="1:SEK:Sparkonto ">Sparkonto SEK</option>
|
63
|
+
|
64
|
+
<option value="2:SEK:Huvudkonto ">Huvudkonto SEK</option>
|
65
|
+
|
66
|
+
<option value="3:SEK:Betalkonto ">Betalkonto SEK</option>
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
</select><br />
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
Belopp<br /><input name="amount" size="10" format="*n" title="Belopp" emptyok="true" value="" maxlength="10" /><br />
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
Valuta<br /><select name="currency_code" title="Valuta" ivalue="1">
|
132
|
+
|
133
|
+
|
134
|
+
<option value="SEK">SEK</option>
|
135
|
+
<option value="EUR">EUR</option>
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
</select><br />
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
<anchor title="Fortsätt">Fortsätt
|
144
|
+
<go href="https://gfs.nb.se/bin2/gfskod" method="
|
145
|
+
post
|
146
|
+
|
147
|
+
">
|
148
|
+
<postfield name="OBJECT" value="OF00TW" />
|
149
|
+
<postfield name="sid" value="$sid" />
|
150
|
+
<postfield name="to_account_ind" value="" />
|
151
|
+
<postfield name="from_account_info" value="$from_account_info" />
|
152
|
+
<postfield name="amount" value="$amount" />
|
153
|
+
<postfield name="currency_code" value="$currency_code" />
|
154
|
+
<postfield name="account_org" value="" />
|
155
|
+
<postfield name="account_curr_org" value="" />
|
156
|
+
<postfield name="page" value="2" />
|
157
|
+
</go>
|
158
|
+
</anchor><br />
|
159
|
+
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
<anchor title="Avbryt">Avbryt
|
164
|
+
<go href="https://gfs.nb.se/bin2/gfskod" method="
|
165
|
+
post
|
166
|
+
|
167
|
+
">
|
168
|
+
<postfield name="OBJECT" value="WAP12TW" />
|
169
|
+
<postfield name="sid" value="$sid" />
|
170
|
+
</go>
|
171
|
+
</anchor>
|
172
|
+
</p>
|
173
|
+
</card>
|
174
|
+
|
175
|
+
</wml>
|
@@ -0,0 +1,74 @@
|
|
1
|
+
<?xml version="1.0"?>
|
2
|
+
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
|
3
|
+
|
4
|
+
|
5
|
+
|
6
|
+
|
7
|
+
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
<wml>
|
12
|
+
|
13
|
+
<template>
|
14
|
+
<do type="options" label="Solo meny">
|
15
|
+
<go href="https://gfs.nb.se/bin2/gfskod" method="
|
16
|
+
post
|
17
|
+
|
18
|
+
">
|
19
|
+
<postfield name="OBJECT" value="WAPL10" />
|
20
|
+
<postfield name="sid" value="123456789" />
|
21
|
+
</go>
|
22
|
+
</do>
|
23
|
+
|
24
|
+
<do type="prev" label="Tillbaka">
|
25
|
+
<prev />
|
26
|
+
</do>
|
27
|
+
</template>
|
28
|
+
|
29
|
+
<card title="Överföringar">
|
30
|
+
|
31
|
+
<onevent type="onenterforward">
|
32
|
+
<refresh>
|
33
|
+
<setvar name="sid" value="123456789" />
|
34
|
+
</refresh>
|
35
|
+
</onevent>
|
36
|
+
|
37
|
+
<p>
|
38
|
+
<anchor title="Till eget">Till eget konto
|
39
|
+
<go href="https://gfs.nb.se/bin2/gfskod" method="
|
40
|
+
post
|
41
|
+
|
42
|
+
">
|
43
|
+
<postfield name="OBJECT" value="OF00TW" />
|
44
|
+
<postfield name="sid" value="123456789" />
|
45
|
+
</go>
|
46
|
+
</anchor><br />
|
47
|
+
|
48
|
+
<anchor title="Till annans">Till annans konto
|
49
|
+
<go href="https://gfs.nb.se/bin2/gfskod" method="
|
50
|
+
post
|
51
|
+
|
52
|
+
">
|
53
|
+
<postfield name="OBJECT" value="EK00" />
|
54
|
+
<postfield name="target" value="OF01S" />
|
55
|
+
<postfield name="sid" value="123456789" />
|
56
|
+
<postfield name="till_konto" value="1" />
|
57
|
+
</go>
|
58
|
+
</anchor><br />
|
59
|
+
|
60
|
+
<br />
|
61
|
+
|
62
|
+
<anchor title="Solo meny">Huvudmeny
|
63
|
+
<go href="https://gfs.nb.se/bin2/gfskod" method="
|
64
|
+
post
|
65
|
+
|
66
|
+
">
|
67
|
+
<postfield name="OBJECT" value="WAPL10" />
|
68
|
+
<postfield name="sid" value="123456789" />
|
69
|
+
</go>
|
70
|
+
</anchor>
|
71
|
+
</p>
|
72
|
+
</card>
|
73
|
+
|
74
|
+
</wml>
|
@@ -0,0 +1,116 @@
|
|
1
|
+
<?xml version="1.0"?>
|
2
|
+
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
|
3
|
+
|
4
|
+
|
5
|
+
|
6
|
+
|
7
|
+
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
<wml>
|
12
|
+
|
13
|
+
<template>
|
14
|
+
<do type="options" label="Solo meny">
|
15
|
+
<go method="
|
16
|
+
post
|
17
|
+
|
18
|
+
" href="https://gfs.nb.se/bin2/gfskod">
|
19
|
+
<postfield name="OBJECT" value="WAPL10"/>
|
20
|
+
<postfield name="sid" value="123456789"/>
|
21
|
+
</go>
|
22
|
+
</do>
|
23
|
+
|
24
|
+
</template>
|
25
|
+
|
26
|
+
|
27
|
+
<card title="Till eg. 2(4)" newcontext="true">
|
28
|
+
|
29
|
+
<onevent type="onenterforward">
|
30
|
+
<refresh>
|
31
|
+
<setvar name="sid" value="123456789"/>
|
32
|
+
|
33
|
+
</refresh>
|
34
|
+
</onevent>
|
35
|
+
|
36
|
+
<p>
|
37
|
+
|
38
|
+
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
Till konto<br/><select name="to_account_info" ivalue="1" title="Till konto">
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
<option value="1:SEK:Sparkonto">Sparkonto SEK</option>
|
67
|
+
|
68
|
+
<option value="2:SEK:Huvudkonto">Huvudkonto SEK</option>
|
69
|
+
|
70
|
+
<option value="3:SEK:Betalkonto">Betalkonto SEK</option>
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
</select><br/>
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
<anchor title="Överför">OK - Överför
|
80
|
+
<go method="
|
81
|
+
post
|
82
|
+
|
83
|
+
" href="https://gfs.nb.se/bin2/gfskod">
|
84
|
+
<postfield name="OBJECT" value="OF10TW"/>
|
85
|
+
<postfield name="sid" value="$sid"/>
|
86
|
+
<postfield name="from_account_info" value="1:SEK:Sparkonto"/>
|
87
|
+
<postfield name="to_account_info" value="$to_account_info"/>
|
88
|
+
<postfield name="amount" value="1"/>
|
89
|
+
<postfield name="currency_code" value="SEK"/>
|
90
|
+
<postfield name="account_org" value=""/>
|
91
|
+
<postfield name="account_curr_org" value=""/>
|
92
|
+
</go>
|
93
|
+
</anchor>
|
94
|
+
|
95
|
+
|
96
|
+
<br/>
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
<anchor title="Avbryt">Avbryt
|
105
|
+
<go method="
|
106
|
+
post
|
107
|
+
|
108
|
+
" href="https://gfs.nb.se/bin2/gfskod">
|
109
|
+
<postfield name="OBJECT" value="WAP12TW"/>
|
110
|
+
<postfield name="sid" value="$sid"/>
|
111
|
+
</go>
|
112
|
+
</anchor>
|
113
|
+
</p>
|
114
|
+
</card>
|
115
|
+
|
116
|
+
</wml>
|
@@ -0,0 +1,115 @@
|
|
1
|
+
<?xml version="1.0"?>
|
2
|
+
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
|
3
|
+
|
4
|
+
|
5
|
+
|
6
|
+
|
7
|
+
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
<wml>
|
12
|
+
|
13
|
+
<template>
|
14
|
+
<do type="options" label="Solo meny">
|
15
|
+
<go method="
|
16
|
+
post
|
17
|
+
|
18
|
+
" href="https://gfs.nb.se/bin2/gfskod">
|
19
|
+
<postfield name="OBJECT" value="WAPL10"/>
|
20
|
+
<postfield name="sid" value="123456789"/>
|
21
|
+
</go>
|
22
|
+
</do>
|
23
|
+
|
24
|
+
<do type="prev" label="Tillbaka">
|
25
|
+
<prev/>
|
26
|
+
</do>
|
27
|
+
</template>
|
28
|
+
|
29
|
+
<card title="Till eg. 3(4)">
|
30
|
+
|
31
|
+
<onevent type="onenterforward">
|
32
|
+
<refresh>
|
33
|
+
<setvar name="sid" value="$sid"/>
|
34
|
+
</refresh>
|
35
|
+
</onevent>
|
36
|
+
|
37
|
+
<p><small>
|
38
|
+
Du vill göra följande överföring <br/>
|
39
|
+
Från: Huvudkonto SEK<br/>
|
40
|
+
Till: Betalkonto SEK<br/>
|
41
|
+
Belopp: 10,00 SEK
|
42
|
+
</small></p>
|
43
|
+
|
44
|
+
<p>
|
45
|
+
<br/>
|
46
|
+
<anchor title="Ok - överför">Ok - överför
|
47
|
+
<go method="
|
48
|
+
post
|
49
|
+
|
50
|
+
" href="https://gfs.nb.se/bin2/gfskod">
|
51
|
+
<postfield name="OBJECT" value="OF12TW"/>
|
52
|
+
<postfield name="sid" value="$sid"/>
|
53
|
+
<postfield name="currency_code" value="SEK"/>
|
54
|
+
<postfield name="from_account_number" value="2"/>
|
55
|
+
<postfield name="from_account_name" value="Huvudkonto"/>
|
56
|
+
<postfield name="to_account_number" value="3"/>
|
57
|
+
<postfield name="to_account_name" value="Betalkonto"/>
|
58
|
+
<postfield name="amount" value="10,00"/>
|
59
|
+
<postfield name="corresp_disposable_amount" value=""/>
|
60
|
+
<postfield name="exchange_rate" value="0"/>
|
61
|
+
<postfield name="from_currency_code" value="SEK"/>
|
62
|
+
<postfield name="to_currency_code" value="SEK"/>
|
63
|
+
</go>
|
64
|
+
</anchor>
|
65
|
+
|
66
|
+
|
67
|
+
<br/>
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
<anchor title="Ändra">Ändra
|
74
|
+
<go method="
|
75
|
+
post
|
76
|
+
|
77
|
+
" href="https://gfs.nb.se/bin2/gfskod">
|
78
|
+
<postfield name="OBJECT" value="OF00TW"/>
|
79
|
+
<postfield name="sid" value="$sid"/>
|
80
|
+
<postfield name="from_account_ind" value="2"/>
|
81
|
+
<postfield name="to_account_ind" value="3"/>
|
82
|
+
<postfield name="amount" value="10,00"/>
|
83
|
+
<postfield name="currency_code" value="SEK"/>
|
84
|
+
<postfield name="page" value="1"/>
|
85
|
+
</go>
|
86
|
+
</anchor>
|
87
|
+
|
88
|
+
|
89
|
+
<br/>
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
<anchor title="Avbryt">Avbryt
|
96
|
+
<go method="
|
97
|
+
post
|
98
|
+
|
99
|
+
" href="https://gfs.nb.se/bin2/gfskod">
|
100
|
+
<postfield name="OBJECT" value="WAP12TW"/>
|
101
|
+
<postfield name="sid" value="$sid"/>
|
102
|
+
</go>
|
103
|
+
</anchor>
|
104
|
+
|
105
|
+
|
106
|
+
<br/>
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
</p>
|
112
|
+
|
113
|
+
</card>
|
114
|
+
|
115
|
+
</wml>
|
@@ -0,0 +1,121 @@
|
|
1
|
+
<?xml version="1.0"?>
|
2
|
+
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
|
3
|
+
|
4
|
+
|
5
|
+
|
6
|
+
|
7
|
+
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
<wml>
|
12
|
+
|
13
|
+
<template>
|
14
|
+
<do type="options" label="Solo meny">
|
15
|
+
<go method="
|
16
|
+
post
|
17
|
+
|
18
|
+
" href="https://gfs.nb.se/bin2/gfskod">
|
19
|
+
<postfield name="OBJECT" value="WAPL10"/>
|
20
|
+
<postfield name="sid" value="123456789"/>
|
21
|
+
</go>
|
22
|
+
</do>
|
23
|
+
</template>
|
24
|
+
|
25
|
+
<card title="Till eg. 4(4)" newcontext="true">
|
26
|
+
<onevent type="onenterforward">
|
27
|
+
<refresh>
|
28
|
+
<setvar name="sid" value="123456789"/>
|
29
|
+
</refresh>
|
30
|
+
</onevent>
|
31
|
+
|
32
|
+
<p>
|
33
|
+
Överföringen är utförd.<br/>
|
34
|
+
<br/>
|
35
|
+
|
36
|
+
<a href="#info">Visa överföringen</a>
|
37
|
+
|
38
|
+
|
39
|
+
<br/>
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
<anchor title="Överföring">Ny överföring
|
46
|
+
<go method="
|
47
|
+
post
|
48
|
+
|
49
|
+
" href="https://gfs.nb.se/bin2/gfskod">
|
50
|
+
<postfield name="OBJECT" value="OF00TW"/>
|
51
|
+
<postfield name="sid" value="$sid"/>
|
52
|
+
<postfield name="no_prev" value="1"/>
|
53
|
+
|
54
|
+
</go>
|
55
|
+
</anchor>
|
56
|
+
|
57
|
+
|
58
|
+
<br/>
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
|
64
|
+
<anchor title="Solo meny">Huvudmeny
|
65
|
+
<go method="
|
66
|
+
post
|
67
|
+
|
68
|
+
" href="https://gfs.nb.se/bin2/gfskod">
|
69
|
+
<postfield name="OBJECT" value="WAPL10"/>
|
70
|
+
<postfield name="sid" value="$sid"/>
|
71
|
+
<postfield name="no_prev" value="1"/>
|
72
|
+
</go>
|
73
|
+
</anchor>
|
74
|
+
</p>
|
75
|
+
</card>
|
76
|
+
|
77
|
+
<card id="info" title="Överf. info">
|
78
|
+
<p>
|
79
|
+
Från: Huvudkonto<br/>
|
80
|
+
Till: Betalkonto<br/>
|
81
|
+
Belopp: 10,00 SEK<br/>
|
82
|
+
<br/>
|
83
|
+
|
84
|
+
<anchor title="Överföring">Ny överföring
|
85
|
+
<go method="
|
86
|
+
post
|
87
|
+
|
88
|
+
" href="https://gfs.nb.se/bin2/gfskod">
|
89
|
+
<postfield name="OBJECT" value="OF00TW"/>
|
90
|
+
<postfield name="sid" value="$sid"/>
|
91
|
+
<postfield name="no_prev" value="1"/>
|
92
|
+
|
93
|
+
</go>
|
94
|
+
</anchor>
|
95
|
+
|
96
|
+
|
97
|
+
<br/>
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
<anchor title="Solo meny">Huvudmeny
|
104
|
+
<go method="
|
105
|
+
post
|
106
|
+
|
107
|
+
" href="https://gfs.nb.se/bin2/gfskod">
|
108
|
+
<postfield name="OBJECT" value="WAPL10"/>
|
109
|
+
<postfield name="sid" value="$sid"/>
|
110
|
+
<postfield name="no_prev" value="1"/>
|
111
|
+
</go>
|
112
|
+
</anchor> <br/>
|
113
|
+
|
114
|
+
<do type="prev" label="Tillbaka">
|
115
|
+
<prev/>
|
116
|
+
</do>
|
117
|
+
|
118
|
+
</p>
|
119
|
+
</card>
|
120
|
+
|
121
|
+
</wml>
|