LitleOnline 10.1.1 → 11.0.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.
Files changed (114) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG +13 -6
  3. data/DESCRIPTION +2 -2
  4. data/LICENSE +1 -1
  5. data/README.md +8 -8
  6. data/Rakefile +6 -7
  7. data/SETUP.md +4 -4
  8. data/bin/Setup.rb +4 -4
  9. data/bin/sample_batch_driver.rb +1 -1
  10. data/bin/sample_driver.rb +1 -1
  11. data/lib/Communications.rb +5 -5
  12. data/lib/Configuration.rb +1 -1
  13. data/lib/LitleBatchRequest.rb +39 -1
  14. data/lib/LitleListeners.rb +2 -2
  15. data/lib/LitleOnline.rb +1 -1
  16. data/lib/LitleOnlineRequest.rb +22 -3
  17. data/lib/LitleRequest.rb +4 -4
  18. data/lib/LitleTransaction.rb +156 -47
  19. data/lib/LitleXmlMapper.rb +8 -1
  20. data/lib/XMLFields.rb +252 -51
  21. data/temp.xml +21 -0
  22. data/test/certification/certTest1_base.rb +52 -52
  23. data/test/certification/certTest2_authenhanced.rb +20 -20
  24. data/test/certification/certTest3_authreversal.rb +16 -16
  25. data/test/certification/certTest4_echeck.rb +18 -12
  26. data/test/certification/certTest5_token.rb +3 -3
  27. data/test/certification/certTest_batchAll.rb +9 -1
  28. data/test/certification/ts_all.rb +1 -1
  29. data/test/functional/test_activate.rb +34 -5
  30. data/test/functional/test_activateReversal.rb +23 -7
  31. data/test/functional/test_auth.rb +126 -17
  32. data/test/functional/test_authReversal.rb +5 -3
  33. data/test/functional/test_balanceInquiry.rb +30 -5
  34. data/test/functional/test_batch.rb +1 -1
  35. data/test/functional/test_batchStream.rb +1 -1
  36. data/test/functional/test_cancelSubscription.rb +5 -3
  37. data/test/functional/test_capture.rb +37 -2
  38. data/test/functional/test_captureGivenAuth.rb +54 -3
  39. data/test/functional/test_configuration.rb +1 -1
  40. data/test/functional/test_createPlan.rb +5 -3
  41. data/test/functional/test_credit.rb +17 -1
  42. data/test/functional/test_deactivate.rb +28 -5
  43. data/test/functional/test_deactivateReversal.rb +21 -7
  44. data/test/functional/test_depositReversal.rb +30 -18
  45. data/test/functional/test_echeckCredit.rb +29 -5
  46. data/test/functional/test_echeckRedeposit.rb +28 -3
  47. data/test/functional/test_echeckSale.rb +43 -7
  48. data/test/functional/test_echeckVerification.rb +34 -8
  49. data/test/functional/test_echeckVoid.rb +2 -2
  50. data/test/functional/test_forceCapture.rb +36 -8
  51. data/test/functional/test_fraudCheck.rb +12 -14
  52. data/test/functional/test_giftCardAuthReversal.rb +72 -0
  53. data/test/functional/test_giftCardCapture.rb +72 -0
  54. data/test/functional/test_giftCardCredit.rb +69 -0
  55. data/test/functional/test_litle_requests.rb +1 -1
  56. data/test/functional/test_load.rb +29 -5
  57. data/test/functional/test_loadReversal.rb +21 -7
  58. data/test/functional/test_override.rb +4 -3
  59. data/test/functional/test_queryTransaction.rb +24 -18
  60. data/test/functional/test_refundReversal.rb +21 -7
  61. data/test/functional/test_sale.rb +86 -9
  62. data/test/functional/test_token.rb +26 -11
  63. data/test/functional/test_unload.rb +29 -5
  64. data/test/functional/test_unloadReversal.rb +21 -7
  65. data/test/functional/test_updateCardValidationNumOnToken.rb +1 -1
  66. data/test/functional/test_updatePlan.rb +5 -3
  67. data/test/functional/test_updateSubscription.rb +5 -3
  68. data/test/functional/test_wallet.rb +1 -1
  69. data/test/functional/test_xmlfields.rb +9 -5
  70. data/test/functional/ts_all.rb +1 -1
  71. data/test/unit/test_LitleAUBatch.rb +1 -1
  72. data/test/unit/test_LitleBatchRequest.rb +1 -1
  73. data/test/unit/test_LitleOnlineRequest.rb +15 -57
  74. data/test/unit/test_LitleRequest.rb +1 -1
  75. data/test/unit/test_LitleTransaction.rb +3 -3
  76. data/test/unit/test_LitleXmlMapper.rb +139 -0
  77. data/test/unit/test_activate.rb +5 -5
  78. data/test/unit/test_activateReversal.rb +16 -4
  79. data/test/unit/test_auth.rb +50 -9
  80. data/test/unit/test_authReversal.rb +1 -1
  81. data/test/unit/test_balanceInquiry.rb +3 -3
  82. data/test/unit/test_cancelSubscription.rb +1 -1
  83. data/test/unit/test_capture.rb +27 -1
  84. data/test/unit/test_captureGivenAuth.rb +47 -1
  85. data/test/unit/test_createPlan.rb +1 -1
  86. data/test/unit/test_credit.rb +16 -3
  87. data/test/unit/test_deactivate.rb +20 -1
  88. data/test/unit/test_deactivateReversal.rb +16 -4
  89. data/test/unit/test_depositReversal.rb +18 -6
  90. data/test/unit/test_echeckCredit.rb +20 -1
  91. data/test/unit/test_echeckRedeposit.rb +16 -1
  92. data/test/unit/test_echeckSale.rb +20 -1
  93. data/test/unit/test_echeckVerification.rb +7 -4
  94. data/test/unit/test_echeckVoid.rb +1 -1
  95. data/test/unit/test_forceCapture.rb +19 -1
  96. data/test/unit/test_fraudCheck.rb +1 -1
  97. data/test/unit/test_giftCardAuthReversal.rb +58 -0
  98. data/test/unit/test_giftCardCapture.rb +57 -0
  99. data/test/unit/test_giftCardCredit.rb +57 -0
  100. data/test/unit/test_load.rb +3 -3
  101. data/test/unit/test_loadReversal.rb +16 -4
  102. data/test/unit/test_queryTransaction.rb +5 -22
  103. data/test/unit/test_refundReversal.rb +16 -4
  104. data/test/unit/test_sale.rb +90 -5
  105. data/test/unit/test_token.rb +35 -24
  106. data/test/unit/test_unload.rb +3 -3
  107. data/test/unit/test_unloadReversal.rb +16 -4
  108. data/test/unit/test_updateCardValidationNumOnToken.rb +1 -1
  109. data/test/unit/test_updatePlan.rb +1 -1
  110. data/test/unit/test_updateSubscription.rb +1 -1
  111. data/test/unit/test_wallet.rb +1 -1
  112. data/test/unit/test_xmlfields.rb +1 -1
  113. data/test/unit/ts_unit.rb +1 -1
  114. metadata +18 -10
