Skip to content

Commit f59e7c7

Browse files
authored
Remove endpoints (#79)
1 parent 1c20b05 commit f59e7c7

13 files changed

+10
-474
lines changed

Diff for: 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 (2.3.0)
4+
patch_ruby (2.3.1)
55
typhoeus (~> 1.0, >= 1.0.1)
66

77
GEM

Diff for: lib/patch_ruby.rb

-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
# Models
2020
require 'patch_ruby/models/create_air_shipping_estimate_request'
2121
require 'patch_ruby/models/create_bitcoin_estimate_request'
22-
require 'patch_ruby/models/create_ecommerce_estimate_request'
2322
require 'patch_ruby/models/create_flight_estimate_request'
2423
require 'patch_ruby/models/create_hotel_estimate_request'
2524
require 'patch_ruby/models/create_mass_estimate_request'

Diff for: lib/patch_ruby/api/estimates_api.rb

+1-76
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ class EstimatesApi
1717
OPERATIONS = [
1818
:create_air_shipping_estimate,
1919
:create_bitcoin_estimate,
20-
:create_ecommerce_estimate,
2120
:create_flight_estimate,
2221
:create_hotel_estimate,
2322
:create_mass_estimate,
@@ -181,80 +180,6 @@ def create_bitcoin_estimate_with_http_info(create_bitcoin_estimate_request, opts
181180
return data, status_code, headers
182181
end
183182

184-
# Create an e-commerce estimate given the distance traveled in meters, package weight, and transportation method.
185-
# Creates a e-commerce estimate for the amount of CO2 to be compensated. An order in the `draft` state may be created based on the parameters.
186-
# @param create_ecommerce_estimate_request [CreateEcommerceEstimateRequest]
187-
# @param [Hash] opts the optional parameters
188-
# @option opts [Integer] :patch_version
189-
# @return [EstimateResponse]
190-
def create_ecommerce_estimate(create_ecommerce_estimate_request = {}, opts = {})
191-
_create_ecommerce_estimate_request = Patch::CreateEcommerceEstimateRequest.new(create_ecommerce_estimate_request)
192-
data, _status_code, _headers = create_ecommerce_estimate_with_http_info(_create_ecommerce_estimate_request, opts)
193-
data
194-
end
195-
196-
# Create an e-commerce estimate given the distance traveled in meters, package weight, and transportation method.
197-
# Creates a e-commerce estimate for the amount of CO2 to be compensated. An order in the `draft` state may be created based on the parameters.
198-
# @param create_ecommerce_estimate_request [CreateEcommerceEstimateRequest]
199-
# @param [Hash] opts the optional parameters
200-
# @option opts [Integer] :patch_version
201-
# @return [Array<(EstimateResponse, Integer, Hash)>] EstimateResponse data, response status code and response headers
202-
def create_ecommerce_estimate_with_http_info(create_ecommerce_estimate_request, opts = {})
203-
if @api_client.config.debugging
204-
@api_client.config.logger.debug 'Calling API: EstimatesApi.create_ecommerce_estimate ...'
205-
end
206-
# verify the required parameter 'create_ecommerce_estimate_request' is set
207-
if @api_client.config.client_side_validation && create_ecommerce_estimate_request.nil?
208-
fail ArgumentError, "Missing the required parameter 'create_ecommerce_estimate_request' when calling EstimatesApi.create_ecommerce_estimate"
209-
end
210-
# resource path
211-
local_var_path = '/v1/estimates/ecommerce'
212-
213-
# query parameters
214-
query_params = opts[:query_params] || {}
215-
216-
# header parameters
217-
header_params = opts[:header_params] || {}
218-
219-
# HTTP header 'Accept' (if needed)
220-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
221-
# HTTP header 'Content-Type'
222-
content_type = @api_client.select_header_content_type(['application/json'])
223-
if !content_type.nil?
224-
header_params['Content-Type'] = content_type
225-
end
226-
header_params['Patch-Version'] = 2
227-
header_params[:'Patch-Version'] = opts[:'patch_version'] if !opts[:'patch_version'].nil?
228-
229-
# form parameters
230-
form_params = opts[:form_params] || {}
231-
232-
# http body (model)
233-
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_ecommerce_estimate_request)
234-
235-
# return_type
236-
return_type = opts[:debug_return_type] || 'EstimateResponse'
237-
238-
# auth_names
239-
auth_names = opts[:debug_auth_names] || ['bearer_auth']
240-
241-
new_options = opts.merge(
242-
:operation => :"EstimatesApi.create_ecommerce_estimate",
243-
:header_params => header_params,
244-
:query_params => query_params,
245-
:form_params => form_params,
246-
:body => post_body,
247-
:auth_names => auth_names,
248-
:return_type => return_type
249-
)
250-
251-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
252-
if @api_client.config.debugging
253-
@api_client.config.logger.debug "API called: EstimatesApi#create_ecommerce_estimate\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
254-
end
255-
return data, status_code, headers
256-
end
257-
258183
# Create a flight estimate given the distance traveled in meters
259184
# Creates a flight estimate for the amount of CO2 to be compensated. An order in the `draft` state may be created based on the parameters, linked to the estimate.
260185
# @param create_flight_estimate_request [CreateFlightEstimateRequest]
@@ -834,4 +759,4 @@ def retrieve_estimates_with_http_info(opts = {})
834759
return data, status_code, headers
835760
end
836761
end
837-
end
762+
end

Diff for: lib/patch_ruby/api/order_line_items_api.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -266,4 +266,4 @@ def update_order_line_item_with_http_info(order_id, serial_number, update_order_
266266
return data, status_code, headers
267267
end
268268
end
269-
end
269+
end

Diff for: lib/patch_ruby/api/orders_api.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -460,4 +460,4 @@ def retrieve_orders_with_http_info(opts = {})
460460
return data, status_code, headers
461461
end
462462
end
463-
end
463+
end

Diff for: lib/patch_ruby/api/projects_api.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -174,4 +174,4 @@ def retrieve_projects_with_http_info(opts = {})
174174
return data, status_code, headers
175175
end
176176
end
177-
end
177+
end

Diff for: lib/patch_ruby/api/technology_types_api.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,4 @@ def retrieve_technology_types_with_http_info(opts = {})
8686
return data, status_code, headers
8787
end
8888
end
89-
end
89+
end

Diff for: lib/patch_ruby/api_client.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -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/2.3.0"
34+
@user_agent = "patch-ruby/2.3.1"
3535
@default_headers = {
3636
'Content-Type' => 'application/json',
3737
'User-Agent' => @user_agent

Diff for: lib/patch_ruby/configuration.rb

+1-2
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,7 @@ def server_settings
242242
end
243243

244244
def operation_server_settings
245-
{
246-
}
245+
{}
247246
end
248247

249248
# Returns URL based on server settings

0 commit comments

Comments
 (0)