fat_zebra 3.0.11 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +3 -5
  3. data/.travis.yml +1 -2
  4. data/README.md +1 -1
  5. data/fat_zebra.gemspec +1 -1
  6. data/lib/fat_zebra/api_operation/search.rb +1 -1
  7. data/lib/fat_zebra/direct_credit.rb +1 -1
  8. data/lib/fat_zebra/direct_debit.rb +1 -1
  9. data/lib/fat_zebra/refund.rb +4 -0
  10. data/lib/fat_zebra/validation.rb +4 -0
  11. data/lib/fat_zebra/version.rb +1 -1
  12. data/spec/cassettes/FatZebra_BankAccount/_search/1_2_1.yml +34 -52
  13. data/spec/cassettes/FatZebra_BankAccount/_search/1_2_2.yml +34 -52
  14. data/spec/cassettes/FatZebra_BankAccount/_search/1_2_3.yml +34 -52
  15. data/spec/cassettes/FatZebra_Batch/_search/1_3_1.yml +8 -14
  16. data/spec/cassettes/FatZebra_Batch/_search/1_3_2.yml +8 -14
  17. data/spec/cassettes/FatZebra_Batch/_search/1_3_3.yml +8 -14
  18. data/spec/cassettes/FatZebra_Customer/_search/1_2_1.yml +18 -24
  19. data/spec/cassettes/FatZebra_Customer/_search/1_2_2.yml +18 -24
  20. data/spec/cassettes/FatZebra_Customer/_search/1_2_3.yml +18 -24
  21. data/spec/cassettes/FatZebra_DirectCredit/_find/1_2_3.yml +103 -0
  22. data/spec/cassettes/FatZebra_DirectCredit/_search/1_3_1.yml +22 -40
  23. data/spec/cassettes/FatZebra_DirectCredit/_search/1_3_2.yml +22 -40
  24. data/spec/cassettes/FatZebra_DirectDebit/_create/validations/failed_with_non-float/1_1_5_3_1.yml +52 -0
  25. data/spec/cassettes/FatZebra_DirectDebit/_find/1_2_3.yml +103 -0
  26. data/spec/cassettes/FatZebra_DirectDebit/_search/1_3_1.yml +22 -40
  27. data/spec/cassettes/FatZebra_DirectDebit/_search/1_3_2.yml +22 -40
  28. data/spec/cassettes/FatZebra_PaymentPlan/_active_/1_8_1.yml +52 -76
  29. data/spec/cassettes/FatZebra_PaymentPlan/_active_/1_8_2.yml +52 -76
  30. data/spec/cassettes/FatZebra_PaymentPlan/_create/1_1_1.yml +22 -34
  31. data/spec/cassettes/FatZebra_PaymentPlan/_create/1_1_2.yml +22 -34
  32. data/spec/cassettes/FatZebra_PaymentPlan/_create/1_1_3.yml +22 -34
  33. data/spec/cassettes/FatZebra_PaymentPlan/_delete/1_5_1.yml +31 -49
  34. data/spec/cassettes/FatZebra_PaymentPlan/_destroy/1_6_1.yml +31 -49
  35. data/spec/cassettes/FatZebra_PaymentPlan/_find/1_2_1.yml +35 -53
  36. data/spec/cassettes/FatZebra_PaymentPlan/_find/1_2_2.yml +35 -53
  37. data/spec/cassettes/FatZebra_PaymentPlan/_find/1_2_3.yml +35 -53
  38. data/spec/cassettes/FatZebra_PaymentPlan/_suspend_/1_7_1.yml +37 -55
  39. data/spec/cassettes/FatZebra_PaymentPlan/_suspend_/1_7_2.yml +37 -55
  40. data/spec/cassettes/FatZebra_PaymentPlan/_update/1_3_1.yml +31 -49
  41. data/spec/cassettes/FatZebra_PaymentPlan/_update/1_3_2.yml +31 -49
  42. data/spec/cassettes/FatZebra_PaymentPlan/_update/1_3_3.yml +31 -49
  43. data/spec/cassettes/FatZebra_PaymentPlan/_update/1_4_1.yml +37 -55
  44. data/spec/cassettes/FatZebra_PaymentPlan/_update/1_4_2.yml +37 -55
  45. data/spec/cassettes/FatZebra_Purchase/_search/1_3_1.yml +36 -54
  46. data/spec/cassettes/FatZebra_Purchase/_search/1_3_2.yml +36 -54
  47. data/spec/cassettes/FatZebra_Purchase/_search/1_3_3.yml +36 -54
  48. data/spec/cassettes/FatZebra_Refund/_create/1_1_1.yml +18 -30
  49. data/spec/cassettes/FatZebra_Refund/_create/1_1_10.yml +18 -30
  50. data/spec/cassettes/FatZebra_Refund/_create/1_1_2.yml +18 -30
  51. data/spec/cassettes/FatZebra_Refund/_create/1_1_3.yml +18 -30
  52. data/spec/cassettes/FatZebra_Refund/_create/1_1_4.yml +18 -30
  53. data/spec/cassettes/FatZebra_Refund/_create/1_1_5.yml +18 -30
  54. data/spec/cassettes/FatZebra_Refund/_create/1_1_6.yml +18 -30
  55. data/spec/cassettes/FatZebra_Refund/_create/1_1_7.yml +18 -30
  56. data/spec/cassettes/FatZebra_Refund/_create/1_1_8.yml +18 -30
  57. data/spec/cassettes/FatZebra_Refund/_create/1_1_9.yml +18 -30
  58. data/spec/cassettes/FatZebra_Refund/_find/1_2_1.yml +27 -45
  59. data/spec/cassettes/FatZebra_Refund/_find/1_2_2.yml +27 -45
  60. data/spec/cassettes/FatZebra_Refund/_find/1_2_3.yml +27 -45
  61. data/spec/cassettes/FatZebra_Refund/_search/responds_with_the_newly-created_refunds.yml +214 -0
  62. data/spec/cassettes/FatZebra_Refund/_void/1_4_1.yml +27 -45
  63. data/spec/cassettes/FatZebra_Refund/_void/1_4_2.yml +27 -45
  64. data/spec/cassettes/FatZebra_Refund/_void/1_4_3.yml +27 -45
  65. data/spec/cassettes/FatZebra_Refund/_void/1_4_4.yml +27 -45
  66. data/spec/cassettes/FatZebra_WebHook/_search/1_2_1.yml +138 -93
  67. data/spec/cassettes/FatZebra_WebHook/_search/1_2_2.yml +140 -95
  68. data/spec/lib/fat_zebra/direct_credit_spec.rb +14 -1
  69. data/spec/lib/fat_zebra/direct_debit_spec.rb +14 -1
  70. data/spec/lib/fat_zebra/payment_plan_spec.rb +1 -1
  71. data/spec/lib/fat_zebra/refund_spec.rb +36 -16
  72. metadata +9 -7
  73. data/spec/cassettes/FatZebra_Refund/_search/1_3_1.yml +0 -295
  74. 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: ff94b3fd1c43a7b90908073a7a5eecbb0bab37f0
