@@ -25,10 +25,9 @@ class EstimatesApi
2525 def initialize ( api_client = ApiClient . default )
2626 @api_client = api_client
2727 end
28-
2928 # Create an estimate based on mass of CO2
30- # 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.
31- # @param create_mass_estimate_request [CreateMassEstimateRequest]
29+ # 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.
30+ # @param create_mass_estimate_request [CreateMassEstimateRequest]
3231 # @param [Hash] opts the optional parameters
3332 # @return [EstimateResponse]
3433 def create_mass_estimate ( create_mass_estimate_request , opts = { } )
@@ -37,8 +36,8 @@ def create_mass_estimate(create_mass_estimate_request, opts = {})
3736 end
3837
3938 # Create an estimate based on mass of CO2
40- # 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.
41- # @param create_mass_estimate_request [CreateMassEstimateRequest]
39+ # 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.
40+ # @param create_mass_estimate_request [CreateMassEstimateRequest]
4241 # @param [Hash] opts the optional parameters
4342 # @return [Array<(EstimateResponse, Integer, Hash)>] EstimateResponse data, response status code and response headers
4443 def create_mass_estimate_with_http_info ( create_mass_estimate_request , opts = { } )
@@ -49,7 +48,6 @@ def create_mass_estimate_with_http_info(create_mass_estimate_request, opts = {})
4948 if @api_client . config . client_side_validation && create_mass_estimate_request . nil?
5049 fail ArgumentError , "Missing the required parameter 'create_mass_estimate_request' when calling EstimatesApi.create_mass_estimate"
5150 end
52-
5351 # resource path
5452 local_var_path = '/v1/estimates/mass'
5553
@@ -67,10 +65,10 @@ def create_mass_estimate_with_http_info(create_mass_estimate_request, opts = {})
6765 form_params = opts [ :form_params ] || { }
6866
6967 # http body (model)
70- post_body = opts [ :body ] || @api_client . object_to_http_body ( create_mass_estimate_request )
68+ post_body = opts [ :body ] || @api_client . object_to_http_body ( create_mass_estimate_request )
7169
7270 # return_type
73- return_type = opts [ :return_type ] || 'EstimateResponse'
71+ return_type = opts [ :return_type ] || 'EstimateResponse'
7472
7573 # auth_names
7674 auth_names = opts [ :auth_names ] || [ 'bearer_auth' ]
@@ -92,8 +90,8 @@ def create_mass_estimate_with_http_info(create_mass_estimate_request, opts = {})
9290 end
9391
9492 # Retrieves an estimate
95- # Retrieves a given estimate and its associated order. You can only retrieve estimates associated with the organization you are querying for.
96- # @param id [String]
93+ # Retrieves a given estimate and its associated order. You can only retrieve estimates associated with the organization you are querying for.
94+ # @param id [String]
9795 # @param [Hash] opts the optional parameters
9896 # @return [EstimateResponse]
9997 def retrieve_estimate ( id , opts = { } )
@@ -102,8 +100,8 @@ def retrieve_estimate(id, opts = {})
102100 end
103101
104102 # Retrieves an estimate
105- # Retrieves a given estimate and its associated order. You can only retrieve estimates associated with the organization you are querying for.
106- # @param id [String]
103+ # Retrieves a given estimate and its associated order. You can only retrieve estimates associated with the organization you are querying for.
104+ # @param id [String]
107105 # @param [Hash] opts the optional parameters
108106 # @return [Array<(EstimateResponse, Integer, Hash)>] EstimateResponse data, response status code and response headers
109107 def retrieve_estimate_with_http_info ( id , opts = { } )
@@ -114,7 +112,6 @@ def retrieve_estimate_with_http_info(id, opts = {})
114112 if @api_client . config . client_side_validation && id . nil?
115113 fail ArgumentError , "Missing the required parameter 'id' when calling EstimatesApi.retrieve_estimate"
116114 end
117-
118115 # resource path
119116 local_var_path = '/v1/estimates/{id}' . sub ( '{' + 'id' + '}' , CGI . escape ( id . to_s ) )
120117
@@ -130,10 +127,10 @@ def retrieve_estimate_with_http_info(id, opts = {})
130127 form_params = opts [ :form_params ] || { }
131128
132129 # http body (model)
133- post_body = opts [ :body ]
130+ post_body = opts [ :body ]
134131
135132 # return_type
136- return_type = opts [ :return_type ] || 'EstimateResponse'
133+ return_type = opts [ :return_type ] || 'EstimateResponse'
137134
138135 # auth_names
139136 auth_names = opts [ :auth_names ] || [ 'bearer_auth' ]
@@ -155,19 +152,19 @@ def retrieve_estimate_with_http_info(id, opts = {})
155152 end
156153
157154 # Retrieves a list of estimates
158- # Retrieves a list of estimates and their associated orders. You can only retrieve estimates associated with the organization you are querying for.
155+ # Retrieves a list of estimates and their associated orders. You can only retrieve estimates associated with the organization you are querying for.
159156 # @param [Hash] opts the optional parameters
160- # @option opts [Integer] :page
157+ # @option opts [Integer] :page
161158 # @return [EstimateListResponse]
162159 def retrieve_estimates ( opts = { } )
163160 data , _status_code , _headers = retrieve_estimates_with_http_info ( opts )
164161 data
165162 end
166163
167164 # Retrieves a list of estimates
168- # Retrieves a list of estimates and their associated orders. You can only retrieve estimates associated with the organization you are querying for.
165+ # Retrieves a list of estimates and their associated orders. You can only retrieve estimates associated with the organization you are querying for.
169166 # @param [Hash] opts the optional parameters
170- # @option opts [Integer] :page
167+ # @option opts [Integer] :page
171168 # @return [Array<(EstimateListResponse, Integer, Hash)>] EstimateListResponse data, response status code and response headers
172169 def retrieve_estimates_with_http_info ( opts = { } )
173170 if @api_client . config . debugging
@@ -189,10 +186,10 @@ def retrieve_estimates_with_http_info(opts = {})
189186 form_params = opts [ :form_params ] || { }
190187
191188 # http body (model)
192- post_body = opts [ :body ]
189+ post_body = opts [ :body ]
193190
194191 # return_type
195- return_type = opts [ :return_type ] || 'EstimateListResponse'
192+ return_type = opts [ :return_type ] || 'EstimateListResponse'
196193
197194 # auth_names
198195 auth_names = opts [ :auth_names ] || [ 'bearer_auth' ]
0 commit comments