@@ -17,7 +17,6 @@ class EstimatesApi
1717 OPERATIONS = [
1818 :create_air_shipping_estimate ,
1919 :create_bitcoin_estimate ,
20- :create_flight_estimate ,
2120 :create_mass_estimate ,
2221 :create_rail_shipping_estimate ,
2322 :create_road_shipping_estimate ,
@@ -179,80 +178,6 @@ def create_bitcoin_estimate_with_http_info(create_bitcoin_estimate_request, opts
179178 return data , status_code , headers
180179 end
181180
182- # Create a flight estimate given the distance traveled in meters
183- # 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.
184- # @param create_flight_estimate_request [CreateFlightEstimateRequest]
185- # @param [Hash] opts the optional parameters
186- # @option opts [Integer] :patch_version
187- # @return [EstimateResponse]
188- def create_flight_estimate ( create_flight_estimate_request = { } , opts = { } )
189- _create_flight_estimate_request = Patch ::CreateFlightEstimateRequest . new ( create_flight_estimate_request )
190- data , _status_code , _headers = create_flight_estimate_with_http_info ( _create_flight_estimate_request , opts )
191- data
192- end
193-
194- # Create a flight estimate given the distance traveled in meters
195- # 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.
196- # @param create_flight_estimate_request [CreateFlightEstimateRequest]
197- # @param [Hash] opts the optional parameters
198- # @option opts [Integer] :patch_version
199- # @return [Array<(EstimateResponse, Integer, Hash)>] EstimateResponse data, response status code and response headers
200- def create_flight_estimate_with_http_info ( create_flight_estimate_request , opts = { } )
201- if @api_client . config . debugging
202- @api_client . config . logger . debug 'Calling API: EstimatesApi.create_flight_estimate ...'
203- end
204- # verify the required parameter 'create_flight_estimate_request' is set
205- if @api_client . config . client_side_validation && create_flight_estimate_request . nil?
206- fail ArgumentError , "Missing the required parameter 'create_flight_estimate_request' when calling EstimatesApi.create_flight_estimate"
207- end
208- # resource path
209- local_var_path = '/v1/estimates/flight'
210-
211- # query parameters
212- query_params = opts [ :query_params ] || { }
213-
214- # header parameters
215- header_params = opts [ :header_params ] || { }
216-
217- # HTTP header 'Accept' (if needed)
218- header_params [ 'Accept' ] = @api_client . select_header_accept ( [ 'application/json' ] )
219- # HTTP header 'Content-Type'
220- content_type = @api_client . select_header_content_type ( [ 'application/json' ] )
221- if !content_type . nil?
222- header_params [ 'Content-Type' ] = content_type
223- end
224- header_params [ 'Patch-Version' ] = 2
225- header_params [ :'Patch-Version' ] = opts [ :'patch_version' ] if !opts [ :'patch_version' ] . nil?
226-
227- # form parameters
228- form_params = opts [ :form_params ] || { }
229-
230- # http body (model)
231- post_body = opts [ :debug_body ] || @api_client . object_to_http_body ( create_flight_estimate_request )
232-
233- # return_type
234- return_type = opts [ :debug_return_type ] || 'EstimateResponse'
235-
236- # auth_names
237- auth_names = opts [ :debug_auth_names ] || [ 'bearer_auth' ]
238-
239- new_options = opts . merge (
240- :operation => :"EstimatesApi.create_flight_estimate" ,
241- :header_params => header_params ,
242- :query_params => query_params ,
243- :form_params => form_params ,
244- :body => post_body ,
245- :auth_names => auth_names ,
246- :return_type => return_type
247- )
248-
249- data , status_code , headers = @api_client . call_api ( :POST , local_var_path , new_options )
250- if @api_client . config . debugging
251- @api_client . config . logger . debug "API called: EstimatesApi#create_flight_estimate\n Data: #{ data . inspect } \n Status code: #{ status_code } \n Headers: #{ headers } "
252- end
253- return data , status_code , headers
254- end
255-
256181 # Create an estimate based on mass of CO2
257182 # 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.
258183 # @param create_mass_estimate_request [CreateMassEstimateRequest]
0 commit comments