epics 2.8.0 → 2.10.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/README.md +73 -3
- data/lib/epics/client.rb +41 -9
- data/lib/epics/generic_request.rb +14 -0
- data/lib/epics/hev.rb +19 -0
- data/lib/epics/hia.rb +2 -0
- data/lib/epics/ini.rb +1 -0
- data/lib/epics/letter_renderer.rb +23 -3
- data/lib/epics/response.rb +8 -0
- data/lib/epics/signer.rb +3 -3
- data/lib/epics/version.rb +1 -1
- data/lib/epics/x_509_certificate.rb +15 -0
- data/lib/epics/z01.rb +17 -0
- data/lib/epics.rb +3 -0
- data/lib/letter/ini_with_certs.erb +335 -0
- data/lib/letter/locales/de.yml +1 -0
- data/lib/letter/locales/en.yml +1 -0
- data/lib/letter/locales/fr.yml +1 -0
- data/spec/client_spec.rb +150 -58
- data/spec/orders/hev_spec.rb +14 -0
- data/spec/orders/hia_spec.rb +31 -7
- data/spec/orders/ini_spec.rb +27 -8
- data/spec/orders/x_509_certificate_spec.rb +26 -0
- data/spec/orders/z01_spec.rb +11 -0
- data/spec/support/x_509_crt_generator.rb +22 -0
- metadata +15 -5
@@ -0,0 +1,335 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
2
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
|
3
|
+
<head>
|
4
|
+
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
5
|
+
<meta charset="UTF-8" />
|
6
|
+
<title>EBICS ini</title>
|
7
|
+
<style>
|
8
|
+
code {
|
9
|
+
font-size: 0.6rem;
|
10
|
+
overflow-wrap: break-word;
|
11
|
+
}
|
12
|
+
.code {
|
13
|
+
border-style: solid;
|
14
|
+
border-width: 1px;
|
15
|
+
padding: 8px;
|
16
|
+
background-color: azure;
|
17
|
+
}
|
18
|
+
.strong {
|
19
|
+
font-weight: bold;
|
20
|
+
}
|
21
|
+
h2 {
|
22
|
+
text-align: center;
|
23
|
+
}
|
24
|
+
td {
|
25
|
+
min-width: 150px;
|
26
|
+
}
|
27
|
+
table {
|
28
|
+
display: flex;
|
29
|
+
justify-content: center;
|
30
|
+
}
|
31
|
+
.column {
|
32
|
+
height: 100px;
|
33
|
+
}
|
34
|
+
</style>
|
35
|
+
</head>
|
36
|
+
<body>
|
37
|
+
<div>
|
38
|
+
<h2><%= t('initialization_letter.a') %></h2>
|
39
|
+
<table>
|
40
|
+
<tr>
|
41
|
+
<td>
|
42
|
+
<div class="column">
|
43
|
+
<table>
|
44
|
+
<tr>
|
45
|
+
<td class="strong">
|
46
|
+
<%= t('date') %> :
|
47
|
+
</td>
|
48
|
+
<td>
|
49
|
+
<%= Date.today.strftime('%d.%m.%Y') %>
|
50
|
+
</td>
|
51
|
+
</tr>
|
52
|
+
<tr>
|
53
|
+
<td class="strong">
|
54
|
+
<%= t('time') %> :
|
55
|
+
</td>
|
56
|
+
<td>
|
57
|
+
<%= Time.now.strftime('%H:%M:%S') %>
|
58
|
+
</td>
|
59
|
+
</tr>
|
60
|
+
<tr>
|
61
|
+
<td class="strong">
|
62
|
+
<%= t('recipient') %> :
|
63
|
+
</td>
|
64
|
+
<td>
|
65
|
+
<%= bankname %>
|
66
|
+
</td>
|
67
|
+
</tr>
|
68
|
+
</table>
|
69
|
+
</div>
|
70
|
+
</td>
|
71
|
+
<td>
|
72
|
+
<div class="column">
|
73
|
+
<table>
|
74
|
+
<tr>
|
75
|
+
<td class="strong">
|
76
|
+
Host-ID :
|
77
|
+
</td>
|
78
|
+
<td>
|
79
|
+
<%= host_id %>
|
80
|
+
</td>
|
81
|
+
</tr>
|
82
|
+
<tr>
|
83
|
+
<td class="strong">
|
84
|
+
User-ID :
|
85
|
+
</td>
|
86
|
+
<td>
|
87
|
+
<%= user_id %>
|
88
|
+
</td>
|
89
|
+
</tr>
|
90
|
+
<tr>
|
91
|
+
<td class="strong">
|
92
|
+
Partner-ID :
|
93
|
+
</td>
|
94
|
+
<td>
|
95
|
+
<%= partner_id %>
|
96
|
+
</td>
|
97
|
+
</tr>
|
98
|
+
<tr>
|
99
|
+
<td class="strong">
|
100
|
+
<%= t('version') %> :
|
101
|
+
</td>
|
102
|
+
<td>
|
103
|
+
A006
|
104
|
+
</td>
|
105
|
+
</tr>
|
106
|
+
</table>
|
107
|
+
</div>
|
108
|
+
</td>
|
109
|
+
</tr>
|
110
|
+
</table>
|
111
|
+
<p><%= t('certificate') %> :</p>
|
112
|
+
<pre class="code"><code><%= @client.x_509_certificates_content[:a] %></code></pre>
|
113
|
+
<p><%= t('hash') %> (SHA-256) :</p>
|
114
|
+
<p class="code"><code><%= x_509_certificate_a_hash.scan(/../).join(":") %></code></p>
|
115
|
+
<p><%= t('confirmation') %></p>
|
116
|
+
<br/>
|
117
|
+
<br/>
|
118
|
+
<br/>
|
119
|
+
<br/>
|
120
|
+
<table>
|
121
|
+
<tr>
|
122
|
+
<td>
|
123
|
+
_________________________
|
124
|
+
</td>
|
125
|
+
<td>
|
126
|
+
_________________________
|
127
|
+
</td>
|
128
|
+
<td>
|
129
|
+
_________________________
|
130
|
+
</td>
|
131
|
+
</tr>
|
132
|
+
<tr>
|
133
|
+
<td>
|
134
|
+
<%= t('issued_in') %>
|
135
|
+
</td>
|
136
|
+
<td>
|
137
|
+
<%= t('name') %>
|
138
|
+
</td>
|
139
|
+
<td>
|
140
|
+
<%= t('signature') %>
|
141
|
+
</td>
|
142
|
+
</tr>
|
143
|
+
</table>
|
144
|
+
</div>
|
145
|
+
<div style="page-break-after:always"></div>
|
146
|
+
<div>
|
147
|
+
<h2><%= t('initialization_letter.x') %></h2>
|
148
|
+
<table>
|
149
|
+
<tr>
|
150
|
+
<td>
|
151
|
+
<div class="column">
|
152
|
+
<table>
|
153
|
+
<tr>
|
154
|
+
<td class="strong">
|
155
|
+
<%= t('date') %> :
|
156
|
+
</td>
|
157
|
+
<td>
|
158
|
+
<%= Date.today.strftime('%d.%m.%Y') %>
|
159
|
+
</td>
|
160
|
+
</tr>
|
161
|
+
<tr>
|
162
|
+
<td class="strong">
|
163
|
+
<%= t('time') %> :
|
164
|
+
</td>
|
165
|
+
<td>
|
166
|
+
<%= Time.now.strftime('%H:%M:%S') %>
|
167
|
+
</td>
|
168
|
+
</tr>
|
169
|
+
<tr>
|
170
|
+
<td class="strong">
|
171
|
+
<%= t('recipient') %> :
|
172
|
+
</td>
|
173
|
+
<td>
|
174
|
+
<%= bankname %>
|
175
|
+
</td>
|
176
|
+
</tr>
|
177
|
+
</table>
|
178
|
+
</div>
|
179
|
+
</td>
|
180
|
+
<td>
|
181
|
+
<div class="column">
|
182
|
+
<table>
|
183
|
+
<tr>
|
184
|
+
<td class="strong">
|
185
|
+
Host-ID :
|
186
|
+
</td>
|
187
|
+
<td>
|
188
|
+
<%= host_id %>
|
189
|
+
</td>
|
190
|
+
</tr>
|
191
|
+
<tr>
|
192
|
+
<td class="strong">
|
193
|
+
User-ID :
|
194
|
+
</td>
|
195
|
+
<td>
|
196
|
+
<%= user_id %>
|
197
|
+
</td>
|
198
|
+
</tr>
|
199
|
+
<tr>
|
200
|
+
<td class="strong">
|
201
|
+
Partner-ID :
|
202
|
+
</td>
|
203
|
+
<td>
|
204
|
+
<%= partner_id %>
|
205
|
+
</td>
|
206
|
+
</tr>
|
207
|
+
<tr>
|
208
|
+
<td class="strong">
|
209
|
+
<%= t('version') %> :
|
210
|
+
</td>
|
211
|
+
<td>
|
212
|
+
X002
|
213
|
+
</td>
|
214
|
+
</tr>
|
215
|
+
</table>
|
216
|
+
</div>
|
217
|
+
</td>
|
218
|
+
</tr>
|
219
|
+
</table>
|
220
|
+
<p><%= t('certificate') %> :</p>
|
221
|
+
<pre class="code"><code><%= @client.x_509_certificates_content[:x] %></code></pre>
|
222
|
+
<p><%= t('hash') %> (SHA-256) :</p>
|
223
|
+
<p class="code"><code><%= x_509_certificate_x_hash.scan(/../).join(":") %></code></p>
|
224
|
+
</div>
|
225
|
+
<div style="page-break-after:always"></div>
|
226
|
+
<div>
|
227
|
+
<h2><%= t('initialization_letter.e') %></h2>
|
228
|
+
<table>
|
229
|
+
<tr>
|
230
|
+
<td>
|
231
|
+
<div class="column">
|
232
|
+
<table>
|
233
|
+
<tr>
|
234
|
+
<td class="strong">
|
235
|
+
<%= t('date') %> :
|
236
|
+
</td>
|
237
|
+
<td>
|
238
|
+
<%= Date.today.strftime('%d.%m.%Y') %>
|
239
|
+
</td>
|
240
|
+
</tr>
|
241
|
+
<tr>
|
242
|
+
<td class="strong">
|
243
|
+
<%= t('time') %> :
|
244
|
+
</td>
|
245
|
+
<td>
|
246
|
+
<%= Time.now.strftime('%H:%M:%S') %>
|
247
|
+
</td>
|
248
|
+
</tr>
|
249
|
+
<tr>
|
250
|
+
<td class="strong">
|
251
|
+
<%= t('recipient') %> :
|
252
|
+
</td>
|
253
|
+
<td>
|
254
|
+
<%= bankname %>
|
255
|
+
</td>
|
256
|
+
</tr>
|
257
|
+
</table>
|
258
|
+
</div>
|
259
|
+
</td>
|
260
|
+
<td>
|
261
|
+
<div class="column">
|
262
|
+
<table>
|
263
|
+
<tr>
|
264
|
+
<td class="strong">
|
265
|
+
Host-ID :
|
266
|
+
</td>
|
267
|
+
<td>
|
268
|
+
<%= host_id %>
|
269
|
+
</td>
|
270
|
+
</tr>
|
271
|
+
<tr>
|
272
|
+
<td class="strong">
|
273
|
+
User-ID :
|
274
|
+
</td>
|
275
|
+
<td>
|
276
|
+
<%= user_id %>
|
277
|
+
</td>
|
278
|
+
</tr>
|
279
|
+
<tr>
|
280
|
+
<td class="strong">
|
281
|
+
Partner-ID :
|
282
|
+
</td>
|
283
|
+
<td>
|
284
|
+
<%= partner_id %>
|
285
|
+
</td>
|
286
|
+
</tr>
|
287
|
+
<tr>
|
288
|
+
<td class="strong">
|
289
|
+
<%= t('version') %> :
|
290
|
+
</td>
|
291
|
+
<td>
|
292
|
+
E002
|
293
|
+
</td>
|
294
|
+
</tr>
|
295
|
+
</table>
|
296
|
+
</div>
|
297
|
+
</td>
|
298
|
+
</tr>
|
299
|
+
</table>
|
300
|
+
<p><%= t('certificate') %> :</p>
|
301
|
+
<pre class="code"><code><%= @client.x_509_certificates_content[:e] %></code></pre>
|
302
|
+
<p><%= t('hash') %> (SHA-256) :</p>
|
303
|
+
<p class="code"><code><%= x_509_certificate_e_hash.scan(/../).join(":") %></code></p>
|
304
|
+
<p><%= t('confirmation') %></p>
|
305
|
+
<br/>
|
306
|
+
<br/>
|
307
|
+
<br/>
|
308
|
+
<br/>
|
309
|
+
<table>
|
310
|
+
<tr>
|
311
|
+
<td>
|
312
|
+
_________________________
|
313
|
+
</td>
|
314
|
+
<td>
|
315
|
+
_________________________
|
316
|
+
</td>
|
317
|
+
<td>
|
318
|
+
_________________________
|
319
|
+
</td>
|
320
|
+
</tr>
|
321
|
+
<tr>
|
322
|
+
<td>
|
323
|
+
<%= t('issued_in') %>
|
324
|
+
</td>
|
325
|
+
<td>
|
326
|
+
<%= t('name') %>
|
327
|
+
</td>
|
328
|
+
<td>
|
329
|
+
<%= t('signature') %>
|
330
|
+
</td>
|
331
|
+
</tr>
|
332
|
+
</table>
|
333
|
+
</div>
|
334
|
+
</body>
|
335
|
+
</html>
|
data/lib/letter/locales/de.yml
CHANGED
data/lib/letter/locales/en.yml
CHANGED