From c6c24292cc3ceaf74e2a221ecc2f7e619afeec71 Mon Sep 17 00:00:00 2001 From: Paul Cothenet Date: Fri, 16 May 2025 12:20:54 -0700 Subject: [PATCH 1/2] Remove hotel estimates --- CHANGELOG.md | 20 ++ Gemfile.lock | 4 +- lib/patch_ruby.rb | 1 - lib/patch_ruby/api/estimates_api.rb | 105 +----- lib/patch_ruby/api/order_line_items_api.rb | 10 +- lib/patch_ruby/api/orders_api.rb | 8 +- lib/patch_ruby/api/projects_api.rb | 2 +- lib/patch_ruby/api/technology_types_api.rb | 2 +- lib/patch_ruby/api_client.rb | 2 +- lib/patch_ruby/configuration.rb | 4 +- .../create_air_shipping_estimate_request.rb | 1 + .../models/create_bitcoin_estimate_request.rb | 1 + .../models/create_flight_estimate_request.rb | 1 + .../models/create_hotel_estimate_request.rb | 300 ------------------ .../models/create_mass_estimate_request.rb | 1 + .../models/create_order_line_item_request.rb | 1 + lib/patch_ruby/models/create_order_request.rb | 1 + .../create_rail_shipping_estimate_request.rb | 1 + .../create_road_shipping_estimate_request.rb | 1 + .../create_sea_shipping_estimate_request.rb | 1 + .../models/create_success_response.rb | 1 + .../models/delete_order_line_item_response.rb | 1 + .../models/delete_order_response.rb | 1 + lib/patch_ruby/models/disclaimer.rb | 1 + lib/patch_ruby/models/error_response.rb | 1 + lib/patch_ruby/models/estimate.rb | 1 + .../models/estimate_list_response.rb | 1 + lib/patch_ruby/models/estimate_response.rb | 1 + lib/patch_ruby/models/highlight.rb | 1 + lib/patch_ruby/models/inventory.rb | 1 + lib/patch_ruby/models/meta_index_object.rb | 1 + lib/patch_ruby/models/order.rb | 1 + lib/patch_ruby/models/order_issued_to.rb | 1 + lib/patch_ruby/models/order_line_item.rb | 1 + .../models/order_line_item_project.rb | 1 + .../models/order_line_item_response.rb | 1 + lib/patch_ruby/models/order_list_response.rb | 1 + lib/patch_ruby/models/order_response.rb | 1 + .../models/parent_technology_type.rb | 1 + lib/patch_ruby/models/photo.rb | 1 + lib/patch_ruby/models/place_order_request.rb | 1 + lib/patch_ruby/models/project.rb | 1 + .../models/project_list_response.rb | 1 + lib/patch_ruby/models/project_response.rb | 1 + lib/patch_ruby/models/sdg.rb | 1 + lib/patch_ruby/models/standard.rb | 1 + lib/patch_ruby/models/technology_type.rb | 1 + .../models/technology_type_list_response.rb | 1 + .../models/update_order_line_item_request.rb | 1 + lib/patch_ruby/version.rb | 2 +- patch_ruby.gemspec | 2 +- spec/integration/estimates_spec.rb | 15 - 52 files changed, 92 insertions(+), 423 deletions(-) delete mode 100644 lib/patch_ruby/models/create_hotel_estimate_request.rb diff --git a/CHANGELOG.md b/CHANGELOG.md index c34f97f..165ab43 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,26 @@ 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). +## [2.4.0] - 2025-05-16 + +### Removed + +- Removes `Patch::Estimate.create_hotel_estimate` method + +## [2.3.1] - 2025-04-28 + +### Removed + +- Removes `Patch::Estimate.create_ecommerce_estimate` method + +## [2.3.0] - 2025-01-10 + +### Removed + +- Removes `Patch::Estimate.create_ethereum_estimate` method +- Removes `Patch::Estimate.create_shipping_estimate` method +- Removes `Patch::Estimate.create_vehicle_estimate` method + ## [2.1.1] - 2023-04-18 ### Added diff --git a/Gemfile.lock b/Gemfile.lock index 7616ad6..2ef8ff5 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - patch_ruby (2.3.1) + patch_ruby (2.4.0) typhoeus (~> 1.0, >= 1.0.1) GEM @@ -21,7 +21,7 @@ GEM ffi (>= 1.15.0) factory_bot (6.2.0) activesupport (>= 5.0.0) - ffi (1.17.1) + ffi (1.17.2) i18n (1.12.0) concurrent-ruby (~> 1.0) jaro_winkler (1.5.6) diff --git a/lib/patch_ruby.rb b/lib/patch_ruby.rb index 499e0d7..d540975 100644 --- a/lib/patch_ruby.rb +++ b/lib/patch_ruby.rb @@ -20,7 +20,6 @@ require 'patch_ruby/models/create_air_shipping_estimate_request' require 'patch_ruby/models/create_bitcoin_estimate_request' require 'patch_ruby/models/create_flight_estimate_request' -require 'patch_ruby/models/create_hotel_estimate_request' require 'patch_ruby/models/create_mass_estimate_request' require 'patch_ruby/models/create_order_line_item_request' require 'patch_ruby/models/create_order_request' diff --git a/lib/patch_ruby/api/estimates_api.rb b/lib/patch_ruby/api/estimates_api.rb index f85f108..c71fc32 100644 --- a/lib/patch_ruby/api/estimates_api.rb +++ b/lib/patch_ruby/api/estimates_api.rb @@ -18,7 +18,6 @@ class EstimatesApi :create_air_shipping_estimate, :create_bitcoin_estimate, :create_flight_estimate, - :create_hotel_estimate, :create_mass_estimate, :create_rail_shipping_estimate, :create_road_shipping_estimate, @@ -39,7 +38,7 @@ def initialize(api_client = ApiClient.default) # @option opts [Integer] :patch_version # @return [EstimateResponse] def create_air_shipping_estimate(create_air_shipping_estimate_request = {}, opts = {}) - _create_air_shipping_estimate_request = Patch::CreateAirShippingEstimateRequest.new(create_air_shipping_estimate_request) + _create_air_shipping_estimate_request = Patch::CreateAirShippingEstimateRequest.new(create_air_shipping_estimate_request) data, _status_code, _headers = create_air_shipping_estimate_with_http_info(_create_air_shipping_estimate_request, opts) data end @@ -72,7 +71,7 @@ def create_air_shipping_estimate_with_http_info(create_air_shipping_estimate_req # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? - header_params['Content-Type'] = content_type + header_params['Content-Type'] = content_type end header_params['Patch-Version'] = 2 header_params[:'Patch-Version'] = opts[:'patch_version'] if !opts[:'patch_version'].nil? @@ -113,7 +112,7 @@ def create_air_shipping_estimate_with_http_info(create_air_shipping_estimate_req # @option opts [Integer] :patch_version # @return [EstimateResponse] def create_bitcoin_estimate(create_bitcoin_estimate_request = {}, opts = {}) - _create_bitcoin_estimate_request = Patch::CreateBitcoinEstimateRequest.new(create_bitcoin_estimate_request) + _create_bitcoin_estimate_request = Patch::CreateBitcoinEstimateRequest.new(create_bitcoin_estimate_request) data, _status_code, _headers = create_bitcoin_estimate_with_http_info(_create_bitcoin_estimate_request, opts) data end @@ -146,7 +145,7 @@ def create_bitcoin_estimate_with_http_info(create_bitcoin_estimate_request, opts # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? - header_params['Content-Type'] = content_type + header_params['Content-Type'] = content_type end header_params['Patch-Version'] = 2 header_params[:'Patch-Version'] = opts[:'patch_version'] if !opts[:'patch_version'].nil? @@ -187,7 +186,7 @@ def create_bitcoin_estimate_with_http_info(create_bitcoin_estimate_request, opts # @option opts [Integer] :patch_version # @return [EstimateResponse] def create_flight_estimate(create_flight_estimate_request = {}, opts = {}) - _create_flight_estimate_request = Patch::CreateFlightEstimateRequest.new(create_flight_estimate_request) + _create_flight_estimate_request = Patch::CreateFlightEstimateRequest.new(create_flight_estimate_request) data, _status_code, _headers = create_flight_estimate_with_http_info(_create_flight_estimate_request, opts) data end @@ -220,7 +219,7 @@ def create_flight_estimate_with_http_info(create_flight_estimate_request, opts = # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? - header_params['Content-Type'] = content_type + header_params['Content-Type'] = content_type end header_params['Patch-Version'] = 2 header_params[:'Patch-Version'] = opts[:'patch_version'] if !opts[:'patch_version'].nil? @@ -254,80 +253,6 @@ def create_flight_estimate_with_http_info(create_flight_estimate_request, opts = return data, status_code, headers end - # Create a hotel estimate. - # Creates a hotel estimate for the amount of CO2 to be compensated. An order in the `draft` state may be created based on the parameters. - # @param create_hotel_estimate_request [CreateHotelEstimateRequest] - # @param [Hash] opts the optional parameters - # @option opts [Integer] :patch_version - # @return [EstimateResponse] - def create_hotel_estimate(create_hotel_estimate_request = {}, opts = {}) - _create_hotel_estimate_request = Patch::CreateHotelEstimateRequest.new(create_hotel_estimate_request) - data, _status_code, _headers = create_hotel_estimate_with_http_info(_create_hotel_estimate_request, opts) - data - end - - # Create a hotel estimate. - # Creates a hotel estimate for the amount of CO2 to be compensated. An order in the `draft` state may be created based on the parameters. - # @param create_hotel_estimate_request [CreateHotelEstimateRequest] - # @param [Hash] opts the optional parameters - # @option opts [Integer] :patch_version - # @return [Array<(EstimateResponse, Integer, Hash)>] EstimateResponse data, response status code and response headers - def create_hotel_estimate_with_http_info(create_hotel_estimate_request, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: EstimatesApi.create_hotel_estimate ...' - end - # verify the required parameter 'create_hotel_estimate_request' is set - if @api_client.config.client_side_validation && create_hotel_estimate_request.nil? - fail ArgumentError, "Missing the required parameter 'create_hotel_estimate_request' when calling EstimatesApi.create_hotel_estimate" - end - # resource path - local_var_path = '/v1/estimates/hotel' - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - # HTTP header 'Content-Type' - content_type = @api_client.select_header_content_type(['application/json']) - if !content_type.nil? - header_params['Content-Type'] = content_type - end - header_params['Patch-Version'] = 2 - header_params[:'Patch-Version'] = opts[:'patch_version'] if !opts[:'patch_version'].nil? - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:debug_body] || @api_client.object_to_http_body(create_hotel_estimate_request) - - # return_type - return_type = opts[:debug_return_type] || 'EstimateResponse' - - # auth_names - auth_names = opts[:debug_auth_names] || ['bearer_auth'] - - new_options = opts.merge( - :operation => :"EstimatesApi.create_hotel_estimate", - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: EstimatesApi#create_hotel_estimate\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - # Create an estimate based on mass of CO2 # Creates an estimate for the mass of CO2 to be compensated. An order in the `draft` state will also be created, linked to the estimate. # @param create_mass_estimate_request [CreateMassEstimateRequest] @@ -335,7 +260,7 @@ def create_hotel_estimate_with_http_info(create_hotel_estimate_request, opts = { # @option opts [Integer] :patch_version # @return [EstimateResponse] def create_mass_estimate(create_mass_estimate_request = {}, opts = {}) - _create_mass_estimate_request = Patch::CreateMassEstimateRequest.new(create_mass_estimate_request) + _create_mass_estimate_request = Patch::CreateMassEstimateRequest.new(create_mass_estimate_request) data, _status_code, _headers = create_mass_estimate_with_http_info(_create_mass_estimate_request, opts) data end @@ -368,7 +293,7 @@ def create_mass_estimate_with_http_info(create_mass_estimate_request, opts = {}) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? - header_params['Content-Type'] = content_type + header_params['Content-Type'] = content_type end header_params['Patch-Version'] = 2 header_params[:'Patch-Version'] = opts[:'patch_version'] if !opts[:'patch_version'].nil? @@ -409,7 +334,7 @@ def create_mass_estimate_with_http_info(create_mass_estimate_request, opts = {}) # @option opts [Integer] :patch_version # @return [EstimateResponse] def create_rail_shipping_estimate(create_rail_shipping_estimate_request = {}, opts = {}) - _create_rail_shipping_estimate_request = Patch::CreateRailShippingEstimateRequest.new(create_rail_shipping_estimate_request) + _create_rail_shipping_estimate_request = Patch::CreateRailShippingEstimateRequest.new(create_rail_shipping_estimate_request) data, _status_code, _headers = create_rail_shipping_estimate_with_http_info(_create_rail_shipping_estimate_request, opts) data end @@ -442,7 +367,7 @@ def create_rail_shipping_estimate_with_http_info(create_rail_shipping_estimate_r # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? - header_params['Content-Type'] = content_type + header_params['Content-Type'] = content_type end header_params['Patch-Version'] = 2 header_params[:'Patch-Version'] = opts[:'patch_version'] if !opts[:'patch_version'].nil? @@ -483,7 +408,7 @@ def create_rail_shipping_estimate_with_http_info(create_rail_shipping_estimate_r # @option opts [Integer] :patch_version # @return [EstimateResponse] def create_road_shipping_estimate(create_road_shipping_estimate_request = {}, opts = {}) - _create_road_shipping_estimate_request = Patch::CreateRoadShippingEstimateRequest.new(create_road_shipping_estimate_request) + _create_road_shipping_estimate_request = Patch::CreateRoadShippingEstimateRequest.new(create_road_shipping_estimate_request) data, _status_code, _headers = create_road_shipping_estimate_with_http_info(_create_road_shipping_estimate_request, opts) data end @@ -516,7 +441,7 @@ def create_road_shipping_estimate_with_http_info(create_road_shipping_estimate_r # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? - header_params['Content-Type'] = content_type + header_params['Content-Type'] = content_type end header_params['Patch-Version'] = 2 header_params[:'Patch-Version'] = opts[:'patch_version'] if !opts[:'patch_version'].nil? @@ -557,7 +482,7 @@ def create_road_shipping_estimate_with_http_info(create_road_shipping_estimate_r # @option opts [Integer] :patch_version # @return [EstimateResponse] def create_sea_shipping_estimate(create_sea_shipping_estimate_request = {}, opts = {}) - _create_sea_shipping_estimate_request = Patch::CreateSeaShippingEstimateRequest.new(create_sea_shipping_estimate_request) + _create_sea_shipping_estimate_request = Patch::CreateSeaShippingEstimateRequest.new(create_sea_shipping_estimate_request) data, _status_code, _headers = create_sea_shipping_estimate_with_http_info(_create_sea_shipping_estimate_request, opts) data end @@ -590,7 +515,7 @@ def create_sea_shipping_estimate_with_http_info(create_sea_shipping_estimate_req # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? - header_params['Content-Type'] = content_type + header_params['Content-Type'] = content_type end header_params['Patch-Version'] = 2 header_params[:'Patch-Version'] = opts[:'patch_version'] if !opts[:'patch_version'].nil? @@ -759,4 +684,4 @@ def retrieve_estimates_with_http_info(opts = {}) return data, status_code, headers end end -end +end \ No newline at end of file diff --git a/lib/patch_ruby/api/order_line_items_api.rb b/lib/patch_ruby/api/order_line_items_api.rb index 1bba60b..b7d93b5 100644 --- a/lib/patch_ruby/api/order_line_items_api.rb +++ b/lib/patch_ruby/api/order_line_items_api.rb @@ -33,7 +33,7 @@ def initialize(api_client = ApiClient.default) # @option opts [Integer] :patch_version # @return [OrderLineItemResponse] def create_order_line_item(order_id, create_order_line_item_request = {}, opts = {}) - _create_order_line_item_request = Patch::CreateOrderLineItemRequest.new(create_order_line_item_request) + _create_order_line_item_request = Patch::CreateOrderLineItemRequest.new(create_order_line_item_request) data, _status_code, _headers = create_order_line_item_with_http_info(order_id, _create_order_line_item_request, opts) data end @@ -71,7 +71,7 @@ def create_order_line_item_with_http_info(order_id, create_order_line_item_reque # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? - header_params['Content-Type'] = content_type + header_params['Content-Type'] = content_type end header_params['Patch-Version'] = 2 header_params[:'Patch-Version'] = opts[:'patch_version'] if !opts[:'patch_version'].nil? @@ -189,7 +189,7 @@ def delete_order_line_item_with_http_info(order_id, serial_number, opts = {}) # @option opts [Integer] :patch_version # @return [OrderLineItemResponse] def update_order_line_item(order_id, serial_number, update_order_line_item_request = {}, opts = {}) - _update_order_line_item_request = Patch::UpdateOrderLineItemRequest.new(update_order_line_item_request) + _update_order_line_item_request = Patch::UpdateOrderLineItemRequest.new(update_order_line_item_request) data, _status_code, _headers = update_order_line_item_with_http_info(order_id, serial_number, _update_order_line_item_request, opts) data end @@ -232,7 +232,7 @@ def update_order_line_item_with_http_info(order_id, serial_number, update_order_ # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? - header_params['Content-Type'] = content_type + header_params['Content-Type'] = content_type end header_params['Patch-Version'] = 2 header_params[:'Patch-Version'] = opts[:'patch_version'] if !opts[:'patch_version'].nil? @@ -266,4 +266,4 @@ def update_order_line_item_with_http_info(order_id, serial_number, update_order_ return data, status_code, headers end end -end +end \ No newline at end of file diff --git a/lib/patch_ruby/api/orders_api.rb b/lib/patch_ruby/api/orders_api.rb index 6d0a64a..a0a4991 100644 --- a/lib/patch_ruby/api/orders_api.rb +++ b/lib/patch_ruby/api/orders_api.rb @@ -104,7 +104,7 @@ def cancel_order_with_http_info(id, opts = {}) # @option opts [Integer] :patch_version # @return [OrderResponse] def create_order(create_order_request = {}, opts = {}) - _create_order_request = Patch::CreateOrderRequest.new(create_order_request) + _create_order_request = Patch::CreateOrderRequest.new(create_order_request) data, _status_code, _headers = create_order_with_http_info(_create_order_request, opts) data end @@ -137,7 +137,7 @@ def create_order_with_http_info(create_order_request, opts = {}) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? - header_params['Content-Type'] = content_type + header_params['Content-Type'] = content_type end header_params['Patch-Version'] = 2 header_params[:'Patch-Version'] = opts[:'patch_version'] if !opts[:'patch_version'].nil? @@ -282,7 +282,7 @@ def place_order_with_http_info(id, opts = {}) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? - header_params['Content-Type'] = content_type + header_params['Content-Type'] = content_type end header_params['Patch-Version'] = 2 header_params[:'Patch-Version'] = opts[:'patch_version'] if !opts[:'patch_version'].nil? @@ -460,4 +460,4 @@ def retrieve_orders_with_http_info(opts = {}) return data, status_code, headers end end -end +end \ No newline at end of file diff --git a/lib/patch_ruby/api/projects_api.rb b/lib/patch_ruby/api/projects_api.rb index b433bfe..f08d7ad 100644 --- a/lib/patch_ruby/api/projects_api.rb +++ b/lib/patch_ruby/api/projects_api.rb @@ -174,4 +174,4 @@ def retrieve_projects_with_http_info(opts = {}) return data, status_code, headers end end -end +end \ No newline at end of file diff --git a/lib/patch_ruby/api/technology_types_api.rb b/lib/patch_ruby/api/technology_types_api.rb index d343ae7..6362f3d 100644 --- a/lib/patch_ruby/api/technology_types_api.rb +++ b/lib/patch_ruby/api/technology_types_api.rb @@ -86,4 +86,4 @@ def retrieve_technology_types_with_http_info(opts = {}) return data, status_code, headers end end -end +end \ No newline at end of file diff --git a/lib/patch_ruby/api_client.rb b/lib/patch_ruby/api_client.rb index c6bc598..a28bc96 100644 --- a/lib/patch_ruby/api_client.rb +++ b/lib/patch_ruby/api_client.rb @@ -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/2.3.1" + @user_agent = "patch-ruby/2.4.0" @default_headers = { 'Content-Type' => 'application/json', 'User-Agent' => @user_agent diff --git a/lib/patch_ruby/configuration.rb b/lib/patch_ruby/configuration.rb index 5f3d2f2..f0e1365 100644 --- a/lib/patch_ruby/configuration.rb +++ b/lib/patch_ruby/configuration.rb @@ -242,7 +242,8 @@ def server_settings end def operation_server_settings - {} + { + } end # Returns URL based on server settings @@ -278,5 +279,6 @@ def server_url(index, variables = {}, servers = nil) url end + end end diff --git a/lib/patch_ruby/models/create_air_shipping_estimate_request.rb b/lib/patch_ruby/models/create_air_shipping_estimate_request.rb index a7008c9..08bcbab 100644 --- a/lib/patch_ruby/models/create_air_shipping_estimate_request.rb +++ b/lib/patch_ruby/models/create_air_shipping_estimate_request.rb @@ -370,5 +370,6 @@ def _to_hash(value) value end end + end end diff --git a/lib/patch_ruby/models/create_bitcoin_estimate_request.rb b/lib/patch_ruby/models/create_bitcoin_estimate_request.rb index 9feaeed..6abfaf8 100644 --- a/lib/patch_ruby/models/create_bitcoin_estimate_request.rb +++ b/lib/patch_ruby/models/create_bitcoin_estimate_request.rb @@ -267,5 +267,6 @@ def _to_hash(value) value end end + end end diff --git a/lib/patch_ruby/models/create_flight_estimate_request.rb b/lib/patch_ruby/models/create_flight_estimate_request.rb index bb98c78..7ce9d15 100644 --- a/lib/patch_ruby/models/create_flight_estimate_request.rb +++ b/lib/patch_ruby/models/create_flight_estimate_request.rb @@ -321,5 +321,6 @@ def _to_hash(value) value end end + end end diff --git a/lib/patch_ruby/models/create_hotel_estimate_request.rb b/lib/patch_ruby/models/create_hotel_estimate_request.rb deleted file mode 100644 index f3a55af..0000000 --- a/lib/patch_ruby/models/create_hotel_estimate_request.rb +++ /dev/null @@ -1,300 +0,0 @@ -=begin -#Patch API V2 - -#The core API used to integrate with Patch's service - -The version of the OpenAPI document: 2 -Contact: engineering@usepatch.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.3.1 - -=end - -require 'date' -require 'time' - -module Patch - class CreateHotelEstimateRequest - attr_accessor :country_code - - attr_accessor :city - - attr_accessor :region - - attr_accessor :star_rating - - attr_accessor :number_of_nights - - attr_accessor :number_of_rooms - - attr_accessor :project_id - - attr_accessor :create_order - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'country_code' => :'country_code', - :'city' => :'city', - :'region' => :'region', - :'star_rating' => :'star_rating', - :'number_of_nights' => :'number_of_nights', - :'number_of_rooms' => :'number_of_rooms', - :'project_id' => :'project_id', - :'create_order' => :'create_order' - } - end - - # Returns all the JSON keys this model knows about - def self.acceptable_attributes - attribute_map.values - end - - # Attribute type mapping. - def self.openapi_types - { - :'country_code' => :'String', - :'city' => :'String', - :'region' => :'String', - :'star_rating' => :'Integer', - :'number_of_nights' => :'Integer', - :'number_of_rooms' => :'Integer', - :'project_id' => :'String', - :'create_order' => :'Boolean' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - :'project_id', - :'create_order' - ]) - end - - - # Allows models with corresponding API classes to delegate API operations to those API classes - # Exposes Model.operation_id which delegates to ModelsApi.new.operation_id - # Eg. Order.create_order delegates to OrdersApi.new.create_order - def self.method_missing(message, *args, &block) - if Object.const_defined?('Patch::CreateHotelEstimateRequestsApi::OPERATIONS') && Patch::CreateHotelEstimateRequestsApi::OPERATIONS.include?(message) - Patch::CreateHotelEstimateRequestsApi.new.send(message, *args) - else - super - end - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Patch::CreateHotelEstimateRequest` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Patch::CreateHotelEstimateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'country_code') - self.country_code = attributes[:'country_code'] - end - - if attributes.key?(:'city') - self.city = attributes[:'city'] - end - - if attributes.key?(:'region') - self.region = attributes[:'region'] - end - - if attributes.key?(:'star_rating') - self.star_rating = attributes[:'star_rating'] - end - - if attributes.key?(:'number_of_nights') - self.number_of_nights = attributes[:'number_of_nights'] - end - - if attributes.key?(:'number_of_rooms') - self.number_of_rooms = attributes[:'number_of_rooms'] - end - - if attributes.key?(:'project_id') - self.project_id = attributes[:'project_id'] - end - - if attributes.key?(:'create_order') - self.create_order = attributes[:'create_order'] - else - self.create_order = false - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @country_code.nil? - invalid_properties.push('invalid value for "country_code", country_code cannot be nil.') - end - - invalid_properties - end - - # 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 @country_code.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - country_code == o.country_code && - city == o.city && - region == o.region && - star_rating == o.star_rating && - number_of_nights == o.number_of_nights && - number_of_rooms == o.number_of_rooms && - project_id == o.project_id && - create_order == o.create_order - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [country_code, city, region, star_rating, number_of_nights, number_of_rooms, project_id, create_order].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - elsif type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :Time - Time.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - # models (e.g. Pet) or oneOf - klass = Patch.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/lib/patch_ruby/models/create_mass_estimate_request.rb b/lib/patch_ruby/models/create_mass_estimate_request.rb index f90da64..ce841a9 100644 --- a/lib/patch_ruby/models/create_mass_estimate_request.rb +++ b/lib/patch_ruby/models/create_mass_estimate_request.rb @@ -278,5 +278,6 @@ def _to_hash(value) value end end + end end diff --git a/lib/patch_ruby/models/create_order_line_item_request.rb b/lib/patch_ruby/models/create_order_line_item_request.rb index 301f5c8..1b8fa8f 100644 --- a/lib/patch_ruby/models/create_order_line_item_request.rb +++ b/lib/patch_ruby/models/create_order_line_item_request.rb @@ -439,5 +439,6 @@ def _to_hash(value) value end end + end end diff --git a/lib/patch_ruby/models/create_order_request.rb b/lib/patch_ruby/models/create_order_request.rb index 0e38d3c..e03a8c6 100644 --- a/lib/patch_ruby/models/create_order_request.rb +++ b/lib/patch_ruby/models/create_order_request.rb @@ -481,5 +481,6 @@ def _to_hash(value) value end end + end end diff --git a/lib/patch_ruby/models/create_rail_shipping_estimate_request.rb b/lib/patch_ruby/models/create_rail_shipping_estimate_request.rb index 03a3615..7bcc48e 100644 --- a/lib/patch_ruby/models/create_rail_shipping_estimate_request.rb +++ b/lib/patch_ruby/models/create_rail_shipping_estimate_request.rb @@ -400,5 +400,6 @@ def _to_hash(value) value end end + end end diff --git a/lib/patch_ruby/models/create_road_shipping_estimate_request.rb b/lib/patch_ruby/models/create_road_shipping_estimate_request.rb index 3f84219..025eade 100644 --- a/lib/patch_ruby/models/create_road_shipping_estimate_request.rb +++ b/lib/patch_ruby/models/create_road_shipping_estimate_request.rb @@ -513,5 +513,6 @@ def _to_hash(value) value end end + end end diff --git a/lib/patch_ruby/models/create_sea_shipping_estimate_request.rb b/lib/patch_ruby/models/create_sea_shipping_estimate_request.rb index e8a72c2..8ef7d84 100644 --- a/lib/patch_ruby/models/create_sea_shipping_estimate_request.rb +++ b/lib/patch_ruby/models/create_sea_shipping_estimate_request.rb @@ -457,5 +457,6 @@ def _to_hash(value) value end end + end end diff --git a/lib/patch_ruby/models/create_success_response.rb b/lib/patch_ruby/models/create_success_response.rb index 8584fa1..18c2f47 100644 --- a/lib/patch_ruby/models/create_success_response.rb +++ b/lib/patch_ruby/models/create_success_response.rb @@ -239,5 +239,6 @@ def _to_hash(value) value end end + end end diff --git a/lib/patch_ruby/models/delete_order_line_item_response.rb b/lib/patch_ruby/models/delete_order_line_item_response.rb index 0168ae2..df2b975 100644 --- a/lib/patch_ruby/models/delete_order_line_item_response.rb +++ b/lib/patch_ruby/models/delete_order_line_item_response.rb @@ -253,5 +253,6 @@ def _to_hash(value) value end end + end end diff --git a/lib/patch_ruby/models/delete_order_response.rb b/lib/patch_ruby/models/delete_order_response.rb index 32c7603..54b9fd7 100644 --- a/lib/patch_ruby/models/delete_order_response.rb +++ b/lib/patch_ruby/models/delete_order_response.rb @@ -253,5 +253,6 @@ def _to_hash(value) value end end + end end diff --git a/lib/patch_ruby/models/disclaimer.rb b/lib/patch_ruby/models/disclaimer.rb index cb048f2..6c79871 100644 --- a/lib/patch_ruby/models/disclaimer.rb +++ b/lib/patch_ruby/models/disclaimer.rb @@ -278,5 +278,6 @@ def _to_hash(value) value end end + end end diff --git a/lib/patch_ruby/models/error_response.rb b/lib/patch_ruby/models/error_response.rb index 3d8c49c..568fe03 100644 --- a/lib/patch_ruby/models/error_response.rb +++ b/lib/patch_ruby/models/error_response.rb @@ -249,5 +249,6 @@ def _to_hash(value) value end end + end end diff --git a/lib/patch_ruby/models/estimate.rb b/lib/patch_ruby/models/estimate.rb index 2bc4312..2ef11e0 100644 --- a/lib/patch_ruby/models/estimate.rb +++ b/lib/patch_ruby/models/estimate.rb @@ -284,5 +284,6 @@ def _to_hash(value) value end end + end end diff --git a/lib/patch_ruby/models/estimate_list_response.rb b/lib/patch_ruby/models/estimate_list_response.rb index 1c361e2..ef24ae7 100644 --- a/lib/patch_ruby/models/estimate_list_response.rb +++ b/lib/patch_ruby/models/estimate_list_response.rb @@ -269,5 +269,6 @@ def _to_hash(value) value end end + end end diff --git a/lib/patch_ruby/models/estimate_response.rb b/lib/patch_ruby/models/estimate_response.rb index a1c5648..0247e77 100644 --- a/lib/patch_ruby/models/estimate_response.rb +++ b/lib/patch_ruby/models/estimate_response.rb @@ -253,5 +253,6 @@ def _to_hash(value) value end end + end end diff --git a/lib/patch_ruby/models/highlight.rb b/lib/patch_ruby/models/highlight.rb index 4d40244..bda3c6b 100644 --- a/lib/patch_ruby/models/highlight.rb +++ b/lib/patch_ruby/models/highlight.rb @@ -260,5 +260,6 @@ def _to_hash(value) value end end + end end diff --git a/lib/patch_ruby/models/inventory.rb b/lib/patch_ruby/models/inventory.rb index 4012426..e52a2aa 100644 --- a/lib/patch_ruby/models/inventory.rb +++ b/lib/patch_ruby/models/inventory.rb @@ -320,5 +320,6 @@ def _to_hash(value) value end end + end end diff --git a/lib/patch_ruby/models/meta_index_object.rb b/lib/patch_ruby/models/meta_index_object.rb index d13a882..686f9e8 100644 --- a/lib/patch_ruby/models/meta_index_object.rb +++ b/lib/patch_ruby/models/meta_index_object.rb @@ -235,5 +235,6 @@ def _to_hash(value) value end end + end end diff --git a/lib/patch_ruby/models/order.rb b/lib/patch_ruby/models/order.rb index 8cf4de9..4370115 100644 --- a/lib/patch_ruby/models/order.rb +++ b/lib/patch_ruby/models/order.rb @@ -457,5 +457,6 @@ def _to_hash(value) value end end + end end diff --git a/lib/patch_ruby/models/order_issued_to.rb b/lib/patch_ruby/models/order_issued_to.rb index 86e41e5..837fe77 100644 --- a/lib/patch_ruby/models/order_issued_to.rb +++ b/lib/patch_ruby/models/order_issued_to.rb @@ -238,5 +238,6 @@ def _to_hash(value) value end end + end end diff --git a/lib/patch_ruby/models/order_line_item.rb b/lib/patch_ruby/models/order_line_item.rb index 68b1cb4..76295f2 100644 --- a/lib/patch_ruby/models/order_line_item.rb +++ b/lib/patch_ruby/models/order_line_item.rb @@ -348,5 +348,6 @@ def _to_hash(value) value end end + end end diff --git a/lib/patch_ruby/models/order_line_item_project.rb b/lib/patch_ruby/models/order_line_item_project.rb index 72c3cfc..53b5f71 100644 --- a/lib/patch_ruby/models/order_line_item_project.rb +++ b/lib/patch_ruby/models/order_line_item_project.rb @@ -245,5 +245,6 @@ def _to_hash(value) value end end + end end diff --git a/lib/patch_ruby/models/order_line_item_response.rb b/lib/patch_ruby/models/order_line_item_response.rb index ca2a46b..79bf32f 100644 --- a/lib/patch_ruby/models/order_line_item_response.rb +++ b/lib/patch_ruby/models/order_line_item_response.rb @@ -253,5 +253,6 @@ def _to_hash(value) value end end + end end diff --git a/lib/patch_ruby/models/order_list_response.rb b/lib/patch_ruby/models/order_list_response.rb index dd3fdea..78de8fc 100644 --- a/lib/patch_ruby/models/order_list_response.rb +++ b/lib/patch_ruby/models/order_list_response.rb @@ -269,5 +269,6 @@ def _to_hash(value) value end end + end end diff --git a/lib/patch_ruby/models/order_response.rb b/lib/patch_ruby/models/order_response.rb index b76f010..9420a47 100644 --- a/lib/patch_ruby/models/order_response.rb +++ b/lib/patch_ruby/models/order_response.rb @@ -253,5 +253,6 @@ def _to_hash(value) value end end + end end diff --git a/lib/patch_ruby/models/parent_technology_type.rb b/lib/patch_ruby/models/parent_technology_type.rb index a35b441..0f6ef5a 100644 --- a/lib/patch_ruby/models/parent_technology_type.rb +++ b/lib/patch_ruby/models/parent_technology_type.rb @@ -236,5 +236,6 @@ def _to_hash(value) value end end + end end diff --git a/lib/patch_ruby/models/photo.rb b/lib/patch_ruby/models/photo.rb index 7bc77cd..984a0b8 100644 --- a/lib/patch_ruby/models/photo.rb +++ b/lib/patch_ruby/models/photo.rb @@ -243,5 +243,6 @@ def _to_hash(value) value end end + end end diff --git a/lib/patch_ruby/models/place_order_request.rb b/lib/patch_ruby/models/place_order_request.rb index 3760224..18a4031 100644 --- a/lib/patch_ruby/models/place_order_request.rb +++ b/lib/patch_ruby/models/place_order_request.rb @@ -224,5 +224,6 @@ def _to_hash(value) value end end + end end diff --git a/lib/patch_ruby/models/project.rb b/lib/patch_ruby/models/project.rb index 4f73b54..771c94e 100644 --- a/lib/patch_ruby/models/project.rb +++ b/lib/patch_ruby/models/project.rb @@ -512,5 +512,6 @@ def _to_hash(value) value end end + end end diff --git a/lib/patch_ruby/models/project_list_response.rb b/lib/patch_ruby/models/project_list_response.rb index 25b4cdd..3fdcf8d 100644 --- a/lib/patch_ruby/models/project_list_response.rb +++ b/lib/patch_ruby/models/project_list_response.rb @@ -269,5 +269,6 @@ def _to_hash(value) value end end + end end diff --git a/lib/patch_ruby/models/project_response.rb b/lib/patch_ruby/models/project_response.rb index 6cb0a42..007cf83 100644 --- a/lib/patch_ruby/models/project_response.rb +++ b/lib/patch_ruby/models/project_response.rb @@ -253,5 +253,6 @@ def _to_hash(value) value end end + end end diff --git a/lib/patch_ruby/models/sdg.rb b/lib/patch_ruby/models/sdg.rb index 4ea7438..23075b4 100644 --- a/lib/patch_ruby/models/sdg.rb +++ b/lib/patch_ruby/models/sdg.rb @@ -275,5 +275,6 @@ def _to_hash(value) value end end + end end diff --git a/lib/patch_ruby/models/standard.rb b/lib/patch_ruby/models/standard.rb index bd0f275..9959fee 100644 --- a/lib/patch_ruby/models/standard.rb +++ b/lib/patch_ruby/models/standard.rb @@ -260,5 +260,6 @@ def _to_hash(value) value end end + end end diff --git a/lib/patch_ruby/models/technology_type.rb b/lib/patch_ruby/models/technology_type.rb index 8e3196c..682ccb1 100644 --- a/lib/patch_ruby/models/technology_type.rb +++ b/lib/patch_ruby/models/technology_type.rb @@ -255,5 +255,6 @@ def _to_hash(value) value end end + end end diff --git a/lib/patch_ruby/models/technology_type_list_response.rb b/lib/patch_ruby/models/technology_type_list_response.rb index d84e461..bf20f8d 100644 --- a/lib/patch_ruby/models/technology_type_list_response.rb +++ b/lib/patch_ruby/models/technology_type_list_response.rb @@ -255,5 +255,6 @@ def _to_hash(value) value end end + end end diff --git a/lib/patch_ruby/models/update_order_line_item_request.rb b/lib/patch_ruby/models/update_order_line_item_request.rb index 1b2adc5..b37f253 100644 --- a/lib/patch_ruby/models/update_order_line_item_request.rb +++ b/lib/patch_ruby/models/update_order_line_item_request.rb @@ -430,5 +430,6 @@ def _to_hash(value) value end end + end end diff --git a/lib/patch_ruby/version.rb b/lib/patch_ruby/version.rb index 4bacd62..82786c5 100644 --- a/lib/patch_ruby/version.rb +++ b/lib/patch_ruby/version.rb @@ -11,5 +11,5 @@ =end module Patch - VERSION = '2.3.1' + VERSION = '2.4.0' end diff --git a/patch_ruby.gemspec b/patch_ruby.gemspec index 1c73231..4920436 100644 --- a/patch_ruby.gemspec +++ b/patch_ruby.gemspec @@ -41,4 +41,4 @@ Gem::Specification.new do |s| s.add_development_dependency 'pry' # End custom -end +end \ No newline at end of file diff --git a/spec/integration/estimates_spec.rb b/spec/integration/estimates_spec.rb index 83725e4..c302470 100644 --- a/spec/integration/estimates_spec.rb +++ b/spec/integration/estimates_spec.rb @@ -91,21 +91,6 @@ expect(bitcoin_estimate_1.data.mass_g).to be < bitcoin_estimate_2.data.mass_g end - it 'supports creating hotel estimates' do - create_estimate_response = Patch::Estimate.create_hotel_estimate( - country_code: "US", - city: "Denver", - star_rating: 5, - number_of_nights: 2, - number_of_rooms: 2 - ) - - expect(create_estimate_response.success).to eq(true) - expect(create_estimate_response.data.type).to eq 'hotel' - expect(create_estimate_response.data.mass_g).to be >= 100_000 - expect(create_estimate_response.data.id).not_to be_nil - end - context "when creating an air shipping estimate" do it "supports creating an estimate using airports" do air_shipping_estimate = Patch::Estimate.create_air_shipping_estimate( From bf1db1e0e40ac70eec7ce6a793fe5c0ab5f52797 Mon Sep 17 00:00:00 2001 From: Paul Cothenet Date: Fri, 16 May 2025 12:24:04 -0700 Subject: [PATCH 2/2] Cop --- Gemfile | 2 +- Gemfile.lock | 41 ++++++++++++------- lib/patch_ruby/api/estimates_api.rb | 30 +++++++------- lib/patch_ruby/api/order_line_items_api.rb | 10 ++--- lib/patch_ruby/api/orders_api.rb | 8 ++-- lib/patch_ruby/api/projects_api.rb | 2 +- lib/patch_ruby/api/technology_types_api.rb | 2 +- lib/patch_ruby/configuration.rb | 4 +- .../create_air_shipping_estimate_request.rb | 1 - .../models/create_bitcoin_estimate_request.rb | 1 - .../models/create_flight_estimate_request.rb | 1 - .../models/create_mass_estimate_request.rb | 1 - .../models/create_order_line_item_request.rb | 1 - lib/patch_ruby/models/create_order_request.rb | 1 - .../create_rail_shipping_estimate_request.rb | 1 - .../create_road_shipping_estimate_request.rb | 1 - .../create_sea_shipping_estimate_request.rb | 1 - .../models/create_success_response.rb | 1 - .../models/delete_order_line_item_response.rb | 1 - .../models/delete_order_response.rb | 1 - lib/patch_ruby/models/disclaimer.rb | 1 - lib/patch_ruby/models/error_response.rb | 1 - lib/patch_ruby/models/estimate.rb | 1 - .../models/estimate_list_response.rb | 1 - lib/patch_ruby/models/estimate_response.rb | 1 - lib/patch_ruby/models/highlight.rb | 1 - lib/patch_ruby/models/inventory.rb | 1 - lib/patch_ruby/models/meta_index_object.rb | 1 - lib/patch_ruby/models/order.rb | 1 - lib/patch_ruby/models/order_issued_to.rb | 1 - lib/patch_ruby/models/order_line_item.rb | 1 - .../models/order_line_item_project.rb | 1 - .../models/order_line_item_response.rb | 1 - lib/patch_ruby/models/order_list_response.rb | 1 - lib/patch_ruby/models/order_response.rb | 1 - .../models/parent_technology_type.rb | 1 - lib/patch_ruby/models/photo.rb | 1 - lib/patch_ruby/models/place_order_request.rb | 1 - lib/patch_ruby/models/project.rb | 1 - .../models/project_list_response.rb | 1 - lib/patch_ruby/models/project_response.rb | 1 - lib/patch_ruby/models/sdg.rb | 1 - lib/patch_ruby/models/standard.rb | 1 - lib/patch_ruby/models/technology_type.rb | 1 - .../models/technology_type_list_response.rb | 1 - .../models/update_order_line_item_request.rb | 1 - patch_ruby.gemspec | 2 +- 47 files changed, 56 insertions(+), 83 deletions(-) diff --git a/Gemfile b/Gemfile index c2e3127..5f57599 100644 --- a/Gemfile +++ b/Gemfile @@ -5,5 +5,5 @@ gemspec group :development, :test do gem 'rake', '~> 13.0.1' gem 'pry-byebug' - gem 'rubocop', '~> 0.66.0' + gem 'rubocop', '~> 1.75.6' end diff --git a/Gemfile.lock b/Gemfile.lock index 2ef8ff5..11220eb 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -12,7 +12,7 @@ GEM i18n (>= 1.6, < 2) minitest (>= 5.1) tzinfo (~> 2.0) - ast (2.4.2) + ast (2.4.3) byebug (11.1.3) coderay (1.1.3) concurrent-ruby (1.2.2) @@ -24,21 +24,26 @@ GEM ffi (1.17.2) i18n (1.12.0) concurrent-ruby (~> 1.0) - jaro_winkler (1.5.6) + json (2.12.0) + language_server-protocol (3.17.0.5) + lint_roller (1.1.0) method_source (1.0.0) minitest (5.18.0) - parallel (1.20.1) - parser (3.0.2.0) + parallel (1.27.0) + parser (3.3.8.0) ast (~> 2.4.1) + racc + prism (1.4.0) pry (0.14.1) coderay (~> 1.1) method_source (~> 1.0) pry-byebug (3.8.0) byebug (~> 11.0) pry (~> 0.10) - psych (4.0.1) - rainbow (3.0.0) + racc (1.8.1) + rainbow (3.1.1) rake (13.0.6) + regexp_parser (2.10.0) rspec (3.10.0) rspec-core (~> 3.10.0) rspec-expectations (~> 3.10.0) @@ -52,20 +57,28 @@ GEM diff-lcs (>= 1.2.0, < 2.0) rspec-support (~> 3.10.0) rspec-support (3.10.2) - rubocop (0.66.0) - jaro_winkler (~> 1.5.1) + rubocop (1.75.6) + json (~> 2.3) + language_server-protocol (~> 3.17.0.2) + lint_roller (~> 1.1.0) parallel (~> 1.10) - parser (>= 2.5, != 2.5.1.1) - psych (>= 3.1.0) + parser (>= 3.3.0.2) rainbow (>= 2.2.2, < 4.0) + regexp_parser (>= 2.9.3, < 3.0) + rubocop-ast (>= 1.44.0, < 2.0) ruby-progressbar (~> 1.7) - unicode-display_width (>= 1.4.0, < 1.6) - ruby-progressbar (1.11.0) + unicode-display_width (>= 2.4.0, < 4.0) + rubocop-ast (1.44.1) + parser (>= 3.3.7.2) + prism (~> 1.4) + ruby-progressbar (1.13.0) typhoeus (1.4.1) ethon (>= 0.9.0) tzinfo (2.0.6) concurrent-ruby (~> 1.0) - unicode-display_width (1.5.0) + unicode-display_width (3.1.4) + unicode-emoji (~> 4.0, >= 4.0.4) + unicode-emoji (4.0.4) PLATFORMS arm64-darwin-20 @@ -83,7 +96,7 @@ DEPENDENCIES pry-byebug rake (~> 13.0.1) rspec (~> 3.6, >= 3.6.0) - rubocop (~> 0.66.0) + rubocop (~> 1.75.6) BUNDLED WITH 2.3.9 diff --git a/lib/patch_ruby/api/estimates_api.rb b/lib/patch_ruby/api/estimates_api.rb index c71fc32..2176bde 100644 --- a/lib/patch_ruby/api/estimates_api.rb +++ b/lib/patch_ruby/api/estimates_api.rb @@ -38,7 +38,7 @@ def initialize(api_client = ApiClient.default) # @option opts [Integer] :patch_version # @return [EstimateResponse] def create_air_shipping_estimate(create_air_shipping_estimate_request = {}, opts = {}) - _create_air_shipping_estimate_request = Patch::CreateAirShippingEstimateRequest.new(create_air_shipping_estimate_request) + _create_air_shipping_estimate_request = Patch::CreateAirShippingEstimateRequest.new(create_air_shipping_estimate_request) data, _status_code, _headers = create_air_shipping_estimate_with_http_info(_create_air_shipping_estimate_request, opts) data end @@ -71,7 +71,7 @@ def create_air_shipping_estimate_with_http_info(create_air_shipping_estimate_req # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? - header_params['Content-Type'] = content_type + header_params['Content-Type'] = content_type end header_params['Patch-Version'] = 2 header_params[:'Patch-Version'] = opts[:'patch_version'] if !opts[:'patch_version'].nil? @@ -112,7 +112,7 @@ def create_air_shipping_estimate_with_http_info(create_air_shipping_estimate_req # @option opts [Integer] :patch_version # @return [EstimateResponse] def create_bitcoin_estimate(create_bitcoin_estimate_request = {}, opts = {}) - _create_bitcoin_estimate_request = Patch::CreateBitcoinEstimateRequest.new(create_bitcoin_estimate_request) + _create_bitcoin_estimate_request = Patch::CreateBitcoinEstimateRequest.new(create_bitcoin_estimate_request) data, _status_code, _headers = create_bitcoin_estimate_with_http_info(_create_bitcoin_estimate_request, opts) data end @@ -145,7 +145,7 @@ def create_bitcoin_estimate_with_http_info(create_bitcoin_estimate_request, opts # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? - header_params['Content-Type'] = content_type + header_params['Content-Type'] = content_type end header_params['Patch-Version'] = 2 header_params[:'Patch-Version'] = opts[:'patch_version'] if !opts[:'patch_version'].nil? @@ -186,7 +186,7 @@ def create_bitcoin_estimate_with_http_info(create_bitcoin_estimate_request, opts # @option opts [Integer] :patch_version # @return [EstimateResponse] def create_flight_estimate(create_flight_estimate_request = {}, opts = {}) - _create_flight_estimate_request = Patch::CreateFlightEstimateRequest.new(create_flight_estimate_request) + _create_flight_estimate_request = Patch::CreateFlightEstimateRequest.new(create_flight_estimate_request) data, _status_code, _headers = create_flight_estimate_with_http_info(_create_flight_estimate_request, opts) data end @@ -219,7 +219,7 @@ def create_flight_estimate_with_http_info(create_flight_estimate_request, opts = # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? - header_params['Content-Type'] = content_type + header_params['Content-Type'] = content_type end header_params['Patch-Version'] = 2 header_params[:'Patch-Version'] = opts[:'patch_version'] if !opts[:'patch_version'].nil? @@ -260,7 +260,7 @@ def create_flight_estimate_with_http_info(create_flight_estimate_request, opts = # @option opts [Integer] :patch_version # @return [EstimateResponse] def create_mass_estimate(create_mass_estimate_request = {}, opts = {}) - _create_mass_estimate_request = Patch::CreateMassEstimateRequest.new(create_mass_estimate_request) + _create_mass_estimate_request = Patch::CreateMassEstimateRequest.new(create_mass_estimate_request) data, _status_code, _headers = create_mass_estimate_with_http_info(_create_mass_estimate_request, opts) data end @@ -293,7 +293,7 @@ def create_mass_estimate_with_http_info(create_mass_estimate_request, opts = {}) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? - header_params['Content-Type'] = content_type + header_params['Content-Type'] = content_type end header_params['Patch-Version'] = 2 header_params[:'Patch-Version'] = opts[:'patch_version'] if !opts[:'patch_version'].nil? @@ -334,7 +334,7 @@ def create_mass_estimate_with_http_info(create_mass_estimate_request, opts = {}) # @option opts [Integer] :patch_version # @return [EstimateResponse] def create_rail_shipping_estimate(create_rail_shipping_estimate_request = {}, opts = {}) - _create_rail_shipping_estimate_request = Patch::CreateRailShippingEstimateRequest.new(create_rail_shipping_estimate_request) + _create_rail_shipping_estimate_request = Patch::CreateRailShippingEstimateRequest.new(create_rail_shipping_estimate_request) data, _status_code, _headers = create_rail_shipping_estimate_with_http_info(_create_rail_shipping_estimate_request, opts) data end @@ -367,7 +367,7 @@ def create_rail_shipping_estimate_with_http_info(create_rail_shipping_estimate_r # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? - header_params['Content-Type'] = content_type + header_params['Content-Type'] = content_type end header_params['Patch-Version'] = 2 header_params[:'Patch-Version'] = opts[:'patch_version'] if !opts[:'patch_version'].nil? @@ -408,7 +408,7 @@ def create_rail_shipping_estimate_with_http_info(create_rail_shipping_estimate_r # @option opts [Integer] :patch_version # @return [EstimateResponse] def create_road_shipping_estimate(create_road_shipping_estimate_request = {}, opts = {}) - _create_road_shipping_estimate_request = Patch::CreateRoadShippingEstimateRequest.new(create_road_shipping_estimate_request) + _create_road_shipping_estimate_request = Patch::CreateRoadShippingEstimateRequest.new(create_road_shipping_estimate_request) data, _status_code, _headers = create_road_shipping_estimate_with_http_info(_create_road_shipping_estimate_request, opts) data end @@ -441,7 +441,7 @@ def create_road_shipping_estimate_with_http_info(create_road_shipping_estimate_r # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? - header_params['Content-Type'] = content_type + header_params['Content-Type'] = content_type end header_params['Patch-Version'] = 2 header_params[:'Patch-Version'] = opts[:'patch_version'] if !opts[:'patch_version'].nil? @@ -482,7 +482,7 @@ def create_road_shipping_estimate_with_http_info(create_road_shipping_estimate_r # @option opts [Integer] :patch_version # @return [EstimateResponse] def create_sea_shipping_estimate(create_sea_shipping_estimate_request = {}, opts = {}) - _create_sea_shipping_estimate_request = Patch::CreateSeaShippingEstimateRequest.new(create_sea_shipping_estimate_request) + _create_sea_shipping_estimate_request = Patch::CreateSeaShippingEstimateRequest.new(create_sea_shipping_estimate_request) data, _status_code, _headers = create_sea_shipping_estimate_with_http_info(_create_sea_shipping_estimate_request, opts) data end @@ -515,7 +515,7 @@ def create_sea_shipping_estimate_with_http_info(create_sea_shipping_estimate_req # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? - header_params['Content-Type'] = content_type + header_params['Content-Type'] = content_type end header_params['Patch-Version'] = 2 header_params[:'Patch-Version'] = opts[:'patch_version'] if !opts[:'patch_version'].nil? @@ -684,4 +684,4 @@ def retrieve_estimates_with_http_info(opts = {}) return data, status_code, headers end end -end \ No newline at end of file +end diff --git a/lib/patch_ruby/api/order_line_items_api.rb b/lib/patch_ruby/api/order_line_items_api.rb index b7d93b5..1bba60b 100644 --- a/lib/patch_ruby/api/order_line_items_api.rb +++ b/lib/patch_ruby/api/order_line_items_api.rb @@ -33,7 +33,7 @@ def initialize(api_client = ApiClient.default) # @option opts [Integer] :patch_version # @return [OrderLineItemResponse] def create_order_line_item(order_id, create_order_line_item_request = {}, opts = {}) - _create_order_line_item_request = Patch::CreateOrderLineItemRequest.new(create_order_line_item_request) + _create_order_line_item_request = Patch::CreateOrderLineItemRequest.new(create_order_line_item_request) data, _status_code, _headers = create_order_line_item_with_http_info(order_id, _create_order_line_item_request, opts) data end @@ -71,7 +71,7 @@ def create_order_line_item_with_http_info(order_id, create_order_line_item_reque # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? - header_params['Content-Type'] = content_type + header_params['Content-Type'] = content_type end header_params['Patch-Version'] = 2 header_params[:'Patch-Version'] = opts[:'patch_version'] if !opts[:'patch_version'].nil? @@ -189,7 +189,7 @@ def delete_order_line_item_with_http_info(order_id, serial_number, opts = {}) # @option opts [Integer] :patch_version # @return [OrderLineItemResponse] def update_order_line_item(order_id, serial_number, update_order_line_item_request = {}, opts = {}) - _update_order_line_item_request = Patch::UpdateOrderLineItemRequest.new(update_order_line_item_request) + _update_order_line_item_request = Patch::UpdateOrderLineItemRequest.new(update_order_line_item_request) data, _status_code, _headers = update_order_line_item_with_http_info(order_id, serial_number, _update_order_line_item_request, opts) data end @@ -232,7 +232,7 @@ def update_order_line_item_with_http_info(order_id, serial_number, update_order_ # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? - header_params['Content-Type'] = content_type + header_params['Content-Type'] = content_type end header_params['Patch-Version'] = 2 header_params[:'Patch-Version'] = opts[:'patch_version'] if !opts[:'patch_version'].nil? @@ -266,4 +266,4 @@ def update_order_line_item_with_http_info(order_id, serial_number, update_order_ return data, status_code, headers end end -end \ No newline at end of file +end diff --git a/lib/patch_ruby/api/orders_api.rb b/lib/patch_ruby/api/orders_api.rb index a0a4991..6d0a64a 100644 --- a/lib/patch_ruby/api/orders_api.rb +++ b/lib/patch_ruby/api/orders_api.rb @@ -104,7 +104,7 @@ def cancel_order_with_http_info(id, opts = {}) # @option opts [Integer] :patch_version # @return [OrderResponse] def create_order(create_order_request = {}, opts = {}) - _create_order_request = Patch::CreateOrderRequest.new(create_order_request) + _create_order_request = Patch::CreateOrderRequest.new(create_order_request) data, _status_code, _headers = create_order_with_http_info(_create_order_request, opts) data end @@ -137,7 +137,7 @@ def create_order_with_http_info(create_order_request, opts = {}) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? - header_params['Content-Type'] = content_type + header_params['Content-Type'] = content_type end header_params['Patch-Version'] = 2 header_params[:'Patch-Version'] = opts[:'patch_version'] if !opts[:'patch_version'].nil? @@ -282,7 +282,7 @@ def place_order_with_http_info(id, opts = {}) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? - header_params['Content-Type'] = content_type + header_params['Content-Type'] = content_type end header_params['Patch-Version'] = 2 header_params[:'Patch-Version'] = opts[:'patch_version'] if !opts[:'patch_version'].nil? @@ -460,4 +460,4 @@ def retrieve_orders_with_http_info(opts = {}) return data, status_code, headers end end -end \ No newline at end of file +end diff --git a/lib/patch_ruby/api/projects_api.rb b/lib/patch_ruby/api/projects_api.rb index f08d7ad..b433bfe 100644 --- a/lib/patch_ruby/api/projects_api.rb +++ b/lib/patch_ruby/api/projects_api.rb @@ -174,4 +174,4 @@ def retrieve_projects_with_http_info(opts = {}) return data, status_code, headers end end -end \ No newline at end of file +end diff --git a/lib/patch_ruby/api/technology_types_api.rb b/lib/patch_ruby/api/technology_types_api.rb index 6362f3d..d343ae7 100644 --- a/lib/patch_ruby/api/technology_types_api.rb +++ b/lib/patch_ruby/api/technology_types_api.rb @@ -86,4 +86,4 @@ def retrieve_technology_types_with_http_info(opts = {}) return data, status_code, headers end end -end \ No newline at end of file +end diff --git a/lib/patch_ruby/configuration.rb b/lib/patch_ruby/configuration.rb index f0e1365..5f3d2f2 100644 --- a/lib/patch_ruby/configuration.rb +++ b/lib/patch_ruby/configuration.rb @@ -242,8 +242,7 @@ def server_settings end def operation_server_settings - { - } + {} end # Returns URL based on server settings @@ -279,6 +278,5 @@ def server_url(index, variables = {}, servers = nil) url end - end end diff --git a/lib/patch_ruby/models/create_air_shipping_estimate_request.rb b/lib/patch_ruby/models/create_air_shipping_estimate_request.rb index 08bcbab..a7008c9 100644 --- a/lib/patch_ruby/models/create_air_shipping_estimate_request.rb +++ b/lib/patch_ruby/models/create_air_shipping_estimate_request.rb @@ -370,6 +370,5 @@ def _to_hash(value) value end end - end end diff --git a/lib/patch_ruby/models/create_bitcoin_estimate_request.rb b/lib/patch_ruby/models/create_bitcoin_estimate_request.rb index 6abfaf8..9feaeed 100644 --- a/lib/patch_ruby/models/create_bitcoin_estimate_request.rb +++ b/lib/patch_ruby/models/create_bitcoin_estimate_request.rb @@ -267,6 +267,5 @@ def _to_hash(value) value end end - end end diff --git a/lib/patch_ruby/models/create_flight_estimate_request.rb b/lib/patch_ruby/models/create_flight_estimate_request.rb index 7ce9d15..bb98c78 100644 --- a/lib/patch_ruby/models/create_flight_estimate_request.rb +++ b/lib/patch_ruby/models/create_flight_estimate_request.rb @@ -321,6 +321,5 @@ def _to_hash(value) value end end - end end diff --git a/lib/patch_ruby/models/create_mass_estimate_request.rb b/lib/patch_ruby/models/create_mass_estimate_request.rb index ce841a9..f90da64 100644 --- a/lib/patch_ruby/models/create_mass_estimate_request.rb +++ b/lib/patch_ruby/models/create_mass_estimate_request.rb @@ -278,6 +278,5 @@ def _to_hash(value) value end end - end end diff --git a/lib/patch_ruby/models/create_order_line_item_request.rb b/lib/patch_ruby/models/create_order_line_item_request.rb index 1b8fa8f..301f5c8 100644 --- a/lib/patch_ruby/models/create_order_line_item_request.rb +++ b/lib/patch_ruby/models/create_order_line_item_request.rb @@ -439,6 +439,5 @@ def _to_hash(value) value end end - end end diff --git a/lib/patch_ruby/models/create_order_request.rb b/lib/patch_ruby/models/create_order_request.rb index e03a8c6..0e38d3c 100644 --- a/lib/patch_ruby/models/create_order_request.rb +++ b/lib/patch_ruby/models/create_order_request.rb @@ -481,6 +481,5 @@ def _to_hash(value) value end end - end end diff --git a/lib/patch_ruby/models/create_rail_shipping_estimate_request.rb b/lib/patch_ruby/models/create_rail_shipping_estimate_request.rb index 7bcc48e..03a3615 100644 --- a/lib/patch_ruby/models/create_rail_shipping_estimate_request.rb +++ b/lib/patch_ruby/models/create_rail_shipping_estimate_request.rb @@ -400,6 +400,5 @@ def _to_hash(value) value end end - end end diff --git a/lib/patch_ruby/models/create_road_shipping_estimate_request.rb b/lib/patch_ruby/models/create_road_shipping_estimate_request.rb index 025eade..3f84219 100644 --- a/lib/patch_ruby/models/create_road_shipping_estimate_request.rb +++ b/lib/patch_ruby/models/create_road_shipping_estimate_request.rb @@ -513,6 +513,5 @@ def _to_hash(value) value end end - end end diff --git a/lib/patch_ruby/models/create_sea_shipping_estimate_request.rb b/lib/patch_ruby/models/create_sea_shipping_estimate_request.rb index 8ef7d84..e8a72c2 100644 --- a/lib/patch_ruby/models/create_sea_shipping_estimate_request.rb +++ b/lib/patch_ruby/models/create_sea_shipping_estimate_request.rb @@ -457,6 +457,5 @@ def _to_hash(value) value end end - end end diff --git a/lib/patch_ruby/models/create_success_response.rb b/lib/patch_ruby/models/create_success_response.rb index 18c2f47..8584fa1 100644 --- a/lib/patch_ruby/models/create_success_response.rb +++ b/lib/patch_ruby/models/create_success_response.rb @@ -239,6 +239,5 @@ def _to_hash(value) value end end - end end diff --git a/lib/patch_ruby/models/delete_order_line_item_response.rb b/lib/patch_ruby/models/delete_order_line_item_response.rb index df2b975..0168ae2 100644 --- a/lib/patch_ruby/models/delete_order_line_item_response.rb +++ b/lib/patch_ruby/models/delete_order_line_item_response.rb @@ -253,6 +253,5 @@ def _to_hash(value) value end end - end end diff --git a/lib/patch_ruby/models/delete_order_response.rb b/lib/patch_ruby/models/delete_order_response.rb index 54b9fd7..32c7603 100644 --- a/lib/patch_ruby/models/delete_order_response.rb +++ b/lib/patch_ruby/models/delete_order_response.rb @@ -253,6 +253,5 @@ def _to_hash(value) value end end - end end diff --git a/lib/patch_ruby/models/disclaimer.rb b/lib/patch_ruby/models/disclaimer.rb index 6c79871..cb048f2 100644 --- a/lib/patch_ruby/models/disclaimer.rb +++ b/lib/patch_ruby/models/disclaimer.rb @@ -278,6 +278,5 @@ def _to_hash(value) value end end - end end diff --git a/lib/patch_ruby/models/error_response.rb b/lib/patch_ruby/models/error_response.rb index 568fe03..3d8c49c 100644 --- a/lib/patch_ruby/models/error_response.rb +++ b/lib/patch_ruby/models/error_response.rb @@ -249,6 +249,5 @@ def _to_hash(value) value end end - end end diff --git a/lib/patch_ruby/models/estimate.rb b/lib/patch_ruby/models/estimate.rb index 2ef11e0..2bc4312 100644 --- a/lib/patch_ruby/models/estimate.rb +++ b/lib/patch_ruby/models/estimate.rb @@ -284,6 +284,5 @@ def _to_hash(value) value end end - end end diff --git a/lib/patch_ruby/models/estimate_list_response.rb b/lib/patch_ruby/models/estimate_list_response.rb index ef24ae7..1c361e2 100644 --- a/lib/patch_ruby/models/estimate_list_response.rb +++ b/lib/patch_ruby/models/estimate_list_response.rb @@ -269,6 +269,5 @@ def _to_hash(value) value end end - end end diff --git a/lib/patch_ruby/models/estimate_response.rb b/lib/patch_ruby/models/estimate_response.rb index 0247e77..a1c5648 100644 --- a/lib/patch_ruby/models/estimate_response.rb +++ b/lib/patch_ruby/models/estimate_response.rb @@ -253,6 +253,5 @@ def _to_hash(value) value end end - end end diff --git a/lib/patch_ruby/models/highlight.rb b/lib/patch_ruby/models/highlight.rb index bda3c6b..4d40244 100644 --- a/lib/patch_ruby/models/highlight.rb +++ b/lib/patch_ruby/models/highlight.rb @@ -260,6 +260,5 @@ def _to_hash(value) value end end - end end diff --git a/lib/patch_ruby/models/inventory.rb b/lib/patch_ruby/models/inventory.rb index e52a2aa..4012426 100644 --- a/lib/patch_ruby/models/inventory.rb +++ b/lib/patch_ruby/models/inventory.rb @@ -320,6 +320,5 @@ def _to_hash(value) value end end - end end diff --git a/lib/patch_ruby/models/meta_index_object.rb b/lib/patch_ruby/models/meta_index_object.rb index 686f9e8..d13a882 100644 --- a/lib/patch_ruby/models/meta_index_object.rb +++ b/lib/patch_ruby/models/meta_index_object.rb @@ -235,6 +235,5 @@ def _to_hash(value) value end end - end end diff --git a/lib/patch_ruby/models/order.rb b/lib/patch_ruby/models/order.rb index 4370115..8cf4de9 100644 --- a/lib/patch_ruby/models/order.rb +++ b/lib/patch_ruby/models/order.rb @@ -457,6 +457,5 @@ def _to_hash(value) value end end - end end diff --git a/lib/patch_ruby/models/order_issued_to.rb b/lib/patch_ruby/models/order_issued_to.rb index 837fe77..86e41e5 100644 --- a/lib/patch_ruby/models/order_issued_to.rb +++ b/lib/patch_ruby/models/order_issued_to.rb @@ -238,6 +238,5 @@ def _to_hash(value) value end end - end end diff --git a/lib/patch_ruby/models/order_line_item.rb b/lib/patch_ruby/models/order_line_item.rb index 76295f2..68b1cb4 100644 --- a/lib/patch_ruby/models/order_line_item.rb +++ b/lib/patch_ruby/models/order_line_item.rb @@ -348,6 +348,5 @@ def _to_hash(value) value end end - end end diff --git a/lib/patch_ruby/models/order_line_item_project.rb b/lib/patch_ruby/models/order_line_item_project.rb index 53b5f71..72c3cfc 100644 --- a/lib/patch_ruby/models/order_line_item_project.rb +++ b/lib/patch_ruby/models/order_line_item_project.rb @@ -245,6 +245,5 @@ def _to_hash(value) value end end - end end diff --git a/lib/patch_ruby/models/order_line_item_response.rb b/lib/patch_ruby/models/order_line_item_response.rb index 79bf32f..ca2a46b 100644 --- a/lib/patch_ruby/models/order_line_item_response.rb +++ b/lib/patch_ruby/models/order_line_item_response.rb @@ -253,6 +253,5 @@ def _to_hash(value) value end end - end end diff --git a/lib/patch_ruby/models/order_list_response.rb b/lib/patch_ruby/models/order_list_response.rb index 78de8fc..dd3fdea 100644 --- a/lib/patch_ruby/models/order_list_response.rb +++ b/lib/patch_ruby/models/order_list_response.rb @@ -269,6 +269,5 @@ def _to_hash(value) value end end - end end diff --git a/lib/patch_ruby/models/order_response.rb b/lib/patch_ruby/models/order_response.rb index 9420a47..b76f010 100644 --- a/lib/patch_ruby/models/order_response.rb +++ b/lib/patch_ruby/models/order_response.rb @@ -253,6 +253,5 @@ def _to_hash(value) value end end - end end diff --git a/lib/patch_ruby/models/parent_technology_type.rb b/lib/patch_ruby/models/parent_technology_type.rb index 0f6ef5a..a35b441 100644 --- a/lib/patch_ruby/models/parent_technology_type.rb +++ b/lib/patch_ruby/models/parent_technology_type.rb @@ -236,6 +236,5 @@ def _to_hash(value) value end end - end end diff --git a/lib/patch_ruby/models/photo.rb b/lib/patch_ruby/models/photo.rb index 984a0b8..7bc77cd 100644 --- a/lib/patch_ruby/models/photo.rb +++ b/lib/patch_ruby/models/photo.rb @@ -243,6 +243,5 @@ def _to_hash(value) value end end - end end diff --git a/lib/patch_ruby/models/place_order_request.rb b/lib/patch_ruby/models/place_order_request.rb index 18a4031..3760224 100644 --- a/lib/patch_ruby/models/place_order_request.rb +++ b/lib/patch_ruby/models/place_order_request.rb @@ -224,6 +224,5 @@ def _to_hash(value) value end end - end end diff --git a/lib/patch_ruby/models/project.rb b/lib/patch_ruby/models/project.rb index 771c94e..4f73b54 100644 --- a/lib/patch_ruby/models/project.rb +++ b/lib/patch_ruby/models/project.rb @@ -512,6 +512,5 @@ def _to_hash(value) value end end - end end diff --git a/lib/patch_ruby/models/project_list_response.rb b/lib/patch_ruby/models/project_list_response.rb index 3fdcf8d..25b4cdd 100644 --- a/lib/patch_ruby/models/project_list_response.rb +++ b/lib/patch_ruby/models/project_list_response.rb @@ -269,6 +269,5 @@ def _to_hash(value) value end end - end end diff --git a/lib/patch_ruby/models/project_response.rb b/lib/patch_ruby/models/project_response.rb index 007cf83..6cb0a42 100644 --- a/lib/patch_ruby/models/project_response.rb +++ b/lib/patch_ruby/models/project_response.rb @@ -253,6 +253,5 @@ def _to_hash(value) value end end - end end diff --git a/lib/patch_ruby/models/sdg.rb b/lib/patch_ruby/models/sdg.rb index 23075b4..4ea7438 100644 --- a/lib/patch_ruby/models/sdg.rb +++ b/lib/patch_ruby/models/sdg.rb @@ -275,6 +275,5 @@ def _to_hash(value) value end end - end end diff --git a/lib/patch_ruby/models/standard.rb b/lib/patch_ruby/models/standard.rb index 9959fee..bd0f275 100644 --- a/lib/patch_ruby/models/standard.rb +++ b/lib/patch_ruby/models/standard.rb @@ -260,6 +260,5 @@ def _to_hash(value) value end end - end end diff --git a/lib/patch_ruby/models/technology_type.rb b/lib/patch_ruby/models/technology_type.rb index 682ccb1..8e3196c 100644 --- a/lib/patch_ruby/models/technology_type.rb +++ b/lib/patch_ruby/models/technology_type.rb @@ -255,6 +255,5 @@ def _to_hash(value) value end end - end end diff --git a/lib/patch_ruby/models/technology_type_list_response.rb b/lib/patch_ruby/models/technology_type_list_response.rb index bf20f8d..d84e461 100644 --- a/lib/patch_ruby/models/technology_type_list_response.rb +++ b/lib/patch_ruby/models/technology_type_list_response.rb @@ -255,6 +255,5 @@ def _to_hash(value) value end end - end end diff --git a/lib/patch_ruby/models/update_order_line_item_request.rb b/lib/patch_ruby/models/update_order_line_item_request.rb index b37f253..1b2adc5 100644 --- a/lib/patch_ruby/models/update_order_line_item_request.rb +++ b/lib/patch_ruby/models/update_order_line_item_request.rb @@ -430,6 +430,5 @@ def _to_hash(value) value end end - end end diff --git a/patch_ruby.gemspec b/patch_ruby.gemspec index 4920436..1c73231 100644 --- a/patch_ruby.gemspec +++ b/patch_ruby.gemspec @@ -41,4 +41,4 @@ Gem::Specification.new do |s| s.add_development_dependency 'pry' # End custom -end \ No newline at end of file +end