@@ -0,0 +1,21 @@
1
+ <litleOnlineRequest merchantId="101" merchantSdk="Ruby;11.0" version="11.0" xmlns="http://www.litle.com/schema">
2
+ <authentication>
3
+ <user>demo</user>
4
+ <password>demo</password>
5
+ </authentication>
6
+ <depositReversal id="test" reportGroup="Planets">
7
+ <litleTxnId>5000</litleTxnId>
8
+ <card>
9
+ <type>GC</type>
10
+ <number>400000000000001</number>
11
+ <expDate>0150</expDate>
12
+ <cardValidationNum>411</cardValidationNum>
13
+ <pin>1234</pin>
14
+ </card>
15
+ <originalRefCode>101</originalRefCode>
16
+ <originalAmount>34561</originalAmount>
17
+ <originalTxnTime>2017-01-24T09:00:00</originalTxnTime>
18
+ <originalSystemTraceId>33</originalSystemTraceId>
19
+ <originalSequenceNumber>111111</originalSequenceNumber>
20
+ </depositReversal>
21
+ </litleOnlineRequest>
@@ -39,22 +39,22 @@ module LitleOnline
39
39
  capture_hash = {'litleTxnId' => auth_response.authorizationResponse.litleTxnId}
40
40
  hash1a = capture_hash.merge(@@merchant_hash)
