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":"fb366304b0366111898c80bfaf7ea8e1","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:30 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.448531'
|
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.423428'
|
49
|
-
X-Frame-Options:
|
50
|
-
- SAMEORIGIN
|
51
|
-
X-Content-Type-Options:
|
52
|
-
- nosniff
|
46
|
+
- 13ae8d382fb9ab98457afaec
|
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-TUKYVNWH","email":null,"reference":"fb366304b0366111898c80bfaf7ea8e1","first_name":"Harrold","last_name":"Humphries","created_at":"2018-07-12T13:20:29+10:00","address":{"address":"1
|
52
|
+
Harriet Road","city":"Kooliablin","state":"NSW","postcode":"2222","country":"Australia"},"card_token":"fke8il0j","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:29 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-TUKYVNWH","reference":"70f1352e12536b2919d167f82a58f0df","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:30 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.242437'
|
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.263698'
|
105
|
-
X-Frame-Options:
|
106
|
-
- SAMEORIGIN
|
107
|
-
X-Content-Type-Options:
|
108
|
-
- nosniff
|
96
|
+
- eed51bdecfd281d1e14180c6
|
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-90VU2BL0","customer":"071-C-TUKYVNWH","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":"70f1352e12536b2919d167f82a58f0df","description":null,"status":"Active","status_reason":"None","created_at":"2018-07-12T13:20:30+10:00","failed_payment_fee":0,"retry_interval":3,"status_change_date":null,"payments":[{"id":"071-PT-YF5NF3FD","payment_plan":"071-PP-90VU2BL0","reference":"70f1352e12536b2919d167f82a58f0df-0001","amount":100,"currency":null,"scheduled_date":"2018-10-12","payment_method":"Credit
|
103
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-GWQQ3QS7","payment_plan":"071-PP-90VU2BL0","reference":"70f1352e12536b2919d167f82a58f0df-0002","amount":100,"currency":null,"scheduled_date":"2018-10-19","payment_method":"Credit
|
104
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-742WG5G8","payment_plan":"071-PP-90VU2BL0","reference":"70f1352e12536b2919d167f82a58f0df-0003","amount":100,"currency":null,"scheduled_date":"2018-10-26","payment_method":"Credit
|
105
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-Z33K4B41","payment_plan":"071-PP-90VU2BL0","reference":"70f1352e12536b2919d167f82a58f0df-0004","amount":100,"currency":null,"scheduled_date":"2018-11-02","payment_method":"Credit
|
106
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-O8AO85GH","payment_plan":"071-PP-90VU2BL0","reference":"70f1352e12536b2919d167f82a58f0df-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:29 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":"6b262320ef7ba856079e214f95fc20a5","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:51 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.450432'
|
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.454908'
|
49
|
-
X-Frame-Options:
|
50
|
-
- SAMEORIGIN
|
51
|
-
X-Content-Type-Options:
|
52
|
-
- nosniff
|
46
|
+
- 98d409899506bc6cf7fc13e4
|
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-96CWQFBL","email":null,"reference":"6b262320ef7ba856079e214f95fc20a5","first_name":"Harrold","last_name":"Humphries","created_at":"2018-07-12T13:20:50+10:00","address":{"address":"1
|
52
|
+
Harriet Road","city":"Kooliablin","state":"NSW","postcode":"2222","country":"Australia"},"card_token":"fke8slaq","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:50 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-96CWQFBL","reference":"9f4ab9ddbc47076715b6edc042a73217","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:52 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.267553'
|
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.216792'
|
105
|
-
X-Frame-Options:
|
106
|
-
- SAMEORIGIN
|
107
|
-
X-Content-Type-Options:
|
108
|
-
- nosniff
|
96
|
+
- c92a1e9f07dab9ef703aa237
|
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-B1I7XLGZ","customer":"071-C-96CWQFBL","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":"9f4ab9ddbc47076715b6edc042a73217","description":null,"status":"Active","status_reason":"None","created_at":"2018-07-12T13:20:52+10:00","failed_payment_fee":0,"retry_interval":3,"status_change_date":null,"payments":[{"id":"071-PT-LDCBT2MH","payment_plan":"071-PP-B1I7XLGZ","reference":"9f4ab9ddbc47076715b6edc042a73217-0001","amount":100,"currency":null,"scheduled_date":"2018-10-12","payment_method":"Credit
|
103
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-805EZZKH","payment_plan":"071-PP-B1I7XLGZ","reference":"9f4ab9ddbc47076715b6edc042a73217-0002","amount":100,"currency":null,"scheduled_date":"2018-10-19","payment_method":"Credit
|
104
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-8UJPJ5DC","payment_plan":"071-PP-B1I7XLGZ","reference":"9f4ab9ddbc47076715b6edc042a73217-0003","amount":100,"currency":null,"scheduled_date":"2018-10-26","payment_method":"Credit
|
105
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-8QUAA1HN","payment_plan":"071-PP-B1I7XLGZ","reference":"9f4ab9ddbc47076715b6edc042a73217-0004","amount":100,"currency":null,"scheduled_date":"2018-11-02","payment_method":"Credit
|
106
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-DMCTMI9N","payment_plan":"071-PP-B1I7XLGZ","reference":"9f4ab9ddbc47076715b6edc042a73217-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:52 GMT
|
122
110
|
- request:
|
123
111
|
method: delete
|
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-B1I7XLGZ
|
125
113
|
body:
|
126
114
|
encoding: UTF-8
|
127
115
|
string: '{"test":true}'
|
@@ -140,7 +128,7 @@ http_interactions:
|
|
140
128
|
message: OK
|
141
129
|
headers:
|
142
130
|
Date:
|
143
|
-
-
|
131
|
+
- Thu, 12 Jul 2018 03:20:54 GMT
|
144
132
|
Content-Type:
|
145
133
|
- application/json; charset=utf-8
|
146
134
|
Transfer-Encoding:
|
@@ -152,25 +140,19 @@ http_interactions:
|
|
152
140
|
Cache-Control:
|
153
141
|
- no-store
|
154
142
|
X-Request-Version:
|
155
|
-
- 1.16.9-
|
143
|
+
- 1.16.9-3459@214bedf
|
144
|
+
X-Runtime:
|
145
|
+
- '0.196937'
|
156
146
|
Pragma:
|
157
147
|
- no-cache
|
158
|
-
X-Xss-Protection:
|
159
|
-
- 1; mode=block
|
160
148
|
X-Request-Id:
|
161
|
-
-
|
162
|
-
X-Runtime:
|
163
|
-
- '0.103581'
|
164
|
-
X-Frame-Options:
|
165
|
-
- SAMEORIGIN
|
166
|
-
X-Content-Type-Options:
|
167
|
-
- nosniff
|
149
|
+
- 27a0d4937852f2cae7f3a053
|
168
150
|
X-Backend:
|
169
151
|
- sbox-priv-gateway-a
|
170
152
|
body:
|
171
153
|
encoding: UTF-8
|
172
|
-
string: '{"successful":true,"response":{"id":"071-PP-
|
173
|
-
Card","reference":"
|
154
|
+
string: '{"successful":true,"response":{"id":"071-PP-B1I7XLGZ","customer":"071-C-96CWQFBL","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
|
155
|
+
Card","reference":"9f4ab9ddbc47076715b6edc042a73217","description":null,"status":"Cancelled","status_reason":"Other","created_at":"2018-07-12T13:20:52+10:00","failed_payment_fee":0,"retry_interval":3,"status_change_date":null,"payments":[]},"errors":[],"test":true}'
|
174
156
|
http_version:
|
175
|
-
recorded_at:
|
157
|
+
recorded_at: Thu, 12 Jul 2018 03:20:53 GMT
|
176
158
|
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":"f0aae0615f1a3e41da50abb4d18f0007","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:55 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.471678'
|
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.475868'
|
49
|
-
X-Frame-Options:
|
50
|
-
- SAMEORIGIN
|
51
|
-
X-Content-Type-Options:
|
52
|
-
- nosniff
|
46
|
+
- 68e3035542bbe5d7ae3762ac
|
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-7KY35SSC","email":null,"reference":"f0aae0615f1a3e41da50abb4d18f0007","first_name":"Harrold","last_name":"Humphries","created_at":"2018-07-12T13:20:54+10:00","address":{"address":"1
|
52
|
+
Harriet Road","city":"Kooliablin","state":"NSW","postcode":"2222","country":"Australia"},"card_token":"fke8flgb","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:54 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-7KY35SSC","reference":"ccf37984785535b3f76da095ca37fe1d","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:55 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.240323'
|
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.224062'
|
105
|
-
X-Frame-Options:
|
106
|
-
- SAMEORIGIN
|
107
|
-
X-Content-Type-Options:
|
108
|
-
- nosniff
|
96
|
+
- ad6b1da4f34e76c2b651ce9f
|
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-B5PXT68E","customer":"071-C-7KY35SSC","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":"ccf37984785535b3f76da095ca37fe1d","description":null,"status":"Active","status_reason":"None","created_at":"2018-07-12T13:20:55+10:00","failed_payment_fee":0,"retry_interval":3,"status_change_date":null,"payments":[{"id":"071-PT-DQR7GYK7","payment_plan":"071-PP-B5PXT68E","reference":"ccf37984785535b3f76da095ca37fe1d-0001","amount":100,"currency":null,"scheduled_date":"2018-10-12","payment_method":"Credit
|
103
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-62JRR0MJ","payment_plan":"071-PP-B5PXT68E","reference":"ccf37984785535b3f76da095ca37fe1d-0002","amount":100,"currency":null,"scheduled_date":"2018-10-19","payment_method":"Credit
|
104
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-7P0NWSLA","payment_plan":"071-PP-B5PXT68E","reference":"ccf37984785535b3f76da095ca37fe1d-0003","amount":100,"currency":null,"scheduled_date":"2018-10-26","payment_method":"Credit
|
105
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-F2MVZD44","payment_plan":"071-PP-B5PXT68E","reference":"ccf37984785535b3f76da095ca37fe1d-0004","amount":100,"currency":null,"scheduled_date":"2018-11-02","payment_method":"Credit
|
106
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-C0IYD54O","payment_plan":"071-PP-B5PXT68E","reference":"ccf37984785535b3f76da095ca37fe1d-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:54 GMT
|
122
110
|
- request:
|
123
111
|
method: delete
|
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-B5PXT68E
|
125
113
|
body:
|
126
114
|
encoding: UTF-8
|
127
115
|
string: '{"test":true}'
|
@@ -140,7 +128,7 @@ http_interactions:
|
|
140
128
|
message: OK
|
141
129
|
headers:
|
142
130
|
Date:
|
143
|
-
-
|
131
|
+
- Thu, 12 Jul 2018 03:20:55 GMT
|
144
132
|
Content-Type:
|
145
133
|
- application/json; charset=utf-8
|
146
134
|
Transfer-Encoding:
|
@@ -152,25 +140,19 @@ http_interactions:
|
|
152
140
|
Cache-Control:
|
153
141
|
- no-store
|
154
142
|
X-Request-Version:
|
155
|
-
- 1.16.9-
|
143
|
+
- 1.16.9-3459@214bedf
|
144
|
+
X-Runtime:
|
145
|
+
- '0.117366'
|
156
146
|
Pragma:
|
157
147
|
- no-cache
|
158
|
-
X-Xss-Protection:
|
159
|
-
- 1; mode=block
|
160
148
|
X-Request-Id:
|
161
|
-
-
|
162
|
-
X-Runtime:
|
163
|
-
- '0.105067'
|
164
|
-
X-Frame-Options:
|
165
|
-
- SAMEORIGIN
|
166
|
-
X-Content-Type-Options:
|
167
|
-
- nosniff
|
149
|
+
- 169501928982e41e9c1a811a
|
168
150
|
X-Backend:
|
169
151
|
- sbox-priv-gateway-a
|
170
152
|
body:
|
171
153
|
encoding: UTF-8
|
172
|
-
string: '{"successful":true,"response":{"id":"071-PP-
|
173
|
-
Card","reference":"
|
154
|
+
string: '{"successful":true,"response":{"id":"071-PP-B5PXT68E","customer":"071-C-7KY35SSC","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
|
155
|
+
Card","reference":"ccf37984785535b3f76da095ca37fe1d","description":null,"status":"Cancelled","status_reason":"Other","created_at":"2018-07-12T13:20:55+10:00","failed_payment_fee":0,"retry_interval":3,"status_change_date":null,"payments":[]},"errors":[],"test":true}'
|
174
156
|
http_version:
|
175
|
-
recorded_at:
|
157
|
+
recorded_at: Thu, 12 Jul 2018 03:20:54 GMT
|
176
158
|
recorded_with: VCR 3.0.3
|