@@ -25,9 +25,10 @@ class EstimatesApi
2525 def initialize ( api_client = ApiClient . default )
2626 @api_client = api_client
2727 end
28+
2829 # Create an estimate based on mass of CO2
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]
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]
3132 # @param [Hash] opts the optional parameters
3233 # @return [EstimateResponse]
3334 def create_mass_estimate ( create_mass_estimate_request , opts = { } )
@@ -36,8 +37,8 @@ def create_mass_estimate(create_mass_estimate_request, opts = {})
3637 end
3738
3839 # Create an estimate based on mass of CO2
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]
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]
4142 # @param [Hash] opts the optional parameters
4243 # @return [Array<(EstimateResponse, Integer, Hash)>] EstimateResponse data, response status code and response headers
4344 def create_mass_estimate_with_http_info ( create_mass_estimate_request , opts = { } )
@@ -48,6 +49,7 @@ def create_mass_estimate_with_http_info(create_mass_estimate_request, opts = {})
4849 if @api_client . config . client_side_validation && create_mass_estimate_request . nil?
4950 fail ArgumentError , "Missing the required parameter 'create_mass_estimate_request' when calling EstimatesApi.create_mass_estimate"
5051 end
52+
5153 # resource path
5254 local_var_path = '/v1/estimates/mass'
5355
@@ -65,10 +67,10 @@ def create_mass_estimate_with_http_info(create_mass_estimate_request, opts = {})
6567 form_params = opts [ :form_params ] || { }
6668
6769 # http body (model)
68- post_body = opts [ :body ] || @api_client . object_to_http_body ( create_mass_estimate_request )
70+ post_body = opts [ :body ] || @api_client . object_to_http_body ( create_mass_estimate_request )
6971
7072 # return_type
71- return_type = opts [ :return_type ] || 'EstimateResponse'
73+ return_type = opts [ :return_type ] || 'EstimateResponse'
7274
7375 # auth_names
7476 auth_names = opts [ :auth_names ] || [ 'bearer_auth' ]
@@ -90,8 +92,8 @@ def create_mass_estimate_with_http_info(create_mass_estimate_request, opts = {})
9092 end
9193
9294 # Retrieves an estimate
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]
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]
9597 # @param [Hash] opts the optional parameters
9698 # @return [EstimateResponse]
9799 def retrieve_estimate ( id , opts = { } )
@@ -100,8 +102,8 @@ def retrieve_estimate(id, opts = {})
100102 end
101103
102104 # Retrieves an estimate
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]
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]
105107 # @param [Hash] opts the optional parameters
106108 # @return [Array<(EstimateResponse, Integer, Hash)>] EstimateResponse data, response status code and response headers
107109 def retrieve_estimate_with_http_info ( id , opts = { } )
@@ -112,6 +114,7 @@ def retrieve_estimate_with_http_info(id, opts = {})
112114 if @api_client . config . client_side_validation && id . nil?
113115 fail ArgumentError , "Missing the required parameter 'id' when calling EstimatesApi.retrieve_estimate"
114116 end
117+
115118 # resource path
116119 local_var_path = '/v1/estimates/{id}' . sub ( '{' + 'id' + '}' , CGI . escape ( id . to_s ) )
117120
@@ -127,10 +130,10 @@ def retrieve_estimate_with_http_info(id, opts = {})
127130 form_params = opts [ :form_params ] || { }
128131
129132 # http body (model)
130- post_body = opts [ :body ]
133+ post_body = opts [ :body ]
131134
132135 # return_type
133- return_type = opts [ :return_type ] || 'EstimateResponse'
136+ return_type = opts [ :return_type ] || 'EstimateResponse'
134137
135138 # auth_names
136139 auth_names = opts [ :auth_names ] || [ 'bearer_auth' ]
@@ -152,19 +155,19 @@ def retrieve_estimate_with_http_info(id, opts = {})
152155 end
153156
154157 # Retrieves a list of estimates
155- # Retrieves a list of estimates and their associated orders. You can only retrieve estimates associated with the organization you are querying for.
158+ # Retrieves a list of estimates and their associated orders. You can only retrieve estimates associated with the organization you are querying for.
156159 # @param [Hash] opts the optional parameters
157- # @option opts [Integer] :page
160+ # @option opts [Integer] :page
158161 # @return [EstimateListResponse]
159162 def retrieve_estimates ( opts = { } )
160163 data , _status_code , _headers = retrieve_estimates_with_http_info ( opts )
161164 data
162165 end
163166
164167 # Retrieves a list of estimates
165- # Retrieves a list of estimates and their associated orders. You can only retrieve estimates associated with the organization you are querying for.
168+ # Retrieves a list of estimates and their associated orders. You can only retrieve estimates associated with the organization you are querying for.
166169 # @param [Hash] opts the optional parameters
167- # @option opts [Integer] :page
170+ # @option opts [Integer] :page
168171 # @return [Array<(EstimateListResponse, Integer, Hash)>] EstimateListResponse data, response status code and response headers
169172 def retrieve_estimates_with_http_info ( opts = { } )
170173 if @api_client . config . debugging
@@ -186,10 +189,10 @@ def retrieve_estimates_with_http_info(opts = {})
186189 form_params = opts [ :form_params ] || { }
187190
188191 # http body (model)
189- post_body = opts [ :body ]
192+ post_body = opts [ :body ]
190193
191194 # return_type
192- return_type = opts [ :return_type ] || 'EstimateListResponse'
195+ return_type = opts [ :return_type ] || 'EstimateListResponse'
193196
194197 # auth_names
195198 auth_names = opts [ :auth_names ] || [ 'bearer_auth' ]
0 commit comments