@@ -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 ,
@@ -39,7 +38,7 @@ def initialize(api_client = ApiClient.default)
3938 # @option opts [Integer] :patch_version
4039 # @return [EstimateResponse]
4140 def create_air_shipping_estimate ( create_air_shipping_estimate_request = { } , opts = { } )
42- _create_air_shipping_estimate_request = Patch ::CreateAirShippingEstimateRequest . new ( create_air_shipping_estimate_request )
41+ _create_air_shipping_estimate_request = Patch ::CreateAirShippingEstimateRequest . new ( create_air_shipping_estimate_request )
4342 data , _status_code , _headers = create_air_shipping_estimate_with_http_info ( _create_air_shipping_estimate_request , opts )
4443 data
4544 end
@@ -72,7 +71,7 @@ def create_air_shipping_estimate_with_http_info(create_air_shipping_estimate_req
7271 # HTTP header 'Content-Type'
7372 content_type = @api_client . select_header_content_type ( [ 'application/json' ] )
7473 if !content_type . nil?
75- header_params [ 'Content-Type' ] = content_type
74+ header_params [ 'Content-Type' ] = content_type
7675 end
7776 header_params [ 'Patch-Version' ] = 2
7877 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
113112 # @option opts [Integer] :patch_version
114113 # @return [EstimateResponse]
115114 def create_bitcoin_estimate ( create_bitcoin_estimate_request = { } , opts = { } )
116- _create_bitcoin_estimate_request = Patch ::CreateBitcoinEstimateRequest . new ( create_bitcoin_estimate_request )
115+ _create_bitcoin_estimate_request = Patch ::CreateBitcoinEstimateRequest . new ( create_bitcoin_estimate_request )
117116 data , _status_code , _headers = create_bitcoin_estimate_with_http_info ( _create_bitcoin_estimate_request , opts )
118117 data
119118 end
@@ -146,7 +145,7 @@ def create_bitcoin_estimate_with_http_info(create_bitcoin_estimate_request, opts
146145 # HTTP header 'Content-Type'
147146 content_type = @api_client . select_header_content_type ( [ 'application/json' ] )
148147 if !content_type . nil?
149- header_params [ 'Content-Type' ] = content_type
148+ header_params [ 'Content-Type' ] = content_type
150149 end
151150 header_params [ 'Patch-Version' ] = 2
152151 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
187186 # @option opts [Integer] :patch_version
188187 # @return [EstimateResponse]
189188 def create_flight_estimate ( create_flight_estimate_request = { } , opts = { } )
190- _create_flight_estimate_request = Patch ::CreateFlightEstimateRequest . new ( create_flight_estimate_request )
189+ _create_flight_estimate_request = Patch ::CreateFlightEstimateRequest . new ( create_flight_estimate_request )
191190 data , _status_code , _headers = create_flight_estimate_with_http_info ( _create_flight_estimate_request , opts )
192191 data
193192 end
@@ -220,7 +219,7 @@ def create_flight_estimate_with_http_info(create_flight_estimate_request, opts =
220219 # HTTP header 'Content-Type'
221220 content_type = @api_client . select_header_content_type ( [ 'application/json' ] )
222221 if !content_type . nil?
223- header_params [ 'Content-Type' ] = content_type
222+ header_params [ 'Content-Type' ] = content_type
224223 end
225224 header_params [ 'Patch-Version' ] = 2
226225 header_params [ :'Patch-Version' ] = opts [ :'patch_version' ] if !opts [ :'patch_version' ] . nil?
@@ -254,88 +253,14 @@ 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]
334259 # @param [Hash] opts the optional parameters
335260 # @option opts [Integer] :patch_version
336261 # @return [EstimateResponse]
337262 def create_mass_estimate ( create_mass_estimate_request = { } , opts = { } )
338- _create_mass_estimate_request = Patch ::CreateMassEstimateRequest . new ( create_mass_estimate_request )
263+ _create_mass_estimate_request = Patch ::CreateMassEstimateRequest . new ( create_mass_estimate_request )
339264 data , _status_code , _headers = create_mass_estimate_with_http_info ( _create_mass_estimate_request , opts )
340265 data
341266 end
@@ -368,7 +293,7 @@ def create_mass_estimate_with_http_info(create_mass_estimate_request, opts = {})
368293 # HTTP header 'Content-Type'
369294 content_type = @api_client . select_header_content_type ( [ 'application/json' ] )
370295 if !content_type . nil?
371- header_params [ 'Content-Type' ] = content_type
296+ header_params [ 'Content-Type' ] = content_type
372297 end
373298 header_params [ 'Patch-Version' ] = 2
374299 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 = {})
409334 # @option opts [Integer] :patch_version
410335 # @return [EstimateResponse]
411336 def create_rail_shipping_estimate ( create_rail_shipping_estimate_request = { } , opts = { } )
412- _create_rail_shipping_estimate_request = Patch ::CreateRailShippingEstimateRequest . new ( create_rail_shipping_estimate_request )
337+ _create_rail_shipping_estimate_request = Patch ::CreateRailShippingEstimateRequest . new ( create_rail_shipping_estimate_request )
413338 data , _status_code , _headers = create_rail_shipping_estimate_with_http_info ( _create_rail_shipping_estimate_request , opts )
414339 data
415340 end
@@ -442,7 +367,7 @@ def create_rail_shipping_estimate_with_http_info(create_rail_shipping_estimate_r
442367 # HTTP header 'Content-Type'
443368 content_type = @api_client . select_header_content_type ( [ 'application/json' ] )
444369 if !content_type . nil?
445- header_params [ 'Content-Type' ] = content_type
370+ header_params [ 'Content-Type' ] = content_type
446371 end
447372 header_params [ 'Patch-Version' ] = 2
448373 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
483408 # @option opts [Integer] :patch_version
484409 # @return [EstimateResponse]
485410 def create_road_shipping_estimate ( create_road_shipping_estimate_request = { } , opts = { } )
486- _create_road_shipping_estimate_request = Patch ::CreateRoadShippingEstimateRequest . new ( create_road_shipping_estimate_request )
411+ _create_road_shipping_estimate_request = Patch ::CreateRoadShippingEstimateRequest . new ( create_road_shipping_estimate_request )
487412 data , _status_code , _headers = create_road_shipping_estimate_with_http_info ( _create_road_shipping_estimate_request , opts )
488413 data
489414 end
@@ -516,7 +441,7 @@ def create_road_shipping_estimate_with_http_info(create_road_shipping_estimate_r
516441 # HTTP header 'Content-Type'
517442 content_type = @api_client . select_header_content_type ( [ 'application/json' ] )
518443 if !content_type . nil?
519- header_params [ 'Content-Type' ] = content_type
444+ header_params [ 'Content-Type' ] = content_type
520445 end
521446 header_params [ 'Patch-Version' ] = 2
522447 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
557482 # @option opts [Integer] :patch_version
558483 # @return [EstimateResponse]
559484 def create_sea_shipping_estimate ( create_sea_shipping_estimate_request = { } , opts = { } )
560- _create_sea_shipping_estimate_request = Patch ::CreateSeaShippingEstimateRequest . new ( create_sea_shipping_estimate_request )
485+ _create_sea_shipping_estimate_request = Patch ::CreateSeaShippingEstimateRequest . new ( create_sea_shipping_estimate_request )
561486 data , _status_code , _headers = create_sea_shipping_estimate_with_http_info ( _create_sea_shipping_estimate_request , opts )
562487 data
563488 end
@@ -590,7 +515,7 @@ def create_sea_shipping_estimate_with_http_info(create_sea_shipping_estimate_req
590515 # HTTP header 'Content-Type'
591516 content_type = @api_client . select_header_content_type ( [ 'application/json' ] )
592517 if !content_type . nil?
593- header_params [ 'Content-Type' ] = content_type
518+ header_params [ 'Content-Type' ] = content_type
594519 end
595520 header_params [ 'Patch-Version' ] = 2
596521 header_params [ :'Patch-Version' ] = opts [ :'patch_version' ] if !opts [ :'patch_version' ] . nil?
@@ -759,4 +684,4 @@ def retrieve_estimates_with_http_info(opts = {})
759684 return data , status_code , headers
760685 end
761686 end
762- end
687+ end
0 commit comments