@@ -28,11 +28,13 @@ class EstimatesApi(object):
28
28
Do not edit the class manually.
29
29
"""
30
30
31
+ ALLOWED_QUERY_PARAMS = ["mass_g" , "price_cents_usd" , "project_id" , "page" ]
32
+
31
33
def __init__ (self , api_client = None ):
32
34
self .api_client = api_client
33
35
34
36
def create_mass_estimate (
35
- self , opts = {}, create_mass_estimate_request = {}, ** kwargs
37
+ self , create_mass_estimate_request = {}, ** kwargs
36
38
): # noqa: E501
37
39
"""Create an estimate based on mass of CO2 # noqa: E501
38
40
@@ -44,7 +46,6 @@ def create_mass_estimate(
44
46
45
47
:param async_req bool: execute request asynchronously
46
48
:param CreateMassEstimateRequest create_mass_estimate_request: (required)
47
- :param dict opts: dictionary holding the optional arguments for the query (optional)
48
49
:param _preload_content: if False, the urllib3.HTTPResponse object will
49
50
be returned without reading/decoding response
50
51
data. Default is True.
@@ -58,11 +59,11 @@ def create_mass_estimate(
58
59
"""
59
60
kwargs ["_return_http_data_only" ] = True
60
61
return self .create_mass_estimate_with_http_info (
61
- opts , create_mass_estimate_request , ** kwargs
62
+ create_mass_estimate_request , ** kwargs
62
63
) # noqa: E501
63
64
64
65
def create_mass_estimate_with_http_info (
65
- self , opts , create_mass_estimate_request , ** kwargs
66
+ self , create_mass_estimate_request , ** kwargs
66
67
): # noqa: E501
67
68
"""Create an estimate based on mass of CO2 # noqa: E501
68
69
@@ -74,7 +75,6 @@ def create_mass_estimate_with_http_info(
74
75
75
76
:param async_req bool: execute request asynchronously
76
77
:param CreateMassEstimateRequest create_mass_estimate_request: (required)
77
- :param dict opts: dictionary holding the optional arguments for the query (required)
78
78
:param _return_http_data_only: response data without head status code
79
79
and headers
80
80
:param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -96,6 +96,10 @@ def create_mass_estimate_with_http_info(
96
96
all_params .append ("_return_http_data_only" )
97
97
all_params .append ("_preload_content" )
98
98
all_params .append ("_request_timeout" )
99
+ all_params .append ("mass_g" )
100
+ all_params .append ("price_cents_usd" )
101
+ all_params .append ("project_id" )
102
+ all_params .append ("metadata" )
99
103
100
104
for key , val in six .iteritems (local_var_params ["kwargs" ]):
101
105
if key not in all_params :
@@ -119,8 +123,8 @@ def create_mass_estimate_with_http_info(
119
123
path_params = {}
120
124
121
125
query_params = []
122
- for key in opts :
123
- query_params .append ([key , opts .get (key )])
126
+ for key in kwargs :
127
+ query_params .append ([key , kwargs .get (key )])
124
128
125
129
header_params = {}
126
130
@@ -165,7 +169,7 @@ def create_mass_estimate_with_http_info(
165
169
collection_formats = collection_formats ,
166
170
)
167
171
168
- def retrieve_estimate (self , opts = {}, id = {}, ** kwargs ): # noqa: E501
172
+ def retrieve_estimate (self , id = {}, ** kwargs ): # noqa: E501
169
173
"""Retrieves an estimate # noqa: E501
170
174
171
175
Retrieves a given estimate and its associated order. You can only retrieve estimates associated with the organization you are querying for. # noqa: E501
@@ -176,7 +180,6 @@ def retrieve_estimate(self, opts={}, id={}, **kwargs): # noqa: E501
176
180
177
181
:param async_req bool: execute request asynchronously
178
182
:param str id: (required)
179
- :param dict opts: dictionary holding the optional arguments for the query (optional)
180
183
:param _preload_content: if False, the urllib3.HTTPResponse object will
181
184
be returned without reading/decoding response
182
185
data. Default is True.
@@ -189,9 +192,9 @@ def retrieve_estimate(self, opts={}, id={}, **kwargs): # noqa: E501
189
192
returns the request thread.
190
193
"""
191
194
kwargs ["_return_http_data_only" ] = True
192
- return self .retrieve_estimate_with_http_info (opts , id , ** kwargs ) # noqa: E501
195
+ return self .retrieve_estimate_with_http_info (id , ** kwargs ) # noqa: E501
193
196
194
- def retrieve_estimate_with_http_info (self , opts , id , ** kwargs ): # noqa: E501
197
+ def retrieve_estimate_with_http_info (self , id , ** kwargs ): # noqa: E501
195
198
"""Retrieves an estimate # noqa: E501
196
199
197
200
Retrieves a given estimate and its associated order. You can only retrieve estimates associated with the organization you are querying for. # noqa: E501
@@ -202,7 +205,6 @@ def retrieve_estimate_with_http_info(self, opts, id, **kwargs): # noqa: E501
202
205
203
206
:param async_req bool: execute request asynchronously
204
207
:param str id: (required)
205
- :param dict opts: dictionary holding the optional arguments for the query (required)
206
208
:param _return_http_data_only: response data without head status code
207
209
and headers
208
210
:param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -224,6 +226,10 @@ def retrieve_estimate_with_http_info(self, opts, id, **kwargs): # noqa: E501
224
226
all_params .append ("_return_http_data_only" )
225
227
all_params .append ("_preload_content" )
226
228
all_params .append ("_request_timeout" )
229
+ all_params .append ("mass_g" )
230
+ all_params .append ("price_cents_usd" )
231
+ all_params .append ("project_id" )
232
+ all_params .append ("metadata" )
227
233
228
234
for key , val in six .iteritems (local_var_params ["kwargs" ]):
229
235
if key not in all_params :
@@ -246,8 +252,8 @@ def retrieve_estimate_with_http_info(self, opts, id, **kwargs): # noqa: E501
246
252
path_params ["id" ] = local_var_params ["id" ] # noqa: E501
247
253
248
254
query_params = []
249
- for key in opts :
250
- query_params .append ([key , opts .get (key )])
255
+ for key in kwargs :
256
+ query_params .append ([key , kwargs .get (key )])
251
257
252
258
header_params = {}
253
259
@@ -283,7 +289,7 @@ def retrieve_estimate_with_http_info(self, opts, id, **kwargs): # noqa: E501
283
289
collection_formats = collection_formats ,
284
290
)
285
291
286
- def retrieve_estimates (self , opts = {}, ** kwargs ): # noqa: E501
292
+ def retrieve_estimates (self , ** kwargs ): # noqa: E501
287
293
"""Retrieves a list of estimates # noqa: E501
288
294
289
295
Retrieves a list of estimates and their associated orders. You can only retrieve estimates associated with the organization you are querying for. # noqa: E501
@@ -294,7 +300,6 @@ def retrieve_estimates(self, opts={}, **kwargs): # noqa: E501
294
300
295
301
:param async_req bool: execute request asynchronously
296
302
:param int page:
297
- :param dict opts: dictionary holding the optional arguments for the query (optional)
298
303
:param _preload_content: if False, the urllib3.HTTPResponse object will
299
304
be returned without reading/decoding response
300
305
data. Default is True.
@@ -307,9 +312,9 @@ def retrieve_estimates(self, opts={}, **kwargs): # noqa: E501
307
312
returns the request thread.
308
313
"""
309
314
kwargs ["_return_http_data_only" ] = True
310
- return self .retrieve_estimates_with_http_info (opts , ** kwargs ) # noqa: E501
315
+ return self .retrieve_estimates_with_http_info (** kwargs ) # noqa: E501
311
316
312
- def retrieve_estimates_with_http_info (self , opts , ** kwargs ): # noqa: E501
317
+ def retrieve_estimates_with_http_info (self , ** kwargs ): # noqa: E501
313
318
"""Retrieves a list of estimates # noqa: E501
314
319
315
320
Retrieves a list of estimates and their associated orders. You can only retrieve estimates associated with the organization you are querying for. # noqa: E501
@@ -320,7 +325,6 @@ def retrieve_estimates_with_http_info(self, opts, **kwargs): # noqa: E501
320
325
321
326
:param async_req bool: execute request asynchronously
322
327
:param int page:
323
- :param dict opts: dictionary holding the optional arguments for the query (required)
324
328
:param _return_http_data_only: response data without head status code
325
329
and headers
326
330
:param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -342,6 +346,10 @@ def retrieve_estimates_with_http_info(self, opts, **kwargs): # noqa: E501
342
346
all_params .append ("_return_http_data_only" )
343
347
all_params .append ("_preload_content" )
344
348
all_params .append ("_request_timeout" )
349
+ all_params .append ("mass_g" )
350
+ all_params .append ("price_cents_usd" )
351
+ all_params .append ("project_id" )
352
+ all_params .append ("metadata" )
345
353
346
354
for key , val in six .iteritems (local_var_params ["kwargs" ]):
347
355
if key not in all_params :
@@ -357,8 +365,8 @@ def retrieve_estimates_with_http_info(self, opts, **kwargs): # noqa: E501
357
365
path_params = {}
358
366
359
367
query_params = []
360
- for key in opts :
361
- query_params .append ([key , opts .get (key )])
368
+ for key in kwargs :
369
+ query_params .append ([key , kwargs .get (key )])
362
370
if "page" in local_var_params :
363
371
query_params .append (("page" , local_var_params ["page" ])) # noqa: E501
364
372
0 commit comments