@@ -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\n Data: #{ data . inspect } \n Status code: #{ status_code } \n Headers: #{ 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
0 commit comments