fat_zebra 3.1.0 → 3.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (148) hide show
  1. checksums.yaml +5 -5
  2. data/.travis.yml +1 -1
  3. data/lib/fat_zebra.rb +1 -0
  4. data/lib/fat_zebra/authorise.rb +49 -0
  5. data/lib/fat_zebra/version.rb +1 -1
  6. data/spec/cassettes/FatZebra_Authorise/_authorise/with_challenge_response/1_2_3_1.yml +48 -0
  7. data/spec/cassettes/FatZebra_Authorise/_authorise/with_challenge_response/1_2_3_2.yml +48 -0
  8. data/spec/cassettes/FatZebra_Authorise/_authorise/with_frictionless_response/1_2_2_1.yml +48 -0
  9. data/spec/cassettes/FatZebra_Authorise/_authorise/with_frictionless_response/1_2_2_2.yml +48 -0
  10. data/spec/cassettes/FatZebra_Authorise/_authorise/with_invalid_input/1_2_1_1.yml +50 -0
  11. data/spec/cassettes/FatZebra_Authorise/_jwt_token/returns_JWT_with_given_params.yml +46 -0
  12. data/spec/cassettes/FatZebra_Authorise/_jwt_token/returns_JWT_with_no_params.yml +46 -0
  13. data/spec/cassettes/FatZebra_Authorise/_jwt_token/returns_JWT_with_some_params.yml +46 -0
  14. data/spec/cassettes/FatZebra_BankAccount/_create/1_1_1.yml +8 -14
  15. data/spec/cassettes/FatZebra_BankAccount/_create/1_1_2.yml +8 -14
  16. data/spec/cassettes/FatZebra_BankAccount/_search/1_2_1.yml +30 -30
  17. data/spec/cassettes/FatZebra_BankAccount/_search/1_2_2.yml +30 -30
  18. data/spec/cassettes/FatZebra_BankAccount/_search/1_2_3.yml +30 -30
  19. data/spec/cassettes/FatZebra_Batch/_create/with_file/1_1_1_1.yml +11 -17
  20. data/spec/cassettes/FatZebra_Batch/_create/with_file/1_1_1_2.yml +11 -17
  21. data/spec/cassettes/FatZebra_Batch/_create/with_path/1_1_2_1.yml +11 -17
  22. data/spec/cassettes/FatZebra_Batch/_create/with_path/1_1_2_2.yml +11 -17
  23. data/spec/cassettes/FatZebra_Batch/_find/1_2_1.yml +19 -31
  24. data/spec/cassettes/FatZebra_Batch/_find/1_2_2.yml +19 -31
  25. data/spec/cassettes/FatZebra_Batch/_result/1_4_1.yml +26 -44
  26. data/spec/cassettes/FatZebra_Batch/_search/1_3_1.yml +6 -6
  27. data/spec/cassettes/FatZebra_Batch/_search/1_3_2.yml +6 -6
  28. data/spec/cassettes/FatZebra_Batch/_search/1_3_3.yml +6 -6
  29. data/spec/cassettes/FatZebra_Card/_create/1_1_1.yml +7 -13
  30. data/spec/cassettes/FatZebra_Card/_create/1_1_2.yml +7 -13
  31. data/spec/cassettes/FatZebra_Card/_create/1_1_3.yml +7 -13
  32. data/spec/cassettes/FatZebra_Card/_create/1_1_4.yml +7 -13
  33. data/spec/cassettes/FatZebra_Card/_create/1_1_5.yml +7 -13
  34. data/spec/cassettes/FatZebra_Card/_create/1_1_6.yml +7 -13
  35. data/spec/cassettes/FatZebra_Card/_update/1_2_1.yml +15 -27
  36. data/spec/cassettes/FatZebra_Card/_update/1_2_2.yml +15 -27
  37. data/spec/cassettes/FatZebra_Card/_update/1_2_3.yml +15 -27
  38. data/spec/cassettes/FatZebra_Card/_update/validations/1_2_4_1.yml +7 -13
  39. data/spec/cassettes/FatZebra_Customer/_create/1_1_1.yml +9 -15
  40. data/spec/cassettes/FatZebra_Customer/_create/1_1_2.yml +9 -15
  41. data/spec/cassettes/FatZebra_Customer/_create/1_1_3.yml +9 -15
  42. data/spec/cassettes/FatZebra_Customer/_create/1_1_4.yml +9 -15
  43. data/spec/cassettes/FatZebra_Customer/_create/1_1_5.yml +9 -15
  44. data/spec/cassettes/FatZebra_Customer/_create/1_1_6.yml +9 -15
  45. data/spec/cassettes/FatZebra_Customer/_delete/1_5_1.yml +18 -30
  46. data/spec/cassettes/FatZebra_Customer/_find/1_3_1.yml +18 -30
  47. data/spec/cassettes/FatZebra_Customer/_find/1_3_2.yml +18 -30
  48. data/spec/cassettes/FatZebra_Customer/_search/1_2_1.yml +12 -16
  49. data/spec/cassettes/FatZebra_Customer/_search/1_2_2.yml +12 -16
  50. data/spec/cassettes/FatZebra_Customer/_search/1_2_3.yml +12 -16
  51. data/spec/cassettes/FatZebra_Customer/_update/1_4_1.yml +19 -31
  52. data/spec/cassettes/FatZebra_Customer/_update/1_4_2.yml +19 -31
  53. data/spec/cassettes/FatZebra_DirectCredit/_create/1_1_1.yml +8 -14
  54. data/spec/cassettes/FatZebra_DirectCredit/_create/1_1_2.yml +8 -14
  55. data/spec/cassettes/FatZebra_DirectCredit/_create/1_1_3.yml +8 -14
  56. data/spec/cassettes/FatZebra_DirectCredit/_create/1_1_4.yml +8 -14
  57. data/spec/cassettes/FatZebra_DirectCredit/_create/validations/valid/1_1_5_1_1.yml +7 -13
  58. data/spec/cassettes/FatZebra_DirectCredit/_delete/1_4_1.yml +16 -28
  59. data/spec/cassettes/FatZebra_DirectCredit/_find/1_2_1.yml +16 -28
  60. data/spec/cassettes/FatZebra_DirectCredit/_find/1_2_2.yml +16 -28
  61. data/spec/cassettes/FatZebra_DirectCredit/_find/1_2_3.yml +13 -13
  62. data/spec/cassettes/FatZebra_DirectCredit/_search/1_3_1.yml +20 -20
  63. data/spec/cassettes/FatZebra_DirectCredit/_search/1_3_2.yml +20 -20
  64. data/spec/cassettes/FatZebra_DirectDebit/_create/1_1_1.yml +8 -14
  65. data/spec/cassettes/FatZebra_DirectDebit/_create/1_1_2.yml +8 -14
  66. data/spec/cassettes/FatZebra_DirectDebit/_create/1_1_3.yml +8 -14
  67. data/spec/cassettes/FatZebra_DirectDebit/_create/1_1_4.yml +8 -14
  68. data/spec/cassettes/FatZebra_DirectDebit/_create/validations/valid/1_1_5_1_1.yml +7 -13
  69. data/spec/cassettes/FatZebra_DirectDebit/_delete/1_4_1.yml +16 -28
  70. data/spec/cassettes/FatZebra_DirectDebit/_find/1_2_1.yml +16 -28
  71. data/spec/cassettes/FatZebra_DirectDebit/_find/1_2_2.yml +16 -28
  72. data/spec/cassettes/FatZebra_DirectDebit/_find/1_2_3.yml +13 -13
  73. data/spec/cassettes/FatZebra_DirectDebit/_search/1_3_1.yml +20 -20
  74. data/spec/cassettes/FatZebra_DirectDebit/_search/1_3_2.yml +20 -20
  75. data/spec/cassettes/FatZebra_Information/_ping/1_1_1.yml +7 -13
  76. data/spec/cassettes/FatZebra_Information/_ping/1_1_2.yml +7 -13
  77. data/spec/cassettes/FatZebra_PaymentPlan/_active_/1_8_1.yml +48 -48
  78. data/spec/cassettes/FatZebra_PaymentPlan/_active_/1_8_2.yml +48 -48
  79. data/spec/cassettes/FatZebra_PaymentPlan/_create/1_1_1.yml +20 -20
  80. data/spec/cassettes/FatZebra_PaymentPlan/_create/1_1_2.yml +20 -20
  81. data/spec/cassettes/FatZebra_PaymentPlan/_create/1_1_3.yml +20 -20
  82. data/spec/cassettes/FatZebra_PaymentPlan/_delete/1_5_1.yml +28 -28
  83. data/spec/cassettes/FatZebra_PaymentPlan/_destroy/1_6_1.yml +28 -28
  84. data/spec/cassettes/FatZebra_PaymentPlan/_find/1_2_1.yml +32 -32
  85. data/spec/cassettes/FatZebra_PaymentPlan/_find/1_2_2.yml +32 -32
  86. data/spec/cassettes/FatZebra_PaymentPlan/_find/1_2_3.yml +32 -32
  87. data/spec/cassettes/FatZebra_PaymentPlan/_suspend_/1_7_1.yml +34 -34
  88. data/spec/cassettes/FatZebra_PaymentPlan/_suspend_/1_7_2.yml +34 -34
  89. data/spec/cassettes/FatZebra_PaymentPlan/_update/1_3_1.yml +28 -28
  90. data/spec/cassettes/FatZebra_PaymentPlan/_update/1_3_2.yml +28 -28
  91. data/spec/cassettes/FatZebra_PaymentPlan/_update/1_3_3.yml +28 -28
  92. data/spec/cassettes/FatZebra_PaymentPlan/_update/1_4_1.yml +34 -34
  93. data/spec/cassettes/FatZebra_PaymentPlan/_update/1_4_2.yml +34 -34
  94. data/spec/cassettes/FatZebra_Purchase/_create/1_1_1.yml +9 -15
  95. data/spec/cassettes/FatZebra_Purchase/_create/1_1_10.yml +9 -15
  96. data/spec/cassettes/FatZebra_Purchase/_create/1_1_11.yml +9 -15
  97. data/spec/cassettes/FatZebra_Purchase/_create/1_1_12.yml +9 -15
  98. data/spec/cassettes/FatZebra_Purchase/_create/1_1_13.yml +9 -15
  99. data/spec/cassettes/FatZebra_Purchase/_create/1_1_2.yml +9 -15
  100. data/spec/cassettes/FatZebra_Purchase/_create/1_1_3.yml +9 -15
  101. data/spec/cassettes/FatZebra_Purchase/_create/1_1_4.yml +9 -15
  102. data/spec/cassettes/FatZebra_Purchase/_create/1_1_5.yml +9 -15
  103. data/spec/cassettes/FatZebra_Purchase/_create/1_1_6.yml +9 -15
  104. data/spec/cassettes/FatZebra_Purchase/_create/1_1_7.yml +9 -15
  105. data/spec/cassettes/FatZebra_Purchase/_create/1_1_8.yml +9 -15
  106. data/spec/cassettes/FatZebra_Purchase/_create/1_1_9.yml +9 -15
  107. data/spec/cassettes/FatZebra_Purchase/_create/bad_request/1_1_14_1.yml +11 -17
  108. data/spec/cassettes/FatZebra_Purchase/_create/bad_request/1_1_14_2.yml +11 -17
  109. data/spec/cassettes/FatZebra_Purchase/_void/1_6_1.yml +18 -30
  110. data/spec/cassettes/FatZebra_Purchase/_void/1_6_2.yml +18 -30
  111. data/spec/cassettes/FatZebra_Purchase/_void/1_6_3.yml +18 -30
  112. data/spec/cassettes/FatZebra_Purchase/_void/1_6_4.yml +18 -30
  113. data/spec/cassettes/FatZebra_Purchase/_void/1_7_1.yml +18 -30
  114. data/spec/cassettes/FatZebra_Purchase/_void/1_7_2.yml +18 -30
  115. data/spec/cassettes/FatZebra_Purchase/_void/1_7_3.yml +18 -30
  116. data/spec/cassettes/FatZebra_Purchase/_void/1_7_4.yml +18 -30
  117. data/spec/cassettes/FatZebra_Refund/_create/1_1_1.yml +16 -16
  118. data/spec/cassettes/FatZebra_Refund/_create/1_1_10.yml +16 -16
  119. data/spec/cassettes/FatZebra_Refund/_create/1_1_2.yml +16 -16
  120. data/spec/cassettes/FatZebra_Refund/_create/1_1_3.yml +16 -16
  121. data/spec/cassettes/FatZebra_Refund/_create/1_1_4.yml +16 -16
  122. data/spec/cassettes/FatZebra_Refund/_create/1_1_5.yml +16 -16
  123. data/spec/cassettes/FatZebra_Refund/_create/1_1_6.yml +16 -16
  124. data/spec/cassettes/FatZebra_Refund/_create/1_1_7.yml +16 -16
  125. data/spec/cassettes/FatZebra_Refund/_create/1_1_8.yml +16 -16
  126. data/spec/cassettes/FatZebra_Refund/_create/1_1_9.yml +16 -16
  127. data/spec/cassettes/FatZebra_Refund/_find/1_2_1.yml +24 -24
  128. data/spec/cassettes/FatZebra_Refund/_find/1_2_2.yml +24 -24
  129. data/spec/cassettes/FatZebra_Refund/_find/1_2_3.yml +24 -24
  130. data/spec/cassettes/FatZebra_Refund/_search/responds_with_the_newly-created_refunds.yml +40 -40
  131. data/spec/cassettes/FatZebra_Refund/_void/1_4_1.yml +24 -24
  132. data/spec/cassettes/FatZebra_Refund/_void/1_4_2.yml +24 -24
  133. data/spec/cassettes/FatZebra_Refund/_void/1_4_3.yml +24 -24
  134. data/spec/cassettes/FatZebra_Refund/_void/1_4_4.yml +24 -24
  135. data/spec/cassettes/FatZebra_WebHook/_create/1_1_1.yml +7 -13
  136. data/spec/cassettes/FatZebra_WebHook/_create/1_1_2.yml +7 -13
  137. data/spec/cassettes/FatZebra_WebHook/_create/1_1_3.yml +7 -13
  138. data/spec/cassettes/FatZebra_WebHook/_delete/1_4_1.yml +15 -27
  139. data/spec/cassettes/FatZebra_WebHook/_search/1_2_1.yml +160 -133
  140. data/spec/cassettes/FatZebra_WebHook/_search/1_2_2.yml +162 -135
  141. data/spec/cassettes/FatZebra_WebHook/_update/1_3_1.yml +15 -27
  142. data/spec/cassettes/FatZebra_WebHook/_update/1_3_2.yml +15 -27
  143. data/spec/lib/fat_zebra/authorise_spec.rb +101 -0
  144. data/spec/lib/fat_zebra/purchase_spec.rb +3 -3
  145. data/spec/lib/fat_zebra/refund_spec.rb +1 -1
  146. data/spec/support/payloads.rb +42 -0
  147. metadata +13 -4
  148. data/spec/cassettes/FatZebra_DirectDebit/_create/validations/failed_with_non-float/1_1_5_3_1.yml +0 -52
