patch_ruby 1.11.0 → 1.11.1
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/Gemfile.lock +1 -1
- data/lib/patch_ruby/api/estimates_api.rb +20 -12
- data/lib/patch_ruby/api/orders_api.rb +7 -2
- data/lib/patch_ruby/api/preferences_api.rb +6 -2
- data/lib/patch_ruby/api/projects_api.rb +2 -0
- data/lib/patch_ruby/api_client.rb +1 -1
- data/lib/patch_ruby/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a017e768d44e30fef04820e7d9254fabdcd1fc4559ad72956b386a9b428ee773
|
4
|
+
data.tar.gz: d1ba0ce0ae0b6ee71a95665fe734cb00235595151bd79dd612f57822e1b2859d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 217658d0c7ebe7752555e74879fa0afe3093e0df0499d22f8787b280a1580c130ebbb7eed8c9164e513c3512784618bd0f7086d5277964887b37511e46f32493
|
7
|
+
data.tar.gz: 9d3bc7146dd951e13b3cf32019ce5f5713fc5cc01470ea814714db2d61b3b34da8cc318bc321f93ae407785d0a75a2ed4840c9263a19601bc91643bcd1f20f5b
|
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.11.1] - 2021-09-07
|
9
|
+
|
10
|
+
### Changed
|
11
|
+
|
12
|
+
- Body parameters are validated before being sent to the API. This gives developers faster feedback as they develop their applications.
|
13
|
+
|
8
14
|
## [1.11.0] - 2021-09-07
|
9
15
|
|
10
16
|
### Added
|
data/Gemfile.lock
CHANGED
@@ -35,8 +35,9 @@ module Patch
|
|
35
35
|
# @param create_bitcoin_estimate_request [CreateBitcoinEstimateRequest]
|
36
36
|
# @param [Hash] opts the optional parameters
|
37
37
|
# @return [EstimateResponse]
|
38
|
-
def create_bitcoin_estimate(create_bitcoin_estimate_request, opts = {})
|
39
|
-
|
38
|
+
def create_bitcoin_estimate(create_bitcoin_estimate_request = {}, opts = {})
|
39
|
+
_create_bitcoin_estimate_request = Patch::CreateBitcoinEstimateRequest.new(create_bitcoin_estimate_request)
|
40
|
+
data, _status_code, _headers = create_bitcoin_estimate_with_http_info(_create_bitcoin_estimate_request, opts)
|
40
41
|
data
|
41
42
|
end
|
42
43
|
|
@@ -100,8 +101,9 @@ module Patch
|
|
100
101
|
# @param create_ethereum_estimate_request [CreateEthereumEstimateRequest]
|
101
102
|
# @param [Hash] opts the optional parameters
|
102
103
|
# @return [EstimateResponse]
|
103
|
-
def create_ethereum_estimate(create_ethereum_estimate_request, opts = {})
|
104
|
-
|
104
|
+
def create_ethereum_estimate(create_ethereum_estimate_request = {}, opts = {})
|
105
|
+
_create_ethereum_estimate_request = Patch::CreateEthereumEstimateRequest.new(create_ethereum_estimate_request)
|
106
|
+
data, _status_code, _headers = create_ethereum_estimate_with_http_info(_create_ethereum_estimate_request, opts)
|
105
107
|
data
|
106
108
|
end
|
107
109
|
|
@@ -165,8 +167,9 @@ module Patch
|
|
165
167
|
# @param create_flight_estimate_request [CreateFlightEstimateRequest]
|
166
168
|
# @param [Hash] opts the optional parameters
|
167
169
|
# @return [EstimateResponse]
|
168
|
-
def create_flight_estimate(create_flight_estimate_request, opts = {})
|
169
|
-
|
170
|
+
def create_flight_estimate(create_flight_estimate_request = {}, opts = {})
|
171
|
+
_create_flight_estimate_request = Patch::CreateFlightEstimateRequest.new(create_flight_estimate_request)
|
172
|
+
data, _status_code, _headers = create_flight_estimate_with_http_info(_create_flight_estimate_request, opts)
|
170
173
|
data
|
171
174
|
end
|
172
175
|
|
@@ -230,8 +233,9 @@ module Patch
|
|
230
233
|
# @param create_mass_estimate_request [CreateMassEstimateRequest]
|
231
234
|
# @param [Hash] opts the optional parameters
|
232
235
|
# @return [EstimateResponse]
|
233
|
-
def create_mass_estimate(create_mass_estimate_request, opts = {})
|
234
|
-
|
236
|
+
def create_mass_estimate(create_mass_estimate_request = {}, opts = {})
|
237
|
+
_create_mass_estimate_request = Patch::CreateMassEstimateRequest.new(create_mass_estimate_request)
|
238
|
+
data, _status_code, _headers = create_mass_estimate_with_http_info(_create_mass_estimate_request, opts)
|
235
239
|
data
|
236
240
|
end
|
237
241
|
|
@@ -295,8 +299,9 @@ module Patch
|
|
295
299
|
# @param create_shipping_estimate_request [CreateShippingEstimateRequest]
|
296
300
|
# @param [Hash] opts the optional parameters
|
297
301
|
# @return [EstimateResponse]
|
298
|
-
def create_shipping_estimate(create_shipping_estimate_request, opts = {})
|
299
|
-
|
302
|
+
def create_shipping_estimate(create_shipping_estimate_request = {}, opts = {})
|
303
|
+
_create_shipping_estimate_request = Patch::CreateShippingEstimateRequest.new(create_shipping_estimate_request)
|
304
|
+
data, _status_code, _headers = create_shipping_estimate_with_http_info(_create_shipping_estimate_request, opts)
|
300
305
|
data
|
301
306
|
end
|
302
307
|
|
@@ -360,8 +365,9 @@ module Patch
|
|
360
365
|
# @param create_vehicle_estimate_request [CreateVehicleEstimateRequest]
|
361
366
|
# @param [Hash] opts the optional parameters
|
362
367
|
# @return [EstimateResponse]
|
363
|
-
def create_vehicle_estimate(create_vehicle_estimate_request, opts = {})
|
364
|
-
|
368
|
+
def create_vehicle_estimate(create_vehicle_estimate_request = {}, opts = {})
|
369
|
+
_create_vehicle_estimate_request = Patch::CreateVehicleEstimateRequest.new(create_vehicle_estimate_request)
|
370
|
+
data, _status_code, _headers = create_vehicle_estimate_with_http_info(_create_vehicle_estimate_request, opts)
|
365
371
|
data
|
366
372
|
end
|
367
373
|
|
@@ -426,6 +432,7 @@ module Patch
|
|
426
432
|
# @param [Hash] opts the optional parameters
|
427
433
|
# @return [EstimateResponse]
|
428
434
|
def retrieve_estimate(id, opts = {})
|
435
|
+
|
429
436
|
data, _status_code, _headers = retrieve_estimate_with_http_info(id, opts)
|
430
437
|
data
|
431
438
|
end
|
@@ -489,6 +496,7 @@ module Patch
|
|
489
496
|
# @option opts [Integer] :page
|
490
497
|
# @return [EstimateListResponse]
|
491
498
|
def retrieve_estimates(opts = {})
|
499
|
+
|
492
500
|
data, _status_code, _headers = retrieve_estimates_with_http_info(opts)
|
493
501
|
data
|
494
502
|
end
|
@@ -33,6 +33,7 @@ module Patch
|
|
33
33
|
# @param [Hash] opts the optional parameters
|
34
34
|
# @return [OrderResponse]
|
35
35
|
def cancel_order(id, opts = {})
|
36
|
+
|
36
37
|
data, _status_code, _headers = cancel_order_with_http_info(id, opts)
|
37
38
|
data
|
38
39
|
end
|
@@ -95,8 +96,9 @@ module Patch
|
|
95
96
|
# @param create_order_request [CreateOrderRequest]
|
96
97
|
# @param [Hash] opts the optional parameters
|
97
98
|
# @return [OrderResponse]
|
98
|
-
def create_order(create_order_request, opts = {})
|
99
|
-
|
99
|
+
def create_order(create_order_request = {}, opts = {})
|
100
|
+
_create_order_request = Patch::CreateOrderRequest.new(create_order_request)
|
101
|
+
data, _status_code, _headers = create_order_with_http_info(_create_order_request, opts)
|
100
102
|
data
|
101
103
|
end
|
102
104
|
|
@@ -161,6 +163,7 @@ module Patch
|
|
161
163
|
# @param [Hash] opts the optional parameters
|
162
164
|
# @return [OrderResponse]
|
163
165
|
def place_order(id, opts = {})
|
166
|
+
|
164
167
|
data, _status_code, _headers = place_order_with_http_info(id, opts)
|
165
168
|
data
|
166
169
|
end
|
@@ -224,6 +227,7 @@ module Patch
|
|
224
227
|
# @param [Hash] opts the optional parameters
|
225
228
|
# @return [OrderResponse]
|
226
229
|
def retrieve_order(id, opts = {})
|
230
|
+
|
227
231
|
data, _status_code, _headers = retrieve_order_with_http_info(id, opts)
|
228
232
|
data
|
229
233
|
end
|
@@ -290,6 +294,7 @@ module Patch
|
|
290
294
|
# @option opts [String] :metadata_example2
|
291
295
|
# @return [OrderListResponse]
|
292
296
|
def retrieve_orders(opts = {})
|
297
|
+
|
293
298
|
data, _status_code, _headers = retrieve_orders_with_http_info(opts)
|
294
299
|
data
|
295
300
|
end
|
@@ -31,8 +31,9 @@ module Patch
|
|
31
31
|
# @param create_preference_request [CreatePreferenceRequest]
|
32
32
|
# @param [Hash] opts the optional parameters
|
33
33
|
# @return [PreferenceResponse]
|
34
|
-
def create_preference(create_preference_request, opts = {})
|
35
|
-
|
34
|
+
def create_preference(create_preference_request = {}, opts = {})
|
35
|
+
_create_preference_request = Patch::CreatePreferenceRequest.new(create_preference_request)
|
36
|
+
data, _status_code, _headers = create_preference_with_http_info(_create_preference_request, opts)
|
36
37
|
data
|
37
38
|
end
|
38
39
|
|
@@ -97,6 +98,7 @@ module Patch
|
|
97
98
|
# @param [Hash] opts the optional parameters
|
98
99
|
# @return [PreferenceResponse]
|
99
100
|
def delete_preference(id, opts = {})
|
101
|
+
|
100
102
|
data, _status_code, _headers = delete_preference_with_http_info(id, opts)
|
101
103
|
data
|
102
104
|
end
|
@@ -160,6 +162,7 @@ module Patch
|
|
160
162
|
# @param [Hash] opts the optional parameters
|
161
163
|
# @return [PreferenceResponse]
|
162
164
|
def retrieve_preference(id, opts = {})
|
165
|
+
|
163
166
|
data, _status_code, _headers = retrieve_preference_with_http_info(id, opts)
|
164
167
|
data
|
165
168
|
end
|
@@ -223,6 +226,7 @@ module Patch
|
|
223
226
|
# @option opts [Integer] :page
|
224
227
|
# @return [PreferenceListResponse]
|
225
228
|
def retrieve_preferences(opts = {})
|
229
|
+
|
226
230
|
data, _status_code, _headers = retrieve_preferences_with_http_info(opts)
|
227
231
|
data
|
228
232
|
end
|
@@ -30,6 +30,7 @@ module Patch
|
|
30
30
|
# @param [Hash] opts the optional parameters
|
31
31
|
# @return [ProjectResponse]
|
32
32
|
def retrieve_project(id, opts = {})
|
33
|
+
|
33
34
|
data, _status_code, _headers = retrieve_project_with_http_info(id, opts)
|
34
35
|
data
|
35
36
|
end
|
@@ -96,6 +97,7 @@ module Patch
|
|
96
97
|
# @option opts [Integer] :minimum_available_mass
|
97
98
|
# @return [ProjectListResponse]
|
98
99
|
def retrieve_projects(opts = {})
|
100
|
+
|
99
101
|
data, _status_code, _headers = retrieve_projects_with_http_info(opts)
|
100
102
|
data
|
101
103
|
end
|
@@ -31,7 +31,7 @@ module Patch
|
|
31
31
|
# @option config [Configuration] Configuration for initializing the object, default to Configuration.default
|
32
32
|
def initialize(config = Configuration.default)
|
33
33
|
@config = config
|
34
|
-
@user_agent = "patch-ruby/1.11.
|
34
|
+
@user_agent = "patch-ruby/1.11.1"
|
35
35
|
@default_headers = {
|
36
36
|
'Content-Type' => 'application/json',
|
37
37
|
'User-Agent' => @user_agent
|
data/lib/patch_ruby/version.rb
CHANGED