19
19
import six
20
20
21
21
from patch_api .api_client import ApiClient
22
- from patch_api .exceptions import ApiTypeError , ApiValueError # noqa: F401
22
+ from patch_api .exceptions import ApiTypeError , ApiValueError
23
23
24
24
25
25
class OrdersApi (object ):
@@ -86,15 +86,11 @@ def cancel_order_with_http_info(self, id, **kwargs): # noqa: E501
86
86
87
87
local_var_params = locals ()
88
88
89
- all_params = ["id" ]
90
- all_params .extend (
91
- [
92
- "async_req" ,
93
- "_return_http_data_only" ,
94
- "_preload_content" ,
95
- "_request_timeout" ,
96
- ]
97
- )
89
+ all_params = ["id" ] # noqa: E501
90
+ all_params .append ("async_req" )
91
+ all_params .append ("_return_http_data_only" )
92
+ all_params .append ("_preload_content" )
93
+ all_params .append ("_request_timeout" )
98
94
99
95
for key , val in six .iteritems (local_var_params ["kwargs" ]):
100
96
if key not in all_params :
@@ -105,9 +101,7 @@ def cancel_order_with_http_info(self, id, **kwargs): # noqa: E501
105
101
local_var_params [key ] = val
106
102
del local_var_params ["kwargs" ]
107
103
# verify the required parameter 'id' is set
108
- if self .api_client .client_side_validation and (
109
- "id" not in local_var_params or local_var_params ["id" ] is None # noqa: E501
110
- ): # noqa: E501
104
+ if "id" not in local_var_params or local_var_params ["id" ] is None :
111
105
raise ApiValueError (
112
106
"Missing the required parameter `id` when calling `cancel_order`"
113
107
) # noqa: E501
@@ -208,15 +202,11 @@ def create_order_with_http_info(self, create_order_request, **kwargs): # noqa:
208
202
209
203
local_var_params = locals ()
210
204
211
- all_params = ["create_order_request" ]
212
- all_params .extend (
213
- [
214
- "async_req" ,
215
- "_return_http_data_only" ,
216
- "_preload_content" ,
217
- "_request_timeout" ,
218
- ]
219
- )
205
+ all_params = ["create_order_request" ] # noqa: E501
206
+ all_params .append ("async_req" )
207
+ all_params .append ("_return_http_data_only" )
208
+ all_params .append ("_preload_content" )
209
+ all_params .append ("_request_timeout" )
220
210
221
211
for key , val in six .iteritems (local_var_params ["kwargs" ]):
222
212
if key not in all_params :
@@ -227,10 +217,10 @@ def create_order_with_http_info(self, create_order_request, **kwargs): # noqa:
227
217
local_var_params [key ] = val
228
218
del local_var_params ["kwargs" ]
229
219
# verify the required parameter 'create_order_request' is set
230
- if self . api_client . client_side_validation and (
220
+ if (
231
221
"create_order_request" not in local_var_params
232
- or local_var_params ["create_order_request" ] is None # noqa: E501
233
- ): # noqa: E501
222
+ or local_var_params ["create_order_request" ] is None
223
+ ):
234
224
raise ApiValueError (
235
225
"Missing the required parameter `create_order_request` when calling `create_order`"
236
226
) # noqa: E501
@@ -336,15 +326,11 @@ def place_order_with_http_info(self, id, **kwargs): # noqa: E501
336
326
337
327
local_var_params = locals ()
338
328
339
- all_params = ["id" ]
340
- all_params .extend (
341
- [
342
- "async_req" ,
343
- "_return_http_data_only" ,
344
- "_preload_content" ,
345
- "_request_timeout" ,
346
- ]
347
- )
329
+ all_params = ["id" ] # noqa: E501
330
+ all_params .append ("async_req" )
331
+ all_params .append ("_return_http_data_only" )
332
+ all_params .append ("_preload_content" )
333
+ all_params .append ("_request_timeout" )
348
334
349
335
for key , val in six .iteritems (local_var_params ["kwargs" ]):
350
336
if key not in all_params :
@@ -355,9 +341,7 @@ def place_order_with_http_info(self, id, **kwargs): # noqa: E501
355
341
local_var_params [key ] = val
356
342
del local_var_params ["kwargs" ]
357
343
# verify the required parameter 'id' is set
358
- if self .api_client .client_side_validation and (
359
- "id" not in local_var_params or local_var_params ["id" ] is None # noqa: E501
360
- ): # noqa: E501
344
+ if "id" not in local_var_params or local_var_params ["id" ] is None :
361
345
raise ApiValueError (
362
346
"Missing the required parameter `id` when calling `place_order`"
363
347
) # noqa: E501
@@ -456,15 +440,11 @@ def retrieve_order_with_http_info(self, id, **kwargs): # noqa: E501
456
440
457
441
local_var_params = locals ()
458
442
459
- all_params = ["id" ]
460
- all_params .extend (
461
- [
462
- "async_req" ,
463
- "_return_http_data_only" ,
464
- "_preload_content" ,
465
- "_request_timeout" ,
466
- ]
467
- )
443
+ all_params = ["id" ] # noqa: E501
444
+ all_params .append ("async_req" )
445
+ all_params .append ("_return_http_data_only" )
446
+ all_params .append ("_preload_content" )
447
+ all_params .append ("_request_timeout" )
468
448
469
449
for key , val in six .iteritems (local_var_params ["kwargs" ]):
470
450
if key not in all_params :
@@ -475,9 +455,7 @@ def retrieve_order_with_http_info(self, id, **kwargs): # noqa: E501
475
455
local_var_params [key ] = val
476
456
del local_var_params ["kwargs" ]
477
457
# verify the required parameter 'id' is set
478
- if self .api_client .client_side_validation and (
479
- "id" not in local_var_params or local_var_params ["id" ] is None # noqa: E501
480
- ): # noqa: E501
458
+ if "id" not in local_var_params or local_var_params ["id" ] is None :
481
459
raise ApiValueError (
482
460
"Missing the required parameter `id` when calling `retrieve_order`"
483
461
) # noqa: E501
@@ -576,15 +554,11 @@ def retrieve_orders_with_http_info(self, **kwargs): # noqa: E501
576
554
577
555
local_var_params = locals ()
578
556
579
- all_params = ["page" ]
580
- all_params .extend (
581
- [
582
- "async_req" ,
583
- "_return_http_data_only" ,
584
- "_preload_content" ,
585
- "_request_timeout" ,
586
- ]
587
- )
557
+ all_params = ["page" ] # noqa: E501
558
+ all_params .append ("async_req" )
559
+ all_params .append ("_return_http_data_only" )
560
+ all_params .append ("_preload_content" )
561
+ all_params .append ("_request_timeout" )
588
562
589
563
for key , val in six .iteritems (local_var_params ["kwargs" ]):
590
564
if key not in all_params :
@@ -600,9 +574,7 @@ def retrieve_orders_with_http_info(self, **kwargs): # noqa: E501
600
574
path_params = {}
601
575
602
576
query_params = []
603
- if (
604
- "page" in local_var_params and local_var_params ["page" ] is not None
605
- ): # noqa: E501
577
+ if "page" in local_var_params :
606
578
query_params .append (("page" , local_var_params ["page" ])) # noqa: E501
607
579
608
580
header_params = {}
0 commit comments