Skip to content

Commit

Permalink
Remove the preferences endpoints (#53)
Browse files Browse the repository at this point in the history
* Remove preferences

* Cleanup

* Simplify test
  • Loading branch information
pcothenet authored Dec 8, 2021
1 parent 13bc77a commit a4cfb97
Show file tree
Hide file tree
Showing 57 changed files with 71 additions and 1,467 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.16.0] - 2021-12-07

### Removed

- Removes the `preferences` endpoints (deprecated)

## [1.15.2] - 2021-11-08

### Added
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
patch_ruby (1.15.2)
patch_ruby (1.16.0)
typhoeus (~> 1.0, >= 1.0.1)

GEM
Expand Down
7 changes: 1 addition & 6 deletions lib/patch_ruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#The core API used to integrate with Patch's service
The version of the OpenAPI document: v1
Contact: developers@usepatch.com
Contact: engineering@usepatch.com
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 5.2.1
Expand All @@ -23,7 +23,6 @@
require 'patch_ruby/models/create_flight_estimate_request'
require 'patch_ruby/models/create_mass_estimate_request'
require 'patch_ruby/models/create_order_request'
require 'patch_ruby/models/create_preference_request'
require 'patch_ruby/models/create_shipping_estimate_request'
require 'patch_ruby/models/create_success_response'
require 'patch_ruby/models/create_vehicle_estimate_request'
Expand All @@ -38,9 +37,6 @@
require 'patch_ruby/models/order_response'
require 'patch_ruby/models/parent_technology_type'
require 'patch_ruby/models/photo'
require 'patch_ruby/models/preference'
require 'patch_ruby/models/preference_list_response'
require 'patch_ruby/models/preference_response'
require 'patch_ruby/models/project'
require 'patch_ruby/models/project_list_response'
require 'patch_ruby/models/project_response'
Expand All @@ -52,7 +48,6 @@
# APIs
require 'patch_ruby/api/estimates_api'
require 'patch_ruby/api/orders_api'
require 'patch_ruby/api/preferences_api'
require 'patch_ruby/api/projects_api'
require 'patch_ruby/api/technology_types_api'