@@ -5,7 +5,7 @@ http_interactions:
5
5
  uri: https://gateway.sandbox.fatzebra.com.au/v1.0/purchases
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"amount":10000,"card_holder":"Matthew Savage","card_number":"5123456789012346","card_expiry":"02/2030","cvv":123,"reference":"3b8ae7c4f4e6e0d346f9c6d1c6a2ee58","customer_ip":"1.2.3.4","currency":"AUD","test":true}'
8
+ string: '{"amount":10000,"card_holder":"Matthew Savage","card_number":"5123456789012346","card_expiry":"02/2030","cvv":123,"reference":"7460ff6d3ac11ca3a3db9f12a3d56645","customer_ip":"1.2.3.4","currency":"AUD","test":true}'
9
9
  headers:
10
10
  Accept-Encoding:
11
11
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
@@ -23,7 +23,7 @@ http_interactions:
23
23
  message: OK
24
24
  headers:
25
25
  Date:
26
- - Sun, 12 Aug 2018 01:19:08 GMT
26
+ - Mon, 29 Apr 2019 09:20:26 GMT
27
27
  Content-Type:
28
28
  - application/json; charset=utf-8
29
29
  Transfer-Encoding:
@@ -35,27 +35,27 @@ http_interactions:
35
35
  Cache-Control:
36
36
  - no-store
37
37
  X-Request-Version:
38
- - 1.16.9-3538@ea2e93d
38
+ - 1.16.9-3941@c1d8236
39
39
  X-Runtime:
40
- - '0.521713'
40
+ - '0.531357'
41
41
  Pragma:
42
42
  - no-cache
43
43
  X-Request-Id:
44
- - 4a79942a93ce9934def852b7
44
+ - 13fbcf717492a8eca3eaa800
45
45
  X-Backend:
46
46
  - sbox-priv-gateway-a
47
47
  body:
48
48
  encoding: UTF-8
49
- string: '{"successful":true,"response":{"authorization":"695795","id":"071-P-MYTJK8NB","card_number":"512345XXXXXX2346","card_holder":"Matthew
50
- Savage","card_expiry":"2030-02-28","card_token":"fke8794q","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"3b8ae7c4f4e6e0d346f9c6d1c6a2ee58","currency":"AUD","transaction_id":"071-P-MYTJK8NB","settlement_date":"2018-08-12","transaction_date":"2018-08-12T11:19:08+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071PMYTJK8NB","cvv_match":"M","metadata":{},"addendum_data":{}},"errors":[],"test":true}'
49
+ string: '{"successful":true,"response":{"authorization":"460612","id":"071-P-473V0UT3","card_number":"512345XXXXXX2346","card_holder":"Matthew
50
+ Savage","card_expiry":"2030-02-28","card_token":"8jl5rf0jnnh1ufv93ejy","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"7460ff6d3ac11ca3a3db9f12a3d56645","currency":"AUD","transaction_id":"071-P-473V0UT3","settlement_date":"2019-04-29","transaction_date":"2019-04-29T19:20:26+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071P473V0UT3","cvv_match":"M","metadata":{"authorization_tracking_id":"","original_transaction_reference":""},"addendum_data":{}},"errors":[],"test":true}'
51
51
  http_version:
52
- recorded_at: Sun, 12 Aug 2018 01:19:05 GMT
52
+ recorded_at: Mon, 29 Apr 2019 09:20:26 GMT
53
53
  - request:
54
54
  method: post
55
55
  uri: https://gateway.sandbox.fatzebra.com.au/v1.0/refunds
56
56
  body:
57
57
  encoding: UTF-8
58
- string: '{"transaction_id":"071-P-MYTJK8NB","amount":10000,"reference":"3b8ae7c4f4e6e0d346f9c6d1c6a2ee58","test":true}'
58
+ string: '{"transaction_id":"071-P-473V0UT3","amount":10000,"reference":"7460ff6d3ac11ca3a3db9f12a3d56645","test":true}'
59
59
  headers:
60
60
  Accept-Encoding:
61
61
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
@@ -73,7 +73,7 @@ http_interactions:
73
73
  message: OK
74
74
  headers:
75
75
  Date:
76
- - Sun, 12 Aug 2018 01:19:08 GMT
76
+ - Mon, 29 Apr 2019 09:20:26 GMT
77
77
  Content-Type:
78
78
  - application/json; charset=utf-8
79
79
  Transfer-Encoding:
@@ -85,19 +85,19 @@ http_interactions:
85
85
  Cache-Control:
86
86
  - no-store
87
87
  X-Request-Version:
88
- - 1.16.9-3538@ea2e93d
88
+ - 1.16.9-3941@c1d8236
89
89
  X-Runtime:
90
- - '0.115155'
90
+ - '0.153868'
91
91
  Pragma:
92
92
  - no-cache
93
93
  X-Request-Id:
94
- - 4b18bc2733ac164c32306f01
94
+ - 460917487444e1dc59eb4404
95
95
  X-Backend:
96
96
  - sbox-priv-gateway-a
97
97
  body:
98
98
  encoding: UTF-8
99
- string: '{"successful":true,"response":{"authorization":"1534036748","id":"071-R-DVURFWQ8","amount":10000,"refunded":"Approved","message":"Approved","card_holder":"Matthew
100
- Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-DVURFWQ8","reference":"3b8ae7c4f4e6e0d346f9c6d1c6a2ee58","currency":"AUD","successful":true,"transaction_date":"2018-08-12T11:19:08+10:00","response_code":"00","settlement_date":"2018-08-13","metadata":{},"standalone":false,"rrn":"071RDVURFWQ8"},"errors":[],"test":true}'
99
+ string: '{"successful":true,"response":{"authorization":"1556529626","id":"071-R-H0YWRNN0","amount":10000,"refunded":"Approved","message":"Approved","card_holder":"Matthew
100
+ Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-H0YWRNN0","reference":"7460ff6d3ac11ca3a3db9f12a3d56645","currency":"AUD","successful":true,"transaction_date":"2019-04-29T19:20:26+10:00","response_code":"00","settlement_date":"2019-04-30","metadata":{},"standalone":false,"rrn":"071RH0YWRNN0"},"errors":[],"test":true}'
101
101
  http_version:
102
- recorded_at: Sun, 12 Aug 2018 01:19:06 GMT
102
+ recorded_at: Mon, 29 Apr 2019 09:20:26 GMT
103
103
  recorded_with: VCR 3.0.3
@@ -5,7 +5,7 @@ http_interactions:
5
5
  uri: https://gateway.sandbox.fatzebra.com.au/v1.0/purchases
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"amount":10000,"card_holder":"Matthew Savage","card_number":"5123456789012346","card_expiry":"02/2030","cvv":123,"reference":"2eadffda462761e575d0fa079e87813f","customer_ip":"1.2.3.4","currency":"AUD","test":true}'
8
+ string: '{"amount":10000,"card_holder":"Matthew Savage","card_number":"5123456789012346","card_expiry":"02/2030","cvv":123,"reference":"91ca35c03a8f26c9a28c31bce58ce26f","customer_ip":"1.2.3.4","currency":"AUD","test":true}'
9
9
  headers:
10
10
  Accept-Encoding:
11
11
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
@@ -23,7 +23,7 @@ http_interactions:
23
23
  message: OK
24
24
  headers:
25
25
  Date:
26
- - Sun, 12 Aug 2018 01:19:09 GMT
26
+ - Mon, 29 Apr 2019 09:20:27 GMT
27
27
  Content-Type:
28
28
  - application/json; charset=utf-8
29
29
  Transfer-Encoding:
@@ -35,27 +35,27 @@ http_interactions:
35
35
  Cache-Control:
36
36
  - no-store
37
37
  X-Request-Version:
38
- - 1.16.9-3538@ea2e93d
38
+ - 1.16.9-3941@c1d8236
39
39
  X-Runtime:
40
- - '0.599751'
40
+ - '0.566009'
41
41
  Pragma:
42
42
  - no-cache
43
43
  X-Request-Id:
44
- - 9ad1eb44dacf51ca0a30c3ca
44
+ - e373a4bd682a041ce4c2d42e
45
45
  X-Backend:
46
46
  - sbox-priv-gateway-a
47
47
  body:
48
48
  encoding: UTF-8
49
- string: '{"successful":true,"response":{"authorization":"573952","id":"071-P-KNKLTJ6R","card_number":"512345XXXXXX2346","card_holder":"Matthew
50
- Savage","card_expiry":"2030-02-28","card_token":"fke8r2m1","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"2eadffda462761e575d0fa079e87813f","currency":"AUD","transaction_id":"071-P-KNKLTJ6R","settlement_date":"2018-08-12","transaction_date":"2018-08-12T11:19:08+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071PKNKLTJ6R","cvv_match":"M","metadata":{},"addendum_data":{}},"errors":[],"test":true}'
49
+ string: '{"successful":true,"response":{"authorization":"869843","id":"071-P-5KBWROX","card_number":"512345XXXXXX2346","card_holder":"Matthew
50
+ Savage","card_expiry":"2030-02-28","card_token":"vefrvghrfkmy3ujmcytc","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"91ca35c03a8f26c9a28c31bce58ce26f","currency":"AUD","transaction_id":"071-P-5KBWROX","settlement_date":"2019-04-29","transaction_date":"2019-04-29T19:20:27+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071P5KBWROX","cvv_match":"M","metadata":{"authorization_tracking_id":"","original_transaction_reference":""},"addendum_data":{}},"errors":[],"test":true}'
51
51
  http_version:
52
- recorded_at: Sun, 12 Aug 2018 01:19:06 GMT
52
+ recorded_at: Mon, 29 Apr 2019 09:20:27 GMT
53
53
  - request:
54
54
  method: post
55
55
  uri: https://gateway.sandbox.fatzebra.com.au/v1.0/refunds
56
56
  body:
57
57
  encoding: UTF-8
58
- string: '{"transaction_id":"071-P-KNKLTJ6R","amount":10000,"reference":"2eadffda462761e575d0fa079e87813f","test":true}'
58
+ string: '{"transaction_id":"071-P-5KBWROX","amount":10000,"reference":"91ca35c03a8f26c9a28c31bce58ce26f","test":true}'
59
59
  headers:
60
60
  Accept-Encoding:
61
61
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
@@ -73,7 +73,7 @@ http_interactions:
73
73
  message: OK
74
74
  headers:
75
75
  Date:
76
- - Sun, 12 Aug 2018 01:19:09 GMT
76
+ - Mon, 29 Apr 2019 09:20:27 GMT
77
77
  Content-Type:
78
78
  - application/json; charset=utf-8
79
79
  Transfer-Encoding:
@@ -85,19 +85,19 @@ http_interactions:
85
85
  Cache-Control:
86
86
  - no-store
87
87
  X-Request-Version:
88
- - 1.16.9-3538@ea2e93d
88
+ - 1.16.9-3941@c1d8236
89
89
  X-Runtime:
90
- - '0.135980'
90
+ - '0.132552'
91
91
  Pragma:
