wildberries-sdk 0.1.17__py3-none-any.whl → 0.1.19__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 (96) 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/finances/models/detail_report_item.py +6 -2
  17. wildberries_sdk/general/__init__.py +3 -7
  18. wildberries_sdk/general/api/__init__.py +1 -3
  19. wildberries_sdk/general/api/{api.py → default_api.py} +560 -1
  20. wildberries_sdk/general/api_client.py +1 -1
  21. wildberries_sdk/general/configuration.py +1 -1
  22. wildberries_sdk/in_store_pickup/__init__.py +3 -5
  23. wildberries_sdk/in_store_pickup/api/__init__.py +1 -2
  24. wildberries_sdk/in_store_pickup/api/{api.py → default_api.py} +1798 -2
  25. wildberries_sdk/in_store_pickup/api_client.py +1 -1
  26. wildberries_sdk/in_store_pickup/configuration.py +1 -1
  27. wildberries_sdk/orders_dbs/__init__.py +3 -5
  28. wildberries_sdk/orders_dbs/api/__init__.py +1 -2
  29. wildberries_sdk/orders_dbs/api/{dbs_api.py → default_api.py} +1819 -2
  30. wildberries_sdk/orders_dbs/api_client.py +1 -1
  31. wildberries_sdk/orders_dbs/configuration.py +1 -1
  32. wildberries_sdk/orders_dbw/__init__.py +3 -5
  33. wildberries_sdk/orders_dbw/api/__init__.py +1 -2
  34. wildberries_sdk/orders_dbw/api/{dbw_api.py → default_api.py} +1821 -1
  35. wildberries_sdk/orders_dbw/api_client.py +1 -1
  36. wildberries_sdk/orders_dbw/configuration.py +1 -1
  37. wildberries_sdk/orders_fbs/__init__.py +3 -5
  38. wildberries_sdk/orders_fbs/api/__init__.py +1 -2
  39. wildberries_sdk/orders_fbs/api/default_api.py +10043 -0
  40. wildberries_sdk/orders_fbs/api_client.py +1 -1
  41. wildberries_sdk/orders_fbs/configuration.py +1 -1
  42. wildberries_sdk/orders_fbw/__init__.py +3 -5
  43. wildberries_sdk/orders_fbw/api/__init__.py +1 -2
  44. wildberries_sdk/orders_fbw/api/default_api.py +2368 -0
  45. wildberries_sdk/orders_fbw/api_client.py +1 -1
  46. wildberries_sdk/orders_fbw/configuration.py +1 -1
  47. wildberries_sdk/products/__init__.py +1 -7
  48. wildberries_sdk/products/api/__init__.py +0 -3
  49. wildberries_sdk/products/api/default_api.py +12348 -2
  50. wildberries_sdk/products/api_client.py +1 -1
  51. wildberries_sdk/products/configuration.py +1 -1
  52. wildberries_sdk/products/models/content_v2_cards_update_post_request_inner_dimensions.py +1 -1
  53. wildberries_sdk/products/models/content_v2_cards_upload_add_post_request_cards_to_add_inner_dimensions.py +1 -1
  54. wildberries_sdk/products/models/content_v2_cards_upload_post_request_inner_variants_inner_dimensions.py +1 -1
  55. wildberries_sdk/products/models/content_v2_get_cards_list_post200_response_cards_inner_tags_inner.py +1 -1
  56. wildberries_sdk/promotion/__init__.py +1 -3
  57. wildberries_sdk/promotion/api/__init__.py +0 -1
  58. wildberries_sdk/promotion/api/default_api.py +10107 -1059
  59. wildberries_sdk/promotion/api_client.py +1 -1
  60. wildberries_sdk/promotion/configuration.py +1 -1
  61. wildberries_sdk/reports/__init__.py +3 -13
  62. wildberries_sdk/reports/api/__init__.py +1 -6
  63. wildberries_sdk/{promotion/api/api.py → reports/api/default_api.py} +2245 -2381
  64. wildberries_sdk/reports/api_client.py +1 -1
  65. wildberries_sdk/reports/configuration.py +1 -1
  66. wildberries_sdk/tariffs/__init__.py +1 -3
  67. wildberries_sdk/tariffs/api/__init__.py +0 -1
  68. wildberries_sdk/tariffs/api/default_api.py +1147 -34
  69. wildberries_sdk/tariffs/api_client.py +1 -1
  70. wildberries_sdk/tariffs/configuration.py +1 -1
  71. wildberries_sdk/wbd/__init__.py +1 -3
  72. wildberries_sdk/wbd/api/__init__.py +0 -1
  73. wildberries_sdk/wbd/api/default_api.py +1662 -89
  74. wildberries_sdk/wbd/api_client.py +1 -1
  75. wildberries_sdk/wbd/configuration.py +1 -1
  76. wildberries_sdk/wbd/models/offer_create_request.py +1 -1
  77. wildberries_sdk/wbd/models/offer_update_request.py +1 -1
  78. wildberries_sdk-0.1.19.dist-info/METADATA +390 -0
  79. {wildberries_sdk-0.1.17.dist-info → wildberries_sdk-0.1.19.dist-info}/RECORD +82 -92
  80. wildberries_sdk/analytics/api/api.py +0 -1490
  81. wildberries_sdk/analytics/api/csv_api.py +0 -1178
  82. wildberries_sdk/communications/api/api.py +0 -1166
  83. wildberries_sdk/finances/api/api.py +0 -404
  84. wildberries_sdk/general/api/api_api.py +0 -341
  85. wildberries_sdk/general/api/wbapi_api.py +0 -291
  86. wildberries_sdk/orders_fbs/api/fbs_api.py +0 -2683
  87. wildberries_sdk/orders_fbw/api/api.py +0 -1153
  88. wildberries_sdk/products/api/api.py +0 -3891
  89. wildberries_sdk/reports/api/api.py +0 -350
  90. wildberries_sdk/reports/api/c_api.py +0 -361
  91. wildberries_sdk/tariffs/api/api.py +0 -1151
  92. wildberries_sdk/wbd/api/api.py +0 -1611
  93. wildberries_sdk-0.1.17.dist-info/METADATA +0 -191
  94. {wildberries_sdk-0.1.17.dist-info → wildberries_sdk-0.1.19.dist-info}/LICENSE +0 -0
  95. {wildberries_sdk-0.1.17.dist-info → wildberries_sdk-0.1.19.dist-info}/WHEEL +0 -0
  96. {wildberries_sdk-0.1.17.dist-info → wildberries_sdk-0.1.19.dist-info}/top_level.txt +0 -0
@@ -21,6 +21,11 @@ from typing import Optional
21
21
  from typing_extensions import Annotated
22
22
  from wildberries_sdk.orders_dbw.models.api_v3_dbw_orders_get200_response import ApiV3DbwOrdersGet200Response
23
23
  from wildberries_sdk.orders_dbw.models.api_v3_dbw_orders_new_get200_response import ApiV3DbwOrdersNewGet200Response
24
+ from wildberries_sdk.orders_dbw.models.api_v3_dbw_orders_order_id_meta_get200_response import ApiV3DbwOrdersOrderIdMetaGet200Response
25
+ from wildberries_sdk.orders_dbw.models.api_v3_dbw_orders_order_id_meta_gtin_put_request import ApiV3DbwOrdersOrderIdMetaGtinPutRequest
26
+ from wildberries_sdk.orders_dbw.models.api_v3_dbw_orders_order_id_meta_imei_put_request import ApiV3DbwOrdersOrderIdMetaImeiPutRequest
27
+ from wildberries_sdk.orders_dbw.models.api_v3_dbw_orders_order_id_meta_sgtin_put_request import ApiV3DbwOrdersOrderIdMetaSgtinPutRequest
28
+ from wildberries_sdk.orders_dbw.models.api_v3_dbw_orders_order_id_meta_uin_put_request import ApiV3DbwOrdersOrderIdMetaUinPutRequest
24
29
  from wildberries_sdk.orders_dbw.models.api_v3_dbw_orders_status_post200_response import ApiV3DbwOrdersStatusPost200Response
25
30
  from wildberries_sdk.orders_dbw.models.api_v3_dbw_orders_status_post_request import ApiV3DbwOrdersStatusPostRequest
26
31
  from wildberries_sdk.orders_dbw.models.api_v3_dbw_orders_stickers_post200_response import ApiV3DbwOrdersStickersPost200Response
@@ -35,7 +40,7 @@ from wildberries_sdk.orders_dbw.api_response import ApiResponse
35
40
  from wildberries_sdk.orders_dbw.rest import RESTResponseType
36
41
 
37
42
 
