exact4r 0.5.2 → 0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +8 -0
- data/README +8 -8
- data/VERSION +1 -1
- data/doc/classes/EWS/Transaction/FakeResponse.html +451 -0
- data/doc/classes/EWS/Transaction/Request.html +54 -81
- data/doc/classes/EWS/Transaction/Response.html +182 -14
- data/doc/classes/EWS/Transaction/Validator.html +168 -0
- data/doc/classes/EWS/Transporter.html +271 -0
- data/doc/created.rid +1 -1
- data/doc/files/CHANGELOG.html +15 -2
- data/doc/files/README.html +17 -9
- data/doc/files/VERSION.html +2 -2
- data/doc/files/lib/ews/transaction/fake_response_rb.html +101 -0
- data/doc/files/lib/ews/transaction/mapping_rb.html +1 -1
- data/doc/files/lib/ews/transaction/request_rb.html +8 -1
- data/doc/files/lib/ews/transaction/response_rb.html +1 -1
- data/doc/files/lib/ews/transaction/validator_rb.html +101 -0
- data/doc/files/lib/ews/{transaction/transporter_rb.html → transporter_rb.html} +3 -3
- data/doc/files/lib/exact4r_rb.html +4 -2
- data/doc/fr_class_index.html +3 -1
- data/doc/fr_file_index.html +3 -1
- data/doc/fr_method_index.html +18 -7
- data/lib/ews/transaction/fake_response.rb +137 -0
- data/lib/ews/transaction/mapping.rb +38 -15
- data/lib/ews/transaction/request.rb +10 -58
- data/lib/ews/transaction/response.rb +3 -3
- data/lib/ews/transaction/validator.rb +230 -0
- data/lib/ews/transporter.rb +143 -0
- data/lib/exact4r.rb +4 -1
- data/spec/donncha_spec.rb +13 -0
- data/spec/mapping_spec.rb +45 -4
- data/spec/request_spec.rb +96 -69
- data/spec/spec_helper.rb +20 -8
- data/spec/transporter_spec.rb +26 -2
- data/spec/validator_spec.rb +145 -0
- metadata +16 -7
- data/doc/classes/EWS/Transaction/Transporter.html +0 -250
- data/lib/ews/transaction/transporter.rb +0 -120
- data/output.log +0 -368
@@ -105,7 +105,7 @@ href="http://www.e-xact.com/wp-content/uploads/2007/06/E-xact_Payment_Webservice
|
|
105
105
|
</p>
|
106
106
|
<p>
|
107
107
|
Please note that, if your chosen transaction requires it, credit card
|
108
|
-
expiry dates <b>must</b> be entered in
|
108
|
+
expiry dates <b>must</b> be entered in MMYY format.
|
109
109
|
</p>
|
110
110
|
<h1>Allowable transaction types</h1>
|
111
111
|
<pre>
|
@@ -142,10 +142,9 @@ expiry dates <b>must</b> be entered in YYMM format.
|
|
142
142
|
<h3 class="section-bar">Methods</h3>
|
143
143
|
|
144
144
|
<div class="name-list">
|
145
|
-
<a href="#
|
146
|
-
<a href="#
|
147
|
-
<a href="#
|
148
|
-
<a href="#M000007">valid?</a>
|
145
|
+
<a href="#M000016">is_find_transaction?</a>
|
146
|
+
<a href="#M000014">new</a>
|
147
|
+
<a href="#M000015">transaction_type=</a>
|
149
148
|
</div>
|
150
149
|
</div>
|
151
150
|
|
@@ -153,6 +152,13 @@ expiry dates <b>must</b> be entered in YYMM format.
|
|
153
152
|
|
154
153
|
|
155
154
|
<!-- if includes -->
|
155
|
+
<div id="includes">
|
156
|
+
<h3 class="section-bar">Included Modules</h3>
|
157
|
+
|
158
|
+
<div id="includes-list">
|
159
|
+
<span class="include-name"><a href="Validator.html">Validator</a></span>
|
160
|
+
</div>
|
161
|
+
</div>
|
156
162
|
|
157
163
|
<div id="section">
|
158
164
|
|
@@ -171,7 +177,7 @@ expiry dates <b>must</b> be entered in YYMM format.
|
|
171
177
|
<td class="context-item-desc"></td>
|
172
178
|
</tr>
|
173
179
|
<tr class="top-aligned-row context-row">
|
174
|
-
<td class="context-item-name">
|
180
|
+
<td class="context-item-name">authorization_num</td>
|
175
181
|
<td class="context-item-value"> [RW] </td>
|
176
182
|
<td class="context-item-desc"></td>
|
177
183
|
</tr>
|
@@ -238,7 +244,10 @@ expiry dates <b>must</b> be entered in YYMM format.
|
|
238
244
|
<tr class="top-aligned-row context-row">
|
239
245
|
<td class="context-item-name">errors</td>
|
240
246
|
<td class="context-item-value"> [RW] </td>
|
241
|
-
<td class="context-item-desc"
|
247
|
+
<td class="context-item-desc">
|
248
|
+
yeah, it‘s ugly, but otherwise RDoc won‘t pick them up
|
249
|
+
|
250
|
+
</td>
|
242
251
|
</tr>
|
243
252
|
<tr class="top-aligned-row context-row">
|
244
253
|
<td class="context-item-name">gateway_id</td>
|
@@ -326,12 +335,12 @@ expiry dates <b>must</b> be entered in YYMM format.
|
|
326
335
|
<td class="context-item-desc"></td>
|
327
336
|
</tr>
|
328
337
|
<tr class="top-aligned-row context-row">
|
329
|
-
<td class="context-item-name">
|
338
|
+
<td class="context-item-name">xid</td>
|
330
339
|
<td class="context-item-value"> [RW] </td>
|
331
340
|
<td class="context-item-desc"></td>
|
332
341
|
</tr>
|
333
342
|
<tr class="top-aligned-row context-row">
|
334
|
-
<td class="context-item-name">
|
343
|
+
<td class="context-item-name">zip_code</td>
|
335
344
|
<td class="context-item-value"> [RW] </td>
|
336
345
|
<td class="context-item-desc"></td>
|
337
346
|
</tr>
|
@@ -345,11 +354,11 @@ expiry dates <b>must</b> be entered in YYMM format.
|
|
345
354
|
<div id="methods">
|
346
355
|
<h3 class="section-bar">Public Class methods</h3>
|
347
356
|
|
348
|
-
<div id="method-
|
349
|
-
<a name="
|
357
|
+
<div id="method-M000014" class="method-detail">
|
358
|
+
<a name="M000014"></a>
|
350
359
|
|
351
360
|
<div class="method-heading">
|
352
|
-
<a href="#
|
361
|
+
<a href="#M000014" class="method-signature">
|
353
362
|
<span class="method-name">new</span><span class="method-args">(hash = {})</span>
|
354
363
|
</a>
|
355
364
|
</div>
|
@@ -359,14 +368,14 @@ expiry dates <b>must</b> be entered in YYMM format.
|
|
359
368
|
Initialize a <a href="Request.html">Request</a> with a hash of values
|
360
369
|
</p>
|
361
370
|
<p><a class="source-toggle" href="#"
|
362
|
-
onclick="toggleCode('
|
363
|
-
<div class="method-source-code" id="
|
371
|
+
onclick="toggleCode('M000014-source');return false;">[Source]</a></p>
|
372
|
+
<div class="method-source-code" id="M000014-source">
|
364
373
|
<pre>
|
365
|
-
<span class="ruby-comment cmt"># File lib/ews/transaction/request.rb, line
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
374
|
+
<span class="ruby-comment cmt"># File lib/ews/transaction/request.rb, line 57</span>
|
375
|
+
57: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">hash</span> = {})
|
376
|
+
58: <span class="ruby-identifier">hash</span>.<span class="ruby-identifier">each</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span><span class="ruby-operator">|</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">send</span> <span class="ruby-node">"#{k.to_s}="</span>, <span class="ruby-identifier">v</span>}
|
377
|
+
59: <span class="ruby-ivar">@errors</span> = {}
|
378
|
+
60: <span class="ruby-keyword kw">end</span>
|
370
379
|
</pre>
|
371
380
|
</div>
|
372
381
|
</div>
|
@@ -374,11 +383,11 @@ Initialize a <a href="Request.html">Request</a> with a hash of values
|
|
374
383
|
|
375
384
|
<h3 class="section-bar">Public Instance methods</h3>
|
376
385
|
|
377
|
-
<div id="method-
|
378
|
-
<a name="
|
386
|
+
<div id="method-M000016" class="method-detail">
|
387
|
+
<a name="M000016"></a>
|
379
388
|
|
380
389
|
<div class="method-heading">
|
381
|
-
<a href="#
|
390
|
+
<a href="#M000016" class="method-signature">
|
382
391
|
<span class="method-name">is_find_transaction?</span><span class="method-args">()</span>
|
383
392
|
</a>
|
384
393
|
</div>
|
@@ -389,23 +398,23 @@ Indicates whether or not this transaction is a
|
|
389
398
|
<tt>:transaction_details</tt> transaction
|
390
399
|
</p>
|
391
400
|
<p><a class="source-toggle" href="#"
|
392
|
-
onclick="toggleCode('
|
393
|
-
<div class="method-source-code" id="
|
401
|
+
onclick="toggleCode('M000016-source');return false;">[Source]</a></p>
|
402
|
+
<div class="method-source-code" id="M000016-source">
|
394
403
|
<pre>
|
395
|
-
<span class="ruby-comment cmt"># File lib/ews/transaction/request.rb, line
|
396
|
-
|
397
|
-
|
398
|
-
|
404
|
+
<span class="ruby-comment cmt"># File lib/ews/transaction/request.rb, line 77</span>
|
405
|
+
77: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">is_find_transaction?</span>
|
406
|
+
78: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">transaction_type</span> <span class="ruby-operator">==</span> <span class="ruby-value str">"CR"</span>
|
407
|
+
79: <span class="ruby-keyword kw">end</span>
|
399
408
|
</pre>
|
400
409
|
</div>
|
401
410
|
</div>
|
402
411
|
</div>
|
403
412
|
|
404
|
-
<div id="method-
|
405
|
-
<a name="
|
413
|
+
<div id="method-M000015" class="method-detail">
|
414
|
+
<a name="M000015"></a>
|
406
415
|
|
407
416
|
<div class="method-heading">
|
408
|
-
<a href="#
|
417
|
+
<a href="#M000015" class="method-signature">
|
409
418
|
<span class="method-name">transaction_type=</span><span class="method-args">(type_sym)</span>
|
410
419
|
</a>
|
411
420
|
</div>
|
@@ -417,57 +426,21 @@ relevant code, e.g: for a purchase you can use either
|
|
417
426
|
<tt>:purchase</tt> or <tt>‘00‘</tt>
|
418
427
|
</p>
|
419
428
|
<p><a class="source-toggle" href="#"
|
420
|
-
onclick="toggleCode('
|
421
|
-
<div class="method-source-code" id="
|
422
|
-
<pre>
|
423
|
-
<span class="ruby-comment cmt"># File lib/ews/transaction/request.rb, line 61</span>
|
424
|
-
61: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">transaction_type=</span>(<span class="ruby-identifier">type_sym</span>)
|
425
|
-
62: <span class="ruby-comment cmt"># assume we're given a symbol, so look up the code</span>
|
426
|
-
63: <span class="ruby-identifier">value</span> = <span class="ruby-ivar">@@transaction_codes</span>[<span class="ruby-identifier">type_sym</span>]
|
427
|
-
64: <span class="ruby-comment cmt"># if nothing found, then maybe we were given an actual code?</span>
|
428
|
-
65: <span class="ruby-identifier">value</span> = <span class="ruby-identifier">type_sym</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-keyword kw">and</span> <span class="ruby-ivar">@@transaction_codes</span>.<span class="ruby-identifier">values</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">type_sym</span>)
|
429
|
-
66:
|
430
|
-
67: <span class="ruby-ivar">@transaction_type</span> = <span class="ruby-identifier">value</span>
|
431
|
-
68: <span class="ruby-keyword kw">end</span>
|
432
|
-
</pre>
|
433
|
-
</div>
|
434
|
-
</div>
|
435
|
-
</div>
|
436
|
-
|
437
|
-
<div id="method-M000007" class="method-detail">
|
438
|
-
<a name="M000007"></a>
|
439
|
-
|
440
|
-
<div class="method-heading">
|
441
|
-
<a href="#M000007" class="method-signature">
|
442
|
-
<span class="method-name">valid?</span><span class="method-args">()</span>
|
443
|
-
</a>
|
444
|
-
</div>
|
445
|
-
|
446
|
-
<div class="method-description">
|
447
|
-
<p><a class="source-toggle" href="#"
|
448
|
-
onclick="toggleCode('M000007-source');return false;">[Source]</a></p>
|
449
|
-
<div class="method-source-code" id="M000007-source">
|
429
|
+
onclick="toggleCode('M000015-source');return false;">[Source]</a></p>
|
430
|
+
<div class="method-source-code" id="M000015-source">
|
450
431
|
<pre>
|
451
|
-
<span class="ruby-comment cmt"># File lib/ews/transaction/request.rb, line
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
86: <span class="ruby-identifier">errors</span>[<span class="ruby-identifier">:tax1_amount</span>] = <span class="ruby-value str">"invalid tax1_amount supplied"</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">valid_amount?</span>(<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">tax1_amount</span>)
|
464
|
-
87: <span class="ruby-identifier">errors</span>[<span class="ruby-identifier">:tax2_amount</span>] = <span class="ruby-value str">"invalid tax2_amount supplied"</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">valid_amount?</span>(<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">tax2_amount</span>)
|
465
|
-
88:
|
466
|
-
89: <span class="ruby-identifier">errors</span>[<span class="ruby-identifier">:cc_number</span>] = <span class="ruby-value str">"invalid cc_number supplied"</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">valid_card_number?</span>
|
467
|
-
90: <span class="ruby-identifier">errors</span>[<span class="ruby-identifier">:cc_expiry</span>] = <span class="ruby-value str">"invalid cc_expiry supplied"</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">valid_expiry_date?</span>
|
468
|
-
91:
|
469
|
-
92: <span class="ruby-identifier">errors</span>.<span class="ruby-identifier">empty?</span>
|
470
|
-
93: <span class="ruby-keyword kw">end</span>
|
432
|
+
<span class="ruby-comment cmt"># File lib/ews/transaction/request.rb, line 64</span>
|
433
|
+
64: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">transaction_type=</span>(<span class="ruby-identifier">type_sym</span>)
|
434
|
+
65: <span class="ruby-comment cmt"># assume we're given a symbol, so look up the code</span>
|
435
|
+
66: <span class="ruby-identifier">value</span> = <span class="ruby-ivar">@@transaction_codes</span>[<span class="ruby-identifier">type_sym</span>]
|
436
|
+
67: <span class="ruby-comment cmt"># if nothing found, then maybe we were given an actual code?</span>
|
437
|
+
68: <span class="ruby-keyword kw">if</span>(<span class="ruby-identifier">value</span>.<span class="ruby-identifier">nil?</span>)
|
438
|
+
69: <span class="ruby-identifier">raise</span> <span class="ruby-node">"invalid transaction_type supplied #{type_sym}"</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@@transaction_codes</span>.<span class="ruby-identifier">values</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">type_sym</span>)
|
439
|
+
70: <span class="ruby-identifier">value</span> = <span class="ruby-identifier">type_sym</span>
|
440
|
+
71: <span class="ruby-keyword kw">end</span>
|
441
|
+
72:
|
442
|
+
73: <span class="ruby-ivar">@transaction_type</span> = <span class="ruby-identifier">value</span>
|
443
|
+
74: <span class="ruby-keyword kw">end</span>
|
471
444
|
</pre>
|
472
445
|
</div>
|
473
446
|
</div>
|
@@ -65,9 +65,7 @@
|
|
65
65
|
<tr class="top-aligned-row">
|
66
66
|
<td><strong>Parent:</strong></td>
|
67
67
|
<td>
|
68
|
-
|
69
|
-
EWS::Transaction::Request
|
70
|
-
</a>
|
68
|
+
Object
|
71
69
|
</td>
|
72
70
|
</tr>
|
73
71
|
</table>
|
@@ -94,7 +92,7 @@ This class encapsulates all the data returned from the E-xact Web Service.
|
|
94
92
|
<h3 class="section-bar">Methods</h3>
|
95
93
|
|
96
94
|
<div class="name-list">
|
97
|
-
<a href="#
|
95
|
+
<a href="#M000013">approved?</a>
|
98
96
|
</div>
|
99
97
|
</div>
|
100
98
|
|
@@ -115,7 +113,12 @@ This class encapsulates all the data returned from the E-xact Web Service.
|
|
115
113
|
<div class="name-list">
|
116
114
|
<table>
|
117
115
|
<tr class="top-aligned-row context-row">
|
118
|
-
<td class="context-item-name">
|
116
|
+
<td class="context-item-name">amount</td>
|
117
|
+
<td class="context-item-value"> [RW] </td>
|
118
|
+
<td class="context-item-desc"></td>
|
119
|
+
</tr>
|
120
|
+
<tr class="top-aligned-row context-row">
|
121
|
+
<td class="context-item-name">authorization_num</td>
|
119
122
|
<td class="context-item-value"> [RW] </td>
|
120
123
|
<td class="context-item-desc"></td>
|
121
124
|
</tr>
|
@@ -139,16 +142,81 @@ This class encapsulates all the data returned from the E-xact Web Service.
|
|
139
142
|
<td class="context-item-value"> [RW] </td>
|
140
143
|
<td class="context-item-desc"></td>
|
141
144
|
</tr>
|
145
|
+
<tr class="top-aligned-row context-row">
|
146
|
+
<td class="context-item-name">cardholder_name</td>
|
147
|
+
<td class="context-item-value"> [RW] </td>
|
148
|
+
<td class="context-item-desc"></td>
|
149
|
+
</tr>
|
150
|
+
<tr class="top-aligned-row context-row">
|
151
|
+
<td class="context-item-name">cavv</td>
|
152
|
+
<td class="context-item-value"> [RW] </td>
|
153
|
+
<td class="context-item-desc"></td>
|
154
|
+
</tr>
|
155
|
+
<tr class="top-aligned-row context-row">
|
156
|
+
<td class="context-item-name">cavv_algorithm</td>
|
157
|
+
<td class="context-item-value"> [RW] </td>
|
158
|
+
<td class="context-item-desc"></td>
|
159
|
+
</tr>
|
142
160
|
<tr class="top-aligned-row context-row">
|
143
161
|
<td class="context-item-name">cavv_response</td>
|
144
162
|
<td class="context-item-value"> [RW] </td>
|
145
163
|
<td class="context-item-desc"></td>
|
146
164
|
</tr>
|
165
|
+
<tr class="top-aligned-row context-row">
|
166
|
+
<td class="context-item-name">cc_expiry</td>
|
167
|
+
<td class="context-item-value"> [RW] </td>
|
168
|
+
<td class="context-item-desc"></td>
|
169
|
+
</tr>
|
170
|
+
<tr class="top-aligned-row context-row">
|
171
|
+
<td class="context-item-name">cc_number</td>
|
172
|
+
<td class="context-item-value"> [RW] </td>
|
173
|
+
<td class="context-item-desc"></td>
|
174
|
+
</tr>
|
175
|
+
<tr class="top-aligned-row context-row">
|
176
|
+
<td class="context-item-name">cc_verification_str1</td>
|
177
|
+
<td class="context-item-value"> [RW] </td>
|
178
|
+
<td class="context-item-desc"></td>
|
179
|
+
</tr>
|
180
|
+
<tr class="top-aligned-row context-row">
|
181
|
+
<td class="context-item-name">cc_verification_str2</td>
|
182
|
+
<td class="context-item-value"> [RW] </td>
|
183
|
+
<td class="context-item-desc"></td>
|
184
|
+
</tr>
|
185
|
+
<tr class="top-aligned-row context-row">
|
186
|
+
<td class="context-item-name">client_email</td>
|
187
|
+
<td class="context-item-value"> [RW] </td>
|
188
|
+
<td class="context-item-desc"></td>
|
189
|
+
</tr>
|
190
|
+
<tr class="top-aligned-row context-row">
|
191
|
+
<td class="context-item-name">client_ip</td>
|
192
|
+
<td class="context-item-value"> [RW] </td>
|
193
|
+
<td class="context-item-desc"></td>
|
194
|
+
</tr>
|
195
|
+
<tr class="top-aligned-row context-row">
|
196
|
+
<td class="context-item-name">ctr</td>
|
197
|
+
<td class="context-item-value"> [RW] </td>
|
198
|
+
<td class="context-item-desc"></td>
|
199
|
+
</tr>
|
200
|
+
<tr class="top-aligned-row context-row">
|
201
|
+
<td class="context-item-name">customer_ref</td>
|
202
|
+
<td class="context-item-value"> [RW] </td>
|
203
|
+
<td class="context-item-desc"></td>
|
204
|
+
</tr>
|
205
|
+
<tr class="top-aligned-row context-row">
|
206
|
+
<td class="context-item-name">cvd_presence_ind</td>
|
207
|
+
<td class="context-item-value"> [RW] </td>
|
208
|
+
<td class="context-item-desc"></td>
|
209
|
+
</tr>
|
147
210
|
<tr class="top-aligned-row context-row">
|
148
211
|
<td class="context-item-name">cvv2</td>
|
149
212
|
<td class="context-item-value"> [RW] </td>
|
150
213
|
<td class="context-item-desc"></td>
|
151
214
|
</tr>
|
215
|
+
<tr class="top-aligned-row context-row">
|
216
|
+
<td class="context-item-name">ecommerce_flag</td>
|
217
|
+
<td class="context-item-value"> [RW] </td>
|
218
|
+
<td class="context-item-desc"></td>
|
219
|
+
</tr>
|
152
220
|
<tr class="top-aligned-row context-row">
|
153
221
|
<td class="context-item-name">error_description</td>
|
154
222
|
<td class="context-item-value"> [RW] </td>
|
@@ -169,6 +237,16 @@ This class encapsulates all the data returned from the E-xact Web Service.
|
|
169
237
|
<td class="context-item-value"> [RW] </td>
|
170
238
|
<td class="context-item-desc"></td>
|
171
239
|
</tr>
|
240
|
+
<tr class="top-aligned-row context-row">
|
241
|
+
<td class="context-item-name">gateway_id</td>
|
242
|
+
<td class="context-item-value"> [RW] </td>
|
243
|
+
<td class="context-item-desc"></td>
|
244
|
+
</tr>
|
245
|
+
<tr class="top-aligned-row context-row">
|
246
|
+
<td class="context-item-name">language</td>
|
247
|
+
<td class="context-item-value"> [RW] </td>
|
248
|
+
<td class="context-item-desc"></td>
|
249
|
+
</tr>
|
172
250
|
<tr class="top-aligned-row context-row">
|
173
251
|
<td class="context-item-name">logon_message</td>
|
174
252
|
<td class="context-item-value"> [RW] </td>
|
@@ -209,16 +287,81 @@ This class encapsulates all the data returned from the E-xact Web Service.
|
|
209
287
|
<td class="context-item-value"> [RW] </td>
|
210
288
|
<td class="context-item-desc"></td>
|
211
289
|
</tr>
|
290
|
+
<tr class="top-aligned-row context-row">
|
291
|
+
<td class="context-item-name">pan</td>
|
292
|
+
<td class="context-item-value"> [RW] </td>
|
293
|
+
<td class="context-item-desc"></td>
|
294
|
+
</tr>
|
295
|
+
<tr class="top-aligned-row context-row">
|
296
|
+
<td class="context-item-name">password</td>
|
297
|
+
<td class="context-item-value"> [RW] </td>
|
298
|
+
<td class="context-item-desc"></td>
|
299
|
+
</tr>
|
300
|
+
<tr class="top-aligned-row context-row">
|
301
|
+
<td class="context-item-name">reference_3</td>
|
302
|
+
<td class="context-item-value"> [RW] </td>
|
303
|
+
<td class="context-item-desc"></td>
|
304
|
+
</tr>
|
305
|
+
<tr class="top-aligned-row context-row">
|
306
|
+
<td class="context-item-name">reference_no</td>
|
307
|
+
<td class="context-item-value"> [RW] </td>
|
308
|
+
<td class="context-item-desc"></td>
|
309
|
+
</tr>
|
212
310
|
<tr class="top-aligned-row context-row">
|
213
311
|
<td class="context-item-name">retrieval_ref_no</td>
|
214
312
|
<td class="context-item-value"> [RW] </td>
|
215
313
|
<td class="context-item-desc"></td>
|
216
314
|
</tr>
|
315
|
+
<tr class="top-aligned-row context-row">
|
316
|
+
<td class="context-item-name">secure_auth_required</td>
|
317
|
+
<td class="context-item-value"> [RW] </td>
|
318
|
+
<td class="context-item-desc"></td>
|
319
|
+
</tr>
|
320
|
+
<tr class="top-aligned-row context-row">
|
321
|
+
<td class="context-item-name">secure_auth_result</td>
|
322
|
+
<td class="context-item-value"> [RW] </td>
|
323
|
+
<td class="context-item-desc"></td>
|
324
|
+
</tr>
|
217
325
|
<tr class="top-aligned-row context-row">
|
218
326
|
<td class="context-item-name">sequence_no</td>
|
219
327
|
<td class="context-item-value"> [RW] </td>
|
220
328
|
<td class="context-item-desc"></td>
|
221
329
|
</tr>
|
330
|
+
<tr class="top-aligned-row context-row">
|
331
|
+
<td class="context-item-name">surcharge_amount</td>
|
332
|
+
<td class="context-item-value"> [RW] </td>
|
333
|
+
<td class="context-item-desc"></td>
|
334
|
+
</tr>
|
335
|
+
<tr class="top-aligned-row context-row">
|
336
|
+
<td class="context-item-name">tax1_amount</td>
|
337
|
+
<td class="context-item-value"> [RW] </td>
|
338
|
+
<td class="context-item-desc"></td>
|
339
|
+
</tr>
|
340
|
+
<tr class="top-aligned-row context-row">
|
341
|
+
<td class="context-item-name">tax1_number</td>
|
342
|
+
<td class="context-item-value"> [RW] </td>
|
343
|
+
<td class="context-item-desc"></td>
|
344
|
+
</tr>
|
345
|
+
<tr class="top-aligned-row context-row">
|
346
|
+
<td class="context-item-name">tax2_amount</td>
|
347
|
+
<td class="context-item-value"> [RW] </td>
|
348
|
+
<td class="context-item-desc"></td>
|
349
|
+
</tr>
|
350
|
+
<tr class="top-aligned-row context-row">
|
351
|
+
<td class="context-item-name">tax2_number</td>
|
352
|
+
<td class="context-item-value"> [RW] </td>
|
353
|
+
<td class="context-item-desc"></td>
|
354
|
+
</tr>
|
355
|
+
<tr class="top-aligned-row context-row">
|
356
|
+
<td class="context-item-name">track1</td>
|
357
|
+
<td class="context-item-value"> [RW] </td>
|
358
|
+
<td class="context-item-desc"></td>
|
359
|
+
</tr>
|
360
|
+
<tr class="top-aligned-row context-row">
|
361
|
+
<td class="context-item-name">track2</td>
|
362
|
+
<td class="context-item-value"> [RW] </td>
|
363
|
+
<td class="context-item-desc"></td>
|
364
|
+
</tr>
|
222
365
|
<tr class="top-aligned-row context-row">
|
223
366
|
<td class="context-item-name">transaction_approved</td>
|
224
367
|
<td class="context-item-value"> [RW] </td>
|
@@ -229,6 +372,31 @@ This class encapsulates all the data returned from the E-xact Web Service.
|
|
229
372
|
<td class="context-item-value"> [RW] </td>
|
230
373
|
<td class="context-item-desc"></td>
|
231
374
|
</tr>
|
375
|
+
<tr class="top-aligned-row context-row">
|
376
|
+
<td class="context-item-name">transaction_tag</td>
|
377
|
+
<td class="context-item-value"> [RW] </td>
|
378
|
+
<td class="context-item-desc"></td>
|
379
|
+
</tr>
|
380
|
+
<tr class="top-aligned-row context-row">
|
381
|
+
<td class="context-item-name">transaction_type</td>
|
382
|
+
<td class="context-item-value"> [RW] </td>
|
383
|
+
<td class="context-item-desc"></td>
|
384
|
+
</tr>
|
385
|
+
<tr class="top-aligned-row context-row">
|
386
|
+
<td class="context-item-name">user_name</td>
|
387
|
+
<td class="context-item-value"> [RW] </td>
|
388
|
+
<td class="context-item-desc"></td>
|
389
|
+
</tr>
|
390
|
+
<tr class="top-aligned-row context-row">
|
391
|
+
<td class="context-item-name">xid</td>
|
392
|
+
<td class="context-item-value"> [RW] </td>
|
393
|
+
<td class="context-item-desc"></td>
|
394
|
+
</tr>
|
395
|
+
<tr class="top-aligned-row context-row">
|
396
|
+
<td class="context-item-name">zip_code</td>
|
397
|
+
<td class="context-item-value"> [RW] </td>
|
398
|
+
<td class="context-item-desc"></td>
|
399
|
+
</tr>
|
232
400
|
</table>
|
233
401
|
</div>
|
234
402
|
</div>
|
@@ -239,11 +407,11 @@ This class encapsulates all the data returned from the E-xact Web Service.
|
|
239
407
|
<div id="methods">
|
240
408
|
<h3 class="section-bar">Public Instance methods</h3>
|
241
409
|
|
242
|
-
<div id="method-
|
243
|
-
<a name="
|
410
|
+
<div id="method-M000013" class="method-detail">
|
411
|
+
<a name="M000013"></a>
|
244
412
|
|
245
413
|
<div class="method-heading">
|
246
|
-
<a href="#
|
414
|
+
<a href="#M000013" class="method-signature">
|
247
415
|
<span class="method-name">approved?</span><span class="method-args">()</span>
|
248
416
|
</a>
|
249
417
|
</div>
|
@@ -253,13 +421,13 @@ This class encapsulates all the data returned from the E-xact Web Service.
|
|
253
421
|
Indicates whether or not the transaction was approved
|
254
422
|
</p>
|
255
423
|
<p><a class="source-toggle" href="#"
|
256
|
-
onclick="toggleCode('
|
257
|
-
<div class="method-source-code" id="
|
424
|
+
onclick="toggleCode('M000013-source');return false;">[Source]</a></p>
|
425
|
+
<div class="method-source-code" id="M000013-source">
|
258
426
|
<pre>
|
259
|
-
<span class="ruby-comment cmt"># File lib/ews/transaction/response.rb, line
|
260
|
-
|
261
|
-
|
262
|
-
|
427
|
+
<span class="ruby-comment cmt"># File lib/ews/transaction/response.rb, line 17</span>
|
428
|
+
17: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">approved?</span>
|
429
|
+
18: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">transaction_approved</span> <span class="ruby-operator">==</span> <span class="ruby-value">1</span>
|
430
|
+
19: <span class="ruby-keyword kw">end</span>
|
263
431
|
</pre>
|
264
432
|
</div>
|
265
433
|
</div>
|