41
41
  capture_response = LitleOnlineRequest.new.capture(hash1a)
42
- assert_equal('001', capture_response.captureResponse.response)
43
- assert_equal('Transaction Received', capture_response.captureResponse.message)
42
+ assert_equal('000', capture_response.captureResponse.response)
43
+
44
44
 
45
45
  #test 1B
46
46
  credit_hash = {'litleTxnId' => capture_response.captureResponse.litleTxnId}
47
47
  hash1b = credit_hash.merge(@@merchant_hash)
48
48
  credit_response = LitleOnlineRequest.new.credit(hash1b)
49
- assert_equal('001', credit_response.creditResponse.response)
50
- assert_equal('Transaction Received', credit_response.creditResponse.message)
49
+ assert_equal('000', credit_response.creditResponse.response)
50
+
51
51
 
52
52
  #test1C
53
53
  void_hash = {'litleTxnId' => credit_response.creditResponse.litleTxnId}
54
54
  hash1c = void_hash.merge(@@merchant_hash)
55
55
  void_response = LitleOnlineRequest.new.void(hash1c)
56
- assert_equal('001', void_response.voidResponse.response)
57
- assert_equal('Transaction Received', void_response.voidResponse.message)
56
+ assert_equal('000', void_response.voidResponse.response)
57
+
58
58
  end
59
59
 
60
60
  def test_1_AVS
@@ -114,15 +114,15 @@ module LitleOnline
114
114
  credit_hash = {'litleTxnId' => sale_response.saleResponse.litleTxnId}
115
115
  hash1b = credit_hash.merge(@@merchant_hash)
116
116
  credit_response = LitleOnlineRequest.new.credit(hash1b)
117
- assert_equal('001', credit_response.creditResponse.response)
118
- assert_equal('Transaction Received', credit_response.creditResponse.message)
117
+ assert_equal('000', credit_response.creditResponse.response)
118
+
119
119
 
120
120
  #test1C
121
121
  void_hash = {'litleTxnId' => credit_response.creditResponse.litleTxnId}
122
122
  hash1c = void_hash.merge(@@merchant_hash)
123
123
  void_response = LitleOnlineRequest.new.void(hash1c)
124
- assert_equal('001', void_response.voidResponse.response)
125
- assert_equal('Transaction Received', void_response.voidResponse.message)
124
+ assert_equal('000', void_response.voidResponse.response)
125
+
126
126
  end
127
127
 
128
128
  def test_2_auth
@@ -158,22 +158,22 @@ module LitleOnline
158
158
  capture_hash = {'litleTxnId' => auth_response.authorizationResponse.litleTxnId}
159
159
  hash2a = capture_hash.merge(@@merchant_hash)
160
160
  capture_response = LitleOnlineRequest.new.capture(hash2a)
161
- assert_equal('001', capture_response.captureResponse.response)
162
- assert_equal('Transaction Received', capture_response.captureResponse.message)
161
+ assert_equal('000', capture_response.captureResponse.response)
162
+
163
163
 
164
164
  #test 2B
165
165
  credit_hash = {'litleTxnId' => capture_response.captureResponse.litleTxnId}
166
166
  hash2b = credit_hash.merge(@@merchant_hash)
167
167
  credit_response = LitleOnlineRequest.new.credit(hash2b)
168
- assert_equal('001', credit_response.creditResponse.response)
169
- assert_equal('Transaction Received', credit_response.creditResponse.message)
168
+ assert_equal('000', credit_response.creditResponse.response)
169
+
170
170
 
171
171
  #test 2C
172
172
  void_hash = {'litleTxnId' => credit_response.creditResponse.litleTxnId}
173
173
  hash2c = void_hash.merge(@@merchant_hash)
174
174
  void_response = LitleOnlineRequest.new.void(hash2c)
175
- assert_equal('001', void_response.voidResponse.response)
176
- assert_equal('Transaction Received', void_response.voidResponse.message)
175
+ assert_equal('000', void_response.voidResponse.response)
176
+
177
177
  end
178
178
 
179
179
  def test_2_avs
@@ -239,15 +239,15 @@ module LitleOnline
239
239
  credit_hash = {'litleTxnId' => sale_response.saleResponse.litleTxnId}
