Skip to content

Commit a4cfb97

Browse files
authored
Remove the preferences endpoints (#53)
* Remove preferences * Cleanup * Simplify test
1 parent 13bc77a commit a4cfb97

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+71
-1467
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.16.0] - 2021-12-07
9+
10+
### Removed
11+
12+
- Removes the `preferences` endpoints (deprecated)
13+
814
## [1.15.2] - 2021-11-08
915

1016
### Added

Gemfile.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
patch_ruby (1.15.2)
4+
patch_ruby (1.16.0)
55
typhoeus (~> 1.0, >= 1.0.1)
66

77
GEM

lib/patch_ruby.rb

+1-6
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#The core API used to integrate with Patch's service
55
66
The version of the OpenAPI document: v1
7-
Contact: developers@usepatch.com
7+
Contact: engineering@usepatch.com
88
Generated by: https://openapi-generator.tech
99
OpenAPI Generator version: 5.2.1
1010
@@ -23,7 +23,6 @@
2323
require 'patch_ruby/models/create_flight_estimate_request'
2424
require 'patch_ruby/models/create_mass_estimate_request'
2525
require 'patch_ruby/models/create_order_request'
26-
require 'patch_ruby/models/create_preference_request'
2726
require 'patch_ruby/models/create_shipping_estimate_request'
2827
require 'patch_ruby/models/create_success_response'
2928
require 'patch_ruby/models/create_vehicle_estimate_request'
@@ -38,9 +37,6 @@
3837
require 'patch_ruby/models/order_response'
3938
require 'patch_ruby/models/parent_technology_type'
4039
require 'patch_ruby/models/photo'
41-
require 'patch_ruby/models/preference'
42-
require 'patch_ruby/models/preference_list_response'
43-
require 'patch_ruby/models/preference_response'
4440
require 'patch_ruby/models/project'
4541
require 'patch_ruby/models/project_list_response'
4642
require 'patch_ruby/models/project_response'
@@ -52,7 +48,6 @@
5248
# APIs
5349
require 'patch_ruby/api/estimates_api'
5450
require 'patch_ruby/api/orders_api'
55-
require 'patch_ruby/api/preferences_api'
5651
require 'patch_ruby/api/projects_api'
5752
require 'patch_ruby/api/technology_types_api'
5853

lib/patch_ruby/api/estimates_api.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#The core API used to integrate with Patch's service
55
66
The version of the OpenAPI document: v1
7-
Contact: developers@usepatch.com
7+
Contact: engineering@usepatch.com
88
Generated by: https://openapi-generator.tech
99
OpenAPI Generator version: 5.2.1
1010

lib/patch_ruby/api/orders_api.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#The core API used to integrate with Patch's service
55
66
The version of the OpenAPI document: v1
7-
Contact: developers@usepatch.com
7+
Contact: engineering@usepatch.com
88
Generated by: https://openapi-generator.tech
99
OpenAPI Generator version: 5.2.1
1010

lib/patch_ruby/api/projects_api.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#The core API used to integrate with Patch's service
55
66
The version of the OpenAPI document: v1
7-
Contact: developers@usepatch.com
7+
Contact: engineering@usepatch.com
88
Generated by: https://openapi-generator.tech
99
OpenAPI Generator version: 5.2.1
1010

lib/patch_ruby/api/technology_types_api.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#The core API used to integrate with Patch's service
55
66
The version of the OpenAPI document: v1
7-
Contact: developers@usepatch.com
7+
Contact: engineering@usepatch.com
88
Generated by: https://openapi-generator.tech
99
OpenAPI Generator version: 5.2.1
1010