4
- data.tar.gz: 6bd74dc80eaa4e426c54ef240a3dc17c16f22623
3
+ metadata.gz: fa90ecc2f14542b9afd815d07d056cbcc4568bb1
4
+ data.tar.gz: 087a34525732fdccc0841212eae069af46a37728
5
5
  SHA512:
6
- metadata.gz: 07c067e3b79442071d945f0caa391473398f47860a8a50177a17d6cbcba22a0425c1af60868511cd292780b1e9e49e36f21fafea08d8fd52fe0f479fcf21fd43
7
- data.tar.gz: bc34ddfa19131255168fff08c08a657743790b140b5879be8f40eeec153f39dae2726ab30baf51d564f177fd181a2e6e6134faca524ceb08f5c5c7614824ebb6
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/MethodMissing:
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
@@ -1,11 +1,10 @@
1
1
  cache: bundler
2
2
  language: ruby
3
3
  rvm:
4
- - 2.0
5
- - 2.1
6
4
  - 2.2
7
5
  - 2.3
8
6
  - 2.4
7
+ - 2.5
9
8
  script:
10
9
  - bundle exec rspec spec
11
10
  - bundle exec rubocop
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.9 for API version 1.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.49'
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
@@ -8,7 +8,7 @@ module FatZebra
8
8
  ##
9
9
  # Default params for the API
10
10
  DEFAULT_PARAMS = {
11
- offets: 0,
11
+ offset: 0,
12
12
  limit: 10
13
13
  }.freeze
14
14
 
@@ -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: :positive_numeric, on: :create
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: :positive_numeric, on: :create
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
@@ -19,5 +19,9 @@ module FatZebra
19
19
  validates :amount, required: true, on: :create
20
20
  validates :reference, required: true, on: :create
21
21
 
22
+ def declined?
23
+ refunded == 'Declined'
24
+ end
25
+
22
26
  end
23
27
  end
@@ -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
@@ -1,3 +1,3 @@
1
1
  module FatZebra
2
- VERSION = '3.0.11'.freeze
2
+ VERSION = '3.1.0'.freeze
3
3
  end
