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":"a87f42cf2496aebb9897ef78a741e152","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:31 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.453222'
|
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.426441'
|
49
|
-
X-Frame-Options:
|
50
|
-
- SAMEORIGIN
|
51
|
-
X-Content-Type-Options:
|
52
|
-
- nosniff
|
46
|
+
- e2c51aade496815b95b97c03
|
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-RYSKNO6I","email":null,"reference":"a87f42cf2496aebb9897ef78a741e152","first_name":"Harrold","last_name":"Humphries","created_at":"2018-07-12T13:20:31+10:00","address":{"address":"1
|
52
|
+
Harriet Road","city":"Kooliablin","state":"NSW","postcode":"2222","country":"Australia"},"card_token":"fke8lmc4","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:30 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-RYSKNO6I","reference":"c944d621ac4862b17db873df421338a5","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:32 GMT
|
85
79
|
Content-Type:
|
86
80
|
- application/json; charset=utf-8
|
87
81
|
Transfer-Encoding:
|
@@ -93,35 +87,29 @@ 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.271715'
|
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.235002'
|
105
|
-
X-Frame-Options:
|
106
|
-
- SAMEORIGIN
|
107
|
-
X-Content-Type-Options:
|
108
|
-
- nosniff
|
96
|
+
- b7e526850c13abb285f34fa6
|
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-KLMQOV1R","customer":"071-C-RYSKNO6I","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":"c944d621ac4862b17db873df421338a5","description":null,"status":"Active","status_reason":"None","created_at":"2018-07-12T13:20:31+10:00","failed_payment_fee":0,"retry_interval":3,"status_change_date":null,"payments":[{"id":"071-PT-8HAONVC1","payment_plan":"071-PP-KLMQOV1R","reference":"c944d621ac4862b17db873df421338a5-0001","amount":100,"currency":null,"scheduled_date":"2018-10-12","payment_method":"Credit
|
103
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-U14JOJ1K","payment_plan":"071-PP-KLMQOV1R","reference":"c944d621ac4862b17db873df421338a5-0002","amount":100,"currency":null,"scheduled_date":"2018-10-19","payment_method":"Credit
|
104
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-EHOEVGAL","payment_plan":"071-PP-KLMQOV1R","reference":"c944d621ac4862b17db873df421338a5-0003","amount":100,"currency":null,"scheduled_date":"2018-10-26","payment_method":"Credit
|
105
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-PUNUC53S","payment_plan":"071-PP-KLMQOV1R","reference":"c944d621ac4862b17db873df421338a5-0004","amount":100,"currency":null,"scheduled_date":"2018-11-02","payment_method":"Credit
|
106
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-LZR6EIHY","payment_plan":"071-PP-KLMQOV1R","reference":"c944d621ac4862b17db873df421338a5-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:31 GMT
|
122
110
|
- request:
|
123
111
|
method: get
|
124
|
-
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/payment_plans/
|
112
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/payment_plans/c944d621ac4862b17db873df421338a5?test=true
|
125
113
|
body:
|
126
114
|
encoding: US-ASCII
|
127
115
|
string: ''
|
@@ -144,7 +132,7 @@ http_interactions:
|
|
144
132
|
message: OK
|
145
133
|
headers:
|
146
134
|
Date:
|
147
|
-
-
|
135
|
+
- Thu, 12 Jul 2018 03:20:32 GMT
|
148
136
|
Content-Type:
|
149
137
|
- application/json; charset=utf-8
|
150
138
|
Transfer-Encoding:
|
@@ -156,30 +144,24 @@ http_interactions:
|
|
156
144
|
Cache-Control:
|
157
145
|
- no-store
|
158
146
|
X-Request-Version:
|
159
|
-
- 1.16.9-
|
147
|
+
- 1.16.9-3459@214bedf
|
148
|
+
X-Runtime:
|
149
|
+
- '0.026039'
|
160
150
|
Pragma:
|
161
151
|
- no-cache
|
162
|
-
X-Xss-Protection:
|
163
|
-
- 1; mode=block
|
164
152
|
X-Request-Id:
|
165
|
-
-
|
166
|
-
X-Runtime:
|
167
|
-
- '0.026645'
|
168
|
-
X-Frame-Options:
|
169
|
-
- SAMEORIGIN
|
170
|
-
X-Content-Type-Options:
|
171
|
-
- nosniff
|
153
|
+
- e09185bfece1aefa93d71249
|
172
154
|
X-Backend:
|
173
155
|
- sbox-priv-gateway-a
|
174
156
|
body:
|
175
157
|
encoding: UTF-8
|
176
|
-
string: '{"successful":true,"response":{"id":"071-PP-
|
177
|
-
Card","reference":"
|
178
|
-
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-
|
179
|
-
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-
|
180
|
-
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-
|
181
|
-
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-
|
158
|
+
string: '{"successful":true,"response":{"id":"071-PP-KLMQOV1R","customer":"071-C-RYSKNO6I","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
|
159
|
+
Card","reference":"c944d621ac4862b17db873df421338a5","description":null,"status":"Active","status_reason":"None","created_at":"2018-07-12T13:20:31+10:00","failed_payment_fee":0,"retry_interval":3,"status_change_date":null,"payments":[{"id":"071-PT-8HAONVC1","payment_plan":"071-PP-KLMQOV1R","reference":"c944d621ac4862b17db873df421338a5-0001","amount":100,"currency":null,"scheduled_date":"2018-10-12","payment_method":"Credit
|
160
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-U14JOJ1K","payment_plan":"071-PP-KLMQOV1R","reference":"c944d621ac4862b17db873df421338a5-0002","amount":100,"currency":null,"scheduled_date":"2018-10-19","payment_method":"Credit
|
161
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-EHOEVGAL","payment_plan":"071-PP-KLMQOV1R","reference":"c944d621ac4862b17db873df421338a5-0003","amount":100,"currency":null,"scheduled_date":"2018-10-26","payment_method":"Credit
|
162
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-PUNUC53S","payment_plan":"071-PP-KLMQOV1R","reference":"c944d621ac4862b17db873df421338a5-0004","amount":100,"currency":null,"scheduled_date":"2018-11-02","payment_method":"Credit
|
163
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-LZR6EIHY","payment_plan":"071-PP-KLMQOV1R","reference":"c944d621ac4862b17db873df421338a5-0005","amount":100,"currency":null,"scheduled_date":"2018-11-09","payment_method":"Credit
|
182
164
|
Card","status":"Scheduled","result":null,"records":[]}]},"errors":[],"test":true}'
|
183
165
|
http_version:
|
184
|
-
recorded_at:
|
166
|
+
recorded_at: Thu, 12 Jul 2018 03:20:31 GMT
|
185
167
|
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":"c5b2136a50a937a4aad4c3b8624c9bf7","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:32 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.442978'
|
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.426869'
|
49
|
-
X-Frame-Options:
|
50
|
-
- SAMEORIGIN
|
51
|
-
X-Content-Type-Options:
|
52
|
-
- nosniff
|
46
|
+
- 1c317d75c67097892d0e03ad
|
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-3Z9X8FOF","email":null,"reference":"c5b2136a50a937a4aad4c3b8624c9bf7","first_name":"Harrold","last_name":"Humphries","created_at":"2018-07-12T13:20:32+10:00","address":{"address":"1
|
52
|
+
Harriet Road","city":"Kooliablin","state":"NSW","postcode":"2222","country":"Australia"},"card_token":"fke8k3lx","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:32 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-3Z9X8FOF","reference":"95dc070fb5eb990ab385d7be96e0da9c","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:33 GMT
|
85
79
|
Content-Type:
|
86
80
|
- application/json; charset=utf-8
|
87
81
|
Transfer-Encoding:
|
@@ -93,35 +87,29 @@ 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.252790'
|
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.216370'
|
105
|
-
X-Frame-Options:
|
106
|
-
- SAMEORIGIN
|
107
|
-
X-Content-Type-Options:
|
108
|
-
- nosniff
|
96
|
+
- bbd2f3cfa0d240bff4e0f7e5
|
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-8MPI3M4X","customer":"071-C-3Z9X8FOF","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":"95dc070fb5eb990ab385d7be96e0da9c","description":null,"status":"Active","status_reason":"None","created_at":"2018-07-12T13:20:33+10:00","failed_payment_fee":0,"retry_interval":3,"status_change_date":null,"payments":[{"id":"071-PT-MM67JZO2","payment_plan":"071-PP-8MPI3M4X","reference":"95dc070fb5eb990ab385d7be96e0da9c-0001","amount":100,"currency":null,"scheduled_date":"2018-10-12","payment_method":"Credit
|
103
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-N8I8BBLG","payment_plan":"071-PP-8MPI3M4X","reference":"95dc070fb5eb990ab385d7be96e0da9c-0002","amount":100,"currency":null,"scheduled_date":"2018-10-19","payment_method":"Credit
|
104
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-SV8XZR0M","payment_plan":"071-PP-8MPI3M4X","reference":"95dc070fb5eb990ab385d7be96e0da9c-0003","amount":100,"currency":null,"scheduled_date":"2018-10-26","payment_method":"Credit
|
105
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-F0TLP372","payment_plan":"071-PP-8MPI3M4X","reference":"95dc070fb5eb990ab385d7be96e0da9c-0004","amount":100,"currency":null,"scheduled_date":"2018-11-02","payment_method":"Credit
|
106
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-YLDWW9O5","payment_plan":"071-PP-8MPI3M4X","reference":"95dc070fb5eb990ab385d7be96e0da9c-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:32 GMT
|
122
110
|
- request:
|
123
111
|
method: get
|
124
|
-
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/payment_plans/
|
112
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/payment_plans/95dc070fb5eb990ab385d7be96e0da9c?test=true
|
125
113
|
body:
|
126
114
|
encoding: US-ASCII
|
127
115
|
string: ''
|
@@ -144,7 +132,7 @@ http_interactions:
|
|
144
132
|
message: OK
|
145
133
|
headers:
|
146
134
|
Date:
|
147
|
-
-
|
135
|
+
- Thu, 12 Jul 2018 03:20:33 GMT
|
148
136
|
Content-Type:
|
149
137
|
- application/json; charset=utf-8
|
150
138
|
Transfer-Encoding:
|
@@ -156,30 +144,24 @@ http_interactions:
|
|
156
144
|
Cache-Control:
|
157
145
|
- no-store
|
158
146
|
X-Request-Version:
|
159
|
-
- 1.16.9-
|
147
|
+
- 1.16.9-3459@214bedf
|
148
|
+
X-Runtime:
|
149
|
+
- '0.026396'
|
160
150
|
Pragma:
|
161
151
|
- no-cache
|
162
|
-
X-Xss-Protection:
|
163
|
-
- 1; mode=block
|
164
152
|
X-Request-Id:
|
165
|
-
-
|
166
|
-
X-Runtime:
|
167
|
-
- '0.020068'
|
168
|
-
X-Frame-Options:
|
169
|
-
- SAMEORIGIN
|
170
|
-
X-Content-Type-Options:
|
171
|
-
- nosniff
|
153
|
+
- 76fd7e0717af59a7de66a1dd
|
172
154
|
X-Backend:
|
173
155
|
- sbox-priv-gateway-a
|
174
156
|
body:
|
175
157
|
encoding: UTF-8
|
176
|
-
string: '{"successful":true,"response":{"id":"071-PP-
|
177
|
-
Card","reference":"
|
178
|
-
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-
|
179
|
-
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-
|
180
|
-
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-
|
181
|
-
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-
|
158
|
+
string: '{"successful":true,"response":{"id":"071-PP-8MPI3M4X","customer":"071-C-3Z9X8FOF","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
|
159
|
+
Card","reference":"95dc070fb5eb990ab385d7be96e0da9c","description":null,"status":"Active","status_reason":"None","created_at":"2018-07-12T13:20:33+10:00","failed_payment_fee":0,"retry_interval":3,"status_change_date":null,"payments":[{"id":"071-PT-MM67JZO2","payment_plan":"071-PP-8MPI3M4X","reference":"95dc070fb5eb990ab385d7be96e0da9c-0001","amount":100,"currency":null,"scheduled_date":"2018-10-12","payment_method":"Credit
|
160
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-N8I8BBLG","payment_plan":"071-PP-8MPI3M4X","reference":"95dc070fb5eb990ab385d7be96e0da9c-0002","amount":100,"currency":null,"scheduled_date":"2018-10-19","payment_method":"Credit
|
161
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-SV8XZR0M","payment_plan":"071-PP-8MPI3M4X","reference":"95dc070fb5eb990ab385d7be96e0da9c-0003","amount":100,"currency":null,"scheduled_date":"2018-10-26","payment_method":"Credit
|
162
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-F0TLP372","payment_plan":"071-PP-8MPI3M4X","reference":"95dc070fb5eb990ab385d7be96e0da9c-0004","amount":100,"currency":null,"scheduled_date":"2018-11-02","payment_method":"Credit
|
163
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-YLDWW9O5","payment_plan":"071-PP-8MPI3M4X","reference":"95dc070fb5eb990ab385d7be96e0da9c-0005","amount":100,"currency":null,"scheduled_date":"2018-11-09","payment_method":"Credit
|
182
164
|
Card","status":"Scheduled","result":null,"records":[]}]},"errors":[],"test":true}'
|
183
165
|
http_version:
|
184
|
-
recorded_at:
|
166
|
+
recorded_at: Thu, 12 Jul 2018 03:20:32 GMT
|
185
167
|
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":"e65bdeda8eb3e458c40312d6d7621aab","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:34 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.458190'
|
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.430403'
|
49
|
-
X-Frame-Options:
|
50
|
-
- SAMEORIGIN
|
51
|
-
X-Content-Type-Options:
|
52
|
-
- nosniff
|
46
|
+
- e35f9add9b38dd57176a7822
|
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-AQN3UQXP","email":null,"reference":"e65bdeda8eb3e458c40312d6d7621aab","first_name":"Harrold","last_name":"Humphries","created_at":"2018-07-12T13:20:34+10:00","address":{"address":"1
|
52
|
+
Harriet Road","city":"Kooliablin","state":"NSW","postcode":"2222","country":"Australia"},"card_token":"fke87tp7","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:33 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-AQN3UQXP","reference":"23f95826f8424e8a96ca6f43790a87e0","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:35 GMT
|
85
79
|
Content-Type:
|
86
80
|
- application/json; charset=utf-8
|
87
81
|
Transfer-Encoding:
|
@@ -93,35 +87,29 @@ 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.273602'
|
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.266547'
|
105
|
-
X-Frame-Options:
|
106
|
-
- SAMEORIGIN
|
107
|
-
X-Content-Type-Options:
|
108
|
-
- nosniff
|
96
|
+
- ac664ce22d10b4be1fb1b948
|
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-980JT0WZ","customer":"071-C-AQN3UQXP","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":"23f95826f8424e8a96ca6f43790a87e0","description":null,"status":"Active","status_reason":"None","created_at":"2018-07-12T13:20:35+10:00","failed_payment_fee":0,"retry_interval":3,"status_change_date":null,"payments":[{"id":"071-PT-KKIXBR2U","payment_plan":"071-PP-980JT0WZ","reference":"23f95826f8424e8a96ca6f43790a87e0-0001","amount":100,"currency":null,"scheduled_date":"2018-10-12","payment_method":"Credit
|
103
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-XOAZVG0D","payment_plan":"071-PP-980JT0WZ","reference":"23f95826f8424e8a96ca6f43790a87e0-0002","amount":100,"currency":null,"scheduled_date":"2018-10-19","payment_method":"Credit
|
104
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-83CJV8X2","payment_plan":"071-PP-980JT0WZ","reference":"23f95826f8424e8a96ca6f43790a87e0-0003","amount":100,"currency":null,"scheduled_date":"2018-10-26","payment_method":"Credit
|
105
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-9FCH8386","payment_plan":"071-PP-980JT0WZ","reference":"23f95826f8424e8a96ca6f43790a87e0-0004","amount":100,"currency":null,"scheduled_date":"2018-11-02","payment_method":"Credit
|
106
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-C6KMFVW5","payment_plan":"071-PP-980JT0WZ","reference":"23f95826f8424e8a96ca6f43790a87e0-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:34 GMT
|
122
110
|
- request:
|
123
111
|
method: get
|
124
|
-
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/payment_plans/
|
112
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/payment_plans/23f95826f8424e8a96ca6f43790a87e0?test=true
|
125
113
|
body:
|
126
114
|
encoding: US-ASCII
|
127
115
|
string: ''
|
@@ -144,7 +132,7 @@ http_interactions:
|
|
144
132
|
message: OK
|
145
133
|
headers:
|
146
134
|
Date:
|
147
|
-
-
|
135
|
+
- Thu, 12 Jul 2018 03:20:35 GMT
|
148
136
|
Content-Type:
|
149
137
|
- application/json; charset=utf-8
|
150
138
|
Transfer-Encoding:
|
@@ -156,30 +144,24 @@ http_interactions:
|
|
156
144
|
Cache-Control:
|
157
145
|
- no-store
|
158
146
|
X-Request-Version:
|
159
|
-
- 1.16.9-
|
147
|
+
- 1.16.9-3459@214bedf
|
148
|
+
X-Runtime:
|
149
|
+
- '0.043617'
|
160
150
|
Pragma:
|
161
151
|
- no-cache
|
162
|
-
X-Xss-Protection:
|
163
|
-
- 1; mode=block
|
164
152
|
X-Request-Id:
|
165
|
-
-
|
166
|
-
X-Runtime:
|
167
|
-
- '0.020019'
|
168
|
-
X-Frame-Options:
|
169
|
-
- SAMEORIGIN
|
170
|
-
X-Content-Type-Options:
|
171
|
-
- nosniff
|
153
|
+
- 5b169080046489d8dada44e6
|
172
154
|
X-Backend:
|
173
155
|
- sbox-priv-gateway-a
|
174
156
|
body:
|
175
157
|
encoding: UTF-8
|
176
|
-
string: '{"successful":true,"response":{"id":"071-PP-
|
177
|
-
Card","reference":"
|
178
|
-
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-
|
179
|
-
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-
|
180
|
-
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-
|
181
|
-
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-
|
158
|
+
string: '{"successful":true,"response":{"id":"071-PP-980JT0WZ","customer":"071-C-AQN3UQXP","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
|
159
|
+
Card","reference":"23f95826f8424e8a96ca6f43790a87e0","description":null,"status":"Active","status_reason":"None","created_at":"2018-07-12T13:20:35+10:00","failed_payment_fee":0,"retry_interval":3,"status_change_date":null,"payments":[{"id":"071-PT-KKIXBR2U","payment_plan":"071-PP-980JT0WZ","reference":"23f95826f8424e8a96ca6f43790a87e0-0001","amount":100,"currency":null,"scheduled_date":"2018-10-12","payment_method":"Credit
|
160
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-XOAZVG0D","payment_plan":"071-PP-980JT0WZ","reference":"23f95826f8424e8a96ca6f43790a87e0-0002","amount":100,"currency":null,"scheduled_date":"2018-10-19","payment_method":"Credit
|
161
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-83CJV8X2","payment_plan":"071-PP-980JT0WZ","reference":"23f95826f8424e8a96ca6f43790a87e0-0003","amount":100,"currency":null,"scheduled_date":"2018-10-26","payment_method":"Credit
|
162
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-9FCH8386","payment_plan":"071-PP-980JT0WZ","reference":"23f95826f8424e8a96ca6f43790a87e0-0004","amount":100,"currency":null,"scheduled_date":"2018-11-02","payment_method":"Credit
|
163
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-C6KMFVW5","payment_plan":"071-PP-980JT0WZ","reference":"23f95826f8424e8a96ca6f43790a87e0-0005","amount":100,"currency":null,"scheduled_date":"2018-11-09","payment_method":"Credit
|
182
164
|
Card","status":"Scheduled","result":null,"records":[]}]},"errors":[],"test":true}'
|
183
165
|
http_version:
|
184
|
-
recorded_at:
|
166
|
+
recorded_at: Thu, 12 Jul 2018 03:20:34 GMT
|
185
167
|
recorded_with: VCR 3.0.3
|