@@ -141,8 +141,15 @@ def cancel_order_with_http_info(self, id, **kwargs): # noqa: E501
141
141
path_params ["id" ] = local_var_params ["id" ] # noqa: E501
142
142
143
143
query_params = []
144
+
145
+ # do not add duplicate keys to query_params list
146
+ existing_keys = []
147
+ for param in query_params :
148
+ existing_keys .append (param [0 ])
149
+
144
150
for key in kwargs :
145
- query_params .append ([key , kwargs .get (key )])
151
+ if key not in existing_keys :
152
+ query_params .append ([key , kwargs .get (key )])
146
153
147
154
header_params = {}
148
155
@@ -274,8 +281,15 @@ def create_order_with_http_info(self, create_order_request, **kwargs): # noqa:
274
281
path_params = {}
275
282
276
283
query_params = []
284
+
285
+ # do not add duplicate keys to query_params list
286
+ existing_keys = []
287
+ for param in query_params :
288
+ existing_keys .append (param [0 ])
289
+
277
290
for key in kwargs :
278
- query_params .append ([key , kwargs .get (key )])
291
+ if key not in existing_keys :
292
+ query_params .append ([key , kwargs .get (key )])
279
293
280
294
header_params = {}
281
295
@@ -413,8 +427,15 @@ def place_order_with_http_info(self, id, **kwargs): # noqa: E501
413
427
path_params ["id" ] = local_var_params ["id" ] # noqa: E501
414
428
415
429
query_params = []
430
+
431
+ # do not add duplicate keys to query_params list
432
+ existing_keys = []
433
+ for param in query_params :
434
+ existing_keys .append (param [0 ])
435
+
416
436
for key in kwargs :
417
- query_params .append ([key , kwargs .get (key )])
437
+ if key not in existing_keys :
438
+ query_params .append ([key , kwargs .get (key )])
418
439
419
440
header_params = {}
420
441
@@ -543,8 +564,15 @@ def retrieve_order_with_http_info(self, id, **kwargs): # noqa: E501
543
564
path_params ["id" ] = local_var_params ["id" ] # noqa: E501
544
565
545
566
query_params = []
567
+
568
+ # do not add duplicate keys to query_params list
569
+ existing_keys = []
570
+ for param in query_params :
571
+ existing_keys .append (param [0 ])
572
+
546
573
for key in kwargs :
547
- query_params .append ([key , kwargs .get (key )])
574
+ if key not in existing_keys :
575
+ query_params .append ([key , kwargs .get (key )])
548
576
549
577
header_params = {}
550
578
@@ -591,6 +619,9 @@ def retrieve_orders(self, **kwargs): # noqa: E501
591
619
592
620
:param async_req bool: execute request asynchronously
593
621
:param int page:
622
+ :param str metadata:
623
+ :param str metadata_example1:
624
+ :param str metadata_example2:
594
625
:param _preload_content: if False, the urllib3.HTTPResponse object will
595
626
be returned without reading/decoding response
596
627
data. Default is True.
@@ -616,6 +647,9 @@ def retrieve_orders_with_http_info(self, **kwargs): # noqa: E501
616
647
617
648
:param async_req bool: execute request asynchronously
618
649
:param int page:
650
+ :param str metadata:
651
+ :param str metadata_example1:
652
+ :param str metadata_example2:
619
653
:param _return_http_data_only: response data without head status code
620
654
and headers
621
655
:param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -632,7 +666,12 @@ def retrieve_orders_with_http_info(self, **kwargs): # noqa: E501
632
666
633
667
local_var_params = locals ()
634
668
635
- all_params = ["page" ] # noqa: E501
669
+ all_params = [
670
+ "page" ,
671
+ "metadata" ,
672
+ "metadata_example1" ,
673
+ "metadata_example2" ,
674
+ ] # noqa: E501
636
675
all_params .append ("async_req" )
637
676
all_params .append ("_return_http_data_only" )
638
677
all_params .append ("_preload_content" )
@@ -666,10 +705,29 @@ def retrieve_orders_with_http_info(self, **kwargs): # noqa: E501
666
705
path_params = {}
667
706
668
707
query_params = []
669
- for key in kwargs :
670
- query_params .append ([key , kwargs .get (key )])
671
708
if "page" in local_var_params :
672
709
query_params .append (("page" , local_var_params ["page" ])) # noqa: E501
710
+ if "metadata" in local_var_params :
711
+ query_params .append (
712
+ ("metadata" , local_var_params ["metadata" ])
713
+ ) # noqa: E501
714
+ if "metadata_example1" in local_var_params :
715
+ query_params .append (
716
+ ("metadata[example1]" , local_var_params ["metadata_example1" ])
717
+ ) # noqa: E501
718
+ if "metadata_example2" in local_var_params :
719
+ query_params .append (
720
+ ("metadata[example2]" , local_var_params ["metadata_example2" ])
721
+ ) # noqa: E501
722
+
723
+ # do not add duplicate keys to query_params list
724
+ existing_keys = []
725
+ for param in query_params :
726
+ existing_keys .append (param [0 ])
727
+
728
+ for key in kwargs :
729
+ if key not in existing_keys :
730
+ query_params .append ([key , kwargs .get (key )])
673
731
674
732
header_params = {}
675
733
0 commit comments