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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. wildberries_sdk/analytics/__init__.py +3 -7
  2. wildberries_sdk/analytics/api/__init__.py +1 -3
  3. wildberries_sdk/analytics/api/default_api.py +4670 -0
  4. wildberries_sdk/analytics/api_client.py +1 -1
  5. wildberries_sdk/analytics/configuration.py +1 -1
  6. wildberries_sdk/communications/__init__.py +1 -5
  7. wildberries_sdk/communications/api/__init__.py +0 -2
  8. wildberries_sdk/communications/api/default_api.py +4282 -858
  9. wildberries_sdk/communications/api_client.py +1 -1
  10. wildberries_sdk/communications/configuration.py +1 -1
  11. wildberries_sdk/finances/__init__.py +1 -3
  12. wildberries_sdk/finances/api/__init__.py +0 -1
  13. wildberries_sdk/finances/api/default_api.py +367 -2
  14. wildberries_sdk/finances/api_client.py +1 -1
  15. wildberries_sdk/finances/configuration.py +1 -1
  16. wildberries_sdk/general/__init__.py +3 -7
  17. wildberries_sdk/general/api/__init__.py +1 -3
  18. wildberries_sdk/general/api/{api.py → default_api.py} +560 -1
  19. wildberries_sdk/general/api_client.py +1 -1
  20. wildberries_sdk/general/configuration.py +1 -1
  21. wildberries_sdk/in_store_pickup/__init__.py +3 -5
  22. wildberries_sdk/in_store_pickup/api/__init__.py +1 -2
  23. wildberries_sdk/in_store_pickup/api/{api.py → default_api.py} +1798 -2
  24. wildberries_sdk/in_store_pickup/api_client.py +1 -1
  25. wildberries_sdk/in_store_pickup/configuration.py +1 -1
  26. wildberries_sdk/orders_dbs/__init__.py +3 -5
  27. wildberries_sdk/orders_dbs/api/__init__.py +1 -2
  28. wildberries_sdk/orders_dbs/api/{dbs_api.py → default_api.py} +1819 -2
  29. wildberries_sdk/orders_dbs/api_client.py +1 -1
  30. wildberries_sdk/orders_dbs/configuration.py +1 -1
  31. wildberries_sdk/orders_dbw/__init__.py +3 -5
  32. wildberries_sdk/orders_dbw/api/__init__.py +1 -2
  33. wildberries_sdk/orders_dbw/api/{dbw_api.py → default_api.py} +1821 -1
  34. wildberries_sdk/orders_dbw/api_client.py +1 -1
  35. wildberries_sdk/orders_dbw/configuration.py +1 -1
  36. wildberries_sdk/orders_fbs/__init__.py +3 -5
  37. wildberries_sdk/orders_fbs/api/__init__.py +1 -2
  38. wildberries_sdk/orders_fbs/api/default_api.py +10043 -0
  39. wildberries_sdk/orders_fbs/api_client.py +1 -1
  40. wildberries_sdk/orders_fbs/configuration.py +1 -1
  41. wildberries_sdk/orders_fbw/__init__.py +3 -5
  42. wildberries_sdk/orders_fbw/api/__init__.py +1 -2
  43. wildberries_sdk/orders_fbw/api/default_api.py +2368 -0
  44. wildberries_sdk/orders_fbw/api_client.py +1 -1
  45. wildberries_sdk/orders_fbw/configuration.py +1 -1
  46. wildberries_sdk/products/__init__.py +1 -7
  47. wildberries_sdk/products/api/__init__.py +0 -3
  48. wildberries_sdk/products/api/default_api.py +12348 -2
  49. wildberries_sdk/products/api_client.py +1 -1
  50. wildberries_sdk/products/configuration.py +1 -1
  51. wildberries_sdk/products/models/content_v2_get_cards_list_post200_response_cards_inner_tags_inner.py +1 -1
  52. wildberries_sdk/promotion/__init__.py +1 -3
  53. wildberries_sdk/promotion/api/__init__.py +0 -1
  54. wildberries_sdk/promotion/api/default_api.py +10107 -1059
  55. wildberries_sdk/promotion/api_client.py +1 -1
  56. wildberries_sdk/promotion/configuration.py +1 -1
  57. wildberries_sdk/reports/__init__.py +3 -13
  58. wildberries_sdk/reports/api/__init__.py +1 -6
  59. wildberries_sdk/{promotion/api/api.py → reports/api/default_api.py} +2245 -2381
  60. wildberries_sdk/reports/api_client.py +1 -1
  61. wildberries_sdk/reports/configuration.py +1 -1
  62. wildberries_sdk/tariffs/__init__.py +1 -3
  63. wildberries_sdk/tariffs/api/__init__.py +0 -1
  64. wildberries_sdk/tariffs/api/default_api.py +1147 -34
  65. wildberries_sdk/tariffs/api_client.py +1 -1
  66. wildberries_sdk/tariffs/configuration.py +1 -1
  67. wildberries_sdk/wbd/__init__.py +1 -3
  68. wildberries_sdk/wbd/api/__init__.py +0 -1
  69. wildberries_sdk/wbd/api/default_api.py +1662 -89
  70. wildberries_sdk/wbd/api_client.py +1 -1
  71. wildberries_sdk/wbd/configuration.py +1 -1
  72. wildberries_sdk/wbd/models/offer_create_request.py +1 -1
  73. wildberries_sdk/wbd/models/offer_update_request.py +1 -1
  74. wildberries_sdk-0.1.18.dist-info/METADATA +395 -0
  75. {wildberries_sdk-0.1.16.dist-info → wildberries_sdk-0.1.18.dist-info}/RECORD +78 -88
  76. wildberries_sdk/analytics/api/api.py +0 -1490
  77. wildberries_sdk/analytics/api/csv_api.py +0 -1178
  78. wildberries_sdk/communications/api/api.py +0 -1166
  79. wildberries_sdk/finances/api/api.py +0 -404
  80. wildberries_sdk/general/api/api_api.py +0 -341
  81. wildberries_sdk/general/api/wbapi_api.py +0 -291
  82. wildberries_sdk/orders_fbs/api/fbs_api.py +0 -2683
  83. wildberries_sdk/orders_fbw/api/api.py +0 -1153
  84. wildberries_sdk/products/api/api.py +0 -3891
  85. wildberries_sdk/reports/api/api.py +0 -350
  86. wildberries_sdk/reports/api/c_api.py +0 -361
  87. wildberries_sdk/tariffs/api/api.py +0 -1151
  88. wildberries_sdk/wbd/api/api.py +0 -1611
  89. wildberries_sdk-0.1.16.dist-info/METADATA +0 -191
  90. {wildberries_sdk-0.1.16.dist-info → wildberries_sdk-0.1.18.dist-info}/LICENSE +0 -0
  91. {wildberries_sdk-0.1.16.dist-info → wildberries_sdk-0.1.18.dist-info}/WHEEL +0 -0
  92. {wildberries_sdk-0.1.16.dist-info → wildberries_sdk-0.1.18.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,2368 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Поставки FBW
5
+
6
+ <div class=\"description_important\"> Узнать больше о поставках FBW можно в <a href=\"https://seller.wildberries.ru/instructions/subcategory/5a8e1202-0865-45b7-acae-5d0afc7add56?goBackOption=prevRoute&categoryId=479385c6-de01-4b4d-ad4e-ed941e65582e\">справочном центре</a> </div> В разделе описаны методы получения: - [информации для формирования поставок](/openapi/orders-fbw#tag/Informaciya-dlya-formirovaniya-postavok) - [информации о поставках](/openapi/orders-fbw#tag/Informaciya-o-postavkah)
7
+
8
+ The version of the OpenAPI document: ordersfbw
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+ import warnings
15
+ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
16
+ from typing import Any, Dict, List, Optional, Tuple, Union
17
+ from typing_extensions import Annotated
18
+
19
+ from pydantic import Field, StrictBool, StrictInt, StrictStr
20
+ from typing import List, Optional
21
+ from typing_extensions import Annotated
22
+ from wildberries_sdk.orders_fbw.models.models_acceptance_coefficient import ModelsAcceptanceCoefficient
23
+ from wildberries_sdk.orders_fbw.models.models_box import ModelsBox
24
+ from wildberries_sdk.orders_fbw.models.models_good import ModelsGood
25
+ from wildberries_sdk.orders_fbw.models.models_good_in_supply import ModelsGoodInSupply
26
+ from wildberries_sdk.orders_fbw.models.models_options_result_model import ModelsOptionsResultModel
27
+ from wildberries_sdk.orders_fbw.models.models_supplies_filters_request import ModelsSuppliesFiltersRequest
28
+ from wildberries_sdk.orders_fbw.models.models_supply import ModelsSupply
29
+ from wildberries_sdk.orders_fbw.models.models_supply_details import ModelsSupplyDetails
30
+ from wildberries_sdk.orders_fbw.models.models_transit_tariff import ModelsTransitTariff
31
+ from wildberries_sdk.orders_fbw.models.models_warehouses_result_items import ModelsWarehousesResultItems
32
+
33
+ from wildberries_sdk.orders_fbw.api_client import ApiClient, RequestSerialized
34
+ from wildberries_sdk.orders_fbw.api_response import ApiResponse
35
+ from wildberries_sdk.orders_fbw.rest import RESTResponseType
36
+
37
+
38
+ class DefaultApi:
39
+ """NOTE: This class is auto generated by OpenAPI Generator
40
+ Ref: https://openapi-generator.tech
41
+
42
+ Do not edit the class manually.
43
+ """
44
+
45
+ def __init__(self, api_client=None) -> None:
46
+ if api_client is None:
47
+ api_client = ApiClient.get_default()
48
+ self.api_client = api_client
49
+
50
+
51
+ @validate_call
52
+ def api_v1_acceptance_coefficients_get(
53
+ self,
54
+ warehouse_ids: Annotated[Optional[StrictStr], Field(description="ID складов.<br>По умолчанию возвращаются данные по всем складам")] = None,
55
+ _request_timeout: Union[
56
+ None,
57
+ Annotated[StrictFloat, Field(gt=0)],
58
+ Tuple[
59
+ Annotated[StrictFloat, Field(gt=0)],
60
+ Annotated[StrictFloat, Field(gt=0)]
61
+ ]
62
+ ] = None,
63
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
64
+ _content_type: Optional[StrictStr] = None,
65
+ _headers: Optional[Dict[StrictStr, Any]] = None,
66
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
67
+ ) -> List[ModelsAcceptanceCoefficient]:
68
+ """(Deprecated) Коэффициенты приёмки
69
+
70
+ Метод находится в разделе [Тарифы](/openapi/wb-tariffs#tag/Tarify-na-postavku/paths/~1api~1tariffs~1v1~1acceptance~1coefficients/get) и называется **Тарифы на поставку** `GET /api/tariffs/v1/acceptance/coefficients`. Он доступен по домену `common-api.wildberries.ru` с <a href=\"/openapi/api-information#tag/Avtorizaciya/Kak-sozdat-personalnyj-bazovyj-ili-testovyj-token\">токеном</a> любой категории. Доступ к этому методу с доменом `supplies-api.wildberries.ru` будет отключен [3 февраля](https://dev.wildberries.ru/release-notes?id=370) <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 6 запросов | 10 секунд | 6 запросов | </div>
71
+
72
+ :param warehouse_ids: ID складов.<br>По умолчанию возвращаются данные по всем складам
73
+ :type warehouse_ids: str
74
+ :param _request_timeout: timeout setting for this request. If one
75
+ number provided, it will be total request
76
+ timeout. It can also be a pair (tuple) of
77
+ (connection, read) timeouts.
78
+ :type _request_timeout: int, tuple(int, int), optional
79
+ :param _request_auth: set to override the auth_settings for an a single
80
+ request; this effectively ignores the
81
+ authentication in the spec for a single request.
82
+ :type _request_auth: dict, optional
83
+ :param _content_type: force content-type for the request.
84
+ :type _content_type: str, Optional
85
+ :param _headers: set to override the headers for a single
86
+ request; this effectively ignores the headers
87
+ in the spec for a single request.
88
+ :type _headers: dict, optional
89
+ :param _host_index: set to override the host_index for a single
90
+ request; this effectively ignores the host_index
91
+ in the spec for a single request.
92
+ :type _host_index: int, optional
93
+ :return: Returns the result object.
94
+ """ # noqa: E501
95
+ warnings.warn("GET /api/v1/acceptance/coefficients is deprecated.", DeprecationWarning)
96
+
97
+ _param = self._api_v1_acceptance_coefficients_get_serialize(
98
+ warehouse_ids=warehouse_ids,
99
+ _request_auth=_request_auth,
100
+ _content_type=_content_type,
101
+ _headers=_headers,
102
+ _host_index=_host_index
103
+ )
104
+
105
+ _response_types_map: Dict[str, Optional[str]] = {
106
+ '200': "List[ModelsAcceptanceCoefficient]",
107
+ '400': "ModelsErrorModel",
108
+ '401': "ApiV1AcceptanceCoefficientsGet401Response",
109
+ '403': None,
110
+ '404': None,
111
+ '429': "ApiV1AcceptanceCoefficientsGet401Response",
112
+ }
113
+ response_data = self.api_client.call_api(
114
+ *_param,
115
+ _request_timeout=_request_timeout
116
+ )
117
+ response_data.read()
118
+ return self.api_client.response_deserialize(
119
+ response_data=response_data,
120
+ response_types_map=_response_types_map,
121
+ ).data
122
+
123
+
124
+ @validate_call
125
+ def api_v1_acceptance_coefficients_get_with_http_info(
126
+ self,
127
+ warehouse_ids: Annotated[Optional[StrictStr], Field(description="ID складов.<br>По умолчанию возвращаются данные по всем складам")] = None,
128
+ _request_timeout: Union[
129
+ None,
130
+ Annotated[StrictFloat, Field(gt=0)],
131
+ Tuple[
132
+ Annotated[StrictFloat, Field(gt=0)],
133
+ Annotated[StrictFloat, Field(gt=0)]
134
+ ]
135
+ ] = None,
136
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
137
+ _content_type: Optional[StrictStr] = None,
138
+ _headers: Optional[Dict[StrictStr, Any]] = None,
139
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
140
+ ) -> ApiResponse[List[ModelsAcceptanceCoefficient]]:
141
+ """(Deprecated) Коэффициенты приёмки
142
+
143
+ Метод находится в разделе [Тарифы](/openapi/wb-tariffs#tag/Tarify-na-postavku/paths/~1api~1tariffs~1v1~1acceptance~1coefficients/get) и называется **Тарифы на поставку** `GET /api/tariffs/v1/acceptance/coefficients`. Он доступен по домену `common-api.wildberries.ru` с <a href=\"/openapi/api-information#tag/Avtorizaciya/Kak-sozdat-personalnyj-bazovyj-ili-testovyj-token\">токеном</a> любой категории. Доступ к этому методу с доменом `supplies-api.wildberries.ru` будет отключен [3 февраля](https://dev.wildberries.ru/release-notes?id=370) <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 6 запросов | 10 секунд | 6 запросов | </div>
144
+
145
+ :param warehouse_ids: ID складов.<br>По умолчанию возвращаются данные по всем складам
146
+ :type warehouse_ids: str
147
+ :param _request_timeout: timeout setting for this request. If one
148
+ number provided, it will be total request
149
+ timeout. It can also be a pair (tuple) of
150
+ (connection, read) timeouts.
151
+ :type _request_timeout: int, tuple(int, int), optional
152
+ :param _request_auth: set to override the auth_settings for an a single
153
+ request; this effectively ignores the
154
+ authentication in the spec for a single request.
155
+ :type _request_auth: dict, optional
156
+ :param _content_type: force content-type for the request.
157
+ :type _content_type: str, Optional
158
+ :param _headers: set to override the headers for a single
159
+ request; this effectively ignores the headers
160
+ in the spec for a single request.
161
+ :type _headers: dict, optional
162
+ :param _host_index: set to override the host_index for a single
163
+ request; this effectively ignores the host_index
164
+ in the spec for a single request.
165
+ :type _host_index: int, optional
166
+ :return: Returns the result object.
167
+ """ # noqa: E501
168
+ warnings.warn("GET /api/v1/acceptance/coefficients is deprecated.", DeprecationWarning)
169
+
170
+ _param = self._api_v1_acceptance_coefficients_get_serialize(
171
+ warehouse_ids=warehouse_ids,
172
+ _request_auth=_request_auth,
173
+ _content_type=_content_type,
174
+ _headers=_headers,
175
+ _host_index=_host_index
176
+ )
177
+
178
+ _response_types_map: Dict[str, Optional[str]] = {
179
+ '200': "List[ModelsAcceptanceCoefficient]",
180
+ '400': "ModelsErrorModel",
181
+ '401': "ApiV1AcceptanceCoefficientsGet401Response",
182
+ '403': None,
183
+ '404': None,
184
+ '429': "ApiV1AcceptanceCoefficientsGet401Response",
185
+ }
186
+ response_data = self.api_client.call_api(
187
+ *_param,
188
+ _request_timeout=_request_timeout
189
+ )
190
+ response_data.read()
191
+ return self.api_client.response_deserialize(
192
+ response_data=response_data,
193
+ response_types_map=_response_types_map,
194
+ )
195
+
196
+
197
+ @validate_call
198
+ def api_v1_acceptance_coefficients_get_without_preload_content(
199
+ self,
200
+ warehouse_ids: Annotated[Optional[StrictStr], Field(description="ID складов.<br>По умолчанию возвращаются данные по всем складам")] = None,
201
+ _request_timeout: Union[
202
+ None,
203
+ Annotated[StrictFloat, Field(gt=0)],
204
+ Tuple[
205
+ Annotated[StrictFloat, Field(gt=0)],
206
+ Annotated[StrictFloat, Field(gt=0)]
207
+ ]
208
+ ] = None,
209
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
210
+ _content_type: Optional[StrictStr] = None,
211
+ _headers: Optional[Dict[StrictStr, Any]] = None,
212
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
213
+ ) -> RESTResponseType:
214
+ """(Deprecated) Коэффициенты приёмки
215
+
216
+ Метод находится в разделе [Тарифы](/openapi/wb-tariffs#tag/Tarify-na-postavku/paths/~1api~1tariffs~1v1~1acceptance~1coefficients/get) и называется **Тарифы на поставку** `GET /api/tariffs/v1/acceptance/coefficients`. Он доступен по домену `common-api.wildberries.ru` с <a href=\"/openapi/api-information#tag/Avtorizaciya/Kak-sozdat-personalnyj-bazovyj-ili-testovyj-token\">токеном</a> любой категории. Доступ к этому методу с доменом `supplies-api.wildberries.ru` будет отключен [3 февраля](https://dev.wildberries.ru/release-notes?id=370) <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 6 запросов | 10 секунд | 6 запросов | </div>
217
+
218
+ :param warehouse_ids: ID складов.<br>По умолчанию возвращаются данные по всем складам
219
+ :type warehouse_ids: str
220
+ :param _request_timeout: timeout setting for this request. If one
221
+ number provided, it will be total request
222
+ timeout. It can also be a pair (tuple) of
223
+ (connection, read) timeouts.
224
+ :type _request_timeout: int, tuple(int, int), optional
225
+ :param _request_auth: set to override the auth_settings for an a single
226
+ request; this effectively ignores the
227
+ authentication in the spec for a single request.
228
+ :type _request_auth: dict, optional
229
+ :param _content_type: force content-type for the request.
230
+ :type _content_type: str, Optional
231
+ :param _headers: set to override the headers for a single
232
+ request; this effectively ignores the headers
233
+ in the spec for a single request.
234
+ :type _headers: dict, optional
235
+ :param _host_index: set to override the host_index for a single
236
+ request; this effectively ignores the host_index
237
+ in the spec for a single request.
238
+ :type _host_index: int, optional
239
+ :return: Returns the result object.
240
+ """ # noqa: E501
241
+ warnings.warn("GET /api/v1/acceptance/coefficients is deprecated.", DeprecationWarning)
242
+
243
+ _param = self._api_v1_acceptance_coefficients_get_serialize(
244
+ warehouse_ids=warehouse_ids,
245
+ _request_auth=_request_auth,
246
+ _content_type=_content_type,
247
+ _headers=_headers,
248
+ _host_index=_host_index
249
+ )
250
+
251
+ _response_types_map: Dict[str, Optional[str]] = {
252
+ '200': "List[ModelsAcceptanceCoefficient]",
253
+ '400': "ModelsErrorModel",
254
+ '401': "ApiV1AcceptanceCoefficientsGet401Response",
255
+ '403': None,
256
+ '404': None,
257
+ '429': "ApiV1AcceptanceCoefficientsGet401Response",
258
+ }
259
+ response_data = self.api_client.call_api(
260
+ *_param,
261
+ _request_timeout=_request_timeout
262
+ )
263
+ return response_data.response
264
+
265
+
266
+ def _api_v1_acceptance_coefficients_get_serialize(
267
+ self,
268
+ warehouse_ids,
269
+ _request_auth,
270
+ _content_type,
271
+ _headers,
272
+ _host_index,
273
+ ) -> RequestSerialized:
274
+
275
+ _hosts = [
276
+ 'https://supplies-api.wildberries.ru'
277
+ ]
278
+ _host = _hosts[_host_index]
279
+
280
+ _collection_formats: Dict[str, str] = {
281
+ }
282
+
283
+ _path_params: Dict[str, str] = {}
284
+ _query_params: List[Tuple[str, str]] = []
285
+ _header_params: Dict[str, Optional[str]] = _headers or {}
286
+ _form_params: List[Tuple[str, str]] = []
287
+ _files: Dict[
288
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
289
+ ] = {}
290
+ _body_params: Optional[bytes] = None
291
+
292
+ # process the path parameters
293
+ # process the query parameters
294
+ if warehouse_ids is not None:
295
+
296
+ _query_params.append(('warehouseIDs', warehouse_ids))
297
+
298
+ # process the header parameters
299
+ # process the form parameters
300
+ # process the body parameter
301
+
302
+
303
+ # set the HTTP header `Accept`
304
+ if 'Accept' not in _header_params:
305
+ _header_params['Accept'] = self.api_client.select_header_accept(
306
+ [
307
+ 'application/json'
308
+ ]
309
+ )
310
+
311
+
312
+ # authentication setting
313
+ _auth_settings: List[str] = [
314
+ 'HeaderApiKey'
315
+ ]
316
+
317
+ return self.api_client.param_serialize(
318
+ method='GET',
319
+ resource_path='/api/v1/acceptance/coefficients',
320
+ path_params=_path_params,
321
+ query_params=_query_params,
322
+ header_params=_header_params,
323
+ body=_body_params,
324
+ post_params=_form_params,
325
+ files=_files,
326
+ auth_settings=_auth_settings,
327
+ collection_formats=_collection_formats,
328
+ _host=_host,
329
+ _request_auth=_request_auth
330
+ )
331
+
332
+
333
+
334
+
335
+ @validate_call
336
+ def api_v1_acceptance_options_post(
337
+ self,
338
+ models_good: Annotated[List[ModelsGood], Field(max_length=5000)],
339
+ warehouse_id: Annotated[Optional[StrictInt], Field(description="ID склада. <br> Если параметр не указан, возвращаются данные по всем складам.<br> **Максимум одно значение**")] = None,
340
+ _request_timeout: Union[
341
+ None,
342
+ Annotated[StrictFloat, Field(gt=0)],
343
+ Tuple[
344
+ Annotated[StrictFloat, Field(gt=0)],
345
+ Annotated[StrictFloat, Field(gt=0)]
346
+ ]
347
+ ] = None,
348
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
349
+ _content_type: Optional[StrictStr] = None,
350
+ _headers: Optional[Dict[StrictStr, Any]] = None,
351
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
352
+ ) -> ModelsOptionsResultModel:
353
+ """Опции приёмки
354
+
355
+ Метод возвращает информацию о том, какие склады и типы упаковки доступны для поставки. Список складов определяется по баркоду и количеству товара. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 6 запросов | 10 секунд | 6 запросов | </div>
356
+
357
+ :param models_good: (required)
358
+ :type models_good: List[ModelsGood]
359
+ :param warehouse_id: ID склада. <br> Если параметр не указан, возвращаются данные по всем складам.<br> **Максимум одно значение**
360
+ :type warehouse_id: int
361
+ :param _request_timeout: timeout setting for this request. If one
362
+ number provided, it will be total request
363
+ timeout. It can also be a pair (tuple) of
364
+ (connection, read) timeouts.
365
+ :type _request_timeout: int, tuple(int, int), optional
366
+ :param _request_auth: set to override the auth_settings for an a single
367
+ request; this effectively ignores the
368
+ authentication in the spec for a single request.
369
+ :type _request_auth: dict, optional
370
+ :param _content_type: force content-type for the request.
371
+ :type _content_type: str, Optional
372
+ :param _headers: set to override the headers for a single
373
+ request; this effectively ignores the headers
374
+ in the spec for a single request.
375
+ :type _headers: dict, optional
376
+ :param _host_index: set to override the host_index for a single
377
+ request; this effectively ignores the host_index
378
+ in the spec for a single request.
379
+ :type _host_index: int, optional
380
+ :return: Returns the result object.
381
+ """ # noqa: E501
382
+
383
+ _param = self._api_v1_acceptance_options_post_serialize(
384
+ models_good=models_good,
385
+ warehouse_id=warehouse_id,
386
+ _request_auth=_request_auth,
387
+ _content_type=_content_type,
388
+ _headers=_headers,
389
+ _host_index=_host_index
390
+ )
391
+
392
+ _response_types_map: Dict[str, Optional[str]] = {
393
+ '200': "ModelsOptionsResultModel",
394
+ '400': "ModelsErrorModel",
395
+ '401': "ApiV1AcceptanceCoefficientsGet401Response",
396
+ '403': None,
397
+ '404': None,
398
+ '429': "ApiV1AcceptanceCoefficientsGet401Response",
399
+ }
400
+ response_data = self.api_client.call_api(
401
+ *_param,
402
+ _request_timeout=_request_timeout
403
+ )
404
+ response_data.read()
405
+ return self.api_client.response_deserialize(
406
+ response_data=response_data,
407
+ response_types_map=_response_types_map,
408
+ ).data
409
+
410
+
411
+ @validate_call
412
+ def api_v1_acceptance_options_post_with_http_info(
413
+ self,
414
+ models_good: Annotated[List[ModelsGood], Field(max_length=5000)],
415
+ warehouse_id: Annotated[Optional[StrictInt], Field(description="ID склада. <br> Если параметр не указан, возвращаются данные по всем складам.<br> **Максимум одно значение**")] = None,
416
+ _request_timeout: Union[
417
+ None,
418
+ Annotated[StrictFloat, Field(gt=0)],
419
+ Tuple[
420
+ Annotated[StrictFloat, Field(gt=0)],
421
+ Annotated[StrictFloat, Field(gt=0)]
422
+ ]
423
+ ] = None,
424
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
425
+ _content_type: Optional[StrictStr] = None,
426
+ _headers: Optional[Dict[StrictStr, Any]] = None,
427
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
428
+ ) -> ApiResponse[ModelsOptionsResultModel]:
429
+ """Опции приёмки
430
+
431
+ Метод возвращает информацию о том, какие склады и типы упаковки доступны для поставки. Список складов определяется по баркоду и количеству товара. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 6 запросов | 10 секунд | 6 запросов | </div>
432
+
433
+ :param models_good: (required)
434
+ :type models_good: List[ModelsGood]
435
+ :param warehouse_id: ID склада. <br> Если параметр не указан, возвращаются данные по всем складам.<br> **Максимум одно значение**
436
+ :type warehouse_id: int
437
+ :param _request_timeout: timeout setting for this request. If one
438
+ number provided, it will be total request
439
+ timeout. It can also be a pair (tuple) of
440
+ (connection, read) timeouts.
441
+ :type _request_timeout: int, tuple(int, int), optional
442
+ :param _request_auth: set to override the auth_settings for an a single
443
+ request; this effectively ignores the
444
+ authentication in the spec for a single request.
445
+ :type _request_auth: dict, optional
446
+ :param _content_type: force content-type for the request.
447
+ :type _content_type: str, Optional
448
+ :param _headers: set to override the headers for a single
449
+ request; this effectively ignores the headers
450
+ in the spec for a single request.
451
+ :type _headers: dict, optional
452
+ :param _host_index: set to override the host_index for a single
453
+ request; this effectively ignores the host_index
454
+ in the spec for a single request.
455
+ :type _host_index: int, optional
456
+ :return: Returns the result object.
457
+ """ # noqa: E501
458
+
459
+ _param = self._api_v1_acceptance_options_post_serialize(
460
+ models_good=models_good,
461
+ warehouse_id=warehouse_id,
462
+ _request_auth=_request_auth,
463
+ _content_type=_content_type,
464
+ _headers=_headers,
465
+ _host_index=_host_index
466
+ )
467
+
468
+ _response_types_map: Dict[str, Optional[str]] = {
469
+ '200': "ModelsOptionsResultModel",
470
+ '400': "ModelsErrorModel",
471
+ '401': "ApiV1AcceptanceCoefficientsGet401Response",
472
+ '403': None,
473
+ '404': None,
474
+ '429': "ApiV1AcceptanceCoefficientsGet401Response",
475
+ }
476
+ response_data = self.api_client.call_api(
477
+ *_param,
478
+ _request_timeout=_request_timeout
479
+ )
480
+ response_data.read()
481
+ return self.api_client.response_deserialize(
482
+ response_data=response_data,
483
+ response_types_map=_response_types_map,
484
+ )
485
+
486
+
487
+ @validate_call
488
+ def api_v1_acceptance_options_post_without_preload_content(
489
+ self,
490
+ models_good: Annotated[List[ModelsGood], Field(max_length=5000)],
491
+ warehouse_id: Annotated[Optional[StrictInt], Field(description="ID склада. <br> Если параметр не указан, возвращаются данные по всем складам.<br> **Максимум одно значение**")] = None,
492
+ _request_timeout: Union[
493
+ None,
494
+ Annotated[StrictFloat, Field(gt=0)],
495
+ Tuple[
496
+ Annotated[StrictFloat, Field(gt=0)],
497
+ Annotated[StrictFloat, Field(gt=0)]
498
+ ]
499
+ ] = None,
500
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
501
+ _content_type: Optional[StrictStr] = None,
502
+ _headers: Optional[Dict[StrictStr, Any]] = None,
503
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
504
+ ) -> RESTResponseType:
505
+ """Опции приёмки
506
+
507
+ Метод возвращает информацию о том, какие склады и типы упаковки доступны для поставки. Список складов определяется по баркоду и количеству товара. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 6 запросов | 10 секунд | 6 запросов | </div>
508
+
509
+ :param models_good: (required)
510
+ :type models_good: List[ModelsGood]
511
+ :param warehouse_id: ID склада. <br> Если параметр не указан, возвращаются данные по всем складам.<br> **Максимум одно значение**
512
+ :type warehouse_id: int
513
+ :param _request_timeout: timeout setting for this request. If one
514
+ number provided, it will be total request
515
+ timeout. It can also be a pair (tuple) of
516
+ (connection, read) timeouts.
517
+ :type _request_timeout: int, tuple(int, int), optional
518
+ :param _request_auth: set to override the auth_settings for an a single
519
+ request; this effectively ignores the
520
+ authentication in the spec for a single request.
521
+ :type _request_auth: dict, optional
522
+ :param _content_type: force content-type for the request.
523
+ :type _content_type: str, Optional
524
+ :param _headers: set to override the headers for a single
525
+ request; this effectively ignores the headers
526
+ in the spec for a single request.
527
+ :type _headers: dict, optional
528
+ :param _host_index: set to override the host_index for a single
529
+ request; this effectively ignores the host_index
530
+ in the spec for a single request.
531
+ :type _host_index: int, optional
532
+ :return: Returns the result object.
533
+ """ # noqa: E501
534
+
535
+ _param = self._api_v1_acceptance_options_post_serialize(
536
+ models_good=models_good,
537
+ warehouse_id=warehouse_id,
538
+ _request_auth=_request_auth,
539
+ _content_type=_content_type,
540
+ _headers=_headers,
541
+ _host_index=_host_index
542
+ )
543
+
544
+ _response_types_map: Dict[str, Optional[str]] = {
545
+ '200': "ModelsOptionsResultModel",
546
+ '400': "ModelsErrorModel",
547
+ '401': "ApiV1AcceptanceCoefficientsGet401Response",
548
+ '403': None,
549
+ '404': None,
550
+ '429': "ApiV1AcceptanceCoefficientsGet401Response",
551
+ }
552
+ response_data = self.api_client.call_api(
553
+ *_param,
554
+ _request_timeout=_request_timeout
555
+ )
556
+ return response_data.response
557
+
558
+
559
+ def _api_v1_acceptance_options_post_serialize(
560
+ self,
561
+ models_good,
562
+ warehouse_id,
563
+ _request_auth,
564
+ _content_type,
565
+ _headers,
566
+ _host_index,
567
+ ) -> RequestSerialized:
568
+
569
+ _hosts = [
570
+ 'https://supplies-api.wildberries.ru'
571
+ ]
572
+ _host = _hosts[_host_index]
573
+
574
+ _collection_formats: Dict[str, str] = {
575
+ 'ModelsGood': '',
576
+ }
577
+
578
+ _path_params: Dict[str, str] = {}
579
+ _query_params: List[Tuple[str, str]] = []
580
+ _header_params: Dict[str, Optional[str]] = _headers or {}
581
+ _form_params: List[Tuple[str, str]] = []
582
+ _files: Dict[
583
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
584
+ ] = {}
585
+ _body_params: Optional[bytes] = None
586
+
587
+ # process the path parameters
588
+ # process the query parameters
589
+ if warehouse_id is not None:
590
+
591
+ _query_params.append(('warehouseID', warehouse_id))
592
+
593
+ # process the header parameters
594
+ # process the form parameters
595
+ # process the body parameter
596
+ if models_good is not None:
597
+ _body_params = models_good
598
+
599
+
600
+ # set the HTTP header `Accept`
601
+ if 'Accept' not in _header_params:
602
+ _header_params['Accept'] = self.api_client.select_header_accept(
603
+ [
604
+ 'application/json'
605
+ ]
606
+ )
607
+
608
+ # set the HTTP header `Content-Type`
609
+ if _content_type:
610
+ _header_params['Content-Type'] = _content_type
611
+ else:
612
+ _default_content_type = (
613
+ self.api_client.select_header_content_type(
614
+ [
615
+ 'application/json'
616
+ ]
617
+ )
618
+ )
619
+ if _default_content_type is not None:
620
+ _header_params['Content-Type'] = _default_content_type
621
+
622
+ # authentication setting
623
+ _auth_settings: List[str] = [
624
+ 'HeaderApiKey'
625
+ ]
626
+
627
+ return self.api_client.param_serialize(
628
+ method='POST',
629
+ resource_path='/api/v1/acceptance/options',
630
+ path_params=_path_params,
631
+ query_params=_query_params,
632
+ header_params=_header_params,
633
+ body=_body_params,
634
+ post_params=_form_params,
635
+ files=_files,
636
+ auth_settings=_auth_settings,
637
+ collection_formats=_collection_formats,
638
+ _host=_host,
639
+ _request_auth=_request_auth
640
+ )
641
+
642
+
643
+
644
+
645
+ @validate_call
646
+ def api_v1_supplies_id_get(
647
+ self,
648
+ id: Annotated[StrictInt, Field(description="ID поставки или заказа")],
649
+ is_preorder_id: Annotated[Optional[StrictBool], Field(description="Поиск по: - `true` — ID заказа, если в `ID` передаёте ID заказа - `false` — ID поставки, если в `ID` передаёте ID поставки ")] = None,
650
+ _request_timeout: Union[
651
+ None,
652
+ Annotated[StrictFloat, Field(gt=0)],
653
+ Tuple[
654
+ Annotated[StrictFloat, Field(gt=0)],
655
+ Annotated[StrictFloat, Field(gt=0)]
656
+ ]
657
+ ] = None,
658
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
659
+ _content_type: Optional[StrictStr] = None,
660
+ _headers: Optional[Dict[StrictStr, Any]] = None,
661
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
662
+ ) -> ModelsSupplyDetails:
663
+ """Детали поставки
664
+
665
+ Метод возвращает детали поставки по ID. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 30 запросов | 2 секунды | 10 запросов | </div>
666
+
667
+ :param id: ID поставки или заказа (required)
668
+ :type id: int
669
+ :param is_preorder_id: Поиск по: - `true` — ID заказа, если в `ID` передаёте ID заказа - `false` — ID поставки, если в `ID` передаёте ID поставки
670
+ :type is_preorder_id: bool
671
+ :param _request_timeout: timeout setting for this request. If one
672
+ number provided, it will be total request
673
+ timeout. It can also be a pair (tuple) of
674
+ (connection, read) timeouts.
675
+ :type _request_timeout: int, tuple(int, int), optional
676
+ :param _request_auth: set to override the auth_settings for an a single
677
+ request; this effectively ignores the
678
+ authentication in the spec for a single request.
679
+ :type _request_auth: dict, optional
680
+ :param _content_type: force content-type for the request.
681
+ :type _content_type: str, Optional
682
+ :param _headers: set to override the headers for a single
683
+ request; this effectively ignores the headers
684
+ in the spec for a single request.
685
+ :type _headers: dict, optional
686
+ :param _host_index: set to override the host_index for a single
687
+ request; this effectively ignores the host_index
688
+ in the spec for a single request.
689
+ :type _host_index: int, optional
690
+ :return: Returns the result object.
691
+ """ # noqa: E501
692
+
693
+ _param = self._api_v1_supplies_id_get_serialize(
694
+ id=id,
695
+ is_preorder_id=is_preorder_id,
696
+ _request_auth=_request_auth,
697
+ _content_type=_content_type,
698
+ _headers=_headers,
699
+ _host_index=_host_index
700
+ )
701
+
702
+ _response_types_map: Dict[str, Optional[str]] = {
703
+ '200': "ModelsSupplyDetails",
704
+ '400': "ModelsErrorModel",
705
+ '401': "ApiV1AcceptanceCoefficientsGet401Response",
706
+ '404': "ModelsErrorModel",
707
+ '429': "ApiV1AcceptanceCoefficientsGet401Response",
708
+ }
709
+ response_data = self.api_client.call_api(
710
+ *_param,
711
+ _request_timeout=_request_timeout
712
+ )
713
+ response_data.read()
714
+ return self.api_client.response_deserialize(
715
+ response_data=response_data,
716
+ response_types_map=_response_types_map,
717
+ ).data
718
+
719
+
720
+ @validate_call
721
+ def api_v1_supplies_id_get_with_http_info(
722
+ self,
723
+ id: Annotated[StrictInt, Field(description="ID поставки или заказа")],
724
+ is_preorder_id: Annotated[Optional[StrictBool], Field(description="Поиск по: - `true` — ID заказа, если в `ID` передаёте ID заказа - `false` — ID поставки, если в `ID` передаёте ID поставки ")] = None,
725
+ _request_timeout: Union[
726
+ None,
727
+ Annotated[StrictFloat, Field(gt=0)],
728
+ Tuple[
729
+ Annotated[StrictFloat, Field(gt=0)],
730
+ Annotated[StrictFloat, Field(gt=0)]
731
+ ]
732
+ ] = None,
733
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
734
+ _content_type: Optional[StrictStr] = None,
735
+ _headers: Optional[Dict[StrictStr, Any]] = None,
736
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
737
+ ) -> ApiResponse[ModelsSupplyDetails]:
738
+ """Детали поставки
739
+
740
+ Метод возвращает детали поставки по ID. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 30 запросов | 2 секунды | 10 запросов | </div>
741
+
742
+ :param id: ID поставки или заказа (required)
743
+ :type id: int
744
+ :param is_preorder_id: Поиск по: - `true` — ID заказа, если в `ID` передаёте ID заказа - `false` — ID поставки, если в `ID` передаёте ID поставки
745
+ :type is_preorder_id: bool
746
+ :param _request_timeout: timeout setting for this request. If one
747
+ number provided, it will be total request
748
+ timeout. It can also be a pair (tuple) of
749
+ (connection, read) timeouts.
750
+ :type _request_timeout: int, tuple(int, int), optional
751
+ :param _request_auth: set to override the auth_settings for an a single
752
+ request; this effectively ignores the
753
+ authentication in the spec for a single request.
754
+ :type _request_auth: dict, optional
755
+ :param _content_type: force content-type for the request.
756
+ :type _content_type: str, Optional
757
+ :param _headers: set to override the headers for a single
758
+ request; this effectively ignores the headers
759
+ in the spec for a single request.
760
+ :type _headers: dict, optional
761
+ :param _host_index: set to override the host_index for a single
762
+ request; this effectively ignores the host_index
763
+ in the spec for a single request.
764
+ :type _host_index: int, optional
765
+ :return: Returns the result object.
766
+ """ # noqa: E501
767
+
768
+ _param = self._api_v1_supplies_id_get_serialize(
769
+ id=id,
770
+ is_preorder_id=is_preorder_id,
771
+ _request_auth=_request_auth,
772
+ _content_type=_content_type,
773
+ _headers=_headers,
774
+ _host_index=_host_index
775
+ )
776
+
777
+ _response_types_map: Dict[str, Optional[str]] = {
778
+ '200': "ModelsSupplyDetails",
779
+ '400': "ModelsErrorModel",
780
+ '401': "ApiV1AcceptanceCoefficientsGet401Response",
781
+ '404': "ModelsErrorModel",
782
+ '429': "ApiV1AcceptanceCoefficientsGet401Response",
783
+ }
784
+ response_data = self.api_client.call_api(
785
+ *_param,
786
+ _request_timeout=_request_timeout
787
+ )
788
+ response_data.read()
789
+ return self.api_client.response_deserialize(
790
+ response_data=response_data,
791
+ response_types_map=_response_types_map,
792
+ )
793
+
794
+
795
+ @validate_call
796
+ def api_v1_supplies_id_get_without_preload_content(
797
+ self,
798
+ id: Annotated[StrictInt, Field(description="ID поставки или заказа")],
799
+ is_preorder_id: Annotated[Optional[StrictBool], Field(description="Поиск по: - `true` — ID заказа, если в `ID` передаёте ID заказа - `false` — ID поставки, если в `ID` передаёте ID поставки ")] = None,
800
+ _request_timeout: Union[
801
+ None,
802
+ Annotated[StrictFloat, Field(gt=0)],
803
+ Tuple[
804
+ Annotated[StrictFloat, Field(gt=0)],
805
+ Annotated[StrictFloat, Field(gt=0)]
806
+ ]
807
+ ] = None,
808
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
809
+ _content_type: Optional[StrictStr] = None,
810
+ _headers: Optional[Dict[StrictStr, Any]] = None,
811
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
812
+ ) -> RESTResponseType:
813
+ """Детали поставки
814
+
815
+ Метод возвращает детали поставки по ID. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 30 запросов | 2 секунды | 10 запросов | </div>
816
+
817
+ :param id: ID поставки или заказа (required)
818
+ :type id: int
819
+ :param is_preorder_id: Поиск по: - `true` — ID заказа, если в `ID` передаёте ID заказа - `false` — ID поставки, если в `ID` передаёте ID поставки
820
+ :type is_preorder_id: bool
821
+ :param _request_timeout: timeout setting for this request. If one
822
+ number provided, it will be total request
823
+ timeout. It can also be a pair (tuple) of
824
+ (connection, read) timeouts.
825
+ :type _request_timeout: int, tuple(int, int), optional
826
+ :param _request_auth: set to override the auth_settings for an a single
827
+ request; this effectively ignores the
828
+ authentication in the spec for a single request.
829
+ :type _request_auth: dict, optional
830
+ :param _content_type: force content-type for the request.
831
+ :type _content_type: str, Optional
832
+ :param _headers: set to override the headers for a single
833
+ request; this effectively ignores the headers
834
+ in the spec for a single request.
835
+ :type _headers: dict, optional
836
+ :param _host_index: set to override the host_index for a single
837
+ request; this effectively ignores the host_index
838
+ in the spec for a single request.
839
+ :type _host_index: int, optional
840
+ :return: Returns the result object.
841
+ """ # noqa: E501
842
+
843
+ _param = self._api_v1_supplies_id_get_serialize(
844
+ id=id,
845
+ is_preorder_id=is_preorder_id,
846
+ _request_auth=_request_auth,
847
+ _content_type=_content_type,
848
+ _headers=_headers,
849
+ _host_index=_host_index
850
+ )
851
+
852
+ _response_types_map: Dict[str, Optional[str]] = {
853
+ '200': "ModelsSupplyDetails",
854
+ '400': "ModelsErrorModel",
855
+ '401': "ApiV1AcceptanceCoefficientsGet401Response",
856
+ '404': "ModelsErrorModel",
857
+ '429': "ApiV1AcceptanceCoefficientsGet401Response",
858
+ }
859
+ response_data = self.api_client.call_api(
860
+ *_param,
861
+ _request_timeout=_request_timeout
862
+ )
863
+ return response_data.response
864
+
865
+
866
+ def _api_v1_supplies_id_get_serialize(
867
+ self,
868
+ id,
869
+ is_preorder_id,
870
+ _request_auth,
871
+ _content_type,
872
+ _headers,
873
+ _host_index,
874
+ ) -> RequestSerialized:
875
+
876
+ _hosts = [
877
+ 'https://supplies-api.wildberries.ru'
878
+ ]
879
+ _host = _hosts[_host_index]
880
+
881
+ _collection_formats: Dict[str, str] = {
882
+ }
883
+
884
+ _path_params: Dict[str, str] = {}
885
+ _query_params: List[Tuple[str, str]] = []
886
+ _header_params: Dict[str, Optional[str]] = _headers or {}
887
+ _form_params: List[Tuple[str, str]] = []
888
+ _files: Dict[
889
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
890
+ ] = {}
891
+ _body_params: Optional[bytes] = None
892
+
893
+ # process the path parameters
894
+ if id is not None:
895
+ _path_params['ID'] = id
896
+ # process the query parameters
897
+ if is_preorder_id is not None:
898
+
899
+ _query_params.append(('isPreorderID', is_preorder_id))
900
+
901
+ # process the header parameters
902
+ # process the form parameters
903
+ # process the body parameter
904
+
905
+
906
+ # set the HTTP header `Accept`
907
+ if 'Accept' not in _header_params:
908
+ _header_params['Accept'] = self.api_client.select_header_accept(
909
+ [
910
+ 'application/json'
911
+ ]
912
+ )
913
+
914
+
915
+ # authentication setting
916
+ _auth_settings: List[str] = [
917
+ 'HeaderApiKey'
918
+ ]
919
+
920
+ return self.api_client.param_serialize(
921
+ method='GET',
922
+ resource_path='/api/v1/supplies/{ID}',
923
+ path_params=_path_params,
924
+ query_params=_query_params,
925
+ header_params=_header_params,
926
+ body=_body_params,
927
+ post_params=_form_params,
928
+ files=_files,
929
+ auth_settings=_auth_settings,
930
+ collection_formats=_collection_formats,
931
+ _host=_host,
932
+ _request_auth=_request_auth
933
+ )
934
+
935
+
936
+
937
+
938
+ @validate_call
939
+ def api_v1_supplies_id_goods_get(
940
+ self,
941
+ id: Annotated[StrictInt, Field(description="ID поставки или заказа")],
942
+ limit: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]], Field(description="Количество записей в ответе")] = None,
943
+ offset: Annotated[Optional[StrictInt], Field(description="После какого элемента выдавать данные")] = None,
944
+ is_preorder_id: Annotated[Optional[StrictBool], Field(description="Поиск по: - `true` — ID заказа, если в `ID` передаёте ID заказа - `false` — ID поставки, если в `ID` передаёте ID поставки ")] = None,
945
+ _request_timeout: Union[
946
+ None,
947
+ Annotated[StrictFloat, Field(gt=0)],
948
+ Tuple[
949
+ Annotated[StrictFloat, Field(gt=0)],
950
+ Annotated[StrictFloat, Field(gt=0)]
951
+ ]
952
+ ] = None,
953
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
954
+ _content_type: Optional[StrictStr] = None,
955
+ _headers: Optional[Dict[StrictStr, Any]] = None,
956
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
957
+ ) -> List[ModelsGoodInSupply]:
958
+ """Товары поставки
959
+
960
+ Метод возвращает информацию о товарах в поставке. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 30 запросов | 2 секунды | 10 запросов | </div>
961
+
962
+ :param id: ID поставки или заказа (required)
963
+ :type id: int
964
+ :param limit: Количество записей в ответе
965
+ :type limit: int
966
+ :param offset: После какого элемента выдавать данные
967
+ :type offset: int
968
+ :param is_preorder_id: Поиск по: - `true` — ID заказа, если в `ID` передаёте ID заказа - `false` — ID поставки, если в `ID` передаёте ID поставки
969
+ :type is_preorder_id: bool
970
+ :param _request_timeout: timeout setting for this request. If one
971
+ number provided, it will be total request
972
+ timeout. It can also be a pair (tuple) of
973
+ (connection, read) timeouts.
974
+ :type _request_timeout: int, tuple(int, int), optional
975
+ :param _request_auth: set to override the auth_settings for an a single
976
+ request; this effectively ignores the
977
+ authentication in the spec for a single request.
978
+ :type _request_auth: dict, optional
979
+ :param _content_type: force content-type for the request.
980
+ :type _content_type: str, Optional
981
+ :param _headers: set to override the headers for a single
982
+ request; this effectively ignores the headers
983
+ in the spec for a single request.
984
+ :type _headers: dict, optional
985
+ :param _host_index: set to override the host_index for a single
986
+ request; this effectively ignores the host_index
987
+ in the spec for a single request.
988
+ :type _host_index: int, optional
989
+ :return: Returns the result object.
990
+ """ # noqa: E501
991
+
992
+ _param = self._api_v1_supplies_id_goods_get_serialize(
993
+ id=id,
994
+ limit=limit,
995
+ offset=offset,
996
+ is_preorder_id=is_preorder_id,
997
+ _request_auth=_request_auth,
998
+ _content_type=_content_type,
999
+ _headers=_headers,
1000
+ _host_index=_host_index
1001
+ )
1002
+
1003
+ _response_types_map: Dict[str, Optional[str]] = {
1004
+ '200': "List[ModelsGoodInSupply]",
1005
+ '400': "ModelsErrorModel",
1006
+ '401': "ApiV1AcceptanceCoefficientsGet401Response",
1007
+ '429': "ApiV1AcceptanceCoefficientsGet401Response",
1008
+ }
1009
+ response_data = self.api_client.call_api(
1010
+ *_param,
1011
+ _request_timeout=_request_timeout
1012
+ )
1013
+ response_data.read()
1014
+ return self.api_client.response_deserialize(
1015
+ response_data=response_data,
1016
+ response_types_map=_response_types_map,
1017
+ ).data
1018
+
1019
+
1020
+ @validate_call
1021
+ def api_v1_supplies_id_goods_get_with_http_info(
1022
+ self,
1023
+ id: Annotated[StrictInt, Field(description="ID поставки или заказа")],
1024
+ limit: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]], Field(description="Количество записей в ответе")] = None,
1025
+ offset: Annotated[Optional[StrictInt], Field(description="После какого элемента выдавать данные")] = None,
1026
+ is_preorder_id: Annotated[Optional[StrictBool], Field(description="Поиск по: - `true` — ID заказа, если в `ID` передаёте ID заказа - `false` — ID поставки, если в `ID` передаёте ID поставки ")] = None,
1027
+ _request_timeout: Union[
1028
+ None,
1029
+ Annotated[StrictFloat, Field(gt=0)],
1030
+ Tuple[
1031
+ Annotated[StrictFloat, Field(gt=0)],
1032
+ Annotated[StrictFloat, Field(gt=0)]
1033
+ ]
1034
+ ] = None,
1035
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1036
+ _content_type: Optional[StrictStr] = None,
1037
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1038
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
1039
+ ) -> ApiResponse[List[ModelsGoodInSupply]]:
1040
+ """Товары поставки
1041
+
1042
+ Метод возвращает информацию о товарах в поставке. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 30 запросов | 2 секунды | 10 запросов | </div>
1043
+
1044
+ :param id: ID поставки или заказа (required)
1045
+ :type id: int
1046
+ :param limit: Количество записей в ответе
1047
+ :type limit: int
1048
+ :param offset: После какого элемента выдавать данные
1049
+ :type offset: int
1050
+ :param is_preorder_id: Поиск по: - `true` — ID заказа, если в `ID` передаёте ID заказа - `false` — ID поставки, если в `ID` передаёте ID поставки
1051
+ :type is_preorder_id: bool
1052
+ :param _request_timeout: timeout setting for this request. If one
1053
+ number provided, it will be total request
1054
+ timeout. It can also be a pair (tuple) of
1055
+ (connection, read) timeouts.
1056
+ :type _request_timeout: int, tuple(int, int), optional
1057
+ :param _request_auth: set to override the auth_settings for an a single
1058
+ request; this effectively ignores the
1059
+ authentication in the spec for a single request.
1060
+ :type _request_auth: dict, optional
1061
+ :param _content_type: force content-type for the request.
1062
+ :type _content_type: str, Optional
1063
+ :param _headers: set to override the headers for a single
1064
+ request; this effectively ignores the headers
1065
+ in the spec for a single request.
1066
+ :type _headers: dict, optional
1067
+ :param _host_index: set to override the host_index for a single
1068
+ request; this effectively ignores the host_index
1069
+ in the spec for a single request.
1070
+ :type _host_index: int, optional
1071
+ :return: Returns the result object.
1072
+ """ # noqa: E501
1073
+
1074
+ _param = self._api_v1_supplies_id_goods_get_serialize(
1075
+ id=id,
1076
+ limit=limit,
1077
+ offset=offset,
1078
+ is_preorder_id=is_preorder_id,
1079
+ _request_auth=_request_auth,
1080
+ _content_type=_content_type,
1081
+ _headers=_headers,
1082
+ _host_index=_host_index
1083
+ )
1084
+
1085
+ _response_types_map: Dict[str, Optional[str]] = {
1086
+ '200': "List[ModelsGoodInSupply]",
1087
+ '400': "ModelsErrorModel",
1088
+ '401': "ApiV1AcceptanceCoefficientsGet401Response",
1089
+ '429': "ApiV1AcceptanceCoefficientsGet401Response",
1090
+ }
1091
+ response_data = self.api_client.call_api(
1092
+ *_param,
1093
+ _request_timeout=_request_timeout
1094
+ )
1095
+ response_data.read()
1096
+ return self.api_client.response_deserialize(
1097
+ response_data=response_data,
1098
+ response_types_map=_response_types_map,
1099
+ )
1100
+
1101
+
1102
+ @validate_call
1103
+ def api_v1_supplies_id_goods_get_without_preload_content(
1104
+ self,
1105
+ id: Annotated[StrictInt, Field(description="ID поставки или заказа")],
1106
+ limit: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]], Field(description="Количество записей в ответе")] = None,
1107
+ offset: Annotated[Optional[StrictInt], Field(description="После какого элемента выдавать данные")] = None,
1108
+ is_preorder_id: Annotated[Optional[StrictBool], Field(description="Поиск по: - `true` — ID заказа, если в `ID` передаёте ID заказа - `false` — ID поставки, если в `ID` передаёте ID поставки ")] = None,
1109
+ _request_timeout: Union[
1110
+ None,
1111
+ Annotated[StrictFloat, Field(gt=0)],
1112
+ Tuple[
1113
+ Annotated[StrictFloat, Field(gt=0)],
1114
+ Annotated[StrictFloat, Field(gt=0)]
1115
+ ]
1116
+ ] = None,
1117
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1118
+ _content_type: Optional[StrictStr] = None,
1119
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1120
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
1121
+ ) -> RESTResponseType:
1122
+ """Товары поставки
1123
+
1124
+ Метод возвращает информацию о товарах в поставке. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 30 запросов | 2 секунды | 10 запросов | </div>
1125
+
1126
+ :param id: ID поставки или заказа (required)
1127
+ :type id: int
1128
+ :param limit: Количество записей в ответе
1129
+ :type limit: int
1130
+ :param offset: После какого элемента выдавать данные
1131
+ :type offset: int
1132
+ :param is_preorder_id: Поиск по: - `true` — ID заказа, если в `ID` передаёте ID заказа - `false` — ID поставки, если в `ID` передаёте ID поставки
1133
+ :type is_preorder_id: bool
1134
+ :param _request_timeout: timeout setting for this request. If one
1135
+ number provided, it will be total request
1136
+ timeout. It can also be a pair (tuple) of
1137
+ (connection, read) timeouts.
1138
+ :type _request_timeout: int, tuple(int, int), optional
1139
+ :param _request_auth: set to override the auth_settings for an a single
1140
+ request; this effectively ignores the
1141
+ authentication in the spec for a single request.
1142
+ :type _request_auth: dict, optional
1143
+ :param _content_type: force content-type for the request.
1144
+ :type _content_type: str, Optional
1145
+ :param _headers: set to override the headers for a single
1146
+ request; this effectively ignores the headers
1147
+ in the spec for a single request.
1148
+ :type _headers: dict, optional
1149
+ :param _host_index: set to override the host_index for a single
1150
+ request; this effectively ignores the host_index
1151
+ in the spec for a single request.
1152
+ :type _host_index: int, optional
1153
+ :return: Returns the result object.
1154
+ """ # noqa: E501
1155
+
1156
+ _param = self._api_v1_supplies_id_goods_get_serialize(
1157
+ id=id,
1158
+ limit=limit,
1159
+ offset=offset,
1160
+ is_preorder_id=is_preorder_id,
1161
+ _request_auth=_request_auth,
1162
+ _content_type=_content_type,
1163
+ _headers=_headers,
1164
+ _host_index=_host_index
1165
+ )
1166
+
1167
+ _response_types_map: Dict[str, Optional[str]] = {
1168
+ '200': "List[ModelsGoodInSupply]",
1169
+ '400': "ModelsErrorModel",
1170
+ '401': "ApiV1AcceptanceCoefficientsGet401Response",
1171
+ '429': "ApiV1AcceptanceCoefficientsGet401Response",
1172
+ }
1173
+ response_data = self.api_client.call_api(
1174
+ *_param,
1175
+ _request_timeout=_request_timeout
1176
+ )
1177
+ return response_data.response
1178
+
1179
+
1180
+ def _api_v1_supplies_id_goods_get_serialize(
1181
+ self,
1182
+ id,
1183
+ limit,
1184
+ offset,
1185
+ is_preorder_id,
1186
+ _request_auth,
1187
+ _content_type,
1188
+ _headers,
1189
+ _host_index,
1190
+ ) -> RequestSerialized:
1191
+
1192
+ _hosts = [
1193
+ 'https://supplies-api.wildberries.ru'
1194
+ ]
1195
+ _host = _hosts[_host_index]
1196
+
1197
+ _collection_formats: Dict[str, str] = {
1198
+ }
1199
+
1200
+ _path_params: Dict[str, str] = {}
1201
+ _query_params: List[Tuple[str, str]] = []
1202
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1203
+ _form_params: List[Tuple[str, str]] = []
1204
+ _files: Dict[
1205
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1206
+ ] = {}
1207
+ _body_params: Optional[bytes] = None
1208
+
1209
+ # process the path parameters
1210
+ if id is not None:
1211
+ _path_params['ID'] = id
1212
+ # process the query parameters
1213
+ if limit is not None:
1214
+
1215
+ _query_params.append(('limit', limit))
1216
+
1217
+ if offset is not None:
1218
+
1219
+ _query_params.append(('offset', offset))
1220
+
1221
+ if is_preorder_id is not None:
1222
+
1223
+ _query_params.append(('isPreorderID', is_preorder_id))
1224
+
1225
+ # process the header parameters
1226
+ # process the form parameters
1227
+ # process the body parameter
1228
+
1229
+
1230
+ # set the HTTP header `Accept`
1231
+ if 'Accept' not in _header_params:
1232
+ _header_params['Accept'] = self.api_client.select_header_accept(
1233
+ [
1234
+ 'application/json'
1235
+ ]
1236
+ )
1237
+
1238
+
1239
+ # authentication setting
1240
+ _auth_settings: List[str] = [
1241
+ 'HeaderApiKey'
1242
+ ]
1243
+
1244
+ return self.api_client.param_serialize(
1245
+ method='GET',
1246
+ resource_path='/api/v1/supplies/{ID}/goods',
1247
+ path_params=_path_params,
1248
+ query_params=_query_params,
1249
+ header_params=_header_params,
1250
+ body=_body_params,
1251
+ post_params=_form_params,
1252
+ files=_files,
1253
+ auth_settings=_auth_settings,
1254
+ collection_formats=_collection_formats,
1255
+ _host=_host,
1256
+ _request_auth=_request_auth
1257
+ )
1258
+
1259
+
1260
+
1261
+
1262
+ @validate_call
1263
+ def api_v1_supplies_id_package_get(
1264
+ self,
1265
+ id: Annotated[StrictInt, Field(description="ID поставки")],
1266
+ _request_timeout: Union[
1267
+ None,
1268
+ Annotated[StrictFloat, Field(gt=0)],
1269
+ Tuple[
1270
+ Annotated[StrictFloat, Field(gt=0)],
1271
+ Annotated[StrictFloat, Field(gt=0)]
1272
+ ]
1273
+ ] = None,
1274
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1275
+ _content_type: Optional[StrictStr] = None,
1276
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1277
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
1278
+ ) -> List[ModelsBox]:
1279
+ """Упаковка поставки
1280
+
1281
+ Метод возвращает информацию об упаковке поставки. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 30 запросов | 2 секунды | 10 запросов | </div>
1282
+
1283
+ :param id: ID поставки (required)
1284
+ :type id: int
1285
+ :param _request_timeout: timeout setting for this request. If one
1286
+ number provided, it will be total request
1287
+ timeout. It can also be a pair (tuple) of
1288
+ (connection, read) timeouts.
1289
+ :type _request_timeout: int, tuple(int, int), optional
1290
+ :param _request_auth: set to override the auth_settings for an a single
1291
+ request; this effectively ignores the
1292
+ authentication in the spec for a single request.
1293
+ :type _request_auth: dict, optional
1294
+ :param _content_type: force content-type for the request.
1295
+ :type _content_type: str, Optional
1296
+ :param _headers: set to override the headers for a single
1297
+ request; this effectively ignores the headers
1298
+ in the spec for a single request.
1299
+ :type _headers: dict, optional
1300
+ :param _host_index: set to override the host_index for a single
1301
+ request; this effectively ignores the host_index
1302
+ in the spec for a single request.
1303
+ :type _host_index: int, optional
1304
+ :return: Returns the result object.
1305
+ """ # noqa: E501
1306
+
1307
+ _param = self._api_v1_supplies_id_package_get_serialize(
1308
+ id=id,
1309
+ _request_auth=_request_auth,
1310
+ _content_type=_content_type,
1311
+ _headers=_headers,
1312
+ _host_index=_host_index
1313
+ )
1314
+
1315
+ _response_types_map: Dict[str, Optional[str]] = {
1316
+ '200': "List[ModelsBox]",
1317
+ '400': "ModelsErrorModel",
1318
+ '401': "ApiV1AcceptanceCoefficientsGet401Response",
1319
+ '429': "ApiV1AcceptanceCoefficientsGet401Response",
1320
+ }
1321
+ response_data = self.api_client.call_api(
1322
+ *_param,
1323
+ _request_timeout=_request_timeout
1324
+ )
1325
+ response_data.read()
1326
+ return self.api_client.response_deserialize(
1327
+ response_data=response_data,
1328
+ response_types_map=_response_types_map,
1329
+ ).data
1330
+
1331
+
1332
+ @validate_call
1333
+ def api_v1_supplies_id_package_get_with_http_info(
1334
+ self,
1335
+ id: Annotated[StrictInt, Field(description="ID поставки")],
1336
+ _request_timeout: Union[
1337
+ None,
1338
+ Annotated[StrictFloat, Field(gt=0)],
1339
+ Tuple[
1340
+ Annotated[StrictFloat, Field(gt=0)],
1341
+ Annotated[StrictFloat, Field(gt=0)]
1342
+ ]
1343
+ ] = None,
1344
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1345
+ _content_type: Optional[StrictStr] = None,
1346
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1347
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
1348
+ ) -> ApiResponse[List[ModelsBox]]:
1349
+ """Упаковка поставки
1350
+
1351
+ Метод возвращает информацию об упаковке поставки. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 30 запросов | 2 секунды | 10 запросов | </div>
1352
+
1353
+ :param id: ID поставки (required)
1354
+ :type id: int
1355
+ :param _request_timeout: timeout setting for this request. If one
1356
+ number provided, it will be total request
1357
+ timeout. It can also be a pair (tuple) of
1358
+ (connection, read) timeouts.
1359
+ :type _request_timeout: int, tuple(int, int), optional
1360
+ :param _request_auth: set to override the auth_settings for an a single
1361
+ request; this effectively ignores the
1362
+ authentication in the spec for a single request.
1363
+ :type _request_auth: dict, optional
1364
+ :param _content_type: force content-type for the request.
1365
+ :type _content_type: str, Optional
1366
+ :param _headers: set to override the headers for a single
1367
+ request; this effectively ignores the headers
1368
+ in the spec for a single request.
1369
+ :type _headers: dict, optional
1370
+ :param _host_index: set to override the host_index for a single
1371
+ request; this effectively ignores the host_index
1372
+ in the spec for a single request.
1373
+ :type _host_index: int, optional
1374
+ :return: Returns the result object.
1375
+ """ # noqa: E501
1376
+
1377
+ _param = self._api_v1_supplies_id_package_get_serialize(
1378
+ id=id,
1379
+ _request_auth=_request_auth,
1380
+ _content_type=_content_type,
1381
+ _headers=_headers,
1382
+ _host_index=_host_index
1383
+ )
1384
+
1385
+ _response_types_map: Dict[str, Optional[str]] = {
1386
+ '200': "List[ModelsBox]",
1387
+ '400': "ModelsErrorModel",
1388
+ '401': "ApiV1AcceptanceCoefficientsGet401Response",
1389
+ '429': "ApiV1AcceptanceCoefficientsGet401Response",
1390
+ }
1391
+ response_data = self.api_client.call_api(
1392
+ *_param,
1393
+ _request_timeout=_request_timeout
1394
+ )
1395
+ response_data.read()
1396
+ return self.api_client.response_deserialize(
1397
+ response_data=response_data,
1398
+ response_types_map=_response_types_map,
1399
+ )
1400
+
1401
+
1402
+ @validate_call
1403
+ def api_v1_supplies_id_package_get_without_preload_content(
1404
+ self,
1405
+ id: Annotated[StrictInt, Field(description="ID поставки")],
1406
+ _request_timeout: Union[
1407
+ None,
1408
+ Annotated[StrictFloat, Field(gt=0)],
1409
+ Tuple[
1410
+ Annotated[StrictFloat, Field(gt=0)],
1411
+ Annotated[StrictFloat, Field(gt=0)]
1412
+ ]
1413
+ ] = None,
1414
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1415
+ _content_type: Optional[StrictStr] = None,
1416
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1417
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
1418
+ ) -> RESTResponseType:
1419
+ """Упаковка поставки
1420
+
1421
+ Метод возвращает информацию об упаковке поставки. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 30 запросов | 2 секунды | 10 запросов | </div>
1422
+
1423
+ :param id: ID поставки (required)
1424
+ :type id: int
1425
+ :param _request_timeout: timeout setting for this request. If one
1426
+ number provided, it will be total request
1427
+ timeout. It can also be a pair (tuple) of
1428
+ (connection, read) timeouts.
1429
+ :type _request_timeout: int, tuple(int, int), optional
1430
+ :param _request_auth: set to override the auth_settings for an a single
1431
+ request; this effectively ignores the
1432
+ authentication in the spec for a single request.
1433
+ :type _request_auth: dict, optional
1434
+ :param _content_type: force content-type for the request.
1435
+ :type _content_type: str, Optional
1436
+ :param _headers: set to override the headers for a single
1437
+ request; this effectively ignores the headers
1438
+ in the spec for a single request.
1439
+ :type _headers: dict, optional
1440
+ :param _host_index: set to override the host_index for a single
1441
+ request; this effectively ignores the host_index
1442
+ in the spec for a single request.
1443
+ :type _host_index: int, optional
1444
+ :return: Returns the result object.
1445
+ """ # noqa: E501
1446
+
1447
+ _param = self._api_v1_supplies_id_package_get_serialize(
1448
+ id=id,
1449
+ _request_auth=_request_auth,
1450
+ _content_type=_content_type,
1451
+ _headers=_headers,
1452
+ _host_index=_host_index
1453
+ )
1454
+
1455
+ _response_types_map: Dict[str, Optional[str]] = {
1456
+ '200': "List[ModelsBox]",
1457
+ '400': "ModelsErrorModel",
1458
+ '401': "ApiV1AcceptanceCoefficientsGet401Response",
1459
+ '429': "ApiV1AcceptanceCoefficientsGet401Response",
1460
+ }
1461
+ response_data = self.api_client.call_api(
1462
+ *_param,
1463
+ _request_timeout=_request_timeout
1464
+ )
1465
+ return response_data.response
1466
+
1467
+
1468
+ def _api_v1_supplies_id_package_get_serialize(
1469
+ self,
1470
+ id,
1471
+ _request_auth,
1472
+ _content_type,
1473
+ _headers,
1474
+ _host_index,
1475
+ ) -> RequestSerialized:
1476
+
1477
+ _hosts = [
1478
+ 'https://supplies-api.wildberries.ru'
1479
+ ]
1480
+ _host = _hosts[_host_index]
1481
+
1482
+ _collection_formats: Dict[str, str] = {
1483
+ }
1484
+
1485
+ _path_params: Dict[str, str] = {}
1486
+ _query_params: List[Tuple[str, str]] = []
1487
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1488
+ _form_params: List[Tuple[str, str]] = []
1489
+ _files: Dict[
1490
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1491
+ ] = {}
1492
+ _body_params: Optional[bytes] = None
1493
+
1494
+ # process the path parameters
1495
+ if id is not None:
1496
+ _path_params['ID'] = id
1497
+ # process the query parameters
1498
+ # process the header parameters
1499
+ # process the form parameters
1500
+ # process the body parameter
1501
+
1502
+
1503
+ # set the HTTP header `Accept`
1504
+ if 'Accept' not in _header_params:
1505
+ _header_params['Accept'] = self.api_client.select_header_accept(
1506
+ [
1507
+ 'application/json'
1508
+ ]
1509
+ )
1510
+
1511
+
1512
+ # authentication setting
1513
+ _auth_settings: List[str] = [
1514
+ 'HeaderApiKey'
1515
+ ]
1516
+
1517
+ return self.api_client.param_serialize(
1518
+ method='GET',
1519
+ resource_path='/api/v1/supplies/{ID}/package',
1520
+ path_params=_path_params,
1521
+ query_params=_query_params,
1522
+ header_params=_header_params,
1523
+ body=_body_params,
1524
+ post_params=_form_params,
1525
+ files=_files,
1526
+ auth_settings=_auth_settings,
1527
+ collection_formats=_collection_formats,
1528
+ _host=_host,
1529
+ _request_auth=_request_auth
1530
+ )
1531
+
1532
+
1533
+
1534
+
1535
+ @validate_call
1536
+ def api_v1_supplies_post(
1537
+ self,
1538
+ models_supplies_filters_request: ModelsSuppliesFiltersRequest,
1539
+ limit: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]], Field(description="Количество записей в ответе")] = None,
1540
+ offset: Annotated[Optional[StrictInt], Field(description="После какого элемента выдавать данные")] = None,
1541
+ _request_timeout: Union[
1542
+ None,
1543
+ Annotated[StrictFloat, Field(gt=0)],
1544
+ Tuple[
1545
+ Annotated[StrictFloat, Field(gt=0)],
1546
+ Annotated[StrictFloat, Field(gt=0)]
1547
+ ]
1548
+ ] = None,
1549
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1550
+ _content_type: Optional[StrictStr] = None,
1551
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1552
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
1553
+ ) -> List[ModelsSupply]:
1554
+ """Список поставок
1555
+
1556
+ Метод возвращает список поставок, по умолчанию — последние 1000 поставок. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 30 запросов | 2 секунды | 10 запросов | </div>
1557
+
1558
+ :param models_supplies_filters_request: (required)
1559
+ :type models_supplies_filters_request: ModelsSuppliesFiltersRequest
1560
+ :param limit: Количество записей в ответе
1561
+ :type limit: int
1562
+ :param offset: После какого элемента выдавать данные
1563
+ :type offset: int
1564
+ :param _request_timeout: timeout setting for this request. If one
1565
+ number provided, it will be total request
1566
+ timeout. It can also be a pair (tuple) of
1567
+ (connection, read) timeouts.
1568
+ :type _request_timeout: int, tuple(int, int), optional
1569
+ :param _request_auth: set to override the auth_settings for an a single
1570
+ request; this effectively ignores the
1571
+ authentication in the spec for a single request.
1572
+ :type _request_auth: dict, optional
1573
+ :param _content_type: force content-type for the request.
1574
+ :type _content_type: str, Optional
1575
+ :param _headers: set to override the headers for a single
1576
+ request; this effectively ignores the headers
1577
+ in the spec for a single request.
1578
+ :type _headers: dict, optional
1579
+ :param _host_index: set to override the host_index for a single
1580
+ request; this effectively ignores the host_index
1581
+ in the spec for a single request.
1582
+ :type _host_index: int, optional
1583
+ :return: Returns the result object.
1584
+ """ # noqa: E501
1585
+
1586
+ _param = self._api_v1_supplies_post_serialize(
1587
+ models_supplies_filters_request=models_supplies_filters_request,
1588
+ limit=limit,
1589
+ offset=offset,
1590
+ _request_auth=_request_auth,
1591
+ _content_type=_content_type,
1592
+ _headers=_headers,
1593
+ _host_index=_host_index
1594
+ )
1595
+
1596
+ _response_types_map: Dict[str, Optional[str]] = {
1597
+ '200': "List[ModelsSupply]",
1598
+ '400': "ModelsErrorModel",
1599
+ '401': "ApiV1AcceptanceCoefficientsGet401Response",
1600
+ '429': "ApiV1AcceptanceCoefficientsGet401Response",
1601
+ }
1602
+ response_data = self.api_client.call_api(
1603
+ *_param,
1604
+ _request_timeout=_request_timeout
1605
+ )
1606
+ response_data.read()
1607
+ return self.api_client.response_deserialize(
1608
+ response_data=response_data,
1609
+ response_types_map=_response_types_map,
1610
+ ).data
1611
+
1612
+
1613
+ @validate_call
1614
+ def api_v1_supplies_post_with_http_info(
1615
+ self,
1616
+ models_supplies_filters_request: ModelsSuppliesFiltersRequest,
1617
+ limit: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]], Field(description="Количество записей в ответе")] = None,
1618
+ offset: Annotated[Optional[StrictInt], Field(description="После какого элемента выдавать данные")] = None,
1619
+ _request_timeout: Union[
1620
+ None,
1621
+ Annotated[StrictFloat, Field(gt=0)],
1622
+ Tuple[
1623
+ Annotated[StrictFloat, Field(gt=0)],
1624
+ Annotated[StrictFloat, Field(gt=0)]
1625
+ ]
1626
+ ] = None,
1627
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1628
+ _content_type: Optional[StrictStr] = None,
1629
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1630
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
1631
+ ) -> ApiResponse[List[ModelsSupply]]:
1632
+ """Список поставок
1633
+
1634
+ Метод возвращает список поставок, по умолчанию — последние 1000 поставок. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 30 запросов | 2 секунды | 10 запросов | </div>
1635
+
1636
+ :param models_supplies_filters_request: (required)
1637
+ :type models_supplies_filters_request: ModelsSuppliesFiltersRequest
1638
+ :param limit: Количество записей в ответе
1639
+ :type limit: int
1640
+ :param offset: После какого элемента выдавать данные
1641
+ :type offset: int
1642
+ :param _request_timeout: timeout setting for this request. If one
1643
+ number provided, it will be total request
1644
+ timeout. It can also be a pair (tuple) of
1645
+ (connection, read) timeouts.
1646
+ :type _request_timeout: int, tuple(int, int), optional
1647
+ :param _request_auth: set to override the auth_settings for an a single
1648
+ request; this effectively ignores the
1649
+ authentication in the spec for a single request.
1650
+ :type _request_auth: dict, optional
1651
+ :param _content_type: force content-type for the request.
1652
+ :type _content_type: str, Optional
1653
+ :param _headers: set to override the headers for a single
1654
+ request; this effectively ignores the headers
1655
+ in the spec for a single request.
1656
+ :type _headers: dict, optional
1657
+ :param _host_index: set to override the host_index for a single
1658
+ request; this effectively ignores the host_index
1659
+ in the spec for a single request.
1660
+ :type _host_index: int, optional
1661
+ :return: Returns the result object.
1662
+ """ # noqa: E501
1663
+
1664
+ _param = self._api_v1_supplies_post_serialize(
1665
+ models_supplies_filters_request=models_supplies_filters_request,
1666
+ limit=limit,
1667
+ offset=offset,
1668
+ _request_auth=_request_auth,
1669
+ _content_type=_content_type,
1670
+ _headers=_headers,
1671
+ _host_index=_host_index
1672
+ )
1673
+
1674
+ _response_types_map: Dict[str, Optional[str]] = {
1675
+ '200': "List[ModelsSupply]",
1676
+ '400': "ModelsErrorModel",
1677
+ '401': "ApiV1AcceptanceCoefficientsGet401Response",
1678
+ '429': "ApiV1AcceptanceCoefficientsGet401Response",
1679
+ }
1680
+ response_data = self.api_client.call_api(
1681
+ *_param,
1682
+ _request_timeout=_request_timeout
1683
+ )
1684
+ response_data.read()
1685
+ return self.api_client.response_deserialize(
1686
+ response_data=response_data,
1687
+ response_types_map=_response_types_map,
1688
+ )
1689
+
1690
+
1691
+ @validate_call
1692
+ def api_v1_supplies_post_without_preload_content(
1693
+ self,
1694
+ models_supplies_filters_request: ModelsSuppliesFiltersRequest,
1695
+ limit: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]], Field(description="Количество записей в ответе")] = None,
1696
+ offset: Annotated[Optional[StrictInt], Field(description="После какого элемента выдавать данные")] = None,
1697
+ _request_timeout: Union[
1698
+ None,
1699
+ Annotated[StrictFloat, Field(gt=0)],
1700
+ Tuple[
1701
+ Annotated[StrictFloat, Field(gt=0)],
1702
+ Annotated[StrictFloat, Field(gt=0)]
1703
+ ]
1704
+ ] = None,
1705
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1706
+ _content_type: Optional[StrictStr] = None,
1707
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1708
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
1709
+ ) -> RESTResponseType:
1710
+ """Список поставок
1711
+
1712
+ Метод возвращает список поставок, по умолчанию — последние 1000 поставок. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 30 запросов | 2 секунды | 10 запросов | </div>
1713
+
1714
+ :param models_supplies_filters_request: (required)
1715
+ :type models_supplies_filters_request: ModelsSuppliesFiltersRequest
1716
+ :param limit: Количество записей в ответе
1717
+ :type limit: int
1718
+ :param offset: После какого элемента выдавать данные
1719
+ :type offset: int
1720
+ :param _request_timeout: timeout setting for this request. If one
1721
+ number provided, it will be total request
1722
+ timeout. It can also be a pair (tuple) of
1723
+ (connection, read) timeouts.
1724
+ :type _request_timeout: int, tuple(int, int), optional
1725
+ :param _request_auth: set to override the auth_settings for an a single
1726
+ request; this effectively ignores the
1727
+ authentication in the spec for a single request.
1728
+ :type _request_auth: dict, optional
1729
+ :param _content_type: force content-type for the request.
1730
+ :type _content_type: str, Optional
1731
+ :param _headers: set to override the headers for a single
1732
+ request; this effectively ignores the headers
1733
+ in the spec for a single request.
1734
+ :type _headers: dict, optional
1735
+ :param _host_index: set to override the host_index for a single
1736
+ request; this effectively ignores the host_index
1737
+ in the spec for a single request.
1738
+ :type _host_index: int, optional
1739
+ :return: Returns the result object.
1740
+ """ # noqa: E501
1741
+
1742
+ _param = self._api_v1_supplies_post_serialize(
1743
+ models_supplies_filters_request=models_supplies_filters_request,
1744
+ limit=limit,
1745
+ offset=offset,
1746
+ _request_auth=_request_auth,
1747
+ _content_type=_content_type,
1748
+ _headers=_headers,
1749
+ _host_index=_host_index
1750
+ )
1751
+
1752
+ _response_types_map: Dict[str, Optional[str]] = {
1753
+ '200': "List[ModelsSupply]",
1754
+ '400': "ModelsErrorModel",
1755
+ '401': "ApiV1AcceptanceCoefficientsGet401Response",
1756
+ '429': "ApiV1AcceptanceCoefficientsGet401Response",
1757
+ }
1758
+ response_data = self.api_client.call_api(
1759
+ *_param,
1760
+ _request_timeout=_request_timeout
1761
+ )
1762
+ return response_data.response
1763
+
1764
+
1765
+ def _api_v1_supplies_post_serialize(
1766
+ self,
1767
+ models_supplies_filters_request,
1768
+ limit,
1769
+ offset,
1770
+ _request_auth,
1771
+ _content_type,
1772
+ _headers,
1773
+ _host_index,
1774
+ ) -> RequestSerialized:
1775
+
1776
+ _hosts = [
1777
+ 'https://supplies-api.wildberries.ru'
1778
+ ]
1779
+ _host = _hosts[_host_index]
1780
+
1781
+ _collection_formats: Dict[str, str] = {
1782
+ }
1783
+
1784
+ _path_params: Dict[str, str] = {}
1785
+ _query_params: List[Tuple[str, str]] = []
1786
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1787
+ _form_params: List[Tuple[str, str]] = []
1788
+ _files: Dict[
1789
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1790
+ ] = {}
1791
+ _body_params: Optional[bytes] = None
1792
+
1793
+ # process the path parameters
1794
+ # process the query parameters
1795
+ if limit is not None:
1796
+
1797
+ _query_params.append(('limit', limit))
1798
+
1799
+ if offset is not None:
1800
+
1801
+ _query_params.append(('offset', offset))
1802
+
1803
+ # process the header parameters
1804
+ # process the form parameters
1805
+ # process the body parameter
1806
+ if models_supplies_filters_request is not None:
1807
+ _body_params = models_supplies_filters_request
1808
+
1809
+
1810
+ # set the HTTP header `Accept`
1811
+ if 'Accept' not in _header_params:
1812
+ _header_params['Accept'] = self.api_client.select_header_accept(
1813
+ [
1814
+ 'application/json'
1815
+ ]
1816
+ )
1817
+
1818
+ # set the HTTP header `Content-Type`
1819
+ if _content_type:
1820
+ _header_params['Content-Type'] = _content_type
1821
+ else:
1822
+ _default_content_type = (
1823
+ self.api_client.select_header_content_type(
1824
+ [
1825
+ 'application/json'
1826
+ ]
1827
+ )
1828
+ )
1829
+ if _default_content_type is not None:
1830
+ _header_params['Content-Type'] = _default_content_type
1831
+
1832
+ # authentication setting
1833
+ _auth_settings: List[str] = [
1834
+ 'HeaderApiKey'
1835
+ ]
1836
+
1837
+ return self.api_client.param_serialize(
1838
+ method='POST',
1839
+ resource_path='/api/v1/supplies',
1840
+ path_params=_path_params,
1841
+ query_params=_query_params,
1842
+ header_params=_header_params,
1843
+ body=_body_params,
1844
+ post_params=_form_params,
1845
+ files=_files,
1846
+ auth_settings=_auth_settings,
1847
+ collection_formats=_collection_formats,
1848
+ _host=_host,
1849
+ _request_auth=_request_auth
1850
+ )
1851
+
1852
+
1853
+
1854
+
1855
+ @validate_call
1856
+ def api_v1_transit_tariffs_get(
1857
+ self,
1858
+ _request_timeout: Union[
1859
+ None,
1860
+ Annotated[StrictFloat, Field(gt=0)],
1861
+ Tuple[
1862
+ Annotated[StrictFloat, Field(gt=0)],
1863
+ Annotated[StrictFloat, Field(gt=0)]
1864
+ ]
1865
+ ] = None,
1866
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1867
+ _content_type: Optional[StrictStr] = None,
1868
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1869
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
1870
+ ) -> List[ModelsTransitTariff]:
1871
+ """Транзитные направления
1872
+
1873
+ Метод возвращает информацию о доступных транзитных направлениях. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 6 запросов | 10 секунд | 10 запросов | </div>
1874
+
1875
+ :param _request_timeout: timeout setting for this request. If one
1876
+ number provided, it will be total request
1877
+ timeout. It can also be a pair (tuple) of
1878
+ (connection, read) timeouts.
1879
+ :type _request_timeout: int, tuple(int, int), optional
1880
+ :param _request_auth: set to override the auth_settings for an a single
1881
+ request; this effectively ignores the
1882
+ authentication in the spec for a single request.
1883
+ :type _request_auth: dict, optional
1884
+ :param _content_type: force content-type for the request.
1885
+ :type _content_type: str, Optional
1886
+ :param _headers: set to override the headers for a single
1887
+ request; this effectively ignores the headers
1888
+ in the spec for a single request.
1889
+ :type _headers: dict, optional
1890
+ :param _host_index: set to override the host_index for a single
1891
+ request; this effectively ignores the host_index
1892
+ in the spec for a single request.
1893
+ :type _host_index: int, optional
1894
+ :return: Returns the result object.
1895
+ """ # noqa: E501
1896
+
1897
+ _param = self._api_v1_transit_tariffs_get_serialize(
1898
+ _request_auth=_request_auth,
1899
+ _content_type=_content_type,
1900
+ _headers=_headers,
1901
+ _host_index=_host_index
1902
+ )
1903
+
1904
+ _response_types_map: Dict[str, Optional[str]] = {
1905
+ '200': "List[ModelsTransitTariff]",
1906
+ '401': "ApiV1AcceptanceCoefficientsGet401Response",
1907
+ '429': "ApiV1AcceptanceCoefficientsGet401Response",
1908
+ }
1909
+ response_data = self.api_client.call_api(
1910
+ *_param,
1911
+ _request_timeout=_request_timeout
1912
+ )
1913
+ response_data.read()
1914
+ return self.api_client.response_deserialize(
1915
+ response_data=response_data,
1916
+ response_types_map=_response_types_map,
1917
+ ).data
1918
+
1919
+
1920
+ @validate_call
1921
+ def api_v1_transit_tariffs_get_with_http_info(
1922
+ self,
1923
+ _request_timeout: Union[
1924
+ None,
1925
+ Annotated[StrictFloat, Field(gt=0)],
1926
+ Tuple[
1927
+ Annotated[StrictFloat, Field(gt=0)],
1928
+ Annotated[StrictFloat, Field(gt=0)]
1929
+ ]
1930
+ ] = None,
1931
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1932
+ _content_type: Optional[StrictStr] = None,
1933
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1934
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
1935
+ ) -> ApiResponse[List[ModelsTransitTariff]]:
1936
+ """Транзитные направления
1937
+
1938
+ Метод возвращает информацию о доступных транзитных направлениях. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 6 запросов | 10 секунд | 10 запросов | </div>
1939
+
1940
+ :param _request_timeout: timeout setting for this request. If one
1941
+ number provided, it will be total request
1942
+ timeout. It can also be a pair (tuple) of
1943
+ (connection, read) timeouts.
1944
+ :type _request_timeout: int, tuple(int, int), optional
1945
+ :param _request_auth: set to override the auth_settings for an a single
1946
+ request; this effectively ignores the
1947
+ authentication in the spec for a single request.
1948
+ :type _request_auth: dict, optional
1949
+ :param _content_type: force content-type for the request.
1950
+ :type _content_type: str, Optional
1951
+ :param _headers: set to override the headers for a single
1952
+ request; this effectively ignores the headers
1953
+ in the spec for a single request.
1954
+ :type _headers: dict, optional
1955
+ :param _host_index: set to override the host_index for a single
1956
+ request; this effectively ignores the host_index
1957
+ in the spec for a single request.
1958
+ :type _host_index: int, optional
1959
+ :return: Returns the result object.
1960
+ """ # noqa: E501
1961
+
1962
+ _param = self._api_v1_transit_tariffs_get_serialize(
1963
+ _request_auth=_request_auth,
1964
+ _content_type=_content_type,
1965
+ _headers=_headers,
1966
+ _host_index=_host_index
1967
+ )
1968
+
1969
+ _response_types_map: Dict[str, Optional[str]] = {
1970
+ '200': "List[ModelsTransitTariff]",
1971
+ '401': "ApiV1AcceptanceCoefficientsGet401Response",
1972
+ '429': "ApiV1AcceptanceCoefficientsGet401Response",
1973
+ }
1974
+ response_data = self.api_client.call_api(
1975
+ *_param,
1976
+ _request_timeout=_request_timeout
1977
+ )
1978
+ response_data.read()
1979
+ return self.api_client.response_deserialize(
1980
+ response_data=response_data,
1981
+ response_types_map=_response_types_map,
1982
+ )
1983
+
1984
+
1985
+ @validate_call
1986
+ def api_v1_transit_tariffs_get_without_preload_content(
1987
+ self,
1988
+ _request_timeout: Union[
1989
+ None,
1990
+ Annotated[StrictFloat, Field(gt=0)],
1991
+ Tuple[
1992
+ Annotated[StrictFloat, Field(gt=0)],
1993
+ Annotated[StrictFloat, Field(gt=0)]
1994
+ ]
1995
+ ] = None,
1996
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1997
+ _content_type: Optional[StrictStr] = None,
1998
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1999
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
2000
+ ) -> RESTResponseType:
2001
+ """Транзитные направления
2002
+
2003
+ Метод возвращает информацию о доступных транзитных направлениях. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 6 запросов | 10 секунд | 10 запросов | </div>
2004
+
2005
+ :param _request_timeout: timeout setting for this request. If one
2006
+ number provided, it will be total request
2007
+ timeout. It can also be a pair (tuple) of
2008
+ (connection, read) timeouts.
2009
+ :type _request_timeout: int, tuple(int, int), optional
2010
+ :param _request_auth: set to override the auth_settings for an a single
2011
+ request; this effectively ignores the
2012
+ authentication in the spec for a single request.
2013
+ :type _request_auth: dict, optional
2014
+ :param _content_type: force content-type for the request.
2015
+ :type _content_type: str, Optional
2016
+ :param _headers: set to override the headers for a single
2017
+ request; this effectively ignores the headers
2018
+ in the spec for a single request.
2019
+ :type _headers: dict, optional
2020
+ :param _host_index: set to override the host_index for a single
2021
+ request; this effectively ignores the host_index
2022
+ in the spec for a single request.
2023
+ :type _host_index: int, optional
2024
+ :return: Returns the result object.
2025
+ """ # noqa: E501
2026
+
2027
+ _param = self._api_v1_transit_tariffs_get_serialize(
2028
+ _request_auth=_request_auth,
2029
+ _content_type=_content_type,
2030
+ _headers=_headers,
2031
+ _host_index=_host_index
2032
+ )
2033
+
2034
+ _response_types_map: Dict[str, Optional[str]] = {
2035
+ '200': "List[ModelsTransitTariff]",
2036
+ '401': "ApiV1AcceptanceCoefficientsGet401Response",
2037
+ '429': "ApiV1AcceptanceCoefficientsGet401Response",
2038
+ }
2039
+ response_data = self.api_client.call_api(
2040
+ *_param,
2041
+ _request_timeout=_request_timeout
2042
+ )
2043
+ return response_data.response
2044
+
2045
+
2046
+ def _api_v1_transit_tariffs_get_serialize(
2047
+ self,
2048
+ _request_auth,
2049
+ _content_type,
2050
+ _headers,
2051
+ _host_index,
2052
+ ) -> RequestSerialized:
2053
+
2054
+ _hosts = [
2055
+ 'https://supplies-api.wildberries.ru'
2056
+ ]
2057
+ _host = _hosts[_host_index]
2058
+
2059
+ _collection_formats: Dict[str, str] = {
2060
+ }
2061
+
2062
+ _path_params: Dict[str, str] = {}
2063
+ _query_params: List[Tuple[str, str]] = []
2064
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2065
+ _form_params: List[Tuple[str, str]] = []
2066
+ _files: Dict[
2067
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2068
+ ] = {}
2069
+ _body_params: Optional[bytes] = None
2070
+
2071
+ # process the path parameters
2072
+ # process the query parameters
2073
+ # process the header parameters
2074
+ # process the form parameters
2075
+ # process the body parameter
2076
+
2077
+
2078
+ # set the HTTP header `Accept`
2079
+ if 'Accept' not in _header_params:
2080
+ _header_params['Accept'] = self.api_client.select_header_accept(
2081
+ [
2082
+ 'application/json'
2083
+ ]
2084
+ )
2085
+
2086
+
2087
+ # authentication setting
2088
+ _auth_settings: List[str] = [
2089
+ 'HeaderApiKey'
2090
+ ]
2091
+
2092
+ return self.api_client.param_serialize(
2093
+ method='GET',
2094
+ resource_path='/api/v1/transit-tariffs',
2095
+ path_params=_path_params,
2096
+ query_params=_query_params,
2097
+ header_params=_header_params,
2098
+ body=_body_params,
2099
+ post_params=_form_params,
2100
+ files=_files,
2101
+ auth_settings=_auth_settings,
2102
+ collection_formats=_collection_formats,
2103
+ _host=_host,
2104
+ _request_auth=_request_auth
2105
+ )
2106
+
2107
+
2108
+
2109
+
2110
+ @validate_call
2111
+ def api_v1_warehouses_get(
2112
+ self,
2113
+ _request_timeout: Union[
2114
+ None,
2115
+ Annotated[StrictFloat, Field(gt=0)],
2116
+ Tuple[
2117
+ Annotated[StrictFloat, Field(gt=0)],
2118
+ Annotated[StrictFloat, Field(gt=0)]
2119
+ ]
2120
+ ] = None,
2121
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2122
+ _content_type: Optional[StrictStr] = None,
2123
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2124
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
2125
+ ) -> List[ModelsWarehousesResultItems]:
2126
+ """Список складов
2127
+
2128
+ Метод возвращает список складов WB. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 6 запросов | 10 секунд | 6 запросов | </div>
2129
+
2130
+ :param _request_timeout: timeout setting for this request. If one
2131
+ number provided, it will be total request
2132
+ timeout. It can also be a pair (tuple) of
2133
+ (connection, read) timeouts.
2134
+ :type _request_timeout: int, tuple(int, int), optional
2135
+ :param _request_auth: set to override the auth_settings for an a single
2136
+ request; this effectively ignores the
2137
+ authentication in the spec for a single request.
2138
+ :type _request_auth: dict, optional
2139
+ :param _content_type: force content-type for the request.
2140
+ :type _content_type: str, Optional
2141
+ :param _headers: set to override the headers for a single
2142
+ request; this effectively ignores the headers
2143
+ in the spec for a single request.
2144
+ :type _headers: dict, optional
2145
+ :param _host_index: set to override the host_index for a single
2146
+ request; this effectively ignores the host_index
2147
+ in the spec for a single request.
2148
+ :type _host_index: int, optional
2149
+ :return: Returns the result object.
2150
+ """ # noqa: E501
2151
+
2152
+ _param = self._api_v1_warehouses_get_serialize(
2153
+ _request_auth=_request_auth,
2154
+ _content_type=_content_type,
2155
+ _headers=_headers,
2156
+ _host_index=_host_index
2157
+ )
2158
+
2159
+ _response_types_map: Dict[str, Optional[str]] = {
2160
+ '200': "List[ModelsWarehousesResultItems]",
2161
+ '401': "ApiV1AcceptanceCoefficientsGet401Response",
2162
+ '403': None,
2163
+ '404': None,
2164
+ '429': "ApiV1AcceptanceCoefficientsGet401Response",
2165
+ }
2166
+ response_data = self.api_client.call_api(
2167
+ *_param,
2168
+ _request_timeout=_request_timeout
2169
+ )
2170
+ response_data.read()
2171
+ return self.api_client.response_deserialize(
2172
+ response_data=response_data,
2173
+ response_types_map=_response_types_map,
2174
+ ).data
2175
+
2176
+
2177
+ @validate_call
2178
+ def api_v1_warehouses_get_with_http_info(
2179
+ self,
2180
+ _request_timeout: Union[
2181
+ None,
2182
+ Annotated[StrictFloat, Field(gt=0)],
2183
+ Tuple[
2184
+ Annotated[StrictFloat, Field(gt=0)],
2185
+ Annotated[StrictFloat, Field(gt=0)]
2186
+ ]
2187
+ ] = None,
2188
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2189
+ _content_type: Optional[StrictStr] = None,
2190
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2191
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
2192
+ ) -> ApiResponse[List[ModelsWarehousesResultItems]]:
2193
+ """Список складов
2194
+
2195
+ Метод возвращает список складов WB. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 6 запросов | 10 секунд | 6 запросов | </div>
2196
+
2197
+ :param _request_timeout: timeout setting for this request. If one
2198
+ number provided, it will be total request
2199
+ timeout. It can also be a pair (tuple) of
2200
+ (connection, read) timeouts.
2201
+ :type _request_timeout: int, tuple(int, int), optional
2202
+ :param _request_auth: set to override the auth_settings for an a single
2203
+ request; this effectively ignores the
2204
+ authentication in the spec for a single request.
2205
+ :type _request_auth: dict, optional
2206
+ :param _content_type: force content-type for the request.
2207
+ :type _content_type: str, Optional
2208
+ :param _headers: set to override the headers for a single
2209
+ request; this effectively ignores the headers
2210
+ in the spec for a single request.
2211
+ :type _headers: dict, optional
2212
+ :param _host_index: set to override the host_index for a single
2213
+ request; this effectively ignores the host_index
2214
+ in the spec for a single request.
2215
+ :type _host_index: int, optional
2216
+ :return: Returns the result object.
2217
+ """ # noqa: E501
2218
+
2219
+ _param = self._api_v1_warehouses_get_serialize(
2220
+ _request_auth=_request_auth,
2221
+ _content_type=_content_type,
2222
+ _headers=_headers,
2223
+ _host_index=_host_index
2224
+ )
2225
+
2226
+ _response_types_map: Dict[str, Optional[str]] = {
2227
+ '200': "List[ModelsWarehousesResultItems]",
2228
+ '401': "ApiV1AcceptanceCoefficientsGet401Response",
2229
+ '403': None,
2230
+ '404': None,
2231
+ '429': "ApiV1AcceptanceCoefficientsGet401Response",
2232
+ }
2233
+ response_data = self.api_client.call_api(
2234
+ *_param,
2235
+ _request_timeout=_request_timeout
2236
+ )
2237
+ response_data.read()
2238
+ return self.api_client.response_deserialize(
2239
+ response_data=response_data,
2240
+ response_types_map=_response_types_map,
2241
+ )
2242
+
2243
+
2244
+ @validate_call
2245
+ def api_v1_warehouses_get_without_preload_content(
2246
+ self,
2247
+ _request_timeout: Union[
2248
+ None,
2249
+ Annotated[StrictFloat, Field(gt=0)],
2250
+ Tuple[
2251
+ Annotated[StrictFloat, Field(gt=0)],
2252
+ Annotated[StrictFloat, Field(gt=0)]
2253
+ ]
2254
+ ] = None,
2255
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2256
+ _content_type: Optional[StrictStr] = None,
2257
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2258
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
2259
+ ) -> RESTResponseType:
2260
+ """Список складов
2261
+
2262
+ Метод возвращает список складов WB. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 6 запросов | 10 секунд | 6 запросов | </div>
2263
+
2264
+ :param _request_timeout: timeout setting for this request. If one
2265
+ number provided, it will be total request
2266
+ timeout. It can also be a pair (tuple) of
2267
+ (connection, read) timeouts.
2268
+ :type _request_timeout: int, tuple(int, int), optional
2269
+ :param _request_auth: set to override the auth_settings for an a single
2270
+ request; this effectively ignores the
2271
+ authentication in the spec for a single request.
2272
+ :type _request_auth: dict, optional
2273
+ :param _content_type: force content-type for the request.
2274
+ :type _content_type: str, Optional
2275
+ :param _headers: set to override the headers for a single
2276
+ request; this effectively ignores the headers
2277
+ in the spec for a single request.
2278
+ :type _headers: dict, optional
2279
+ :param _host_index: set to override the host_index for a single
2280
+ request; this effectively ignores the host_index
2281
+ in the spec for a single request.
2282
+ :type _host_index: int, optional
2283
+ :return: Returns the result object.
2284
+ """ # noqa: E501
2285
+
2286
+ _param = self._api_v1_warehouses_get_serialize(
2287
+ _request_auth=_request_auth,
2288
+ _content_type=_content_type,
2289
+ _headers=_headers,
2290
+ _host_index=_host_index
2291
+ )
2292
+
2293
+ _response_types_map: Dict[str, Optional[str]] = {
2294
+ '200': "List[ModelsWarehousesResultItems]",
2295
+ '401': "ApiV1AcceptanceCoefficientsGet401Response",
2296
+ '403': None,
2297
+ '404': None,
2298
+ '429': "ApiV1AcceptanceCoefficientsGet401Response",
2299
+ }
2300
+ response_data = self.api_client.call_api(
2301
+ *_param,
2302
+ _request_timeout=_request_timeout
2303
+ )
2304
+ return response_data.response
2305
+
2306
+
2307
+ def _api_v1_warehouses_get_serialize(
2308
+ self,
2309
+ _request_auth,
2310
+ _content_type,
2311
+ _headers,
2312
+ _host_index,
2313
+ ) -> RequestSerialized:
2314
+
2315
+ _hosts = [
2316
+ 'https://supplies-api.wildberries.ru'
2317
+ ]
2318
+ _host = _hosts[_host_index]
2319
+
2320
+ _collection_formats: Dict[str, str] = {
2321
+ }
2322
+
2323
+ _path_params: Dict[str, str] = {}
2324
+ _query_params: List[Tuple[str, str]] = []
2325
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2326
+ _form_params: List[Tuple[str, str]] = []
2327
+ _files: Dict[
2328
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2329
+ ] = {}
2330
+ _body_params: Optional[bytes] = None
2331
+
2332
+ # process the path parameters
2333
+ # process the query parameters
2334
+ # process the header parameters
2335
+ # process the form parameters
2336
+ # process the body parameter
2337
+
2338
+
2339
+ # set the HTTP header `Accept`
2340
+ if 'Accept' not in _header_params:
2341
+ _header_params['Accept'] = self.api_client.select_header_accept(
2342
+ [
2343
+ 'application/json'
2344
+ ]
2345
+ )
2346
+
2347
+
2348
+ # authentication setting
2349
+ _auth_settings: List[str] = [
2350
+ 'HeaderApiKey'
2351
+ ]
2352
+
2353
+ return self.api_client.param_serialize(
2354
+ method='GET',
2355
+ resource_path='/api/v1/warehouses',
2356
+ path_params=_path_params,
2357
+ query_params=_query_params,
2358
+ header_params=_header_params,
2359
+ body=_body_params,
2360
+ post_params=_form_params,
2361
+ files=_files,
2362
+ auth_settings=_auth_settings,
2363
+ collection_formats=_collection_formats,
2364
+ _host=_host,
2365
+ _request_auth=_request_auth
2366
+ )
2367
+
2368
+