240
240
  hash2b = credit_hash.merge(@@merchant_hash)
241
241
  credit_response = LitleOnlineRequest.new.credit(hash2b)
242
- assert_equal('001', credit_response.creditResponse.response)
243
- assert_equal('Transaction Received', credit_response.creditResponse.message)
242
+ assert_equal('000', credit_response.creditResponse.response)
243
+
244
244
 
245
245
  #test 2C
246
246
  void_hash = {'litleTxnId' => credit_response.creditResponse.litleTxnId}
247
247
  hash2c = void_hash.merge(@@merchant_hash)
248
248
  void_response = LitleOnlineRequest.new.void(hash2c)
249
- assert_equal('001', void_response.voidResponse.response)
250
- assert_equal('Transaction Received', void_response.voidResponse.message)
249
+ assert_equal('000', void_response.voidResponse.response)
250
+
251
251
  end
252
252
 
253
253
  def test_3_auth
@@ -280,22 +280,22 @@ module LitleOnline
280
280
  capture_hash = {'litleTxnId' => auth_response.authorizationResponse.litleTxnId}
281
281
  hash2a = capture_hash.merge(@@merchant_hash)
282
282
  capture_response = LitleOnlineRequest.new.capture(hash2a)
283
- assert_equal('001', capture_response.captureResponse.response)
284
- assert_equal('Transaction Received', capture_response.captureResponse.message)
283
+ assert_equal('000', capture_response.captureResponse.response)
284
+
285
285
 
286
286
  #test 3B
287
287
  credit_hash = {'litleTxnId' => capture_response.captureResponse.litleTxnId}
288
288
  hash2b = credit_hash.merge(@@merchant_hash)
289
289
  credit_response = LitleOnlineRequest.new.credit(hash2b)
290
- assert_equal('001', credit_response.creditResponse.response)
291
- assert_equal('Transaction Received', credit_response.creditResponse.message)
290
+ assert_equal('000', credit_response.creditResponse.response)
291
+
292
292
 
293
293
  #test 3C
294
294
  void_hash = {'litleTxnId' => credit_response.creditResponse.litleTxnId}
295
295
  hash2c = void_hash.merge(@@merchant_hash)
296
296
  void_response = LitleOnlineRequest.new.void(hash2c)
297
- assert_equal('001', void_response.voidResponse.response)
298
- assert_equal('Transaction Received', void_response.voidResponse.message)
297
+ assert_equal('000', void_response.voidResponse.response)
298
+
299
299
  end
300
300
 
301
301
  def test_3_avs
@@ -355,15 +355,15 @@ module LitleOnline
355
355
  credit_hash = {'litleTxnId' => sale_response.saleResponse.litleTxnId}
356
356
  hash2b = credit_hash.merge(@@merchant_hash)
357
357
  credit_response = LitleOnlineRequest.new.credit(hash2b)
358
- assert_equal('001', credit_response.creditResponse.response)
359
- assert_equal('Transaction Received', credit_response.creditResponse.message)
358
+ assert_equal('000', credit_response.creditResponse.response)
359
+
360
360
 
361
361
  #test 3C
362
362
  void_hash = {'litleTxnId' => credit_response.creditResponse.litleTxnId}
363
363
  hash2c = void_hash.merge(@@merchant_hash)
364
364
  void_response = LitleOnlineRequest.new.void(hash2c)
365
- assert_equal('001', void_response.voidResponse.response)
366
- assert_equal('Transaction Received', void_response.voidResponse.message)
365
+ assert_equal('000', void_response.voidResponse.response)
366
+
367
367
  end
368
368
 
369
369
  def test_4_auth
@@ -395,21 +395,21 @@ module LitleOnline
395
395
  capture_hash = {'litleTxnId' => auth_response.authorizationResponse.litleTxnId}
396
396
  hash2a = capture_hash.merge(@@merchant_hash)
397
397
  capture_response = LitleOnlineRequest.new.capture(hash2a)
398
- assert_equal('Transaction Received', capture_response.captureResponse.message)
398
+ assert_equal('Approved', capture_response.captureResponse.message)
399
399
 
400
400
  #test 4B
401
401
  credit_hash = {'litleTxnId' => capture_response.captureResponse.litleTxnId}
402
402
  hash2b = credit_hash.merge(@@merchant_hash)