lib/patch_ruby/api_client.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#The core API used to integrate with Patch's service
55
66
The version of the OpenAPI document: v1
7-
Contact: developers@usepatch.com
7+
Contact: engineering@usepatch.com
88
Generated by: https://openapi-generator.tech
99
OpenAPI Generator version: 5.2.1
1010
@@ -31,7 +31,7 @@ class ApiClient
3131
# @option config [Configuration] Configuration for initializing the object, default to Configuration.default
3232
def initialize(config = Configuration.default)
3333
@config = config
34-
@user_agent = "patch-ruby/1.15.2"
34+
@user_agent = "patch-ruby/1.16.0"
3535
@default_headers = {
3636
'Content-Type' => 'application/json',
3737
'User-Agent' => @user_agent

lib/patch_ruby/api_error.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#The core API used to integrate with Patch's service
55
66
The version of the OpenAPI document: v1
7-
Contact: developers@usepatch.com
7+
Contact: engineering@usepatch.com
88
Generated by: https://openapi-generator.tech
99
OpenAPI Generator version: 5.2.1
1010

lib/patch_ruby/configuration.rb

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#The core API used to integrate with Patch's service
55
66
The version of the OpenAPI document: v1
7-
Contact: developers@usepatch.com
7+
Contact: engineering@usepatch.com
88
Generated by: https://openapi-generator.tech
99
OpenAPI Generator version: 5.2.1
1010
@@ -229,12 +229,12 @@ def auth_settings
229229
def server_settings
230230
[
231231
{
232-
url: "https://{defaultHost}",
232+
url: "{defaultUrl}",
233233
description: "No description provided",
234234
variables: {
235-
defaultHost: {
235+
defaultUrl: {
236236
description: "No description provided",
237-
default_value: "api.patch.io",
237+
default_value: "https://api.patch.io",
238238
}
239239
}
240240
}

lib/patch_ruby/models/allocation.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#The core API used to integrate with Patch's service
55
66
The version of the OpenAPI document: v1
7-
Contact: developers@usepatch.com
7+
Contact: engineering@usepatch.com
88
Generated by: https://openapi-generator.tech
99
OpenAPI Generator version: 5.2.1
1010

lib/patch_ruby/models/create_bitcoin_estimate_request.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#The core API used to integrate with Patch's service
55
66
The version of the OpenAPI document: v1
7-
Contact: developers@usepatch.com
7+
Contact: engineering@usepatch.com
88
Generated by: https://openapi-generator.tech
99
OpenAPI Generator version: 5.2.1
1010

lib/patch_ruby/models/create_ethereum_estimate_request.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#The core API used to integrate with Patch's service
55
66
The version of the OpenAPI document: v1
7-
Contact: developers@usepatch.com
7+
Contact: engineering@usepatch.com
88
Generated by: https://openapi-generator.tech
99
OpenAPI Generator version: 5.2.1
1010

lib/patch_ruby/models/create_flight_estimate_request.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#The core API used to integrate with Patch's service
55
66
The version of the OpenAPI document: v1
7-
Contact: developers@usepatch.com
7+
Contact: engineering@usepatch.com
88
Generated by: https://openapi-generator.tech
99
OpenAPI Generator version: 5.2.1
1010

lib/patch_ruby/models/create_mass_estimate_request.rb

+6-6
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#The core API used to integrate with Patch's service
55
66
The version of the OpenAPI document: v1
7-
Contact: developers@usepatch.com
7+
Contact: engineering@usepatch.com
88
Generated by: https://openapi-generator.tech
99
OpenAPI Generator version: 5.2.1
1010
@@ -101,8 +101,8 @@ def list_invalid_properties
101101
invalid_properties.push('invalid value for "mass_g", mass_g cannot be nil.')
102102
end
103103

104-
if @mass_g > 2000000000
105-
invalid_properties.push('invalid value for "mass_g", must be smaller than or equal to 2000000000.')
104+
if @mass_g > 100000000000
105+
invalid_properties.push('invalid value for "mass_g", must be smaller than or equal to 100000000000.')
106106
end
107107

108108
if @mass_g < 0
@@ -116,7 +116,7 @@ def list_invalid_properties
116116
# @return true if the model is valid
117117
def valid?
118118
return false if @mass_g.nil?
119-
return false if @mass_g > 2000000000
119+
return false if @mass_g > 100000000000
120120
return false if @mass_g < 0
121121
true
122122
end
@@ -128,8 +128,8 @@ def mass_g=(mass_g)
128128
fail ArgumentError, 'mass_g cannot be nil'
129129
end
130130

131-
if mass_g > 2000000000
132-
fail ArgumentError, 'invalid value for "mass_g", must be smaller than or equal to 2000000000.'
131+
if mass_g > 100000000000
132+
fail ArgumentError, 'invalid value for "mass_g", must be smaller than or equal to 100000000000.'
133133
end
134134

135135
if mass_g < 0

lib/patch_ruby/models/create_order_request.rb

+6-6
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#The core API used to integrate with Patch's service
55
66
The version of the OpenAPI document: v1
7-
Contact: developers@usepatch.com
7+
Contact: engineering@usepatch.com
88
Generated by: https://openapi-generator.tech
99
OpenAPI Generator version: 5.2.1
1010
@@ -102,8 +102,8 @@ def initialize(attributes = {})
102102
# @return Array for valid properties with the reasons
103103
def list_invalid_properties
104104
invalid_properties = Array.new
105-
if !@mass_g.nil? && @mass_g > 2000000000
106-
invalid_properties.push('invalid value for "mass_g", must be smaller than or equal to 2000000000.')
105+
if !@mass_g.nil? && @mass_g > 100000000000
106+
invalid_properties.push('invalid value for "mass_g", must be smaller than or equal to 100000000000.')
107107
end
108108

109109
if !@mass_g.nil? && @mass_g < 0
@@ -120,7 +120,7 @@ def list_invalid_properties
120120
# Check to see if the all the properties in the model are valid
121121
# @return true if the model is valid
122122
def valid?
123-
return false if !@mass_g.nil? && @mass_g > 2000000000
123+
return false if !@mass_g.nil? && @mass_g > 100000000000
124124
return false if !@mass_g.nil? && @mass_g < 0
125125
return false if !@total_price_cents_usd.nil? && @total_price_cents_usd < 1
126126
true
@@ -129,8 +129,8 @@ def valid?
129129
# Custom attribute writer method with validation
130130
# @param [Object] mass_g Value to be assigned
131131
def mass_g=(mass_g)
132-
if !mass_g.nil? && mass_g > 2000000000
133-
fail ArgumentError, 'invalid value for "mass_g", must be smaller than or equal to 2000000000.'
132+
if !mass_g.nil? && mass_g > 100000000000
133+
fail ArgumentError, 'invalid value for "mass_g", must be smaller than or equal to 100000000000.'
134134
end
135135

136136
if !mass_g.nil? && mass_g < 0

0 commit comments

Comments
 (0)