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":"4e12a52a1540d95b32650750cb5d869c","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:38 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.454033'
|
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.458200'
|
49
|
-
X-Frame-Options:
|
50
|
-
- SAMEORIGIN
|
51
|
-
X-Content-Type-Options:
|
52
|
-
- nosniff
|
46
|
+
- c1c21530a2b280fc0bfef149
|
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-X1NFA2UX","email":null,"reference":"4e12a52a1540d95b32650750cb5d869c","first_name":"Harrold","last_name":"Humphries","created_at":"2018-07-12T13:20:38+10:00","address":{"address":"1
|
52
|
+
Harriet Road","city":"Kooliablin","state":"NSW","postcode":"2222","country":"Australia"},"card_token":"fke8a9hs","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:37 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-X1NFA2UX","reference":"f16dd1b3c039e9b4842003ab4eec4837","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:39 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.249886'
|
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.321201'
|
105
|
-
X-Frame-Options:
|
106
|
-
- SAMEORIGIN
|
107
|
-
X-Content-Type-Options:
|
108
|
-
- nosniff
|
96
|
+
- 4969c83af1f7f92a4c9053ef
|
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-98RFR915","customer":"071-C-X1NFA2UX","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":"f16dd1b3c039e9b4842003ab4eec4837","description":null,"status":"Active","status_reason":"None","created_at":"2018-07-12T13:20:38+10:00","failed_payment_fee":0,"retry_interval":3,"status_change_date":null,"payments":[{"id":"071-PT-A2GW3R0A","payment_plan":"071-PP-98RFR915","reference":"f16dd1b3c039e9b4842003ab4eec4837-0001","amount":100,"currency":null,"scheduled_date":"2018-10-12","payment_method":"Credit
|
103
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-MTLYB5QA","payment_plan":"071-PP-98RFR915","reference":"f16dd1b3c039e9b4842003ab4eec4837-0002","amount":100,"currency":null,"scheduled_date":"2018-10-19","payment_method":"Credit
|
104
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-PWO9RPRU","payment_plan":"071-PP-98RFR915","reference":"f16dd1b3c039e9b4842003ab4eec4837-0003","amount":100,"currency":null,"scheduled_date":"2018-10-26","payment_method":"Credit
|
105
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-6YF48OYV","payment_plan":"071-PP-98RFR915","reference":"f16dd1b3c039e9b4842003ab4eec4837-0004","amount":100,"currency":null,"scheduled_date":"2018-11-02","payment_method":"Credit
|
106
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-PLA0K2YW","payment_plan":"071-PP-98RFR915","reference":"f16dd1b3c039e9b4842003ab4eec4837-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:38 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-98RFR915
|
125
113
|
body:
|
126
114
|
encoding: UTF-8
|
127
115
|
string: '{"new_status":"Suspended","test":true}'
|
@@ -142,7 +130,7 @@ http_interactions:
|
|
142
130
|
message: OK
|
143
131
|
headers:
|
144
132
|
Date:
|
145
|
-
-
|
133
|
+
- Thu, 12 Jul 2018 03:20:39 GMT
|
146
134
|
Content-Type:
|
147
135
|
- application/json; charset=utf-8
|
148
136
|
Transfer-Encoding:
|
@@ -154,25 +142,19 @@ http_interactions:
|
|
154
142
|
Cache-Control:
|
155
143
|
- no-store
|
156
144
|
X-Request-Version:
|
157
|
-
- 1.16.9-
|
145
|
+
- 1.16.9-3459@214bedf
|
146
|
+
X-Runtime:
|
147
|
+
- '0.123866'
|
158
148
|
Pragma:
|
159
149
|
- no-cache
|
160
|
-
X-Xss-Protection:
|
161
|
-
- 1; mode=block
|
162
150
|
X-Request-Id:
|
163
|
-
-
|
164
|
-
X-Runtime:
|
165
|
-
- '0.199321'
|
166
|
-
X-Frame-Options:
|
167
|
-
- SAMEORIGIN
|
168
|
-
X-Content-Type-Options:
|
169
|
-
- nosniff
|
151
|
+
- ae00499587b1752d603ee127
|
170
152
|
X-Backend:
|
171
153
|
- sbox-priv-gateway-a
|
172
154
|
body:
|
173
155
|
encoding: UTF-8
|
174
|
-
string: '{"successful":true,"response":{"id":"071-PP-
|
175
|
-
Card","reference":"
|
156
|
+
string: '{"successful":true,"response":{"id":"071-PP-98RFR915","customer":"071-C-X1NFA2UX","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
|
157
|
+
Card","reference":"f16dd1b3c039e9b4842003ab4eec4837","description":null,"status":"Suspended","status_reason":"Other","created_at":"2018-07-12T13:20:38+10:00","failed_payment_fee":0,"retry_interval":3,"status_change_date":null,"payments":[]},"errors":[],"test":true}'
|
176
158
|
http_version:
|
177
|
-
recorded_at:
|
159
|
+
recorded_at: Thu, 12 Jul 2018 03:20:39 GMT
|
178
160
|
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":"b936c129068e8609ecf222e9a16cf0ff","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:41 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.460807'
|
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.435062'
|
49
|
-
X-Frame-Options:
|
50
|
-
- SAMEORIGIN
|
51
|
-
X-Content-Type-Options:
|
52
|
-
- nosniff
|
46
|
+
- 65c8a66e05ca49117afb83f8
|
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-LCF26DLD","email":null,"reference":"b936c129068e8609ecf222e9a16cf0ff","first_name":"Harrold","last_name":"Humphries","created_at":"2018-07-12T13:20:40+10:00","address":{"address":"1
|
52
|
+
Harriet Road","city":"Kooliablin","state":"NSW","postcode":"2222","country":"Australia"},"card_token":"fke8uf3e","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:40 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-LCF26DLD","reference":"758646dc116d47d2978d33aa2d75e78e","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:42 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.258762'
|
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.239235'
|
105
|
-
X-Frame-Options:
|
106
|
-
- SAMEORIGIN
|
107
|
-
X-Content-Type-Options:
|
108
|
-
- nosniff
|
96
|
+
- e054b0a9159030d0c345221a
|
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-67WFO2N2","customer":"071-C-LCF26DLD","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":"758646dc116d47d2978d33aa2d75e78e","description":null,"status":"Active","status_reason":"None","created_at":"2018-07-12T13:20:41+10:00","failed_payment_fee":0,"retry_interval":3,"status_change_date":null,"payments":[{"id":"071-PT-P6LT8GPZ","payment_plan":"071-PP-67WFO2N2","reference":"758646dc116d47d2978d33aa2d75e78e-0001","amount":100,"currency":null,"scheduled_date":"2018-10-12","payment_method":"Credit
|
103
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-MC8A1MNN","payment_plan":"071-PP-67WFO2N2","reference":"758646dc116d47d2978d33aa2d75e78e-0002","amount":100,"currency":null,"scheduled_date":"2018-10-19","payment_method":"Credit
|
104
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-7KTNC7PJ","payment_plan":"071-PP-67WFO2N2","reference":"758646dc116d47d2978d33aa2d75e78e-0003","amount":100,"currency":null,"scheduled_date":"2018-10-26","payment_method":"Credit
|
105
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-EHV34CZG","payment_plan":"071-PP-67WFO2N2","reference":"758646dc116d47d2978d33aa2d75e78e-0004","amount":100,"currency":null,"scheduled_date":"2018-11-02","payment_method":"Credit
|
106
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-CJZ0JBZW","payment_plan":"071-PP-67WFO2N2","reference":"758646dc116d47d2978d33aa2d75e78e-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:41 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-67WFO2N2
|
125
113
|
body:
|
126
114
|
encoding: UTF-8
|
127
115
|
string: '{"new_status":"Suspended","test":true}'
|
@@ -142,7 +130,7 @@ http_interactions:
|
|
142
130
|
message: OK
|
143
131
|
headers:
|
144
132
|
Date:
|
145
|
-
-
|
133
|
+
- Thu, 12 Jul 2018 03:20:42 GMT
|
146
134
|
Content-Type:
|
147
135
|
- application/json; charset=utf-8
|
148
136
|
Transfer-Encoding:
|
@@ -154,25 +142,19 @@ http_interactions:
|
|
154
142
|
Cache-Control:
|
155
143
|
- no-store
|
156
144
|
X-Request-Version:
|
157
|
-
- 1.16.9-
|
145
|
+
- 1.16.9-3459@214bedf
|
146
|
+
X-Runtime:
|
147
|
+
- '0.117293'
|
158
148
|
Pragma:
|
159
149
|
- no-cache
|
160
|
-
X-Xss-Protection:
|
161
|
-
- 1; mode=block
|
162
150
|
X-Request-Id:
|
163
|
-
-
|
164
|
-
X-Runtime:
|
165
|
-
- '0.117961'
|
166
|
-
X-Frame-Options:
|
167
|
-
- SAMEORIGIN
|
168
|
-
X-Content-Type-Options:
|
169
|
-
- nosniff
|
151
|
+
- a1fcb79df0a6cd5dc7a9abf2
|
170
152
|
X-Backend:
|
171
153
|
- sbox-priv-gateway-a
|
172
154
|
body:
|
173
155
|
encoding: UTF-8
|
174
|
-
string: '{"successful":true,"response":{"id":"071-PP-
|
175
|
-
Card","reference":"
|
156
|
+
string: '{"successful":true,"response":{"id":"071-PP-67WFO2N2","customer":"071-C-LCF26DLD","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
|
157
|
+
Card","reference":"758646dc116d47d2978d33aa2d75e78e","description":null,"status":"Suspended","status_reason":"Other","created_at":"2018-07-12T13:20:41+10:00","failed_payment_fee":0,"retry_interval":3,"status_change_date":null,"payments":[]},"errors":[],"test":true}'
|
176
158
|
http_version:
|
177
|
-
recorded_at:
|
159
|
+
recorded_at: Thu, 12 Jul 2018 03:20:41 GMT
|
178
160
|
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":"f858b67e237bb8de81cdbf0f3a25e5b8","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:43 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.444629'
|
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.449443'
|
49
|
-
X-Frame-Options:
|
50
|
-
- SAMEORIGIN
|
51
|
-
X-Content-Type-Options:
|
52
|
-
- nosniff
|
46
|
+
- 181d789fa73bc7eda4640fe1
|
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-FF37KW42","email":null,"reference":"f858b67e237bb8de81cdbf0f3a25e5b8","first_name":"Harrold","last_name":"Humphries","created_at":"2018-07-12T13:20:43+10:00","address":{"address":"1
|
52
|
+
Harriet Road","city":"Kooliablin","state":"NSW","postcode":"2222","country":"Australia"},"card_token":"fke80qqs","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:43 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-FF37KW42","reference":"dba1d26530562aa254803865d1ebd622","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:44 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.265487'
|
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.272847'
|
105
|
-
X-Frame-Options:
|
106
|
-
- SAMEORIGIN
|
107
|
-
X-Content-Type-Options:
|
108
|
-
- nosniff
|
96
|
+
- d6ed3b10d0b73f7d72d70237
|
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-UY0L2C1R","customer":"071-C-FF37KW42","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":"dba1d26530562aa254803865d1ebd622","description":null,"status":"Active","status_reason":"None","created_at":"2018-07-12T13:20:44+10:00","failed_payment_fee":0,"retry_interval":3,"status_change_date":null,"payments":[{"id":"071-PT-BKXFJU2J","payment_plan":"071-PP-UY0L2C1R","reference":"dba1d26530562aa254803865d1ebd622-0001","amount":100,"currency":null,"scheduled_date":"2018-10-12","payment_method":"Credit
|
103
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-7FZ4O38D","payment_plan":"071-PP-UY0L2C1R","reference":"dba1d26530562aa254803865d1ebd622-0002","amount":100,"currency":null,"scheduled_date":"2018-10-19","payment_method":"Credit
|
104
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-W2X2L1A4","payment_plan":"071-PP-UY0L2C1R","reference":"dba1d26530562aa254803865d1ebd622-0003","amount":100,"currency":null,"scheduled_date":"2018-10-26","payment_method":"Credit
|
105
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-FADGI534","payment_plan":"071-PP-UY0L2C1R","reference":"dba1d26530562aa254803865d1ebd622-0004","amount":100,"currency":null,"scheduled_date":"2018-11-02","payment_method":"Credit
|
106
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-O6KR93HX","payment_plan":"071-PP-UY0L2C1R","reference":"dba1d26530562aa254803865d1ebd622-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:43 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-UY0L2C1R
|
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-FF37KW42","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":"dba1d26530562aa254803865d1ebd622","description":null,"status":"Active","status_reason":"None","created_at":"2018-07-12T13:20:44+10:00","failed_payment_fee":0,"retry_interval":3,"status_change_date":null,"payments":[{"id":"071-PT-BKXFJU2J","payment_plan":"071-PP-UY0L2C1R","reference":"dba1d26530562aa254803865d1ebd622-0001","amount":100,"currency":null,"scheduled_date":"2018-10-12","payment_method":"Credit
|
117
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-7FZ4O38D","payment_plan":"071-PP-UY0L2C1R","reference":"dba1d26530562aa254803865d1ebd622-0002","amount":100,"currency":null,"scheduled_date":"2018-10-19","payment_method":"Credit
|
118
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-W2X2L1A4","payment_plan":"071-PP-UY0L2C1R","reference":"dba1d26530562aa254803865d1ebd622-0003","amount":100,"currency":null,"scheduled_date":"2018-10-26","payment_method":"Credit
|
119
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-FADGI534","payment_plan":"071-PP-UY0L2C1R","reference":"dba1d26530562aa254803865d1ebd622-0004","amount":100,"currency":null,"scheduled_date":"2018-11-02","payment_method":"Credit
|
120
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-O6KR93HX","payment_plan":"071-PP-UY0L2C1R","reference":"dba1d26530562aa254803865d1ebd622-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:20:45 GMT
|
152
140
|
Content-Type:
|
153
141
|
- application/json; charset=utf-8
|
154
142
|
Transfer-Encoding:
|
@@ -160,25 +148,19 @@ 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.129528'
|
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.118236'
|
172
|
-
X-Frame-Options:
|
173
|
-
- SAMEORIGIN
|
174
|
-
X-Content-Type-Options:
|
175
|
-
- nosniff
|
157
|
+
- bae12be8bdfcc075e1ac1e15
|
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-UY0L2C1R","customer":"071-C-FF37KW42","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":"dba1d26530562aa254803865d1ebd622","description":null,"status":"Suspended","status_reason":"Other","created_at":"2018-07-12T13:20:44+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:20:44 GMT
|
184
166
|
recorded_with: VCR 3.0.3
|