403
403
  credit_response = LitleOnlineRequest.new.credit(hash2b)
404
- assert_equal('001', credit_response.creditResponse.response)
405
- assert_equal('Transaction Received', credit_response.creditResponse.message)
404
+ assert_equal('000', credit_response.creditResponse.response)
405
+
406
406
 
407
407
  #test 4C
408
408
  void_hash = {'litleTxnId' => credit_response.creditResponse.litleTxnId}
409
409
  hash2c = void_hash.merge(@@merchant_hash)
410
410
  void_response = LitleOnlineRequest.new.void(hash2c)
411
- assert_equal('001', void_response.voidResponse.response)
412
- assert_equal('Transaction Received', void_response.voidResponse.message)
411
+ assert_equal('000', void_response.voidResponse.response)
412
+
413
413
  end
414
414
 
415
415
  def test_4_avs
@@ -467,15 +467,15 @@ module LitleOnline
467
467
  credit_hash = {'litleTxnId' => sale_response.saleResponse.litleTxnId}
468
468
  hash2b = credit_hash.merge(@@merchant_hash)
469
469
  credit_response = LitleOnlineRequest.new.credit(hash2b)
470
- assert_equal('001', credit_response.creditResponse.response)
471
- assert_equal('Transaction Received', credit_response.creditResponse.message)
470
+ assert_equal('000', credit_response.creditResponse.response)
471
+
472
472
 
473
473
  #test 4C
474
474
  void_hash = {'litleTxnId' => credit_response.creditResponse.litleTxnId}
475
475
  hash2c = void_hash.merge(@@merchant_hash)
476
476
  void_response = LitleOnlineRequest.new.void(hash2c)
477
- assert_equal('001', void_response.voidResponse.response)
478
- assert_equal('Transaction Received', void_response.voidResponse.message)
477
+ assert_equal('000', void_response.voidResponse.response)
478
+
479
479
  end
480
480
 
481
481
  def test_5_auth
@@ -502,22 +502,22 @@ module LitleOnline
502
502
  capture_hash = {'litleTxnId' => auth_response.authorizationResponse.litleTxnId}
503
503
  hash2a = capture_hash.merge(@@merchant_hash)
504
504
  capture_response = LitleOnlineRequest.new.capture(hash2a)
505
- assert_equal('001', capture_response.captureResponse.response)
506
- assert_equal('Transaction Received', capture_response.captureResponse.message)
505
+ assert_equal('000', capture_response.captureResponse.response)
506
+
507
507
 
508
508
  #test 5B
509
509
  credit_hash = {'litleTxnId' => capture_response.captureResponse.litleTxnId}
510
510
  hash2b = credit_hash.merge(@@merchant_hash)
511
511
  credit_response = LitleOnlineRequest.new.credit(hash2b)
512
- assert_equal('001', credit_response.creditResponse.response)
513
- assert_equal('Transaction Received', credit_response.creditResponse.message)
512
+ assert_equal('000', credit_response.creditResponse.response)
513
+
514
514
 
515
515
  #test 5C
516
516
  void_hash = {'litleTxnId' => credit_response.creditResponse.litleTxnId}
517
517
  hash2c = void_hash.merge(@@merchant_hash)
518
518
  void_response = LitleOnlineRequest.new.void(hash2c)
519
- assert_equal('001', void_response.voidResponse.response)
520
- assert_equal('Transaction Received', void_response.voidResponse.message)
519
+ assert_equal('000', void_response.voidResponse.response)
520
+
521
521
  end
522
522
 
523
523
  def test_5_avs
@@ -565,15 +565,15 @@ module LitleOnline
565
565
  credit_hash = {'litleTxnId' => sale_response.saleResponse.litleTxnId}
566
566
  hash2b = credit_hash.merge(@@merchant_hash)
567
567
  credit_response = LitleOnlineRequest.new.credit(hash2b)
568
- assert_equal('001', credit_response.creditResponse.response)
569
- assert_equal('Transaction Received', credit_response.creditResponse.message)
568
+ assert_equal('000', credit_response.creditResponse.response)
569
+
570
570
 
571
571
  #test 5C
572
572
  void_hash = {'litleTxnId' => credit_response.creditResponse.litleTxnId}