92
92
  - no-cache
93
93
  X-Request-Id:
94
- - 0cd5e9da6d1dea9f60a973d2
94
+ - 1da4a672ebce9782713b70ee
95
95
  X-Backend:
96
96
  - sbox-priv-gateway-a
97
97
  body:
98
98
  encoding: UTF-8
99
- string: '{"successful":true,"response":{"authorization":"1534036749","id":"071-R-L5EY4P9C","amount":10000,"refunded":"Approved","message":"Approved","card_holder":"Matthew
100
- Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-L5EY4P9C","reference":"2eadffda462761e575d0fa079e87813f","currency":"AUD","successful":true,"transaction_date":"2018-08-12T11:19:09+10:00","response_code":"00","settlement_date":"2018-08-13","metadata":{},"standalone":false,"rrn":"071RL5EY4P9C"},"errors":[],"test":true}'
99
+ string: '{"successful":true,"response":{"authorization":"1556529627","id":"071-R-ZGANZPSJ","amount":10000,"refunded":"Approved","message":"Approved","card_holder":"Matthew
100
+ Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-ZGANZPSJ","reference":"91ca35c03a8f26c9a28c31bce58ce26f","currency":"AUD","successful":true,"transaction_date":"2019-04-29T19:20:27+10:00","response_code":"00","settlement_date":"2019-04-30","metadata":{},"standalone":false,"rrn":"071RZGANZPSJ"},"errors":[],"test":true}'
101
101
  http_version:
102
- recorded_at: Sun, 12 Aug 2018 01:19:07 GMT
102
+ recorded_at: Mon, 29 Apr 2019 09:20:27 GMT
103
103
  recorded_with: VCR 3.0.3
@@ -5,7 +5,7 @@ http_interactions:
5
5
  uri: https://gateway.sandbox.fatzebra.com.au/v1.0/purchases
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"amount":10000,"card_holder":"Matthew Savage","card_number":"5123456789012346","card_expiry":"02/2030","cvv":123,"reference":"fe4a297aa28de8d77779aeaafddc6ead","customer_ip":"1.2.3.4","currency":"AUD","test":true}'
8
+ string: '{"amount":10000,"card_holder":"Matthew Savage","card_number":"5123456789012346","card_expiry":"02/2030","cvv":123,"reference":"034f253bbb448b7ff1a0d5d2d20ac0e0","customer_ip":"1.2.3.4","currency":"AUD","test":true}'
9
9
  headers:
10
10
  Accept-Encoding:
11
11
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
@@ -23,7 +23,7 @@ http_interactions:
23
23
  message: OK
24
24
  headers:
25
25
  Date:
26
- - Sun, 12 Aug 2018 01:19:10 GMT
26
+ - Mon, 29 Apr 2019 09:20:28 GMT
27
27
  Content-Type:
28
28
  - application/json; charset=utf-8
29
29
  Transfer-Encoding:
@@ -35,27 +35,27 @@ http_interactions:
35
35
  Cache-Control:
36
36
  - no-store
37
37
  X-Request-Version:
38
- - 1.16.9-3538@ea2e93d
38
+ - 1.16.9-3941@c1d8236
39
39
  X-Runtime:
40
- - '0.561997'
40
+ - '0.579485'
41
41
  Pragma:
42
42
  - no-cache
43
43
  X-Request-Id:
44
- - 5174239c74a1f11b1a8d8952
44
+ - 05dd491078421c1c590643f8
45
45
  X-Backend:
46
46
  - sbox-priv-gateway-a
47
47
  body:
48
48
  encoding: UTF-8
49
- string: '{"successful":true,"response":{"authorization":"802084","id":"071-P-S2X87OWX","card_number":"512345XXXXXX2346","card_holder":"Matthew
50
- Savage","card_expiry":"2030-02-28","card_token":"fke8rl04","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"fe4a297aa28de8d77779aeaafddc6ead","currency":"AUD","transaction_id":"071-P-S2X87OWX","settlement_date":"2018-08-12","transaction_date":"2018-08-12T11:19:09+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071PS2X87OWX","cvv_match":"M","metadata":{},"addendum_data":{}},"errors":[],"test":true}'
49
+ string: '{"successful":true,"response":{"authorization":"766065","id":"071-P-J3KZ8LCD","card_number":"512345XXXXXX2346","card_holder":"Matthew
50
+ Savage","card_expiry":"2030-02-28","card_token":"2ydobxegskeud4esdizo","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"034f253bbb448b7ff1a0d5d2d20ac0e0","currency":"AUD","transaction_id":"071-P-J3KZ8LCD","settlement_date":"2019-04-29","transaction_date":"2019-04-29T19:20:27+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071PJ3KZ8LCD","cvv_match":"M","metadata":{"authorization_tracking_id":"","original_transaction_reference":""},"addendum_data":{}},"errors":[],"test":true}'
51
51
  http_version:
52
- recorded_at: Sun, 12 Aug 2018 01:19:07 GMT
52
+ recorded_at: Mon, 29 Apr 2019 09:20:28 GMT
53
53
  - request:
54
54
  method: post
55
55
  uri: https://gateway.sandbox.fatzebra.com.au/v1.0/refunds
56
56
  body:
57
57
  encoding: UTF-8
58
- string: '{"transaction_id":"071-P-S2X87OWX","amount":10000,"reference":"fe4a297aa28de8d77779aeaafddc6ead","test":true}'
58
+ string: '{"transaction_id":"071-P-J3KZ8LCD","amount":10000,"reference":"034f253bbb448b7ff1a0d5d2d20ac0e0","test":true}'
59
59
  headers:
60
60
  Accept-Encoding:
61
61
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
@@ -73,7 +73,7 @@ http_interactions:
73
73
  message: OK
74
74
  headers:
75
75
  Date:
76
- - Sun, 12 Aug 2018 01:19:10 GMT
76
+ - Mon, 29 Apr 2019 09:20:28 GMT
77
77
  Content-Type:
78
78
  - application/json; charset=utf-8
79
79
  Transfer-Encoding:
@@ -85,19 +85,19 @@ http_interactions:
85
85
  Cache-Control:
86
86
  - no-store
87
87
  X-Request-Version:
88
- - 1.16.9-3538@ea2e93d
88
+ - 1.16.9-3941@c1d8236
89
89
  X-Runtime:
90
- - '0.190362'
90
+ - '0.132441'
91
91
  Pragma:
92
92
  - no-cache
93
93
  X-Request-Id:
94
- - 00726f2bf539f84c3f30cdcc
94
+ - 0e404da2ad336a39c12eecfb
95
95
  X-Backend:
