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/customers
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: '{"first_name":"Harrold","last_name":"Humphries","reference":"
|
8
|
+
string: '{"first_name":"Harrold","last_name":"Humphries","reference":"f0949e6b6b4f8a54c621af09bbf446ac","email":"hhump@test.com","ip_address":"180.200.33.181","card":{"card_holder":"Harrold
|
9
9
|
Humphries Senior","card_number":"5123456789012346","expiry_date":"05/2023","cvv":"123"},"address":{"address":"1
|
10
10
|
Harriet Road","city":"Kooliablin","state":"NSW","postcode":"2222","country":"Australia"},"test":true}'
|
11
11
|
headers:
|
@@ -25,7 +25,7 @@ http_interactions:
|
|
25
25
|
message: OK
|
26
26
|
headers:
|
27
27
|
Date:
|
28
|
-
-
|
28
|
+
- Thu, 12 Jul 2018 03:21:02 GMT
|
29
29
|
Content-Type:
|
30
30
|
- application/json; charset=utf-8
|
31
31
|
Transfer-Encoding:
|
@@ -37,33 +37,27 @@ http_interactions:
|
|
37
37
|
Cache-Control:
|
38
38
|
- no-store
|
39
39
|
X-Request-Version:
|
40
|
-
- 1.16.9-
|
40
|
+
- 1.16.9-3459@214bedf
|
41
|
+
X-Runtime:
|
42
|
+
- '0.483022'
|
41
43
|
Pragma:
|
42
44
|
- no-cache
|
43
|
-
X-Xss-Protection:
|
44
|
-
- 1; mode=block
|
45
45
|
X-Request-Id:
|
46
|
-
-
|
47
|
-
X-Runtime:
|
48
|
-
- '0.438572'
|
49
|
-
X-Frame-Options:
|
50
|
-
- SAMEORIGIN
|
51
|
-
X-Content-Type-Options:
|
52
|
-
- nosniff
|
46
|
+
- e409e22bc2ccdc4fa09a6277
|
53
47
|
X-Backend:
|
54
48
|
- sbox-priv-gateway-a
|
55
49
|
body:
|
56
50
|
encoding: UTF-8
|
57
|
-
string: '{"successful":true,"response":{"id":"071-C-
|
58
|
-
Harriet Road","city":"Kooliablin","state":"NSW","postcode":"2222","country":"Australia"},"card_token":"
|
51
|
+
string: '{"successful":true,"response":{"id":"071-C-T634NGSU","email":null,"reference":"f0949e6b6b4f8a54c621af09bbf446ac","first_name":"Harrold","last_name":"Humphries","created_at":"2018-07-12T13:21:02+10:00","address":{"address":"1
|
52
|
+
Harriet Road","city":"Kooliablin","state":"NSW","postcode":"2222","country":"Australia"},"card_token":"fke8xsnr","card_number":"512345XXXXXX2346","bank_account":null,"metadata":null},"errors":[],"test":true}'
|
59
53
|
http_version:
|
60
|
-
recorded_at:
|
54
|
+
recorded_at: Thu, 12 Jul 2018 03:21:01 GMT
|
61
55
|
- request:
|
62
56
|
method: post
|
63
57
|
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/payment_plans
|
64
58
|
body:
|
65
59
|
encoding: UTF-8
|
66
|
-
string: '{"payment_method":"Credit Card","customer":"071-C-
|
60
|
+
string: '{"payment_method":"Credit Card","customer":"071-C-T634NGSU","reference":"729aef2aee959058eabd46954e9fb2d6","setup_fee":0,"amount":100,"start_date":"2018-10-10","frequency":"Weekly","anniversary":5,"total_count":5,"total_amount":500,"test":true}'
|
67
61
|
headers:
|
68
62
|
Accept-Encoding:
|
69
63
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
@@ -81,7 +75,7 @@ http_interactions:
|
|
81
75
|
message: Created
|
82
76
|
headers:
|
83
77
|
Date:
|
84
|
-
-
|
78
|
+
- Thu, 12 Jul 2018 03:21:03 GMT
|
85
79
|
Content-Type:
|
86
80
|
- application/json; charset=utf-8
|
87
81
|
Transfer-Encoding:
|
@@ -93,43 +87,37 @@ http_interactions:
|
|
93
87
|
Cache-Control:
|
94
88
|
- no-store
|
95
89
|
X-Request-Version:
|
96
|
-
- 1.16.9-
|
90
|
+
- 1.16.9-3459@214bedf
|
91
|
+
X-Runtime:
|
92
|
+
- '0.505524'
|
97
93
|
Pragma:
|
98
94
|
- no-cache
|
99
|
-
X-Xss-Protection:
|
100
|
-
- 1; mode=block
|
101
95
|
X-Request-Id:
|
102
|
-
-
|
103
|
-
X-Runtime:
|
104
|
-
- '0.330954'
|
105
|
-
X-Frame-Options:
|
106
|
-
- SAMEORIGIN
|
107
|
-
X-Content-Type-Options:
|
108
|
-
- nosniff
|
96
|
+
- d6c2893eaba4e1c21e45dc64
|
109
97
|
X-Backend:
|
110
98
|
- sbox-priv-gateway-a
|
111
99
|
body:
|
112
100
|
encoding: UTF-8
|
113
|
-
string: '{"successful":true,"response":{"id":"071-PP-
|
114
|
-
Card","reference":"
|
115
|
-
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-
|
116
|
-
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-
|
117
|
-
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-
|
118
|
-
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-
|
101
|
+
string: '{"successful":true,"response":{"id":"071-PP-WOG12TT6","customer":"071-C-T634NGSU","amount":100,"currency":null,"setup_fee":0,"frequency":"Weekly","anniversary":5,"start_date":"2018-10-10","end_date":null,"total_count":5,"total_amount":500,"payment_method":"Credit
|
102
|
+
Card","reference":"729aef2aee959058eabd46954e9fb2d6","description":null,"status":"Active","status_reason":"None","created_at":"2018-07-12T13:21:02+10:00","failed_payment_fee":0,"retry_interval":3,"status_change_date":null,"payments":[{"id":"071-PT-O59VFLR0","payment_plan":"071-PP-WOG12TT6","reference":"729aef2aee959058eabd46954e9fb2d6-0001","amount":100,"currency":null,"scheduled_date":"2018-10-12","payment_method":"Credit
|
103
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-GJLHQM36","payment_plan":"071-PP-WOG12TT6","reference":"729aef2aee959058eabd46954e9fb2d6-0002","amount":100,"currency":null,"scheduled_date":"2018-10-19","payment_method":"Credit
|
104
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-29XUB19Q","payment_plan":"071-PP-WOG12TT6","reference":"729aef2aee959058eabd46954e9fb2d6-0003","amount":100,"currency":null,"scheduled_date":"2018-10-26","payment_method":"Credit
|
105
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-BC4C7U4W","payment_plan":"071-PP-WOG12TT6","reference":"729aef2aee959058eabd46954e9fb2d6-0004","amount":100,"currency":null,"scheduled_date":"2018-11-02","payment_method":"Credit
|
106
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-3GTV6HPN","payment_plan":"071-PP-WOG12TT6","reference":"729aef2aee959058eabd46954e9fb2d6-0005","amount":100,"currency":null,"scheduled_date":"2018-11-09","payment_method":"Credit
|
119
107
|
Card","status":"Scheduled","result":null,"records":[]}]},"errors":[],"test":true}'
|
120
108
|
http_version:
|
121
|
-
recorded_at:
|
109
|
+
recorded_at: Thu, 12 Jul 2018 03:21:02 GMT
|
122
110
|
- request:
|
123
111
|
method: put
|
124
|
-
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/payment_plans/071-PP-
|
112
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/payment_plans/071-PP-WOG12TT6
|
125
113
|
body:
|
126
114
|
encoding: UTF-8
|
127
|
-
string: '{"customer":"071-C-
|
128
|
-
Card","reference":"
|
129
|
-
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-
|
130
|
-
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-
|
131
|
-
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-
|
132
|
-
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-
|
115
|
+
string: '{"customer":"071-C-T634NGSU","amount":100,"currency":null,"setup_fee":0,"frequency":"Weekly","anniversary":5,"start_date":"2018-10-10","end_date":null,"total_count":5,"total_amount":500,"payment_method":"Credit
|
116
|
+
Card","reference":"729aef2aee959058eabd46954e9fb2d6","description":null,"status":"Active","status_reason":"None","created_at":"2018-07-12T13:21:02+10:00","failed_payment_fee":0,"retry_interval":3,"status_change_date":null,"payments":[{"id":"071-PT-O59VFLR0","payment_plan":"071-PP-WOG12TT6","reference":"729aef2aee959058eabd46954e9fb2d6-0001","amount":100,"currency":null,"scheduled_date":"2018-10-12","payment_method":"Credit
|
117
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-GJLHQM36","payment_plan":"071-PP-WOG12TT6","reference":"729aef2aee959058eabd46954e9fb2d6-0002","amount":100,"currency":null,"scheduled_date":"2018-10-19","payment_method":"Credit
|
118
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-29XUB19Q","payment_plan":"071-PP-WOG12TT6","reference":"729aef2aee959058eabd46954e9fb2d6-0003","amount":100,"currency":null,"scheduled_date":"2018-10-26","payment_method":"Credit
|
119
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-BC4C7U4W","payment_plan":"071-PP-WOG12TT6","reference":"729aef2aee959058eabd46954e9fb2d6-0004","amount":100,"currency":null,"scheduled_date":"2018-11-02","payment_method":"Credit
|
120
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-3GTV6HPN","payment_plan":"071-PP-WOG12TT6","reference":"729aef2aee959058eabd46954e9fb2d6-0005","amount":100,"currency":null,"scheduled_date":"2018-11-09","payment_method":"Credit
|
133
121
|
Card","status":"Scheduled","result":null,"records":[]}],"new_status":"Suspended","test":true}'
|
134
122
|
headers:
|
135
123
|
Accept-Encoding:
|
@@ -148,7 +136,7 @@ http_interactions:
|
|
148
136
|
message: OK
|
149
137
|
headers:
|
150
138
|
Date:
|
151
|
-
-
|
139
|
+
- Thu, 12 Jul 2018 03:21:03 GMT
|
152
140
|
Content-Type:
|
153
141
|
- application/json; charset=utf-8
|
154
142
|
Transfer-Encoding:
|
@@ -160,34 +148,28 @@ http_interactions:
|
|
160
148
|
Cache-Control:
|
161
149
|
- no-store
|
162
150
|
X-Request-Version:
|
163
|
-
- 1.16.9-
|
151
|
+
- 1.16.9-3459@214bedf
|
152
|
+
X-Runtime:
|
153
|
+
- '0.143275'
|
164
154
|
Pragma:
|
165
155
|
- no-cache
|
166
|
-
X-Xss-Protection:
|
167
|
-
- 1; mode=block
|
168
156
|
X-Request-Id:
|
169
|
-
-
|
170
|
-
X-Runtime:
|
171
|
-
- '0.192949'
|
172
|
-
X-Frame-Options:
|
173
|
-
- SAMEORIGIN
|
174
|
-
X-Content-Type-Options:
|
175
|
-
- nosniff
|
157
|
+
- 14f76d1562503f09954160ca
|
176
158
|
X-Backend:
|
177
159
|
- sbox-priv-gateway-a
|
178
160
|
body:
|
179
161
|
encoding: UTF-8
|
180
|
-
string: '{"successful":true,"response":{"id":"071-PP-
|
181
|
-
Card","reference":"
|
162
|
+
string: '{"successful":true,"response":{"id":"071-PP-WOG12TT6","customer":"071-C-T634NGSU","amount":100,"currency":null,"setup_fee":0,"frequency":"Weekly","anniversary":5,"start_date":"2018-10-10","end_date":null,"total_count":5,"total_amount":500,"payment_method":"Credit
|
163
|
+
Card","reference":"729aef2aee959058eabd46954e9fb2d6","description":null,"status":"Suspended","status_reason":"Other","created_at":"2018-07-12T13:21:02+10:00","failed_payment_fee":0,"retry_interval":3,"status_change_date":null,"payments":[]},"errors":[],"test":true}'
|
182
164
|
http_version:
|
183
|
-
recorded_at:
|
165
|
+
recorded_at: Thu, 12 Jul 2018 03:21:02 GMT
|
184
166
|
- request:
|
185
167
|
method: put
|
186
|
-
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/payment_plans/071-PP-
|
168
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/payment_plans/071-PP-WOG12TT6
|
187
169
|
body:
|
188
170
|
encoding: UTF-8
|
189
|
-
string: '{"customer":"071-C-
|
190
|
-
Card","reference":"
|
171
|
+
string: '{"customer":"071-C-T634NGSU","amount":100,"currency":null,"setup_fee":0,"frequency":"Weekly","anniversary":5,"start_date":"2018-10-10","end_date":null,"total_count":5,"total_amount":500,"payment_method":"Credit
|
172
|
+
Card","reference":"729aef2aee959058eabd46954e9fb2d6","description":null,"status":"Suspended","status_reason":"Other","created_at":"2018-07-12T13:21:02+10:00","failed_payment_fee":0,"retry_interval":3,"status_change_date":null,"payments":[],"new_status":"Active","test":true}'
|
191
173
|
headers:
|
192
174
|
Accept-Encoding:
|
193
175
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
@@ -205,7 +187,7 @@ http_interactions:
|
|
205
187
|
message: OK
|
206
188
|
headers:
|
207
189
|
Date:
|
208
|
-
-
|
190
|
+
- Thu, 12 Jul 2018 03:21:04 GMT
|
209
191
|
Content-Type:
|
210
192
|
- application/json; charset=utf-8
|
211
193
|
Transfer-Encoding:
|
@@ -217,30 +199,24 @@ http_interactions:
|
|
217
199
|
Cache-Control:
|
218
200
|
- no-store
|
219
201
|
X-Request-Version:
|
220
|
-
- 1.16.9-
|
202
|
+
- 1.16.9-3459@214bedf
|
203
|
+
X-Runtime:
|
204
|
+
- '0.285250'
|
221
205
|
Pragma:
|
222
206
|
- no-cache
|
223
|
-
X-Xss-Protection:
|
224
|
-
- 1; mode=block
|
225
207
|
X-Request-Id:
|
226
|
-
-
|
227
|
-
X-Runtime:
|
228
|
-
- '0.328145'
|
229
|
-
X-Frame-Options:
|
230
|
-
- SAMEORIGIN
|
231
|
-
X-Content-Type-Options:
|
232
|
-
- nosniff
|
208
|
+
- 1cd22704528ae1407cbf6154
|
233
209
|
X-Backend:
|
234
210
|
- sbox-priv-gateway-a
|
235
211
|
body:
|
236
212
|
encoding: UTF-8
|
237
|
-
string: '{"successful":true,"response":{"id":"071-PP-
|
238
|
-
Card","reference":"
|
239
|
-
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-
|
240
|
-
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-
|
241
|
-
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-
|
242
|
-
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-
|
213
|
+
string: '{"successful":true,"response":{"id":"071-PP-WOG12TT6","customer":"071-C-T634NGSU","amount":100,"currency":null,"setup_fee":0,"frequency":"Weekly","anniversary":5,"start_date":"2018-10-10","end_date":null,"total_count":5,"total_amount":500,"payment_method":"Credit
|
214
|
+
Card","reference":"729aef2aee959058eabd46954e9fb2d6","description":null,"status":"Active","status_reason":"None","created_at":"2018-07-12T13:21:02+10:00","failed_payment_fee":0,"retry_interval":3,"status_change_date":null,"payments":[{"id":"071-PT-6TUMRVCC","payment_plan":"071-PP-WOG12TT6","reference":"729aef2aee959058eabd46954e9fb2d6-0001","amount":100,"currency":null,"scheduled_date":"2018-10-12","payment_method":"Credit
|
215
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-W70FH5N9","payment_plan":"071-PP-WOG12TT6","reference":"729aef2aee959058eabd46954e9fb2d6-0002","amount":100,"currency":null,"scheduled_date":"2018-10-19","payment_method":"Credit
|
216
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-J9S97TV0","payment_plan":"071-PP-WOG12TT6","reference":"729aef2aee959058eabd46954e9fb2d6-0003","amount":100,"currency":null,"scheduled_date":"2018-10-26","payment_method":"Credit
|
217
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-3U0Z701B","payment_plan":"071-PP-WOG12TT6","reference":"729aef2aee959058eabd46954e9fb2d6-0004","amount":100,"currency":null,"scheduled_date":"2018-11-02","payment_method":"Credit
|
218
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-LKKJOLYH","payment_plan":"071-PP-WOG12TT6","reference":"729aef2aee959058eabd46954e9fb2d6-0005","amount":100,"currency":null,"scheduled_date":"2018-11-09","payment_method":"Credit
|
243
219
|
Card","status":"Scheduled","result":null,"records":[]}]},"errors":[],"test":true}'
|
244
220
|
http_version:
|
245
|
-
recorded_at:
|
221
|
+
recorded_at: Thu, 12 Jul 2018 03:21:03 GMT
|
246
222
|
recorded_with: VCR 3.0.3
|
@@ -5,7 +5,7 @@ http_interactions:
|
|
5
5
|
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/customers
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: '{"first_name":"Harrold","last_name":"Humphries","reference":"
|
8
|
+
string: '{"first_name":"Harrold","last_name":"Humphries","reference":"f7b05f78a29d3392a80374b8fdffdfd1","email":"hhump@test.com","ip_address":"180.200.33.181","card":{"card_holder":"Harrold
|
9
9
|
Humphries Senior","card_number":"5123456789012346","expiry_date":"05/2023","cvv":"123"},"address":{"address":"1
|
10
10
|
Harriet Road","city":"Kooliablin","state":"NSW","postcode":"2222","country":"Australia"},"test":true}'
|
11
11
|
headers:
|
@@ -25,7 +25,7 @@ http_interactions:
|
|
25
25
|
message: OK
|
26
26
|
headers:
|
27
27
|
Date:
|
28
|
-
-
|
28
|
+
- Thu, 12 Jul 2018 03:20:27 GMT
|
29
29
|
Content-Type:
|
30
30
|
- application/json; charset=utf-8
|
31
31
|
Transfer-Encoding:
|
@@ -37,33 +37,27 @@ http_interactions:
|
|
37
37
|
Cache-Control:
|
38
38
|
- no-store
|
39
39
|
X-Request-Version:
|
40
|
-
- 1.16.9-
|
40
|
+
- 1.16.9-3459@214bedf
|
41
|
+
X-Runtime:
|
42
|
+
- '0.453775'
|
41
43
|
Pragma:
|
42
44
|
- no-cache
|
43
|
-
X-Xss-Protection:
|
44
|
-
- 1; mode=block
|
45
45
|
X-Request-Id:
|
46
|
-
-
|
47
|
-
X-Runtime:
|
48
|
-
- '0.452203'
|
49
|
-
X-Frame-Options:
|
50
|
-
- SAMEORIGIN
|
51
|
-
X-Content-Type-Options:
|
52
|
-
- nosniff
|
46
|
+
- e6cdc20eaeb0439e5753d51a
|
53
47
|
X-Backend:
|
54
48
|
- sbox-priv-gateway-a
|
55
49
|
body:
|
56
50
|
encoding: UTF-8
|
57
|
-
string: '{"successful":true,"response":{"id":"071-C-
|
58
|
-
Harriet Road","city":"Kooliablin","state":"NSW","postcode":"2222","country":"Australia"},"card_token":"
|
51
|
+
string: '{"successful":true,"response":{"id":"071-C-AXMHJRZV","email":null,"reference":"f7b05f78a29d3392a80374b8fdffdfd1","first_name":"Harrold","last_name":"Humphries","created_at":"2018-07-12T13:20:26+10:00","address":{"address":"1
|
52
|
+
Harriet Road","city":"Kooliablin","state":"NSW","postcode":"2222","country":"Australia"},"card_token":"fke8pn5y","card_number":"512345XXXXXX2346","bank_account":null,"metadata":null},"errors":[],"test":true}'
|
59
53
|
http_version:
|
60
|
-
recorded_at:
|
54
|
+
recorded_at: Thu, 12 Jul 2018 03:20:26 GMT
|
61
55
|
- request:
|
62
56
|
method: post
|
63
57
|
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/payment_plans
|
64
58
|
body:
|
65
59
|
encoding: UTF-8
|
66
|
-
string: '{"payment_method":"Credit Card","customer":"071-C-
|
60
|
+
string: '{"payment_method":"Credit Card","customer":"071-C-AXMHJRZV","reference":"9980e86061be3c7591e73a355b10f7ad","setup_fee":0,"amount":100,"start_date":"2018-10-10","frequency":"Weekly","anniversary":5,"total_count":5,"total_amount":500,"test":true}'
|
67
61
|
headers:
|
68
62
|
Accept-Encoding:
|
69
63
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
@@ -81,7 +75,7 @@ http_interactions:
|
|
81
75
|
message: Created
|
82
76
|
headers:
|
83
77
|
Date:
|
84
|
-
-
|
78
|
+
- Thu, 12 Jul 2018 03:20:27 GMT
|
85
79
|
Content-Type:
|
86
80
|
- application/json; charset=utf-8
|
87
81
|
Transfer-Encoding:
|
@@ -93,30 +87,24 @@ http_interactions:
|
|
93
87
|
Cache-Control:
|
94
88
|
- no-store
|
95
89
|
X-Request-Version:
|
96
|
-
- 1.16.9-
|
90
|
+
- 1.16.9-3459@214bedf
|
91
|
+
X-Runtime:
|
92
|
+
- '0.248524'
|
97
93
|
Pragma:
|
98
94
|
- no-cache
|
99
|
-
X-Xss-Protection:
|
100
|
-
- 1; mode=block
|
101
95
|
X-Request-Id:
|
102
|
-
-
|
103
|
-
X-Runtime:
|
104
|
-
- '0.312996'
|
105
|
-
X-Frame-Options:
|
106
|
-
- SAMEORIGIN
|
107
|
-
X-Content-Type-Options:
|
108
|
-
- nosniff
|
96
|
+
- 3478ae01db7e6a10d855ce0a
|
109
97
|
X-Backend:
|
110
98
|
- sbox-priv-gateway-a
|
111
99
|
body:
|
112
100
|
encoding: UTF-8
|
113
|
-
string: '{"successful":true,"response":{"id":"071-PP-
|
114
|
-
Card","reference":"
|
115
|
-
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-
|
116
|
-
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-
|
117
|
-
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-
|
118
|
-
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-
|
101
|
+
string: '{"successful":true,"response":{"id":"071-PP-C0YK842K","customer":"071-C-AXMHJRZV","amount":100,"currency":null,"setup_fee":0,"frequency":"Weekly","anniversary":5,"start_date":"2018-10-10","end_date":null,"total_count":5,"total_amount":500,"payment_method":"Credit
|
102
|
+
Card","reference":"9980e86061be3c7591e73a355b10f7ad","description":null,"status":"Active","status_reason":"None","created_at":"2018-07-12T13:20:27+10:00","failed_payment_fee":0,"retry_interval":3,"status_change_date":null,"payments":[{"id":"071-PT-HKNOPB36","payment_plan":"071-PP-C0YK842K","reference":"9980e86061be3c7591e73a355b10f7ad-0001","amount":100,"currency":null,"scheduled_date":"2018-10-12","payment_method":"Credit
|
103
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-TCN7CDRO","payment_plan":"071-PP-C0YK842K","reference":"9980e86061be3c7591e73a355b10f7ad-0002","amount":100,"currency":null,"scheduled_date":"2018-10-19","payment_method":"Credit
|
104
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-FGPCQJNQ","payment_plan":"071-PP-C0YK842K","reference":"9980e86061be3c7591e73a355b10f7ad-0003","amount":100,"currency":null,"scheduled_date":"2018-10-26","payment_method":"Credit
|
105
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-VO4AA700","payment_plan":"071-PP-C0YK842K","reference":"9980e86061be3c7591e73a355b10f7ad-0004","amount":100,"currency":null,"scheduled_date":"2018-11-02","payment_method":"Credit
|
106
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-NIQYYSGK","payment_plan":"071-PP-C0YK842K","reference":"9980e86061be3c7591e73a355b10f7ad-0005","amount":100,"currency":null,"scheduled_date":"2018-11-09","payment_method":"Credit
|
119
107
|
Card","status":"Scheduled","result":null,"records":[]}]},"errors":[],"test":true}'
|
120
108
|
http_version:
|
121
|
-
recorded_at:
|
109
|
+
recorded_at: Thu, 12 Jul 2018 03:20:27 GMT
|
122
110
|
recorded_with: VCR 3.0.3
|
@@ -5,7 +5,7 @@ http_interactions:
|
|
5
5
|
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/customers
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: '{"first_name":"Harrold","last_name":"Humphries","reference":"
|
8
|
+
string: '{"first_name":"Harrold","last_name":"Humphries","reference":"16375e5615af3e44602d49b5855152c9","email":"hhump@test.com","ip_address":"180.200.33.181","card":{"card_holder":"Harrold
|
9
9
|
Humphries Senior","card_number":"5123456789012346","expiry_date":"05/2023","cvv":"123"},"address":{"address":"1
|
10
10
|
Harriet Road","city":"Kooliablin","state":"NSW","postcode":"2222","country":"Australia"},"test":true}'
|
11
11
|
headers:
|
@@ -25,7 +25,7 @@ http_interactions:
|
|
25
25
|
message: OK
|
26
26
|
headers:
|
27
27
|
Date:
|
28
|
-
-
|
28
|
+
- Thu, 12 Jul 2018 03:20:28 GMT
|
29
29
|
Content-Type:
|
30
30
|
- application/json; charset=utf-8
|
31
31
|
Transfer-Encoding:
|
@@ -37,33 +37,27 @@ http_interactions:
|
|
37
37
|
Cache-Control:
|
38
38
|
- no-store
|
39
39
|
X-Request-Version:
|
40
|
-
- 1.16.9-
|
40
|
+
- 1.16.9-3459@214bedf
|
41
|
+
X-Runtime:
|
42
|
+
- '0.440408'
|
41
43
|
Pragma:
|
42
44
|
- no-cache
|
43
|
-
X-Xss-Protection:
|
44
|
-
- 1; mode=block
|
45
45
|
X-Request-Id:
|
46
|
-
-
|
47
|
-
X-Runtime:
|
48
|
-
- '0.427196'
|
49
|
-
X-Frame-Options:
|
50
|
-
- SAMEORIGIN
|
51
|
-
X-Content-Type-Options:
|
52
|
-
- nosniff
|
46
|
+
- 919bd270445e53c66f3970ba
|
53
47
|
X-Backend:
|
54
48
|
- sbox-priv-gateway-a
|
55
49
|
body:
|
56
50
|
encoding: UTF-8
|
57
|
-
string: '{"successful":true,"response":{"id":"071-C-
|
58
|
-
Harriet Road","city":"Kooliablin","state":"NSW","postcode":"2222","country":"Australia"},"card_token":"
|
51
|
+
string: '{"successful":true,"response":{"id":"071-C-WWSRCND1","email":null,"reference":"16375e5615af3e44602d49b5855152c9","first_name":"Harrold","last_name":"Humphries","created_at":"2018-07-12T13:20:28+10:00","address":{"address":"1
|
52
|
+
Harriet Road","city":"Kooliablin","state":"NSW","postcode":"2222","country":"Australia"},"card_token":"fke8xc04","card_number":"512345XXXXXX2346","bank_account":null,"metadata":null},"errors":[],"test":true}'
|
59
53
|
http_version:
|
60
|
-
recorded_at:
|
54
|
+
recorded_at: Thu, 12 Jul 2018 03:20:27 GMT
|
61
55
|
- request:
|
62
56
|
method: post
|
63
57
|
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/payment_plans
|
64
58
|
body:
|
65
59
|
encoding: UTF-8
|
66
|
-
string: '{"payment_method":"Credit Card","customer":"071-C-
|
60
|
+
string: '{"payment_method":"Credit Card","customer":"071-C-WWSRCND1","reference":"d473ed1051b866972249f853970bcd5f","setup_fee":0,"amount":100,"start_date":"2018-10-10","frequency":"Weekly","anniversary":5,"total_count":5,"total_amount":500,"test":true}'
|
67
61
|
headers:
|
68
62
|
Accept-Encoding:
|
69
63
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
@@ -81,7 +75,7 @@ http_interactions:
|
|
81
75
|
message: Created
|
82
76
|
headers:
|
83
77
|
Date:
|
84
|
-
-
|
78
|
+
- Thu, 12 Jul 2018 03:20:29 GMT
|
85
79
|
Content-Type:
|
86
80
|
- application/json; charset=utf-8
|
87
81
|
Transfer-Encoding:
|
@@ -93,30 +87,24 @@ http_interactions:
|
|
93
87
|
Cache-Control:
|
94
88
|
- no-store
|
95
89
|
X-Request-Version:
|
96
|
-
- 1.16.9-
|
90
|
+
- 1.16.9-3459@214bedf
|
91
|
+
X-Runtime:
|
92
|
+
- '0.245610'
|
97
93
|
Pragma:
|
98
94
|
- no-cache
|
99
|
-
X-Xss-Protection:
|
100
|
-
- 1; mode=block
|
101
95
|
X-Request-Id:
|
102
|
-
-
|
103
|
-
X-Runtime:
|
104
|
-
- '0.223376'
|
105
|
-
X-Frame-Options:
|
106
|
-
- SAMEORIGIN
|
107
|
-
X-Content-Type-Options:
|
108
|
-
- nosniff
|
96
|
+
- 21efe49a18b6e3a31c1632ed
|
109
97
|
X-Backend:
|
110
98
|
- sbox-priv-gateway-a
|
111
99
|
body:
|
112
100
|
encoding: UTF-8
|
113
|
-
string: '{"successful":true,"response":{"id":"071-PP-
|
114
|
-
Card","reference":"
|
115
|
-
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-
|
116
|
-
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-
|
117
|
-
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-
|
118
|
-
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-
|
101
|
+
string: '{"successful":true,"response":{"id":"071-PP-8PV94G0K","customer":"071-C-WWSRCND1","amount":100,"currency":null,"setup_fee":0,"frequency":"Weekly","anniversary":5,"start_date":"2018-10-10","end_date":null,"total_count":5,"total_amount":500,"payment_method":"Credit
|
102
|
+
Card","reference":"d473ed1051b866972249f853970bcd5f","description":null,"status":"Active","status_reason":"None","created_at":"2018-07-12T13:20:28+10:00","failed_payment_fee":0,"retry_interval":3,"status_change_date":null,"payments":[{"id":"071-PT-YDQCD92R","payment_plan":"071-PP-8PV94G0K","reference":"d473ed1051b866972249f853970bcd5f-0001","amount":100,"currency":null,"scheduled_date":"2018-10-12","payment_method":"Credit
|
103
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-72WXWAJK","payment_plan":"071-PP-8PV94G0K","reference":"d473ed1051b866972249f853970bcd5f-0002","amount":100,"currency":null,"scheduled_date":"2018-10-19","payment_method":"Credit
|
104
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-NL98AQ0G","payment_plan":"071-PP-8PV94G0K","reference":"d473ed1051b866972249f853970bcd5f-0003","amount":100,"currency":null,"scheduled_date":"2018-10-26","payment_method":"Credit
|
105
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-REYODIR7","payment_plan":"071-PP-8PV94G0K","reference":"d473ed1051b866972249f853970bcd5f-0004","amount":100,"currency":null,"scheduled_date":"2018-11-02","payment_method":"Credit
|
106
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-W02DI7KX","payment_plan":"071-PP-8PV94G0K","reference":"d473ed1051b866972249f853970bcd5f-0005","amount":100,"currency":null,"scheduled_date":"2018-11-09","payment_method":"Credit
|
119
107
|
Card","status":"Scheduled","result":null,"records":[]}]},"errors":[],"test":true}'
|
120
108
|
http_version:
|
121
|
-
recorded_at:
|
109
|
+
recorded_at: Thu, 12 Jul 2018 03:20:28 GMT
|
122
110
|
recorded_with: VCR 3.0.3
|