573
573
  hash2c = void_hash.merge(@@merchant_hash)
574
574
  void_response = LitleOnlineRequest.new.void(hash2c)
575
- assert_equal('001', void_response.voidResponse.response)
576
- assert_equal('Transaction Received', void_response.voidResponse.message)
575
+ assert_equal('000', void_response.voidResponse.response)
576
+
577
577
  end
578
578
 
579
579
  def test_6_auth
@@ -628,11 +628,11 @@ module LitleOnline
628
628
  assert_equal('P', sale_response.saleResponse.fraudResult.cardValidationResult)
629
629
 
630
630
  #test 6A
631
- void_hash = {'litleTxnId' => sale_response.saleResponse.litleTxnId }
631
+ void_hash = {'litleTxnId' => '123456789000' }
632
632
  hash6A = void_hash.merge(@@merchant_hash)
633
633
  void_response = LitleOnlineRequest.new.void(hash6A)
634
- assert_equal('001', void_response.voidResponse.response)
635
- assert_equal('Transaction Received', void_response.voidResponse.message)
634
+ assert_equal('000', void_response.voidResponse.response)
635
+
636
636
  end
637
637
 
638
638
  def test_7_auth
@@ -267,7 +267,7 @@ module LitleOnline
267
267
  hash = customer_hash.merge(@@merchant_hash)
268
268
  auth_response = LitleOnlineRequest.new.authorization(hash)
269
269
  assert_equal('341', auth_response.authorizationResponse.response)
270
- assert_equal('Invalid healthcare amounts', auth_response.authorizationResponse.message)
270
+ # assert_equal('Invalid healthcare amounts', auth_response.authorizationResponse.message)
271
271
  end
272
272
 
273
273
  def test_27
@@ -291,7 +291,7 @@ module LitleOnline
291
291
  hash = customer_hash.merge(@@merchant_hash)
292
292
  auth_response = LitleOnlineRequest.new.authorization(hash)
293
293
  assert_equal('341', auth_response.authorizationResponse.response)
294
- assert_equal('Invalid healthcare amounts', auth_response.authorizationResponse.message)
294
+ # assert_equal('Invalid healthcare amounts', auth_response.authorizationResponse.message)
295
295
  end
296
296
 
297
297
  def test_28
@@ -342,7 +342,7 @@ module LitleOnline
342
342
  hash = customer_hash.merge(@@merchant_hash)
343
343
  auth_response = LitleOnlineRequest.new.authorization(hash)
344
344
  assert_equal('341', auth_response.authorizationResponse.response)
345
- assert_equal('Invalid healthcare amounts', auth_response.authorizationResponse.message)
345
+ # assert_equal('Invalid healthcare amounts', auth_response.authorizationResponse.message)
346
346
  end
347
347
 
348
348
  def test_30
@@ -369,7 +369,7 @@ module LitleOnline
369
369
  hash = customer_hash.merge(@@merchant_hash)
370
370
  auth_response = LitleOnlineRequest.new.authorization(hash)
371
371
  assert_equal('341', auth_response.authorizationResponse.response)
372
- assert_equal('Invalid healthcare amounts', auth_response.authorizationResponse.message)
372
+ # assert_equal('Invalid healthcare amounts', auth_response.authorizationResponse.message)
373
373
  end
374
374
 
375
375
  def test_31
@@ -427,15 +427,15 @@ module LitleOnline
427
427
  capture_hash = {'litleTxnId' => authorization_response.authorizationResponse.litleTxnId, 'amount' => '5005'}
428
428
  hash32a = capture_hash.merge(@@merchant_hash)
429
429
  capture_response = LitleOnlineRequest.new.capture(hash32a)
430
- assert_equal('001', capture_response.captureResponse.response)
431
- assert_equal('Transaction Received', capture_response.captureResponse.message)
430
+ assert_equal('000', capture_response.captureResponse.response)
431
+
432
432
 
433
433
  #test 32B
434
- authReversal_hash = {'litleTxnId' => authorization_response.authorizationResponse.litleTxnId}
434
+ authReversal_hash = {'litleTxnId' => '123456789000'}
435
435
  hash1b = authReversal_hash.merge(@@merchant_hash)
436
436
  authReversal_response = LitleOnlineRequest.new.auth_reversal(hash1b)
