@@ -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
@@ -58,11 +60,11 @@ def create_mass_estimate(
58
60
"""
59
61
kwargs ["_return_http_data_only" ] = True
60
62
return self .create_mass_estimate_with_http_info (
61
- opts , create_mass_estimate_request , ** kwargs
63
+ create_mass_estimate_request , ** kwargs
62
64
) # noqa: E501
63
65
64
66
def create_mass_estimate_with_http_info (
65
- self , opts , create_mass_estimate_request , ** kwargs
67
+ self , create_mass_estimate_request , ** kwargs
66
68
): # noqa: E501
67
69
"""Create an estimate based on mass of CO2 # noqa: E501
68
70
@@ -74,7 +76,6 @@ def create_mass_estimate_with_http_info(
74
76
75
77
:param async_req bool: execute request asynchronously
76
78
:param CreateMassEstimateRequest create_mass_estimate_request: (required)
77
- :param dict opts: dictionary holding the optional arguments for the query (required)
78
79
:param _return_http_data_only: response data without head status code
79
80
and headers
80
81
:param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -96,6 +97,10 @@ def create_mass_estimate_with_http_info(
96
97
all_params .append ("_return_http_data_only" )
97
98
all_params .append ("_preload_content" )
98
99
all_params .append ("_request_timeout" )
100
+ all_params .append ("mass_g" )
101
+ all_params .append ("price_cents_usd" )
102
+ all_params .append ("project_id" )
103
+ all_params .append ("metadata" )
99
104
100
105
for key , val in six .iteritems (local_var_params ["kwargs" ]):
101
106
if key not in all_params :
@@ -119,8 +124,8 @@ def create_mass_estimate_with_http_info(
119
124
path_params = {}
120
125
121
126
query_params = []
122
- for key in opts :
123
- query_params .append ([key , opts .get (key )])
127
+ for key in kwargs :
128
+ query_params .append ([key , kwargs .get (key )])
124
129
125
130
header_params = {}
126
131
@@ -165,7 +170,7 @@ def create_mass_estimate_with_http_info(
165
170
collection_formats = collection_formats ,
166
171
)
167
172
168
- def retrieve_estimate (self , opts = {}, id = {}, ** kwargs ): # noqa: E501
173
+ def retrieve_estimate (self , id = {}, ** kwargs ): # noqa: E501
169
174
"""Retrieves an estimate # noqa: E501
170
175
171
176
Retrieves a given estimate and its associated order. You can only retrieve estimates associated with the organization you are querying for. # noqa: E501
@@ -189,9 +194,9 @@ def retrieve_estimate(self, opts={}, id={}, **kwargs): # noqa: E501
189
194
returns the request thread.
190
195
"""
191
196
kwargs ["_return_http_data_only" ] = True
192
- return self .retrieve_estimate_with_http_info (opts , id , ** kwargs ) # noqa: E501
197
+ return self .retrieve_estimate_with_http_info (id , ** kwargs ) # noqa: E501
193
198
194
- def retrieve_estimate_with_http_info (self , opts , id , ** kwargs ): # noqa: E501
199
+ def retrieve_estimate_with_http_info (self , id , ** kwargs ): # noqa: E501
195
200
"""Retrieves an estimate # noqa: E501
196
201
197
202
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 +207,6 @@ def retrieve_estimate_with_http_info(self, opts, id, **kwargs): # noqa: E501
202
207
203
208
:param async_req bool: execute request asynchronously
204
209
:param str id: (required)
205
- :param dict opts: dictionary holding the optional arguments for the query (required)
206
210
:param _return_http_data_only: response data without head status code
207
211
and headers
208
212
:param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -224,6 +228,10 @@ def retrieve_estimate_with_http_info(self, opts, id, **kwargs): # noqa: E501
224
228
all_params .append ("_return_http_data_only" )
225
229
all_params .append ("_preload_content" )
226
230
all_params .append ("_request_timeout" )
231
+ all_params .append ("mass_g" )
232
+ all_params .append ("price_cents_usd" )
233
+ all_params .append ("project_id" )
234
+ all_params .append ("metadata" )
227
235
228
236
for key , val in six .iteritems (local_var_params ["kwargs" ]):
229
237
if key not in all_params :
@@ -246,8 +254,8 @@ def retrieve_estimate_with_http_info(self, opts, id, **kwargs): # noqa: E501
246
254
path_params ["id" ] = local_var_params ["id" ] # noqa: E501
247
255
248
256
query_params = []
249
- for key in opts :
250
- query_params .append ([key , opts .get (key )])
257
+ for key in kwargs :
258
+ query_params .append ([key , kwargs .get (key )])
251
259
252
260
header_params = {}
253
261
@@ -283,7 +291,7 @@ def retrieve_estimate_with_http_info(self, opts, id, **kwargs): # noqa: E501
283
291
collection_formats = collection_formats ,
284
292
)
285
293
286
- def retrieve_estimates (self , opts = {}, ** kwargs ): # noqa: E501
294
+ def retrieve_estimates (self , ** kwargs ): # noqa: E501
287
295
"""Retrieves a list of estimates # noqa: E501
288
296
289
297
Retrieves a list of estimates and their associated orders. You can only retrieve estimates associated with the organization you are querying for. # noqa: E501
@@ -307,9 +315,9 @@ def retrieve_estimates(self, opts={}, **kwargs): # noqa: E501
307
315
returns the request thread.
308
316
"""
309
317
kwargs ["_return_http_data_only" ] = True
310
- return self .retrieve_estimates_with_http_info (opts , ** kwargs ) # noqa: E501
318
+ return self .retrieve_estimates_with_http_info (** kwargs ) # noqa: E501
311
319
312
- def retrieve_estimates_with_http_info (self , opts , ** kwargs ): # noqa: E501
320
+ def retrieve_estimates_with_http_info (self , ** kwargs ): # noqa: E501
313
321
"""Retrieves a list of estimates # noqa: E501
314
322
315
323
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 +328,6 @@ def retrieve_estimates_with_http_info(self, opts, **kwargs): # noqa: E501
320
328
321
329
:param async_req bool: execute request asynchronously
322
330
:param int page:
323
- :param dict opts: dictionary holding the optional arguments for the query (required)
324
331
:param _return_http_data_only: response data without head status code
325
332
and headers
326
333
:param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -342,6 +349,10 @@ def retrieve_estimates_with_http_info(self, opts, **kwargs): # noqa: E501
342
349
all_params .append ("_return_http_data_only" )
343
350
all_params .append ("_preload_content" )
344
351
all_params .append ("_request_timeout" )
352
+ all_params .append ("mass_g" )
353
+ all_params .append ("price_cents_usd" )
354
+ all_params .append ("project_id" )
355
+ all_params .append ("metadata" )
345
356
346
357
for key , val in six .iteritems (local_var_params ["kwargs" ]):
347
358
if key not in all_params :
@@ -357,8 +368,8 @@ def retrieve_estimates_with_http_info(self, opts, **kwargs): # noqa: E501
357
368
path_params = {}
358
369
359
370
query_params = []
360
- for key in opts :
361
- query_params .append ([key , opts .get (key )])
371
+ for key in kwargs :
372
+ query_params .append ([key , kwargs .get (key )])
362
373
if "page" in local_var_params :
363
374
query_params .append (("page" , local_var_params ["page" ])) # noqa: E501
364
375
0 commit comments