96
96
  - sbox-priv-gateway-a
97
97
  body:
98
98
  encoding: UTF-8
99
- string: '{"successful":true,"response":{"authorization":"1534036750","id":"071-R-7OAIZ20G","amount":10000,"refunded":"Approved","message":"Approved","card_holder":"Matthew
100
- Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-7OAIZ20G","reference":"fe4a297aa28de8d77779aeaafddc6ead","currency":"AUD","successful":true,"transaction_date":"2018-08-12T11:19:10+10:00","response_code":"00","settlement_date":"2018-08-13","metadata":{},"standalone":false,"rrn":"071R7OAIZ20G"},"errors":[],"test":true}'
99
+ string: '{"successful":true,"response":{"authorization":"1556529628","id":"071-R-HX1BGOK","amount":10000,"refunded":"Approved","message":"Approved","card_holder":"Matthew
100
+ Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-HX1BGOK","reference":"034f253bbb448b7ff1a0d5d2d20ac0e0","currency":"AUD","successful":true,"transaction_date":"2019-04-29T19:20:28+10:00","response_code":"00","settlement_date":"2019-04-30","metadata":{},"standalone":false,"rrn":"071RHX1BGOK"},"errors":[],"test":true}'
101
101
  http_version:
102
- recorded_at: Sun, 12 Aug 2018 01:19:08 GMT
102
+ recorded_at: Mon, 29 Apr 2019 09:20:28 GMT
103
103
  recorded_with: VCR 3.0.3
@@ -5,7 +5,7 @@ http_interactions:
5
5
  uri: https://gateway.sandbox.fatzebra.com.au/v1.0/purchases
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"amount":10000,"card_holder":"Matthew Savage","card_number":"5123456789012346","card_expiry":"02/2030","cvv":123,"reference":"3303f008f6a32c70eb6d509cd501189f","customer_ip":"1.2.3.4","currency":"AUD","test":true}'
8
+ string: '{"amount":10000,"card_holder":"Matthew Savage","card_number":"5123456789012346","card_expiry":"02/2030","cvv":123,"reference":"a01580a699b3c6b7f7cbb62940c5ac8e","customer_ip":"1.2.3.4","currency":"AUD","test":true}'
9
9
  headers:
10
10
  Accept-Encoding:
11
11
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
@@ -23,7 +23,7 @@ http_interactions:
23
23
  message: OK
24
24
  headers:
25
25
  Date:
26
- - Sun, 12 Aug 2018 01:19:11 GMT
26
+ - Mon, 29 Apr 2019 09:20:29 GMT
27
27
  Content-Type:
28
28
  - application/json; charset=utf-8
29
29
  Transfer-Encoding:
@@ -35,27 +35,27 @@ http_interactions:
35
35
  Cache-Control:
36
36
  - no-store
37
37
  X-Request-Version:
38
- - 1.16.9-3538@ea2e93d
38
+ - 1.16.9-3941@c1d8236
39
39
  X-Runtime:
40
- - '0.534812'
40
+ - '0.542325'
41
41
  Pragma:
42
42
  - no-cache
43
43
  X-Request-Id:
44
- - 5cbb6dddcc79c30290ea8694
44
+ - d5569f945bb3bf2814d5c93c
45
45
  X-Backend:
46
46
  - sbox-priv-gateway-a
47
47
  body:
48
48
  encoding: UTF-8
49
- string: '{"successful":true,"response":{"authorization":"440140","id":"071-P-H7LL45EY","card_number":"512345XXXXXX2346","card_holder":"Matthew
50
- Savage","card_expiry":"2030-02-28","card_token":"fke8z46d","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"3303f008f6a32c70eb6d509cd501189f","currency":"AUD","transaction_id":"071-P-H7LL45EY","settlement_date":"2018-08-12","transaction_date":"2018-08-12T11:19:11+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071PH7LL45EY","cvv_match":"M","metadata":{},"addendum_data":{}},"errors":[],"test":true}'
49
+ string: '{"successful":true,"response":{"authorization":"889830","id":"071-P-O6YDX9XO","card_number":"512345XXXXXX2346","card_holder":"Matthew
50
+ Savage","card_expiry":"2030-02-28","card_token":"r3gzwnz2vdzqpxr3lowi","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"a01580a699b3c6b7f7cbb62940c5ac8e","currency":"AUD","transaction_id":"071-P-O6YDX9XO","settlement_date":"2019-04-29","transaction_date":"2019-04-29T19:20:29+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071PO6YDX9XO","cvv_match":"M","metadata":{"authorization_tracking_id":"","original_transaction_reference":""},"addendum_data":{}},"errors":[],"test":true}'
51
51
  http_version:
52
- recorded_at: Sun, 12 Aug 2018 01:19:09 GMT
52
+ recorded_at: Mon, 29 Apr 2019 09:20:29 GMT
53
53
  - request:
54
54
  method: post
55
55
  uri: https://gateway.sandbox.fatzebra.com.au/v1.0/refunds
56
56
  body:
57
57
  encoding: UTF-8
58
- string: '{"transaction_id":"071-P-H7LL45EY","amount":10000,"reference":"3303f008f6a32c70eb6d509cd501189f","test":true}'
58
+ string: '{"transaction_id":"071-P-O6YDX9XO","amount":10000,"reference":"a01580a699b3c6b7f7cbb62940c5ac8e","test":true}'
59
59
  headers:
60
60
  Accept-Encoding:
61
61
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
@@ -73,7 +73,7 @@ http_interactions:
73
73
  message: OK
74
74
  headers:
75
75
  Date:
76
- - Sun, 12 Aug 2018 01:19:12 GMT
76
+ - Mon, 29 Apr 2019 09:20:29 GMT
77
77
  Content-Type:
78
78
  - application/json; charset=utf-8
79
79
  Transfer-Encoding:
@@ -85,24 +85,24 @@ http_interactions:
85
85
  Cache-Control:
86
86
  - no-store
87
87
  X-Request-Version:
88
- - 1.16.9-3538@ea2e93d
88
+ - 1.16.9-3941@c1d8236
89
89
  X-Runtime:
90
- - '0.148288'
90
+ - '0.119675'
91
91
  Pragma:
92
92
  - no-cache
93
93
  X-Request-Id:
94
- - 696a168bf98d1a1e61c842f2
94
+ - 24966d87355765c47b232ff2
95
95
  X-Backend:
96
96
  - sbox-priv-gateway-a
97
97
  body:
98
98
  encoding: UTF-8
