patch_ruby 1.0.0.pre

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 (68) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +10 -0
  3. data/Gemfile.lock +72 -0
  4. data/README.md +54 -0
  5. data/Rakefile +10 -0
  6. data/lib/patch_ruby.rb +61 -0
  7. data/lib/patch_ruby/api/estimates_api.rb +213 -0
  8. data/lib/patch_ruby/api/orders_api.rb +339 -0
  9. data/lib/patch_ruby/api/preferences_api.rb +276 -0
  10. data/lib/patch_ruby/api/projects_api.rb +148 -0
  11. data/lib/patch_ruby/api_client.rb +388 -0
  12. data/lib/patch_ruby/api_error.rb +57 -0
  13. data/lib/patch_ruby/configuration.rb +254 -0
  14. data/lib/patch_ruby/models/allocation.rb +229 -0
  15. data/lib/patch_ruby/models/create_mass_estimate_request.rb +216 -0
  16. data/lib/patch_ruby/models/create_order_request.rb +216 -0
  17. data/lib/patch_ruby/models/create_preference_request.rb +216 -0
  18. data/lib/patch_ruby/models/error_response.rb +239 -0
  19. data/lib/patch_ruby/models/estimate.rb +238 -0
  20. data/lib/patch_ruby/models/estimate_list_response.rb +255 -0
  21. data/lib/patch_ruby/models/estimate_response.rb +239 -0
  22. data/lib/patch_ruby/models/meta_index_object.rb +220 -0
  23. data/lib/patch_ruby/models/order.rb +313 -0
  24. data/lib/patch_ruby/models/order_list_response.rb +255 -0
  25. data/lib/patch_ruby/models/order_response.rb +239 -0
  26. data/lib/patch_ruby/models/preference.rb +229 -0
  27. data/lib/patch_ruby/models/preference_list_response.rb +255 -0
  28. data/lib/patch_ruby/models/preference_response.rb +239 -0
  29. data/lib/patch_ruby/models/project.rb +283 -0
  30. data/lib/patch_ruby/models/project_list_response.rb +255 -0
  31. data/lib/patch_ruby/models/project_response.rb +239 -0
  32. data/lib/patch_ruby/version.rb +15 -0
  33. data/patch_ruby.gemspec +39 -0
  34. data/spec/api/estimates_api_spec.rb +71 -0
  35. data/spec/api/orders_api_spec.rb +95 -0
  36. data/spec/api/preferences_api_spec.rb +83 -0
  37. data/spec/api/projects_api_spec.rb +59 -0
  38. data/spec/api_client_spec.rb +226 -0
  39. data/spec/configuration_spec.rb +42 -0
  40. data/spec/fixtures/vcr_cassettes/estimate_orders.yml +276 -0
  41. data/spec/fixtures/vcr_cassettes/estimates.yml +211 -0
  42. data/spec/fixtures/vcr_cassettes/orders.yml +229 -0
  43. data/spec/fixtures/vcr_cassettes/preferences.yml +352 -0
  44. data/spec/fixtures/vcr_cassettes/projects.yml +143 -0
  45. data/spec/integration/estimates_spec.rb +31 -0
  46. data/spec/integration/orders_spec.rb +53 -0
  47. data/spec/integration/preferences_spec.rb +40 -0
  48. data/spec/integration/projects_spec.rb +31 -0
  49. data/spec/models/allocation_spec.rb +53 -0
  50. data/spec/models/create_mass_estimate_request_spec.rb +41 -0
  51. data/spec/models/create_order_request_spec.rb +41 -0
  52. data/spec/models/create_preference_request_spec.rb +41 -0
  53. data/spec/models/error_response_spec.rb +53 -0
  54. data/spec/models/estimate_list_response_spec.rb +59 -0
  55. data/spec/models/estimate_response_spec.rb +53 -0
  56. data/spec/models/estimate_spec.rb +59 -0
  57. data/spec/models/meta_index_object_spec.rb +47 -0
  58. data/spec/models/order_list_response_spec.rb +59 -0
  59. data/spec/models/order_response_spec.rb +53 -0
  60. data/spec/models/order_spec.rb +85 -0
  61. data/spec/models/preference_list_response_spec.rb +59 -0
  62. data/spec/models/preference_response_spec.rb +53 -0
  63. data/spec/models/preference_spec.rb +53 -0
  64. data/spec/models/project_list_response_spec.rb +59 -0
  65. data/spec/models/project_response_spec.rb +53 -0
  66. data/spec/models/project_spec.rb +89 -0
  67. data/spec/spec_helper.rb +122 -0
  68. metadata +203 -0