@@ -23,7 +23,7 @@ http_interactions:
23
23
  message: Created
24
24
  headers:
25
25
  Date:
26
- - Tue, 08 May 2018 11:06:31 GMT
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-3186@7b619da
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
- - 15cfd476c62415f225cf5fd9
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-3G1M5QGK","account_name":"Test
56
- name","account_number":"012345678","bsb":"123-123","created_at":"2018-05-08T21:06:31.770+10:00"},"errors":[],"test":true}'
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: Tue, 08 May 2018 11:06:31 GMT
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
- - Tue, 08 May 2018 11:06:31 GMT
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-3186@7b619da
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
- - 17278b6db398841782a6dbb3
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-ZVNM273I","account_name":"Test
112
- name","account_number":"012345678","bsb":"123-123","created_at":"2018-05-08T21:06:31.879+10:00"},"errors":[],"test":true}'
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: Tue, 08 May 2018 11:06:31 GMT
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&offets=0&test=true
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
- - Tue, 08 May 2018 11:06:31 GMT
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-3186@7b619da
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
- - d3bc0f9b32ba0368c0153337
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-ZVNM273I","account_name":"Test
170
- name","account_number":"012345678","bsb":"123-123","created_at":"2018-05-08T21:06:31.879+10:00"},{"id":"071-B-3G1M5QGK","account_name":"Test
171
- name","account_number":"012345678","bsb":"123-123","created_at":"2018-05-08T21:06:31.770+10:00"},{"id":"071-B-DUOBBRII","account_name":"Test
172
- name","account_number":"012345678","bsb":"123-123","created_at":"2018-05-08T21:06:31.659+10:00"},{"id":"071-B-NVSTWHOE","account_name":"Test
173
- name","account_number":"012345678","bsb":"123-123","created_at":"2018-05-08T21:06:31.475+10:00"},{"id":"071-B-PEZAJVBZ","account_name":"Test
174
- name","account_number":"012345678","bsb":"123-123","created_at":"2018-05-08T20:56:42.003+10:00"},{"id":"071-B-CZ9PN83H","account_name":"Test
175
- name","account_number":"012345678","bsb":"123-123","created_at":"2018-05-08T20:56:41.845+10:00"},{"id":"071-B-K2057ZSJ","account_name":"Test
176
- name","account_number":"012345678","bsb":"123-123","created_at":"2018-05-08T20:56:41.586+10:00"},{"id":"071-B-GTCEF3TK","account_name":"Test
177
- name","account_number":"012345678","bsb":"123-123","created_at":"2018-05-08T20:56:41.434+10:00"},{"id":"071-B-1SRW9EMX","account_name":"Test
178
- name","account_number":"012345678","bsb":"123-123","created_at":"2018-05-08T20:56:40.881+10:00"},{"id":"071-B-WCLO2GDW","account_name":"Test
179
- name","account_number":"012345678","bsb":"123-123","created_at":"2018-05-08T20:56:40.767+10:00"}],"errors":[],"test":true,"records":10,"total_records":692,"page":1,"total_pages":70}'
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: Tue, 08 May 2018 11:06:32 GMT
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
- - Tue, 08 May 2018 11:06:32 GMT
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-3186@7b619da
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
- - b77bca8801786be6413100f5
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-XYARL3E5","account_name":"Test
56
- name","account_number":"012345678","bsb":"123-123","created_at":"2018-05-08T21:06:32.104+10:00"},"errors":[],"test":true}'
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: Tue, 08 May 2018 11:06:32 GMT
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
- - Tue, 08 May 2018 11:06:32 GMT
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-3186@7b619da
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
- - ca09ba1a2334178a1ea283dc
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-IBYAK0Y4","account_name":"Test
112
- name","account_number":"012345678","bsb":"123-123","created_at":"2018-05-08T21:06:32.214+10:00"},"errors":[],"test":true}'
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: Tue, 08 May 2018 11:06:32 GMT
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&offets=0&test=true
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
- - Tue, 08 May 2018 11:06:32 GMT
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-3186@7b619da
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
- - c8276915a0aaa9adbf00722e
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-IBYAK0Y4","account_name":"Test
170
- name","account_number":"012345678","bsb":"123-123","created_at":"2018-05-08T21:06:32.214+10:00"},{"id":"071-B-XYARL3E5","account_name":"Test
171
- name","account_number":"012345678","bsb":"123-123","created_at":"2018-05-08T21:06:32.104+10:00"},{"id":"071-B-ZVNM273I","account_name":"Test
172
- name","account_number":"012345678","bsb":"123-123","created_at":"2018-05-08T21:06:31.879+10:00"},{"id":"071-B-3G1M5QGK","account_name":"Test
173
- name","account_number":"012345678","bsb":"123-123","created_at":"2018-05-08T21:06:31.770+10:00"},{"id":"071-B-DUOBBRII","account_name":"Test
174
- name","account_number":"012345678","bsb":"123-123","created_at":"2018-05-08T21:06:31.659+10:00"},{"id":"071-B-NVSTWHOE","account_name":"Test
175
- name","account_number":"012345678","bsb":"123-123","created_at":"2018-05-08T21:06:31.475+10:00"},{"id":"071-B-PEZAJVBZ","account_name":"Test
176
- name","account_number":"012345678","bsb":"123-123","created_at":"2018-05-08T20:56:42.003+10:00"},{"id":"071-B-CZ9PN83H","account_name":"Test
177
- name","account_number":"012345678","bsb":"123-123","created_at":"2018-05-08T20:56:41.845+10:00"},{"id":"071-B-K2057ZSJ","account_name":"Test
178
- name","account_number":"012345678","bsb":"123-123","created_at":"2018-05-08T20:56:41.586+10:00"},{"id":"071-B-GTCEF3TK","account_name":"Test
179
- name","account_number":"012345678","bsb":"123-123","created_at":"2018-05-08T20:56:41.434+10:00"}],"errors":[],"test":true,"records":10,"total_records":694,"page":1,"total_pages":70}'
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: Tue, 08 May 2018 11:06:32 GMT
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
- - Tue, 08 May 2018 11:06:32 GMT
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-3186@7b619da
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
- - 080a69f3c78bc400a3f09d0a
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-NBBRMROY","account_name":"Test
56
- name","account_number":"012345678","bsb":"123-123","created_at":"2018-05-08T21:06:32.424+10:00"},"errors":[],"test":true}'
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: Tue, 08 May 2018 11:06:32 GMT
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
- - Tue, 08 May 2018 11:06:32 GMT
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-3186@7b619da
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
- - 237fc5929f971b8cd103f2ac
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-94U5NGDC","account_name":"Test
112
- name","account_number":"012345678","bsb":"123-123","created_at":"2018-05-08T21:06:32.546+10:00"},"errors":[],"test":true}'
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: Tue, 08 May 2018 11:06:32 GMT
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&offets=0&test=true
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
- - Tue, 08 May 2018 11:06:32 GMT
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-3186@7b619da
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
- - f361c0fab9b01138101e9f36
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-94U5NGDC","account_name":"Test
170
- name","account_number":"012345678","bsb":"123-123","created_at":"2018-05-08T21:06:32.546+10:00"},{"id":"071-B-NBBRMROY","account_name":"Test
171
- name","account_number":"012345678","bsb":"123-123","created_at":"2018-05-08T21:06:32.424+10:00"},{"id":"071-B-IBYAK0Y4","account_name":"Test
172
- name","account_number":"012345678","bsb":"123-123","created_at":"2018-05-08T21:06:32.214+10:00"},{"id":"071-B-XYARL3E5","account_name":"Test
173
- name","account_number":"012345678","bsb":"123-123","created_at":"2018-05-08T21:06:32.104+10:00"},{"id":"071-B-ZVNM273I","account_name":"Test
174
- name","account_number":"012345678","bsb":"123-123","created_at":"2018-05-08T21:06:31.879+10:00"},{"id":"071-B-3G1M5QGK","account_name":"Test
175
- name","account_number":"012345678","bsb":"123-123","created_at":"2018-05-08T21:06:31.770+10:00"},{"id":"071-B-DUOBBRII","account_name":"Test
176
- name","account_number":"012345678","bsb":"123-123","created_at":"2018-05-08T21:06:31.659+10:00"},{"id":"071-B-NVSTWHOE","account_name":"Test
177
- name","account_number":"012345678","bsb":"123-123","created_at":"2018-05-08T21:06:31.475+10:00"},{"id":"071-B-PEZAJVBZ","account_name":"Test
178
- name","account_number":"012345678","bsb":"123-123","created_at":"2018-05-08T20:56:42.003+10:00"},{"id":"071-B-CZ9PN83H","account_name":"Test
179
- name","account_number":"012345678","bsb":"123-123","created_at":"2018-05-08T20:56:41.845+10:00"}],"errors":[],"test":true,"records":10,"total_records":696,"page":1,"total_pages":70}'
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: Tue, 08 May 2018 11:06:32 GMT
163
+ recorded_at: Wed, 25 Jul 2018 03:20:43 GMT
182
164
  recorded_with: VCR 3.0.3