99
- string: '{"successful":true,"response":{"authorization":"1534036752","id":"071-R-WWN3PEEA","amount":10000,"refunded":"Approved","message":"Approved","card_holder":"Matthew
100
- Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-WWN3PEEA","reference":"3303f008f6a32c70eb6d509cd501189f","currency":"AUD","successful":true,"transaction_date":"2018-08-12T11:19:12+10:00","response_code":"00","settlement_date":"2018-08-13","metadata":{},"standalone":false,"rrn":"071RWWN3PEEA"},"errors":[],"test":true}'
99
+ string: '{"successful":true,"response":{"authorization":"1556529629","id":"071-R-8XBGTTPA","amount":10000,"refunded":"Approved","message":"Approved","card_holder":"Matthew
100
+ Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-8XBGTTPA","reference":"a01580a699b3c6b7f7cbb62940c5ac8e","currency":"AUD","successful":true,"transaction_date":"2019-04-29T19:20:29+10:00","response_code":"00","settlement_date":"2019-04-30","metadata":{},"standalone":false,"rrn":"071R8XBGTTPA"},"errors":[],"test":true}'
101
101
  http_version:
102
- recorded_at: Sun, 12 Aug 2018 01:19:09 GMT
102
+ recorded_at: Mon, 29 Apr 2019 09:20:29 GMT
103
103
  - request:
104
104
  method: get
105
- uri: https://gateway.sandbox.fatzebra.com.au/v1.0/refunds/3303f008f6a32c70eb6d509cd501189f?test=true
105
+ uri: https://gateway.sandbox.fatzebra.com.au/v1.0/refunds/a01580a699b3c6b7f7cbb62940c5ac8e?test=true
106
106
  body:
107
107
  encoding: US-ASCII
108
108
  string: ''
@@ -125,7 +125,7 @@ http_interactions:
125
125
  message: OK
126
126
  headers:
127
127
  Date:
128
- - Sun, 12 Aug 2018 01:19:12 GMT
128
+ - Mon, 29 Apr 2019 09:20:29 GMT
129
129
  Content-Type:
130
130
  - application/json; charset=utf-8
131
131
  Transfer-Encoding:
@@ -137,19 +137,19 @@ http_interactions:
137
137
  Cache-Control:
138
138
  - no-store
139
139
  X-Request-Version:
140
- - 1.16.9-3538@ea2e93d
140
+ - 1.16.9-3941@c1d8236
141
141
  X-Runtime:
142
- - '0.022602'
142
+ - '0.022144'
143
143
  Pragma:
144
144
  - no-cache
145
145
  X-Request-Id:
146
- - e6ca509241eee1d25e4989b0
146
+ - 53a7fdb85622ba480eb17df8
147
147
  X-Backend:
148
148
  - sbox-priv-gateway-a
149
149
  body:
150
150
  encoding: UTF-8
151
- string: '{"successful":true,"response":{"authorization":"1534036752","id":"071-R-WWN3PEEA","amount":10000,"refunded":"Approved","message":"Approved","card_holder":"Matthew
152
- Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-WWN3PEEA","reference":"3303f008f6a32c70eb6d509cd501189f","currency":"AUD","successful":true,"transaction_date":"2018-08-12T11:19:12+10:00","response_code":"00","settlement_date":"2018-08-13","metadata":{},"standalone":false,"rrn":"071RWWN3PEEA"},"errors":[],"test":true}'
151
+ string: '{"successful":true,"response":{"authorization":"1556529629","id":"071-R-8XBGTTPA","amount":10000,"refunded":"Approved","message":"Approved","card_holder":"Matthew
152
+ Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-8XBGTTPA","reference":"a01580a699b3c6b7f7cbb62940c5ac8e","currency":"AUD","successful":true,"transaction_date":"2019-04-29T19:20:29+10:00","response_code":"00","settlement_date":"2019-04-30","metadata":{},"standalone":false,"rrn":"071R8XBGTTPA"},"errors":[],"test":true}'
153
153
  http_version:
154
- recorded_at: Sun, 12 Aug 2018 01:19:09 GMT
154
+ recorded_at: Mon, 29 Apr 2019 09:20:29 GMT
155
155
  recorded_with: VCR 3.0.3
@@ -5,7 +5,7 @@ http_interactions:
5
5
  uri: https://gateway.sandbox.fatzebra.com.au/v1.0/purchases
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"amount":10000,"card_holder":"Matthew Savage","card_number":"5123456789012346","card_expiry":"02/2030","cvv":123,"reference":"ccb4fd0afc81450a7b72fb7ea34e6e83","customer_ip":"1.2.3.4","currency":"AUD","test":true}'
8
+ string: '{"amount":10000,"card_holder":"Matthew Savage","card_number":"5123456789012346","card_expiry":"02/2030","cvv":123,"reference":"7aecf66e4aea8cea7d0765623c57695a","customer_ip":"1.2.3.4","currency":"AUD","test":true}'
9
9
  headers:
10
10
  Accept-Encoding:
11
11
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
@@ -23,7 +23,7 @@ http_interactions:
23
23
  message: OK
24
24
  headers:
25
25
  Date:
26
- - Sun, 12 Aug 2018 01:19:13 GMT
26
+ - Mon, 29 Apr 2019 09:20:30 GMT
27
27
  Content-Type:
28
28
  - application/json; charset=utf-8
29
29
  Transfer-Encoding:
@@ -35,27 +35,27 @@ http_interactions:
35
35
  Cache-Control:
36
36
  - no-store
37
37
  X-Request-Version:
38
- - 1.16.9-3538@ea2e93d
38
+ - 1.16.9-3941@c1d8236
39
39
  X-Runtime:
40
- - '0.543971'
40
+ - '0.571804'
41
41
  Pragma:
42
42
  - no-cache
43
43
  X-Request-Id:
44
- - be71099006f4b723dfd24de6
44
+ - b3f97943439f80d612e1fa0a
45
45
  X-Backend:
46
46
  - sbox-priv-gateway-a
47
47
  body:
48
48
  encoding: UTF-8
49
- string: '{"successful":true,"response":{"authorization":"217319","id":"071-P-ZEW8I4TO","card_number":"512345XXXXXX2346","card_holder":"Matthew
50
- Savage","card_expiry":"2030-02-28","card_token":"fke8qcgn","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"ccb4fd0afc81450a7b72fb7ea34e6e83","currency":"AUD","transaction_id":"071-P-ZEW8I4TO","settlement_date":"2018-08-12","transaction_date":"2018-08-12T11:19:12+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071PZEW8I4TO","cvv_match":"M","metadata":{},"addendum_data":{}},"errors":[],"test":true}'
49
+ string: '{"successful":true,"response":{"authorization":"421928","id":"071-P-6J3C6GSK","card_number":"512345XXXXXX2346","card_holder":"Matthew
50
+ Savage","card_expiry":"2030-02-28","card_token":"xb76zmcplg6o0mukguki","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"7aecf66e4aea8cea7d0765623c57695a","currency":"AUD","transaction_id":"071-P-6J3C6GSK","settlement_date":"2019-04-29","transaction_date":"2019-04-29T19:20:30+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071P6J3C6GSK","cvv_match":"M","metadata":{"authorization_tracking_id":"","original_transaction_reference":""},"addendum_data":{}},"errors":[],"test":true}'
51
51
  http_version:
52
- recorded_at: Sun, 12 Aug 2018 01:19:10 GMT
52
+ recorded_at: Mon, 29 Apr 2019 09:20:30 GMT
53
53
  - request:
54
54
  method: post
55
55
  uri: https://gateway.sandbox.fatzebra.com.au/v1.0/refunds
56
56
  body:
57
57
  encoding: UTF-8
58
- string: '{"transaction_id":"071-P-ZEW8I4TO","amount":10000,"reference":"ccb4fd0afc81450a7b72fb7ea34e6e83","test":true}'
58
+ string: '{"transaction_id":"071-P-6J3C6GSK","amount":10000,"reference":"7aecf66e4aea8cea7d0765623c57695a","test":true}'
59
59
  headers:
60
60
  Accept-Encoding:
61
61
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
@@ -73,7 +73,7 @@ http_interactions:
73
73
  message: OK
74
74
  headers:
75
75
  Date:
76
- - Sun, 12 Aug 2018 01:19:13 GMT
76
+ - Mon, 29 Apr 2019 09:20:30 GMT
77
77
  Content-Type:
78
78
  - application/json; charset=utf-8
79
79
  Transfer-Encoding:
@@ -85,24 +85,24 @@ http_interactions:
85
85
  Cache-Control:
86
86
  - no-store
87
87
  X-Request-Version:
88
- - 1.16.9-3538@ea2e93d
88
+ - 1.16.9-3941@c1d8236
89
89
  X-Runtime:
90
- - '0.130261'
90
+ - '0.128243'
91
91
  Pragma:
92
92
  - no-cache
93
93
  X-Request-Id:
94
- - e0490071f46b221222f6d4b0
94
+ - bbd3ddeeba3b39965b5306fd
95
95
  X-Backend:
96
96
  - sbox-priv-gateway-a
97
97
  body:
98
98
  encoding: UTF-8
99
- string: '{"successful":true,"response":{"authorization":"1534036753","id":"071-R-E7H8PNI2","amount":10000,"refunded":"Approved","message":"Approved","card_holder":"Matthew
100
- Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-E7H8PNI2","reference":"ccb4fd0afc81450a7b72fb7ea34e6e83","currency":"AUD","successful":true,"transaction_date":"2018-08-12T11:19:13+10:00","response_code":"00","settlement_date":"2018-08-13","metadata":{},"standalone":false,"rrn":"071RE7H8PNI2"},"errors":[],"test":true}'
99
+ string: '{"successful":true,"response":{"authorization":"1556529630","id":"071-R-BREDWHM9","amount":10000,"refunded":"Approved","message":"Approved","card_holder":"Matthew
100
+ Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-BREDWHM9","reference":"7aecf66e4aea8cea7d0765623c57695a","currency":"AUD","successful":true,"transaction_date":"2019-04-29T19:20:30+10:00","response_code":"00","settlement_date":"2019-04-30","metadata":{},"standalone":false,"rrn":"071RBREDWHM9"},"errors":[],"test":true}'
101
101
  http_version:
102
- recorded_at: Sun, 12 Aug 2018 01:19:10 GMT
102
+ recorded_at: Mon, 29 Apr 2019 09:20:30 GMT
103
103
  - request:
104
104
  method: get
105
- uri: https://gateway.sandbox.fatzebra.com.au/v1.0/refunds/ccb4fd0afc81450a7b72fb7ea34e6e83?test=true
105
+ uri: https://gateway.sandbox.fatzebra.com.au/v1.0/refunds/7aecf66e4aea8cea7d0765623c57695a?test=true
106
106
  body:
107
107
  encoding: US-ASCII
108
108
  string: ''
@@ -125,7 +125,7 @@ http_interactions:
125
125
  message: OK
126
126
  headers:
127
127
  Date:
128
- - Sun, 12 Aug 2018 01:19:13 GMT
128
+ - Mon, 29 Apr 2019 09:20:30 GMT
129
129
  Content-Type:
130
130
  - application/json; charset=utf-8
131
131
  Transfer-Encoding:
@@ -137,19 +137,19 @@ http_interactions:
137
137
  Cache-Control:
138
138
  - no-store
139
139
  X-Request-Version:
140
- - 1.16.9-3538@ea2e93d
140
+ - 1.16.9-3941@c1d8236
141
141
  X-Runtime:
142
- - '0.020501'
142
+ - '0.030167'
143
143
  Pragma:
144
144
  - no-cache
145
145
  X-Request-Id:
146
- - 2f556dd615614455dcf85da0
146
+ - 947e84bc1526c7b06a5cba68
147
147
  X-Backend:
148
148
  - sbox-priv-gateway-a
149
149
  body:
150
150
  encoding: UTF-8
151
- string: '{"successful":true,"response":{"authorization":"1534036753","id":"071-R-E7H8PNI2","amount":10000,"refunded":"Approved","message":"Approved","card_holder":"Matthew
152
- Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-E7H8PNI2","reference":"ccb4fd0afc81450a7b72fb7ea34e6e83","currency":"AUD","successful":true,"transaction_date":"2018-08-12T11:19:13+10:00","response_code":"00","settlement_date":"2018-08-13","metadata":{},"standalone":false,"rrn":"071RE7H8PNI2"},"errors":[],"test":true}'
151
+ string: '{"successful":true,"response":{"authorization":"1556529630","id":"071-R-BREDWHM9","amount":10000,"refunded":"Approved","message":"Approved","card_holder":"Matthew
152
+ Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-BREDWHM9","reference":"7aecf66e4aea8cea7d0765623c57695a","currency":"AUD","successful":true,"transaction_date":"2019-04-29T19:20:30+10:00","response_code":"00","settlement_date":"2019-04-30","metadata":{},"standalone":false,"rrn":"071RBREDWHM9"},"errors":[],"test":true}'
153
153
  http_version:
154
- recorded_at: Sun, 12 Aug 2018 01:19:10 GMT
154
+ recorded_at: Mon, 29 Apr 2019 09:20:30 GMT
155
155
  recorded_with: VCR 3.0.3