@@ -0,0 +1,42 @@
1
+ =begin
2
+ #Patch API V1
3
+
4
+ #The core API used to integrate with Patch's service
5
+
6
+ The version of the OpenAPI document: v1
7
+ Contact: developers@usepatch.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+
15
+ describe Patch::Configuration do
16
+ let(:config) { Patch::Configuration.default }
17
+
18
+ before(:each) do
19
+ # uncomment below to setup host and base_path
20
+ # require 'URI'
21
+ # uri = URI.parse("https://api.usepatch.com")
22
+ # Patch.configure do |c|
23
+ # c.host = uri.host
24
+ # c.base_path = uri.path
25
+ # end
26
+ end
27
+
28
+ describe '#base_url' do
29
+ it 'should have the default value' do
30
+ # uncomment below to test default value of the base path
31
+ # expect(config.base_url).to eq("https://api.usepatch.com")
32
+ end
33
+
34
+ it 'should remove trailing slashes' do
35
+ [nil, '', '/', '//'].each do |base_path|
36
+ config.base_path = base_path
37
+ # uncomment below to test trailing slashes
38
+ # expect(config.base_url).to eq("https://api.usepatch.com")
39
+ end
40
+ end
41
+ end
42
+ end
@@ -0,0 +1,276 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.staging-patch.com/v1/estimates/mass
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"mass_g":100}'
9
+ headers:
10
+ User-Agent:
11
+ - OpenAPI-Generator/1.0.0.pre/ruby
12
+ Content-Type:
13
+ - application/json
14
+ Accept:
15
+ - application/json
16
+ Authorization:
17
+ - "<AUTH>"
18
+ Expect:
19
+ - ''
20
+ response:
21
+ status:
22
+ code: 201
23
+ message: ''
24
+ headers:
25
+ server:
26
+ - nginx/1.17.8
27
+ date:
28
+ - Thu, 02 Jul 2020 17:44:24 GMT
29
+ content-type:
30
+ - application/json; charset=utf-8
31
+ x-frame-options:
32
+ - SAMEORIGIN
33
+ x-xss-protection:
34
+ - 1; mode=block
35
+ x-content-type-options:
36
+ - nosniff
37
+ x-download-options:
38
+ - noopen
39
+ x-permitted-cross-domain-policies:
40
+ - none
41
+ referrer-policy:
42
+ - strict-origin-when-cross-origin
43
+ etag:
44
+ - W/"af0b00bb84b4c38293ed30105f13c5c6"
45
+ cache-control:
46
+ - max-age=0, private, must-revalidate
47
+ x-request-id:
48
+ - 28a69e9c0e7efc14c2224edd51cd3571
49
+ x-runtime:
50
+ - '0.048519'
51
+ strict-transport-security:
52
+ - max-age=15724800; includeSubDomains
53
+ vary:
54
+ - Origin
55
+ access-control-allow-origin:
56
+ - "*"
57
+ access-control-allow-credentials:
58
+ - 'true'
59
+ access-control-allow-methods:
60
+ - GET, PUT, POST, DELETE, PATCH, OPTIONS
61
+ access-control-allow-headers:
62
+ - DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization
63
+ body:
64
+ encoding: UTF-8
65
+ string: '{"data":{"id":"est_test_7b0f776934705a0cbbc33082ae85026a","order":{"id":"ord_test_9ff07c288ac6484ea64b8a7dd6139f0a","allocation_state":"allocated","allocations":[{"id":"all_test_946d0d85732a7d36e96202b2ba267339","mass_g":100,"offset":{"id":"off_test_000ef5de5218cc4eeea1f87e081da9cc","developer":"Patch
66
+ Test Developer","production":false,"serial_number":"462630d75df3085670adfb97cc7be235","vintage_year":2020},"production":false}],"mass_g":100,"price_cents_usd":"1.0","production":false,"state":"draft"},"production":true,"type":"mass"},"error":null,"meta":null,"success":true}'
67
+ http_version: '2'
68
+ adapter_metadata:
69
+ effective_url: https://api.staging-patch.com/v1/estimates/mass
70
+ recorded_at: Thu, 02 Jul 2020 17:44:24 GMT
71
+ - request:
72
+ method: patch
73
+ uri: https://api.staging-patch.com/v1/orders/ord_test_9ff07c288ac6484ea64b8a7dd6139f0a/place
74
+ body:
75
+ encoding: US-ASCII
76
+ string: ''
77
+ headers:
78
+ User-Agent:
79
+ - OpenAPI-Generator/1.0.0.pre/ruby
80
+ Content-Type:
81
+ - application/json
82
+ Accept:
83
+ - application/json
84
+ Authorization:
85
+ - "<AUTH>"
86
+ Expect:
87
+ - ''
88
+ response:
89
+ status:
90
+ code: 200
91
+ message: ''
92
+ headers:
93
+ server:
94
+ - nginx/1.17.8
95
+ date:
96
+ - Thu, 02 Jul 2020 17:44:24 GMT
97
+ content-type:
98
+ - application/json; charset=utf-8
99
+ vary:
100
+ - Accept-Encoding
101
+ - Origin
102
+ x-frame-options:
103
+ - SAMEORIGIN
104
+ x-xss-protection:
105
+ - 1; mode=block
106
+ x-content-type-options:
107
+ - nosniff
108
+ x-download-options:
109
+ - noopen
110
+ x-permitted-cross-domain-policies:
111
+ - none
112
+ referrer-policy:
113
+ - strict-origin-when-cross-origin
114
+ etag:
115
+ - W/"83cacd7a207ff94ca182623addf38a4a"
116
+ cache-control:
117
+ - max-age=0, private, must-revalidate
118
+ x-request-id:
119
+ - cf92e44ea1f6dac58c8dda2d9838d33c
120
+ x-runtime:
121
+ - '0.030993'
122
+ strict-transport-security:
123
+ - max-age=15724800; includeSubDomains
124
+ access-control-allow-origin:
125
+ - "*"
126
+ access-control-allow-credentials:
127
+ - 'true'
128
+ access-control-allow-methods:
129
+ - GET, PUT, POST, DELETE, PATCH, OPTIONS
130
+ access-control-allow-headers:
131
+ - DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization
132
+ body:
133
+ encoding: UTF-8
134
+ string: '{"data":{"id":"ord_test_9ff07c288ac6484ea64b8a7dd6139f0a","allocation_state":"allocated","allocations":[{"id":"all_test_946d0d85732a7d36e96202b2ba267339","mass_g":100,"offset":{"id":"off_test_000ef5de5218cc4eeea1f87e081da9cc","developer":"Patch
135
+ Test Developer","production":false,"serial_number":"462630d75df3085670adfb97cc7be235","vintage_year":2020},"production":false}],"mass_g":100,"price_cents_usd":"1.0","production":false,"state":"placed"},"error":null,"meta":null,"success":true}'
136
+ http_version: '2'
137
+ adapter_metadata:
138
+ effective_url: https://api.staging-patch.com/v1/orders/ord_test_9ff07c288ac6484ea64b8a7dd6139f0a/place
139
+ recorded_at: Thu, 02 Jul 2020 17:44:24 GMT
140
+ - request:
141
+ method: post
142
+ uri: https://api.staging-patch.com/v1/estimates/mass
143
+ body:
144
+ encoding: UTF-8
145
+ string: '{"mass_g":100}'
146
+ headers:
147
+ User-Agent:
148
+ - OpenAPI-Generator/1.0.0.pre/ruby
149
+ Content-Type:
150
+ - application/json
151
+ Accept:
152
+ - application/json
153
+ Authorization:
154
+ - "<AUTH>"
155
+ Expect:
156
+ - ''
157
+ response:
158
+ status:
159
+ code: 201
160
+ message: ''
161
+ headers:
162
+ server:
163
+ - nginx/1.17.8
164
+ date:
165
+ - Thu, 02 Jul 2020 17:44:24 GMT
166
+ content-type:
167
+ - application/json; charset=utf-8
168
+ x-frame-options:
169
+ - SAMEORIGIN
170
+ x-xss-protection:
171
+ - 1; mode=block
172
+ x-content-type-options:
173
+ - nosniff
174
+ x-download-options:
175
+ - noopen
176
+ x-permitted-cross-domain-policies:
177
+ - none
178
+ referrer-policy:
179
+ - strict-origin-when-cross-origin
180
+ etag:
181
+ - W/"bbe846386f1301daf592dc1778dbf7aa"
182
+ cache-control:
183
+ - max-age=0, private, must-revalidate
184
+ x-request-id:
185
+ - 291f4b70d2f90defaecae12dd5d6f73b
186
+ x-runtime:
187
+ - '0.049709'
188
+ strict-transport-security:
189
+ - max-age=15724800; includeSubDomains
190
+ vary:
191
+ - Origin
192
+ access-control-allow-origin:
193
+ - "*"
194
+ access-control-allow-credentials:
195
+ - 'true'
196
+ access-control-allow-methods:
197
+ - GET, PUT, POST, DELETE, PATCH, OPTIONS
198
+ access-control-allow-headers:
199
+ - DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization
200
+ body:
201
+ encoding: UTF-8
202
+ string: '{"data":{"id":"est_test_6156c2c85627268bde56dc5dc13d6668","order":{"id":"ord_test_9a8e1b4894cce6420d21685cabcdfabe","allocation_state":"allocated","allocations":[{"id":"all_test_7883718e4e87879a6ad3e9c2a6afb719","mass_g":100,"offset":{"id":"off_test_000ef5de5218cc4eeea1f87e081da9cc","developer":"Patch
203
+ Test Developer","production":false,"serial_number":"462630d75df3085670adfb97cc7be235","vintage_year":2020},"production":false}],"mass_g":100,"price_cents_usd":"1.0","production":false,"state":"draft"},"production":true,"type":"mass"},"error":null,"meta":null,"success":true}'
204
+ http_version: '2'
205
+ adapter_metadata:
206
+ effective_url: https://api.staging-patch.com/v1/estimates/mass
207
+ recorded_at: Thu, 02 Jul 2020 17:44:24 GMT
208
+ - request:
209
+ method: patch
210
+ uri: https://api.staging-patch.com/v1/orders/ord_test_9a8e1b4894cce6420d21685cabcdfabe/cancel
211
+ body:
212
+ encoding: US-ASCII
213
+ string: ''
214
+ headers:
215
+ User-Agent:
216
+ - OpenAPI-Generator/1.0.0.pre/ruby
217
+ Content-Type:
218
+ - application/json
219
+ Accept:
220
+ - application/json
221
+ Authorization:
222
+ - "<AUTH>"
223
+ Expect:
224
+ - ''
225
+ response:
226
+ status:
227
+ code: 200
228
+ message: ''
229
+ headers:
230
+ server:
231
+ - nginx/1.17.8
232
+ date:
233
+ - Thu, 02 Jul 2020 17:44:24 GMT
234
+ content-type:
235
+ - application/json; charset=utf-8
236
+ vary:
237
+ - Accept-Encoding
238
+ - Origin
239
+ x-frame-options:
240
+ - SAMEORIGIN
241
+ x-xss-protection:
242
+ - 1; mode=block
243
+ x-content-type-options:
244
+ - nosniff
245
+ x-download-options:
246
+ - noopen
247
+ x-permitted-cross-domain-policies:
248
+ - none
249
+ referrer-policy:
250
+ - strict-origin-when-cross-origin
251
+ etag:
252
+ - W/"c9c14db6eaa851d90cefcb3766bee9d8"
253
+ cache-control:
254
+ - max-age=0, private, must-revalidate
255
+ x-request-id:
256
+ - 892abb438ef0bf9cae7ecee9156659a2
257
+ x-runtime:
258
+ - '0.027150'
259
+ strict-transport-security:
260
+ - max-age=15724800; includeSubDomains
261
+ access-control-allow-origin:
262
+ - "*"
263
+ access-control-allow-credentials:
264
+ - 'true'
265
+ access-control-allow-methods:
266
+ - GET, PUT, POST, DELETE, PATCH, OPTIONS
267
+ access-control-allow-headers:
268
+ - DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization
269
+ body:
270
+ encoding: UTF-8
271
+ string: '{"data":{"id":"ord_test_9a8e1b4894cce6420d21685cabcdfabe","allocation_state":"allocated","allocations":[],"mass_g":100,"price_cents_usd":"1.0","production":false,"state":"cancelled"},"error":null,"meta":null,"success":true}'
272
+ http_version: '2'
273
+ adapter_metadata:
274
+ effective_url: https://api.staging-patch.com/v1/orders/ord_test_9a8e1b4894cce6420d21685cabcdfabe/cancel
275
+ recorded_at: Thu, 02 Jul 2020 17:44:24 GMT
276
+ recorded_with: VCR 6.0.0
@@ -0,0 +1,211 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.staging-patch.com/v1/estimates/mass
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"mass_g":100}'
9
+ headers:
10
+ User-Agent:
11
+ - OpenAPI-Generator/1.0.0.pre/ruby
12
+ Content-Type:
13
+ - application/json
14
+ Accept:
15
+ - application/json
16
+ Authorization:
17
+ - "<AUTH>"
18
+ Expect:
19
+ - ''
20
+ response:
21
+ status:
22
+ code: 201
23
+ message: ''
24
+ headers:
25
+ server:
26
+ - nginx/1.17.8
27
+ date:
28
+ - Thu, 02 Jul 2020 17:44:23 GMT
29
+ content-type:
30
+ - application/json; charset=utf-8
31
+ x-frame-options:
32
+ - SAMEORIGIN
33
+ x-xss-protection:
34
+ - 1; mode=block
35
+ x-content-type-options:
36
+ - nosniff
37
+ x-download-options:
38
+ - noopen
39
+ x-permitted-cross-domain-policies:
40
+ - none
41
+ referrer-policy:
42
+ - strict-origin-when-cross-origin
43
+ etag:
44
+ - W/"3fd5856c8b9923b9359ca82a17bed91d"
45
+ cache-control:
46
+ - max-age=0, private, must-revalidate
47
+ x-request-id:
48
+ - 7dc7ca3bdc0917a9bda4701e18855f9c
49
+ x-runtime:
50
+ - '0.356926'
51
+ strict-transport-security:
52
+ - max-age=15724800; includeSubDomains
53
+ vary:
54
+ - Origin
55
+ access-control-allow-origin:
56
+ - "*"
57
+ access-control-allow-credentials:
58
+ - 'true'
59
+ access-control-allow-methods:
60
+ - GET, PUT, POST, DELETE, PATCH, OPTIONS
61
+ access-control-allow-headers:
62
+ - DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization
63
+ body:
64
+ encoding: UTF-8
65
+ string: '{"data":{"id":"est_test_7fd554d0b824cbf3fd928f8db56dc3f1","order":{"id":"ord_test_26c3cc6bcc823154b244653052ffc93e","allocation_state":"allocated","allocations":[{"id":"all_test_da286dca43e07def48c5333f971c0673","mass_g":100,"offset":{"id":"off_test_000ef5de5218cc4eeea1f87e081da9cc","developer":"Patch
66
+ Test Developer","production":false,"serial_number":"462630d75df3085670adfb97cc7be235","vintage_year":2020},"production":false}],"mass_g":100,"price_cents_usd":"1.0","production":false,"state":"draft"},"production":true,"type":"mass"},"error":null,"meta":null,"success":true}'
67
+ http_version: '2'
68
+ adapter_metadata:
69
+ effective_url: https://api.staging-patch.com/v1/estimates/mass
70
+ recorded_at: Thu, 02 Jul 2020 17:44:23 GMT
71
+ - request:
72
+ method: get
73
+ uri: https://api.staging-patch.com/v1/estimates/est_test_7fd554d0b824cbf3fd928f8db56dc3f1
74
+ body:
75
+ encoding: US-ASCII
76
+ string: ''
77
+ headers:
78
+ User-Agent:
79
+ - OpenAPI-Generator/1.0.0.pre/ruby
80
+ Content-Type:
81
+ - application/json
82
+ Accept:
83
+ - application/json
84
+ Authorization:
85
+ - "<AUTH>"
86
+ Expect:
87
+ - ''
88
+ response:
89
+ status:
90
+ code: 200
91
+ message: ''
92
+ headers:
93
+ server:
94
+ - nginx/1.17.8
95
+ date:
96
+ - Thu, 02 Jul 2020 17:44:23 GMT
97
+ content-type:
98
+ - application/json; charset=utf-8
99
+ vary:
100
+ - Accept-Encoding
101
+ - Origin
102
+ x-frame-options:
103
+ - SAMEORIGIN
104
+ x-xss-protection:
105
+ - 1; mode=block
106
+ x-content-type-options:
107
+ - nosniff
108
+ x-download-options:
109
+ - noopen
110
+ x-permitted-cross-domain-policies:
111
+ - none
112
+ referrer-policy:
113
+ - strict-origin-when-cross-origin
114
+ etag:
115
+ - W/"3fd5856c8b9923b9359ca82a17bed91d"
116
+ cache-control:
117
+ - max-age=0, private, must-revalidate
118
+ x-request-id:
119
+ - 26daac59de9b1e3c4a5c284f02bcccd1
120
+ x-runtime:
121
+ - '0.069078'
122
+ strict-transport-security:
123
+ - max-age=15724800; includeSubDomains
124
+ access-control-allow-origin:
125
+ - "*"
126
+ access-control-allow-credentials:
127
+ - 'true'
128
+ access-control-allow-methods:
129
+ - GET, PUT, POST, DELETE, PATCH, OPTIONS
130
+ access-control-allow-headers:
131
+ - DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization
132
+ body:
133
+ encoding: UTF-8
134
+ string: '{"data":{"id":"est_test_7fd554d0b824cbf3fd928f8db56dc3f1","order":{"id":"ord_test_26c3cc6bcc823154b244653052ffc93e","allocation_state":"allocated","allocations":[{"id":"all_test_da286dca43e07def48c5333f971c0673","mass_g":100,"offset":{"id":"off_test_000ef5de5218cc4eeea1f87e081da9cc","developer":"Patch
135
+ Test Developer","production":false,"serial_number":"462630d75df3085670adfb97cc7be235","vintage_year":2020},"production":false}],"mass_g":100,"price_cents_usd":"1.0","production":false,"state":"draft"},"production":true,"type":"mass"},"error":null,"meta":null,"success":true}'
136
+ http_version: '2'
137
+ adapter_metadata:
138
+ effective_url: https://api.staging-patch.com/v1/estimates/est_test_7fd554d0b824cbf3fd928f8db56dc3f1
139
+ recorded_at: Thu, 02 Jul 2020 17:44:23 GMT
140
+ - request:
141
+ method: get
142
+ uri: https://api.staging-patch.com/v1/estimates?page=1
143
+ body:
144
+ encoding: US-ASCII
145
+ string: ''
146
+ headers:
147
+ User-Agent:
148
+ - OpenAPI-Generator/1.0.0.pre/ruby
149
+ Content-Type:
150
+ - application/json
151
+ Accept:
152
+ - application/json
153
+ Authorization:
154
+ - "<AUTH>"
155
+ Expect:
156
+ - ''
157
+ response:
158
+ status:
159
+ code: 200
160
+ message: ''
161
+ headers:
162
+ server:
163
+ - nginx/1.17.8
164
+ date:
165
+ - Thu, 02 Jul 2020 17:44:24 GMT
166
+ content-type:
167
+ - application/json; charset=utf-8
168
+ vary:
169
+ - Accept-Encoding
170
+ - Origin
171
+ x-frame-options:
172
+ - SAMEORIGIN
173
+ x-xss-protection:
174
+ - 1; mode=block
175
+ x-content-type-options:
176
+ - nosniff
177
+ x-download-options:
178
+ - noopen
179
+ x-permitted-cross-domain-policies:
180
+ - none
181
+ referrer-policy:
182
+ - strict-origin-when-cross-origin
183
+ etag:
184
+ - W/"f85014fa5cfc264e4179f49199e870cc"
185
+ cache-control:
186
+ - max-age=0, private, must-revalidate
187
+ x-request-id:
188
+ - ccf25ace4c795d0af52d45efd5d72d26
189
+ x-runtime:
190
+ - '0.039550'
191
+ strict-transport-security:
192
+ - max-age=15724800; includeSubDomains
193
+ access-control-allow-origin:
194
+ - "*"
195
+ access-control-allow-credentials:
196
+ - 'true'
197
+ access-control-allow-methods:
198
+ - GET, PUT, POST, DELETE, PATCH, OPTIONS
199
+ access-control-allow-headers:
200
+ - DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization
201
+ body:
202
+ encoding: UTF-8
203
+ string: '{"data":[{"id":"est_test_7fd554d0b824cbf3fd928f8db56dc3f1","order":{"id":"ord_test_26c3cc6bcc823154b244653052ffc93e","allocation_state":"allocated","allocations":[{"id":"all_test_da286dca43e07def48c5333f971c0673","mass_g":100,"offset":{"id":"off_test_000ef5de5218cc4eeea1f87e081da9cc","developer":"Patch
204
+ Test Developer","production":false,"serial_number":"462630d75df3085670adfb97cc7be235","vintage_year":2020},"production":false}],"mass_g":100,"price_cents_usd":"1.0","production":false,"state":"draft"},"production":true,"type":"mass"},{"id":"est_test_1fbe2802b582efc2caf3f1523cde1157","order":{"id":"ord_test_d22cae8d4a65ad93a255d1bf8b2a0701","allocation_state":"allocated","allocations":[{"id":"all_test_ad2a03492c746cefd7ebebe3bdd1d286","mass_g":100,"offset":{"id":"off_test_000ef5de5218cc4eeea1f87e081da9cc","developer":"Patch
205
+ Test Developer","production":false,"serial_number":"462630d75df3085670adfb97cc7be235","vintage_year":2020},"production":false}],"mass_g":100,"price_cents_usd":"1.0","production":false,"state":"placed"},"production":true,"type":"mass"},{"id":"est_test_3d32e8da2e2af8f3aa635b49d4a9f695","order":{"id":"ord_test_f4c126c763b33ea12b7491118d5fdb18","allocation_state":"allocated","allocations":[],"mass_g":100,"price_cents_usd":"1.0","production":false,"state":"cancelled"},"production":true,"type":"mass"},{"id":"est_test_8e8ec365b3675cc0d62ee80ad7c872f7","order":{"id":"ord_test_5bd267b45da3d5c489b5b906f41bae0b","allocation_state":"allocated","allocations":[{"id":"all_test_e7a874eab4be84503d56605296816f35","mass_g":100,"offset":{"id":"off_test_000ef5de5218cc4eeea1f87e081da9cc","developer":"Patch
206
+ Test Developer","production":false,"serial_number":"462630d75df3085670adfb97cc7be235","vintage_year":2020},"production":false}],"mass_g":100,"price_cents_usd":"1.0","production":false,"state":"placed"},"production":true,"type":"mass"},{"id":"est_test_ab9be5352e3a11b973ec89811f88e7f2","order":{"id":"ord_test_438094fb6759af55933349eb2ced84f5","allocation_state":"allocated","allocations":[],"mass_g":100,"price_cents_usd":"1.0","production":false,"state":"cancelled"},"production":true,"type":"mass"},{"id":"est_test_94367f5d88bc057e94cdbfd8b65013dd","order":{"id":"ord_test_f8ec57342fefc401a441f7cbf072f5b1","allocation_state":"allocated","allocations":[],"mass_g":100,"price_cents_usd":"1.0","production":false,"state":"cancelled"},"production":true,"type":"mass"}],"error":null,"meta":{"next_page":null,"prev_page":null},"success":true}'
207
+ http_version: '2'
208
+ adapter_metadata:
209
+ effective_url: https://api.staging-patch.com/v1/estimates?page=1
210
+ recorded_at: Thu, 02 Jul 2020 17:44:24 GMT
211
+ recorded_with: VCR 6.0.0