@@ -18,7 +18,6 @@ class EstimatesApi
1818 :create_air_shipping_estimate ,
1919 :create_bitcoin_estimate ,
2020 :create_flight_estimate ,
21- :create_hotel_estimate ,
2221 :create_mass_estimate ,
2322 :create_rail_shipping_estimate ,
2423 :create_road_shipping_estimate ,
@@ -254,80 +253,6 @@ def create_flight_estimate_with_http_info(create_flight_estimate_request, opts =
254253 return data , status_code , headers
255254 end
256255
257- # Create a hotel estimate.
258- # 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.
259- # @param create_hotel_estimate_request [CreateHotelEstimateRequest]
260- # @param [Hash] opts the optional parameters
261- # @option opts [Integer] :patch_version
262- # @return [EstimateResponse]
263- def create_hotel_estimate ( create_hotel_estimate_request = { } , opts = { } )
264- _create_hotel_estimate_request = Patch ::CreateHotelEstimateRequest . new ( create_hotel_estimate_request )
265- data , _status_code , _headers = create_hotel_estimate_with_http_info ( _create_hotel_estimate_request , opts )
266- data
267- end
268-
269- # Create a hotel estimate.
270- # 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.
271- # @param create_hotel_estimate_request [CreateHotelEstimateRequest]
272- # @param [Hash] opts the optional parameters
273- # @option opts [Integer] :patch_version
274- # @return [Array<(EstimateResponse, Integer, Hash)>] EstimateResponse data, response status code and response headers
275- def create_hotel_estimate_with_http_info ( create_hotel_estimate_request , opts = { } )
276- if @api_client . config . debugging
277- @api_client . config . logger . debug 'Calling API: EstimatesApi.create_hotel_estimate ...'
278- end
279- # verify the required parameter 'create_hotel_estimate_request' is set
280- if @api_client . config . client_side_validation && create_hotel_estimate_request . nil?
281- fail ArgumentError , "Missing the required parameter 'create_hotel_estimate_request' when calling EstimatesApi.create_hotel_estimate"
282- end
283- # resource path
284- local_var_path = '/v1/estimates/hotel'
285-
286- # query parameters
287- query_params = opts [ :query_params ] || { }
288-
289- # header parameters
290- header_params = opts [ :header_params ] || { }
291-
292- # HTTP header 'Accept' (if needed)
293- header_params [ 'Accept' ] = @api_client . select_header_accept ( [ 'application/json' ] )
294- # HTTP header 'Content-Type'
295- content_type = @api_client . select_header_content_type ( [ 'application/json' ] )
296- if !content_type . nil?
297- header_params [ 'Content-Type' ] = content_type
298- end
299- header_params [ 'Patch-Version' ] = 2
300- header_params [ :'Patch-Version' ] = opts [ :'patch_version' ] if !opts [ :'patch_version' ] . nil?
301-
302- # form parameters
303- form_params = opts [ :form_params ] || { }
304-
305- # http body (model)
306- post_body = opts [ :debug_body ] || @api_client . object_to_http_body ( create_hotel_estimate_request )
307-
308- # return_type
309- return_type = opts [ :debug_return_type ] || 'EstimateResponse'
310-
311- # auth_names
312- auth_names = opts [ :debug_auth_names ] || [ 'bearer_auth' ]
313-
314- new_options = opts . merge (
315- :operation => :"EstimatesApi.create_hotel_estimate" ,
316- :header_params => header_params ,
317- :query_params => query_params ,
318- :form_params => form_params ,
319- :body => post_body ,
320- :auth_names => auth_names ,
321- :return_type => return_type
322- )
323-
324- data , status_code , headers = @api_client . call_api ( :POST , local_var_path , new_options )
325- if @api_client . config . debugging
326- @api_client . config . logger . debug "API called: EstimatesApi#create_hotel_estimate\n Data: #{ data . inspect } \n Status code: #{ status_code } \n Headers: #{ headers } "
327- end
328- return data , status_code , headers
329- end
330-
331256 # Create an estimate based on mass of CO2
332257 # 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.
333258 # @param create_mass_estimate_request [CreateMassEstimateRequest]
0 commit comments