Expand Down
2 changes: 1 addition & 1 deletion lib/patch_ruby/api/estimates_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#The core API used to integrate with Patch's service
The version of the OpenAPI document: v1
Contact: developers@usepatch.com
Contact: engineering@usepatch.com
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 5.2.1
Expand Down
2 changes: 1 addition & 1 deletion lib/patch_ruby/api/orders_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#The core API used to integrate with Patch's service
The version of the OpenAPI document: v1
Contact: developers@usepatch.com
Contact: engineering@usepatch.com
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 5.2.1
Expand Down
2 changes: 1 addition & 1 deletion lib/patch_ruby/api/projects_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#The core API used to integrate with Patch's service
The version of the OpenAPI document: v1
Contact: developers@usepatch.com
Contact: engineering@usepatch.com
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 5.2.1
Expand Down
2 changes: 1 addition & 1 deletion lib/patch_ruby/api/technology_types_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#The core API used to integrate with Patch's service
The version of the OpenAPI document: v1
Contact: developers@usepatch.com
Contact: engineering@usepatch.com
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 5.2.1
Expand Down
4 changes: 2 additions & 2 deletions lib/patch_ruby/api_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#The core API used to integrate with Patch's service
The version of the OpenAPI document: v1
Contact: developers@usepatch.com
Contact: engineering@usepatch.com
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 5.2.1
Expand All @@ -31,7 +31,7 @@ class ApiClient
# @option config [Configuration] Configuration for initializing the object, default to Configuration.default
def initialize(config = Configuration.default)
@config = config
@user_agent = "patch-ruby/1.15.2"
@user_agent = "patch-ruby/1.16.0"
@default_headers = {
'Content-Type' => 'application/json',
'User-Agent' => @user_agent
Expand Down
2 changes: 1 addition & 1 deletion lib/patch_ruby/api_error.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#The core API used to integrate with Patch's service
The version of the OpenAPI document: v1
Contact: developers@usepatch.com
Contact: engineering@usepatch.com
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 5.2.1
Expand Down
8 changes: 4 additions & 4 deletions lib/patch_ruby/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#The core API used to integrate with Patch's service
The version of the OpenAPI document: v1
Contact: developers@usepatch.com
Contact: engineering@usepatch.com
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 5.2.1
Expand Down Expand Up @@ -229,12 +229,12 @@ def auth_settings
def server_settings
[
{
url: "https://{defaultHost}",
url: "{defaultUrl}",
description: "No description provided",
variables: {
defaultHost: {
defaultUrl: {
description: "No description provided",
default_value: "api.patch.io",
default_value: "https://api.patch.io",
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion lib/patch_ruby/models/allocation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#The core API used to integrate with Patch's service
The version of the OpenAPI document: v1
Contact: developers@usepatch.com
Contact: engineering@usepatch.com
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 5.2.1
Expand Down
2 changes: 1 addition & 1 deletion lib/patch_ruby/models/create_bitcoin_estimate_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#The core API used to integrate with Patch's service
The version of the OpenAPI document: v1
Contact: developers@usepatch.com
Contact: engineering@usepatch.com
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 5.2.1
Expand Down
2 changes: 1 addition & 1 deletion lib/patch_ruby/models/create_ethereum_estimate_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#The core API used to integrate with Patch's service
The version of the OpenAPI document: v1
Contact: developers@usepatch.com
Contact: engineering@usepatch.com
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 5.2.1
Expand Down
2 changes: 1 addition & 1 deletion lib/patch_ruby/models/create_flight_estimate_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#The core API used to integrate with Patch's service
The version of the OpenAPI document: v1
Contact: developers@usepatch.com
Contact: engineering@usepatch.com
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 5.2.1
Expand Down
12 changes: 6 additions & 6 deletions lib/patch_ruby/models/create_mass_estimate_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#The core API used to integrate with Patch's service
The version of the OpenAPI document: v1
Contact: developers@usepatch.com
Contact: engineering@usepatch.com
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 5.2.1
Expand Down Expand Up @@ -101,8 +101,8 @@ def list_invalid_properties
invalid_properties.push('invalid value for "mass_g", mass_g cannot be nil.')
end

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

if @mass_g < 0
Expand All @@ -116,7 +116,7 @@ def list_invalid_properties
# @return true if the model is valid
def valid?
return false if @mass_g.nil?
return false if @mass_g > 2000000000
return false if @mass_g > 100000000000
return false if @mass_g < 0
true
end
Expand All @@ -128,8 +128,8 @@ def mass_g=(mass_g)
fail ArgumentError, 'mass_g cannot be nil'
end

if mass_g > 2000000000
fail ArgumentError, 'invalid value for "mass_g", must be smaller than or equal to 2000000000.'
if mass_g > 100000000000
fail ArgumentError, 'invalid value for "mass_g", must be smaller than or equal to 100000000000.'
end

if mass_g < 0
Expand Down
12 changes: 6 additions & 6 deletions lib/patch_ruby/models/create_order_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#The core API used to integrate with Patch's service
The version of the OpenAPI document: v1
Contact: developers@usepatch.com
Contact: engineering@usepatch.com
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 5.2.1
Expand Down Expand Up @@ -102,8 +102,8 @@ def initialize(attributes = {})
# @return Array for valid properties with the reasons
def list_invalid_properties
invalid_properties = Array.new
if !@mass_g.nil? && @mass_g > 2000000000
invalid_properties.push('invalid value for "mass_g", must be smaller than or equal to 2000000000.')
if !@mass_g.nil? && @mass_g > 100000000000
invalid_properties.push('invalid value for "mass_g", must be smaller than or equal to 100000000000.')
end

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

if !mass_g.nil? && mass_g < 0
Expand Down
Loading

0 comments on commit a4cfb97

Please sign in to comment.