38
- class DBWApi:
43
+ class DefaultApi:
39
44
  """NOTE: This class is auto generated by OpenAPI Generator
40
45
  Ref: https://openapi-generator.tech
41
46
 
@@ -2059,6 +2064,1821 @@ class DBWApi:
2059
2064
 
2060
2065
 
2061
2066
 
2067
+ @validate_call
2068
+ def api_v3_dbw_orders_order_id_meta_delete(
2069
+ self,
2070
+ order_id: Annotated[StrictInt, Field(description="ID сборочного задания")],
2071
+ key: Annotated[Optional[StrictStr], Field(description="Название метаданных для удаления (`imei`, `uin`, `gtin`, `sgtin`). Передается только одно значение")] = None,
2072
+ _request_timeout: Union[
2073
+ None,
2074
+ Annotated[StrictFloat, Field(gt=0)],
2075
+ Tuple[
2076
+ Annotated[StrictFloat, Field(gt=0)],
2077
+ Annotated[StrictFloat, Field(gt=0)]
2078
+ ]
2079
+ ] = None,
2080
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2081
+ _content_type: Optional[StrictStr] = None,
2082
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2083
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
2084
+ ) -> None:
2085
+ """Удалить метаданные сборочного задания
2086
+
2087
+ Метод удаляет значение [метаданных сборочного задания](/openapi/orders-dbw#tag/Metadannye-DBW/paths/~1api~1v3~1dbw~1orders~1%7BorderId%7D~1meta/get) для переданного ключа. <br><br> Возможные метаданные: - `imei` — [IMEI](/openapi/orders-dbw#tag/Metadannye-DBW/paths/~1api~1v3~1dbw~1orders~1%7BorderId%7D~1meta~1imei/put) - `uin` — [УИН](/openapi/orders-dbw#tag/Metadannye-DBW/paths/~1api~1v3~1dbw~1orders~1%7BorderId%7D~1meta~1uin/put) - `gtin` — [GTIN](/openapi/orders-dbw#tag/Metadannye-DBW/paths/~1api~1v3~1dbw~1orders~1%7BorderId%7D~1meta~1gtin/put) - `sgtin` — [код маркировки](/openapi/orders-dbw#tag/Metadannye-DBW/paths/~1api~1v3~1dbw~1orders~1%7BorderId%7D~1meta~1sgtin/put) Можно передать только один ключ. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для следующих методов DBW: <ul> <li>получение и обновление списка контактов</li> <li>получение и удаление метаданных</li> <li>методы сборочных заданий</li> </ul> | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 300 запросов | 200 миллисекунд | 20 запросов | Один запрос с кодом ответа <code>409</code> учитывается как 10 запросов </div>
2088
+
2089
+ :param order_id: ID сборочного задания (required)
2090
+ :type order_id: int
2091
+ :param key: Название метаданных для удаления (`imei`, `uin`, `gtin`, `sgtin`). Передается только одно значение
2092
+ :type key: str
2093
+ :param _request_timeout: timeout setting for this request. If one
2094
+ number provided, it will be total request
2095
+ timeout. It can also be a pair (tuple) of
2096
+ (connection, read) timeouts.
2097
+ :type _request_timeout: int, tuple(int, int), optional
2098
+ :param _request_auth: set to override the auth_settings for an a single
2099
+ request; this effectively ignores the
2100
+ authentication in the spec for a single request.
2101
+ :type _request_auth: dict, optional
2102
+ :param _content_type: force content-type for the request.
2103
+ :type _content_type: str, Optional
2104
+ :param _headers: set to override the headers for a single
2105
+ request; this effectively ignores the headers
2106
+ in the spec for a single request.
2107
+ :type _headers: dict, optional
2108
+ :param _host_index: set to override the host_index for a single
2109
+ request; this effectively ignores the host_index
2110
+ in the spec for a single request.
2111
+ :type _host_index: int, optional
2112
+ :return: Returns the result object.
2113
+ """ # noqa: E501
2114
+
2115
+ _param = self._api_v3_dbw_orders_order_id_meta_delete_serialize(
2116
+ order_id=order_id,
2117
+ key=key,
2118
+ _request_auth=_request_auth,
2119
+ _content_type=_content_type,
2120
+ _headers=_headers,
2121
+ _host_index=_host_index
2122
+ )
2123
+
2124
+ _response_types_map: Dict[str, Optional[str]] = {
2125
+ '204': None,
2126
+ '400': "Error",
2127
+ '401': "ApiV3DbwOrdersNewGet401Response",
2128
+ '403': "Error",
2129
+ '409': "Error",
2130
+ '429': "ApiV3DbwOrdersNewGet401Response",
2131
+ }
2132
+ response_data = self.api_client.call_api(
2133
+ *_param,
2134
+ _request_timeout=_request_timeout
2135
+ )
2136
+ response_data.read()
2137
+ return self.api_client.response_deserialize(
2138
+ response_data=response_data,
2139
+ response_types_map=_response_types_map,
2140
+ ).data
2141
+
2142
+
2143
+ @validate_call
2144
+ def api_v3_dbw_orders_order_id_meta_delete_with_http_info(
2145
+ self,
2146
+ order_id: Annotated[StrictInt, Field(description="ID сборочного задания")],
2147
+ key: Annotated[Optional[StrictStr], Field(description="Название метаданных для удаления (`imei`, `uin`, `gtin`, `sgtin`). Передается только одно значение")] = None,
2148
+ _request_timeout: Union[
2149
+ None,
2150
+ Annotated[StrictFloat, Field(gt=0)],
2151
+ Tuple[
2152
+ Annotated[StrictFloat, Field(gt=0)],
2153
+ Annotated[StrictFloat, Field(gt=0)]
2154
+ ]
2155
+ ] = None,
2156
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2157
+ _content_type: Optional[StrictStr] = None,
2158
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2159
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
2160
+ ) -> ApiResponse[None]:
2161
+ """Удалить метаданные сборочного задания
2162
+
2163
+ Метод удаляет значение [метаданных сборочного задания](/openapi/orders-dbw#tag/Metadannye-DBW/paths/~1api~1v3~1dbw~1orders~1%7BorderId%7D~1meta/get) для переданного ключа. <br><br> Возможные метаданные: - `imei` — [IMEI](/openapi/orders-dbw#tag/Metadannye-DBW/paths/~1api~1v3~1dbw~1orders~1%7BorderId%7D~1meta~1imei/put) - `uin` — [УИН](/openapi/orders-dbw#tag/Metadannye-DBW/paths/~1api~1v3~1dbw~1orders~1%7BorderId%7D~1meta~1uin/put) - `gtin` — [GTIN](/openapi/orders-dbw#tag/Metadannye-DBW/paths/~1api~1v3~1dbw~1orders~1%7BorderId%7D~1meta~1gtin/put) - `sgtin` — [код маркировки](/openapi/orders-dbw#tag/Metadannye-DBW/paths/~1api~1v3~1dbw~1orders~1%7BorderId%7D~1meta~1sgtin/put) Можно передать только один ключ. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для следующих методов DBW: <ul> <li>получение и обновление списка контактов</li> <li>получение и удаление метаданных</li> <li>методы сборочных заданий</li> </ul> | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 300 запросов | 200 миллисекунд | 20 запросов | Один запрос с кодом ответа <code>409</code> учитывается как 10 запросов </div>
2164
+
2165
+ :param order_id: ID сборочного задания (required)
2166
+ :type order_id: int
2167
+ :param key: Название метаданных для удаления (`imei`, `uin`, `gtin`, `sgtin`). Передается только одно значение
2168
+ :type key: str
2169
+ :param _request_timeout: timeout setting for this request. If one
2170
+ number provided, it will be total request
2171
+ timeout. It can also be a pair (tuple) of
2172
+ (connection, read) timeouts.
2173
+ :type _request_timeout: int, tuple(int, int), optional
2174
+ :param _request_auth: set to override the auth_settings for an a single
2175
+ request; this effectively ignores the
2176
+ authentication in the spec for a single request.
2177
+ :type _request_auth: dict, optional
2178
+ :param _content_type: force content-type for the request.
2179
+ :type _content_type: str, Optional
2180
+ :param _headers: set to override the headers for a single
2181
+ request; this effectively ignores the headers
2182
+ in the spec for a single request.
2183
+ :type _headers: dict, optional
2184
+ :param _host_index: set to override the host_index for a single
2185
+ request; this effectively ignores the host_index
2186
+ in the spec for a single request.
2187
+ :type _host_index: int, optional
2188
+ :return: Returns the result object.
2189
+ """ # noqa: E501
2190
+
2191
+ _param = self._api_v3_dbw_orders_order_id_meta_delete_serialize(
2192
+ order_id=order_id,
2193
+ key=key,
2194
+ _request_auth=_request_auth,
2195
+ _content_type=_content_type,
2196
+ _headers=_headers,
2197
+ _host_index=_host_index
2198
+ )
2199
+
2200
+ _response_types_map: Dict[str, Optional[str]] = {
2201
+ '204': None,
2202
+ '400': "Error",
2203
+ '401': "ApiV3DbwOrdersNewGet401Response",
2204
+ '403': "Error",
2205
+ '409': "Error",
2206
+ '429': "ApiV3DbwOrdersNewGet401Response",
2207
+ }
2208
+ response_data = self.api_client.call_api(
2209
+ *_param,
2210
+ _request_timeout=_request_timeout
2211
+ )
2212
+ response_data.read()
2213
+ return self.api_client.response_deserialize(
2214
+ response_data=response_data,
2215
+ response_types_map=_response_types_map,
2216
+ )
2217
+
2218
+
2219
+ @validate_call
2220
+ def api_v3_dbw_orders_order_id_meta_delete_without_preload_content(
2221
+ self,
2222
+ order_id: Annotated[StrictInt, Field(description="ID сборочного задания")],
2223
+ key: Annotated[Optional[StrictStr], Field(description="Название метаданных для удаления (`imei`, `uin`, `gtin`, `sgtin`). Передается только одно значение")] = None,
2224
+ _request_timeout: Union[
2225
+ None,
2226
+ Annotated[StrictFloat, Field(gt=0)],
2227
+ Tuple[
2228
+ Annotated[StrictFloat, Field(gt=0)],
2229
+ Annotated[StrictFloat, Field(gt=0)]
2230
+ ]
2231
+ ] = None,
2232
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2233
+ _content_type: Optional[StrictStr] = None,
2234
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2235
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
2236
+ ) -> RESTResponseType:
2237
+ """Удалить метаданные сборочного задания
2238
+
2239
+ Метод удаляет значение [метаданных сборочного задания](/openapi/orders-dbw#tag/Metadannye-DBW/paths/~1api~1v3~1dbw~1orders~1%7BorderId%7D~1meta/get) для переданного ключа. <br><br> Возможные метаданные: - `imei` — [IMEI](/openapi/orders-dbw#tag/Metadannye-DBW/paths/~1api~1v3~1dbw~1orders~1%7BorderId%7D~1meta~1imei/put) - `uin` — [УИН](/openapi/orders-dbw#tag/Metadannye-DBW/paths/~1api~1v3~1dbw~1orders~1%7BorderId%7D~1meta~1uin/put) - `gtin` — [GTIN](/openapi/orders-dbw#tag/Metadannye-DBW/paths/~1api~1v3~1dbw~1orders~1%7BorderId%7D~1meta~1gtin/put) - `sgtin` — [код маркировки](/openapi/orders-dbw#tag/Metadannye-DBW/paths/~1api~1v3~1dbw~1orders~1%7BorderId%7D~1meta~1sgtin/put) Можно передать только один ключ. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для следующих методов DBW: <ul> <li>получение и обновление списка контактов</li> <li>получение и удаление метаданных</li> <li>методы сборочных заданий</li> </ul> | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 300 запросов | 200 миллисекунд | 20 запросов | Один запрос с кодом ответа <code>409</code> учитывается как 10 запросов </div>
2240
+
2241
+ :param order_id: ID сборочного задания (required)
2242
+ :type order_id: int
2243
+ :param key: Название метаданных для удаления (`imei`, `uin`, `gtin`, `sgtin`). Передается только одно значение
2244
+ :type key: str
2245
+ :param _request_timeout: timeout setting for this request. If one
2246
+ number provided, it will be total request
2247
+ timeout. It can also be a pair (tuple) of
2248
+ (connection, read) timeouts.
2249
+ :type _request_timeout: int, tuple(int, int), optional
2250
+ :param _request_auth: set to override the auth_settings for an a single
2251
+ request; this effectively ignores the
2252
+ authentication in the spec for a single request.
2253
+ :type _request_auth: dict, optional
2254
+ :param _content_type: force content-type for the request.
2255
+ :type _content_type: str, Optional
2256
+ :param _headers: set to override the headers for a single
2257
+ request; this effectively ignores the headers
2258
+ in the spec for a single request.
2259
+ :type _headers: dict, optional
2260
+ :param _host_index: set to override the host_index for a single
2261
+ request; this effectively ignores the host_index
2262
+ in the spec for a single request.
2263
+ :type _host_index: int, optional
2264
+ :return: Returns the result object.
2265
+ """ # noqa: E501
2266
+
2267
+ _param = self._api_v3_dbw_orders_order_id_meta_delete_serialize(
2268
+ order_id=order_id,
2269
+ key=key,
2270
+ _request_auth=_request_auth,
2271
+ _content_type=_content_type,
2272
+ _headers=_headers,
2273
+ _host_index=_host_index
2274
+ )
2275
+
2276
+ _response_types_map: Dict[str, Optional[str]] = {
2277
+ '204': None,
2278
+ '400': "Error",
2279
+ '401': "ApiV3DbwOrdersNewGet401Response",
2280
+ '403': "Error",
2281
+ '409': "Error",
2282
+ '429': "ApiV3DbwOrdersNewGet401Response",
2283
+ }
2284
+ response_data = self.api_client.call_api(
2285
+ *_param,
2286
+ _request_timeout=_request_timeout
2287
+ )
2288
+ return response_data.response
2289
+
2290
+
2291
+ def _api_v3_dbw_orders_order_id_meta_delete_serialize(
2292
+ self,
2293
+ order_id,
2294
+ key,
2295
+ _request_auth,
2296
+ _content_type,
2297
+ _headers,
2298
+ _host_index,
2299
+ ) -> RequestSerialized:
2300
+
2301
+ _hosts = [
2302
+ 'https://marketplace-api.wildberries.ru'
2303
+ ]
2304
+ _host = _hosts[_host_index]
2305
+
2306
+ _collection_formats: Dict[str, str] = {
2307
+ }
2308
+
2309
+ _path_params: Dict[str, str] = {}
2310
+ _query_params: List[Tuple[str, str]] = []
2311
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2312
+ _form_params: List[Tuple[str, str]] = []
2313
+ _files: Dict[
2314
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2315
+ ] = {}
2316
+ _body_params: Optional[bytes] = None
2317
+
2318
+ # process the path parameters
2319
+ if order_id is not None:
2320
+ _path_params['orderId'] = order_id
2321
+ # process the query parameters
2322
+ if key is not None:
2323
+
2324
+ _query_params.append(('key', key))
2325
+
2326
+ # process the header parameters
2327
+ # process the form parameters
2328
+ # process the body parameter
2329
+
2330
+
2331
+ # set the HTTP header `Accept`
2332
+ if 'Accept' not in _header_params:
2333
+ _header_params['Accept'] = self.api_client.select_header_accept(
2334
+ [
2335
+ 'application/json'
2336
+ ]
2337
+ )
2338
+
2339
+
2340
+ # authentication setting
2341
+ _auth_settings: List[str] = [
2342
+ 'HeaderApiKey'
2343
+ ]
2344
+
2345
+ return self.api_client.param_serialize(
2346
+ method='DELETE',
2347
+ resource_path='/api/v3/dbw/orders/{orderId}/meta',
2348
+ path_params=_path_params,
2349
+ query_params=_query_params,
2350
+ header_params=_header_params,
2351
+ body=_body_params,
2352
+ post_params=_form_params,
2353
+ files=_files,
2354
+ auth_settings=_auth_settings,
2355
+ collection_formats=_collection_formats,
2356
+ _host=_host,
2357
+ _request_auth=_request_auth
2358
+ )
2359
+
2360
+
2361
+
2362
+
2363
+ @validate_call
2364
+ def api_v3_dbw_orders_order_id_meta_get(
2365
+ self,
2366
+ order_id: Annotated[StrictInt, Field(description="ID сборочного задания")],
2367
+ _request_timeout: Union[
2368
+ None,
2369
+ Annotated[StrictFloat, Field(gt=0)],
2370
+ Tuple[
2371
+ Annotated[StrictFloat, Field(gt=0)],
2372
+ Annotated[StrictFloat, Field(gt=0)]
2373
+ ]
2374
+ ] = None,
2375
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2376
+ _content_type: Optional[StrictStr] = None,
2377
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2378
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
2379
+ ) -> ApiV3DbwOrdersOrderIdMetaGet200Response:
2380
+ """Получить метаданные сборочного задания
2381
+
2382
+ Метод возвращает метаданные [сборочного задания](/openapi/orders-dbw#tag/Sborochnye-zadaniya-DBW/paths/~1api~1v3~1dbw~1orders/get). <br><br> Перечень метаданных, доступных для сборочного задания, можно получить в [списке новых сборочных заданий](/openapi/orders-dbw#tag/Sborochnye-zadaniya-DBW/paths/~1api~1v3~1dbw~1orders~1new/get), поле `requiredMeta`. <br><br> Возможные метаданные: - `imei` — [IMEI](/openapi/orders-dbw#tag/Metadannye-DBW/paths/~1api~1v3~1dbw~1orders~1%7BorderId%7D~1meta~1imei/put) - `uin` — [УИН](/openapi/orders-dbw#tag/Metadannye-DBW/paths/~1api~1v3~1dbw~1orders~1%7BorderId%7D~1meta~1uin/put) - `gtin` — [GTIN](/openapi/orders-dbw#tag/Metadannye-DBW/paths/~1api~1v3~1dbw~1orders~1%7BorderId%7D~1meta~1gtin/put) - `sgtin` — [код маркировки](/openapi/orders-dbw#tag/Metadannye-DBW/paths/~1api~1v3~1dbw~1orders~1%7BorderId%7D~1meta~1sgtin/put) <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для следующих методов DBW: <ul> <li>получение и обновление списка контактов</li> <li>получение и удаление метаданных</li> <li>методы сборочных заданий</li> </ul> | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 300 запросов | 200 миллисекунд | 20 запросов | </div>
2383
+
2384
+ :param order_id: ID сборочного задания (required)
2385
+ :type order_id: int
2386
+ :param _request_timeout: timeout setting for this request. If one
2387
+ number provided, it will be total request
2388
+ timeout. It can also be a pair (tuple) of
2389
+ (connection, read) timeouts.
2390
+ :type _request_timeout: int, tuple(int, int), optional
2391
+ :param _request_auth: set to override the auth_settings for an a single
2392
+ request; this effectively ignores the
2393
+ authentication in the spec for a single request.
2394
+ :type _request_auth: dict, optional
2395
+ :param _content_type: force content-type for the request.
2396
+ :type _content_type: str, Optional
2397
+ :param _headers: set to override the headers for a single
2398
+ request; this effectively ignores the headers
2399
+ in the spec for a single request.
2400
+ :type _headers: dict, optional
2401
+ :param _host_index: set to override the host_index for a single
2402
+ request; this effectively ignores the host_index
2403
+ in the spec for a single request.
2404
+ :type _host_index: int, optional
2405
+ :return: Returns the result object.
2406
+ """ # noqa: E501
2407
+
2408
+ _param = self._api_v3_dbw_orders_order_id_meta_get_serialize(
2409
+ order_id=order_id,
2410
+ _request_auth=_request_auth,
2411
+ _content_type=_content_type,
2412
+ _headers=_headers,
2413
+ _host_index=_host_index
2414
+ )
2415
+
2416
+ _response_types_map: Dict[str, Optional[str]] = {
2417
+ '200': "ApiV3DbwOrdersOrderIdMetaGet200Response",
2418
+ '400': "Error",
2419
+ '401': "ApiV3DbwOrdersNewGet401Response",
2420
+ '403': "Error",
2421
+ '404': "Error",
2422
+ '429': "ApiV3DbwOrdersNewGet401Response",
2423
+ }
2424
+ response_data = self.api_client.call_api(
2425
+ *_param,
2426
+ _request_timeout=_request_timeout
2427
+ )
2428
+ response_data.read()
2429
+ return self.api_client.response_deserialize(
2430
+ response_data=response_data,
2431
+ response_types_map=_response_types_map,
2432
+ ).data
2433
+
2434
+
2435
+ @validate_call
2436
+ def api_v3_dbw_orders_order_id_meta_get_with_http_info(
2437
+ self,
2438
+ order_id: Annotated[StrictInt, Field(description="ID сборочного задания")],
2439
+ _request_timeout: Union[
2440
+ None,
2441
+ Annotated[StrictFloat, Field(gt=0)],
2442
+ Tuple[
2443
+ Annotated[StrictFloat, Field(gt=0)],
2444
+ Annotated[StrictFloat, Field(gt=0)]
2445
+ ]
2446
+ ] = None,
2447
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2448
+ _content_type: Optional[StrictStr] = None,
2449
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2450
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
2451
+ ) -> ApiResponse[ApiV3DbwOrdersOrderIdMetaGet200Response]:
2452
+ """Получить метаданные сборочного задания
2453
+
2454
+ Метод возвращает метаданные [сборочного задания](/openapi/orders-dbw#tag/Sborochnye-zadaniya-DBW/paths/~1api~1v3~1dbw~1orders/get). <br><br> Перечень метаданных, доступных для сборочного задания, можно получить в [списке новых сборочных заданий](/openapi/orders-dbw#tag/Sborochnye-zadaniya-DBW/paths/~1api~1v3~1dbw~1orders~1new/get), поле `requiredMeta`. <br><br> Возможные метаданные: - `imei` — [IMEI](/openapi/orders-dbw#tag/Metadannye-DBW/paths/~1api~1v3~1dbw~1orders~1%7BorderId%7D~1meta~1imei/put) - `uin` — [УИН](/openapi/orders-dbw#tag/Metadannye-DBW/paths/~1api~1v3~1dbw~1orders~1%7BorderId%7D~1meta~1uin/put) - `gtin` — [GTIN](/openapi/orders-dbw#tag/Metadannye-DBW/paths/~1api~1v3~1dbw~1orders~1%7BorderId%7D~1meta~1gtin/put) - `sgtin` — [код маркировки](/openapi/orders-dbw#tag/Metadannye-DBW/paths/~1api~1v3~1dbw~1orders~1%7BorderId%7D~1meta~1sgtin/put) <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для следующих методов DBW: <ul> <li>получение и обновление списка контактов</li> <li>получение и удаление метаданных</li> <li>методы сборочных заданий</li> </ul> | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 300 запросов | 200 миллисекунд | 20 запросов | </div>
2455
+
2456
+ :param order_id: ID сборочного задания (required)
2457
+ :type order_id: int
2458
+ :param _request_timeout: timeout setting for this request. If one
2459
+ number provided, it will be total request
2460
+ timeout. It can also be a pair (tuple) of
2461
+ (connection, read) timeouts.
2462
+ :type _request_timeout: int, tuple(int, int), optional
2463
+ :param _request_auth: set to override the auth_settings for an a single
2464
+ request; this effectively ignores the
2465
+ authentication in the spec for a single request.
2466
+ :type _request_auth: dict, optional
2467
+ :param _content_type: force content-type for the request.
2468
+ :type _content_type: str, Optional
2469
+ :param _headers: set to override the headers for a single
2470
+ request; this effectively ignores the headers
2471
+ in the spec for a single request.
2472
+ :type _headers: dict, optional
2473
+ :param _host_index: set to override the host_index for a single
2474
+ request; this effectively ignores the host_index
2475
+ in the spec for a single request.
2476
+ :type _host_index: int, optional
2477
+ :return: Returns the result object.
2478
+ """ # noqa: E501
2479
+
2480
+ _param = self._api_v3_dbw_orders_order_id_meta_get_serialize(
2481
+ order_id=order_id,
2482
+ _request_auth=_request_auth,
2483
+ _content_type=_content_type,
2484
+ _headers=_headers,
2485
+ _host_index=_host_index
2486
+ )
2487
+
2488
+ _response_types_map: Dict[str, Optional[str]] = {
2489
+ '200': "ApiV3DbwOrdersOrderIdMetaGet200Response",
2490
+ '400': "Error",
2491
+ '401': "ApiV3DbwOrdersNewGet401Response",
2492
+ '403': "Error",
2493
+ '404': "Error",
2494
+ '429': "ApiV3DbwOrdersNewGet401Response",
2495
+ }
2496
+ response_data = self.api_client.call_api(
2497
+ *_param,
2498
+ _request_timeout=_request_timeout
2499
+ )
2500
+ response_data.read()
2501
+ return self.api_client.response_deserialize(
2502
+ response_data=response_data,
2503
+ response_types_map=_response_types_map,
2504
+ )
2505
+
2506
+
2507
+ @validate_call
2508
+ def api_v3_dbw_orders_order_id_meta_get_without_preload_content(
2509
+ self,
2510
+ order_id: Annotated[StrictInt, Field(description="ID сборочного задания")],
2511
+ _request_timeout: Union[
2512
+ None,
2513
+ Annotated[StrictFloat, Field(gt=0)],
2514
+ Tuple[
2515
+ Annotated[StrictFloat, Field(gt=0)],
2516
+ Annotated[StrictFloat, Field(gt=0)]
2517
+ ]
2518
+ ] = None,
2519
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2520
+ _content_type: Optional[StrictStr] = None,
2521
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2522
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
2523
+ ) -> RESTResponseType:
2524
+ """Получить метаданные сборочного задания
2525
+
2526
+ Метод возвращает метаданные [сборочного задания](/openapi/orders-dbw#tag/Sborochnye-zadaniya-DBW/paths/~1api~1v3~1dbw~1orders/get). <br><br> Перечень метаданных, доступных для сборочного задания, можно получить в [списке новых сборочных заданий](/openapi/orders-dbw#tag/Sborochnye-zadaniya-DBW/paths/~1api~1v3~1dbw~1orders~1new/get), поле `requiredMeta`. <br><br> Возможные метаданные: - `imei` — [IMEI](/openapi/orders-dbw#tag/Metadannye-DBW/paths/~1api~1v3~1dbw~1orders~1%7BorderId%7D~1meta~1imei/put) - `uin` — [УИН](/openapi/orders-dbw#tag/Metadannye-DBW/paths/~1api~1v3~1dbw~1orders~1%7BorderId%7D~1meta~1uin/put) - `gtin` — [GTIN](/openapi/orders-dbw#tag/Metadannye-DBW/paths/~1api~1v3~1dbw~1orders~1%7BorderId%7D~1meta~1gtin/put) - `sgtin` — [код маркировки](/openapi/orders-dbw#tag/Metadannye-DBW/paths/~1api~1v3~1dbw~1orders~1%7BorderId%7D~1meta~1sgtin/put) <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для следующих методов DBW: <ul> <li>получение и обновление списка контактов</li> <li>получение и удаление метаданных</li> <li>методы сборочных заданий</li> </ul> | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 300 запросов | 200 миллисекунд | 20 запросов | </div>
2527
+
2528
+ :param order_id: ID сборочного задания (required)
2529
+ :type order_id: int
2530
+ :param _request_timeout: timeout setting for this request. If one
2531
+ number provided, it will be total request
2532
+ timeout. It can also be a pair (tuple) of
2533
+ (connection, read) timeouts.
2534
+ :type _request_timeout: int, tuple(int, int), optional
2535
+ :param _request_auth: set to override the auth_settings for an a single
2536
+ request; this effectively ignores the
2537
+ authentication in the spec for a single request.
2538
+ :type _request_auth: dict, optional
2539
+ :param _content_type: force content-type for the request.
2540
+ :type _content_type: str, Optional
2541
+ :param _headers: set to override the headers for a single
2542
+ request; this effectively ignores the headers
2543
+ in the spec for a single request.
2544
+ :type _headers: dict, optional
2545
+ :param _host_index: set to override the host_index for a single
2546
+ request; this effectively ignores the host_index
2547
+ in the spec for a single request.
2548
+ :type _host_index: int, optional
2549
+ :return: Returns the result object.
2550
+ """ # noqa: E501
2551
+
2552
+ _param = self._api_v3_dbw_orders_order_id_meta_get_serialize(
2553
+ order_id=order_id,
2554
+ _request_auth=_request_auth,
2555
+ _content_type=_content_type,
2556
+ _headers=_headers,
2557
+ _host_index=_host_index
2558
+ )
2559
+
2560
+ _response_types_map: Dict[str, Optional[str]] = {
2561
+ '200': "ApiV3DbwOrdersOrderIdMetaGet200Response",
2562
+ '400': "Error",
2563
+ '401': "ApiV3DbwOrdersNewGet401Response",
2564
+ '403': "Error",
2565
+ '404': "Error",
2566
+ '429': "ApiV3DbwOrdersNewGet401Response",
2567
+ }
2568
+ response_data = self.api_client.call_api(
2569
+ *_param,
2570
+ _request_timeout=_request_timeout
2571
+ )
2572
+ return response_data.response
2573
+
2574
+
2575
+ def _api_v3_dbw_orders_order_id_meta_get_serialize(
2576
+ self,
2577
+ order_id,
2578
+ _request_auth,
2579
+ _content_type,
2580
+ _headers,
2581
+ _host_index,
2582
+ ) -> RequestSerialized:
2583
+
2584
+ _hosts = [
2585
+ 'https://marketplace-api.wildberries.ru'
2586
+ ]
2587
+ _host = _hosts[_host_index]
2588
+
2589
+ _collection_formats: Dict[str, str] = {
2590
+ }
2591
+
2592
+ _path_params: Dict[str, str] = {}
2593
+ _query_params: List[Tuple[str, str]] = []
2594
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2595
+ _form_params: List[Tuple[str, str]] = []
2596
+ _files: Dict[
2597
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2598
+ ] = {}
2599
+ _body_params: Optional[bytes] = None
2600
+
2601
+ # process the path parameters
2602
+ if order_id is not None:
2603
+ _path_params['orderId'] = order_id
2604
+ # process the query parameters
2605
+ # process the header parameters
2606
+ # process the form parameters
2607
+ # process the body parameter
2608
+
2609
+
2610
+ # set the HTTP header `Accept`
2611
+ if 'Accept' not in _header_params:
2612
+ _header_params['Accept'] = self.api_client.select_header_accept(
2613
+ [
2614
+ 'application/json'
2615
+ ]
2616
+ )
2617
+
2618
+
2619
+ # authentication setting
2620
+ _auth_settings: List[str] = [
2621
+ 'HeaderApiKey'
2622
+ ]
2623
+
2624
+ return self.api_client.param_serialize(
2625
+ method='GET',
2626
+ resource_path='/api/v3/dbw/orders/{orderId}/meta',
2627
+ path_params=_path_params,
2628
+ query_params=_query_params,
2629
+ header_params=_header_params,
2630
+ body=_body_params,
2631
+ post_params=_form_params,
2632
+ files=_files,
2633
+ auth_settings=_auth_settings,
2634
+ collection_formats=_collection_formats,
2635
+ _host=_host,
2636
+ _request_auth=_request_auth
2637
+ )
2638
+
2639
+
2640
+
2641
+
2642
+ @validate_call
2643
+ def api_v3_dbw_orders_order_id_meta_gtin_put(
2644
+ self,
2645
+ order_id: Annotated[StrictInt, Field(description="ID сборочного задания")],
2646
+ api_v3_dbw_orders_order_id_meta_gtin_put_request: Optional[ApiV3DbwOrdersOrderIdMetaGtinPutRequest] = None,
2647
+ _request_timeout: Union[
2648
+ None,
2649
+ Annotated[StrictFloat, Field(gt=0)],
2650
+ Tuple[
2651
+ Annotated[StrictFloat, Field(gt=0)],
2652
+ Annotated[StrictFloat, Field(gt=0)]
2653
+ ]
2654
+ ] = None,
2655
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2656
+ _content_type: Optional[StrictStr] = None,
2657
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2658
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
2659
+ ) -> None:
2660
+ """Закрепить за сборочным заданием GTIN
2661
+
2662
+ Метод обновляет GTIN в [метаданных сборочного задания](/openapi/orders-dbw#tag/Metadannye-DBW/paths/~1api~1v3~1dbw~1orders~1%7BorderId%7D~1meta/get) — уникальный ID товара в Беларуси. <br><br> У одного сборочного задания может быть только один GTIN. Добавлять маркировку можно только для заказов, которые находятся в [статусе](/openapi/orders-dbw#tag/Sborochnye-zadaniya-DBW/paths/~1api~1v3~1dbw~1orders~1status/post) `confirm`. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов <strong>закрепления метаданных</strong> модели <strong>DBW</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 1000 запросов | 60 миллисекунд | 20 запросов | Один запрос с кодом ответа <code>409</code> учитывается как 10 запросов </div>
2663
+
2664
+ :param order_id: ID сборочного задания (required)
2665
+ :type order_id: int
2666
+ :param api_v3_dbw_orders_order_id_meta_gtin_put_request:
2667
+ :type api_v3_dbw_orders_order_id_meta_gtin_put_request: ApiV3DbwOrdersOrderIdMetaGtinPutRequest
2668
+ :param _request_timeout: timeout setting for this request. If one
2669
+ number provided, it will be total request
2670
+ timeout. It can also be a pair (tuple) of
2671
+ (connection, read) timeouts.
2672
+ :type _request_timeout: int, tuple(int, int), optional
2673
+ :param _request_auth: set to override the auth_settings for an a single
2674
+ request; this effectively ignores the
2675
+ authentication in the spec for a single request.
2676
+ :type _request_auth: dict, optional
2677
+ :param _content_type: force content-type for the request.
2678
+ :type _content_type: str, Optional
2679
+ :param _headers: set to override the headers for a single
2680
+ request; this effectively ignores the headers
2681
+ in the spec for a single request.
2682
+ :type _headers: dict, optional
2683
+ :param _host_index: set to override the host_index for a single
2684
+ request; this effectively ignores the host_index
2685
+ in the spec for a single request.
2686
+ :type _host_index: int, optional
2687
+ :return: Returns the result object.
2688
+ """ # noqa: E501
2689
+
2690
+ _param = self._api_v3_dbw_orders_order_id_meta_gtin_put_serialize(
2691
+ order_id=order_id,
2692
+ api_v3_dbw_orders_order_id_meta_gtin_put_request=api_v3_dbw_orders_order_id_meta_gtin_put_request,
2693
+ _request_auth=_request_auth,
2694
+ _content_type=_content_type,
2695
+ _headers=_headers,
2696
+ _host_index=_host_index
2697
+ )
2698
+
2699
+ _response_types_map: Dict[str, Optional[str]] = {
2700
+ '204': None,
2701
+ '400': "Error",
2702
+ '401': "ApiV3DbwOrdersNewGet401Response",
2703
+ '403': "Error",
2704
+ '404': "Error",
2705
+ '409': "Error",
2706
+ '429': "ApiV3DbwOrdersNewGet401Response",
2707
+ }
2708
+ response_data = self.api_client.call_api(
2709
+ *_param,
2710
+ _request_timeout=_request_timeout
2711
+ )
2712
+ response_data.read()
2713
+ return self.api_client.response_deserialize(
2714
+ response_data=response_data,
2715
+ response_types_map=_response_types_map,
2716
+ ).data
2717
+
2718
+
2719
+ @validate_call
2720
+ def api_v3_dbw_orders_order_id_meta_gtin_put_with_http_info(
2721
+ self,
2722
+ order_id: Annotated[StrictInt, Field(description="ID сборочного задания")],
2723
+ api_v3_dbw_orders_order_id_meta_gtin_put_request: Optional[ApiV3DbwOrdersOrderIdMetaGtinPutRequest] = None,
2724
+ _request_timeout: Union[
2725
+ None,
2726
+ Annotated[StrictFloat, Field(gt=0)],
2727
+ Tuple[
2728
+ Annotated[StrictFloat, Field(gt=0)],
2729
+ Annotated[StrictFloat, Field(gt=0)]
2730
+ ]
2731
+ ] = None,
2732
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2733
+ _content_type: Optional[StrictStr] = None,
2734
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2735
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
2736
+ ) -> ApiResponse[None]:
2737
+ """Закрепить за сборочным заданием GTIN
2738
+
2739
+ Метод обновляет GTIN в [метаданных сборочного задания](/openapi/orders-dbw#tag/Metadannye-DBW/paths/~1api~1v3~1dbw~1orders~1%7BorderId%7D~1meta/get) — уникальный ID товара в Беларуси. <br><br> У одного сборочного задания может быть только один GTIN. Добавлять маркировку можно только для заказов, которые находятся в [статусе](/openapi/orders-dbw#tag/Sborochnye-zadaniya-DBW/paths/~1api~1v3~1dbw~1orders~1status/post) `confirm`. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов <strong>закрепления метаданных</strong> модели <strong>DBW</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 1000 запросов | 60 миллисекунд | 20 запросов | Один запрос с кодом ответа <code>409</code> учитывается как 10 запросов </div>
2740
+
2741
+ :param order_id: ID сборочного задания (required)
2742
+ :type order_id: int
2743
+ :param api_v3_dbw_orders_order_id_meta_gtin_put_request:
2744
+ :type api_v3_dbw_orders_order_id_meta_gtin_put_request: ApiV3DbwOrdersOrderIdMetaGtinPutRequest
2745
+ :param _request_timeout: timeout setting for this request. If one
2746
+ number provided, it will be total request
2747
+ timeout. It can also be a pair (tuple) of
2748
+ (connection, read) timeouts.
2749
+ :type _request_timeout: int, tuple(int, int), optional
2750
+ :param _request_auth: set to override the auth_settings for an a single
2751
+ request; this effectively ignores the
2752
+ authentication in the spec for a single request.
2753
+ :type _request_auth: dict, optional
2754
+ :param _content_type: force content-type for the request.
2755
+ :type _content_type: str, Optional
2756
+ :param _headers: set to override the headers for a single
2757
+ request; this effectively ignores the headers
2758
+ in the spec for a single request.
2759
+ :type _headers: dict, optional
2760
+ :param _host_index: set to override the host_index for a single
2761
+ request; this effectively ignores the host_index
2762
+ in the spec for a single request.
2763
+ :type _host_index: int, optional
2764
+ :return: Returns the result object.
2765
+ """ # noqa: E501
2766
+
2767
+ _param = self._api_v3_dbw_orders_order_id_meta_gtin_put_serialize(
2768
+ order_id=order_id,
2769
+ api_v3_dbw_orders_order_id_meta_gtin_put_request=api_v3_dbw_orders_order_id_meta_gtin_put_request,
2770
+ _request_auth=_request_auth,
2771
+ _content_type=_content_type,
2772
+ _headers=_headers,
2773
+ _host_index=_host_index
2774
+ )
2775
+
2776
+ _response_types_map: Dict[str, Optional[str]] = {
2777
+ '204': None,
2778
+ '400': "Error",
2779
+ '401': "ApiV3DbwOrdersNewGet401Response",
2780
+ '403': "Error",
2781
+ '404': "Error",
2782
+ '409': "Error",
2783
+ '429': "ApiV3DbwOrdersNewGet401Response",
2784
+ }
2785
+ response_data = self.api_client.call_api(
2786
+ *_param,
2787
+ _request_timeout=_request_timeout
2788
+ )
2789
+ response_data.read()
2790
+ return self.api_client.response_deserialize(
2791
+ response_data=response_data,
2792
+ response_types_map=_response_types_map,
2793
+ )
2794
+
2795
+
2796
+ @validate_call
2797
+ def api_v3_dbw_orders_order_id_meta_gtin_put_without_preload_content(
2798
+ self,
2799
+ order_id: Annotated[StrictInt, Field(description="ID сборочного задания")],
2800
+ api_v3_dbw_orders_order_id_meta_gtin_put_request: Optional[ApiV3DbwOrdersOrderIdMetaGtinPutRequest] = None,
2801
+ _request_timeout: Union[
2802
+ None,
2803
+ Annotated[StrictFloat, Field(gt=0)],
2804
+ Tuple[
2805
+ Annotated[StrictFloat, Field(gt=0)],
2806
+ Annotated[StrictFloat, Field(gt=0)]
2807
+ ]
2808
+ ] = None,
2809
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2810
+ _content_type: Optional[StrictStr] = None,
2811
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2812
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
2813
+ ) -> RESTResponseType:
2814
+ """Закрепить за сборочным заданием GTIN
2815
+
2816
+ Метод обновляет GTIN в [метаданных сборочного задания](/openapi/orders-dbw#tag/Metadannye-DBW/paths/~1api~1v3~1dbw~1orders~1%7BorderId%7D~1meta/get) — уникальный ID товара в Беларуси. <br><br> У одного сборочного задания может быть только один GTIN. Добавлять маркировку можно только для заказов, которые находятся в [статусе](/openapi/orders-dbw#tag/Sborochnye-zadaniya-DBW/paths/~1api~1v3~1dbw~1orders~1status/post) `confirm`. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов <strong>закрепления метаданных</strong> модели <strong>DBW</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 1000 запросов | 60 миллисекунд | 20 запросов | Один запрос с кодом ответа <code>409</code> учитывается как 10 запросов </div>
2817
+
2818
+ :param order_id: ID сборочного задания (required)
2819
+ :type order_id: int
2820
+ :param api_v3_dbw_orders_order_id_meta_gtin_put_request:
2821
+ :type api_v3_dbw_orders_order_id_meta_gtin_put_request: ApiV3DbwOrdersOrderIdMetaGtinPutRequest
2822
+ :param _request_timeout: timeout setting for this request. If one
2823
+ number provided, it will be total request
2824
+ timeout. It can also be a pair (tuple) of
2825
+ (connection, read) timeouts.
2826
+ :type _request_timeout: int, tuple(int, int), optional
2827
+ :param _request_auth: set to override the auth_settings for an a single
2828
+ request; this effectively ignores the
2829
+ authentication in the spec for a single request.
2830
+ :type _request_auth: dict, optional
2831
+ :param _content_type: force content-type for the request.
2832
+ :type _content_type: str, Optional
2833
+ :param _headers: set to override the headers for a single
2834
+ request; this effectively ignores the headers
2835
+ in the spec for a single request.
2836
+ :type _headers: dict, optional
2837
+ :param _host_index: set to override the host_index for a single
2838
+ request; this effectively ignores the host_index
2839
+ in the spec for a single request.
2840
+ :type _host_index: int, optional
2841
+ :return: Returns the result object.
2842
+ """ # noqa: E501
2843
+
2844
+ _param = self._api_v3_dbw_orders_order_id_meta_gtin_put_serialize(
2845
+ order_id=order_id,
2846
+ api_v3_dbw_orders_order_id_meta_gtin_put_request=api_v3_dbw_orders_order_id_meta_gtin_put_request,
2847
+ _request_auth=_request_auth,
2848
+ _content_type=_content_type,
2849
+ _headers=_headers,
2850
+ _host_index=_host_index
2851
+ )
2852
+
2853
+ _response_types_map: Dict[str, Optional[str]] = {
2854
+ '204': None,
2855
+ '400': "Error",
2856
+ '401': "ApiV3DbwOrdersNewGet401Response",
2857
+ '403': "Error",
2858
+ '404': "Error",
2859
+ '409': "Error",
2860
+ '429': "ApiV3DbwOrdersNewGet401Response",
2861
+ }
2862
+ response_data = self.api_client.call_api(
2863
+ *_param,
2864
+ _request_timeout=_request_timeout
2865
+ )
2866
+ return response_data.response
2867
+
2868
+
2869
+ def _api_v3_dbw_orders_order_id_meta_gtin_put_serialize(
2870
+ self,
2871
+ order_id,
2872
+ api_v3_dbw_orders_order_id_meta_gtin_put_request,
2873
+ _request_auth,
2874
+ _content_type,
2875
+ _headers,
2876
+ _host_index,
2877
+ ) -> RequestSerialized:
2878
+
2879
+ _hosts = [
2880
+ 'https://marketplace-api.wildberries.ru'
2881
+ ]
2882
+ _host = _hosts[_host_index]
2883
+
2884
+ _collection_formats: Dict[str, str] = {
2885
+ }
2886
+
2887
+ _path_params: Dict[str, str] = {}
2888
+ _query_params: List[Tuple[str, str]] = []
2889
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2890
+ _form_params: List[Tuple[str, str]] = []
2891
+ _files: Dict[
2892
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2893
+ ] = {}
2894
+ _body_params: Optional[bytes] = None
2895
+
2896
+ # process the path parameters
2897
+ if order_id is not None:
2898
+ _path_params['orderId'] = order_id
2899
+ # process the query parameters
2900
+ # process the header parameters
2901
+ # process the form parameters
2902
+ # process the body parameter
2903
+ if api_v3_dbw_orders_order_id_meta_gtin_put_request is not None:
2904
+ _body_params = api_v3_dbw_orders_order_id_meta_gtin_put_request
2905
+
2906
+
2907
+ # set the HTTP header `Accept`
2908
+ if 'Accept' not in _header_params:
2909
+ _header_params['Accept'] = self.api_client.select_header_accept(
2910
+ [
2911
+ 'application/json'
2912
+ ]
2913
+ )
2914
+
2915
+ # set the HTTP header `Content-Type`
2916
+ if _content_type:
2917
+ _header_params['Content-Type'] = _content_type
2918
+ else:
2919
+ _default_content_type = (
2920
+ self.api_client.select_header_content_type(
2921
+ [
2922
+ 'application/json'
2923
+ ]
2924
+ )
2925
+ )
2926
+ if _default_content_type is not None:
2927
+ _header_params['Content-Type'] = _default_content_type
2928
+
2929
+ # authentication setting
2930
+ _auth_settings: List[str] = [
2931
+ 'HeaderApiKey'
2932
+ ]
2933
+
2934
+ return self.api_client.param_serialize(
2935
+ method='PUT',
2936
+ resource_path='/api/v3/dbw/orders/{orderId}/meta/gtin',
2937
+ path_params=_path_params,
2938
+ query_params=_query_params,
2939
+ header_params=_header_params,
2940
+ body=_body_params,
2941
+ post_params=_form_params,
2942
+ files=_files,
2943
+ auth_settings=_auth_settings,
2944
+ collection_formats=_collection_formats,
2945
+ _host=_host,
2946
+ _request_auth=_request_auth
2947
+ )
2948
+
2949
+
2950
+
2951
+
2952
+ @validate_call
2953
+ def api_v3_dbw_orders_order_id_meta_imei_put(
2954
+ self,
2955
+ order_id: Annotated[StrictInt, Field(description="ID сборочного задания")],
2956
+ api_v3_dbw_orders_order_id_meta_imei_put_request: Optional[ApiV3DbwOrdersOrderIdMetaImeiPutRequest] = None,
2957
+ _request_timeout: Union[
2958
+ None,
2959
+ Annotated[StrictFloat, Field(gt=0)],
2960
+ Tuple[
2961
+ Annotated[StrictFloat, Field(gt=0)],
2962
+ Annotated[StrictFloat, Field(gt=0)]
2963
+ ]
2964
+ ] = None,
2965
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2966
+ _content_type: Optional[StrictStr] = None,
2967
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2968
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
2969
+ ) -> None:
2970
+ """Закрепить за сборочным заданием IMEI
2971
+
2972
+ Метод обновляет IMEI в [метаданных сборочного задания](/openapi/orders-dbw#tag/Metadannye-DBW/paths/~1api~1v3~1dbw~1orders~1%7BorderId%7D~1meta/get). <br><br> У одного сборочного задания может быть только один IMEI. Добавлять маркировку можно только для заказов, которые находятся в [статусе](/openapi/orders-dbw#tag/Sborochnye-zadaniya-DBW/paths/~1api~1v3~1dbw~1orders~1status/post) `confirm`. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов <strong>закрепления метаданных</strong> модели <strong>DBW</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 1000 запросов | 60 миллисекунд | 20 запросов | Один запрос с кодом ответа <code>409</code> учитывается как 10 запросов </div>
2973
+
2974
+ :param order_id: ID сборочного задания (required)
2975
+ :type order_id: int
2976
+ :param api_v3_dbw_orders_order_id_meta_imei_put_request:
2977
+ :type api_v3_dbw_orders_order_id_meta_imei_put_request: ApiV3DbwOrdersOrderIdMetaImeiPutRequest
2978
+ :param _request_timeout: timeout setting for this request. If one
2979
+ number provided, it will be total request
2980
+ timeout. It can also be a pair (tuple) of
2981
+ (connection, read) timeouts.
2982
+ :type _request_timeout: int, tuple(int, int), optional
2983
+ :param _request_auth: set to override the auth_settings for an a single
2984
+ request; this effectively ignores the
2985
+ authentication in the spec for a single request.
2986
+ :type _request_auth: dict, optional
2987
+ :param _content_type: force content-type for the request.
2988
+ :type _content_type: str, Optional
2989
+ :param _headers: set to override the headers for a single
2990
+ request; this effectively ignores the headers
2991
+ in the spec for a single request.
2992
+ :type _headers: dict, optional
2993
+ :param _host_index: set to override the host_index for a single
2994
+ request; this effectively ignores the host_index
2995
+ in the spec for a single request.
2996
+ :type _host_index: int, optional
2997
+ :return: Returns the result object.
2998
+ """ # noqa: E501
2999
+
3000
+ _param = self._api_v3_dbw_orders_order_id_meta_imei_put_serialize(
3001
+ order_id=order_id,
3002
+ api_v3_dbw_orders_order_id_meta_imei_put_request=api_v3_dbw_orders_order_id_meta_imei_put_request,
3003
+ _request_auth=_request_auth,
3004
+ _content_type=_content_type,
3005
+ _headers=_headers,
3006
+ _host_index=_host_index
3007
+ )
3008
+
3009
+ _response_types_map: Dict[str, Optional[str]] = {
3010
+ '204': None,
3011
+ '400': "Error",
3012
+ '401': "ApiV3DbwOrdersNewGet401Response",
3013
+ '403': "Error",
3014
+ '404': "Error",
3015
+ '409': "Error",
3016
+ '429': "ApiV3DbwOrdersNewGet401Response",
3017
+ }
3018
+ response_data = self.api_client.call_api(
3019
+ *_param,
3020
+ _request_timeout=_request_timeout
3021
+ )
3022
+ response_data.read()
3023
+ return self.api_client.response_deserialize(
3024
+ response_data=response_data,
3025
+ response_types_map=_response_types_map,
3026
+ ).data
3027
+
3028
+
3029
+ @validate_call
3030
+ def api_v3_dbw_orders_order_id_meta_imei_put_with_http_info(
3031
+ self,
3032
+ order_id: Annotated[StrictInt, Field(description="ID сборочного задания")],
3033
+ api_v3_dbw_orders_order_id_meta_imei_put_request: Optional[ApiV3DbwOrdersOrderIdMetaImeiPutRequest] = None,
3034
+ _request_timeout: Union[
3035
+ None,
3036
+ Annotated[StrictFloat, Field(gt=0)],
3037
+ Tuple[
3038
+ Annotated[StrictFloat, Field(gt=0)],
3039
+ Annotated[StrictFloat, Field(gt=0)]
3040
+ ]
3041
+ ] = None,
3042
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3043
+ _content_type: Optional[StrictStr] = None,
3044
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3045
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
3046
+ ) -> ApiResponse[None]:
3047
+ """Закрепить за сборочным заданием IMEI
3048
+
3049
+ Метод обновляет IMEI в [метаданных сборочного задания](/openapi/orders-dbw#tag/Metadannye-DBW/paths/~1api~1v3~1dbw~1orders~1%7BorderId%7D~1meta/get). <br><br> У одного сборочного задания может быть только один IMEI. Добавлять маркировку можно только для заказов, которые находятся в [статусе](/openapi/orders-dbw#tag/Sborochnye-zadaniya-DBW/paths/~1api~1v3~1dbw~1orders~1status/post) `confirm`. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов <strong>закрепления метаданных</strong> модели <strong>DBW</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 1000 запросов | 60 миллисекунд | 20 запросов | Один запрос с кодом ответа <code>409</code> учитывается как 10 запросов </div>
3050
+
3051
+ :param order_id: ID сборочного задания (required)
3052
+ :type order_id: int
3053
+ :param api_v3_dbw_orders_order_id_meta_imei_put_request:
3054
+ :type api_v3_dbw_orders_order_id_meta_imei_put_request: ApiV3DbwOrdersOrderIdMetaImeiPutRequest
3055
+ :param _request_timeout: timeout setting for this request. If one
3056
+ number provided, it will be total request
3057
+ timeout. It can also be a pair (tuple) of
3058
+ (connection, read) timeouts.
3059
+ :type _request_timeout: int, tuple(int, int), optional
3060
+ :param _request_auth: set to override the auth_settings for an a single
3061
+ request; this effectively ignores the
3062
+ authentication in the spec for a single request.
3063
+ :type _request_auth: dict, optional
3064
+ :param _content_type: force content-type for the request.
3065
+ :type _content_type: str, Optional
3066
+ :param _headers: set to override the headers for a single
3067
+ request; this effectively ignores the headers
3068
+ in the spec for a single request.
3069
+ :type _headers: dict, optional
3070
+ :param _host_index: set to override the host_index for a single
3071
+ request; this effectively ignores the host_index
3072
+ in the spec for a single request.
3073
+ :type _host_index: int, optional
3074
+ :return: Returns the result object.
3075
+ """ # noqa: E501
3076
+
3077
+ _param = self._api_v3_dbw_orders_order_id_meta_imei_put_serialize(
3078
+ order_id=order_id,
3079
+ api_v3_dbw_orders_order_id_meta_imei_put_request=api_v3_dbw_orders_order_id_meta_imei_put_request,
3080
+ _request_auth=_request_auth,
3081
+ _content_type=_content_type,
3082
+ _headers=_headers,
3083
+ _host_index=_host_index
3084
+ )
3085
+
3086
+ _response_types_map: Dict[str, Optional[str]] = {
3087
+ '204': None,
3088
+ '400': "Error",
3089
+ '401': "ApiV3DbwOrdersNewGet401Response",
3090
+ '403': "Error",
3091
+ '404': "Error",
3092
+ '409': "Error",
3093
+ '429': "ApiV3DbwOrdersNewGet401Response",
3094
+ }
3095
+ response_data = self.api_client.call_api(
3096
+ *_param,
3097
+ _request_timeout=_request_timeout
3098
+ )
3099
+ response_data.read()
3100
+ return self.api_client.response_deserialize(
3101
+ response_data=response_data,
3102
+ response_types_map=_response_types_map,
3103
+ )
3104
+
3105
+
3106
+ @validate_call
3107
+ def api_v3_dbw_orders_order_id_meta_imei_put_without_preload_content(
3108
+ self,
3109
+ order_id: Annotated[StrictInt, Field(description="ID сборочного задания")],
3110
+ api_v3_dbw_orders_order_id_meta_imei_put_request: Optional[ApiV3DbwOrdersOrderIdMetaImeiPutRequest] = None,
3111
+ _request_timeout: Union[
3112
+ None,
3113
+ Annotated[StrictFloat, Field(gt=0)],
3114
+ Tuple[
3115
+ Annotated[StrictFloat, Field(gt=0)],
3116
+ Annotated[StrictFloat, Field(gt=0)]
3117
+ ]
3118
+ ] = None,
3119
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3120
+ _content_type: Optional[StrictStr] = None,
3121
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3122
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
3123
+ ) -> RESTResponseType:
3124
+ """Закрепить за сборочным заданием IMEI
3125
+
3126
+ Метод обновляет IMEI в [метаданных сборочного задания](/openapi/orders-dbw#tag/Metadannye-DBW/paths/~1api~1v3~1dbw~1orders~1%7BorderId%7D~1meta/get). <br><br> У одного сборочного задания может быть только один IMEI. Добавлять маркировку можно только для заказов, которые находятся в [статусе](/openapi/orders-dbw#tag/Sborochnye-zadaniya-DBW/paths/~1api~1v3~1dbw~1orders~1status/post) `confirm`. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов <strong>закрепления метаданных</strong> модели <strong>DBW</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 1000 запросов | 60 миллисекунд | 20 запросов | Один запрос с кодом ответа <code>409</code> учитывается как 10 запросов </div>
3127
+
3128
+ :param order_id: ID сборочного задания (required)
3129
+ :type order_id: int
3130
+ :param api_v3_dbw_orders_order_id_meta_imei_put_request:
3131
+ :type api_v3_dbw_orders_order_id_meta_imei_put_request: ApiV3DbwOrdersOrderIdMetaImeiPutRequest
3132
+ :param _request_timeout: timeout setting for this request. If one
3133
+ number provided, it will be total request
3134
+ timeout. It can also be a pair (tuple) of
3135
+ (connection, read) timeouts.
3136
+ :type _request_timeout: int, tuple(int, int), optional
3137
+ :param _request_auth: set to override the auth_settings for an a single
3138
+ request; this effectively ignores the
3139
+ authentication in the spec for a single request.
3140
+ :type _request_auth: dict, optional
3141
+ :param _content_type: force content-type for the request.
3142
+ :type _content_type: str, Optional
3143
+ :param _headers: set to override the headers for a single
3144
+ request; this effectively ignores the headers
3145
+ in the spec for a single request.
3146
+ :type _headers: dict, optional
3147
+ :param _host_index: set to override the host_index for a single
3148
+ request; this effectively ignores the host_index
3149
+ in the spec for a single request.
3150
+ :type _host_index: int, optional
3151
+ :return: Returns the result object.
3152
+ """ # noqa: E501
3153
+
3154
+ _param = self._api_v3_dbw_orders_order_id_meta_imei_put_serialize(
3155
+ order_id=order_id,
3156
+ api_v3_dbw_orders_order_id_meta_imei_put_request=api_v3_dbw_orders_order_id_meta_imei_put_request,
3157
+ _request_auth=_request_auth,
3158
+ _content_type=_content_type,
3159
+ _headers=_headers,
3160
+ _host_index=_host_index
3161
+ )
3162
+
3163
+ _response_types_map: Dict[str, Optional[str]] = {
3164
+ '204': None,
3165
+ '400': "Error",
3166
+ '401': "ApiV3DbwOrdersNewGet401Response",
3167
+ '403': "Error",
3168
+ '404': "Error",
3169
+ '409': "Error",
3170
+ '429': "ApiV3DbwOrdersNewGet401Response",
3171
+ }
3172
+ response_data = self.api_client.call_api(
3173
+ *_param,
3174
+ _request_timeout=_request_timeout
3175
+ )
3176
+ return response_data.response
3177
+
3178
+
3179
+ def _api_v3_dbw_orders_order_id_meta_imei_put_serialize(
3180
+ self,
3181
+ order_id,
3182
+ api_v3_dbw_orders_order_id_meta_imei_put_request,
3183
+ _request_auth,
3184
+ _content_type,
3185
+ _headers,
3186
+ _host_index,
3187
+ ) -> RequestSerialized:
3188
+
3189
+ _hosts = [
3190
+ 'https://marketplace-api.wildberries.ru'
3191
+ ]
3192
+ _host = _hosts[_host_index]
3193
+
3194
+ _collection_formats: Dict[str, str] = {
3195
+ }
3196
+
3197
+ _path_params: Dict[str, str] = {}
3198
+ _query_params: List[Tuple[str, str]] = []
3199
+ _header_params: Dict[str, Optional[str]] = _headers or {}
3200
+ _form_params: List[Tuple[str, str]] = []
3201
+ _files: Dict[
3202
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3203
+ ] = {}
3204
+ _body_params: Optional[bytes] = None
3205
+
3206
+ # process the path parameters
3207
+ if order_id is not None:
3208
+ _path_params['orderId'] = order_id
3209
+ # process the query parameters
3210
+ # process the header parameters
3211
+ # process the form parameters
3212
+ # process the body parameter
3213
+ if api_v3_dbw_orders_order_id_meta_imei_put_request is not None:
3214
+ _body_params = api_v3_dbw_orders_order_id_meta_imei_put_request
3215
+
3216
+
3217
+ # set the HTTP header `Accept`
3218
+ if 'Accept' not in _header_params:
3219
+ _header_params['Accept'] = self.api_client.select_header_accept(
3220
+ [
3221
+ 'application/json'
3222
+ ]
3223
+ )
3224
+
3225
+ # set the HTTP header `Content-Type`
3226
+ if _content_type:
3227
+ _header_params['Content-Type'] = _content_type
3228
+ else:
3229
+ _default_content_type = (
3230
+ self.api_client.select_header_content_type(
3231
+ [
3232
+ 'application/json'
3233
+ ]
3234
+ )
3235
+ )
3236
+ if _default_content_type is not None:
3237
+ _header_params['Content-Type'] = _default_content_type
3238
+
3239
+ # authentication setting
3240
+ _auth_settings: List[str] = [
3241
+ 'HeaderApiKey'
3242
+ ]
3243
+
3244
+ return self.api_client.param_serialize(
3245
+ method='PUT',
3246
+ resource_path='/api/v3/dbw/orders/{orderId}/meta/imei',
3247
+ path_params=_path_params,
3248
+ query_params=_query_params,
3249
+ header_params=_header_params,
3250
+ body=_body_params,
3251
+ post_params=_form_params,
3252
+ files=_files,
3253
+ auth_settings=_auth_settings,
3254
+ collection_formats=_collection_formats,
3255
+ _host=_host,
3256
+ _request_auth=_request_auth
3257
+ )
3258
+
3259
+
3260
+
3261
+
3262
+ @validate_call
3263
+ def api_v3_dbw_orders_order_id_meta_sgtin_put(
3264
+ self,
3265
+ order_id: Annotated[StrictInt, Field(description="ID сборочного задания")],
3266
+ api_v3_dbw_orders_order_id_meta_sgtin_put_request: Optional[ApiV3DbwOrdersOrderIdMetaSgtinPutRequest] = None,
3267
+ _request_timeout: Union[
3268
+ None,
3269
+ Annotated[StrictFloat, Field(gt=0)],
3270
+ Tuple[
3271
+ Annotated[StrictFloat, Field(gt=0)],
3272
+ Annotated[StrictFloat, Field(gt=0)]
3273
+ ]
3274
+ ] = None,
3275
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3276
+ _content_type: Optional[StrictStr] = None,
3277
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3278
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
3279
+ ) -> None:
3280
+ """Закрепить за сборочным заданием код маркировки товара
3281
+
3282
+ Метод позволяет закрепить за сборочным заданием код маркировки [Честный знак](https://честныйзнак.рф). <br><br> Закрепить код маркировки можно только если в [метаданных сборочного задания](/openapi/orders-dbw#tag/Metadannye-DBW/paths/~1api~1v3~1dbw~1orders~1%7BorderId%7D~1meta/get) есть поле `sgtin`, а сборочное задание находится в [статусе](/openapi/orders-dbw#tag/Sborochnye-zadaniya-DBW/paths/~1api~1v3~1dbw~1orders~1status/post) `confirm`. <br><br> Получить загруженные маркировки можно в [метаданных сборочного задания](/openapi/orders-dbw#tag/Metadannye-DBW/paths/~1api~1v3~1dbw~1orders~1%7BorderId%7D~1meta/get). <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов <strong>закрепления метаданных</strong> модели <strong>DBW</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 1000 запросов | 60 миллисекунд | 20 запросов | Один запрос с кодом ответа <code>409</code> учитывается как 10 запросов </div>
3283
+
3284
+ :param order_id: ID сборочного задания (required)
3285
+ :type order_id: int
3286
+ :param api_v3_dbw_orders_order_id_meta_sgtin_put_request:
3287
+ :type api_v3_dbw_orders_order_id_meta_sgtin_put_request: ApiV3DbwOrdersOrderIdMetaSgtinPutRequest
3288
+ :param _request_timeout: timeout setting for this request. If one
3289
+ number provided, it will be total request
3290
+ timeout. It can also be a pair (tuple) of
3291
+ (connection, read) timeouts.
3292
+ :type _request_timeout: int, tuple(int, int), optional
3293
+ :param _request_auth: set to override the auth_settings for an a single
3294
+ request; this effectively ignores the
3295
+ authentication in the spec for a single request.
3296
+ :type _request_auth: dict, optional
3297
+ :param _content_type: force content-type for the request.
3298
+ :type _content_type: str, Optional
3299
+ :param _headers: set to override the headers for a single
3300
+ request; this effectively ignores the headers
3301
+ in the spec for a single request.
3302
+ :type _headers: dict, optional
3303
+ :param _host_index: set to override the host_index for a single
3304
+ request; this effectively ignores the host_index
3305
+ in the spec for a single request.
3306
+ :type _host_index: int, optional
3307
+ :return: Returns the result object.
3308
+ """ # noqa: E501
3309
+
3310
+ _param = self._api_v3_dbw_orders_order_id_meta_sgtin_put_serialize(
3311
+ order_id=order_id,
3312
+ api_v3_dbw_orders_order_id_meta_sgtin_put_request=api_v3_dbw_orders_order_id_meta_sgtin_put_request,
3313
+ _request_auth=_request_auth,
3314
+ _content_type=_content_type,
3315
+ _headers=_headers,
3316
+ _host_index=_host_index
3317
+ )
3318
+
3319
+ _response_types_map: Dict[str, Optional[str]] = {
3320
+ '204': None,
3321
+ '400': "Error",
3322
+ '401': "ApiV3DbwOrdersNewGet401Response",
3323
+ '403': "Error",
3324
+ '404': "Error",
3325
+ '409': "Error",
3326
+ '429': "ApiV3DbwOrdersNewGet401Response",
3327
+ }
3328
+ response_data = self.api_client.call_api(
3329
+ *_param,
3330
+ _request_timeout=_request_timeout
3331
+ )
3332
+ response_data.read()
3333
+ return self.api_client.response_deserialize(
3334
+ response_data=response_data,
3335
+ response_types_map=_response_types_map,
3336
+ ).data
3337
+
3338
+
3339
+ @validate_call
3340
+ def api_v3_dbw_orders_order_id_meta_sgtin_put_with_http_info(
3341
+ self,
3342
+ order_id: Annotated[StrictInt, Field(description="ID сборочного задания")],
3343
+ api_v3_dbw_orders_order_id_meta_sgtin_put_request: Optional[ApiV3DbwOrdersOrderIdMetaSgtinPutRequest] = None,
3344
+ _request_timeout: Union[
3345
+ None,
3346
+ Annotated[StrictFloat, Field(gt=0)],
3347
+ Tuple[
3348
+ Annotated[StrictFloat, Field(gt=0)],
3349
+ Annotated[StrictFloat, Field(gt=0)]
3350
+ ]
3351
+ ] = None,
3352
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3353
+ _content_type: Optional[StrictStr] = None,
3354
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3355
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
3356
+ ) -> ApiResponse[None]:
3357
+ """Закрепить за сборочным заданием код маркировки товара
3358
+
3359
+ Метод позволяет закрепить за сборочным заданием код маркировки [Честный знак](https://честныйзнак.рф). <br><br> Закрепить код маркировки можно только если в [метаданных сборочного задания](/openapi/orders-dbw#tag/Metadannye-DBW/paths/~1api~1v3~1dbw~1orders~1%7BorderId%7D~1meta/get) есть поле `sgtin`, а сборочное задание находится в [статусе](/openapi/orders-dbw#tag/Sborochnye-zadaniya-DBW/paths/~1api~1v3~1dbw~1orders~1status/post) `confirm`. <br><br> Получить загруженные маркировки можно в [метаданных сборочного задания](/openapi/orders-dbw#tag/Metadannye-DBW/paths/~1api~1v3~1dbw~1orders~1%7BorderId%7D~1meta/get). <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов <strong>закрепления метаданных</strong> модели <strong>DBW</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 1000 запросов | 60 миллисекунд | 20 запросов | Один запрос с кодом ответа <code>409</code> учитывается как 10 запросов </div>
3360
+
3361
+ :param order_id: ID сборочного задания (required)
3362
+ :type order_id: int
3363
+ :param api_v3_dbw_orders_order_id_meta_sgtin_put_request:
3364
+ :type api_v3_dbw_orders_order_id_meta_sgtin_put_request: ApiV3DbwOrdersOrderIdMetaSgtinPutRequest
3365
+ :param _request_timeout: timeout setting for this request. If one
3366
+ number provided, it will be total request
3367
+ timeout. It can also be a pair (tuple) of
3368
+ (connection, read) timeouts.
3369
+ :type _request_timeout: int, tuple(int, int), optional
3370
+ :param _request_auth: set to override the auth_settings for an a single
3371
+ request; this effectively ignores the
3372
+ authentication in the spec for a single request.
3373
+ :type _request_auth: dict, optional
3374
+ :param _content_type: force content-type for the request.
3375
+ :type _content_type: str, Optional
3376
+ :param _headers: set to override the headers for a single
3377
+ request; this effectively ignores the headers
3378
+ in the spec for a single request.
3379
+ :type _headers: dict, optional
3380
+ :param _host_index: set to override the host_index for a single
3381
+ request; this effectively ignores the host_index
3382
+ in the spec for a single request.
3383
+ :type _host_index: int, optional
3384
+ :return: Returns the result object.
3385
+ """ # noqa: E501
3386
+
3387
+ _param = self._api_v3_dbw_orders_order_id_meta_sgtin_put_serialize(
3388
+ order_id=order_id,
3389
+ api_v3_dbw_orders_order_id_meta_sgtin_put_request=api_v3_dbw_orders_order_id_meta_sgtin_put_request,
3390
+ _request_auth=_request_auth,
3391
+ _content_type=_content_type,
3392
+ _headers=_headers,
3393
+ _host_index=_host_index
3394
+ )
3395
+
3396
+ _response_types_map: Dict[str, Optional[str]] = {
3397
+ '204': None,
3398
+ '400': "Error",
3399
+ '401': "ApiV3DbwOrdersNewGet401Response",
3400
+ '403': "Error",
3401
+ '404': "Error",
3402
+ '409': "Error",
3403
+ '429': "ApiV3DbwOrdersNewGet401Response",
3404
+ }
3405
+ response_data = self.api_client.call_api(
3406
+ *_param,
3407
+ _request_timeout=_request_timeout
3408
+ )
3409
+ response_data.read()
3410
+ return self.api_client.response_deserialize(
3411
+ response_data=response_data,
3412
+ response_types_map=_response_types_map,
3413
+ )
3414
+
3415
+
3416
+ @validate_call
3417
+ def api_v3_dbw_orders_order_id_meta_sgtin_put_without_preload_content(
3418
+ self,
3419
+ order_id: Annotated[StrictInt, Field(description="ID сборочного задания")],
3420
+ api_v3_dbw_orders_order_id_meta_sgtin_put_request: Optional[ApiV3DbwOrdersOrderIdMetaSgtinPutRequest] = None,
3421
+ _request_timeout: Union[
3422
+ None,
3423
+ Annotated[StrictFloat, Field(gt=0)],
3424
+ Tuple[
3425
+ Annotated[StrictFloat, Field(gt=0)],
3426
+ Annotated[StrictFloat, Field(gt=0)]
3427
+ ]
3428
+ ] = None,
3429
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3430
+ _content_type: Optional[StrictStr] = None,
3431
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3432
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
3433
+ ) -> RESTResponseType:
3434
+ """Закрепить за сборочным заданием код маркировки товара
3435
+
3436
+ Метод позволяет закрепить за сборочным заданием код маркировки [Честный знак](https://честныйзнак.рф). <br><br> Закрепить код маркировки можно только если в [метаданных сборочного задания](/openapi/orders-dbw#tag/Metadannye-DBW/paths/~1api~1v3~1dbw~1orders~1%7BorderId%7D~1meta/get) есть поле `sgtin`, а сборочное задание находится в [статусе](/openapi/orders-dbw#tag/Sborochnye-zadaniya-DBW/paths/~1api~1v3~1dbw~1orders~1status/post) `confirm`. <br><br> Получить загруженные маркировки можно в [метаданных сборочного задания](/openapi/orders-dbw#tag/Metadannye-DBW/paths/~1api~1v3~1dbw~1orders~1%7BorderId%7D~1meta/get). <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов <strong>закрепления метаданных</strong> модели <strong>DBW</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 1000 запросов | 60 миллисекунд | 20 запросов | Один запрос с кодом ответа <code>409</code> учитывается как 10 запросов </div>
3437
+
3438
+ :param order_id: ID сборочного задания (required)
3439
+ :type order_id: int
3440
+ :param api_v3_dbw_orders_order_id_meta_sgtin_put_request:
3441
+ :type api_v3_dbw_orders_order_id_meta_sgtin_put_request: ApiV3DbwOrdersOrderIdMetaSgtinPutRequest
3442
+ :param _request_timeout: timeout setting for this request. If one
3443
+ number provided, it will be total request
3444
+ timeout. It can also be a pair (tuple) of
3445
+ (connection, read) timeouts.
3446
+ :type _request_timeout: int, tuple(int, int), optional
3447
+ :param _request_auth: set to override the auth_settings for an a single
3448
+ request; this effectively ignores the
3449
+ authentication in the spec for a single request.
3450
+ :type _request_auth: dict, optional
3451
+ :param _content_type: force content-type for the request.
3452
+ :type _content_type: str, Optional
3453
+ :param _headers: set to override the headers for a single
3454
+ request; this effectively ignores the headers
3455
+ in the spec for a single request.
3456
+ :type _headers: dict, optional
3457
+ :param _host_index: set to override the host_index for a single
3458
+ request; this effectively ignores the host_index
3459
+ in the spec for a single request.
3460
+ :type _host_index: int, optional
3461
+ :return: Returns the result object.
3462
+ """ # noqa: E501
3463
+
3464
+ _param = self._api_v3_dbw_orders_order_id_meta_sgtin_put_serialize(
3465
+ order_id=order_id,
3466
+ api_v3_dbw_orders_order_id_meta_sgtin_put_request=api_v3_dbw_orders_order_id_meta_sgtin_put_request,
3467
+ _request_auth=_request_auth,
3468
+ _content_type=_content_type,
3469
+ _headers=_headers,
3470
+ _host_index=_host_index
3471
+ )
3472
+
3473
+ _response_types_map: Dict[str, Optional[str]] = {
3474
+ '204': None,
3475
+ '400': "Error",
3476
+ '401': "ApiV3DbwOrdersNewGet401Response",
3477
+ '403': "Error",
3478
+ '404': "Error",
3479
+ '409': "Error",
3480
+ '429': "ApiV3DbwOrdersNewGet401Response",
3481
+ }
3482
+ response_data = self.api_client.call_api(
3483
+ *_param,
3484
+ _request_timeout=_request_timeout
3485
+ )
3486
+ return response_data.response
3487
+
3488
+
3489
+ def _api_v3_dbw_orders_order_id_meta_sgtin_put_serialize(
3490
+ self,
3491
+ order_id,
3492
+ api_v3_dbw_orders_order_id_meta_sgtin_put_request,
3493
+ _request_auth,
3494
+ _content_type,
3495
+ _headers,
3496
+ _host_index,
3497
+ ) -> RequestSerialized:
3498
+
3499
+ _hosts = [
3500
+ 'https://marketplace-api.wildberries.ru'
3501
+ ]
3502
+ _host = _hosts[_host_index]
3503
+
3504
+ _collection_formats: Dict[str, str] = {
3505
+ }
3506
+
3507
+ _path_params: Dict[str, str] = {}
3508
+ _query_params: List[Tuple[str, str]] = []
3509
+ _header_params: Dict[str, Optional[str]] = _headers or {}
3510
+ _form_params: List[Tuple[str, str]] = []
3511
+ _files: Dict[
3512
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3513
+ ] = {}
3514
+ _body_params: Optional[bytes] = None
3515
+
3516
+ # process the path parameters
3517
+ if order_id is not None:
3518
+ _path_params['orderId'] = order_id
3519
+ # process the query parameters
3520
+ # process the header parameters
3521
+ # process the form parameters
3522
+ # process the body parameter
3523
+ if api_v3_dbw_orders_order_id_meta_sgtin_put_request is not None:
3524
+ _body_params = api_v3_dbw_orders_order_id_meta_sgtin_put_request
3525
+
3526
+
3527
+ # set the HTTP header `Accept`
3528
+ if 'Accept' not in _header_params:
3529
+ _header_params['Accept'] = self.api_client.select_header_accept(
3530
+ [
3531
+ 'application/json'
3532
+ ]
3533
+ )
3534
+
3535
+ # set the HTTP header `Content-Type`
3536
+ if _content_type:
3537
+ _header_params['Content-Type'] = _content_type
3538
+ else:
3539
+ _default_content_type = (
3540
+ self.api_client.select_header_content_type(
3541
+ [
3542
+ 'application/json'
3543
+ ]
3544
+ )
3545
+ )
3546
+ if _default_content_type is not None:
3547
+ _header_params['Content-Type'] = _default_content_type
3548
+
3549
+ # authentication setting
3550
+ _auth_settings: List[str] = [
3551
+ 'HeaderApiKey'
3552
+ ]
3553
+
3554
+ return self.api_client.param_serialize(
3555
+ method='PUT',
3556
+ resource_path='/api/v3/dbw/orders/{orderId}/meta/sgtin',
3557
+ path_params=_path_params,
3558
+ query_params=_query_params,
3559
+ header_params=_header_params,
3560
+ body=_body_params,
3561
+ post_params=_form_params,
3562
+ files=_files,
3563
+ auth_settings=_auth_settings,
3564
+ collection_formats=_collection_formats,
3565
+ _host=_host,
3566
+ _request_auth=_request_auth
3567
+ )
3568
+
3569
+
3570
+
3571
+
3572
+ @validate_call
3573
+ def api_v3_dbw_orders_order_id_meta_uin_put(
3574
+ self,
3575
+ order_id: Annotated[StrictInt, Field(description="ID сборочного задания")],
3576
+ api_v3_dbw_orders_order_id_meta_uin_put_request: Optional[ApiV3DbwOrdersOrderIdMetaUinPutRequest] = None,
3577
+ _request_timeout: Union[
3578
+ None,
3579
+ Annotated[StrictFloat, Field(gt=0)],
3580
+ Tuple[
3581
+ Annotated[StrictFloat, Field(gt=0)],
3582
+ Annotated[StrictFloat, Field(gt=0)]
3583
+ ]
3584
+ ] = None,
3585
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3586
+ _content_type: Optional[StrictStr] = None,
3587
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3588
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
3589
+ ) -> None:
3590
+ """Закрепить за сборочным заданием УИН (уникальный идентификационный номер)
3591
+
3592
+ Метод обновляет УИН в [метаданных сборочного задания](/openapi/orders-dbw#tag/Metadannye-DBW/paths/~1api~1v3~1dbw~1orders~1%7BorderId%7D~1meta/get) — уникальный идентификационный номер. <br><br> У одного сборочного задания может быть только один УИН. Добавлять маркировку можно только для заказов, которые находятся в [статусе](/openapi/orders-dbw#tag/Sborochnye-zadaniya-DBW/paths/~1api~1v3~1dbw~1orders~1status/post) `confirm`. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов <strong>закрепления метаданных</strong> модели <strong>DBW</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 1000 запросов | 60 миллисекунд | 20 запросов | Один запрос с кодом ответа <code>409</code> учитывается как 10 запросов </div>
3593
+
3594
+ :param order_id: ID сборочного задания (required)
3595
+ :type order_id: int
3596
+ :param api_v3_dbw_orders_order_id_meta_uin_put_request:
3597
+ :type api_v3_dbw_orders_order_id_meta_uin_put_request: ApiV3DbwOrdersOrderIdMetaUinPutRequest
3598
+ :param _request_timeout: timeout setting for this request. If one
3599
+ number provided, it will be total request
3600
+ timeout. It can also be a pair (tuple) of
3601
+ (connection, read) timeouts.
3602
+ :type _request_timeout: int, tuple(int, int), optional
3603
+ :param _request_auth: set to override the auth_settings for an a single
3604
+ request; this effectively ignores the
3605
+ authentication in the spec for a single request.
3606
+ :type _request_auth: dict, optional
3607
+ :param _content_type: force content-type for the request.
3608
+ :type _content_type: str, Optional
3609
+ :param _headers: set to override the headers for a single
3610
+ request; this effectively ignores the headers
3611
+ in the spec for a single request.
3612
+ :type _headers: dict, optional
3613
+ :param _host_index: set to override the host_index for a single
3614
+ request; this effectively ignores the host_index
3615
+ in the spec for a single request.
3616
+ :type _host_index: int, optional
3617
+ :return: Returns the result object.
3618
+ """ # noqa: E501
3619
+
3620
+ _param = self._api_v3_dbw_orders_order_id_meta_uin_put_serialize(
3621
+ order_id=order_id,
3622
+ api_v3_dbw_orders_order_id_meta_uin_put_request=api_v3_dbw_orders_order_id_meta_uin_put_request,
3623
+ _request_auth=_request_auth,
3624
+ _content_type=_content_type,
3625
+ _headers=_headers,
3626
+ _host_index=_host_index
3627
+ )
3628
+
3629
+ _response_types_map: Dict[str, Optional[str]] = {
3630
+ '204': None,
3631
+ '400': "Error",
3632
+ '401': "ApiV3DbwOrdersNewGet401Response",
3633
+ '403': "Error",
3634
+ '404': "Error",
3635
+ '409': "Error",
3636
+ '429': "ApiV3DbwOrdersNewGet401Response",
3637
+ }
3638
+ response_data = self.api_client.call_api(
3639
+ *_param,
3640
+ _request_timeout=_request_timeout
3641
+ )
3642
+ response_data.read()
3643
+ return self.api_client.response_deserialize(
3644
+ response_data=response_data,
3645
+ response_types_map=_response_types_map,
3646
+ ).data
3647
+
3648
+
3649
+ @validate_call
3650
+ def api_v3_dbw_orders_order_id_meta_uin_put_with_http_info(
3651
+ self,
3652
+ order_id: Annotated[StrictInt, Field(description="ID сборочного задания")],
3653
+ api_v3_dbw_orders_order_id_meta_uin_put_request: Optional[ApiV3DbwOrdersOrderIdMetaUinPutRequest] = None,
3654
+ _request_timeout: Union[
3655
+ None,
3656
+ Annotated[StrictFloat, Field(gt=0)],
3657
+ Tuple[
3658
+ Annotated[StrictFloat, Field(gt=0)],
3659
+ Annotated[StrictFloat, Field(gt=0)]
3660
+ ]
3661
+ ] = None,
3662
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3663
+ _content_type: Optional[StrictStr] = None,
3664
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3665
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
3666
+ ) -> ApiResponse[None]:
3667
+ """Закрепить за сборочным заданием УИН (уникальный идентификационный номер)
3668
+
3669
+ Метод обновляет УИН в [метаданных сборочного задания](/openapi/orders-dbw#tag/Metadannye-DBW/paths/~1api~1v3~1dbw~1orders~1%7BorderId%7D~1meta/get) — уникальный идентификационный номер. <br><br> У одного сборочного задания может быть только один УИН. Добавлять маркировку можно только для заказов, которые находятся в [статусе](/openapi/orders-dbw#tag/Sborochnye-zadaniya-DBW/paths/~1api~1v3~1dbw~1orders~1status/post) `confirm`. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов <strong>закрепления метаданных</strong> модели <strong>DBW</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 1000 запросов | 60 миллисекунд | 20 запросов | Один запрос с кодом ответа <code>409</code> учитывается как 10 запросов </div>
3670
+
3671
+ :param order_id: ID сборочного задания (required)
3672
+ :type order_id: int
3673
+ :param api_v3_dbw_orders_order_id_meta_uin_put_request:
3674
+ :type api_v3_dbw_orders_order_id_meta_uin_put_request: ApiV3DbwOrdersOrderIdMetaUinPutRequest
3675
+ :param _request_timeout: timeout setting for this request. If one
3676
+ number provided, it will be total request
3677
+ timeout. It can also be a pair (tuple) of
3678
+ (connection, read) timeouts.
3679
+ :type _request_timeout: int, tuple(int, int), optional
3680
+ :param _request_auth: set to override the auth_settings for an a single
3681
+ request; this effectively ignores the
3682
+ authentication in the spec for a single request.
3683
+ :type _request_auth: dict, optional
3684
+ :param _content_type: force content-type for the request.
3685
+ :type _content_type: str, Optional
3686
+ :param _headers: set to override the headers for a single
3687
+ request; this effectively ignores the headers
3688
+ in the spec for a single request.
3689
+ :type _headers: dict, optional
3690
+ :param _host_index: set to override the host_index for a single
3691
+ request; this effectively ignores the host_index
3692
+ in the spec for a single request.
3693
+ :type _host_index: int, optional
3694
+ :return: Returns the result object.
3695
+ """ # noqa: E501
3696
+
3697
+ _param = self._api_v3_dbw_orders_order_id_meta_uin_put_serialize(
3698
+ order_id=order_id,
3699
+ api_v3_dbw_orders_order_id_meta_uin_put_request=api_v3_dbw_orders_order_id_meta_uin_put_request,
3700
+ _request_auth=_request_auth,
3701
+ _content_type=_content_type,
3702
+ _headers=_headers,
3703
+ _host_index=_host_index
3704
+ )
3705
+
3706
+ _response_types_map: Dict[str, Optional[str]] = {
3707
+ '204': None,
3708
+ '400': "Error",
3709
+ '401': "ApiV3DbwOrdersNewGet401Response",
3710
+ '403': "Error",
3711
+ '404': "Error",
3712
+ '409': "Error",
3713
+ '429': "ApiV3DbwOrdersNewGet401Response",
3714
+ }
3715
+ response_data = self.api_client.call_api(
3716
+ *_param,
3717
+ _request_timeout=_request_timeout
3718
+ )
3719
+ response_data.read()
3720
+ return self.api_client.response_deserialize(
3721
+ response_data=response_data,
3722
+ response_types_map=_response_types_map,
3723
+ )
3724
+
3725
+
3726
+ @validate_call
3727
+ def api_v3_dbw_orders_order_id_meta_uin_put_without_preload_content(
3728
+ self,
3729
+ order_id: Annotated[StrictInt, Field(description="ID сборочного задания")],
3730
+ api_v3_dbw_orders_order_id_meta_uin_put_request: Optional[ApiV3DbwOrdersOrderIdMetaUinPutRequest] = None,
3731
+ _request_timeout: Union[
3732
+ None,
3733
+ Annotated[StrictFloat, Field(gt=0)],
3734
+ Tuple[
3735
+ Annotated[StrictFloat, Field(gt=0)],
3736
+ Annotated[StrictFloat, Field(gt=0)]
3737
+ ]
3738
+ ] = None,
3739
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3740
+ _content_type: Optional[StrictStr] = None,
3741
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3742
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
3743
+ ) -> RESTResponseType:
3744
+ """Закрепить за сборочным заданием УИН (уникальный идентификационный номер)
3745
+
3746
+ Метод обновляет УИН в [метаданных сборочного задания](/openapi/orders-dbw#tag/Metadannye-DBW/paths/~1api~1v3~1dbw~1orders~1%7BorderId%7D~1meta/get) — уникальный идентификационный номер. <br><br> У одного сборочного задания может быть только один УИН. Добавлять маркировку можно только для заказов, которые находятся в [статусе](/openapi/orders-dbw#tag/Sborochnye-zadaniya-DBW/paths/~1api~1v3~1dbw~1orders~1status/post) `confirm`. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов <strong>закрепления метаданных</strong> модели <strong>DBW</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 1000 запросов | 60 миллисекунд | 20 запросов | Один запрос с кодом ответа <code>409</code> учитывается как 10 запросов </div>
3747
+
3748
+ :param order_id: ID сборочного задания (required)
3749
+ :type order_id: int
3750
+ :param api_v3_dbw_orders_order_id_meta_uin_put_request:
3751
+ :type api_v3_dbw_orders_order_id_meta_uin_put_request: ApiV3DbwOrdersOrderIdMetaUinPutRequest
3752
+ :param _request_timeout: timeout setting for this request. If one
3753
+ number provided, it will be total request
3754
+ timeout. It can also be a pair (tuple) of
3755
+ (connection, read) timeouts.
3756
+ :type _request_timeout: int, tuple(int, int), optional
3757
+ :param _request_auth: set to override the auth_settings for an a single
3758
+ request; this effectively ignores the
3759
+ authentication in the spec for a single request.
3760
+ :type _request_auth: dict, optional
3761
+ :param _content_type: force content-type for the request.
3762
+ :type _content_type: str, Optional
3763
+ :param _headers: set to override the headers for a single
3764
+ request; this effectively ignores the headers
3765
+ in the spec for a single request.
3766
+ :type _headers: dict, optional
3767
+ :param _host_index: set to override the host_index for a single
3768
+ request; this effectively ignores the host_index
3769
+ in the spec for a single request.
3770
+ :type _host_index: int, optional
3771
+ :return: Returns the result object.
3772
+ """ # noqa: E501
3773
+
3774
+ _param = self._api_v3_dbw_orders_order_id_meta_uin_put_serialize(
3775
+ order_id=order_id,
3776
+ api_v3_dbw_orders_order_id_meta_uin_put_request=api_v3_dbw_orders_order_id_meta_uin_put_request,
3777
+ _request_auth=_request_auth,
3778
+ _content_type=_content_type,
3779
+ _headers=_headers,
3780
+ _host_index=_host_index
3781
+ )
3782
+
3783
+ _response_types_map: Dict[str, Optional[str]] = {
3784
+ '204': None,
3785
+ '400': "Error",
3786
+ '401': "ApiV3DbwOrdersNewGet401Response",
3787
+ '403': "Error",
3788
+ '404': "Error",
3789
+ '409': "Error",
3790
+ '429': "ApiV3DbwOrdersNewGet401Response",
3791
+ }
3792
+ response_data = self.api_client.call_api(
3793
+ *_param,
3794
+ _request_timeout=_request_timeout
3795
+ )
3796
+ return response_data.response
3797
+
3798
+
3799
+ def _api_v3_dbw_orders_order_id_meta_uin_put_serialize(
3800
+ self,
3801
+ order_id,
3802
+ api_v3_dbw_orders_order_id_meta_uin_put_request,
3803
+ _request_auth,
3804
+ _content_type,
3805
+ _headers,
3806
+ _host_index,
3807
+ ) -> RequestSerialized:
3808
+
3809
+ _hosts = [
3810
+ 'https://marketplace-api.wildberries.ru'
3811
+ ]
3812
+ _host = _hosts[_host_index]
3813
+
3814
+ _collection_formats: Dict[str, str] = {
3815
+ }
3816
+
3817
+ _path_params: Dict[str, str] = {}
3818
+ _query_params: List[Tuple[str, str]] = []
3819
+ _header_params: Dict[str, Optional[str]] = _headers or {}
3820
+ _form_params: List[Tuple[str, str]] = []
3821
+ _files: Dict[
3822
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3823
+ ] = {}
3824
+ _body_params: Optional[bytes] = None
3825
+
3826
+ # process the path parameters
3827
+ if order_id is not None:
3828
+ _path_params['orderId'] = order_id
3829
+ # process the query parameters
3830
+ # process the header parameters
3831
+ # process the form parameters
3832
+ # process the body parameter
3833
+ if api_v3_dbw_orders_order_id_meta_uin_put_request is not None:
3834
+ _body_params = api_v3_dbw_orders_order_id_meta_uin_put_request
3835
+
3836
+
3837
+ # set the HTTP header `Accept`
3838
+ if 'Accept' not in _header_params:
3839
+ _header_params['Accept'] = self.api_client.select_header_accept(
3840
+ [
3841
+ 'application/json'
3842
+ ]
3843
+ )
3844
+
3845
+ # set the HTTP header `Content-Type`
3846
+ if _content_type:
3847
+ _header_params['Content-Type'] = _content_type
3848
+ else:
3849
+ _default_content_type = (
3850
+ self.api_client.select_header_content_type(
3851
+ [
3852
+ 'application/json'
3853
+ ]
3854
+ )
3855
+ )
3856
+ if _default_content_type is not None:
3857
+ _header_params['Content-Type'] = _default_content_type
3858
+
3859
+ # authentication setting
3860
+ _auth_settings: List[str] = [
3861
+ 'HeaderApiKey'
3862
+ ]
3863
+
3864
+ return self.api_client.param_serialize(
3865
+ method='PUT',
3866
+ resource_path='/api/v3/dbw/orders/{orderId}/meta/uin',
3867
+ path_params=_path_params,
3868
+ query_params=_query_params,
3869
+ header_params=_header_params,
3870
+ body=_body_params,
3871
+ post_params=_form_params,
3872
+ files=_files,
3873
+ auth_settings=_auth_settings,
3874
+ collection_formats=_collection_formats,
3875
+ _host=_host,
3876
+ _request_auth=_request_auth
3877
+ )
3878
+
3879
+
3880
+
3881
+
2062
3882
  @validate_call
2063
3883
  def api_v3_dbw_orders_status_post(
2064
3884
  self,