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:48 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.058530'
|
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.043735'
|
47
|
-
X-Frame-Options:
|
48
|
-
- SAMEORIGIN
|
49
|
-
X-Content-Type-Options:
|
50
|
-
- nosniff
|
44
|
+
- cf4dae0824e0077b2b2bb708
|
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-DC-
|
49
|
+
string: '{"successful":true,"response":{"id":"071-DC-NCGG8UYZ","amount":42.0,"bsb":"123-123","account_number":"012345678","account_name":"Test","description":"Confirmation","reference":"071-DC-NCGG8UYZ","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:45 GMT
|
58
52
|
- request:
|
59
53
|
method: post
|
60
54
|
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/direct_credits
|
@@ -78,7 +72,7 @@ http_interactions:
|
|
78
72
|
message: Created
|
79
73
|
headers:
|
80
74
|
Date:
|
81
|
-
-
|
75
|
+
- Wed, 25 Jul 2018 03:20:48 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.047269'
|
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.036649'
|
102
|
-
X-Frame-Options:
|
103
|
-
- SAMEORIGIN
|
104
|
-
X-Content-Type-Options:
|
105
|
-
- nosniff
|
93
|
+
- ec2d10b1fdf453bd445782f1
|
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-DC-
|
98
|
+
string: '{"successful":true,"response":{"id":"071-DC-30CY9P08","amount":42.0,"bsb":"123-123","account_number":"012345678","account_name":"Test","description":"Confirmation","reference":"071-DC-30CY9P08","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:45 GMT
|
113
101
|
- request:
|
114
102
|
method: get
|
115
|
-
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/direct_credits?limit=10&
|
103
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/direct_credits?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:48 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.024131'
|
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.016574'
|
159
|
-
X-Frame-Options:
|
160
|
-
- SAMEORIGIN
|
161
|
-
X-Content-Type-Options:
|
162
|
-
- nosniff
|
144
|
+
- 918bf4722b60f0dadca6aa40
|
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-DC-
|
149
|
+
string: '{"successful":true,"response":[{"id":"071-DC-30CY9P08","amount":42.0,"bsb":"123-123","account_number":"012345678","account_name":"Test","description":"Confirmation","reference":"071-DC-30CY9P08","date":"2018-07-25","process_date":null,"status":"New","result":null,"metadata":null},{"id":"071-DC-NCGG8UYZ","amount":42.0,"bsb":"123-123","account_number":"012345678","account_name":"Test","description":"Confirmation","reference":"071-DC-NCGG8UYZ","date":"2018-07-25","process_date":null,"status":"New","result":null,"metadata":null},{"id":"071-DC-PUY2X1CV","amount":42.0,"bsb":"123-123","account_number":"012345678","account_name":"Test","description":"Confirmation","reference":"071-DC-PUY2X1CV","date":"2018-07-25","process_date":null,"status":"Deleted","result":null,"metadata":null},{"id":"071-DC-HG68140","amount":42.0,"bsb":"123-123","account_number":"012345678","account_name":"Test","description":"Confirmation","reference":"071-DC-HG68140","date":"2018-07-25","process_date":null,"status":"New","result":null,"metadata":null},{"id":"071-DC-663O4SMN","amount":42.0,"bsb":"123-123","account_number":"012345678","account_name":"Test","description":"Confirmation","reference":"071-DC-663O4SMN","date":"2018-07-25","process_date":null,"status":"New","result":null,"metadata":null},{"id":"071-DC-UKWVQYER","amount":42.0,"bsb":"123-123","account_number":"012345678","account_name":"Test","description":"Confirmation","reference":"071-DC-UKWVQYER","date":"2018-07-25","process_date":null,"status":"New","result":null,"metadata":null},{"id":"071-DC-NM7UXD64","amount":42.0,"bsb":"123-123","account_number":"012345678","account_name":"Test","description":"Confirmation","reference":"071-DC-NM7UXD64","date":"2018-07-25","process_date":null,"status":"New","result":null,"metadata":null},{"id":"071-DC-HZZ9QXWO","amount":42.0,"bsb":"123-123","account_number":"012345678","account_name":"Test","description":"Confirmation","reference":"071-DC-HZZ9QXWO","date":"2018-07-25","process_date":null,"status":"New","result":null,"metadata":null},{"id":"071-DC-WK8FTOG7","amount":42.0,"bsb":"123-123","account_number":"012345678","account_name":"Test","description":"Confirmation","reference":"071-DC-WK8FTOG7","date":"2018-07-25","process_date":null,"status":"New","result":null,"metadata":null},{"id":"071-DC-27YDTU9A","amount":42.42,"bsb":"123-123","account_number":"012345678","account_name":"Test","description":"Confirmation","reference":"071-DC-27YDTU9A","date":"2018-07-25","process_date":null,"status":"New","result":null,"metadata":null}],"errors":[],"test":true,"records":10,"total_records":637,"page":0,"total_pages":64}'
|
168
150
|
http_version:
|
169
|
-
recorded_at:
|
151
|
+
recorded_at: Wed, 25 Jul 2018 03:20:46 GMT
|
170
152
|
recorded_with: VCR 3.0.3
|
@@ -23,7 +23,7 @@ http_interactions:
|
|
23
23
|
message: Created
|
24
24
|
headers:
|
25
25
|
Date:
|
26
|
-
-
|
26
|
+
- Wed, 25 Jul 2018 03:20:49 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.044118'
|
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.035381'
|
47
|
-
X-Frame-Options:
|
48
|
-
- SAMEORIGIN
|
49
|
-
X-Content-Type-Options:
|
50
|
-
- nosniff
|
44
|
+
- f705bb2469233309913e977f
|
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-DC-
|
49
|
+
string: '{"successful":true,"response":{"id":"071-DC-JXENDIHW","amount":42.0,"bsb":"123-123","account_number":"012345678","account_name":"Test","description":"Confirmation","reference":"071-DC-JXENDIHW","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:46 GMT
|
58
52
|
- request:
|
59
53
|
method: post
|
60
54
|
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/direct_credits
|
@@ -78,7 +72,7 @@ http_interactions:
|
|
78
72
|
message: Created
|
79
73
|
headers:
|
80
74
|
Date:
|
81
|
-
-
|
75
|
+
- Wed, 25 Jul 2018 03:20:49 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.065718'
|
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.035153'
|
102
|
-
X-Frame-Options:
|
103
|
-
- SAMEORIGIN
|
104
|
-
X-Content-Type-Options:
|
105
|
-
- nosniff
|
93
|
+
- b42f3f23530a55f813738ec2
|
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-DC-
|
98
|
+
string: '{"successful":true,"response":{"id":"071-DC-SUYZT619","amount":42.0,"bsb":"123-123","account_number":"012345678","account_name":"Test","description":"Confirmation","reference":"071-DC-SUYZT619","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:46 GMT
|
113
101
|
- request:
|
114
102
|
method: get
|
115
|
-
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/direct_credits?limit=10&
|
103
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/direct_credits?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:49 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.022621'
|
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.016152'
|
159
|
-
X-Frame-Options:
|
160
|
-
- SAMEORIGIN
|
161
|
-
X-Content-Type-Options:
|
162
|
-
- nosniff
|
144
|
+
- decf7762a1a2f6b51f5711e6
|
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-DC-
|
149
|
+
string: '{"successful":true,"response":[{"id":"071-DC-SUYZT619","amount":42.0,"bsb":"123-123","account_number":"012345678","account_name":"Test","description":"Confirmation","reference":"071-DC-SUYZT619","date":"2018-07-25","process_date":null,"status":"New","result":null,"metadata":null},{"id":"071-DC-JXENDIHW","amount":42.0,"bsb":"123-123","account_number":"012345678","account_name":"Test","description":"Confirmation","reference":"071-DC-JXENDIHW","date":"2018-07-25","process_date":null,"status":"New","result":null,"metadata":null},{"id":"071-DC-30CY9P08","amount":42.0,"bsb":"123-123","account_number":"012345678","account_name":"Test","description":"Confirmation","reference":"071-DC-30CY9P08","date":"2018-07-25","process_date":null,"status":"New","result":null,"metadata":null},{"id":"071-DC-NCGG8UYZ","amount":42.0,"bsb":"123-123","account_number":"012345678","account_name":"Test","description":"Confirmation","reference":"071-DC-NCGG8UYZ","date":"2018-07-25","process_date":null,"status":"New","result":null,"metadata":null},{"id":"071-DC-PUY2X1CV","amount":42.0,"bsb":"123-123","account_number":"012345678","account_name":"Test","description":"Confirmation","reference":"071-DC-PUY2X1CV","date":"2018-07-25","process_date":null,"status":"Deleted","result":null,"metadata":null},{"id":"071-DC-HG68140","amount":42.0,"bsb":"123-123","account_number":"012345678","account_name":"Test","description":"Confirmation","reference":"071-DC-HG68140","date":"2018-07-25","process_date":null,"status":"New","result":null,"metadata":null},{"id":"071-DC-663O4SMN","amount":42.0,"bsb":"123-123","account_number":"012345678","account_name":"Test","description":"Confirmation","reference":"071-DC-663O4SMN","date":"2018-07-25","process_date":null,"status":"New","result":null,"metadata":null},{"id":"071-DC-UKWVQYER","amount":42.0,"bsb":"123-123","account_number":"012345678","account_name":"Test","description":"Confirmation","reference":"071-DC-UKWVQYER","date":"2018-07-25","process_date":null,"status":"New","result":null,"metadata":null},{"id":"071-DC-NM7UXD64","amount":42.0,"bsb":"123-123","account_number":"012345678","account_name":"Test","description":"Confirmation","reference":"071-DC-NM7UXD64","date":"2018-07-25","process_date":null,"status":"New","result":null,"metadata":null},{"id":"071-DC-HZZ9QXWO","amount":42.0,"bsb":"123-123","account_number":"012345678","account_name":"Test","description":"Confirmation","reference":"071-DC-HZZ9QXWO","date":"2018-07-25","process_date":null,"status":"New","result":null,"metadata":null}],"errors":[],"test":true,"records":10,"total_records":639,"page":0,"total_pages":64}'
|
168
150
|
http_version:
|
169
|
-
recorded_at:
|
151
|
+
recorded_at: Wed, 25 Jul 2018 03:20:47 GMT
|
170
152
|
recorded_with: VCR 3.0.3
|
data/spec/cassettes/FatZebra_DirectDebit/_create/validations/failed_with_non-float/1_1_5_3_1.yml
ADDED
@@ -0,0 +1,52 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/direct_debits
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"description":"Confirmation","amount":123,"bsb":"123-123","account_name":"Test","account_number":"012345678","test":true}'
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- application/json
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
Authorization:
|
17
|
+
- Basic VEVTVDpURVNU
|
18
|
+
Content-Type:
|
19
|
+
- application/json
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 201
|
23
|
+
message: Created
|
24
|
+
headers:
|
25
|
+
Date:
|
26
|
+
- Wed, 24 Oct 2018 01:02:52 GMT
|
27
|
+
Content-Type:
|
28
|
+
- application/json; charset=utf-8
|
29
|
+
Transfer-Encoding:
|
30
|
+
- chunked
|
31
|
+
Connection:
|
32
|
+
- keep-alive
|
33
|
+
Status:
|
34
|
+
- 201 Created
|
35
|
+
Cache-Control:
|
36
|
+
- no-store
|
37
|
+
X-Request-Version:
|
38
|
+
- 1.16.9-3627@3b72f16
|
39
|
+
X-Runtime:
|
40
|
+
- '0.051478'
|
41
|
+
Pragma:
|
42
|
+
- no-cache
|
43
|
+
X-Request-Id:
|
44
|
+
- 8c0141486f43f0bace8e32fc
|
45
|
+
X-Backend:
|
46
|
+
- sbox-priv-gateway-a
|
47
|
+
body:
|
48
|
+
encoding: UTF-8
|
49
|
+
string: '{"successful":true,"response":{"id":"071-DD-5SPL2753","amount":123.0,"bsb":"123-123","account_number":"012345678","account_name":"Test","description":"Confirmation","reference":"071-DD-5SPL2753","date":"2018-10-24","process_date":null,"status":"New","result":null,"metadata":null},"errors":[],"test":true}'
|
50
|
+
http_version:
|
51
|
+
recorded_at: Wed, 24 Oct 2018 01:02:52 GMT
|
52
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,103 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/direct_debits
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"description":"Confirmation","amount":42.0,"bsb":"123-123","account_name":"Test","account_number":"012345678","test":true}'
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- application/json
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
Authorization:
|
17
|
+
- Basic VEVTVDpURVNU
|
18
|
+
Content-Type:
|
19
|
+
- application/json
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 201
|
23
|
+
message: Created
|
24
|
+
headers:
|
25
|
+
Date:
|
26
|
+
- Wed, 24 Oct 2018 01:03:29 GMT
|
27
|
+
Content-Type:
|
28
|
+
- application/json; charset=utf-8
|
29
|
+
Transfer-Encoding:
|
30
|
+
- chunked
|
31
|
+
Connection:
|
32
|
+
- keep-alive
|
33
|
+
Status:
|
34
|
+
- 201 Created
|
35
|
+
Cache-Control:
|
36
|
+
- no-store
|
37
|
+
X-Request-Version:
|
38
|
+
- 1.16.9-3627@3b72f16
|
39
|
+
X-Runtime:
|
40
|
+
- '0.043132'
|
41
|
+
Pragma:
|
42
|
+
- no-cache
|
43
|
+
X-Request-Id:
|
44
|
+
- 4fd3db08dbdb1a6c6f912bc8
|
45
|
+
X-Backend:
|
46
|
+
- sbox-priv-gateway-a
|
47
|
+
body:
|
48
|
+
encoding: UTF-8
|
49
|
+
string: '{"successful":true,"response":{"id":"071-DD-5M1TDSVX","amount":42.0,"bsb":"123-123","account_number":"012345678","account_name":"Test","description":"Confirmation","reference":"071-DD-5M1TDSVX","date":"2018-10-24","process_date":null,"status":"New","result":null,"metadata":null},"errors":[],"test":true}'
|
50
|
+
http_version:
|
51
|
+
recorded_at: Wed, 24 Oct 2018 01:03:29 GMT
|
52
|
+
- request:
|
53
|
+
method: get
|
54
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/direct_debits/071-DD-5M1TDSVX?test=true
|
55
|
+
body:
|
56
|
+
encoding: US-ASCII
|
57
|
+
string: ''
|
58
|
+
headers:
|
59
|
+
Accept-Encoding:
|
60
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
61
|
+
Accept:
|
62
|
+
- application/json
|
63
|
+
User-Agent:
|
64
|
+
- Ruby
|
65
|
+
Host:
|
66
|
+
- gateway.sandbox.fatzebra.com.au
|
67
|
+
Authorization:
|
68
|
+
- Basic VEVTVDpURVNU
|
69
|
+
Content-Type:
|
70
|
+
- application/json
|
71
|
+
response:
|
72
|
+
status:
|
73
|
+
code: 200
|
74
|
+
message: OK
|
75
|
+
headers:
|
76
|
+
Date:
|
77
|
+
- Wed, 24 Oct 2018 01:03:29 GMT
|
78
|
+
Content-Type:
|
79
|
+
- application/json; charset=utf-8
|
80
|
+
Transfer-Encoding:
|
81
|
+
- chunked
|
82
|
+
Connection:
|
83
|
+
- keep-alive
|
84
|
+
Status:
|
85
|
+
- 200 OK
|
86
|
+
Cache-Control:
|
87
|
+
- no-store
|
88
|
+
X-Request-Version:
|
89
|
+
- 1.16.9-3627@3b72f16
|
90
|
+
X-Runtime:
|
91
|
+
- '0.015420'
|
92
|
+
Pragma:
|
93
|
+
- no-cache
|
94
|
+
X-Request-Id:
|
95
|
+
- 531343808d0ee26096fc2938
|
96
|
+
X-Backend:
|
97
|
+
- sbox-priv-gateway-a
|
98
|
+
body:
|
99
|
+
encoding: UTF-8
|
100
|
+
string: '{"successful":true,"response":{"id":"071-DD-5M1TDSVX","amount":42.0,"bsb":"123-123","account_number":"012345678","account_name":"Test","description":"Confirmation","reference":"071-DD-5M1TDSVX","date":"2018-10-24","process_date":null,"status":"New","result":null,"metadata":null},"errors":[],"test":true}'
|
101
|
+
http_version:
|
102
|
+
recorded_at: Wed, 24 Oct 2018 01:03:29 GMT
|
103
|
+
recorded_with: VCR 3.0.3
|
@@ -23,7 +23,7 @@ http_interactions:
|
|
23
23
|
message: Created
|
24
24
|
headers:
|
25
25
|
Date:
|
26
|
-
-
|
26
|
+
- Wed, 25 Jul 2018 03:20:49 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.050492'
|
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.037499'
|
47
|
-
X-Frame-Options:
|
48
|
-
- SAMEORIGIN
|
49
|
-
X-Content-Type-Options:
|
50
|
-
- nosniff
|
44
|
+
- 393a1589a08fb54c8a471e4e
|
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-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},"errors":[],"test":true}'
|
56
50
|
http_version:
|
57
|
-
recorded_at:
|
51
|
+
recorded_at: Wed, 25 Jul 2018 03:20:47 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:50 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.056886'
|
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.035125'
|
102
|
-
X-Frame-Options:
|
103
|
-
- SAMEORIGIN
|
104
|
-
X-Content-Type-Options:
|
105
|
-
- nosniff
|
93
|
+
- ef13e6034ffc9effcb141313
|
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-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},"errors":[],"test":true}'
|
111
99
|
http_version:
|
112
|
-
recorded_at:
|
100
|
+
recorded_at: Wed, 25 Jul 2018 03:20:47 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:50 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.030371'
|
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.022690'
|
159
|
-
X-Frame-Options:
|
160
|
-
- SAMEORIGIN
|
161
|
-
X-Content-Type-Options:
|
162
|
-
- nosniff
|
144
|
+
- e9ecd8535c6573751d104396
|
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-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},{"id":"071-DD-SIF7GFA9","amount":42.0,"bsb":"123-123","account_number":"012345678","account_name":"Test","description":"Confirmation","reference":"071-DD-SIF7GFA9","date":"2018-07-25","process_date":null,"status":"New","result":null,"metadata":null},{"id":"071-DD-MULAF66Z","amount":42.42,"bsb":"123-123","account_number":"012345678","account_name":"Test","description":"Confirmation","reference":"071-DD-MULAF66Z","date":"2018-07-25","process_date":null,"status":"New","result":null,"metadata":null}],"errors":[],"test":true,"records":10,"total_records":16505,"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
|