fat_zebra 3.0.11 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +3 -5
- data/.travis.yml +1 -2
- data/README.md +1 -1
- data/fat_zebra.gemspec +1 -1
- data/lib/fat_zebra/api_operation/search.rb +1 -1
- data/lib/fat_zebra/direct_credit.rb +1 -1
- data/lib/fat_zebra/direct_debit.rb +1 -1
- data/lib/fat_zebra/refund.rb +4 -0
- data/lib/fat_zebra/validation.rb +4 -0
- data/lib/fat_zebra/version.rb +1 -1
- data/spec/cassettes/FatZebra_BankAccount/_search/1_2_1.yml +34 -52
- data/spec/cassettes/FatZebra_BankAccount/_search/1_2_2.yml +34 -52
- data/spec/cassettes/FatZebra_BankAccount/_search/1_2_3.yml +34 -52
- data/spec/cassettes/FatZebra_Batch/_search/1_3_1.yml +8 -14
- data/spec/cassettes/FatZebra_Batch/_search/1_3_2.yml +8 -14
- data/spec/cassettes/FatZebra_Batch/_search/1_3_3.yml +8 -14
- data/spec/cassettes/FatZebra_Customer/_search/1_2_1.yml +18 -24
- data/spec/cassettes/FatZebra_Customer/_search/1_2_2.yml +18 -24
- data/spec/cassettes/FatZebra_Customer/_search/1_2_3.yml +18 -24
- data/spec/cassettes/FatZebra_DirectCredit/_find/1_2_3.yml +103 -0
- data/spec/cassettes/FatZebra_DirectCredit/_search/1_3_1.yml +22 -40
- data/spec/cassettes/FatZebra_DirectCredit/_search/1_3_2.yml +22 -40
- data/spec/cassettes/FatZebra_DirectDebit/_create/validations/failed_with_non-float/1_1_5_3_1.yml +52 -0
- data/spec/cassettes/FatZebra_DirectDebit/_find/1_2_3.yml +103 -0
- data/spec/cassettes/FatZebra_DirectDebit/_search/1_3_1.yml +22 -40
- data/spec/cassettes/FatZebra_DirectDebit/_search/1_3_2.yml +22 -40
- data/spec/cassettes/FatZebra_PaymentPlan/_active_/1_8_1.yml +52 -76
- data/spec/cassettes/FatZebra_PaymentPlan/_active_/1_8_2.yml +52 -76
- data/spec/cassettes/FatZebra_PaymentPlan/_create/1_1_1.yml +22 -34
- data/spec/cassettes/FatZebra_PaymentPlan/_create/1_1_2.yml +22 -34
- data/spec/cassettes/FatZebra_PaymentPlan/_create/1_1_3.yml +22 -34
- data/spec/cassettes/FatZebra_PaymentPlan/_delete/1_5_1.yml +31 -49
- data/spec/cassettes/FatZebra_PaymentPlan/_destroy/1_6_1.yml +31 -49
- data/spec/cassettes/FatZebra_PaymentPlan/_find/1_2_1.yml +35 -53
- data/spec/cassettes/FatZebra_PaymentPlan/_find/1_2_2.yml +35 -53
- data/spec/cassettes/FatZebra_PaymentPlan/_find/1_2_3.yml +35 -53
- data/spec/cassettes/FatZebra_PaymentPlan/_suspend_/1_7_1.yml +37 -55
- data/spec/cassettes/FatZebra_PaymentPlan/_suspend_/1_7_2.yml +37 -55
- data/spec/cassettes/FatZebra_PaymentPlan/_update/1_3_1.yml +31 -49
- data/spec/cassettes/FatZebra_PaymentPlan/_update/1_3_2.yml +31 -49
- data/spec/cassettes/FatZebra_PaymentPlan/_update/1_3_3.yml +31 -49
- data/spec/cassettes/FatZebra_PaymentPlan/_update/1_4_1.yml +37 -55
- data/spec/cassettes/FatZebra_PaymentPlan/_update/1_4_2.yml +37 -55
- data/spec/cassettes/FatZebra_Purchase/_search/1_3_1.yml +36 -54
- data/spec/cassettes/FatZebra_Purchase/_search/1_3_2.yml +36 -54
- data/spec/cassettes/FatZebra_Purchase/_search/1_3_3.yml +36 -54
- data/spec/cassettes/FatZebra_Refund/_create/1_1_1.yml +18 -30
- data/spec/cassettes/FatZebra_Refund/_create/1_1_10.yml +18 -30
- data/spec/cassettes/FatZebra_Refund/_create/1_1_2.yml +18 -30
- data/spec/cassettes/FatZebra_Refund/_create/1_1_3.yml +18 -30
- data/spec/cassettes/FatZebra_Refund/_create/1_1_4.yml +18 -30
- data/spec/cassettes/FatZebra_Refund/_create/1_1_5.yml +18 -30
- data/spec/cassettes/FatZebra_Refund/_create/1_1_6.yml +18 -30
- data/spec/cassettes/FatZebra_Refund/_create/1_1_7.yml +18 -30
- data/spec/cassettes/FatZebra_Refund/_create/1_1_8.yml +18 -30
- data/spec/cassettes/FatZebra_Refund/_create/1_1_9.yml +18 -30
- data/spec/cassettes/FatZebra_Refund/_find/1_2_1.yml +27 -45
- data/spec/cassettes/FatZebra_Refund/_find/1_2_2.yml +27 -45
- data/spec/cassettes/FatZebra_Refund/_find/1_2_3.yml +27 -45
- data/spec/cassettes/FatZebra_Refund/_search/responds_with_the_newly-created_refunds.yml +214 -0
- data/spec/cassettes/FatZebra_Refund/_void/1_4_1.yml +27 -45
- data/spec/cassettes/FatZebra_Refund/_void/1_4_2.yml +27 -45
- data/spec/cassettes/FatZebra_Refund/_void/1_4_3.yml +27 -45
- data/spec/cassettes/FatZebra_Refund/_void/1_4_4.yml +27 -45
- data/spec/cassettes/FatZebra_WebHook/_search/1_2_1.yml +138 -93
- data/spec/cassettes/FatZebra_WebHook/_search/1_2_2.yml +140 -95
- data/spec/lib/fat_zebra/direct_credit_spec.rb +14 -1
- data/spec/lib/fat_zebra/direct_debit_spec.rb +14 -1
- data/spec/lib/fat_zebra/payment_plan_spec.rb +1 -1
- data/spec/lib/fat_zebra/refund_spec.rb +36 -16
- metadata +9 -7
- data/spec/cassettes/FatZebra_Refund/_search/1_3_1.yml +0 -295
- data/spec/cassettes/FatZebra_Refund/_search/1_3_2.yml +0 -295
@@ -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":"
|
8
|
+
string: '{"amount":10000,"card_holder":"Matthew Savage","card_number":"5123456789012346","card_expiry":"02/2030","cvv":123,"reference":"db1041c1cd95fc4737a4fa96c993623e","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
|
-
-
|
26
|
+
- Sun, 12 Aug 2018 01:19:13 GMT
|
27
27
|
Content-Type:
|
28
28
|
- application/json; charset=utf-8
|
29
29
|
Transfer-Encoding:
|
@@ -35,33 +35,27 @@ http_interactions:
|
|
35
35
|
Cache-Control:
|
36
36
|
- no-store
|
37
37
|
X-Request-Version:
|
38
|
-
- 1.16.9-
|
38
|
+
- 1.16.9-3538@ea2e93d
|
39
|
+
X-Runtime:
|
40
|
+
- '0.521779'
|
39
41
|
Pragma:
|
40
42
|
- no-cache
|
41
|
-
X-Xss-Protection:
|
42
|
-
- 1; mode=block
|
43
43
|
X-Request-Id:
|
44
|
-
-
|
45
|
-
X-Runtime:
|
46
|
-
- '0.525204'
|
47
|
-
X-Frame-Options:
|
48
|
-
- SAMEORIGIN
|
49
|
-
X-Content-Type-Options:
|
50
|
-
- nosniff
|
44
|
+
- a32b835dbac96ace1ae22a60
|
51
45
|
X-Backend:
|
52
46
|
- sbox-priv-gateway-a
|
53
47
|
body:
|
54
48
|
encoding: UTF-8
|
55
|
-
string: '{"successful":true,"response":{"authorization":"
|
56
|
-
Savage","card_expiry":"2030-02-28","card_token":"
|
49
|
+
string: '{"successful":true,"response":{"authorization":"197632","id":"071-P-EDLD64XQ","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
50
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke8k0po","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"db1041c1cd95fc4737a4fa96c993623e","currency":"AUD","transaction_id":"071-P-EDLD64XQ","settlement_date":"2018-08-12","transaction_date":"2018-08-12T11:19:13+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071PEDLD64XQ","cvv_match":"M","metadata":{},"addendum_data":{}},"errors":[],"test":true}'
|
57
51
|
http_version:
|
58
|
-
recorded_at:
|
52
|
+
recorded_at: Sun, 12 Aug 2018 01:19:11 GMT
|
59
53
|
- request:
|
60
54
|
method: post
|
61
55
|
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/refunds
|
62
56
|
body:
|
63
57
|
encoding: UTF-8
|
64
|
-
string: '{"transaction_id":"071-P-
|
58
|
+
string: '{"transaction_id":"071-P-EDLD64XQ","amount":10000,"reference":"db1041c1cd95fc4737a4fa96c993623e","test":true}'
|
65
59
|
headers:
|
66
60
|
Accept-Encoding:
|
67
61
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
@@ -79,7 +73,7 @@ http_interactions:
|
|
79
73
|
message: OK
|
80
74
|
headers:
|
81
75
|
Date:
|
82
|
-
-
|
76
|
+
- Sun, 12 Aug 2018 01:19:14 GMT
|
83
77
|
Content-Type:
|
84
78
|
- application/json; charset=utf-8
|
85
79
|
Transfer-Encoding:
|
@@ -91,30 +85,24 @@ http_interactions:
|
|
91
85
|
Cache-Control:
|
92
86
|
- no-store
|
93
87
|
X-Request-Version:
|
94
|
-
- 1.16.9-
|
88
|
+
- 1.16.9-3538@ea2e93d
|
89
|
+
X-Runtime:
|
90
|
+
- '0.138058'
|
95
91
|
Pragma:
|
96
92
|
- no-cache
|
97
|
-
X-Xss-Protection:
|
98
|
-
- 1; mode=block
|
99
93
|
X-Request-Id:
|
100
|
-
-
|
101
|
-
X-Runtime:
|
102
|
-
- '0.151226'
|
103
|
-
X-Frame-Options:
|
104
|
-
- SAMEORIGIN
|
105
|
-
X-Content-Type-Options:
|
106
|
-
- nosniff
|
94
|
+
- 03d4f72fd59b561275b18837
|
107
95
|
X-Backend:
|
108
96
|
- sbox-priv-gateway-a
|
109
97
|
body:
|
110
98
|
encoding: UTF-8
|
111
|
-
string: '{"successful":true,"response":{"authorization":"
|
112
|
-
Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-
|
99
|
+
string: '{"successful":true,"response":{"authorization":"1534036754","id":"071-R-DLMJKB1V","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-DLMJKB1V","reference":"db1041c1cd95fc4737a4fa96c993623e","currency":"AUD","successful":true,"transaction_date":"2018-08-12T11:19:14+10:00","response_code":"00","settlement_date":"2018-08-13","metadata":{},"standalone":false,"rrn":"071RDLMJKB1V"},"errors":[],"test":true}'
|
113
101
|
http_version:
|
114
|
-
recorded_at:
|
102
|
+
recorded_at: Sun, 12 Aug 2018 01:19:11 GMT
|
115
103
|
- request:
|
116
104
|
method: get
|
117
|
-
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/refunds/
|
105
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/refunds/db1041c1cd95fc4737a4fa96c993623e?test=true
|
118
106
|
body:
|
119
107
|
encoding: US-ASCII
|
120
108
|
string: ''
|
@@ -137,7 +125,7 @@ http_interactions:
|
|
137
125
|
message: OK
|
138
126
|
headers:
|
139
127
|
Date:
|
140
|
-
-
|
128
|
+
- Sun, 12 Aug 2018 01:19:14 GMT
|
141
129
|
Content-Type:
|
142
130
|
- application/json; charset=utf-8
|
143
131
|
Transfer-Encoding:
|
@@ -149,25 +137,19 @@ http_interactions:
|
|
149
137
|
Cache-Control:
|
150
138
|
- no-store
|
151
139
|
X-Request-Version:
|
152
|
-
- 1.16.9-
|
140
|
+
- 1.16.9-3538@ea2e93d
|
141
|
+
X-Runtime:
|
142
|
+
- '0.023120'
|
153
143
|
Pragma:
|
154
144
|
- no-cache
|
155
|
-
X-Xss-Protection:
|
156
|
-
- 1; mode=block
|
157
145
|
X-Request-Id:
|
158
|
-
-
|
159
|
-
X-Runtime:
|
160
|
-
- '0.016596'
|
161
|
-
X-Frame-Options:
|
162
|
-
- SAMEORIGIN
|
163
|
-
X-Content-Type-Options:
|
164
|
-
- nosniff
|
146
|
+
- e222c038706d4548f73687a7
|
165
147
|
X-Backend:
|
166
148
|
- sbox-priv-gateway-a
|
167
149
|
body:
|
168
150
|
encoding: UTF-8
|
169
|
-
string: '{"successful":true,"response":{"authorization":"
|
170
|
-
Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-
|
151
|
+
string: '{"successful":true,"response":{"authorization":"1534036754","id":"071-R-DLMJKB1V","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-DLMJKB1V","reference":"db1041c1cd95fc4737a4fa96c993623e","currency":"AUD","successful":true,"transaction_date":"2018-08-12T11:19:14+10:00","response_code":"00","settlement_date":"2018-08-13","metadata":{},"standalone":false,"rrn":"071RDLMJKB1V"},"errors":[],"test":true}'
|
171
153
|
http_version:
|
172
|
-
recorded_at:
|
154
|
+
recorded_at: Sun, 12 Aug 2018 01:19:11 GMT
|
173
155
|
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,214 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/purchases
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"amount":10000,"card_holder":"Matthew Savage","card_number":"5123456789012346","card_expiry":"02/2030","cvv":123,"reference":"1fc72fa6f1dd23353ed5af9ccc2df5ae","customer_ip":"1.2.3.4","currency":"AUD","test":true}'
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- application/json
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
Authorization:
|
17
|
+
- Basic VEVTVDpURVNU
|
18
|
+
Content-Type:
|
19
|
+
- application/json
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Date:
|
26
|
+
- Sun, 12 Aug 2018 01:19:15 GMT
|
27
|
+
Content-Type:
|
28
|
+
- application/json; charset=utf-8
|
29
|
+
Transfer-Encoding:
|
30
|
+
- chunked
|
31
|
+
Connection:
|
32
|
+
- keep-alive
|
33
|
+
Status:
|
34
|
+
- 200 OK
|
35
|
+
Cache-Control:
|
36
|
+
- no-store
|
37
|
+
X-Request-Version:
|
38
|
+
- 1.16.9-3538@ea2e93d
|
39
|
+
X-Runtime:
|
40
|
+
- '0.555373'
|
41
|
+
Pragma:
|
42
|
+
- no-cache
|
43
|
+
X-Request-Id:
|
44
|
+
- ec3a760b62713fece2cf72d6
|
45
|
+
X-Backend:
|
46
|
+
- sbox-priv-gateway-a
|
47
|
+
body:
|
48
|
+
encoding: UTF-8
|
49
|
+
string: '{"successful":true,"response":{"authorization":"730266","id":"071-P-8Y0KKNH3","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
50
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke8fhu9","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"1fc72fa6f1dd23353ed5af9ccc2df5ae","currency":"AUD","transaction_id":"071-P-8Y0KKNH3","settlement_date":"2018-08-12","transaction_date":"2018-08-12T11:19:14+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071P8Y0KKNH3","cvv_match":"M","metadata":{},"addendum_data":{}},"errors":[],"test":true}'
|
51
|
+
http_version:
|
52
|
+
recorded_at: Sun, 12 Aug 2018 01:19:12 GMT
|
53
|
+
- request:
|
54
|
+
method: post
|
55
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/refunds
|
56
|
+
body:
|
57
|
+
encoding: UTF-8
|
58
|
+
string: '{"amount":1000,"reference":"3239271584d784f0b24f7d2e7809002f","transaction_id":"071-P-8Y0KKNH3","test":true}'
|
59
|
+
headers:
|
60
|
+
Accept-Encoding:
|
61
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
62
|
+
Accept:
|
63
|
+
- application/json
|
64
|
+
User-Agent:
|
65
|
+
- Ruby
|
66
|
+
Authorization:
|
67
|
+
- Basic VEVTVDpURVNU
|
68
|
+
Content-Type:
|
69
|
+
- application/json
|
70
|
+
response:
|
71
|
+
status:
|
72
|
+
code: 200
|
73
|
+
message: OK
|
74
|
+
headers:
|
75
|
+
Date:
|
76
|
+
- Sun, 12 Aug 2018 01:19:15 GMT
|
77
|
+
Content-Type:
|
78
|
+
- application/json; charset=utf-8
|
79
|
+
Transfer-Encoding:
|
80
|
+
- chunked
|
81
|
+
Connection:
|
82
|
+
- keep-alive
|
83
|
+
Status:
|
84
|
+
- 200 OK
|
85
|
+
Cache-Control:
|
86
|
+
- no-store
|
87
|
+
X-Request-Version:
|
88
|
+
- 1.16.9-3538@ea2e93d
|
89
|
+
X-Runtime:
|
90
|
+
- '0.155358'
|
91
|
+
Pragma:
|
92
|
+
- no-cache
|
93
|
+
X-Request-Id:
|
94
|
+
- 43fa81be73104d4a1ac1ba6a
|
95
|
+
X-Backend:
|
96
|
+
- sbox-priv-gateway-a
|
97
|
+
body:
|
98
|
+
encoding: UTF-8
|
99
|
+
string: '{"successful":true,"response":{"authorization":"1534036755","id":"071-R-NEB8NFZX","amount":1000,"refunded":"Approved","message":"Approved","card_holder":"Matthew
|
100
|
+
Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-NEB8NFZX","reference":"3239271584d784f0b24f7d2e7809002f","currency":"AUD","successful":true,"transaction_date":"2018-08-12T11:19:15+10:00","response_code":"00","settlement_date":"2018-08-13","metadata":{},"standalone":false,"rrn":"071RNEB8NFZX"},"errors":[],"test":true}'
|
101
|
+
http_version:
|
102
|
+
recorded_at: Sun, 12 Aug 2018 01:19:12 GMT
|
103
|
+
- request:
|
104
|
+
method: post
|
105
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/refunds
|
106
|
+
body:
|
107
|
+
encoding: UTF-8
|
108
|
+
string: '{"amount":1000,"reference":"058b86f58552a1a03c3ea417a25c4223","transaction_id":"071-P-8Y0KKNH3","test":true}'
|
109
|
+
headers:
|
110
|
+
Accept-Encoding:
|
111
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
112
|
+
Accept:
|
113
|
+
- application/json
|
114
|
+
User-Agent:
|
115
|
+
- Ruby
|
116
|
+
Authorization:
|
117
|
+
- Basic VEVTVDpURVNU
|
118
|
+
Content-Type:
|
119
|
+
- application/json
|
120
|
+
response:
|
121
|
+
status:
|
122
|
+
code: 200
|
123
|
+
message: OK
|
124
|
+
headers:
|
125
|
+
Date:
|
126
|
+
- Sun, 12 Aug 2018 01:19:15 GMT
|
127
|
+
Content-Type:
|
128
|
+
- application/json; charset=utf-8
|
129
|
+
Transfer-Encoding:
|
130
|
+
- chunked
|
131
|
+
Connection:
|
132
|
+
- keep-alive
|
133
|
+
Status:
|
134
|
+
- 200 OK
|
135
|
+
Cache-Control:
|
136
|
+
- no-store
|
137
|
+
X-Request-Version:
|
138
|
+
- 1.16.9-3538@ea2e93d
|
139
|
+
X-Runtime:
|
140
|
+
- '0.124220'
|
141
|
+
Pragma:
|
142
|
+
- no-cache
|
143
|
+
X-Request-Id:
|
144
|
+
- f926a12445d49da0d4fb5a8c
|
145
|
+
X-Backend:
|
146
|
+
- sbox-priv-gateway-a
|
147
|
+
body:
|
148
|
+
encoding: UTF-8
|
149
|
+
string: '{"successful":true,"response":{"authorization":"1534036755","id":"071-R-D3SVQAZZ","amount":1000,"refunded":"Approved","message":"Approved","card_holder":"Matthew
|
150
|
+
Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-D3SVQAZZ","reference":"058b86f58552a1a03c3ea417a25c4223","currency":"AUD","successful":true,"transaction_date":"2018-08-12T11:19:15+10:00","response_code":"00","settlement_date":"2018-08-13","metadata":{},"standalone":false,"rrn":"071RD3SVQAZZ"},"errors":[],"test":true}'
|
151
|
+
http_version:
|
152
|
+
recorded_at: Sun, 12 Aug 2018 01:19:13 GMT
|
153
|
+
- request:
|
154
|
+
method: get
|
155
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/refunds?limit=10&offset=0&test=true
|
156
|
+
body:
|
157
|
+
encoding: US-ASCII
|
158
|
+
string: ''
|
159
|
+
headers:
|
160
|
+
Accept-Encoding:
|
161
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
162
|
+
Accept:
|
163
|
+
- application/json
|
164
|
+
User-Agent:
|
165
|
+
- Ruby
|
166
|
+
Host:
|
167
|
+
- gateway.sandbox.fatzebra.com.au
|
168
|
+
Authorization:
|
169
|
+
- Basic VEVTVDpURVNU
|
170
|
+
Content-Type:
|
171
|
+
- application/json
|
172
|
+
response:
|
173
|
+
status:
|
174
|
+
code: 200
|
175
|
+
message: OK
|
176
|
+
headers:
|
177
|
+
Date:
|
178
|
+
- Sun, 12 Aug 2018 01:19:15 GMT
|
179
|
+
Content-Type:
|
180
|
+
- application/json; charset=utf-8
|
181
|
+
Transfer-Encoding:
|
182
|
+
- chunked
|
183
|
+
Connection:
|
184
|
+
- keep-alive
|
185
|
+
Status:
|
186
|
+
- 200 OK
|
187
|
+
Cache-Control:
|
188
|
+
- no-store
|
189
|
+
X-Request-Version:
|
190
|
+
- 1.16.9-3538@ea2e93d
|
191
|
+
X-Runtime:
|
192
|
+
- '0.052536'
|
193
|
+
Pragma:
|
194
|
+
- no-cache
|
195
|
+
X-Request-Id:
|
196
|
+
- '0197377ebf5a85b46b3e0e1e'
|
197
|
+
X-Backend:
|
198
|
+
- sbox-priv-gateway-a
|
199
|
+
body:
|
200
|
+
encoding: UTF-8
|
201
|
+
string: '{"successful":true,"response":[{"authorization":"1534036755","id":"071-R-D3SVQAZZ","amount":1000,"refunded":"Approved","message":"Approved","card_holder":"Matthew
|
202
|
+
Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-D3SVQAZZ","reference":"058b86f58552a1a03c3ea417a25c4223","currency":"AUD","successful":true,"transaction_date":"2018-08-12T11:19:15+10:00","response_code":"00","settlement_date":"2018-08-13","metadata":{},"standalone":false,"rrn":"071RD3SVQAZZ"},{"authorization":"1534036755","id":"071-R-NEB8NFZX","amount":1000,"refunded":"Approved","message":"Approved","card_holder":"Matthew
|
203
|
+
Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-NEB8NFZX","reference":"3239271584d784f0b24f7d2e7809002f","currency":"AUD","successful":true,"transaction_date":"2018-08-12T11:19:15+10:00","response_code":"00","settlement_date":"2018-08-13","metadata":{},"standalone":false,"rrn":"071RNEB8NFZX"},{"authorization":"1534036754","id":"071-R-DLMJKB1V","amount":10000,"refunded":"Approved","message":"Approved","card_holder":"Matthew
|
204
|
+
Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-DLMJKB1V","reference":"db1041c1cd95fc4737a4fa96c993623e","currency":"AUD","successful":true,"transaction_date":"2018-08-12T11:19:14+10:00","response_code":"00","settlement_date":"2018-08-13","metadata":{},"standalone":false,"rrn":"071RDLMJKB1V"},{"authorization":"1534036753","id":"071-R-E7H8PNI2","amount":10000,"refunded":"Approved","message":"Approved","card_holder":"Matthew
|
205
|
+
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"},{"authorization":"1534036752","id":"071-R-WWN3PEEA","amount":10000,"refunded":"Approved","message":"Approved","card_holder":"Matthew
|
206
|
+
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"},{"authorization":"1534036751","id":"071-R-CLAJGUMB","amount":10000,"refunded":"Approved","message":"Approved","card_holder":"Matthew
|
207
|
+
Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-CLAJGUMB","reference":"fa83fc58069f387bca0b6eea68414c5f","currency":"AUD","successful":true,"transaction_date":"2018-08-12T11:19:11+10:00","response_code":"00","settlement_date":"2018-08-13","metadata":{},"standalone":false,"rrn":"071RCLAJGUMB"},{"authorization":"1534036750","id":"071-R-7OAIZ20G","amount":10000,"refunded":"Approved","message":"Approved","card_holder":"Matthew
|
208
|
+
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"},{"authorization":"1534036749","id":"071-R-L5EY4P9C","amount":10000,"refunded":"Approved","message":"Approved","card_holder":"Matthew
|
209
|
+
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"},{"authorization":"1534036748","id":"071-R-DVURFWQ8","amount":10000,"refunded":"Approved","message":"Approved","card_holder":"Matthew
|
210
|
+
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"},{"authorization":"1534036747","id":"071-R-AU2UTXG3","amount":10000,"refunded":"Approved","message":"Approved","card_holder":"Matthew
|
211
|
+
Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-AU2UTXG3","reference":"03a830ce46e2f48f65281f0f3469b86e","currency":"AUD","successful":true,"transaction_date":"2018-08-12T11:19:07+10:00","response_code":"00","settlement_date":"2018-08-13","metadata":{},"standalone":false,"rrn":"071RAU2UTXG3"}],"errors":[],"test":true,"records":10,"total_records":23749,"page":0,"total_pages":2375}'
|
212
|
+
http_version:
|
213
|
+
recorded_at: Sun, 12 Aug 2018 01:19:13 GMT
|
214
|
+
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":"
|
8
|
+
string: '{"amount":10000,"card_holder":"Matthew Savage","card_number":"5123456789012346","card_expiry":"02/2030","cvv":123,"reference":"4bfc0e53b90a6bea7d8c2bf2304cdd61","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
|
-
-
|
26
|
+
- Sun, 12 Aug 2018 01:19:16 GMT
|
27
27
|
Content-Type:
|
28
28
|
- application/json; charset=utf-8
|
29
29
|
Transfer-Encoding:
|
@@ -35,33 +35,27 @@ http_interactions:
|
|
35
35
|
Cache-Control:
|
36
36
|
- no-store
|
37
37
|
X-Request-Version:
|
38
|
-
- 1.16.9-
|
38
|
+
- 1.16.9-3538@ea2e93d
|
39
|
+
X-Runtime:
|
40
|
+
- '0.527379'
|
39
41
|
Pragma:
|
40
42
|
- no-cache
|
41
|
-
X-Xss-Protection:
|
42
|
-
- 1; mode=block
|
43
43
|
X-Request-Id:
|
44
|
-
-
|
45
|
-
X-Runtime:
|
46
|
-
- '0.508371'
|
47
|
-
X-Frame-Options:
|
48
|
-
- SAMEORIGIN
|
49
|
-
X-Content-Type-Options:
|
50
|
-
- nosniff
|
44
|
+
- 6825798ab557eda05b4f3a26
|
51
45
|
X-Backend:
|
52
46
|
- sbox-priv-gateway-a
|
53
47
|
body:
|
54
48
|
encoding: UTF-8
|
55
|
-
string: '{"successful":true,"response":{"authorization":"
|
56
|
-
Savage","card_expiry":"2030-02-28","card_token":"
|
49
|
+
string: '{"successful":true,"response":{"authorization":"579581","id":"071-P-578RUUXI","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
50
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke8j2pa","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"4bfc0e53b90a6bea7d8c2bf2304cdd61","currency":"AUD","transaction_id":"071-P-578RUUXI","settlement_date":"2018-08-12","transaction_date":"2018-08-12T11:19:16+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071P578RUUXI","cvv_match":"M","metadata":{},"addendum_data":{}},"errors":[],"test":true}'
|
57
51
|
http_version:
|
58
|
-
recorded_at:
|
52
|
+
recorded_at: Sun, 12 Aug 2018 01:19:13 GMT
|
59
53
|
- request:
|
60
54
|
method: post
|
61
55
|
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/refunds
|
62
56
|
body:
|
63
57
|
encoding: UTF-8
|
64
|
-
string: '{"transaction_id":"071-P-
|
58
|
+
string: '{"transaction_id":"071-P-578RUUXI","amount":10000,"reference":"4bfc0e53b90a6bea7d8c2bf2304cdd61","test":true}'
|
65
59
|
headers:
|
66
60
|
Accept-Encoding:
|
67
61
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
@@ -79,7 +73,7 @@ http_interactions:
|
|
79
73
|
message: OK
|
80
74
|
headers:
|
81
75
|
Date:
|
82
|
-
-
|
76
|
+
- Sun, 12 Aug 2018 01:19:16 GMT
|
83
77
|
Content-Type:
|
84
78
|
- application/json; charset=utf-8
|
85
79
|
Transfer-Encoding:
|
@@ -91,33 +85,27 @@ http_interactions:
|
|
91
85
|
Cache-Control:
|
92
86
|
- no-store
|
93
87
|
X-Request-Version:
|
94
|
-
- 1.16.9-
|
88
|
+
- 1.16.9-3538@ea2e93d
|
89
|
+
X-Runtime:
|
90
|
+
- '0.132239'
|
95
91
|
Pragma:
|
96
92
|
- no-cache
|
97
|
-
X-Xss-Protection:
|
98
|
-
- 1; mode=block
|
99
93
|
X-Request-Id:
|
100
|
-
-
|
101
|
-
X-Runtime:
|
102
|
-
- '0.122000'
|
103
|
-
X-Frame-Options:
|
104
|
-
- SAMEORIGIN
|
105
|
-
X-Content-Type-Options:
|
106
|
-
- nosniff
|
94
|
+
- 76d12fcafe8b5380bcb23dc5
|
107
95
|
X-Backend:
|
108
96
|
- sbox-priv-gateway-a
|
109
97
|
body:
|
110
98
|
encoding: UTF-8
|
111
|
-
string: '{"successful":true,"response":{"authorization":"
|
112
|
-
Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-
|
99
|
+
string: '{"successful":true,"response":{"authorization":"1534036756","id":"071-R-A46JQ2P7","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-A46JQ2P7","reference":"4bfc0e53b90a6bea7d8c2bf2304cdd61","currency":"AUD","successful":true,"transaction_date":"2018-08-12T11:19:16+10:00","response_code":"00","settlement_date":"2018-08-13","metadata":{},"standalone":false,"rrn":"071RA46JQ2P7"},"errors":[],"test":true}'
|
113
101
|
http_version:
|
114
|
-
recorded_at:
|
102
|
+
recorded_at: Sun, 12 Aug 2018 01:19:14 GMT
|
115
103
|
- request:
|
116
104
|
method: post
|
117
105
|
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/refunds/void
|
118
106
|
body:
|
119
107
|
encoding: UTF-8
|
120
|
-
string: '{"id":"071-R-
|
108
|
+
string: '{"id":"071-R-A46JQ2P7","test":true}'
|
121
109
|
headers:
|
122
110
|
Accept-Encoding:
|
123
111
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
@@ -135,7 +123,7 @@ http_interactions:
|
|
135
123
|
message: OK
|
136
124
|
headers:
|
137
125
|
Date:
|
138
|
-
-
|
126
|
+
- Sun, 12 Aug 2018 01:19:16 GMT
|
139
127
|
Content-Type:
|
140
128
|
- application/json; charset=utf-8
|
141
129
|
Transfer-Encoding:
|
@@ -147,25 +135,19 @@ http_interactions:
|
|
147
135
|
Cache-Control:
|
148
136
|
- no-store
|
149
137
|
X-Request-Version:
|
150
|
-
- 1.16.9-
|
138
|
+
- 1.16.9-3538@ea2e93d
|
139
|
+
X-Runtime:
|
140
|
+
- '0.052802'
|
151
141
|
Pragma:
|
152
142
|
- no-cache
|
153
|
-
X-Xss-Protection:
|
154
|
-
- 1; mode=block
|
155
143
|
X-Request-Id:
|
156
|
-
-
|
157
|
-
X-Runtime:
|
158
|
-
- '0.044891'
|
159
|
-
X-Frame-Options:
|
160
|
-
- SAMEORIGIN
|
161
|
-
X-Content-Type-Options:
|
162
|
-
- nosniff
|
144
|
+
- e8e96fbaf97ba3ff4d6504c2
|
163
145
|
X-Backend:
|
164
146
|
- sbox-priv-gateway-a
|
165
147
|
body:
|
166
148
|
encoding: UTF-8
|
167
|
-
string: '{"successful":true,"response":{"authorization":"
|
168
|
-
Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-
|
149
|
+
string: '{"successful":true,"response":{"authorization":"1534036756","id":"071-R-A46JQ2P7","amount":10000,"refunded":"Voided","message":"Voided","card_holder":"Matthew
|
150
|
+
Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-A46JQ2P7","reference":"4bfc0e53b90a6bea7d8c2bf2304cdd61","currency":"AUD","successful":false,"transaction_date":"2018-08-12T11:19:16+10:00","response_code":"00","settlement_date":"2018-08-13","metadata":{},"standalone":false,"rrn":"071RA46JQ2P7"},"errors":[],"test":true}'
|
169
151
|
http_version:
|
170
|
-
recorded_at:
|
152
|
+
recorded_at: Sun, 12 Aug 2018 01:19:14 GMT
|
171
153
|
recorded_with: VCR 3.0.3
|