patch_ruby 1.9.0 → 1.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/Gemfile +1 -2
- data/Gemfile.lock +20 -25
- data/lib/patch_ruby/api/estimates_api.rb +33 -25
- data/lib/patch_ruby/api/orders_api.rb +21 -16
- data/lib/patch_ruby/api/preferences_api.rb +17 -13
- data/lib/patch_ruby/api/projects_api.rb +9 -7
- data/lib/patch_ruby/api_client.rb +51 -49
- data/lib/patch_ruby/api_error.rb +1 -1
- data/lib/patch_ruby/configuration.rb +38 -9
- data/lib/patch_ruby/models/allocation.rb +21 -11
- data/lib/patch_ruby/models/create_bitcoin_estimate_request.rb +25 -19
- data/lib/patch_ruby/models/create_ethereum_estimate_request.rb +26 -21
- data/lib/patch_ruby/models/create_mass_estimate_request.rb +22 -13
- data/lib/patch_ruby/models/create_order_request.rb +21 -11
- data/lib/patch_ruby/models/create_preference_request.rb +21 -11
- data/lib/patch_ruby/models/error_response.rb +22 -13
- data/lib/patch_ruby/models/estimate.rb +22 -13
- data/lib/patch_ruby/models/estimate_list_response.rb +22 -13
- data/lib/patch_ruby/models/estimate_response.rb +22 -13
- data/lib/patch_ruby/models/meta_index_object.rb +23 -15
- data/lib/patch_ruby/models/order.rb +23 -15
- data/lib/patch_ruby/models/order_list_response.rb +22 -13
- data/lib/patch_ruby/models/order_response.rb +22 -13
- data/lib/patch_ruby/models/photo.rb +21 -11
- data/lib/patch_ruby/models/preference.rb +21 -11
- data/lib/patch_ruby/models/preference_list_response.rb +22 -13
- data/lib/patch_ruby/models/preference_response.rb +22 -13
- data/lib/patch_ruby/models/project.rb +24 -17
- data/lib/patch_ruby/models/project_list_response.rb +22 -13
- data/lib/patch_ruby/models/project_response.rb +22 -13
- data/lib/patch_ruby/models/sdg.rb +21 -11
- data/lib/patch_ruby/models/standard.rb +21 -11
- data/lib/patch_ruby/version.rb +2 -2
- data/lib/patch_ruby.rb +1 -1
- data/patch_ruby.gemspec +7 -3
- data/spec/api_client_spec.rb +34 -13
- data/spec/configuration_spec.rb +1 -1
- data/spec/integration/preferences_spec.rb +1 -1
- data/spec/models/create_mass_estimate_request_spec.rb +1 -1
- data/spec/models/error_response_spec.rb +1 -1
- data/spec/models/estimate_list_response_spec.rb +1 -1
- data/spec/models/estimate_response_spec.rb +1 -1
- data/spec/models/estimate_spec.rb +1 -1
- data/spec/models/meta_index_object_spec.rb +1 -1
- data/spec/models/order_list_response_spec.rb +1 -1
- data/spec/models/order_response_spec.rb +1 -1
- data/spec/models/order_spec.rb +1 -1
- data/spec/models/preference_list_response_spec.rb +1 -1
- data/spec/models/preference_response_spec.rb +1 -1
- data/spec/models/project_list_response_spec.rb +1 -1
- data/spec/models/project_response_spec.rb +1 -1
- data/spec/models/project_spec.rb +1 -1
- data/spec/spec_helper.rb +68 -61
- metadata +38 -58
- data/lib/patch_ruby/.api_client.rb.un~ +0 -0
- data/lib/patch_ruby/.configuration.rb.un~ +0 -0
- data/lib/patch_ruby/.version.rb.un~ +0 -0
- data/lib/patch_ruby/api/.orders_api.rb.un~ +0 -0
- data/lib/patch_ruby/models/.create_ethereum_estimate_request.rb.un~ +0 -0
- data/spec/.spec_helper.rb.un~ +0 -0
- data/spec/integration/.estimates_spec.rb.un~ +0 -0
- data/spec/integration/.orders_spec.rb.un~ +0 -0
- data/spec/integration/.preferences_spec.rb.un~ +0 -0
- data/spec/integration/.projects_spec.rb.un~ +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 62e292f1c7070beccff4fc3add7f326fc1f08c1c5b843c7f0f0e022d40cd04de
|
4
|
+
data.tar.gz: e4e1245f57a33e41a8d601a24cd795625db7f58fad1bc3858831497351e8943f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e69a4cec4dba5b2206ee5ae361b62f3f58dc7d9aa1d2820d1a7774746ba1823824873ce99cbe2aaf4ef2184e8ecd16004d92da68ee1aadbb97a0b3186c586c2
|
7
|
+
data.tar.gz: c49deb8e1a9ccdecd8a965deaf14d25d6cad5eaf2a17a7a19846ef49b6b501bb7a4dd4760d8f20c70cc0baea06055b176e959c2683252a69af77826efa305ddf
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
7
7
|
|
8
|
+
## [1.10.0] - 2021-08-27
|
9
|
+
|
10
|
+
### Added
|
11
|
+
|
12
|
+
- Adds custom User-Agent header
|
13
|
+
|
8
14
|
## [1.9.0] - 2021-08-17
|
9
15
|
|
10
16
|
### Added
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,36 +1,35 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
patch_ruby (1.
|
5
|
-
json (~> 2.1, >= 2.1.0)
|
4
|
+
patch_ruby (1.10.0)
|
6
5
|
typhoeus (~> 1.0, >= 1.0.1)
|
7
6
|
|
8
7
|
GEM
|
9
8
|
remote: https://rubygems.org/
|
10
9
|
specs:
|
11
|
-
activesupport (6.1.1)
|
10
|
+
activesupport (6.1.4.1)
|
12
11
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
13
12
|
i18n (>= 1.6, < 2)
|
14
13
|
minitest (>= 5.1)
|
15
14
|
tzinfo (~> 2.0)
|
16
15
|
zeitwerk (~> 2.3)
|
17
|
-
ast (2.4.
|
16
|
+
ast (2.4.2)
|
18
17
|
byebug (11.1.3)
|
19
18
|
coderay (1.1.3)
|
20
|
-
concurrent-ruby (1.1.
|
19
|
+
concurrent-ruby (1.1.9)
|
21
20
|
diff-lcs (1.4.3)
|
22
21
|
ethon (0.14.0)
|
23
22
|
ffi (>= 1.15.0)
|
24
|
-
factory_bot (6.
|
23
|
+
factory_bot (6.2.0)
|
25
24
|
activesupport (>= 5.0.0)
|
26
25
|
ffi (1.15.3)
|
27
|
-
i18n (1.8.
|
26
|
+
i18n (1.8.10)
|
28
27
|
concurrent-ruby (~> 1.0)
|
29
|
-
|
28
|
+
jaro_winkler (1.5.4)
|
30
29
|
method_source (1.0.0)
|
31
|
-
minitest (5.14.
|
32
|
-
parallel (1.
|
33
|
-
parser (
|
30
|
+
minitest (5.14.4)
|
31
|
+
parallel (1.20.1)
|
32
|
+
parser (3.0.2.0)
|
34
33
|
ast (~> 2.4.1)
|
35
34
|
pry (0.13.1)
|
36
35
|
coderay (~> 1.1)
|
@@ -38,10 +37,9 @@ GEM
|
|
38
37
|
pry-byebug (3.9.0)
|
39
38
|
byebug (~> 11.0)
|
40
39
|
pry (~> 0.13.0)
|
40
|
+
psych (4.0.1)
|
41
41
|
rainbow (3.0.0)
|
42
42
|
rake (13.0.1)
|
43
|
-
regexp_parser (1.7.1)
|
44
|
-
rexml (3.2.4)
|
45
43
|
rspec (3.9.0)
|
46
44
|
rspec-core (~> 3.9.0)
|
47
45
|
rspec-expectations (~> 3.9.0)
|
@@ -55,35 +53,32 @@ GEM
|
|
55
53
|
diff-lcs (>= 1.2.0, < 2.0)
|
56
54
|
rspec-support (~> 3.9.0)
|
57
55
|
rspec-support (3.9.3)
|
58
|
-
rubocop (0.
|
56
|
+
rubocop (0.66.0)
|
57
|
+
jaro_winkler (~> 1.5.1)
|
59
58
|
parallel (~> 1.10)
|
60
|
-
parser (>= 2.
|
59
|
+
parser (>= 2.5, != 2.5.1.1)
|
60
|
+
psych (>= 3.1.0)
|
61
61
|
rainbow (>= 2.2.2, < 4.0)
|
62
|
-
regexp_parser (>= 1.7)
|
63
|
-
rexml
|
64
|
-
rubocop-ast (>= 0.1.0, < 1.0)
|
65
62
|
ruby-progressbar (~> 1.7)
|
66
|
-
unicode-display_width (>= 1.4.0, <
|
67
|
-
|
68
|
-
parser (>= 2.7.1.4)
|
69
|
-
ruby-progressbar (1.10.1)
|
63
|
+
unicode-display_width (>= 1.4.0, < 1.6)
|
64
|
+
ruby-progressbar (1.11.0)
|
70
65
|
typhoeus (1.4.0)
|
71
66
|
ethon (>= 0.9.0)
|
72
67
|
tzinfo (2.0.4)
|
73
68
|
concurrent-ruby (~> 1.0)
|
74
|
-
unicode-display_width (1.
|
69
|
+
unicode-display_width (1.5.0)
|
75
70
|
zeitwerk (2.4.2)
|
76
71
|
|
77
72
|
PLATFORMS
|
78
73
|
ruby
|
79
74
|
|
80
75
|
DEPENDENCIES
|
81
|
-
factory_bot
|
76
|
+
factory_bot (~> 6.2)
|
82
77
|
patch_ruby!
|
83
78
|
pry-byebug
|
84
79
|
rake (~> 13.0.1)
|
85
80
|
rspec (~> 3.6, >= 3.6.0)
|
86
|
-
rubocop
|
81
|
+
rubocop (~> 0.66.0)
|
87
82
|
|
88
83
|
BUNDLED WITH
|
89
84
|
2.2.14
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v1
|
7
7
|
Contact: developers@usepatch.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 5.2.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -70,15 +70,16 @@ module Patch
|
|
70
70
|
form_params = opts[:form_params] || {}
|
71
71
|
|
72
72
|
# http body (model)
|
73
|
-
post_body = opts[:
|
73
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_bitcoin_estimate_request)
|
74
74
|
|
75
75
|
# return_type
|
76
|
-
return_type = opts[:
|
76
|
+
return_type = opts[:debug_return_type] || 'EstimateResponse'
|
77
77
|
|
78
78
|
# auth_names
|
79
|
-
auth_names = opts[:
|
79
|
+
auth_names = opts[:debug_auth_names] || ['bearer_auth']
|
80
80
|
|
81
81
|
new_options = opts.merge(
|
82
|
+
:operation => :"EstimatesApi.create_bitcoin_estimate",
|
82
83
|
:header_params => header_params,
|
83
84
|
:query_params => query_params,
|
84
85
|
:form_params => form_params,
|
@@ -134,15 +135,16 @@ module Patch
|
|
134
135
|
form_params = opts[:form_params] || {}
|
135
136
|
|
136
137
|
# http body (model)
|
137
|
-
post_body = opts[:
|
138
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_ethereum_estimate_request)
|
138
139
|
|
139
140
|
# return_type
|
140
|
-
return_type = opts[:
|
141
|
+
return_type = opts[:debug_return_type] || 'EstimateResponse'
|
141
142
|
|
142
143
|
# auth_names
|
143
|
-
auth_names = opts[:
|
144
|
+
auth_names = opts[:debug_auth_names] || ['bearer_auth']
|
144
145
|
|
145
146
|
new_options = opts.merge(
|
147
|
+
:operation => :"EstimatesApi.create_ethereum_estimate",
|
146
148
|
:header_params => header_params,
|
147
149
|
:query_params => query_params,
|
148
150
|
:form_params => form_params,
|
@@ -198,15 +200,16 @@ module Patch
|
|
198
200
|
form_params = opts[:form_params] || {}
|
199
201
|
|
200
202
|
# http body (model)
|
201
|
-
post_body = opts[:
|
203
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_flight_estimate_request)
|
202
204
|
|
203
205
|
# return_type
|
204
|
-
return_type = opts[:
|
206
|
+
return_type = opts[:debug_return_type] || 'EstimateResponse'
|
205
207
|
|
206
208
|
# auth_names
|
207
|
-
auth_names = opts[:
|
209
|
+
auth_names = opts[:debug_auth_names] || ['bearer_auth']
|
208
210
|
|
209
211
|
new_options = opts.merge(
|
212
|
+
:operation => :"EstimatesApi.create_flight_estimate",
|
210
213
|
:header_params => header_params,
|
211
214
|
:query_params => query_params,
|
212
215
|
:form_params => form_params,
|
@@ -262,15 +265,16 @@ module Patch
|
|
262
265
|
form_params = opts[:form_params] || {}
|
263
266
|
|
264
267
|
# http body (model)
|
265
|
-
post_body = opts[:
|
268
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_mass_estimate_request)
|
266
269
|
|
267
270
|
# return_type
|
268
|
-
return_type = opts[:
|
271
|
+
return_type = opts[:debug_return_type] || 'EstimateResponse'
|
269
272
|
|
270
273
|
# auth_names
|
271
|
-
auth_names = opts[:
|
274
|
+
auth_names = opts[:debug_auth_names] || ['bearer_auth']
|
272
275
|
|
273
276
|
new_options = opts.merge(
|
277
|
+
:operation => :"EstimatesApi.create_mass_estimate",
|
274
278
|
:header_params => header_params,
|
275
279
|
:query_params => query_params,
|
276
280
|
:form_params => form_params,
|
@@ -326,15 +330,16 @@ module Patch
|
|
326
330
|
form_params = opts[:form_params] || {}
|
327
331
|
|
328
332
|
# http body (model)
|
329
|
-
post_body = opts[:
|
333
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_shipping_estimate_request)
|
330
334
|
|
331
335
|
# return_type
|
332
|
-
return_type = opts[:
|
336
|
+
return_type = opts[:debug_return_type] || 'EstimateResponse'
|
333
337
|
|
334
338
|
# auth_names
|
335
|
-
auth_names = opts[:
|
339
|
+
auth_names = opts[:debug_auth_names] || ['bearer_auth']
|
336
340
|
|
337
341
|
new_options = opts.merge(
|
342
|
+
:operation => :"EstimatesApi.create_shipping_estimate",
|
338
343
|
:header_params => header_params,
|
339
344
|
:query_params => query_params,
|
340
345
|
:form_params => form_params,
|
@@ -390,15 +395,16 @@ module Patch
|
|
390
395
|
form_params = opts[:form_params] || {}
|
391
396
|
|
392
397
|
# http body (model)
|
393
|
-
post_body = opts[:
|
398
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_vehicle_estimate_request)
|
394
399
|
|
395
400
|
# return_type
|
396
|
-
return_type = opts[:
|
401
|
+
return_type = opts[:debug_return_type] || 'EstimateResponse'
|
397
402
|
|
398
403
|
# auth_names
|
399
|
-
auth_names = opts[:
|
404
|
+
auth_names = opts[:debug_auth_names] || ['bearer_auth']
|
400
405
|
|
401
406
|
new_options = opts.merge(
|
407
|
+
:operation => :"EstimatesApi.create_vehicle_estimate",
|
402
408
|
:header_params => header_params,
|
403
409
|
:query_params => query_params,
|
404
410
|
:form_params => form_params,
|
@@ -452,15 +458,16 @@ module Patch
|
|
452
458
|
form_params = opts[:form_params] || {}
|
453
459
|
|
454
460
|
# http body (model)
|
455
|
-
post_body = opts[:
|
461
|
+
post_body = opts[:debug_body]
|
456
462
|
|
457
463
|
# return_type
|
458
|
-
return_type = opts[:
|
464
|
+
return_type = opts[:debug_return_type] || 'EstimateResponse'
|
459
465
|
|
460
466
|
# auth_names
|
461
|
-
auth_names = opts[:
|
467
|
+
auth_names = opts[:debug_auth_names] || ['bearer_auth']
|
462
468
|
|
463
469
|
new_options = opts.merge(
|
470
|
+
:operation => :"EstimatesApi.retrieve_estimate",
|
464
471
|
:header_params => header_params,
|
465
472
|
:query_params => query_params,
|
466
473
|
:form_params => form_params,
|
@@ -511,15 +518,16 @@ module Patch
|
|
511
518
|
form_params = opts[:form_params] || {}
|
512
519
|
|
513
520
|
# http body (model)
|
514
|
-
post_body = opts[:
|
521
|
+
post_body = opts[:debug_body]
|
515
522
|
|
516
523
|
# return_type
|
517
|
-
return_type = opts[:
|
524
|
+
return_type = opts[:debug_return_type] || 'EstimateListResponse'
|
518
525
|
|
519
526
|
# auth_names
|
520
|
-
auth_names = opts[:
|
527
|
+
auth_names = opts[:debug_auth_names] || ['bearer_auth']
|
521
528
|
|
522
529
|
new_options = opts.merge(
|
530
|
+
:operation => :"EstimatesApi.retrieve_estimates",
|
523
531
|
:header_params => header_params,
|
524
532
|
:query_params => query_params,
|
525
533
|
:form_params => form_params,
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v1
|
7
7
|
Contact: developers@usepatch.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 5.2.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -65,15 +65,16 @@ module Patch
|
|
65
65
|
form_params = opts[:form_params] || {}
|
66
66
|
|
67
67
|
# http body (model)
|
68
|
-
post_body = opts[:
|
68
|
+
post_body = opts[:debug_body]
|
69
69
|
|
70
70
|
# return_type
|
71
|
-
return_type = opts[:
|
71
|
+
return_type = opts[:debug_return_type] || 'OrderResponse'
|
72
72
|
|
73
73
|
# auth_names
|
74
|
-
auth_names = opts[:
|
74
|
+
auth_names = opts[:debug_auth_names] || ['bearer_auth']
|
75
75
|
|
76
76
|
new_options = opts.merge(
|
77
|
+
:operation => :"OrdersApi.cancel_order",
|
77
78
|
:header_params => header_params,
|
78
79
|
:query_params => query_params,
|
79
80
|
:form_params => form_params,
|
@@ -129,15 +130,16 @@ module Patch
|
|
129
130
|
form_params = opts[:form_params] || {}
|
130
131
|
|
131
132
|
# http body (model)
|
132
|
-
post_body = opts[:
|
133
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_order_request)
|
133
134
|
|
134
135
|
# return_type
|
135
|
-
return_type = opts[:
|
136
|
+
return_type = opts[:debug_return_type] || 'OrderResponse'
|
136
137
|
|
137
138
|
# auth_names
|
138
|
-
auth_names = opts[:
|
139
|
+
auth_names = opts[:debug_auth_names] || ['bearer_auth']
|
139
140
|
|
140
141
|
new_options = opts.merge(
|
142
|
+
:operation => :"OrdersApi.create_order",
|
141
143
|
:header_params => header_params,
|
142
144
|
:query_params => query_params,
|
143
145
|
:form_params => form_params,
|
@@ -191,15 +193,16 @@ module Patch
|
|
191
193
|
form_params = opts[:form_params] || {}
|
192
194
|
|
193
195
|
# http body (model)
|
194
|
-
post_body = opts[:
|
196
|
+
post_body = opts[:debug_body]
|
195
197
|
|
196
198
|
# return_type
|
197
|
-
return_type = opts[:
|
199
|
+
return_type = opts[:debug_return_type] || 'OrderResponse'
|
198
200
|
|
199
201
|
# auth_names
|
200
|
-
auth_names = opts[:
|
202
|
+
auth_names = opts[:debug_auth_names] || ['bearer_auth']
|
201
203
|
|
202
204
|
new_options = opts.merge(
|
205
|
+
:operation => :"OrdersApi.place_order",
|
203
206
|
:header_params => header_params,
|
204
207
|
:query_params => query_params,
|
205
208
|
:form_params => form_params,
|
@@ -253,15 +256,16 @@ module Patch
|
|
253
256
|
form_params = opts[:form_params] || {}
|
254
257
|
|
255
258
|
# http body (model)
|
256
|
-
post_body = opts[:
|
259
|
+
post_body = opts[:debug_body]
|
257
260
|
|
258
261
|
# return_type
|
259
|
-
return_type = opts[:
|
262
|
+
return_type = opts[:debug_return_type] || 'OrderResponse'
|
260
263
|
|
261
264
|
# auth_names
|
262
|
-
auth_names = opts[:
|
265
|
+
auth_names = opts[:debug_auth_names] || ['bearer_auth']
|
263
266
|
|
264
267
|
new_options = opts.merge(
|
268
|
+
:operation => :"OrdersApi.retrieve_order",
|
265
269
|
:header_params => header_params,
|
266
270
|
:query_params => query_params,
|
267
271
|
:form_params => form_params,
|
@@ -321,15 +325,16 @@ module Patch
|
|
321
325
|
form_params = opts[:form_params] || {}
|
322
326
|
|
323
327
|
# http body (model)
|
324
|
-
post_body = opts[:
|
328
|
+
post_body = opts[:debug_body]
|
325
329
|
|
326
330
|
# return_type
|
327
|
-
return_type = opts[:
|
331
|
+
return_type = opts[:debug_return_type] || 'OrderListResponse'
|
328
332
|
|
329
333
|
# auth_names
|
330
|
-
auth_names = opts[:
|
334
|
+
auth_names = opts[:debug_auth_names] || ['bearer_auth']
|
331
335
|
|
332
336
|
new_options = opts.merge(
|
337
|
+
:operation => :"OrdersApi.retrieve_orders",
|
333
338
|
:header_params => header_params,
|
334
339
|
:query_params => query_params,
|
335
340
|
:form_params => form_params,
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v1
|
7
7
|
Contact: developers@usepatch.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 5.2.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -66,15 +66,16 @@ module Patch
|
|
66
66
|
form_params = opts[:form_params] || {}
|
67
67
|
|
68
68
|
# http body (model)
|
69
|
-
post_body = opts[:
|
69
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_preference_request)
|
70
70
|
|
71
71
|
# return_type
|
72
|
-
return_type = opts[:
|
72
|
+
return_type = opts[:debug_return_type] || 'PreferenceResponse'
|
73
73
|
|
74
74
|
# auth_names
|
75
|
-
auth_names = opts[:
|
75
|
+
auth_names = opts[:debug_auth_names] || ['bearer_auth']
|
76
76
|
|
77
77
|
new_options = opts.merge(
|
78
|
+
:operation => :"PreferencesApi.create_preference",
|
78
79
|
:header_params => header_params,
|
79
80
|
:query_params => query_params,
|
80
81
|
:form_params => form_params,
|
@@ -128,15 +129,16 @@ module Patch
|
|
128
129
|
form_params = opts[:form_params] || {}
|
129
130
|
|
130
131
|
# http body (model)
|
131
|
-
post_body = opts[:
|
132
|
+
post_body = opts[:debug_body]
|
132
133
|
|
133
134
|
# return_type
|
134
|
-
return_type = opts[:
|
135
|
+
return_type = opts[:debug_return_type] || 'PreferenceResponse'
|
135
136
|
|
136
137
|
# auth_names
|
137
|
-
auth_names = opts[:
|
138
|
+
auth_names = opts[:debug_auth_names] || ['bearer_auth']
|
138
139
|
|
139
140
|
new_options = opts.merge(
|
141
|
+
:operation => :"PreferencesApi.delete_preference",
|
140
142
|
:header_params => header_params,
|
141
143
|
:query_params => query_params,
|
142
144
|
:form_params => form_params,
|
@@ -190,15 +192,16 @@ module Patch
|
|
190
192
|
form_params = opts[:form_params] || {}
|
191
193
|
|
192
194
|
# http body (model)
|
193
|
-
post_body = opts[:
|
195
|
+
post_body = opts[:debug_body]
|
194
196
|
|
195
197
|
# return_type
|
196
|
-
return_type = opts[:
|
198
|
+
return_type = opts[:debug_return_type] || 'PreferenceResponse'
|
197
199
|
|
198
200
|
# auth_names
|
199
|
-
auth_names = opts[:
|
201
|
+
auth_names = opts[:debug_auth_names] || ['bearer_auth']
|
200
202
|
|
201
203
|
new_options = opts.merge(
|
204
|
+
:operation => :"PreferencesApi.retrieve_preference",
|
202
205
|
:header_params => header_params,
|
203
206
|
:query_params => query_params,
|
204
207
|
:form_params => form_params,
|
@@ -249,15 +252,16 @@ module Patch
|
|
249
252
|
form_params = opts[:form_params] || {}
|
250
253
|
|
251
254
|
# http body (model)
|
252
|
-
post_body = opts[:
|
255
|
+
post_body = opts[:debug_body]
|
253
256
|
|
254
257
|
# return_type
|
255
|
-
return_type = opts[:
|
258
|
+
return_type = opts[:debug_return_type] || 'PreferenceListResponse'
|
256
259
|
|
257
260
|
# auth_names
|
258
|
-
auth_names = opts[:
|
261
|
+
auth_names = opts[:debug_auth_names] || ['bearer_auth']
|
259
262
|
|
260
263
|
new_options = opts.merge(
|
264
|
+
:operation => :"PreferencesApi.retrieve_preferences",
|
261
265
|
:header_params => header_params,
|
262
266
|
:query_params => query_params,
|
263
267
|
:form_params => form_params,
|