wildberries-sdk 0.1.17__py3-none-any.whl → 0.1.18__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. wildberries_sdk/analytics/__init__.py +3 -7
  2. wildberries_sdk/analytics/api/__init__.py +1 -3
  3. wildberries_sdk/analytics/api/default_api.py +4670 -0
  4. wildberries_sdk/analytics/api_client.py +1 -1
  5. wildberries_sdk/analytics/configuration.py +1 -1
  6. wildberries_sdk/communications/__init__.py +1 -5
  7. wildberries_sdk/communications/api/__init__.py +0 -2
  8. wildberries_sdk/communications/api/default_api.py +4282 -858
  9. wildberries_sdk/communications/api_client.py +1 -1
  10. wildberries_sdk/communications/configuration.py +1 -1
  11. wildberries_sdk/finances/__init__.py +1 -3
  12. wildberries_sdk/finances/api/__init__.py +0 -1
  13. wildberries_sdk/finances/api/default_api.py +367 -2
  14. wildberries_sdk/finances/api_client.py +1 -1
  15. wildberries_sdk/finances/configuration.py +1 -1
  16. wildberries_sdk/general/__init__.py +3 -7
  17. wildberries_sdk/general/api/__init__.py +1 -3
  18. wildberries_sdk/general/api/{api.py → default_api.py} +560 -1
  19. wildberries_sdk/general/api_client.py +1 -1
  20. wildberries_sdk/general/configuration.py +1 -1
  21. wildberries_sdk/in_store_pickup/__init__.py +3 -5
  22. wildberries_sdk/in_store_pickup/api/__init__.py +1 -2
  23. wildberries_sdk/in_store_pickup/api/{api.py → default_api.py} +1798 -2
  24. wildberries_sdk/in_store_pickup/api_client.py +1 -1
  25. wildberries_sdk/in_store_pickup/configuration.py +1 -1
  26. wildberries_sdk/orders_dbs/__init__.py +3 -5
  27. wildberries_sdk/orders_dbs/api/__init__.py +1 -2
  28. wildberries_sdk/orders_dbs/api/{dbs_api.py → default_api.py} +1819 -2
  29. wildberries_sdk/orders_dbs/api_client.py +1 -1
  30. wildberries_sdk/orders_dbs/configuration.py +1 -1
  31. wildberries_sdk/orders_dbw/__init__.py +3 -5
  32. wildberries_sdk/orders_dbw/api/__init__.py +1 -2
  33. wildberries_sdk/orders_dbw/api/{dbw_api.py → default_api.py} +1821 -1
  34. wildberries_sdk/orders_dbw/api_client.py +1 -1
  35. wildberries_sdk/orders_dbw/configuration.py +1 -1
  36. wildberries_sdk/orders_fbs/__init__.py +3 -5
  37. wildberries_sdk/orders_fbs/api/__init__.py +1 -2
  38. wildberries_sdk/orders_fbs/api/default_api.py +10043 -0
  39. wildberries_sdk/orders_fbs/api_client.py +1 -1
  40. wildberries_sdk/orders_fbs/configuration.py +1 -1
  41. wildberries_sdk/orders_fbw/__init__.py +3 -5
  42. wildberries_sdk/orders_fbw/api/__init__.py +1 -2
  43. wildberries_sdk/orders_fbw/api/default_api.py +2368 -0
  44. wildberries_sdk/orders_fbw/api_client.py +1 -1
  45. wildberries_sdk/orders_fbw/configuration.py +1 -1
  46. wildberries_sdk/products/__init__.py +1 -7
  47. wildberries_sdk/products/api/__init__.py +0 -3
  48. wildberries_sdk/products/api/default_api.py +12348 -2
  49. wildberries_sdk/products/api_client.py +1 -1
  50. wildberries_sdk/products/configuration.py +1 -1
  51. wildberries_sdk/products/models/content_v2_get_cards_list_post200_response_cards_inner_tags_inner.py +1 -1
  52. wildberries_sdk/promotion/__init__.py +1 -3
  53. wildberries_sdk/promotion/api/__init__.py +0 -1
  54. wildberries_sdk/promotion/api/default_api.py +10107 -1059
  55. wildberries_sdk/promotion/api_client.py +1 -1
  56. wildberries_sdk/promotion/configuration.py +1 -1
  57. wildberries_sdk/reports/__init__.py +3 -13
  58. wildberries_sdk/reports/api/__init__.py +1 -6
  59. wildberries_sdk/{promotion/api/api.py → reports/api/default_api.py} +2245 -2381
  60. wildberries_sdk/reports/api_client.py +1 -1
  61. wildberries_sdk/reports/configuration.py +1 -1
  62. wildberries_sdk/tariffs/__init__.py +1 -3
  63. wildberries_sdk/tariffs/api/__init__.py +0 -1
  64. wildberries_sdk/tariffs/api/default_api.py +1147 -34
  65. wildberries_sdk/tariffs/api_client.py +1 -1
  66. wildberries_sdk/tariffs/configuration.py +1 -1
  67. wildberries_sdk/wbd/__init__.py +1 -3
  68. wildberries_sdk/wbd/api/__init__.py +0 -1
  69. wildberries_sdk/wbd/api/default_api.py +1662 -89
  70. wildberries_sdk/wbd/api_client.py +1 -1
  71. wildberries_sdk/wbd/configuration.py +1 -1
  72. wildberries_sdk/wbd/models/offer_create_request.py +1 -1
  73. wildberries_sdk/wbd/models/offer_update_request.py +1 -1
  74. wildberries_sdk-0.1.18.dist-info/METADATA +395 -0
  75. {wildberries_sdk-0.1.17.dist-info → wildberries_sdk-0.1.18.dist-info}/RECORD +78 -88
  76. wildberries_sdk/analytics/api/api.py +0 -1490
  77. wildberries_sdk/analytics/api/csv_api.py +0 -1178
  78. wildberries_sdk/communications/api/api.py +0 -1166
  79. wildberries_sdk/finances/api/api.py +0 -404
  80. wildberries_sdk/general/api/api_api.py +0 -341
  81. wildberries_sdk/general/api/wbapi_api.py +0 -291
  82. wildberries_sdk/orders_fbs/api/fbs_api.py +0 -2683
  83. wildberries_sdk/orders_fbw/api/api.py +0 -1153
  84. wildberries_sdk/products/api/api.py +0 -3891
  85. wildberries_sdk/reports/api/api.py +0 -350
  86. wildberries_sdk/reports/api/c_api.py +0 -361
  87. wildberries_sdk/tariffs/api/api.py +0 -1151
  88. wildberries_sdk/wbd/api/api.py +0 -1611
  89. wildberries_sdk-0.1.17.dist-info/METADATA +0 -191
  90. {wildberries_sdk-0.1.17.dist-info → wildberries_sdk-0.1.18.dist-info}/LICENSE +0 -0
  91. {wildberries_sdk-0.1.17.dist-info → wildberries_sdk-0.1.18.dist-info}/WHEEL +0 -0
  92. {wildberries_sdk-0.1.17.dist-info → wildberries_sdk-0.1.18.dist-info}/top_level.txt +0 -0
@@ -16,22 +16,27 @@ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
16
16
  from typing import Any, Dict, List, Optional, Tuple, Union
17
17
  from typing_extensions import Annotated
18
18
 
19
- from pydantic import Field, StrictInt
19
+ from pydantic import Field, StrictInt, StrictStr
20
20
  from typing_extensions import Annotated
21
21
  from wildberries_sdk.in_store_pickup.models.api_check_identity_request import ApiCheckIdentityRequest
22
22
  from wildberries_sdk.in_store_pickup.models.api_checked_identity import ApiCheckedIdentity
23
+ from wildberries_sdk.in_store_pickup.models.api_gtin_request import ApiGTINRequest
24
+ from wildberries_sdk.in_store_pickup.models.api_imei_request import ApiIMEIRequest
23
25
  from wildberries_sdk.in_store_pickup.models.api_new_orders import ApiNewOrders
24
26
  from wildberries_sdk.in_store_pickup.models.api_order_client_info_resp import ApiOrderClientInfoResp
25
27
  from wildberries_sdk.in_store_pickup.models.api_order_statuses import ApiOrderStatuses
26
28
  from wildberries_sdk.in_store_pickup.models.api_orders import ApiOrders
29
+ from wildberries_sdk.in_store_pickup.models.api_orders_meta import ApiOrdersMeta
27
30
  from wildberries_sdk.in_store_pickup.models.api_orders_request import ApiOrdersRequest
31
+ from wildberries_sdk.in_store_pickup.models.api_sgtins_request import ApiSGTINsRequest
32
+ from wildberries_sdk.in_store_pickup.models.api_uin_request import ApiUINRequest
28
33
 
29
34
  from wildberries_sdk.in_store_pickup.api_client import ApiClient, RequestSerialized
30
35
  from wildberries_sdk.in_store_pickup.api_response import ApiResponse
31
36
  from wildberries_sdk.in_store_pickup.rest import RESTResponseType
32
37
 
33
38
 