437
- assert_equal('001', authReversal_response.authReversalResponse.response)
438
- assert_equal('Transaction Received', authReversal_response.authReversalResponse.message)
437
+ assert_equal('000', authReversal_response.authReversalResponse.response)
438
+
439
439
  end
440
440
 
441
441
  def test_33
@@ -470,8 +470,8 @@ module LitleOnline
470
470
  authReversal_hash = {'litleTxnId' => authorization_response.authorizationResponse.litleTxnId}
471
471
  hash1b = authReversal_hash.merge(@@merchant_hash)
472
472
  authReversal_response = LitleOnlineRequest.new.auth_reversal(hash1b)
473
- assert_equal('001', authReversal_response.authReversalResponse.response)
474
- assert_equal('Transaction Received', authReversal_response.authReversalResponse.message)
473
+ assert_equal('000', authReversal_response.authReversalResponse.response)
474
+
475
475
  end
476
476
 
477
477
  def test_34
@@ -504,8 +504,8 @@ module LitleOnline
504
504
  authReversal_hash = {'litleTxnId' => authorization_response.authorizationResponse.litleTxnId}
505
505
  hash1b = authReversal_hash.merge(@@merchant_hash)
506
506
  authReversal_response = LitleOnlineRequest.new.auth_reversal(hash1b)
507
- assert_equal('001', authReversal_response.authReversalResponse.response)
508
- assert_equal('Transaction Received', authReversal_response.authReversalResponse.message)
507
+ assert_equal('000', authReversal_response.authReversalResponse.response)
508
+
509
509
  end
510
510
 
511
511
  def test_35
@@ -536,15 +536,15 @@ module LitleOnline
536
536
  capture_hash = {'litleTxnId' => authorization_response.authorizationResponse.litleTxnId, 'amount' => '20020'}
537
537
  hash32a = capture_hash.merge(@@merchant_hash)
538
538
  capture_response = LitleOnlineRequest.new.capture(hash32a)
539
- assert_equal('001', capture_response.captureResponse.response)
540
- assert_equal('Transaction Received', capture_response.captureResponse.message)
539
+ assert_equal('000', capture_response.captureResponse.response)
540
+
541
541
 
542
542
  #test 35B
543
543
  authReversal_hash = {'litleTxnId' => authorization_response.authorizationResponse.litleTxnId, 'amount' => '20020'}
544
544
  hash1b = authReversal_hash.merge(@@merchant_hash)
545
545
  authReversal_response = LitleOnlineRequest.new.auth_reversal(hash1b)
546
- assert_equal('001', authReversal_response.authReversalResponse.response)
547
- assert_equal('Transaction Received', authReversal_response.authReversalResponse.message)
546
+ assert_equal('000', authReversal_response.authReversalResponse.response)
547
+
548
548
  end
549
549
 
550
550
  def test_36
@@ -563,11 +563,11 @@ module LitleOnline
563
563
  assert_equal('Approved', authorization_response.authorizationResponse.message)
564
564
 
565
565
  #test 36A
566
- authReversal_hash = {'litleTxnId' => authorization_response.authorizationResponse.litleTxnId, 'amount' => '10000'}
566
+ authReversal_hash = {'litleTxnId' => '123456789000', 'amount' => '10000'}
567
567
  hash1b = authReversal_hash.merge(@@merchant_hash)
568
568
  authReversal_response = LitleOnlineRequest.new.auth_reversal(hash1b)
569
- assert_equal('001', authReversal_response.authReversalResponse.response)
570
- assert_equal('Transaction Received', authReversal_response.authReversalResponse.message)
569
+ assert_equal('000', authReversal_response.authReversalResponse.response)
570
+
571
571
  end
572
572
 
573
573
  end
@@ -39,15 +39,15 @@ module LitleOnline
39
39
  capture_hash = {'litleTxnId' => auth_response.authorizationResponse.litleTxnId, 'amount' => '5005'}
40
40
  hash1a = capture_hash.merge(@@merchant_hash)
41
41
  capture_response = LitleOnlineRequest.new.capture(hash1a)
42
- assert_equal('001', capture_response.captureResponse.response)
43
- assert_equal('Transaction Received', capture_response.captureResponse.message)
42
+ assert_equal('000', capture_response.captureResponse.response)
43
+
44
44
 
