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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fa90ecc2f14542b9afd815d07d056cbcc4568bb1
|
4
|
+
data.tar.gz: 087a34525732fdccc0841212eae069af46a37728
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 28366c271ee752e25f8f126c94874fe2f2fcccbc7cd30fa607c3ac4089cca41e1c0897e2918e6ff6325ed842365943aaeb2c0e862af4db8f8d8f3a1ccc67e4e2
|
7
|
+
data.tar.gz: 59a415cf84ea85aec23991dc7c09235c58957f8e4b047da6c3e8dfa896189559f1531f27d8fc94b0fa94cfcdc94fc6a4773954b931ae9099896a1d23458e09e2
|
data/.rubocop.yml
CHANGED
@@ -5,7 +5,9 @@ Layout/EmptyLinesAroundModuleBody:
|
|
5
5
|
Layout/EmptyLinesAroundBlockBody:
|
6
6
|
Enabled: false
|
7
7
|
|
8
|
-
Style/
|
8
|
+
Style/MissingRespondToMissing:
|
9
|
+
Enabled: false
|
10
|
+
Style/MethodMissingSuper:
|
9
11
|
Enabled: false
|
10
12
|
Style/NumericPredicate:
|
11
13
|
Enabled: false
|
@@ -33,10 +35,6 @@ Documentation:
|
|
33
35
|
|
34
36
|
AllCops:
|
35
37
|
TargetRubyVersion: 2.2
|
36
|
-
Include:
|
37
|
-
- Gemfile
|
38
|
-
- Rakefile
|
39
|
-
- Capfile
|
40
38
|
Exclude:
|
41
39
|
- bin/**/*
|
42
40
|
- vendor/**/*
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -3,7 +3,7 @@ Ruby API Library for Fat Zebra
|
|
3
3
|
|
4
4
|
[![Build Status](https://travis-ci.org/fatzebra/Ruby-Library.svg?branch=master)](https://travis-ci.org/fatzebra/Ruby-Library)
|
5
5
|
|
6
|
-
Release 3.0
|
6
|
+
Release 3.1.0 for API version 1.0
|
7
7
|
|
8
8
|
A Ruby client for the [Fat Zebra](https://www.fatzebra.com.au) Online Payment Gateway (for Australian Merchants)
|
9
9
|
|
data/fat_zebra.gemspec
CHANGED
@@ -21,7 +21,7 @@ Gem::Specification.new do |s|
|
|
21
21
|
s.add_development_dependency 'pry'
|
22
22
|
s.add_development_dependency 'rake'
|
23
23
|
s.add_development_dependency 'rspec', '~> 3.6'
|
24
|
-
s.add_development_dependency 'rubocop', '~> 0.
|
24
|
+
s.add_development_dependency 'rubocop', '~> 0.58.1'
|
25
25
|
s.add_development_dependency 'vcr', '~> 3.0'
|
26
26
|
s.add_development_dependency 'webmock', '~> 3.0'
|
27
27
|
end
|
@@ -17,7 +17,7 @@ module FatZebra
|
|
17
17
|
include FatZebra::APIOperation::Delete
|
18
18
|
|
19
19
|
validates :description, required: true, on: :create
|
20
|
-
validates :amount, required: true, type: :
|
20
|
+
validates :amount, required: true, type: :positive_float, on: :create
|
21
21
|
validates :bsb, required: true, on: :create
|
22
22
|
validates :account_name, required: true, on: :create
|
23
23
|
validates :account_number, required: true, on: :create
|
@@ -17,7 +17,7 @@ module FatZebra
|
|
17
17
|
include FatZebra::APIOperation::Delete
|
18
18
|
|
19
19
|
validates :description, required: true, on: :create
|
20
|
-
validates :amount, required: true, type: :
|
20
|
+
validates :amount, required: true, type: :positive_float, on: :create
|
21
21
|
validates :bsb, required: true, on: :create
|
22
22
|
validates :account_name, required: true, on: :create
|
23
23
|
validates :account_number, required: true, on: :create
|
data/lib/fat_zebra/refund.rb
CHANGED
data/lib/fat_zebra/validation.rb
CHANGED
@@ -39,9 +39,12 @@ module FatZebra
|
|
39
39
|
errors << "'#{field}' is required" if params[field].nil? || params[field] == ''
|
40
40
|
end
|
41
41
|
|
42
|
+
# rubocop:disable Metrics/CyclomaticComplexity
|
42
43
|
def validate_type(field, options, params)
|
43
44
|
regexp =
|
44
45
|
case options
|
46
|
+
when :positive_float
|
47
|
+
/\A\d*\.\d+\z/
|
45
48
|
when :positive_numeric
|
46
49
|
/\A\d*\.?\d+\z/
|
47
50
|
when :positive_integer
|
@@ -58,6 +61,7 @@ module FatZebra
|
|
58
61
|
|
59
62
|
errors << "'#{field}' is not a '#{options}'" unless params[field].to_s =~ regexp
|
60
63
|
end
|
64
|
+
# rubocop:enable Metrics/CyclomaticComplexity
|
61
65
|
|
62
66
|
end
|
63
67
|
end
|
data/lib/fat_zebra/version.rb
CHANGED
@@ -23,7 +23,7 @@ http_interactions:
|
|
23
23
|
message: Created
|
24
24
|
headers:
|
25
25
|
Date:
|
26
|
-
-
|
26
|
+
- Wed, 25 Jul 2018 03:20:44 GMT
|
27
27
|
Content-Type:
|
28
28
|
- application/json; charset=utf-8
|
29
29
|
Transfer-Encoding:
|
@@ -35,27 +35,21 @@ 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.039418'
|
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.030412'
|
47
|
-
X-Frame-Options:
|
48
|
-
- SAMEORIGIN
|
49
|
-
X-Content-Type-Options:
|
50
|
-
- nosniff
|
44
|
+
- 8e187a67e579c6b23dc23622
|
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-B-
|
56
|
-
name","account_number":"012345678","bsb":"123-123","created_at":"2018-
|
49
|
+
string: '{"successful":true,"response":{"id":"071-B-NYQ4WI17","account_name":"Test
|
50
|
+
name","account_number":"012345678","bsb":"123-123","created_at":"2018-07-25T13:20:44+10:00"},"errors":[],"test":true}'
|
57
51
|
http_version:
|
58
|
-
recorded_at:
|
52
|
+
recorded_at: Wed, 25 Jul 2018 03:20:41 GMT
|
59
53
|
- request:
|
60
54
|
method: post
|
61
55
|
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/bank_accounts
|
@@ -79,7 +73,7 @@ http_interactions:
|
|
79
73
|
message: Created
|
80
74
|
headers:
|
81
75
|
Date:
|
82
|
-
-
|
76
|
+
- Wed, 25 Jul 2018 03:20:44 GMT
|
83
77
|
Content-Type:
|
84
78
|
- application/json; charset=utf-8
|
85
79
|
Transfer-Encoding:
|
@@ -91,30 +85,24 @@ http_interactions:
|
|
91
85
|
Cache-Control:
|
92
86
|
- no-store
|
93
87
|
X-Request-Version:
|
94
|
-
- 1.16.9-
|
88
|
+
- 1.16.9-3480@96677e4
|
89
|
+
X-Runtime:
|
90
|
+
- '0.037263'
|
95
91
|
Pragma:
|
96
92
|
- no-cache
|
97
|
-
X-Xss-Protection:
|
98
|
-
- 1; mode=block
|
99
93
|
X-Request-Id:
|
100
|
-
-
|
101
|
-
X-Runtime:
|
102
|
-
- '0.035987'
|
103
|
-
X-Frame-Options:
|
104
|
-
- SAMEORIGIN
|
105
|
-
X-Content-Type-Options:
|
106
|
-
- nosniff
|
94
|
+
- eaf00c68e7c9bc3eb87fc3ac
|
107
95
|
X-Backend:
|
108
96
|
- sbox-priv-gateway-a
|
109
97
|
body:
|
110
98
|
encoding: UTF-8
|
111
|
-
string: '{"successful":true,"response":{"id":"071-B-
|
112
|
-
name","account_number":"012345678","bsb":"123-123","created_at":"2018-
|
99
|
+
string: '{"successful":true,"response":{"id":"071-B-3AXMLMDD","account_name":"Test
|
100
|
+
name","account_number":"012345678","bsb":"123-123","created_at":"2018-07-25T13:20:44+10:00"},"errors":[],"test":true}'
|
113
101
|
http_version:
|
114
|
-
recorded_at:
|
102
|
+
recorded_at: Wed, 25 Jul 2018 03:20:41 GMT
|
115
103
|
- request:
|
116
104
|
method: get
|
117
|
-
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/bank_accounts?limit=10&
|
105
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/bank_accounts?limit=10&offset=0&test=true
|
118
106
|
body:
|
119
107
|
encoding: US-ASCII
|
120
108
|
string: ''
|
@@ -137,7 +125,7 @@ http_interactions:
|
|
137
125
|
message: OK
|
138
126
|
headers:
|
139
127
|
Date:
|
140
|
-
-
|
128
|
+
- Wed, 25 Jul 2018 03:20:44 GMT
|
141
129
|
Content-Type:
|
142
130
|
- application/json; charset=utf-8
|
143
131
|
Transfer-Encoding:
|
@@ -149,34 +137,28 @@ http_interactions:
|
|
149
137
|
Cache-Control:
|
150
138
|
- no-store
|
151
139
|
X-Request-Version:
|
152
|
-
- 1.16.9-
|
140
|
+
- 1.16.9-3480@96677e4
|
141
|
+
X-Runtime:
|
142
|
+
- '0.025893'
|
153
143
|
Pragma:
|
154
144
|
- no-cache
|
155
|
-
X-Xss-Protection:
|
156
|
-
- 1; mode=block
|
157
145
|
X-Request-Id:
|
158
|
-
-
|
159
|
-
X-Runtime:
|
160
|
-
- '0.023642'
|
161
|
-
X-Frame-Options:
|
162
|
-
- SAMEORIGIN
|
163
|
-
X-Content-Type-Options:
|
164
|
-
- nosniff
|
146
|
+
- 40ccf4c5da6a921afeecbe97
|
165
147
|
X-Backend:
|
166
148
|
- sbox-priv-gateway-a
|
167
149
|
body:
|
168
150
|
encoding: UTF-8
|
169
|
-
string: '{"successful":true,"response":[{"id":"071-B-
|
170
|
-
name","account_number":"012345678","bsb":"123-123","created_at":"2018-
|
171
|
-
name","account_number":"012345678","bsb":"123-123","created_at":"2018-
|
172
|
-
name","account_number":"012345678","bsb":"123-123","created_at":"2018-
|
173
|
-
name","account_number":"012345678","bsb":"123-123","created_at":"2018-
|
174
|
-
name","account_number":"012345678","bsb":"123-123","created_at":"2018-
|
175
|
-
name","account_number":"012345678","bsb":"123-123","created_at":"2018-
|
176
|
-
name","account_number":"012345678","bsb":"123-123","created_at":"2018-
|
177
|
-
name","account_number":"012345678","bsb":"123-123","created_at":"2018-
|
178
|
-
name","account_number":"012345678","bsb":"123-123","created_at":"2018-
|
179
|
-
name","account_number":"012345678","bsb":"123-123","created_at":"2018-
|
151
|
+
string: '{"successful":true,"response":[{"id":"071-B-3AXMLMDD","account_name":"Test
|
152
|
+
name","account_number":"012345678","bsb":"123-123","created_at":"2018-07-25T13:20:44+10:00"},{"id":"071-B-NYQ4WI17","account_name":"Test
|
153
|
+
name","account_number":"012345678","bsb":"123-123","created_at":"2018-07-25T13:20:44+10:00"},{"id":"071-B-A7RP1GOD","account_name":"Test
|
154
|
+
name","account_number":"012345678","bsb":"123-123","created_at":"2018-07-25T13:14:36+10:00"},{"id":"071-B-L7M2NZUC","account_name":"Test
|
155
|
+
name","account_number":"012345678","bsb":"123-123","created_at":"2018-07-25T13:14:35+10:00"},{"id":"071-B-JF8R04C3","account_name":"Test
|
156
|
+
name","account_number":"012345678","bsb":"123-123","created_at":"2018-07-25T13:14:35+10:00"},{"id":"071-B-M82OMMOY","account_name":"Test
|
157
|
+
name","account_number":"012345678","bsb":"123-123","created_at":"2018-07-25T13:14:35+10:00"},{"id":"071-B-QBJFSU44","account_name":"Test
|
158
|
+
name","account_number":"012345678","bsb":"123-123","created_at":"2018-07-25T13:14:35+10:00"},{"id":"071-B-2ABSGPK1","account_name":"Test
|
159
|
+
name","account_number":"012345678","bsb":"123-123","created_at":"2018-07-25T13:14:34+10:00"},{"id":"071-B-PTO21AVZ","account_name":"Test
|
160
|
+
name","account_number":"012345678","bsb":"123-123","created_at":"2018-07-25T13:14:34+10:00"},{"id":"071-B-LKEC0BB9","account_name":"Test
|
161
|
+
name","account_number":"012345678","bsb":"123-123","created_at":"2018-07-25T13:14:33+10:00"}],"errors":[],"test":true,"records":10,"total_records":1940,"page":0,"total_pages":194}'
|
180
162
|
http_version:
|
181
|
-
recorded_at:
|
163
|
+
recorded_at: Wed, 25 Jul 2018 03:20:42 GMT
|
182
164
|
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:44 GMT
|
27
27
|
Content-Type:
|
28
28
|
- application/json; charset=utf-8
|
29
29
|
Transfer-Encoding:
|
@@ -35,27 +35,21 @@ 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.037227'
|
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.031506'
|
47
|
-
X-Frame-Options:
|
48
|
-
- SAMEORIGIN
|
49
|
-
X-Content-Type-Options:
|
50
|
-
- nosniff
|
44
|
+
- cf1bffc61cdf62a9d9144037
|
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-B-
|
56
|
-
name","account_number":"012345678","bsb":"123-123","created_at":"2018-
|
49
|
+
string: '{"successful":true,"response":{"id":"071-B-5BWGC3VJ","account_name":"Test
|
50
|
+
name","account_number":"012345678","bsb":"123-123","created_at":"2018-07-25T13:20:44+10:00"},"errors":[],"test":true}'
|
57
51
|
http_version:
|
58
|
-
recorded_at:
|
52
|
+
recorded_at: Wed, 25 Jul 2018 03:20:42 GMT
|
59
53
|
- request:
|
60
54
|
method: post
|
61
55
|
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/bank_accounts
|
@@ -79,7 +73,7 @@ http_interactions:
|
|
79
73
|
message: Created
|
80
74
|
headers:
|
81
75
|
Date:
|
82
|
-
-
|
76
|
+
- Wed, 25 Jul 2018 03:20:45 GMT
|
83
77
|
Content-Type:
|
84
78
|
- application/json; charset=utf-8
|
85
79
|
Transfer-Encoding:
|
@@ -91,30 +85,24 @@ http_interactions:
|
|
91
85
|
Cache-Control:
|
92
86
|
- no-store
|
93
87
|
X-Request-Version:
|
94
|
-
- 1.16.9-
|
88
|
+
- 1.16.9-3480@96677e4
|
89
|
+
X-Runtime:
|
90
|
+
- '0.055524'
|
95
91
|
Pragma:
|
96
92
|
- no-cache
|
97
|
-
X-Xss-Protection:
|
98
|
-
- 1; mode=block
|
99
93
|
X-Request-Id:
|
100
|
-
-
|
101
|
-
X-Runtime:
|
102
|
-
- '0.032057'
|
103
|
-
X-Frame-Options:
|
104
|
-
- SAMEORIGIN
|
105
|
-
X-Content-Type-Options:
|
106
|
-
- nosniff
|
94
|
+
- 00af977d48022e72d516023b
|
107
95
|
X-Backend:
|
108
96
|
- sbox-priv-gateway-a
|
109
97
|
body:
|
110
98
|
encoding: UTF-8
|
111
|
-
string: '{"successful":true,"response":{"id":"071-B-
|
112
|
-
name","account_number":"012345678","bsb":"123-123","created_at":"2018-
|
99
|
+
string: '{"successful":true,"response":{"id":"071-B-HP7YKSC1","account_name":"Test
|
100
|
+
name","account_number":"012345678","bsb":"123-123","created_at":"2018-07-25T13:20:45+10:00"},"errors":[],"test":true}'
|
113
101
|
http_version:
|
114
|
-
recorded_at:
|
102
|
+
recorded_at: Wed, 25 Jul 2018 03:20:42 GMT
|
115
103
|
- request:
|
116
104
|
method: get
|
117
|
-
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/bank_accounts?limit=10&
|
105
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/bank_accounts?limit=10&offset=0&test=true
|
118
106
|
body:
|
119
107
|
encoding: US-ASCII
|
120
108
|
string: ''
|
@@ -137,7 +125,7 @@ http_interactions:
|
|
137
125
|
message: OK
|
138
126
|
headers:
|
139
127
|
Date:
|
140
|
-
-
|
128
|
+
- Wed, 25 Jul 2018 03:20:45 GMT
|
141
129
|
Content-Type:
|
142
130
|
- application/json; charset=utf-8
|
143
131
|
Transfer-Encoding:
|
@@ -149,34 +137,28 @@ http_interactions:
|
|
149
137
|
Cache-Control:
|
150
138
|
- no-store
|
151
139
|
X-Request-Version:
|
152
|
-
- 1.16.9-
|
140
|
+
- 1.16.9-3480@96677e4
|
141
|
+
X-Runtime:
|
142
|
+
- '0.026518'
|
153
143
|
Pragma:
|
154
144
|
- no-cache
|
155
|
-
X-Xss-Protection:
|
156
|
-
- 1; mode=block
|
157
145
|
X-Request-Id:
|
158
|
-
-
|
159
|
-
X-Runtime:
|
160
|
-
- '0.021455'
|
161
|
-
X-Frame-Options:
|
162
|
-
- SAMEORIGIN
|
163
|
-
X-Content-Type-Options:
|
164
|
-
- nosniff
|
146
|
+
- 7e6b17ad35d9d07a2f6cdda6
|
165
147
|
X-Backend:
|
166
148
|
- sbox-priv-gateway-a
|
167
149
|
body:
|
168
150
|
encoding: UTF-8
|
169
|
-
string: '{"successful":true,"response":[{"id":"071-B-
|
170
|
-
name","account_number":"012345678","bsb":"123-123","created_at":"2018-
|
171
|
-
name","account_number":"012345678","bsb":"123-123","created_at":"2018-
|
172
|
-
name","account_number":"012345678","bsb":"123-123","created_at":"2018-
|
173
|
-
name","account_number":"012345678","bsb":"123-123","created_at":"2018-
|
174
|
-
name","account_number":"012345678","bsb":"123-123","created_at":"2018-
|
175
|
-
name","account_number":"012345678","bsb":"123-123","created_at":"2018-
|
176
|
-
name","account_number":"012345678","bsb":"123-123","created_at":"2018-
|
177
|
-
name","account_number":"012345678","bsb":"123-123","created_at":"2018-
|
178
|
-
name","account_number":"012345678","bsb":"123-123","created_at":"2018-
|
179
|
-
name","account_number":"012345678","bsb":"123-123","created_at":"2018-
|
151
|
+
string: '{"successful":true,"response":[{"id":"071-B-HP7YKSC1","account_name":"Test
|
152
|
+
name","account_number":"012345678","bsb":"123-123","created_at":"2018-07-25T13:20:45+10:00"},{"id":"071-B-5BWGC3VJ","account_name":"Test
|
153
|
+
name","account_number":"012345678","bsb":"123-123","created_at":"2018-07-25T13:20:44+10:00"},{"id":"071-B-3AXMLMDD","account_name":"Test
|
154
|
+
name","account_number":"012345678","bsb":"123-123","created_at":"2018-07-25T13:20:44+10:00"},{"id":"071-B-NYQ4WI17","account_name":"Test
|
155
|
+
name","account_number":"012345678","bsb":"123-123","created_at":"2018-07-25T13:20:44+10:00"},{"id":"071-B-A7RP1GOD","account_name":"Test
|
156
|
+
name","account_number":"012345678","bsb":"123-123","created_at":"2018-07-25T13:14:36+10:00"},{"id":"071-B-L7M2NZUC","account_name":"Test
|
157
|
+
name","account_number":"012345678","bsb":"123-123","created_at":"2018-07-25T13:14:35+10:00"},{"id":"071-B-JF8R04C3","account_name":"Test
|
158
|
+
name","account_number":"012345678","bsb":"123-123","created_at":"2018-07-25T13:14:35+10:00"},{"id":"071-B-M82OMMOY","account_name":"Test
|
159
|
+
name","account_number":"012345678","bsb":"123-123","created_at":"2018-07-25T13:14:35+10:00"},{"id":"071-B-QBJFSU44","account_name":"Test
|
160
|
+
name","account_number":"012345678","bsb":"123-123","created_at":"2018-07-25T13:14:35+10:00"},{"id":"071-B-2ABSGPK1","account_name":"Test
|
161
|
+
name","account_number":"012345678","bsb":"123-123","created_at":"2018-07-25T13:14:34+10:00"}],"errors":[],"test":true,"records":10,"total_records":1942,"page":0,"total_pages":195}'
|
180
162
|
http_version:
|
181
|
-
recorded_at:
|
163
|
+
recorded_at: Wed, 25 Jul 2018 03:20:42 GMT
|
182
164
|
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:45 GMT
|
27
27
|
Content-Type:
|
28
28
|
- application/json; charset=utf-8
|
29
29
|
Transfer-Encoding:
|
@@ -35,27 +35,21 @@ 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.039419'
|
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.030967'
|
47
|
-
X-Frame-Options:
|
48
|
-
- SAMEORIGIN
|
49
|
-
X-Content-Type-Options:
|
50
|
-
- nosniff
|
44
|
+
- 3e7c3c60dee10a0e2bc1bcdc
|
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-B-
|
56
|
-
name","account_number":"012345678","bsb":"123-123","created_at":"2018-
|
49
|
+
string: '{"successful":true,"response":{"id":"071-B-85HHSLPH","account_name":"Test
|
50
|
+
name","account_number":"012345678","bsb":"123-123","created_at":"2018-07-25T13:20:45+10:00"},"errors":[],"test":true}'
|
57
51
|
http_version:
|
58
|
-
recorded_at:
|
52
|
+
recorded_at: Wed, 25 Jul 2018 03:20:43 GMT
|
59
53
|
- request:
|
60
54
|
method: post
|
61
55
|
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/bank_accounts
|
@@ -79,7 +73,7 @@ http_interactions:
|
|
79
73
|
message: Created
|
80
74
|
headers:
|
81
75
|
Date:
|
82
|
-
-
|
76
|
+
- Wed, 25 Jul 2018 03:20:45 GMT
|
83
77
|
Content-Type:
|
84
78
|
- application/json; charset=utf-8
|
85
79
|
Transfer-Encoding:
|
@@ -91,30 +85,24 @@ http_interactions:
|
|
91
85
|
Cache-Control:
|
92
86
|
- no-store
|
93
87
|
X-Request-Version:
|
94
|
-
- 1.16.9-
|
88
|
+
- 1.16.9-3480@96677e4
|
89
|
+
X-Runtime:
|
90
|
+
- '0.035384'
|
95
91
|
Pragma:
|
96
92
|
- no-cache
|
97
|
-
X-Xss-Protection:
|
98
|
-
- 1; mode=block
|
99
93
|
X-Request-Id:
|
100
|
-
-
|
101
|
-
X-Runtime:
|
102
|
-
- '0.033790'
|
103
|
-
X-Frame-Options:
|
104
|
-
- SAMEORIGIN
|
105
|
-
X-Content-Type-Options:
|
106
|
-
- nosniff
|
94
|
+
- 88ed114c3aae66f9a27c8e1f
|
107
95
|
X-Backend:
|
108
96
|
- sbox-priv-gateway-a
|
109
97
|
body:
|
110
98
|
encoding: UTF-8
|
111
|
-
string: '{"successful":true,"response":{"id":"071-B-
|
112
|
-
name","account_number":"012345678","bsb":"123-123","created_at":"2018-
|
99
|
+
string: '{"successful":true,"response":{"id":"071-B-QD94CMS0","account_name":"Test
|
100
|
+
name","account_number":"012345678","bsb":"123-123","created_at":"2018-07-25T13:20:45+10:00"},"errors":[],"test":true}'
|
113
101
|
http_version:
|
114
|
-
recorded_at:
|
102
|
+
recorded_at: Wed, 25 Jul 2018 03:20:43 GMT
|
115
103
|
- request:
|
116
104
|
method: get
|
117
|
-
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/bank_accounts?limit=10&
|
105
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/bank_accounts?limit=10&offset=0&test=true
|
118
106
|
body:
|
119
107
|
encoding: US-ASCII
|
120
108
|
string: ''
|
@@ -137,7 +125,7 @@ http_interactions:
|
|
137
125
|
message: OK
|
138
126
|
headers:
|
139
127
|
Date:
|
140
|
-
-
|
128
|
+
- Wed, 25 Jul 2018 03:20:46 GMT
|
141
129
|
Content-Type:
|
142
130
|
- application/json; charset=utf-8
|
143
131
|
Transfer-Encoding:
|
@@ -149,34 +137,28 @@ http_interactions:
|
|
149
137
|
Cache-Control:
|
150
138
|
- no-store
|
151
139
|
X-Request-Version:
|
152
|
-
- 1.16.9-
|
140
|
+
- 1.16.9-3480@96677e4
|
141
|
+
X-Runtime:
|
142
|
+
- '0.029197'
|
153
143
|
Pragma:
|
154
144
|
- no-cache
|
155
|
-
X-Xss-Protection:
|
156
|
-
- 1; mode=block
|
157
145
|
X-Request-Id:
|
158
|
-
-
|
159
|
-
X-Runtime:
|
160
|
-
- '0.019993'
|
161
|
-
X-Frame-Options:
|
162
|
-
- SAMEORIGIN
|
163
|
-
X-Content-Type-Options:
|
164
|
-
- nosniff
|
146
|
+
- 9cb48bd87b0f323766de8f5e
|
165
147
|
X-Backend:
|
166
148
|
- sbox-priv-gateway-a
|
167
149
|
body:
|
168
150
|
encoding: UTF-8
|
169
|
-
string: '{"successful":true,"response":[{"id":"071-B-
|
170
|
-
name","account_number":"012345678","bsb":"123-123","created_at":"2018-
|
171
|
-
name","account_number":"012345678","bsb":"123-123","created_at":"2018-
|
172
|
-
name","account_number":"012345678","bsb":"123-123","created_at":"2018-
|
173
|
-
name","account_number":"012345678","bsb":"123-123","created_at":"2018-
|
174
|
-
name","account_number":"012345678","bsb":"123-123","created_at":"2018-
|
175
|
-
name","account_number":"012345678","bsb":"123-123","created_at":"2018-
|
176
|
-
name","account_number":"012345678","bsb":"123-123","created_at":"2018-
|
177
|
-
name","account_number":"012345678","bsb":"123-123","created_at":"2018-
|
178
|
-
name","account_number":"012345678","bsb":"123-123","created_at":"2018-
|
179
|
-
name","account_number":"012345678","bsb":"123-123","created_at":"2018-
|
151
|
+
string: '{"successful":true,"response":[{"id":"071-B-QD94CMS0","account_name":"Test
|
152
|
+
name","account_number":"012345678","bsb":"123-123","created_at":"2018-07-25T13:20:45+10:00"},{"id":"071-B-85HHSLPH","account_name":"Test
|
153
|
+
name","account_number":"012345678","bsb":"123-123","created_at":"2018-07-25T13:20:45+10:00"},{"id":"071-B-HP7YKSC1","account_name":"Test
|
154
|
+
name","account_number":"012345678","bsb":"123-123","created_at":"2018-07-25T13:20:45+10:00"},{"id":"071-B-5BWGC3VJ","account_name":"Test
|
155
|
+
name","account_number":"012345678","bsb":"123-123","created_at":"2018-07-25T13:20:44+10:00"},{"id":"071-B-3AXMLMDD","account_name":"Test
|
156
|
+
name","account_number":"012345678","bsb":"123-123","created_at":"2018-07-25T13:20:44+10:00"},{"id":"071-B-NYQ4WI17","account_name":"Test
|
157
|
+
name","account_number":"012345678","bsb":"123-123","created_at":"2018-07-25T13:20:44+10:00"},{"id":"071-B-A7RP1GOD","account_name":"Test
|
158
|
+
name","account_number":"012345678","bsb":"123-123","created_at":"2018-07-25T13:14:36+10:00"},{"id":"071-B-L7M2NZUC","account_name":"Test
|
159
|
+
name","account_number":"012345678","bsb":"123-123","created_at":"2018-07-25T13:14:35+10:00"},{"id":"071-B-JF8R04C3","account_name":"Test
|
160
|
+
name","account_number":"012345678","bsb":"123-123","created_at":"2018-07-25T13:14:35+10:00"},{"id":"071-B-M82OMMOY","account_name":"Test
|
161
|
+
name","account_number":"012345678","bsb":"123-123","created_at":"2018-07-25T13:14:35+10:00"}],"errors":[],"test":true,"records":10,"total_records":1944,"page":0,"total_pages":195}'
|
180
162
|
http_version:
|
181
|
-
recorded_at:
|
163
|
+
recorded_at: Wed, 25 Jul 2018 03:20:43 GMT
|
182
164
|
recorded_with: VCR 3.0.3
|