34
- class Api:
39
+ class DefaultApi:
35
40
  """NOTE: This class is auto generated by OpenAPI Generator
36
41
  Ref: https://openapi-generator.tech
37
42
 
@@ -1761,6 +1766,1797 @@ class Api:
1761
1766
 
1762
1767
 
1763
1768
 
1769
+ @validate_call
1770
+ def api_v3_click_collect_orders_order_id_meta_delete(
1771
+ self,
1772
+ order_id: Annotated[StrictInt, Field(description="ID сборочного задания")],
1773
+ key: Annotated[StrictStr, Field(description="Название метаданных для удаления (`imei`, `uin`, `gtin`, `sgtin`). Передается только одно значение. ")],
1774
+ _request_timeout: Union[
1775
+ None,
1776
+ Annotated[StrictFloat, Field(gt=0)],
1777
+ Tuple[
1778
+ Annotated[StrictFloat, Field(gt=0)],
1779
+ Annotated[StrictFloat, Field(gt=0)]
1780
+ ]
1781
+ ] = None,
1782
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1783
+ _content_type: Optional[StrictStr] = None,
1784
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1785
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1786
+ ) -> None:
1787
+ """Удалить метаданные сборочного задания
1788
+
1789
+ Метод удаляет значение метаданных сборочного задания для переданного ключа. Возможные метаданные: `imei`, `uin`, `gtin`, `sgtin` Передается только одно значение. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов <strong>получения и удаления метаданных Самовывоз</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 300 запросов | 200 миллисекунд | 20 запросов | Один запрос с кодом ответа <code>409</code> учитывается как 10 запросов </div>
1790
+
1791
+ :param order_id: ID сборочного задания (required)
1792
+ :type order_id: int
1793
+ :param key: Название метаданных для удаления (`imei`, `uin`, `gtin`, `sgtin`). Передается только одно значение. (required)
1794
+ :type key: str
1795
+ :param _request_timeout: timeout setting for this request. If one
1796
+ number provided, it will be total request
1797
+ timeout. It can also be a pair (tuple) of
1798
+ (connection, read) timeouts.
1799
+ :type _request_timeout: int, tuple(int, int), optional
1800
+ :param _request_auth: set to override the auth_settings for an a single
1801
+ request; this effectively ignores the
1802
+ authentication in the spec for a single request.
1803
+ :type _request_auth: dict, optional
1804
+ :param _content_type: force content-type for the request.
1805
+ :type _content_type: str, Optional
1806
+ :param _headers: set to override the headers for a single
1807
+ request; this effectively ignores the headers
1808
+ in the spec for a single request.
1809
+ :type _headers: dict, optional
1810
+ :param _host_index: set to override the host_index for a single
1811
+ request; this effectively ignores the host_index
1812
+ in the spec for a single request.
1813
+ :type _host_index: int, optional
1814
+ :return: Returns the result object.
1815
+ """ # noqa: E501
1816
+
1817
+ _param = self._api_v3_click_collect_orders_order_id_meta_delete_serialize(
1818
+ order_id=order_id,
1819
+ key=key,
1820
+ _request_auth=_request_auth,
1821
+ _content_type=_content_type,
1822
+ _headers=_headers,
1823
+ _host_index=_host_index
1824
+ )
1825
+
1826
+ _response_types_map: Dict[str, Optional[str]] = {
1827
+ '204': None,
1828
+ '401': "ApiV3ClickCollectOrdersNewGet401Response",
1829
+ '403': "Error",
1830
+ '404': "Error",
1831
+ '429': "ApiV3ClickCollectOrdersNewGet401Response",
1832
+ }
1833
+ response_data = self.api_client.call_api(
1834
+ *_param,
1835
+ _request_timeout=_request_timeout
1836
+ )
1837
+ response_data.read()
1838
+ return self.api_client.response_deserialize(
1839
+ response_data=response_data,
1840
+ response_types_map=_response_types_map,
1841
+ ).data
1842
+
1843
+
1844
+ @validate_call
1845
+ def api_v3_click_collect_orders_order_id_meta_delete_with_http_info(
1846
+ self,
1847
+ order_id: Annotated[StrictInt, Field(description="ID сборочного задания")],
1848
+ key: Annotated[StrictStr, Field(description="Название метаданных для удаления (`imei`, `uin`, `gtin`, `sgtin`). Передается только одно значение. ")],
1849
+ _request_timeout: Union[
1850
+ None,
1851
+ Annotated[StrictFloat, Field(gt=0)],
1852
+ Tuple[
1853
+ Annotated[StrictFloat, Field(gt=0)],
1854
+ Annotated[StrictFloat, Field(gt=0)]
1855
+ ]
1856
+ ] = None,
1857
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1858
+ _content_type: Optional[StrictStr] = None,
1859
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1860
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1861
+ ) -> ApiResponse[None]:
1862
+ """Удалить метаданные сборочного задания
1863
+
1864
+ Метод удаляет значение метаданных сборочного задания для переданного ключа. Возможные метаданные: `imei`, `uin`, `gtin`, `sgtin` Передается только одно значение. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов <strong>получения и удаления метаданных Самовывоз</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 300 запросов | 200 миллисекунд | 20 запросов | Один запрос с кодом ответа <code>409</code> учитывается как 10 запросов </div>
1865
+
1866
+ :param order_id: ID сборочного задания (required)
1867
+ :type order_id: int
1868
+ :param key: Название метаданных для удаления (`imei`, `uin`, `gtin`, `sgtin`). Передается только одно значение. (required)
1869
+ :type key: str
1870
+ :param _request_timeout: timeout setting for this request. If one
1871
+ number provided, it will be total request
1872
+ timeout. It can also be a pair (tuple) of
1873
+ (connection, read) timeouts.
1874
+ :type _request_timeout: int, tuple(int, int), optional
1875
+ :param _request_auth: set to override the auth_settings for an a single
1876
+ request; this effectively ignores the
1877
+ authentication in the spec for a single request.
1878
+ :type _request_auth: dict, optional
1879
+ :param _content_type: force content-type for the request.
1880
+ :type _content_type: str, Optional
1881
+ :param _headers: set to override the headers for a single
1882
+ request; this effectively ignores the headers
1883
+ in the spec for a single request.
1884
+ :type _headers: dict, optional
1885
+ :param _host_index: set to override the host_index for a single
1886
+ request; this effectively ignores the host_index
1887
+ in the spec for a single request.
1888
+ :type _host_index: int, optional
1889
+ :return: Returns the result object.
1890
+ """ # noqa: E501
1891
+
1892
+ _param = self._api_v3_click_collect_orders_order_id_meta_delete_serialize(
1893
+ order_id=order_id,
1894
+ key=key,
1895
+ _request_auth=_request_auth,
1896
+ _content_type=_content_type,
1897
+ _headers=_headers,
1898
+ _host_index=_host_index
1899
+ )
1900
+
1901
+ _response_types_map: Dict[str, Optional[str]] = {
1902
+ '204': None,
1903
+ '401': "ApiV3ClickCollectOrdersNewGet401Response",
1904
+ '403': "Error",
1905
+ '404': "Error",
1906
+ '429': "ApiV3ClickCollectOrdersNewGet401Response",
1907
+ }
1908
+ response_data = self.api_client.call_api(
1909
+ *_param,
1910
+ _request_timeout=_request_timeout
1911
+ )
1912
+ response_data.read()
1913
+ return self.api_client.response_deserialize(
1914
+ response_data=response_data,
1915
+ response_types_map=_response_types_map,
1916
+ )
1917
+
1918
+
1919
+ @validate_call
1920
+ def api_v3_click_collect_orders_order_id_meta_delete_without_preload_content(
1921
+ self,
1922
+ order_id: Annotated[StrictInt, Field(description="ID сборочного задания")],
1923
+ key: Annotated[StrictStr, Field(description="Название метаданных для удаления (`imei`, `uin`, `gtin`, `sgtin`). Передается только одно значение. ")],
1924
+ _request_timeout: Union[
1925
+ None,
1926
+ Annotated[StrictFloat, Field(gt=0)],
1927
+ Tuple[
1928
+ Annotated[StrictFloat, Field(gt=0)],
1929
+ Annotated[StrictFloat, Field(gt=0)]
1930
+ ]
1931
+ ] = None,
1932
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1933
+ _content_type: Optional[StrictStr] = None,
1934
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1935
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1936
+ ) -> RESTResponseType:
1937
+ """Удалить метаданные сборочного задания
1938
+
1939
+ Метод удаляет значение метаданных сборочного задания для переданного ключа. Возможные метаданные: `imei`, `uin`, `gtin`, `sgtin` Передается только одно значение. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов <strong>получения и удаления метаданных Самовывоз</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 300 запросов | 200 миллисекунд | 20 запросов | Один запрос с кодом ответа <code>409</code> учитывается как 10 запросов </div>
1940
+
1941
+ :param order_id: ID сборочного задания (required)
1942
+ :type order_id: int
1943
+ :param key: Название метаданных для удаления (`imei`, `uin`, `gtin`, `sgtin`). Передается только одно значение. (required)
1944
+ :type key: str
1945
+ :param _request_timeout: timeout setting for this request. If one
1946
+ number provided, it will be total request
1947
+ timeout. It can also be a pair (tuple) of
1948
+ (connection, read) timeouts.
1949
+ :type _request_timeout: int, tuple(int, int), optional
1950
+ :param _request_auth: set to override the auth_settings for an a single
1951
+ request; this effectively ignores the
1952
+ authentication in the spec for a single request.
1953
+ :type _request_auth: dict, optional
1954
+ :param _content_type: force content-type for the request.
1955
+ :type _content_type: str, Optional
1956
+ :param _headers: set to override the headers for a single
1957
+ request; this effectively ignores the headers
1958
+ in the spec for a single request.
1959
+ :type _headers: dict, optional
1960
+ :param _host_index: set to override the host_index for a single
1961
+ request; this effectively ignores the host_index
1962
+ in the spec for a single request.
1963
+ :type _host_index: int, optional
1964
+ :return: Returns the result object.
1965
+ """ # noqa: E501
1966
+
1967
+ _param = self._api_v3_click_collect_orders_order_id_meta_delete_serialize(
1968
+ order_id=order_id,
1969
+ key=key,
1970
+ _request_auth=_request_auth,
1971
+ _content_type=_content_type,
1972
+ _headers=_headers,
1973
+ _host_index=_host_index
1974
+ )
1975
+
1976
+ _response_types_map: Dict[str, Optional[str]] = {
1977
+ '204': None,
1978
+ '401': "ApiV3ClickCollectOrdersNewGet401Response",
1979
+ '403': "Error",
1980
+ '404': "Error",
1981
+ '429': "ApiV3ClickCollectOrdersNewGet401Response",
1982
+ }
1983
+ response_data = self.api_client.call_api(
1984
+ *_param,
1985
+ _request_timeout=_request_timeout
1986
+ )
1987
+ return response_data.response
1988
+
1989
+
1990
+ def _api_v3_click_collect_orders_order_id_meta_delete_serialize(
1991
+ self,
1992
+ order_id,
1993
+ key,
1994
+ _request_auth,
1995
+ _content_type,
1996
+ _headers,
1997
+ _host_index,
1998
+ ) -> RequestSerialized:
1999
+
2000
+ _host = None
2001
+
2002
+ _collection_formats: Dict[str, str] = {
2003
+ }
2004
+
2005
+ _path_params: Dict[str, str] = {}
2006
+ _query_params: List[Tuple[str, str]] = []
2007
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2008
+ _form_params: List[Tuple[str, str]] = []
2009
+ _files: Dict[
2010
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2011
+ ] = {}
2012
+ _body_params: Optional[bytes] = None
2013
+
2014
+ # process the path parameters
2015
+ if order_id is not None:
2016
+ _path_params['orderId'] = order_id
2017
+ # process the query parameters
2018
+ if key is not None:
2019
+
2020
+ _query_params.append(('key', key))
2021
+
2022
+ # process the header parameters
2023
+ # process the form parameters
2024
+ # process the body parameter
2025
+
2026
+
2027
+ # set the HTTP header `Accept`
2028
+ if 'Accept' not in _header_params:
2029
+ _header_params['Accept'] = self.api_client.select_header_accept(
2030
+ [
2031
+ 'application/json'
2032
+ ]
2033
+ )
2034
+
2035
+
2036
+ # authentication setting
2037
+ _auth_settings: List[str] = [
2038
+ 'HeaderApiKey'
2039
+ ]
2040
+
2041
+ return self.api_client.param_serialize(
2042
+ method='DELETE',
2043
+ resource_path='/api/v3/click-collect/orders/{orderId}/meta',
2044
+ path_params=_path_params,
2045
+ query_params=_query_params,
2046
+ header_params=_header_params,
2047
+ body=_body_params,
2048
+ post_params=_form_params,
2049
+ files=_files,
2050
+ auth_settings=_auth_settings,
2051
+ collection_formats=_collection_formats,
2052
+ _host=_host,
2053
+ _request_auth=_request_auth
2054
+ )
2055
+
2056
+
2057
+
2058
+
2059
+ @validate_call
2060
+ def api_v3_click_collect_orders_order_id_meta_get(
2061
+ self,
2062
+ order_id: Annotated[StrictInt, Field(description="ID сборочного задания")],
2063
+ _request_timeout: Union[
2064
+ None,
2065
+ Annotated[StrictFloat, Field(gt=0)],
2066
+ Tuple[
2067
+ Annotated[StrictFloat, Field(gt=0)],
2068
+ Annotated[StrictFloat, Field(gt=0)]
2069
+ ]
2070
+ ] = None,
2071
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2072
+ _content_type: Optional[StrictStr] = None,
2073
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2074
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2075
+ ) -> ApiOrdersMeta:
2076
+ """Получить метаданные сборочного задания
2077
+
2078
+ Метод возвращает метаданные [сборочного задания](/openapi/in-store-pickup#tag/Sborochnye-zadaniya-Samovyvoz/paths/~1api~1v3~1orders~1new/get). <br><br> Перечень метаданных, доступных для сборочного задания, можно получить в [списке новых сборочных заданий](/openapi/in-store-pickup#tag/Sborochnye-zadaniya-Samovyvoz/paths/~1api~1v3~1click-collect~1orders~1new/get), поле `requiredMeta`. <br><br> <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов <strong>получения и удаления метаданных Самовывоз</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 300 запросов | 200 миллисекунд | 20 запросов | Один запрос с кодом ответа <code>409</code> учитывается как 10 запросов </div>
2079
+
2080
+ :param order_id: ID сборочного задания (required)
2081
+ :type order_id: int
2082
+ :param _request_timeout: timeout setting for this request. If one
2083
+ number provided, it will be total request
2084
+ timeout. It can also be a pair (tuple) of
2085
+ (connection, read) timeouts.
2086
+ :type _request_timeout: int, tuple(int, int), optional
2087
+ :param _request_auth: set to override the auth_settings for an a single
2088
+ request; this effectively ignores the
2089
+ authentication in the spec for a single request.
2090
+ :type _request_auth: dict, optional
2091
+ :param _content_type: force content-type for the request.
2092
+ :type _content_type: str, Optional
2093
+ :param _headers: set to override the headers for a single
2094
+ request; this effectively ignores the headers
2095
+ in the spec for a single request.
2096
+ :type _headers: dict, optional
2097
+ :param _host_index: set to override the host_index for a single
2098
+ request; this effectively ignores the host_index
2099
+ in the spec for a single request.
2100
+ :type _host_index: int, optional
2101
+ :return: Returns the result object.
2102
+ """ # noqa: E501
2103
+
2104
+ _param = self._api_v3_click_collect_orders_order_id_meta_get_serialize(
2105
+ order_id=order_id,
2106
+ _request_auth=_request_auth,
2107
+ _content_type=_content_type,
2108
+ _headers=_headers,
2109
+ _host_index=_host_index
2110
+ )
2111
+
2112
+ _response_types_map: Dict[str, Optional[str]] = {
2113
+ '200': "ApiOrdersMeta",
2114
+ '401': "ApiV3ClickCollectOrdersNewGet401Response",
2115
+ '403': "Error",
2116
+ '404': "Error",
2117
+ '429': "ApiV3ClickCollectOrdersNewGet401Response",
2118
+ }
2119
+ response_data = self.api_client.call_api(
2120
+ *_param,
2121
+ _request_timeout=_request_timeout
2122
+ )
2123
+ response_data.read()
2124
+ return self.api_client.response_deserialize(
2125
+ response_data=response_data,
2126
+ response_types_map=_response_types_map,
2127
+ ).data
2128
+
2129
+
2130
+ @validate_call
2131
+ def api_v3_click_collect_orders_order_id_meta_get_with_http_info(
2132
+ self,
2133
+ order_id: Annotated[StrictInt, Field(description="ID сборочного задания")],
2134
+ _request_timeout: Union[
2135
+ None,
2136
+ Annotated[StrictFloat, Field(gt=0)],
2137
+ Tuple[
2138
+ Annotated[StrictFloat, Field(gt=0)],
2139
+ Annotated[StrictFloat, Field(gt=0)]
2140
+ ]
2141
+ ] = None,
2142
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2143
+ _content_type: Optional[StrictStr] = None,
2144
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2145
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2146
+ ) -> ApiResponse[ApiOrdersMeta]:
2147
+ """Получить метаданные сборочного задания
2148
+
2149
+ Метод возвращает метаданные [сборочного задания](/openapi/in-store-pickup#tag/Sborochnye-zadaniya-Samovyvoz/paths/~1api~1v3~1orders~1new/get). <br><br> Перечень метаданных, доступных для сборочного задания, можно получить в [списке новых сборочных заданий](/openapi/in-store-pickup#tag/Sborochnye-zadaniya-Samovyvoz/paths/~1api~1v3~1click-collect~1orders~1new/get), поле `requiredMeta`. <br><br> <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов <strong>получения и удаления метаданных Самовывоз</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 300 запросов | 200 миллисекунд | 20 запросов | Один запрос с кодом ответа <code>409</code> учитывается как 10 запросов </div>
2150
+
2151
+ :param order_id: ID сборочного задания (required)
2152
+ :type order_id: int
2153
+ :param _request_timeout: timeout setting for this request. If one
2154
+ number provided, it will be total request
2155
+ timeout. It can also be a pair (tuple) of
2156
+ (connection, read) timeouts.
2157
+ :type _request_timeout: int, tuple(int, int), optional
2158
+ :param _request_auth: set to override the auth_settings for an a single
2159
+ request; this effectively ignores the
2160
+ authentication in the spec for a single request.
2161
+ :type _request_auth: dict, optional
2162
+ :param _content_type: force content-type for the request.
2163
+ :type _content_type: str, Optional
2164
+ :param _headers: set to override the headers for a single
2165
+ request; this effectively ignores the headers
2166
+ in the spec for a single request.
2167
+ :type _headers: dict, optional
2168
+ :param _host_index: set to override the host_index for a single
2169
+ request; this effectively ignores the host_index
2170
+ in the spec for a single request.
2171
+ :type _host_index: int, optional
2172
+ :return: Returns the result object.
2173
+ """ # noqa: E501
2174
+
2175
+ _param = self._api_v3_click_collect_orders_order_id_meta_get_serialize(
2176
+ order_id=order_id,
2177
+ _request_auth=_request_auth,
2178
+ _content_type=_content_type,
2179
+ _headers=_headers,
2180
+ _host_index=_host_index
2181
+ )
2182
+
2183
+ _response_types_map: Dict[str, Optional[str]] = {
2184
+ '200': "ApiOrdersMeta",
2185
+ '401': "ApiV3ClickCollectOrdersNewGet401Response",
2186
+ '403': "Error",
2187
+ '404': "Error",
2188
+ '429': "ApiV3ClickCollectOrdersNewGet401Response",
2189
+ }
2190
+ response_data = self.api_client.call_api(
2191
+ *_param,
2192
+ _request_timeout=_request_timeout
2193
+ )
2194
+ response_data.read()
2195
+ return self.api_client.response_deserialize(
2196
+ response_data=response_data,
2197
+ response_types_map=_response_types_map,
2198
+ )
2199
+
2200
+
2201
+ @validate_call
2202
+ def api_v3_click_collect_orders_order_id_meta_get_without_preload_content(
2203
+ self,
2204
+ order_id: Annotated[StrictInt, Field(description="ID сборочного задания")],
2205
+ _request_timeout: Union[
2206
+ None,
2207
+ Annotated[StrictFloat, Field(gt=0)],
2208
+ Tuple[
2209
+ Annotated[StrictFloat, Field(gt=0)],
2210
+ Annotated[StrictFloat, Field(gt=0)]
2211
+ ]
2212
+ ] = None,
2213
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2214
+ _content_type: Optional[StrictStr] = None,
2215
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2216
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2217
+ ) -> RESTResponseType:
2218
+ """Получить метаданные сборочного задания
2219
+
2220
+ Метод возвращает метаданные [сборочного задания](/openapi/in-store-pickup#tag/Sborochnye-zadaniya-Samovyvoz/paths/~1api~1v3~1orders~1new/get). <br><br> Перечень метаданных, доступных для сборочного задания, можно получить в [списке новых сборочных заданий](/openapi/in-store-pickup#tag/Sborochnye-zadaniya-Samovyvoz/paths/~1api~1v3~1click-collect~1orders~1new/get), поле `requiredMeta`. <br><br> <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов <strong>получения и удаления метаданных Самовывоз</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 300 запросов | 200 миллисекунд | 20 запросов | Один запрос с кодом ответа <code>409</code> учитывается как 10 запросов </div>
2221
+
2222
+ :param order_id: ID сборочного задания (required)
2223
+ :type order_id: int
2224
+ :param _request_timeout: timeout setting for this request. If one
2225
+ number provided, it will be total request
2226
+ timeout. It can also be a pair (tuple) of
2227
+ (connection, read) timeouts.
2228
+ :type _request_timeout: int, tuple(int, int), optional
2229
+ :param _request_auth: set to override the auth_settings for an a single
2230
+ request; this effectively ignores the
2231
+ authentication in the spec for a single request.
2232
+ :type _request_auth: dict, optional
2233
+ :param _content_type: force content-type for the request.
2234
+ :type _content_type: str, Optional
2235
+ :param _headers: set to override the headers for a single
2236
+ request; this effectively ignores the headers
2237
+ in the spec for a single request.
2238
+ :type _headers: dict, optional
2239
+ :param _host_index: set to override the host_index for a single
2240
+ request; this effectively ignores the host_index
2241
+ in the spec for a single request.
2242
+ :type _host_index: int, optional
2243
+ :return: Returns the result object.
2244
+ """ # noqa: E501
2245
+
2246
+ _param = self._api_v3_click_collect_orders_order_id_meta_get_serialize(
2247
+ order_id=order_id,
2248
+ _request_auth=_request_auth,
2249
+ _content_type=_content_type,
2250
+ _headers=_headers,
2251
+ _host_index=_host_index
2252
+ )
2253
+
2254
+ _response_types_map: Dict[str, Optional[str]] = {
2255
+ '200': "ApiOrdersMeta",
2256
+ '401': "ApiV3ClickCollectOrdersNewGet401Response",
2257
+ '403': "Error",
2258
+ '404': "Error",
2259
+ '429': "ApiV3ClickCollectOrdersNewGet401Response",
2260
+ }
2261
+ response_data = self.api_client.call_api(
2262
+ *_param,
2263
+ _request_timeout=_request_timeout
2264
+ )
2265
+ return response_data.response
2266
+
2267
+
2268
+ def _api_v3_click_collect_orders_order_id_meta_get_serialize(
2269
+ self,
2270
+ order_id,
2271
+ _request_auth,
2272
+ _content_type,
2273
+ _headers,
2274
+ _host_index,
2275
+ ) -> RequestSerialized:
2276
+
2277
+ _host = None
2278
+
2279
+ _collection_formats: Dict[str, str] = {
2280
+ }
2281
+
2282
+ _path_params: Dict[str, str] = {}
2283
+ _query_params: List[Tuple[str, str]] = []
2284
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2285
+ _form_params: List[Tuple[str, str]] = []
2286
+ _files: Dict[
2287
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2288
+ ] = {}
2289
+ _body_params: Optional[bytes] = None
2290
+
2291
+ # process the path parameters
2292
+ if order_id is not None:
2293
+ _path_params['orderId'] = order_id
2294
+ # process the query parameters
2295
+ # process the header parameters
2296
+ # process the form parameters
2297
+ # process the body parameter
2298
+
2299
+
2300
+ # set the HTTP header `Accept`
2301
+ if 'Accept' not in _header_params:
2302
+ _header_params['Accept'] = self.api_client.select_header_accept(
2303
+ [
2304
+ 'application/json'
2305
+ ]
2306
+ )
2307
+
2308
+
2309
+ # authentication setting
2310
+ _auth_settings: List[str] = [
2311
+ 'HeaderApiKey'
2312
+ ]
2313
+
2314
+ return self.api_client.param_serialize(
2315
+ method='GET',
2316
+ resource_path='/api/v3/click-collect/orders/{orderId}/meta',
2317
+ path_params=_path_params,
2318
+ query_params=_query_params,
2319
+ header_params=_header_params,
2320
+ body=_body_params,
2321
+ post_params=_form_params,
2322
+ files=_files,
2323
+ auth_settings=_auth_settings,
2324
+ collection_formats=_collection_formats,
2325
+ _host=_host,
2326
+ _request_auth=_request_auth
2327
+ )
2328
+
2329
+
2330
+
2331
+
2332
+ @validate_call
2333
+ def api_v3_click_collect_orders_order_id_meta_gtin_put(
2334
+ self,
2335
+ order_id: Annotated[StrictInt, Field(description="ID сборочного задания")],
2336
+ api_gtin_request: ApiGTINRequest,
2337
+ _request_timeout: Union[
2338
+ None,
2339
+ Annotated[StrictFloat, Field(gt=0)],
2340
+ Tuple[
2341
+ Annotated[StrictFloat, Field(gt=0)],
2342
+ Annotated[StrictFloat, Field(gt=0)]
2343
+ ]
2344
+ ] = None,
2345
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2346
+ _content_type: Optional[StrictStr] = None,
2347
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2348
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2349
+ ) -> None:
2350
+ """Закрепить за сборочным заданием GTIN
2351
+
2352
+ Метод обновляет GTIN (уникальный ID товара в Беларуси) сборочного задания. У одного сборочного задания может быть только один GTIN. Добавлять маркировку можно только для сборочных заданий в статусе `confirm` и доставка которых осуществляется силами WB. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов <strong>закрепления метаданных Самовывоз</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 1000 запросов | 60 миллисекунд | 20 запросов | Один запрос с кодом ответа <code>409</code> учитывается как 10 запросов </div>
2353
+
2354
+ :param order_id: ID сборочного задания (required)
2355
+ :type order_id: int
2356
+ :param api_gtin_request: (required)
2357
+ :type api_gtin_request: ApiGTINRequest
2358
+ :param _request_timeout: timeout setting for this request. If one
2359
+ number provided, it will be total request
2360
+ timeout. It can also be a pair (tuple) of
2361
+ (connection, read) timeouts.
2362
+ :type _request_timeout: int, tuple(int, int), optional
2363
+ :param _request_auth: set to override the auth_settings for an a single
2364
+ request; this effectively ignores the
2365
+ authentication in the spec for a single request.
2366
+ :type _request_auth: dict, optional
2367
+ :param _content_type: force content-type for the request.
2368
+ :type _content_type: str, Optional
2369
+ :param _headers: set to override the headers for a single
2370
+ request; this effectively ignores the headers
2371
+ in the spec for a single request.
2372
+ :type _headers: dict, optional
2373
+ :param _host_index: set to override the host_index for a single
2374
+ request; this effectively ignores the host_index
2375
+ in the spec for a single request.
2376
+ :type _host_index: int, optional
2377
+ :return: Returns the result object.
2378
+ """ # noqa: E501
2379
+
2380
+ _param = self._api_v3_click_collect_orders_order_id_meta_gtin_put_serialize(
2381
+ order_id=order_id,
2382
+ api_gtin_request=api_gtin_request,
2383
+ _request_auth=_request_auth,
2384
+ _content_type=_content_type,
2385
+ _headers=_headers,
2386
+ _host_index=_host_index
2387
+ )
2388
+
2389
+ _response_types_map: Dict[str, Optional[str]] = {
2390
+ '204': None,
2391
+ '400': "Error",
2392
+ '401': "ApiV3ClickCollectOrdersNewGet401Response",
2393
+ '403': "Error",
2394
+ '404': "Error",
2395
+ '409': "Error",
2396
+ '429': "ApiV3ClickCollectOrdersNewGet401Response",
2397
+ }
2398
+ response_data = self.api_client.call_api(
2399
+ *_param,
2400
+ _request_timeout=_request_timeout
2401
+ )
2402
+ response_data.read()
2403
+ return self.api_client.response_deserialize(
2404
+ response_data=response_data,
2405
+ response_types_map=_response_types_map,
2406
+ ).data
2407
+
2408
+
2409
+ @validate_call
2410
+ def api_v3_click_collect_orders_order_id_meta_gtin_put_with_http_info(
2411
+ self,
2412
+ order_id: Annotated[StrictInt, Field(description="ID сборочного задания")],
2413
+ api_gtin_request: ApiGTINRequest,
2414
+ _request_timeout: Union[
2415
+ None,
2416
+ Annotated[StrictFloat, Field(gt=0)],
2417
+ Tuple[
2418
+ Annotated[StrictFloat, Field(gt=0)],
2419
+ Annotated[StrictFloat, Field(gt=0)]
2420
+ ]
2421
+ ] = None,
2422
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2423
+ _content_type: Optional[StrictStr] = None,
2424
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2425
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2426
+ ) -> ApiResponse[None]:
2427
+ """Закрепить за сборочным заданием GTIN
2428
+
2429
+ Метод обновляет GTIN (уникальный ID товара в Беларуси) сборочного задания. У одного сборочного задания может быть только один GTIN. Добавлять маркировку можно только для сборочных заданий в статусе `confirm` и доставка которых осуществляется силами WB. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов <strong>закрепления метаданных Самовывоз</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 1000 запросов | 60 миллисекунд | 20 запросов | Один запрос с кодом ответа <code>409</code> учитывается как 10 запросов </div>
2430
+
2431
+ :param order_id: ID сборочного задания (required)
2432
+ :type order_id: int
2433
+ :param api_gtin_request: (required)
2434
+ :type api_gtin_request: ApiGTINRequest
2435
+ :param _request_timeout: timeout setting for this request. If one
2436
+ number provided, it will be total request
2437
+ timeout. It can also be a pair (tuple) of
2438
+ (connection, read) timeouts.
2439
+ :type _request_timeout: int, tuple(int, int), optional
2440
+ :param _request_auth: set to override the auth_settings for an a single
2441
+ request; this effectively ignores the
2442
+ authentication in the spec for a single request.
2443
+ :type _request_auth: dict, optional
2444
+ :param _content_type: force content-type for the request.
2445
+ :type _content_type: str, Optional
2446
+ :param _headers: set to override the headers for a single
2447
+ request; this effectively ignores the headers
2448
+ in the spec for a single request.
2449
+ :type _headers: dict, optional
2450
+ :param _host_index: set to override the host_index for a single
2451
+ request; this effectively ignores the host_index
2452
+ in the spec for a single request.
2453
+ :type _host_index: int, optional
2454
+ :return: Returns the result object.
2455
+ """ # noqa: E501
2456
+
2457
+ _param = self._api_v3_click_collect_orders_order_id_meta_gtin_put_serialize(
2458
+ order_id=order_id,
2459
+ api_gtin_request=api_gtin_request,
2460
+ _request_auth=_request_auth,
2461
+ _content_type=_content_type,
2462
+ _headers=_headers,
2463
+ _host_index=_host_index
2464
+ )
2465
+
2466
+ _response_types_map: Dict[str, Optional[str]] = {
2467
+ '204': None,
2468
+ '400': "Error",
2469
+ '401': "ApiV3ClickCollectOrdersNewGet401Response",
2470
+ '403': "Error",
2471
+ '404': "Error",
2472
+ '409': "Error",
2473
+ '429': "ApiV3ClickCollectOrdersNewGet401Response",
2474
+ }
2475
+ response_data = self.api_client.call_api(
2476
+ *_param,
2477
+ _request_timeout=_request_timeout
2478
+ )
2479
+ response_data.read()
2480
+ return self.api_client.response_deserialize(
2481
+ response_data=response_data,
2482
+ response_types_map=_response_types_map,
2483
+ )
2484
+
2485
+
2486
+ @validate_call
2487
+ def api_v3_click_collect_orders_order_id_meta_gtin_put_without_preload_content(
2488
+ self,
2489
+ order_id: Annotated[StrictInt, Field(description="ID сборочного задания")],
2490
+ api_gtin_request: ApiGTINRequest,
2491
+ _request_timeout: Union[
2492
+ None,
2493
+ Annotated[StrictFloat, Field(gt=0)],
2494
+ Tuple[
2495
+ Annotated[StrictFloat, Field(gt=0)],
2496
+ Annotated[StrictFloat, Field(gt=0)]
2497
+ ]
2498
+ ] = None,
2499
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2500
+ _content_type: Optional[StrictStr] = None,
2501
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2502
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2503
+ ) -> RESTResponseType:
2504
+ """Закрепить за сборочным заданием GTIN
2505
+
2506
+ Метод обновляет GTIN (уникальный ID товара в Беларуси) сборочного задания. У одного сборочного задания может быть только один GTIN. Добавлять маркировку можно только для сборочных заданий в статусе `confirm` и доставка которых осуществляется силами WB. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов <strong>закрепления метаданных Самовывоз</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 1000 запросов | 60 миллисекунд | 20 запросов | Один запрос с кодом ответа <code>409</code> учитывается как 10 запросов </div>
2507
+
2508
+ :param order_id: ID сборочного задания (required)
2509
+ :type order_id: int
2510
+ :param api_gtin_request: (required)
2511
+ :type api_gtin_request: ApiGTINRequest
2512
+ :param _request_timeout: timeout setting for this request. If one
2513
+ number provided, it will be total request
2514
+ timeout. It can also be a pair (tuple) of
2515
+ (connection, read) timeouts.
2516
+ :type _request_timeout: int, tuple(int, int), optional
2517
+ :param _request_auth: set to override the auth_settings for an a single
2518
+ request; this effectively ignores the
2519
+ authentication in the spec for a single request.
2520
+ :type _request_auth: dict, optional
2521
+ :param _content_type: force content-type for the request.
2522
+ :type _content_type: str, Optional
2523
+ :param _headers: set to override the headers for a single
2524
+ request; this effectively ignores the headers
2525
+ in the spec for a single request.
2526
+ :type _headers: dict, optional
2527
+ :param _host_index: set to override the host_index for a single
2528
+ request; this effectively ignores the host_index
2529
+ in the spec for a single request.
2530
+ :type _host_index: int, optional
2531
+ :return: Returns the result object.
2532
+ """ # noqa: E501
2533
+
2534
+ _param = self._api_v3_click_collect_orders_order_id_meta_gtin_put_serialize(
2535
+ order_id=order_id,
2536
+ api_gtin_request=api_gtin_request,
2537
+ _request_auth=_request_auth,
2538
+ _content_type=_content_type,
2539
+ _headers=_headers,
2540
+ _host_index=_host_index
2541
+ )
2542
+
2543
+ _response_types_map: Dict[str, Optional[str]] = {
2544
+ '204': None,
2545
+ '400': "Error",
2546
+ '401': "ApiV3ClickCollectOrdersNewGet401Response",
2547
+ '403': "Error",
2548
+ '404': "Error",
2549
+ '409': "Error",
2550
+ '429': "ApiV3ClickCollectOrdersNewGet401Response",
2551
+ }
2552
+ response_data = self.api_client.call_api(
2553
+ *_param,
2554
+ _request_timeout=_request_timeout
2555
+ )
2556
+ return response_data.response
2557
+
2558
+
2559
+ def _api_v3_click_collect_orders_order_id_meta_gtin_put_serialize(
2560
+ self,
2561
+ order_id,
2562
+ api_gtin_request,
2563
+ _request_auth,
2564
+ _content_type,
2565
+ _headers,
2566
+ _host_index,
2567
+ ) -> RequestSerialized:
2568
+
2569
+ _host = None
2570
+
2571
+ _collection_formats: Dict[str, str] = {
2572
+ }
2573
+
2574
+ _path_params: Dict[str, str] = {}
2575
+ _query_params: List[Tuple[str, str]] = []
2576
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2577
+ _form_params: List[Tuple[str, str]] = []
2578
+ _files: Dict[
2579
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2580
+ ] = {}
2581
+ _body_params: Optional[bytes] = None
2582
+
2583
+ # process the path parameters
2584
+ if order_id is not None:
2585
+ _path_params['orderId'] = order_id
2586
+ # process the query parameters
2587
+ # process the header parameters
2588
+ # process the form parameters
2589
+ # process the body parameter
2590
+ if api_gtin_request is not None:
2591
+ _body_params = api_gtin_request
2592
+
2593
+
2594
+ # set the HTTP header `Accept`
2595
+ if 'Accept' not in _header_params:
2596
+ _header_params['Accept'] = self.api_client.select_header_accept(
2597
+ [
2598
+ 'application/json'
2599
+ ]
2600
+ )
2601
+
2602
+ # set the HTTP header `Content-Type`
2603
+ if _content_type:
2604
+ _header_params['Content-Type'] = _content_type
2605
+ else:
2606
+ _default_content_type = (
2607
+ self.api_client.select_header_content_type(
2608
+ [
2609
+ 'application/json'
2610
+ ]
2611
+ )
2612
+ )
2613
+ if _default_content_type is not None:
2614
+ _header_params['Content-Type'] = _default_content_type
2615
+
2616
+ # authentication setting
2617
+ _auth_settings: List[str] = [
2618
+ 'HeaderApiKey'
2619
+ ]
2620
+
2621
+ return self.api_client.param_serialize(
2622
+ method='PUT',
2623
+ resource_path='/api/v3/click-collect/orders/{orderId}/meta/gtin',
2624
+ path_params=_path_params,
2625
+ query_params=_query_params,
2626
+ header_params=_header_params,
2627
+ body=_body_params,
2628
+ post_params=_form_params,
2629
+ files=_files,
2630
+ auth_settings=_auth_settings,
2631
+ collection_formats=_collection_formats,
2632
+ _host=_host,
2633
+ _request_auth=_request_auth
2634
+ )
2635
+
2636
+
2637
+
2638
+
2639
+ @validate_call
2640
+ def api_v3_click_collect_orders_order_id_meta_imei_put(
2641
+ self,
2642
+ order_id: Annotated[StrictInt, Field(description="ID сборочного задания")],
2643
+ api_imei_request: ApiIMEIRequest,
2644
+ _request_timeout: Union[
2645
+ None,
2646
+ Annotated[StrictFloat, Field(gt=0)],
2647
+ Tuple[
2648
+ Annotated[StrictFloat, Field(gt=0)],
2649
+ Annotated[StrictFloat, Field(gt=0)]
2650
+ ]
2651
+ ] = None,
2652
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2653
+ _content_type: Optional[StrictStr] = None,
2654
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2655
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2656
+ ) -> None:
2657
+ """Закрепить за сборочным заданием IMEI
2658
+
2659
+ Метод обновляет IMEI сборочного задания. У одного сборочного задания может быть только один IMEI. Добавлять маркировку можно только для сборочных заданий в статусе `confirm` и доставка которых осуществляется силами WB. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов <strong>закрепления метаданных Самовывоз</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 1000 запросов | 60 миллисекунд | 20 запросов | Один запрос с кодом ответа <code>409</code> учитывается как 10 запросов </div>
2660
+
2661
+ :param order_id: ID сборочного задания (required)
2662
+ :type order_id: int
2663
+ :param api_imei_request: (required)
2664
+ :type api_imei_request: ApiIMEIRequest
2665
+ :param _request_timeout: timeout setting for this request. If one
2666
+ number provided, it will be total request
2667
+ timeout. It can also be a pair (tuple) of
2668
+ (connection, read) timeouts.
2669
+ :type _request_timeout: int, tuple(int, int), optional
2670
+ :param _request_auth: set to override the auth_settings for an a single
2671
+ request; this effectively ignores the
2672
+ authentication in the spec for a single request.
2673
+ :type _request_auth: dict, optional
2674
+ :param _content_type: force content-type for the request.
2675
+ :type _content_type: str, Optional
2676
+ :param _headers: set to override the headers for a single
2677
+ request; this effectively ignores the headers
2678
+ in the spec for a single request.
2679
+ :type _headers: dict, optional
2680
+ :param _host_index: set to override the host_index for a single
2681
+ request; this effectively ignores the host_index
2682
+ in the spec for a single request.
2683
+ :type _host_index: int, optional
2684
+ :return: Returns the result object.
2685
+ """ # noqa: E501
2686
+
2687
+ _param = self._api_v3_click_collect_orders_order_id_meta_imei_put_serialize(
2688
+ order_id=order_id,
2689
+ api_imei_request=api_imei_request,
2690
+ _request_auth=_request_auth,
2691
+ _content_type=_content_type,
2692
+ _headers=_headers,
2693
+ _host_index=_host_index
2694
+ )
2695
+
2696
+ _response_types_map: Dict[str, Optional[str]] = {
2697
+ '204': None,
2698
+ '400': "Error",
2699
+ '401': "ApiV3ClickCollectOrdersNewGet401Response",
2700
+ '403': "Error",
2701
+ '404': "Error",
2702
+ '409': "Error",
2703
+ '429': "ApiV3ClickCollectOrdersNewGet401Response",
2704
+ }
2705
+ response_data = self.api_client.call_api(
2706
+ *_param,
2707
+ _request_timeout=_request_timeout
2708
+ )
2709
+ response_data.read()
2710
+ return self.api_client.response_deserialize(
2711
+ response_data=response_data,
2712
+ response_types_map=_response_types_map,
2713
+ ).data
2714
+
2715
+
2716
+ @validate_call
2717
+ def api_v3_click_collect_orders_order_id_meta_imei_put_with_http_info(
2718
+ self,
2719
+ order_id: Annotated[StrictInt, Field(description="ID сборочного задания")],
2720
+ api_imei_request: ApiIMEIRequest,
2721
+ _request_timeout: Union[
2722
+ None,
2723
+ Annotated[StrictFloat, Field(gt=0)],
2724
+ Tuple[
2725
+ Annotated[StrictFloat, Field(gt=0)],
2726
+ Annotated[StrictFloat, Field(gt=0)]
2727
+ ]
2728
+ ] = None,
2729
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2730
+ _content_type: Optional[StrictStr] = None,
2731
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2732
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2733
+ ) -> ApiResponse[None]:
2734
+ """Закрепить за сборочным заданием IMEI
2735
+
2736
+ Метод обновляет IMEI сборочного задания. У одного сборочного задания может быть только один IMEI. Добавлять маркировку можно только для сборочных заданий в статусе `confirm` и доставка которых осуществляется силами WB. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов <strong>закрепления метаданных Самовывоз</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 1000 запросов | 60 миллисекунд | 20 запросов | Один запрос с кодом ответа <code>409</code> учитывается как 10 запросов </div>
2737
+
2738
+ :param order_id: ID сборочного задания (required)
2739
+ :type order_id: int
2740
+ :param api_imei_request: (required)
2741
+ :type api_imei_request: ApiIMEIRequest
2742
+ :param _request_timeout: timeout setting for this request. If one
2743
+ number provided, it will be total request
2744
+ timeout. It can also be a pair (tuple) of
2745
+ (connection, read) timeouts.
2746
+ :type _request_timeout: int, tuple(int, int), optional
2747
+ :param _request_auth: set to override the auth_settings for an a single
2748
+ request; this effectively ignores the
2749
+ authentication in the spec for a single request.
2750
+ :type _request_auth: dict, optional
2751
+ :param _content_type: force content-type for the request.
2752
+ :type _content_type: str, Optional
2753
+ :param _headers: set to override the headers for a single
2754
+ request; this effectively ignores the headers
2755
+ in the spec for a single request.
2756
+ :type _headers: dict, optional
2757
+ :param _host_index: set to override the host_index for a single
2758
+ request; this effectively ignores the host_index
2759
+ in the spec for a single request.
2760
+ :type _host_index: int, optional
2761
+ :return: Returns the result object.
2762
+ """ # noqa: E501
2763
+
2764
+ _param = self._api_v3_click_collect_orders_order_id_meta_imei_put_serialize(
2765
+ order_id=order_id,
2766
+ api_imei_request=api_imei_request,
2767
+ _request_auth=_request_auth,
2768
+ _content_type=_content_type,
2769
+ _headers=_headers,
2770
+ _host_index=_host_index
2771
+ )
2772
+
2773
+ _response_types_map: Dict[str, Optional[str]] = {
2774
+ '204': None,
2775
+ '400': "Error",
2776
+ '401': "ApiV3ClickCollectOrdersNewGet401Response",
2777
+ '403': "Error",
2778
+ '404': "Error",
2779
+ '409': "Error",
2780
+ '429': "ApiV3ClickCollectOrdersNewGet401Response",
2781
+ }
2782
+ response_data = self.api_client.call_api(
2783
+ *_param,
2784
+ _request_timeout=_request_timeout
2785
+ )
2786
+ response_data.read()
2787
+ return self.api_client.response_deserialize(
2788
+ response_data=response_data,
2789
+ response_types_map=_response_types_map,
2790
+ )
2791
+
2792
+
2793
+ @validate_call
2794
+ def api_v3_click_collect_orders_order_id_meta_imei_put_without_preload_content(
2795
+ self,
2796
+ order_id: Annotated[StrictInt, Field(description="ID сборочного задания")],
2797
+ api_imei_request: ApiIMEIRequest,
2798
+ _request_timeout: Union[
2799
+ None,
2800
+ Annotated[StrictFloat, Field(gt=0)],
2801
+ Tuple[
2802
+ Annotated[StrictFloat, Field(gt=0)],
2803
+ Annotated[StrictFloat, Field(gt=0)]
2804
+ ]
2805
+ ] = None,
2806
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2807
+ _content_type: Optional[StrictStr] = None,
2808
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2809
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2810
+ ) -> RESTResponseType:
2811
+ """Закрепить за сборочным заданием IMEI
2812
+
2813
+ Метод обновляет IMEI сборочного задания. У одного сборочного задания может быть только один IMEI. Добавлять маркировку можно только для сборочных заданий в статусе `confirm` и доставка которых осуществляется силами WB. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов <strong>закрепления метаданных Самовывоз</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 1000 запросов | 60 миллисекунд | 20 запросов | Один запрос с кодом ответа <code>409</code> учитывается как 10 запросов </div>
2814
+
2815
+ :param order_id: ID сборочного задания (required)
2816
+ :type order_id: int
2817
+ :param api_imei_request: (required)
2818
+ :type api_imei_request: ApiIMEIRequest
2819
+ :param _request_timeout: timeout setting for this request. If one
2820
+ number provided, it will be total request
2821
+ timeout. It can also be a pair (tuple) of
2822
+ (connection, read) timeouts.
2823
+ :type _request_timeout: int, tuple(int, int), optional
2824
+ :param _request_auth: set to override the auth_settings for an a single
2825
+ request; this effectively ignores the
2826
+ authentication in the spec for a single request.
2827
+ :type _request_auth: dict, optional
2828
+ :param _content_type: force content-type for the request.
2829
+ :type _content_type: str, Optional
2830
+ :param _headers: set to override the headers for a single
2831
+ request; this effectively ignores the headers
2832
+ in the spec for a single request.
2833
+ :type _headers: dict, optional
2834
+ :param _host_index: set to override the host_index for a single
2835
+ request; this effectively ignores the host_index
2836
+ in the spec for a single request.
2837
+ :type _host_index: int, optional
2838
+ :return: Returns the result object.
2839
+ """ # noqa: E501
2840
+
2841
+ _param = self._api_v3_click_collect_orders_order_id_meta_imei_put_serialize(
2842
+ order_id=order_id,
2843
+ api_imei_request=api_imei_request,
2844
+ _request_auth=_request_auth,
2845
+ _content_type=_content_type,
2846
+ _headers=_headers,
2847
+ _host_index=_host_index
2848
+ )
2849
+
2850
+ _response_types_map: Dict[str, Optional[str]] = {
2851
+ '204': None,
2852
+ '400': "Error",
2853
+ '401': "ApiV3ClickCollectOrdersNewGet401Response",
2854
+ '403': "Error",
2855
+ '404': "Error",
2856
+ '409': "Error",
2857
+ '429': "ApiV3ClickCollectOrdersNewGet401Response",
2858
+ }
2859
+ response_data = self.api_client.call_api(
2860
+ *_param,
2861
+ _request_timeout=_request_timeout
2862
+ )
2863
+ return response_data.response
2864
+
2865
+
2866
+ def _api_v3_click_collect_orders_order_id_meta_imei_put_serialize(
2867
+ self,
2868
+ order_id,
2869
+ api_imei_request,
2870
+ _request_auth,
2871
+ _content_type,
2872
+ _headers,
2873
+ _host_index,
2874
+ ) -> RequestSerialized:
2875
+
2876
+ _host = None
2877
+
2878
+ _collection_formats: Dict[str, str] = {
2879
+ }
2880
+
2881
+ _path_params: Dict[str, str] = {}
2882
+ _query_params: List[Tuple[str, str]] = []
2883
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2884
+ _form_params: List[Tuple[str, str]] = []
2885
+ _files: Dict[
2886
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2887
+ ] = {}
2888
+ _body_params: Optional[bytes] = None
2889
+
2890
+ # process the path parameters
2891
+ if order_id is not None:
2892
+ _path_params['orderId'] = order_id
2893
+ # process the query parameters
2894
+ # process the header parameters
2895
+ # process the form parameters
2896
+ # process the body parameter
2897
+ if api_imei_request is not None:
2898
+ _body_params = api_imei_request
2899
+
2900
+
2901
+ # set the HTTP header `Accept`
2902
+ if 'Accept' not in _header_params:
2903
+ _header_params['Accept'] = self.api_client.select_header_accept(
2904
+ [
2905
+ 'application/json'
2906
+ ]
2907
+ )
2908
+
2909
+ # set the HTTP header `Content-Type`
2910
+ if _content_type:
2911
+ _header_params['Content-Type'] = _content_type
2912
+ else:
2913
+ _default_content_type = (
2914
+ self.api_client.select_header_content_type(
2915
+ [
2916
+ 'application/json'
2917
+ ]
2918
+ )
2919
+ )
2920
+ if _default_content_type is not None:
2921
+ _header_params['Content-Type'] = _default_content_type
2922
+
2923
+ # authentication setting
2924
+ _auth_settings: List[str] = [
2925
+ 'HeaderApiKey'
2926
+ ]
2927
+
2928
+ return self.api_client.param_serialize(
2929
+ method='PUT',
2930
+ resource_path='/api/v3/click-collect/orders/{orderId}/meta/imei',
2931
+ path_params=_path_params,
2932
+ query_params=_query_params,
2933
+ header_params=_header_params,
2934
+ body=_body_params,
2935
+ post_params=_form_params,
2936
+ files=_files,
2937
+ auth_settings=_auth_settings,
2938
+ collection_formats=_collection_formats,
2939
+ _host=_host,
2940
+ _request_auth=_request_auth
2941
+ )
2942
+
2943
+
2944
+
2945
+
2946
+ @validate_call
2947
+ def api_v3_click_collect_orders_order_id_meta_sgtin_put(
2948
+ self,
2949
+ order_id: Annotated[StrictInt, Field(description="ID сборочного задания")],
2950
+ api_sgtins_request: ApiSGTINsRequest,
2951
+ _request_timeout: Union[
2952
+ None,
2953
+ Annotated[StrictFloat, Field(gt=0)],
2954
+ Tuple[
2955
+ Annotated[StrictFloat, Field(gt=0)],
2956
+ Annotated[StrictFloat, Field(gt=0)]
2957
+ ]
2958
+ ] = None,
2959
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2960
+ _content_type: Optional[StrictStr] = None,
2961
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2962
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2963
+ ) -> None:
2964
+ """Закрепить за сборочным заданием код маркировки товара
2965
+
2966
+ Метод закрепляет за сборочным заданием код маркировки [Честный знак](https://честныйзнак.рф). <br><br> Закрепить код маркировки можно только, если в [метаданных сборочного задания](/openapi/in-store-pickup#tag/Metadannye-Samovyvoz/paths/~1api~1v3~1click-collect~1orders~1{orderId}~1meta/get) есть поле `sgtins`, а сборочное задание находится в [статусе](/openapi/in-store-pickup#tag/Sborochnye-zadaniya-Samovyvoz/paths/~1api~1v3~1click-collect~1orders~1status/post) `confirm`. <br><br> Получить загруженные маркировки можно в [метаданных сборочного задания](/openapi/in-store-pickup#tag/Metadannye-Samovyvoz/paths/~1api~1v3~1click-collect~1orders~1{orderId}~1meta/get). <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов <strong>закрепления метаданных Самовывоз</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 1000 запросов | 60 миллисекунд | 20 запросов | Один запрос с кодом ответа <code>409</code> учитывается как 10 запросов </div>
2967
+
2968
+ :param order_id: ID сборочного задания (required)
2969
+ :type order_id: int
2970
+ :param api_sgtins_request: (required)
2971
+ :type api_sgtins_request: ApiSGTINsRequest
2972
+ :param _request_timeout: timeout setting for this request. If one
2973
+ number provided, it will be total request
2974
+ timeout. It can also be a pair (tuple) of
2975
+ (connection, read) timeouts.
2976
+ :type _request_timeout: int, tuple(int, int), optional
2977
+ :param _request_auth: set to override the auth_settings for an a single
2978
+ request; this effectively ignores the
2979
+ authentication in the spec for a single request.
2980
+ :type _request_auth: dict, optional
2981
+ :param _content_type: force content-type for the request.
2982
+ :type _content_type: str, Optional
2983
+ :param _headers: set to override the headers for a single
2984
+ request; this effectively ignores the headers
2985
+ in the spec for a single request.
2986
+ :type _headers: dict, optional
2987
+ :param _host_index: set to override the host_index for a single
2988
+ request; this effectively ignores the host_index
2989
+ in the spec for a single request.
2990
+ :type _host_index: int, optional
2991
+ :return: Returns the result object.
2992
+ """ # noqa: E501
2993
+
2994
+ _param = self._api_v3_click_collect_orders_order_id_meta_sgtin_put_serialize(
2995
+ order_id=order_id,
2996
+ api_sgtins_request=api_sgtins_request,
2997
+ _request_auth=_request_auth,
2998
+ _content_type=_content_type,
2999
+ _headers=_headers,
3000
+ _host_index=_host_index
3001
+ )
3002
+
3003
+ _response_types_map: Dict[str, Optional[str]] = {
3004
+ '204': None,
3005
+ '400': "Error",
3006
+ '401': "ApiV3ClickCollectOrdersNewGet401Response",
3007
+ '403': "Error",
3008
+ '404': "Error",
3009
+ '409': "Error",
3010
+ '429': "ApiV3ClickCollectOrdersNewGet401Response",
3011
+ }
3012
+ response_data = self.api_client.call_api(
3013
+ *_param,
3014
+ _request_timeout=_request_timeout
3015
+ )
3016
+ response_data.read()
3017
+ return self.api_client.response_deserialize(
3018
+ response_data=response_data,
3019
+ response_types_map=_response_types_map,
3020
+ ).data
3021
+
3022
+
3023
+ @validate_call
3024
+ def api_v3_click_collect_orders_order_id_meta_sgtin_put_with_http_info(
3025
+ self,
3026
+ order_id: Annotated[StrictInt, Field(description="ID сборочного задания")],
3027
+ api_sgtins_request: ApiSGTINsRequest,
3028
+ _request_timeout: Union[
3029
+ None,
3030
+ Annotated[StrictFloat, Field(gt=0)],
3031
+ Tuple[
3032
+ Annotated[StrictFloat, Field(gt=0)],
3033
+ Annotated[StrictFloat, Field(gt=0)]
3034
+ ]
3035
+ ] = None,
3036
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3037
+ _content_type: Optional[StrictStr] = None,
3038
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3039
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3040
+ ) -> ApiResponse[None]:
3041
+ """Закрепить за сборочным заданием код маркировки товара
3042
+
3043
+ Метод закрепляет за сборочным заданием код маркировки [Честный знак](https://честныйзнак.рф). <br><br> Закрепить код маркировки можно только, если в [метаданных сборочного задания](/openapi/in-store-pickup#tag/Metadannye-Samovyvoz/paths/~1api~1v3~1click-collect~1orders~1{orderId}~1meta/get) есть поле `sgtins`, а сборочное задание находится в [статусе](/openapi/in-store-pickup#tag/Sborochnye-zadaniya-Samovyvoz/paths/~1api~1v3~1click-collect~1orders~1status/post) `confirm`. <br><br> Получить загруженные маркировки можно в [метаданных сборочного задания](/openapi/in-store-pickup#tag/Metadannye-Samovyvoz/paths/~1api~1v3~1click-collect~1orders~1{orderId}~1meta/get). <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов <strong>закрепления метаданных Самовывоз</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 1000 запросов | 60 миллисекунд | 20 запросов | Один запрос с кодом ответа <code>409</code> учитывается как 10 запросов </div>
3044
+
3045
+ :param order_id: ID сборочного задания (required)
3046
+ :type order_id: int
3047
+ :param api_sgtins_request: (required)
3048
+ :type api_sgtins_request: ApiSGTINsRequest
3049
+ :param _request_timeout: timeout setting for this request. If one
3050
+ number provided, it will be total request
3051
+ timeout. It can also be a pair (tuple) of
3052
+ (connection, read) timeouts.
3053
+ :type _request_timeout: int, tuple(int, int), optional
3054
+ :param _request_auth: set to override the auth_settings for an a single
3055
+ request; this effectively ignores the
3056
+ authentication in the spec for a single request.
3057
+ :type _request_auth: dict, optional
3058
+ :param _content_type: force content-type for the request.
3059
+ :type _content_type: str, Optional
3060
+ :param _headers: set to override the headers for a single
3061
+ request; this effectively ignores the headers
3062
+ in the spec for a single request.
3063
+ :type _headers: dict, optional
3064
+ :param _host_index: set to override the host_index for a single
3065
+ request; this effectively ignores the host_index
3066
+ in the spec for a single request.
3067
+ :type _host_index: int, optional
3068
+ :return: Returns the result object.
3069
+ """ # noqa: E501
3070
+
3071
+ _param = self._api_v3_click_collect_orders_order_id_meta_sgtin_put_serialize(
3072
+ order_id=order_id,
3073
+ api_sgtins_request=api_sgtins_request,
3074
+ _request_auth=_request_auth,
3075
+ _content_type=_content_type,
3076
+ _headers=_headers,
3077
+ _host_index=_host_index
3078
+ )
3079
+
3080
+ _response_types_map: Dict[str, Optional[str]] = {
3081
+ '204': None,
3082
+ '400': "Error",
3083
+ '401': "ApiV3ClickCollectOrdersNewGet401Response",
3084
+ '403': "Error",
3085
+ '404': "Error",
3086
+ '409': "Error",
3087
+ '429': "ApiV3ClickCollectOrdersNewGet401Response",
3088
+ }
3089
+ response_data = self.api_client.call_api(
3090
+ *_param,
3091
+ _request_timeout=_request_timeout
3092
+ )
3093
+ response_data.read()
3094
+ return self.api_client.response_deserialize(
3095
+ response_data=response_data,
3096
+ response_types_map=_response_types_map,
3097
+ )
3098
+
3099
+
3100
+ @validate_call
3101
+ def api_v3_click_collect_orders_order_id_meta_sgtin_put_without_preload_content(
3102
+ self,
3103
+ order_id: Annotated[StrictInt, Field(description="ID сборочного задания")],
3104
+ api_sgtins_request: ApiSGTINsRequest,
3105
+ _request_timeout: Union[
3106
+ None,
3107
+ Annotated[StrictFloat, Field(gt=0)],
3108
+ Tuple[
3109
+ Annotated[StrictFloat, Field(gt=0)],
3110
+ Annotated[StrictFloat, Field(gt=0)]
3111
+ ]
3112
+ ] = None,
3113
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3114
+ _content_type: Optional[StrictStr] = None,
3115
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3116
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3117
+ ) -> RESTResponseType:
3118
+ """Закрепить за сборочным заданием код маркировки товара
3119
+
3120
+ Метод закрепляет за сборочным заданием код маркировки [Честный знак](https://честныйзнак.рф). <br><br> Закрепить код маркировки можно только, если в [метаданных сборочного задания](/openapi/in-store-pickup#tag/Metadannye-Samovyvoz/paths/~1api~1v3~1click-collect~1orders~1{orderId}~1meta/get) есть поле `sgtins`, а сборочное задание находится в [статусе](/openapi/in-store-pickup#tag/Sborochnye-zadaniya-Samovyvoz/paths/~1api~1v3~1click-collect~1orders~1status/post) `confirm`. <br><br> Получить загруженные маркировки можно в [метаданных сборочного задания](/openapi/in-store-pickup#tag/Metadannye-Samovyvoz/paths/~1api~1v3~1click-collect~1orders~1{orderId}~1meta/get). <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов <strong>закрепления метаданных Самовывоз</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 1000 запросов | 60 миллисекунд | 20 запросов | Один запрос с кодом ответа <code>409</code> учитывается как 10 запросов </div>
3121
+
3122
+ :param order_id: ID сборочного задания (required)
3123
+ :type order_id: int
3124
+ :param api_sgtins_request: (required)
3125
+ :type api_sgtins_request: ApiSGTINsRequest
3126
+ :param _request_timeout: timeout setting for this request. If one
3127
+ number provided, it will be total request
3128
+ timeout. It can also be a pair (tuple) of
3129
+ (connection, read) timeouts.
3130
+ :type _request_timeout: int, tuple(int, int), optional
3131
+ :param _request_auth: set to override the auth_settings for an a single
3132
+ request; this effectively ignores the
3133
+ authentication in the spec for a single request.
3134
+ :type _request_auth: dict, optional
3135
+ :param _content_type: force content-type for the request.
3136
+ :type _content_type: str, Optional
3137
+ :param _headers: set to override the headers for a single
3138
+ request; this effectively ignores the headers
3139
+ in the spec for a single request.
3140
+ :type _headers: dict, optional
3141
+ :param _host_index: set to override the host_index for a single
3142
+ request; this effectively ignores the host_index
3143
+ in the spec for a single request.
3144
+ :type _host_index: int, optional
3145
+ :return: Returns the result object.
3146
+ """ # noqa: E501
3147
+
3148
+ _param = self._api_v3_click_collect_orders_order_id_meta_sgtin_put_serialize(
3149
+ order_id=order_id,
3150
+ api_sgtins_request=api_sgtins_request,
3151
+ _request_auth=_request_auth,
3152
+ _content_type=_content_type,
3153
+ _headers=_headers,
3154
+ _host_index=_host_index
3155
+ )
3156
+
3157
+ _response_types_map: Dict[str, Optional[str]] = {
3158
+ '204': None,
3159
+ '400': "Error",
3160
+ '401': "ApiV3ClickCollectOrdersNewGet401Response",
3161
+ '403': "Error",
3162
+ '404': "Error",
3163
+ '409': "Error",
3164
+ '429': "ApiV3ClickCollectOrdersNewGet401Response",
3165
+ }
3166
+ response_data = self.api_client.call_api(
3167
+ *_param,
3168
+ _request_timeout=_request_timeout
3169
+ )
3170
+ return response_data.response
3171
+
3172
+
3173
+ def _api_v3_click_collect_orders_order_id_meta_sgtin_put_serialize(
3174
+ self,
3175
+ order_id,
3176
+ api_sgtins_request,
3177
+ _request_auth,
3178
+ _content_type,
3179
+ _headers,
3180
+ _host_index,
3181
+ ) -> RequestSerialized:
3182
+
3183
+ _host = None
3184
+
3185
+ _collection_formats: Dict[str, str] = {
3186
+ }
3187
+
3188
+ _path_params: Dict[str, str] = {}
3189
+ _query_params: List[Tuple[str, str]] = []
3190
+ _header_params: Dict[str, Optional[str]] = _headers or {}
3191
+ _form_params: List[Tuple[str, str]] = []
3192
+ _files: Dict[
3193
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3194
+ ] = {}
3195
+ _body_params: Optional[bytes] = None
3196
+
3197
+ # process the path parameters
3198
+ if order_id is not None:
3199
+ _path_params['orderId'] = order_id
3200
+ # process the query parameters
3201
+ # process the header parameters
3202
+ # process the form parameters
3203
+ # process the body parameter
3204
+ if api_sgtins_request is not None:
3205
+ _body_params = api_sgtins_request
3206
+
3207
+
3208
+ # set the HTTP header `Accept`
3209
+ if 'Accept' not in _header_params:
3210
+ _header_params['Accept'] = self.api_client.select_header_accept(
3211
+ [
3212
+ 'application/json'
3213
+ ]
3214
+ )
3215
+
3216
+ # set the HTTP header `Content-Type`
3217
+ if _content_type:
3218
+ _header_params['Content-Type'] = _content_type
3219
+ else:
3220
+ _default_content_type = (
3221
+ self.api_client.select_header_content_type(
3222
+ [
3223
+ 'application/json'
3224
+ ]
3225
+ )
3226
+ )
3227
+ if _default_content_type is not None:
3228
+ _header_params['Content-Type'] = _default_content_type
3229
+
3230
+ # authentication setting
3231
+ _auth_settings: List[str] = [
3232
+ 'HeaderApiKey'
3233
+ ]
3234
+
3235
+ return self.api_client.param_serialize(
3236
+ method='PUT',
3237
+ resource_path='/api/v3/click-collect/orders/{orderId}/meta/sgtin',
3238
+ path_params=_path_params,
3239
+ query_params=_query_params,
3240
+ header_params=_header_params,
3241
+ body=_body_params,
3242
+ post_params=_form_params,
3243
+ files=_files,
3244
+ auth_settings=_auth_settings,
3245
+ collection_formats=_collection_formats,
3246
+ _host=_host,
3247
+ _request_auth=_request_auth
3248
+ )
3249
+
3250
+
3251
+
3252
+
3253
+ @validate_call
3254
+ def api_v3_click_collect_orders_order_id_meta_uin_put(
3255
+ self,
3256
+ order_id: Annotated[StrictInt, Field(description="ID сборочного задания")],
3257
+ api_uin_request: ApiUINRequest,
3258
+ _request_timeout: Union[
3259
+ None,
3260
+ Annotated[StrictFloat, Field(gt=0)],
3261
+ Tuple[
3262
+ Annotated[StrictFloat, Field(gt=0)],
3263
+ Annotated[StrictFloat, Field(gt=0)]
3264
+ ]
3265
+ ] = None,
3266
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3267
+ _content_type: Optional[StrictStr] = None,
3268
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3269
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3270
+ ) -> None:
3271
+ """Закрепить за сборочным заданием УИН (уникальный идентификационный номер)
3272
+
3273
+ Метод обновляет УИН сборочного задания. У одного сборочного задания может быть только один УИН. Добавлять маркировку можно только для сборочных заданий в статусе `confirm` и доставка которых осуществляется силами WB. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов <strong>закрепления метаданных Самовывоз</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 1000 запросов | 60 миллисекунд | 20 запросов | Один запрос с кодом ответа <code>409</code> учитывается как 10 запросов </div>
3274
+
3275
+ :param order_id: ID сборочного задания (required)
3276
+ :type order_id: int
3277
+ :param api_uin_request: (required)
3278
+ :type api_uin_request: ApiUINRequest
3279
+ :param _request_timeout: timeout setting for this request. If one
3280
+ number provided, it will be total request
3281
+ timeout. It can also be a pair (tuple) of
3282
+ (connection, read) timeouts.
3283
+ :type _request_timeout: int, tuple(int, int), optional
3284
+ :param _request_auth: set to override the auth_settings for an a single
3285
+ request; this effectively ignores the
3286
+ authentication in the spec for a single request.
3287
+ :type _request_auth: dict, optional
3288
+ :param _content_type: force content-type for the request.
3289
+ :type _content_type: str, Optional
3290
+ :param _headers: set to override the headers for a single
3291
+ request; this effectively ignores the headers
3292
+ in the spec for a single request.
3293
+ :type _headers: dict, optional
3294
+ :param _host_index: set to override the host_index for a single
3295
+ request; this effectively ignores the host_index
3296
+ in the spec for a single request.
3297
+ :type _host_index: int, optional
3298
+ :return: Returns the result object.
3299
+ """ # noqa: E501
3300
+
3301
+ _param = self._api_v3_click_collect_orders_order_id_meta_uin_put_serialize(
3302
+ order_id=order_id,
3303
+ api_uin_request=api_uin_request,
3304
+ _request_auth=_request_auth,
3305
+ _content_type=_content_type,
3306
+ _headers=_headers,
3307
+ _host_index=_host_index
3308
+ )
3309
+
3310
+ _response_types_map: Dict[str, Optional[str]] = {
3311
+ '204': None,
3312
+ '400': "Error",
3313
+ '401': "ApiV3ClickCollectOrdersNewGet401Response",
3314
+ '403': "Error",
3315
+ '404': "Error",
3316
+ '409': "Error",
3317
+ '429': "ApiV3ClickCollectOrdersNewGet401Response",
3318
+ }
3319
+ response_data = self.api_client.call_api(
3320
+ *_param,
3321
+ _request_timeout=_request_timeout
3322
+ )
3323
+ response_data.read()
3324
+ return self.api_client.response_deserialize(
3325
+ response_data=response_data,
3326
+ response_types_map=_response_types_map,
3327
+ ).data
3328
+
3329
+
3330
+ @validate_call
3331
+ def api_v3_click_collect_orders_order_id_meta_uin_put_with_http_info(
3332
+ self,
3333
+ order_id: Annotated[StrictInt, Field(description="ID сборочного задания")],
3334
+ api_uin_request: ApiUINRequest,
3335
+ _request_timeout: Union[
3336
+ None,
3337
+ Annotated[StrictFloat, Field(gt=0)],
3338
+ Tuple[
3339
+ Annotated[StrictFloat, Field(gt=0)],
3340
+ Annotated[StrictFloat, Field(gt=0)]
3341
+ ]
3342
+ ] = None,
3343
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3344
+ _content_type: Optional[StrictStr] = None,
3345
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3346
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3347
+ ) -> ApiResponse[None]:
3348
+ """Закрепить за сборочным заданием УИН (уникальный идентификационный номер)
3349
+
3350
+ Метод обновляет УИН сборочного задания. У одного сборочного задания может быть только один УИН. Добавлять маркировку можно только для сборочных заданий в статусе `confirm` и доставка которых осуществляется силами WB. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов <strong>закрепления метаданных Самовывоз</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 1000 запросов | 60 миллисекунд | 20 запросов | Один запрос с кодом ответа <code>409</code> учитывается как 10 запросов </div>
3351
+
3352
+ :param order_id: ID сборочного задания (required)
3353
+ :type order_id: int
3354
+ :param api_uin_request: (required)
3355
+ :type api_uin_request: ApiUINRequest
3356
+ :param _request_timeout: timeout setting for this request. If one
3357
+ number provided, it will be total request
3358
+ timeout. It can also be a pair (tuple) of
3359
+ (connection, read) timeouts.
3360
+ :type _request_timeout: int, tuple(int, int), optional
3361
+ :param _request_auth: set to override the auth_settings for an a single
3362
+ request; this effectively ignores the
3363
+ authentication in the spec for a single request.
3364
+ :type _request_auth: dict, optional
3365
+ :param _content_type: force content-type for the request.
3366
+ :type _content_type: str, Optional
3367
+ :param _headers: set to override the headers for a single
3368
+ request; this effectively ignores the headers
3369
+ in the spec for a single request.
3370
+ :type _headers: dict, optional
3371
+ :param _host_index: set to override the host_index for a single
3372
+ request; this effectively ignores the host_index
3373
+ in the spec for a single request.
3374
+ :type _host_index: int, optional
3375
+ :return: Returns the result object.
3376
+ """ # noqa: E501
3377
+
3378
+ _param = self._api_v3_click_collect_orders_order_id_meta_uin_put_serialize(
3379
+ order_id=order_id,
3380
+ api_uin_request=api_uin_request,
3381
+ _request_auth=_request_auth,
3382
+ _content_type=_content_type,
3383
+ _headers=_headers,
3384
+ _host_index=_host_index
3385
+ )
3386
+
3387
+ _response_types_map: Dict[str, Optional[str]] = {
3388
+ '204': None,
3389
+ '400': "Error",
3390
+ '401': "ApiV3ClickCollectOrdersNewGet401Response",
3391
+ '403': "Error",
3392
+ '404': "Error",
3393
+ '409': "Error",
3394
+ '429': "ApiV3ClickCollectOrdersNewGet401Response",
3395
+ }
3396
+ response_data = self.api_client.call_api(
3397
+ *_param,
3398
+ _request_timeout=_request_timeout
3399
+ )
3400
+ response_data.read()
3401
+ return self.api_client.response_deserialize(
3402
+ response_data=response_data,
3403
+ response_types_map=_response_types_map,
3404
+ )
3405
+
3406
+
3407
+ @validate_call
3408
+ def api_v3_click_collect_orders_order_id_meta_uin_put_without_preload_content(
3409
+ self,
3410
+ order_id: Annotated[StrictInt, Field(description="ID сборочного задания")],
3411
+ api_uin_request: ApiUINRequest,
3412
+ _request_timeout: Union[
3413
+ None,
3414
+ Annotated[StrictFloat, Field(gt=0)],
3415
+ Tuple[
3416
+ Annotated[StrictFloat, Field(gt=0)],
3417
+ Annotated[StrictFloat, Field(gt=0)]
3418
+ ]
3419
+ ] = None,
3420
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3421
+ _content_type: Optional[StrictStr] = None,
3422
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3423
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3424
+ ) -> RESTResponseType:
3425
+ """Закрепить за сборочным заданием УИН (уникальный идентификационный номер)
3426
+
3427
+ Метод обновляет УИН сборочного задания. У одного сборочного задания может быть только один УИН. Добавлять маркировку можно только для сборочных заданий в статусе `confirm` и доставка которых осуществляется силами WB. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов <strong>закрепления метаданных Самовывоз</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 1000 запросов | 60 миллисекунд | 20 запросов | Один запрос с кодом ответа <code>409</code> учитывается как 10 запросов </div>
3428
+
3429
+ :param order_id: ID сборочного задания (required)
3430
+ :type order_id: int
3431
+ :param api_uin_request: (required)
3432
+ :type api_uin_request: ApiUINRequest
3433
+ :param _request_timeout: timeout setting for this request. If one
3434
+ number provided, it will be total request
3435
+ timeout. It can also be a pair (tuple) of
3436
+ (connection, read) timeouts.
3437
+ :type _request_timeout: int, tuple(int, int), optional
3438
+ :param _request_auth: set to override the auth_settings for an a single
3439
+ request; this effectively ignores the
3440
+ authentication in the spec for a single request.
3441
+ :type _request_auth: dict, optional
3442
+ :param _content_type: force content-type for the request.
3443
+ :type _content_type: str, Optional
3444
+ :param _headers: set to override the headers for a single
3445
+ request; this effectively ignores the headers
3446
+ in the spec for a single request.
3447
+ :type _headers: dict, optional
3448
+ :param _host_index: set to override the host_index for a single
3449
+ request; this effectively ignores the host_index
3450
+ in the spec for a single request.
3451
+ :type _host_index: int, optional
3452
+ :return: Returns the result object.
3453
+ """ # noqa: E501
3454
+
3455
+ _param = self._api_v3_click_collect_orders_order_id_meta_uin_put_serialize(
3456
+ order_id=order_id,
3457
+ api_uin_request=api_uin_request,
3458
+ _request_auth=_request_auth,
3459
+ _content_type=_content_type,
3460
+ _headers=_headers,
3461
+ _host_index=_host_index
3462
+ )
3463
+
3464
+ _response_types_map: Dict[str, Optional[str]] = {
3465
+ '204': None,
3466
+ '400': "Error",
3467
+ '401': "ApiV3ClickCollectOrdersNewGet401Response",
3468
+ '403': "Error",
3469
+ '404': "Error",
3470
+ '409': "Error",
3471
+ '429': "ApiV3ClickCollectOrdersNewGet401Response",
3472
+ }
3473
+ response_data = self.api_client.call_api(
3474
+ *_param,
3475
+ _request_timeout=_request_timeout
3476
+ )
3477
+ return response_data.response
3478
+
3479
+
3480
+ def _api_v3_click_collect_orders_order_id_meta_uin_put_serialize(
3481
+ self,
3482
+ order_id,
3483
+ api_uin_request,
3484
+ _request_auth,
3485
+ _content_type,
3486
+ _headers,
3487
+ _host_index,
3488
+ ) -> RequestSerialized:
3489
+
3490
+ _host = None
3491
+
3492
+ _collection_formats: Dict[str, str] = {
3493
+ }
3494
+
3495
+ _path_params: Dict[str, str] = {}
3496
+ _query_params: List[Tuple[str, str]] = []
3497
+ _header_params: Dict[str, Optional[str]] = _headers or {}
3498
+ _form_params: List[Tuple[str, str]] = []
3499
+ _files: Dict[
3500
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3501
+ ] = {}
3502
+ _body_params: Optional[bytes] = None
3503
+
3504
+ # process the path parameters
3505
+ if order_id is not None:
3506
+ _path_params['orderId'] = order_id
3507
+ # process the query parameters
3508
+ # process the header parameters
3509
+ # process the form parameters
3510
+ # process the body parameter
3511
+ if api_uin_request is not None:
3512
+ _body_params = api_uin_request
3513
+
3514
+
3515
+ # set the HTTP header `Accept`
3516
+ if 'Accept' not in _header_params:
3517
+ _header_params['Accept'] = self.api_client.select_header_accept(
3518
+ [
3519
+ 'application/json'
3520
+ ]
3521
+ )
3522
+
3523
+ # set the HTTP header `Content-Type`
3524
+ if _content_type:
3525
+ _header_params['Content-Type'] = _content_type
3526
+ else:
3527
+ _default_content_type = (
3528
+ self.api_client.select_header_content_type(
3529
+ [
3530
+ 'application/json'
3531
+ ]
3532
+ )
3533
+ )
3534
+ if _default_content_type is not None:
3535
+ _header_params['Content-Type'] = _default_content_type
3536
+
3537
+ # authentication setting
3538
+ _auth_settings: List[str] = [
3539
+ 'HeaderApiKey'
3540
+ ]
3541
+
3542
+ return self.api_client.param_serialize(
3543
+ method='PUT',
3544
+ resource_path='/api/v3/click-collect/orders/{orderId}/meta/uin',
3545
+ path_params=_path_params,
3546
+ query_params=_query_params,
3547
+ header_params=_header_params,
3548
+ body=_body_params,
3549
+ post_params=_form_params,
3550
+ files=_files,
3551
+ auth_settings=_auth_settings,
3552
+ collection_formats=_collection_formats,
3553
+ _host=_host,
3554
+ _request_auth=_request_auth
3555
+ )
3556
+
3557
+
3558
+
3559
+
1764
3560
  @validate_call
1765
3561
  def api_v3_click_collect_orders_order_id_prepare_patch(
1766
3562
  self,