45
45
  #test 32B
46
- auth_r_hash = {'litleTxnId' => auth_response.authorizationResponse.litleTxnId }
46
+ auth_r_hash = {'litleTxnId' => '123456789000' }
47
47
  hash1b = auth_r_hash.merge(@@merchant_hash)
48
48
  auth_r_response = LitleOnlineRequest.new.auth_reversal(hash1b)
49
- assert_equal('001', auth_r_response.authReversalResponse.response)
50
- assert_equal('Transaction Received', auth_r_response.authReversalResponse.message)
49
+ assert_equal('000', auth_r_response.authReversalResponse.response)
50
+
51
51
  end
52
52
 
53
53
  def test_33
@@ -82,8 +82,8 @@ module LitleOnline
82
82
  auth_reversal_hash = {'litleTxnId' => auth_response.authorizationResponse.litleTxnId}
83
83
  hash1a = auth_reversal_hash.merge(@@merchant_hash)
84
84
  auth_reversal_response = LitleOnlineRequest.new.auth_reversal(hash1a)
85
- assert_equal('001', auth_reversal_response.authReversalResponse.response)
86
- assert_equal('Transaction Received', auth_reversal_response.authReversalResponse.message)
85
+ assert_equal('000', auth_reversal_response.authReversalResponse.response)
86
+
87
87
  end
88
88
 
89
89
  def test_34
@@ -116,8 +116,8 @@ module LitleOnline
116
116
  auth_reversal_hash = {'litleTxnId' => auth_response.authorizationResponse.litleTxnId}
117
117
  hash1a = auth_reversal_hash.merge(@@merchant_hash)
118
118
  auth_reversal_response = LitleOnlineRequest.new.auth_reversal(hash1a)
119
- assert_equal('001', auth_reversal_response.authReversalResponse.response)
120
- assert_equal('Transaction Received', auth_reversal_response.authReversalResponse.message)
119
+ assert_equal('000', auth_reversal_response.authReversalResponse.response)
120
+
121
121
  end
122
122
 
123
123
  def test_35
@@ -148,15 +148,15 @@ module LitleOnline
148
148
  capture_hash = {'litleTxnId' => auth_response.authorizationResponse.litleTxnId, 'amount' => '20020'}
149
149
  hash1a = capture_hash.merge(@@merchant_hash)
150
150
  capture_response = LitleOnlineRequest.new.capture(hash1a)
151
- assert_equal('001', capture_response.captureResponse.response)
152
- assert_equal('Transaction Received', capture_response.captureResponse.message)
151
+ assert_equal('000', capture_response.captureResponse.response)
152
+
153
153
 
154
154
  # #test 35B
155
155
  auth_reversal_hash = {'litleTxnId' => auth_response.authorizationResponse.litleTxnId, 'amount' => '20020'}
156
156
  hash2a = auth_reversal_hash.merge(@@merchant_hash)
157
157
  auth_reversal_response = LitleOnlineRequest.new.auth_reversal(hash2a)
158
- assert_equal('001', auth_reversal_response.authReversalResponse.response)
159
- assert_equal('Transaction Received', auth_reversal_response.authReversalResponse.message)
158
+ assert_equal('000', auth_reversal_response.authReversalResponse.response)
159
+
160
160
  end
161
161
 
162
162
  def test_36
@@ -175,11 +175,11 @@ module LitleOnline
175
175
  assert_equal('Approved', auth_response.authorizationResponse.message)
176
176
 
177
177
  #test 36A
178
- auth_reversal_hash = {'litleTxnId' => auth_response.authorizationResponse.litleTxnId, 'amount' => '10000'}
178
+ auth_reversal_hash = {'litleTxnId' => '123456789000', 'amount' => '10000'}
179
179
  hash1a = auth_reversal_hash.merge(@@merchant_hash)
180
180
  auth_reversal_response = LitleOnlineRequest.new.auth_reversal(hash1a)
181
- assert_equal('001', auth_reversal_response.authReversalResponse.response)
182
- assert_equal('Transaction Received', auth_reversal_response.authReversalResponse.message)
181
+ assert_equal('000', auth_reversal_response.authReversalResponse.response)
182
+
183
183
  end
184
184
 
185
185
  end