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
@@ -23,7 +23,7 @@ http_interactions:
|
|
23
23
|
message: Created
|
24
24
|
headers:
|
25
25
|
Date:
|
26
|
-
-
|
26
|
+
- Wed, 25 Jul 2018 03:20:50 GMT
|
27
27
|
Content-Type:
|
28
28
|
- application/json; charset=utf-8
|
29
29
|
Transfer-Encoding:
|
@@ -35,26 +35,20 @@ http_interactions:
|
|
35
35
|
Cache-Control:
|
36
36
|
- no-store
|
37
37
|
X-Request-Version:
|
38
|
-
- 1.16.9-
|
38
|
+
- 1.16.9-3480@96677e4
|
39
|
+
X-Runtime:
|
40
|
+
- '0.046819'
|
39
41
|
Pragma:
|
40
42
|
- no-cache
|
41
|
-
X-Xss-Protection:
|
42
|
-
- 1; mode=block
|
43
43
|
X-Request-Id:
|
44
|
-
-
|
45
|
-
X-Runtime:
|
46
|
-
- '0.037808'
|
47
|
-
X-Frame-Options:
|
48
|
-
- SAMEORIGIN
|
49
|
-
X-Content-Type-Options:
|
50
|
-
- nosniff
|
44
|
+
- 4df4f0117bbe5bdbc97f2ac0
|
51
45
|
X-Backend:
|
52
46
|
- sbox-priv-gateway-a
|
53
47
|
body:
|
54
48
|
encoding: UTF-8
|
55
|
-
string: '{"successful":true,"response":{"id":"071-DD-
|
49
|
+
string: '{"successful":true,"response":{"id":"071-DD-ZUM9O1BT","amount":42.0,"bsb":"123-123","account_number":"012345678","account_name":"Test","description":"Confirmation","reference":"071-DD-ZUM9O1BT","date":"2018-07-25","process_date":null,"status":"New","result":null,"metadata":null},"errors":[],"test":true}'
|
56
50
|
http_version:
|
57
|
-
recorded_at:
|
51
|
+
recorded_at: Wed, 25 Jul 2018 03:20:48 GMT
|
58
52
|
- request:
|
59
53
|
method: post
|
60
54
|
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/direct_debits
|
@@ -78,7 +72,7 @@ http_interactions:
|
|
78
72
|
message: Created
|
79
73
|
headers:
|
80
74
|
Date:
|
81
|
-
-
|
75
|
+
- Wed, 25 Jul 2018 03:20:51 GMT
|
82
76
|
Content-Type:
|
83
77
|
- application/json; charset=utf-8
|
84
78
|
Transfer-Encoding:
|
@@ -90,29 +84,23 @@ http_interactions:
|
|
90
84
|
Cache-Control:
|
91
85
|
- no-store
|
92
86
|
X-Request-Version:
|
93
|
-
- 1.16.9-
|
87
|
+
- 1.16.9-3480@96677e4
|
88
|
+
X-Runtime:
|
89
|
+
- '0.058836'
|
94
90
|
Pragma:
|
95
91
|
- no-cache
|
96
|
-
X-Xss-Protection:
|
97
|
-
- 1; mode=block
|
98
92
|
X-Request-Id:
|
99
|
-
-
|
100
|
-
X-Runtime:
|
101
|
-
- '0.036893'
|
102
|
-
X-Frame-Options:
|
103
|
-
- SAMEORIGIN
|
104
|
-
X-Content-Type-Options:
|
105
|
-
- nosniff
|
93
|
+
- a65d81eeb7294d50e865cf15
|
106
94
|
X-Backend:
|
107
95
|
- sbox-priv-gateway-a
|
108
96
|
body:
|
109
97
|
encoding: UTF-8
|
110
|
-
string: '{"successful":true,"response":{"id":"071-DD-
|
98
|
+
string: '{"successful":true,"response":{"id":"071-DD-UYM1REFT","amount":42.0,"bsb":"123-123","account_number":"012345678","account_name":"Test","description":"Confirmation","reference":"071-DD-UYM1REFT","date":"2018-07-25","process_date":null,"status":"New","result":null,"metadata":null},"errors":[],"test":true}'
|
111
99
|
http_version:
|
112
|
-
recorded_at:
|
100
|
+
recorded_at: Wed, 25 Jul 2018 03:20:48 GMT
|
113
101
|
- request:
|
114
102
|
method: get
|
115
|
-
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/direct_debits?limit=10&
|
103
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/direct_debits?limit=10&offset=0&test=true
|
116
104
|
body:
|
117
105
|
encoding: US-ASCII
|
118
106
|
string: ''
|
@@ -135,7 +123,7 @@ http_interactions:
|
|
135
123
|
message: OK
|
136
124
|
headers:
|
137
125
|
Date:
|
138
|
-
-
|
126
|
+
- Wed, 25 Jul 2018 03:20:51 GMT
|
139
127
|
Content-Type:
|
140
128
|
- application/json; charset=utf-8
|
141
129
|
Transfer-Encoding:
|
@@ -147,24 +135,18 @@ http_interactions:
|
|
147
135
|
Cache-Control:
|
148
136
|
- no-store
|
149
137
|
X-Request-Version:
|
150
|
-
- 1.16.9-
|
138
|
+
- 1.16.9-3480@96677e4
|
139
|
+
X-Runtime:
|
140
|
+
- '0.031229'
|
151
141
|
Pragma:
|
152
142
|
- no-cache
|
153
|
-
X-Xss-Protection:
|
154
|
-
- 1; mode=block
|
155
143
|
X-Request-Id:
|
156
|
-
-
|
157
|
-
X-Runtime:
|
158
|
-
- '0.018821'
|
159
|
-
X-Frame-Options:
|
160
|
-
- SAMEORIGIN
|
161
|
-
X-Content-Type-Options:
|
162
|
-
- nosniff
|
144
|
+
- 47d3517660e5f44087fb732d
|
163
145
|
X-Backend:
|
164
146
|
- sbox-priv-gateway-a
|
165
147
|
body:
|
166
148
|
encoding: UTF-8
|
167
|
-
string: '{"successful":true,"response":[{"id":"071-DD-
|
149
|
+
string: '{"successful":true,"response":[{"id":"071-DD-UYM1REFT","amount":42.0,"bsb":"123-123","account_number":"012345678","account_name":"Test","description":"Confirmation","reference":"071-DD-UYM1REFT","date":"2018-07-25","process_date":null,"status":"New","result":null,"metadata":null},{"id":"071-DD-ZUM9O1BT","amount":42.0,"bsb":"123-123","account_number":"012345678","account_name":"Test","description":"Confirmation","reference":"071-DD-ZUM9O1BT","date":"2018-07-25","process_date":null,"status":"New","result":null,"metadata":null},{"id":"071-DD-AKZ6Z87E","amount":42.0,"bsb":"123-123","account_number":"012345678","account_name":"Test","description":"Confirmation","reference":"071-DD-AKZ6Z87E","date":"2018-07-25","process_date":null,"status":"New","result":null,"metadata":null},{"id":"071-DD-ALLZGDOP","amount":42.0,"bsb":"123-123","account_number":"012345678","account_name":"Test","description":"Confirmation","reference":"071-DD-ALLZGDOP","date":"2018-07-25","process_date":null,"status":"New","result":null,"metadata":null},{"id":"071-DD-93ZISGY","amount":42.0,"bsb":"123-123","account_number":"012345678","account_name":"Test","description":"Confirmation","reference":"071-DD-93ZISGY","date":"2018-07-25","process_date":null,"status":"Deleted","result":null,"metadata":null},{"id":"071-DD-YP7JIEM4","amount":42.0,"bsb":"123-123","account_number":"012345678","account_name":"Test","description":"Confirmation","reference":"071-DD-YP7JIEM4","date":"2018-07-25","process_date":null,"status":"New","result":null,"metadata":null},{"id":"071-DD-OPPXJAP2","amount":42.0,"bsb":"123-123","account_number":"012345678","account_name":"Test","description":"Confirmation","reference":"071-DD-OPPXJAP2","date":"2018-07-25","process_date":null,"status":"New","result":null,"metadata":null},{"id":"071-DD-IPX1P1VM","amount":42.0,"bsb":"123-123","account_number":"012345678","account_name":"Test","description":"Confirmation","reference":"071-DD-IPX1P1VM","date":"2018-07-25","process_date":null,"status":"New","result":null,"metadata":null},{"id":"071-DD-N87C651K","amount":42.0,"bsb":"123-123","account_number":"012345678","account_name":"Test","description":"Confirmation","reference":"071-DD-N87C651K","date":"2018-07-25","process_date":null,"status":"New","result":null,"metadata":null},{"id":"071-DD-A2WJ1D0K","amount":42.0,"bsb":"123-123","account_number":"012345678","account_name":"Test","description":"Confirmation","reference":"071-DD-A2WJ1D0K","date":"2018-07-25","process_date":null,"status":"New","result":null,"metadata":null}],"errors":[],"test":true,"records":10,"total_records":16507,"page":0,"total_pages":1651}'
|
168
150
|
http_version:
|
169
|
-
recorded_at:
|
151
|
+
recorded_at: Wed, 25 Jul 2018 03:20:48 GMT
|
170
152
|
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":"86ad55cd63c94c35a6bc4d88c2a50b48","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:59 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.437190'
|
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.424823'
|
49
|
-
X-Frame-Options:
|
50
|
-
- SAMEORIGIN
|
51
|
-
X-Content-Type-Options:
|
52
|
-
- nosniff
|
46
|
+
- e591004488fe27016504a661
|
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-DIUNU2FG","email":null,"reference":"86ad55cd63c94c35a6bc4d88c2a50b48","first_name":"Harrold","last_name":"Humphries","created_at":"2018-07-12T13:20:59+10:00","address":{"address":"1
|
52
|
+
Harriet Road","city":"Kooliablin","state":"NSW","postcode":"2222","country":"Australia"},"card_token":"fke8wa1q","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:58 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-DIUNU2FG","reference":"12498ea3ee142f3cbd72b36208d23eb2","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:59 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.268608'
|
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.218312'
|
105
|
-
X-Frame-Options:
|
106
|
-
- SAMEORIGIN
|
107
|
-
X-Content-Type-Options:
|
108
|
-
- nosniff
|
96
|
+
- cc97731bf948d1c5da95d2ef
|
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-EUS4XPK8","customer":"071-C-DIUNU2FG","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":"12498ea3ee142f3cbd72b36208d23eb2","description":null,"status":"Active","status_reason":"None","created_at":"2018-07-12T13:20:59+10:00","failed_payment_fee":0,"retry_interval":3,"status_change_date":null,"payments":[{"id":"071-PT-QY4L4DYQ","payment_plan":"071-PP-EUS4XPK8","reference":"12498ea3ee142f3cbd72b36208d23eb2-0001","amount":100,"currency":null,"scheduled_date":"2018-10-12","payment_method":"Credit
|
103
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-VB2E8U8","payment_plan":"071-PP-EUS4XPK8","reference":"12498ea3ee142f3cbd72b36208d23eb2-0002","amount":100,"currency":null,"scheduled_date":"2018-10-19","payment_method":"Credit
|
104
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-HNRIVC3O","payment_plan":"071-PP-EUS4XPK8","reference":"12498ea3ee142f3cbd72b36208d23eb2-0003","amount":100,"currency":null,"scheduled_date":"2018-10-26","payment_method":"Credit
|
105
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-9LZO5XZU","payment_plan":"071-PP-EUS4XPK8","reference":"12498ea3ee142f3cbd72b36208d23eb2-0004","amount":100,"currency":null,"scheduled_date":"2018-11-02","payment_method":"Credit
|
106
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-MGMYT26W","payment_plan":"071-PP-EUS4XPK8","reference":"12498ea3ee142f3cbd72b36208d23eb2-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:59 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-EUS4XPK8
|
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-DIUNU2FG","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":"12498ea3ee142f3cbd72b36208d23eb2","description":null,"status":"Active","status_reason":"None","created_at":"2018-07-12T13:20:59+10:00","failed_payment_fee":0,"retry_interval":3,"status_change_date":null,"payments":[{"id":"071-PT-QY4L4DYQ","payment_plan":"071-PP-EUS4XPK8","reference":"12498ea3ee142f3cbd72b36208d23eb2-0001","amount":100,"currency":null,"scheduled_date":"2018-10-12","payment_method":"Credit
|
117
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-VB2E8U8","payment_plan":"071-PP-EUS4XPK8","reference":"12498ea3ee142f3cbd72b36208d23eb2-0002","amount":100,"currency":null,"scheduled_date":"2018-10-19","payment_method":"Credit
|
118
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-HNRIVC3O","payment_plan":"071-PP-EUS4XPK8","reference":"12498ea3ee142f3cbd72b36208d23eb2-0003","amount":100,"currency":null,"scheduled_date":"2018-10-26","payment_method":"Credit
|
119
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-9LZO5XZU","payment_plan":"071-PP-EUS4XPK8","reference":"12498ea3ee142f3cbd72b36208d23eb2-0004","amount":100,"currency":null,"scheduled_date":"2018-11-02","payment_method":"Credit
|
120
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-MGMYT26W","payment_plan":"071-PP-EUS4XPK8","reference":"12498ea3ee142f3cbd72b36208d23eb2-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:00 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.138453'
|
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.107310'
|
172
|
-
X-Frame-Options:
|
173
|
-
- SAMEORIGIN
|
174
|
-
X-Content-Type-Options:
|
175
|
-
- nosniff
|
157
|
+
- 619e2f87f144e5a9b065e0a4
|
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-EUS4XPK8","customer":"071-C-DIUNU2FG","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":"12498ea3ee142f3cbd72b36208d23eb2","description":null,"status":"Suspended","status_reason":"Other","created_at":"2018-07-12T13:20:59+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:00 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-EUS4XPK8
|
187
169
|
body:
|
188
170
|
encoding: UTF-8
|
189
|
-
string: '{"customer":"071-C-
|
190
|
-
Card","reference":"
|
171
|
+
string: '{"customer":"071-C-DIUNU2FG","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":"12498ea3ee142f3cbd72b36208d23eb2","description":null,"status":"Suspended","status_reason":"Other","created_at":"2018-07-12T13:20:59+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:01 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.680137'
|
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.226979'
|
229
|
-
X-Frame-Options:
|
230
|
-
- SAMEORIGIN
|
231
|
-
X-Content-Type-Options:
|
232
|
-
- nosniff
|
208
|
+
- d9f12251d9389209c939ea2d
|
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-EUS4XPK8","customer":"071-C-DIUNU2FG","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":"12498ea3ee142f3cbd72b36208d23eb2","description":null,"status":"Active","status_reason":"None","created_at":"2018-07-12T13:20:59+10:00","failed_payment_fee":0,"retry_interval":3,"status_change_date":null,"payments":[{"id":"071-PT-NUEZAJ4S","payment_plan":"071-PP-EUS4XPK8","reference":"12498ea3ee142f3cbd72b36208d23eb2-0001","amount":100,"currency":null,"scheduled_date":"2018-10-12","payment_method":"Credit
|
215
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-OQ9GMA5N","payment_plan":"071-PP-EUS4XPK8","reference":"12498ea3ee142f3cbd72b36208d23eb2-0002","amount":100,"currency":null,"scheduled_date":"2018-10-19","payment_method":"Credit
|
216
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-HF30LQOF","payment_plan":"071-PP-EUS4XPK8","reference":"12498ea3ee142f3cbd72b36208d23eb2-0003","amount":100,"currency":null,"scheduled_date":"2018-10-26","payment_method":"Credit
|
217
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-JBJU0VDZ","payment_plan":"071-PP-EUS4XPK8","reference":"12498ea3ee142f3cbd72b36208d23eb2-0004","amount":100,"currency":null,"scheduled_date":"2018-11-02","payment_method":"Credit
|
218
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-QT6U4OC0","payment_plan":"071-PP-EUS4XPK8","reference":"12498ea3ee142f3cbd72b36208d23eb2-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:01 GMT
|
246
222
|
recorded_with: VCR 3.0.3
|