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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. wildberries_sdk/analytics/__init__.py +3 -7
  2. wildberries_sdk/analytics/api/__init__.py +1 -3
  3. wildberries_sdk/analytics/api/default_api.py +4670 -0
  4. wildberries_sdk/analytics/api_client.py +1 -1
  5. wildberries_sdk/analytics/configuration.py +1 -1
  6. wildberries_sdk/communications/__init__.py +1 -5
  7. wildberries_sdk/communications/api/__init__.py +0 -2
  8. wildberries_sdk/communications/api/default_api.py +4282 -858
  9. wildberries_sdk/communications/api_client.py +1 -1
  10. wildberries_sdk/communications/configuration.py +1 -1
  11. wildberries_sdk/finances/__init__.py +1 -3
  12. wildberries_sdk/finances/api/__init__.py +0 -1
  13. wildberries_sdk/finances/api/default_api.py +367 -2
  14. wildberries_sdk/finances/api_client.py +1 -1
  15. wildberries_sdk/finances/configuration.py +1 -1
  16. wildberries_sdk/general/__init__.py +3 -7
  17. wildberries_sdk/general/api/__init__.py +1 -3
  18. wildberries_sdk/general/api/{api.py → default_api.py} +560 -1
  19. wildberries_sdk/general/api_client.py +1 -1
  20. wildberries_sdk/general/configuration.py +1 -1
  21. wildberries_sdk/in_store_pickup/__init__.py +3 -5
  22. wildberries_sdk/in_store_pickup/api/__init__.py +1 -2
  23. wildberries_sdk/in_store_pickup/api/{api.py → default_api.py} +1798 -2
  24. wildberries_sdk/in_store_pickup/api_client.py +1 -1
  25. wildberries_sdk/in_store_pickup/configuration.py +1 -1
  26. wildberries_sdk/orders_dbs/__init__.py +3 -5
  27. wildberries_sdk/orders_dbs/api/__init__.py +1 -2
  28. wildberries_sdk/orders_dbs/api/{dbs_api.py → default_api.py} +1819 -2
  29. wildberries_sdk/orders_dbs/api_client.py +1 -1
  30. wildberries_sdk/orders_dbs/configuration.py +1 -1
  31. wildberries_sdk/orders_dbw/__init__.py +3 -5
  32. wildberries_sdk/orders_dbw/api/__init__.py +1 -2
  33. wildberries_sdk/orders_dbw/api/{dbw_api.py → default_api.py} +1821 -1
  34. wildberries_sdk/orders_dbw/api_client.py +1 -1
  35. wildberries_sdk/orders_dbw/configuration.py +1 -1
  36. wildberries_sdk/orders_fbs/__init__.py +3 -5
  37. wildberries_sdk/orders_fbs/api/__init__.py +1 -2
  38. wildberries_sdk/orders_fbs/api/default_api.py +10043 -0
  39. wildberries_sdk/orders_fbs/api_client.py +1 -1
  40. wildberries_sdk/orders_fbs/configuration.py +1 -1
  41. wildberries_sdk/orders_fbw/__init__.py +3 -5
  42. wildberries_sdk/orders_fbw/api/__init__.py +1 -2
  43. wildberries_sdk/orders_fbw/api/default_api.py +2368 -0
  44. wildberries_sdk/orders_fbw/api_client.py +1 -1
  45. wildberries_sdk/orders_fbw/configuration.py +1 -1
  46. wildberries_sdk/products/__init__.py +1 -7
  47. wildberries_sdk/products/api/__init__.py +0 -3
  48. wildberries_sdk/products/api/default_api.py +12348 -2
  49. wildberries_sdk/products/api_client.py +1 -1
  50. wildberries_sdk/products/configuration.py +1 -1
  51. wildberries_sdk/products/models/content_v2_get_cards_list_post200_response_cards_inner_tags_inner.py +1 -1
  52. wildberries_sdk/promotion/__init__.py +1 -3
  53. wildberries_sdk/promotion/api/__init__.py +0 -1
  54. wildberries_sdk/promotion/api/default_api.py +10107 -1059
  55. wildberries_sdk/promotion/api_client.py +1 -1
  56. wildberries_sdk/promotion/configuration.py +1 -1
  57. wildberries_sdk/reports/__init__.py +3 -13
  58. wildberries_sdk/reports/api/__init__.py +1 -6
  59. wildberries_sdk/{promotion/api/api.py → reports/api/default_api.py} +2245 -2381
  60. wildberries_sdk/reports/api_client.py +1 -1
  61. wildberries_sdk/reports/configuration.py +1 -1
  62. wildberries_sdk/tariffs/__init__.py +1 -3
  63. wildberries_sdk/tariffs/api/__init__.py +0 -1
  64. wildberries_sdk/tariffs/api/default_api.py +1147 -34
  65. wildberries_sdk/tariffs/api_client.py +1 -1
  66. wildberries_sdk/tariffs/configuration.py +1 -1
  67. wildberries_sdk/wbd/__init__.py +1 -3
  68. wildberries_sdk/wbd/api/__init__.py +0 -1
  69. wildberries_sdk/wbd/api/default_api.py +1662 -89
  70. wildberries_sdk/wbd/api_client.py +1 -1
  71. wildberries_sdk/wbd/configuration.py +1 -1
  72. wildberries_sdk/wbd/models/offer_create_request.py +1 -1
  73. wildberries_sdk/wbd/models/offer_update_request.py +1 -1
  74. wildberries_sdk-0.1.18.dist-info/METADATA +395 -0
  75. {wildberries_sdk-0.1.17.dist-info → wildberries_sdk-0.1.18.dist-info}/RECORD +78 -88
  76. wildberries_sdk/analytics/api/api.py +0 -1490
  77. wildberries_sdk/analytics/api/csv_api.py +0 -1178
  78. wildberries_sdk/communications/api/api.py +0 -1166
  79. wildberries_sdk/finances/api/api.py +0 -404
  80. wildberries_sdk/general/api/api_api.py +0 -341
  81. wildberries_sdk/general/api/wbapi_api.py +0 -291
  82. wildberries_sdk/orders_fbs/api/fbs_api.py +0 -2683
  83. wildberries_sdk/orders_fbw/api/api.py +0 -1153
  84. wildberries_sdk/products/api/api.py +0 -3891
  85. wildberries_sdk/reports/api/api.py +0 -350
  86. wildberries_sdk/reports/api/c_api.py +0 -361
  87. wildberries_sdk/tariffs/api/api.py +0 -1151
  88. wildberries_sdk/wbd/api/api.py +0 -1611
  89. wildberries_sdk-0.1.17.dist-info/METADATA +0 -191
  90. {wildberries_sdk-0.1.17.dist-info → wildberries_sdk-0.1.18.dist-info}/LICENSE +0 -0
  91. {wildberries_sdk-0.1.17.dist-info → wildberries_sdk-0.1.18.dist-info}/WHEEL +0 -0
  92. {wildberries_sdk-0.1.17.dist-info → wildberries_sdk-0.1.18.dist-info}/top_level.txt +0 -0
@@ -1,1151 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- Тарифы
5
-
6
- <div class=\"description_important\"> Узнать больше о комиссиях и тарифах можно в <a href=\"https://seller.wildberries.ru/instructions/category/a04560b5-256d-48cb-8f09-60e283b5d493\">справочном центре</a> </div> В разделе описаны методы получения: 1. [Комиссий](/openapi/wb-tariffs#tag/Komissii) 2. [Тарифов на остаток](/openapi/wb-tariffs#tag/Tarify-na-ostatok) 3. [Тарифов на возврат товаров продавцу](/openapi/wb-tariffs#tag/Stoimost-vozvrata-prodavcu)
7
-
8
- The version of the OpenAPI document: tariffs
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, StrictStr
20
- from typing import List, Optional
21
- from typing_extensions import Annotated
22
- from wildberries_sdk.tariffs.models.models_acceptance_coefficient import ModelsAcceptanceCoefficient
23
- from wildberries_sdk.tariffs.models.return_tariffs_response import ReturnTariffsResponse
24
- from wildberries_sdk.tariffs.models.tariffs_box_response import TariffsBoxResponse
25
- from wildberries_sdk.tariffs.models.tariffs_pallet_response import TariffsPalletResponse
26
-
27
- from wildberries_sdk.tariffs.api_client import ApiClient, RequestSerialized
28
- from wildberries_sdk.tariffs.api_response import ApiResponse
29
- from wildberries_sdk.tariffs.rest import RESTResponseType
30
-
31
-
32
- class Api:
33
- """NOTE: This class is auto generated by OpenAPI Generator
34
- Ref: https://openapi-generator.tech
35
-
36
- Do not edit the class manually.
37
- """
38
-
39
- def __init__(self, api_client=None) -> None:
40
- if api_client is None:
41
- api_client = ApiClient.get_default()
42
- self.api_client = api_client
43
-
44
-
45
- @validate_call
46
- def api_tariffs_v1_acceptance_coefficients_get(
47
- self,
48
- warehouse_ids: Annotated[Optional[StrictStr], Field(description="ID складов.<br>По умолчанию возвращаются данные по всем складам")] = None,
49
- _request_timeout: Union[
50
- None,
51
- Annotated[StrictFloat, Field(gt=0)],
52
- Tuple[
53
- Annotated[StrictFloat, Field(gt=0)],
54
- Annotated[StrictFloat, Field(gt=0)]
55
- ]
56
- ] = None,
57
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
58
- _content_type: Optional[StrictStr] = None,
59
- _headers: Optional[Dict[StrictStr, Any]] = None,
60
- _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
61
- ) -> List[ModelsAcceptanceCoefficient]:
62
- """Тарифы на поставку
63
-
64
- Метод возвращает тарифы на поставку для конкретных складов на ближайшие 14 дней. <div class=\"description_important\"> Приёмка для поставки доступна только при сочетании: <br> <code>coefficient</code> — <code>0</code> или <code>1</code> <br> и <code>allowUnload</code> — <code>true</code> </div> <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 6 запросов | 10 секунд | 6 запросов | </div>
65
-
66
- :param warehouse_ids: ID складов.<br>По умолчанию возвращаются данные по всем складам
67
- :type warehouse_ids: str
68
- :param _request_timeout: timeout setting for this request. If one
69
- number provided, it will be total request
70
- timeout. It can also be a pair (tuple) of
71
- (connection, read) timeouts.
72
- :type _request_timeout: int, tuple(int, int), optional
73
- :param _request_auth: set to override the auth_settings for an a single
74
- request; this effectively ignores the
75
- authentication in the spec for a single request.
76
- :type _request_auth: dict, optional
77
- :param _content_type: force content-type for the request.
78
- :type _content_type: str, Optional
79
- :param _headers: set to override the headers for a single
80
- request; this effectively ignores the headers
81
- in the spec for a single request.
82
- :type _headers: dict, optional
83
- :param _host_index: set to override the host_index for a single
84
- request; this effectively ignores the host_index
85
- in the spec for a single request.
86
- :type _host_index: int, optional
87
- :return: Returns the result object.
88
- """ # noqa: E501
89
-
90
- _param = self._api_tariffs_v1_acceptance_coefficients_get_serialize(
91
- warehouse_ids=warehouse_ids,
92
- _request_auth=_request_auth,
93
- _content_type=_content_type,
94
- _headers=_headers,
95
- _host_index=_host_index
96
- )
97
-
98
- _response_types_map: Dict[str, Optional[str]] = {
99
- '200': "List[ModelsAcceptanceCoefficient]",
100
- '400': "ModelsErrorModel",
101
- '401': "ApiV1TariffsCommissionGet401Response",
102
- '403': None,
103
- '404': None,
104
- '429': "ApiV1TariffsCommissionGet401Response",
105
- }
106
- response_data = self.api_client.call_api(
107
- *_param,
108
- _request_timeout=_request_timeout
109
- )
110
- response_data.read()
111
- return self.api_client.response_deserialize(
112
- response_data=response_data,
113
- response_types_map=_response_types_map,
114
- ).data
115
-
116
-
117
- @validate_call
118
- def api_tariffs_v1_acceptance_coefficients_get_with_http_info(
119
- self,
120
- warehouse_ids: Annotated[Optional[StrictStr], Field(description="ID складов.<br>По умолчанию возвращаются данные по всем складам")] = None,
121
- _request_timeout: Union[
122
- None,
123
- Annotated[StrictFloat, Field(gt=0)],
124
- Tuple[
125
- Annotated[StrictFloat, Field(gt=0)],
126
- Annotated[StrictFloat, Field(gt=0)]
127
- ]
128
- ] = None,
129
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
130
- _content_type: Optional[StrictStr] = None,
131
- _headers: Optional[Dict[StrictStr, Any]] = None,
132
- _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
133
- ) -> ApiResponse[List[ModelsAcceptanceCoefficient]]:
134
- """Тарифы на поставку
135
-
136
- Метод возвращает тарифы на поставку для конкретных складов на ближайшие 14 дней. <div class=\"description_important\"> Приёмка для поставки доступна только при сочетании: <br> <code>coefficient</code> — <code>0</code> или <code>1</code> <br> и <code>allowUnload</code> — <code>true</code> </div> <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 6 запросов | 10 секунд | 6 запросов | </div>
137
-
138
- :param warehouse_ids: ID складов.<br>По умолчанию возвращаются данные по всем складам
139
- :type warehouse_ids: str
140
- :param _request_timeout: timeout setting for this request. If one
141
- number provided, it will be total request
142
- timeout. It can also be a pair (tuple) of
143
- (connection, read) timeouts.
144
- :type _request_timeout: int, tuple(int, int), optional
145
- :param _request_auth: set to override the auth_settings for an a single
146
- request; this effectively ignores the
147
- authentication in the spec for a single request.
148
- :type _request_auth: dict, optional
149
- :param _content_type: force content-type for the request.
150
- :type _content_type: str, Optional
151
- :param _headers: set to override the headers for a single
152
- request; this effectively ignores the headers
153
- in the spec for a single request.
154
- :type _headers: dict, optional
155
- :param _host_index: set to override the host_index for a single
156
- request; this effectively ignores the host_index
157
- in the spec for a single request.
158
- :type _host_index: int, optional
159
- :return: Returns the result object.
160
- """ # noqa: E501
161
-
162
- _param = self._api_tariffs_v1_acceptance_coefficients_get_serialize(
163
- warehouse_ids=warehouse_ids,
164
- _request_auth=_request_auth,
165
- _content_type=_content_type,
166
- _headers=_headers,
167
- _host_index=_host_index
168
- )
169
-
170
- _response_types_map: Dict[str, Optional[str]] = {
171
- '200': "List[ModelsAcceptanceCoefficient]",
172
- '400': "ModelsErrorModel",
173
- '401': "ApiV1TariffsCommissionGet401Response",
174
- '403': None,
175
- '404': None,
176
- '429': "ApiV1TariffsCommissionGet401Response",
177
- }
178
- response_data = self.api_client.call_api(
179
- *_param,
180
- _request_timeout=_request_timeout
181
- )
182
- response_data.read()
183
- return self.api_client.response_deserialize(
184
- response_data=response_data,
185
- response_types_map=_response_types_map,
186
- )
187
-
188
-
189
- @validate_call
190
- def api_tariffs_v1_acceptance_coefficients_get_without_preload_content(
191
- self,
192
- warehouse_ids: Annotated[Optional[StrictStr], Field(description="ID складов.<br>По умолчанию возвращаются данные по всем складам")] = None,
193
- _request_timeout: Union[
194
- None,
195
- Annotated[StrictFloat, Field(gt=0)],
196
- Tuple[
197
- Annotated[StrictFloat, Field(gt=0)],
198
- Annotated[StrictFloat, Field(gt=0)]
199
- ]
200
- ] = None,
201
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
202
- _content_type: Optional[StrictStr] = None,
203
- _headers: Optional[Dict[StrictStr, Any]] = None,
204
- _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
205
- ) -> RESTResponseType:
206
- """Тарифы на поставку
207
-
208
- Метод возвращает тарифы на поставку для конкретных складов на ближайшие 14 дней. <div class=\"description_important\"> Приёмка для поставки доступна только при сочетании: <br> <code>coefficient</code> — <code>0</code> или <code>1</code> <br> и <code>allowUnload</code> — <code>true</code> </div> <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 6 запросов | 10 секунд | 6 запросов | </div>
209
-
210
- :param warehouse_ids: ID складов.<br>По умолчанию возвращаются данные по всем складам
211
- :type warehouse_ids: str
212
- :param _request_timeout: timeout setting for this request. If one
213
- number provided, it will be total request
214
- timeout. It can also be a pair (tuple) of
215
- (connection, read) timeouts.
216
- :type _request_timeout: int, tuple(int, int), optional
217
- :param _request_auth: set to override the auth_settings for an a single
218
- request; this effectively ignores the
219
- authentication in the spec for a single request.
220
- :type _request_auth: dict, optional
221
- :param _content_type: force content-type for the request.
222
- :type _content_type: str, Optional
223
- :param _headers: set to override the headers for a single
224
- request; this effectively ignores the headers
225
- in the spec for a single request.
226
- :type _headers: dict, optional
227
- :param _host_index: set to override the host_index for a single
228
- request; this effectively ignores the host_index
229
- in the spec for a single request.
230
- :type _host_index: int, optional
231
- :return: Returns the result object.
232
- """ # noqa: E501
233
-
234
- _param = self._api_tariffs_v1_acceptance_coefficients_get_serialize(
235
- warehouse_ids=warehouse_ids,
236
- _request_auth=_request_auth,
237
- _content_type=_content_type,
238
- _headers=_headers,
239
- _host_index=_host_index
240
- )
241
-
242
- _response_types_map: Dict[str, Optional[str]] = {
243
- '200': "List[ModelsAcceptanceCoefficient]",
244
- '400': "ModelsErrorModel",
245
- '401': "ApiV1TariffsCommissionGet401Response",
246
- '403': None,
247
- '404': None,
248
- '429': "ApiV1TariffsCommissionGet401Response",
249
- }
250
- response_data = self.api_client.call_api(
251
- *_param,
252
- _request_timeout=_request_timeout
253
- )
254
- return response_data.response
255
-
256
-
257
- def _api_tariffs_v1_acceptance_coefficients_get_serialize(
258
- self,
259
- warehouse_ids,
260
- _request_auth,
261
- _content_type,
262
- _headers,
263
- _host_index,
264
- ) -> RequestSerialized:
265
-
266
- _hosts = [
267
- 'https://common-api.wildberries.ru'
268
- ]
269
- _host = _hosts[_host_index]
270
-
271
- _collection_formats: Dict[str, str] = {
272
- }
273
-
274
- _path_params: Dict[str, str] = {}
275
- _query_params: List[Tuple[str, str]] = []
276
- _header_params: Dict[str, Optional[str]] = _headers or {}
277
- _form_params: List[Tuple[str, str]] = []
278
- _files: Dict[
279
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
280
- ] = {}
281
- _body_params: Optional[bytes] = None
282
-
283
- # process the path parameters
284
- # process the query parameters
285
- if warehouse_ids is not None:
286
-
287
- _query_params.append(('warehouseIDs', warehouse_ids))
288
-
289
- # process the header parameters
290
- # process the form parameters
291
- # process the body parameter
292
-
293
-
294
- # set the HTTP header `Accept`
295
- if 'Accept' not in _header_params:
296
- _header_params['Accept'] = self.api_client.select_header_accept(
297
- [
298
- 'application/json'
299
- ]
300
- )
301
-
302
-
303
- # authentication setting
304
- _auth_settings: List[str] = [
305
- 'HeaderApiKey'
306
- ]
307
-
308
- return self.api_client.param_serialize(
309
- method='GET',
310
- resource_path='/api/tariffs/v1/acceptance/coefficients',
311
- path_params=_path_params,
312
- query_params=_query_params,
313
- header_params=_header_params,
314
- body=_body_params,
315
- post_params=_form_params,
316
- files=_files,
317
- auth_settings=_auth_settings,
318
- collection_formats=_collection_formats,
319
- _host=_host,
320
- _request_auth=_request_auth
321
- )
322
-
323
-
324
-
325
-
326
- @validate_call
327
- def api_v1_tariffs_box_get(
328
- self,
329
- var_date: Annotated[StrictStr, Field(description="Дата в формате ГГГГ-ММ-ДД")],
330
- _request_timeout: Union[
331
- None,
332
- Annotated[StrictFloat, Field(gt=0)],
333
- Tuple[
334
- Annotated[StrictFloat, Field(gt=0)],
335
- Annotated[StrictFloat, Field(gt=0)]
336
- ]
337
- ] = None,
338
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
339
- _content_type: Optional[StrictStr] = None,
340
- _headers: Optional[Dict[StrictStr, Any]] = None,
341
- _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
342
- ) -> TariffsBoxResponse:
343
- """Тарифы для коробов
344
-
345
- Для товаров, которые поставляются на склад в коробах, метод возвращает [тарифы на остаток](https://seller.wildberries.ru/dynamic-product-categories): - доставка со склада или пункта приёма до покупателя - доставка от покупателя до пункта приёма - хранение на складе WB <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 60 запросов | 1 секунда | 5 запросов | </div>
346
-
347
- :param var_date: Дата в формате ГГГГ-ММ-ДД (required)
348
- :type var_date: str
349
- :param _request_timeout: timeout setting for this request. If one
350
- number provided, it will be total request
351
- timeout. It can also be a pair (tuple) of
352
- (connection, read) timeouts.
353
- :type _request_timeout: int, tuple(int, int), optional
354
- :param _request_auth: set to override the auth_settings for an a single
355
- request; this effectively ignores the
356
- authentication in the spec for a single request.
357
- :type _request_auth: dict, optional
358
- :param _content_type: force content-type for the request.
359
- :type _content_type: str, Optional
360
- :param _headers: set to override the headers for a single
361
- request; this effectively ignores the headers
362
- in the spec for a single request.
363
- :type _headers: dict, optional
364
- :param _host_index: set to override the host_index for a single
365
- request; this effectively ignores the host_index
366
- in the spec for a single request.
367
- :type _host_index: int, optional
368
- :return: Returns the result object.
369
- """ # noqa: E501
370
-
371
- _param = self._api_v1_tariffs_box_get_serialize(
372
- var_date=var_date,
373
- _request_auth=_request_auth,
374
- _content_type=_content_type,
375
- _headers=_headers,
376
- _host_index=_host_index
377
- )
378
-
379
- _response_types_map: Dict[str, Optional[str]] = {
380
- '200': "TariffsBoxResponse",
381
- '400': "BadRequest",
382
- '401': "ApiV1TariffsCommissionGet401Response",
383
- '429': "ApiV1TariffsCommissionGet401Response",
384
- }
385
- response_data = self.api_client.call_api(
386
- *_param,
387
- _request_timeout=_request_timeout
388
- )
389
- response_data.read()
390
- return self.api_client.response_deserialize(
391
- response_data=response_data,
392
- response_types_map=_response_types_map,
393
- ).data
394
-
395
-
396
- @validate_call
397
- def api_v1_tariffs_box_get_with_http_info(
398
- self,
399
- var_date: Annotated[StrictStr, Field(description="Дата в формате ГГГГ-ММ-ДД")],
400
- _request_timeout: Union[
401
- None,
402
- Annotated[StrictFloat, Field(gt=0)],
403
- Tuple[
404
- Annotated[StrictFloat, Field(gt=0)],
405
- Annotated[StrictFloat, Field(gt=0)]
406
- ]
407
- ] = None,
408
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
409
- _content_type: Optional[StrictStr] = None,
410
- _headers: Optional[Dict[StrictStr, Any]] = None,
411
- _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
412
- ) -> ApiResponse[TariffsBoxResponse]:
413
- """Тарифы для коробов
414
-
415
- Для товаров, которые поставляются на склад в коробах, метод возвращает [тарифы на остаток](https://seller.wildberries.ru/dynamic-product-categories): - доставка со склада или пункта приёма до покупателя - доставка от покупателя до пункта приёма - хранение на складе WB <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 60 запросов | 1 секунда | 5 запросов | </div>
416
-
417
- :param var_date: Дата в формате ГГГГ-ММ-ДД (required)
418
- :type var_date: str
419
- :param _request_timeout: timeout setting for this request. If one
420
- number provided, it will be total request
421
- timeout. It can also be a pair (tuple) of
422
- (connection, read) timeouts.
423
- :type _request_timeout: int, tuple(int, int), optional
424
- :param _request_auth: set to override the auth_settings for an a single
425
- request; this effectively ignores the
426
- authentication in the spec for a single request.
427
- :type _request_auth: dict, optional
428
- :param _content_type: force content-type for the request.
429
- :type _content_type: str, Optional
430
- :param _headers: set to override the headers for a single
431
- request; this effectively ignores the headers
432
- in the spec for a single request.
433
- :type _headers: dict, optional
434
- :param _host_index: set to override the host_index for a single
435
- request; this effectively ignores the host_index
436
- in the spec for a single request.
437
- :type _host_index: int, optional
438
- :return: Returns the result object.
439
- """ # noqa: E501
440
-
441
- _param = self._api_v1_tariffs_box_get_serialize(
442
- var_date=var_date,
443
- _request_auth=_request_auth,
444
- _content_type=_content_type,
445
- _headers=_headers,
446
- _host_index=_host_index
447
- )
448
-
449
- _response_types_map: Dict[str, Optional[str]] = {
450
- '200': "TariffsBoxResponse",
451
- '400': "BadRequest",
452
- '401': "ApiV1TariffsCommissionGet401Response",
453
- '429': "ApiV1TariffsCommissionGet401Response",
454
- }
455
- response_data = self.api_client.call_api(
456
- *_param,
457
- _request_timeout=_request_timeout
458
- )
459
- response_data.read()
460
- return self.api_client.response_deserialize(
461
- response_data=response_data,
462
- response_types_map=_response_types_map,
463
- )
464
-
465
-
466
- @validate_call
467
- def api_v1_tariffs_box_get_without_preload_content(
468
- self,
469
- var_date: Annotated[StrictStr, Field(description="Дата в формате ГГГГ-ММ-ДД")],
470
- _request_timeout: Union[
471
- None,
472
- Annotated[StrictFloat, Field(gt=0)],
473
- Tuple[
474
- Annotated[StrictFloat, Field(gt=0)],
475
- Annotated[StrictFloat, Field(gt=0)]
476
- ]
477
- ] = None,
478
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
479
- _content_type: Optional[StrictStr] = None,
480
- _headers: Optional[Dict[StrictStr, Any]] = None,
481
- _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
482
- ) -> RESTResponseType:
483
- """Тарифы для коробов
484
-
485
- Для товаров, которые поставляются на склад в коробах, метод возвращает [тарифы на остаток](https://seller.wildberries.ru/dynamic-product-categories): - доставка со склада или пункта приёма до покупателя - доставка от покупателя до пункта приёма - хранение на складе WB <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 60 запросов | 1 секунда | 5 запросов | </div>
486
-
487
- :param var_date: Дата в формате ГГГГ-ММ-ДД (required)
488
- :type var_date: str
489
- :param _request_timeout: timeout setting for this request. If one
490
- number provided, it will be total request
491
- timeout. It can also be a pair (tuple) of
492
- (connection, read) timeouts.
493
- :type _request_timeout: int, tuple(int, int), optional
494
- :param _request_auth: set to override the auth_settings for an a single
495
- request; this effectively ignores the
496
- authentication in the spec for a single request.
497
- :type _request_auth: dict, optional
498
- :param _content_type: force content-type for the request.
499
- :type _content_type: str, Optional
500
- :param _headers: set to override the headers for a single
501
- request; this effectively ignores the headers
502
- in the spec for a single request.
503
- :type _headers: dict, optional
504
- :param _host_index: set to override the host_index for a single
505
- request; this effectively ignores the host_index
506
- in the spec for a single request.
507
- :type _host_index: int, optional
508
- :return: Returns the result object.
509
- """ # noqa: E501
510
-
511
- _param = self._api_v1_tariffs_box_get_serialize(
512
- var_date=var_date,
513
- _request_auth=_request_auth,
514
- _content_type=_content_type,
515
- _headers=_headers,
516
- _host_index=_host_index
517
- )
518
-
519
- _response_types_map: Dict[str, Optional[str]] = {
520
- '200': "TariffsBoxResponse",
521
- '400': "BadRequest",
522
- '401': "ApiV1TariffsCommissionGet401Response",
523
- '429': "ApiV1TariffsCommissionGet401Response",
524
- }
525
- response_data = self.api_client.call_api(
526
- *_param,
527
- _request_timeout=_request_timeout
528
- )
529
- return response_data.response
530
-
531
-
532
- def _api_v1_tariffs_box_get_serialize(
533
- self,
534
- var_date,
535
- _request_auth,
536
- _content_type,
537
- _headers,
538
- _host_index,
539
- ) -> RequestSerialized:
540
-
541
- _hosts = [
542
- 'https://common-api.wildberries.ru'
543
- ]
544
- _host = _hosts[_host_index]
545
-
546
- _collection_formats: Dict[str, str] = {
547
- }
548
-
549
- _path_params: Dict[str, str] = {}
550
- _query_params: List[Tuple[str, str]] = []
551
- _header_params: Dict[str, Optional[str]] = _headers or {}
552
- _form_params: List[Tuple[str, str]] = []
553
- _files: Dict[
554
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
555
- ] = {}
556
- _body_params: Optional[bytes] = None
557
-
558
- # process the path parameters
559
- # process the query parameters
560
- if var_date is not None:
561
-
562
- _query_params.append(('date', var_date))
563
-
564
- # process the header parameters
565
- # process the form parameters
566
- # process the body parameter
567
-
568
-
569
- # set the HTTP header `Accept`
570
- if 'Accept' not in _header_params:
571
- _header_params['Accept'] = self.api_client.select_header_accept(
572
- [
573
- 'application/json',
574
- 'application/problem+json'
575
- ]
576
- )
577
-
578
-
579
- # authentication setting
580
- _auth_settings: List[str] = [
581
- 'HeaderApiKey'
582
- ]
583
-
584
- return self.api_client.param_serialize(
585
- method='GET',
586
- resource_path='/api/v1/tariffs/box',
587
- path_params=_path_params,
588
- query_params=_query_params,
589
- header_params=_header_params,
590
- body=_body_params,
591
- post_params=_form_params,
592
- files=_files,
593
- auth_settings=_auth_settings,
594
- collection_formats=_collection_formats,
595
- _host=_host,
596
- _request_auth=_request_auth
597
- )
598
-
599
-
600
-
601
-
602
- @validate_call
603
- def api_v1_tariffs_pallet_get(
604
- self,
605
- var_date: Annotated[StrictStr, Field(description="Дата в формате ГГГГ-ММ-ДД")],
606
- _request_timeout: Union[
607
- None,
608
- Annotated[StrictFloat, Field(gt=0)],
609
- Tuple[
610
- Annotated[StrictFloat, Field(gt=0)],
611
- Annotated[StrictFloat, Field(gt=0)]
612
- ]
613
- ] = None,
614
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
615
- _content_type: Optional[StrictStr] = None,
616
- _headers: Optional[Dict[StrictStr, Any]] = None,
617
- _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
618
- ) -> TariffsPalletResponse:
619
- """Тарифы для монопаллет
620
-
621
- Для товаров, которые поставляются на склад WB на монопаллетах, метод возвращает [стоимость](https://seller.wildberries.ru/dynamic-product-categories): - доставки со склада до покупателя - доставки от покупателя до склада - хранения на складе WB <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 60 запросов | 1 секунда | 5 запросов | </div>
622
-
623
- :param var_date: Дата в формате ГГГГ-ММ-ДД (required)
624
- :type var_date: str
625
- :param _request_timeout: timeout setting for this request. If one
626
- number provided, it will be total request
627
- timeout. It can also be a pair (tuple) of
628
- (connection, read) timeouts.
629
- :type _request_timeout: int, tuple(int, int), optional
630
- :param _request_auth: set to override the auth_settings for an a single
631
- request; this effectively ignores the
632
- authentication in the spec for a single request.
633
- :type _request_auth: dict, optional
634
- :param _content_type: force content-type for the request.
635
- :type _content_type: str, Optional
636
- :param _headers: set to override the headers for a single
637
- request; this effectively ignores the headers
638
- in the spec for a single request.
639
- :type _headers: dict, optional
640
- :param _host_index: set to override the host_index for a single
641
- request; this effectively ignores the host_index
642
- in the spec for a single request.
643
- :type _host_index: int, optional
644
- :return: Returns the result object.
645
- """ # noqa: E501
646
-
647
- _param = self._api_v1_tariffs_pallet_get_serialize(
648
- var_date=var_date,
649
- _request_auth=_request_auth,
650
- _content_type=_content_type,
651
- _headers=_headers,
652
- _host_index=_host_index
653
- )
654
-
655
- _response_types_map: Dict[str, Optional[str]] = {
656
- '200': "TariffsPalletResponse",
657
- '400': "BadRequest",
658
- '401': "ApiV1TariffsCommissionGet401Response",
659
- '429': "ApiV1TariffsCommissionGet401Response",
660
- }
661
- response_data = self.api_client.call_api(
662
- *_param,
663
- _request_timeout=_request_timeout
664
- )
665
- response_data.read()
666
- return self.api_client.response_deserialize(
667
- response_data=response_data,
668
- response_types_map=_response_types_map,
669
- ).data
670
-
671
-
672
- @validate_call
673
- def api_v1_tariffs_pallet_get_with_http_info(
674
- self,
675
- var_date: Annotated[StrictStr, Field(description="Дата в формате ГГГГ-ММ-ДД")],
676
- _request_timeout: Union[
677
- None,
678
- Annotated[StrictFloat, Field(gt=0)],
679
- Tuple[
680
- Annotated[StrictFloat, Field(gt=0)],
681
- Annotated[StrictFloat, Field(gt=0)]
682
- ]
683
- ] = None,
684
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
685
- _content_type: Optional[StrictStr] = None,
686
- _headers: Optional[Dict[StrictStr, Any]] = None,
687
- _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
688
- ) -> ApiResponse[TariffsPalletResponse]:
689
- """Тарифы для монопаллет
690
-
691
- Для товаров, которые поставляются на склад WB на монопаллетах, метод возвращает [стоимость](https://seller.wildberries.ru/dynamic-product-categories): - доставки со склада до покупателя - доставки от покупателя до склада - хранения на складе WB <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 60 запросов | 1 секунда | 5 запросов | </div>
692
-
693
- :param var_date: Дата в формате ГГГГ-ММ-ДД (required)
694
- :type var_date: str
695
- :param _request_timeout: timeout setting for this request. If one
696
- number provided, it will be total request
697
- timeout. It can also be a pair (tuple) of
698
- (connection, read) timeouts.
699
- :type _request_timeout: int, tuple(int, int), optional
700
- :param _request_auth: set to override the auth_settings for an a single
701
- request; this effectively ignores the
702
- authentication in the spec for a single request.
703
- :type _request_auth: dict, optional
704
- :param _content_type: force content-type for the request.
705
- :type _content_type: str, Optional
706
- :param _headers: set to override the headers for a single
707
- request; this effectively ignores the headers
708
- in the spec for a single request.
709
- :type _headers: dict, optional
710
- :param _host_index: set to override the host_index for a single
711
- request; this effectively ignores the host_index
712
- in the spec for a single request.
713
- :type _host_index: int, optional
714
- :return: Returns the result object.
715
- """ # noqa: E501
716
-
717
- _param = self._api_v1_tariffs_pallet_get_serialize(
718
- var_date=var_date,
719
- _request_auth=_request_auth,
720
- _content_type=_content_type,
721
- _headers=_headers,
722
- _host_index=_host_index
723
- )
724
-
725
- _response_types_map: Dict[str, Optional[str]] = {
726
- '200': "TariffsPalletResponse",
727
- '400': "BadRequest",
728
- '401': "ApiV1TariffsCommissionGet401Response",
729
- '429': "ApiV1TariffsCommissionGet401Response",
730
- }
731
- response_data = self.api_client.call_api(
732
- *_param,
733
- _request_timeout=_request_timeout
734
- )
735
- response_data.read()
736
- return self.api_client.response_deserialize(
737
- response_data=response_data,
738
- response_types_map=_response_types_map,
739
- )
740
-
741
-
742
- @validate_call
743
- def api_v1_tariffs_pallet_get_without_preload_content(
744
- self,
745
- var_date: Annotated[StrictStr, Field(description="Дата в формате ГГГГ-ММ-ДД")],
746
- _request_timeout: Union[
747
- None,
748
- Annotated[StrictFloat, Field(gt=0)],
749
- Tuple[
750
- Annotated[StrictFloat, Field(gt=0)],
751
- Annotated[StrictFloat, Field(gt=0)]
752
- ]
753
- ] = None,
754
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
755
- _content_type: Optional[StrictStr] = None,
756
- _headers: Optional[Dict[StrictStr, Any]] = None,
757
- _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
758
- ) -> RESTResponseType:
759
- """Тарифы для монопаллет
760
-
761
- Для товаров, которые поставляются на склад WB на монопаллетах, метод возвращает [стоимость](https://seller.wildberries.ru/dynamic-product-categories): - доставки со склада до покупателя - доставки от покупателя до склада - хранения на складе WB <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 60 запросов | 1 секунда | 5 запросов | </div>
762
-
763
- :param var_date: Дата в формате ГГГГ-ММ-ДД (required)
764
- :type var_date: str
765
- :param _request_timeout: timeout setting for this request. If one
766
- number provided, it will be total request
767
- timeout. It can also be a pair (tuple) of
768
- (connection, read) timeouts.
769
- :type _request_timeout: int, tuple(int, int), optional
770
- :param _request_auth: set to override the auth_settings for an a single
771
- request; this effectively ignores the
772
- authentication in the spec for a single request.
773
- :type _request_auth: dict, optional
774
- :param _content_type: force content-type for the request.
775
- :type _content_type: str, Optional
776
- :param _headers: set to override the headers for a single
777
- request; this effectively ignores the headers
778
- in the spec for a single request.
779
- :type _headers: dict, optional
780
- :param _host_index: set to override the host_index for a single
781
- request; this effectively ignores the host_index
782
- in the spec for a single request.
783
- :type _host_index: int, optional
784
- :return: Returns the result object.
785
- """ # noqa: E501
786
-
787
- _param = self._api_v1_tariffs_pallet_get_serialize(
788
- var_date=var_date,
789
- _request_auth=_request_auth,
790
- _content_type=_content_type,
791
- _headers=_headers,
792
- _host_index=_host_index
793
- )
794
-
795
- _response_types_map: Dict[str, Optional[str]] = {
796
- '200': "TariffsPalletResponse",
797
- '400': "BadRequest",
798
- '401': "ApiV1TariffsCommissionGet401Response",
799
- '429': "ApiV1TariffsCommissionGet401Response",
800
- }
801
- response_data = self.api_client.call_api(
802
- *_param,
803
- _request_timeout=_request_timeout
804
- )
805
- return response_data.response
806
-
807
-
808
- def _api_v1_tariffs_pallet_get_serialize(
809
- self,
810
- var_date,
811
- _request_auth,
812
- _content_type,
813
- _headers,
814
- _host_index,
815
- ) -> RequestSerialized:
816
-
817
- _hosts = [
818
- 'https://common-api.wildberries.ru'
819
- ]
820
- _host = _hosts[_host_index]
821
-
822
- _collection_formats: Dict[str, str] = {
823
- }
824
-
825
- _path_params: Dict[str, str] = {}
826
- _query_params: List[Tuple[str, str]] = []
827
- _header_params: Dict[str, Optional[str]] = _headers or {}
828
- _form_params: List[Tuple[str, str]] = []
829
- _files: Dict[
830
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
831
- ] = {}
832
- _body_params: Optional[bytes] = None
833
-
834
- # process the path parameters
835
- # process the query parameters
836
- if var_date is not None:
837
-
838
- _query_params.append(('date', var_date))
839
-
840
- # process the header parameters
841
- # process the form parameters
842
- # process the body parameter
843
-
844
-
845
- # set the HTTP header `Accept`
846
- if 'Accept' not in _header_params:
847
- _header_params['Accept'] = self.api_client.select_header_accept(
848
- [
849
- 'application/json',
850
- 'application/problem+json'
851
- ]
852
- )
853
-
854
-
855
- # authentication setting
856
- _auth_settings: List[str] = [
857
- 'HeaderApiKey'
858
- ]
859
-
860
- return self.api_client.param_serialize(
861
- method='GET',
862
- resource_path='/api/v1/tariffs/pallet',
863
- path_params=_path_params,
864
- query_params=_query_params,
865
- header_params=_header_params,
866
- body=_body_params,
867
- post_params=_form_params,
868
- files=_files,
869
- auth_settings=_auth_settings,
870
- collection_formats=_collection_formats,
871
- _host=_host,
872
- _request_auth=_request_auth
873
- )
874
-
875
-
876
-
877
-
878
- @validate_call
879
- def api_v1_tariffs_return_get(
880
- self,
881
- var_date: Annotated[StrictStr, Field(description="Дата в формате ГГГГ-ММ-ДД")],
882
- _request_timeout: Union[
883
- None,
884
- Annotated[StrictFloat, Field(gt=0)],
885
- Tuple[
886
- Annotated[StrictFloat, Field(gt=0)],
887
- Annotated[StrictFloat, Field(gt=0)]
888
- ]
889
- ] = None,
890
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
891
- _content_type: Optional[StrictStr] = None,
892
- _headers: Optional[Dict[StrictStr, Any]] = None,
893
- _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
894
- ) -> ReturnTariffsResponse:
895
- """Тарифы на возврат
896
-
897
- Метод возвращает [тарифы](https://seller.wildberries.ru/dynamic-product-categories/return-cost): - на перевозку товаров со склада WB или из пункта приёма до продавца - на обратную перевозку возвратов, которые не забрал продавец <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 60 запросов | 1 секунда | 5 запросов | </div>
898
-
899
- :param var_date: Дата в формате ГГГГ-ММ-ДД (required)
900
- :type var_date: str
901
- :param _request_timeout: timeout setting for this request. If one
902
- number provided, it will be total request
903
- timeout. It can also be a pair (tuple) of
904
- (connection, read) timeouts.
905
- :type _request_timeout: int, tuple(int, int), optional
906
- :param _request_auth: set to override the auth_settings for an a single
907
- request; this effectively ignores the
908
- authentication in the spec for a single request.
909
- :type _request_auth: dict, optional
910
- :param _content_type: force content-type for the request.
911
- :type _content_type: str, Optional
912
- :param _headers: set to override the headers for a single
913
- request; this effectively ignores the headers
914
- in the spec for a single request.
915
- :type _headers: dict, optional
916
- :param _host_index: set to override the host_index for a single
917
- request; this effectively ignores the host_index
918
- in the spec for a single request.
919
- :type _host_index: int, optional
920
- :return: Returns the result object.
921
- """ # noqa: E501
922
-
923
- _param = self._api_v1_tariffs_return_get_serialize(
924
- var_date=var_date,
925
- _request_auth=_request_auth,
926
- _content_type=_content_type,
927
- _headers=_headers,
928
- _host_index=_host_index
929
- )
930
-
931
- _response_types_map: Dict[str, Optional[str]] = {
932
- '200': "ReturnTariffsResponse",
933
- '400': "BadRequest",
934
- '401': "ApiV1TariffsCommissionGet401Response",
935
- '429': "ApiV1TariffsCommissionGet401Response",
936
- }
937
- response_data = self.api_client.call_api(
938
- *_param,
939
- _request_timeout=_request_timeout
940
- )
941
- response_data.read()
942
- return self.api_client.response_deserialize(
943
- response_data=response_data,
944
- response_types_map=_response_types_map,
945
- ).data
946
-
947
-
948
- @validate_call
949
- def api_v1_tariffs_return_get_with_http_info(
950
- self,
951
- var_date: Annotated[StrictStr, Field(description="Дата в формате ГГГГ-ММ-ДД")],
952
- _request_timeout: Union[
953
- None,
954
- Annotated[StrictFloat, Field(gt=0)],
955
- Tuple[
956
- Annotated[StrictFloat, Field(gt=0)],
957
- Annotated[StrictFloat, Field(gt=0)]
958
- ]
959
- ] = None,
960
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
961
- _content_type: Optional[StrictStr] = None,
962
- _headers: Optional[Dict[StrictStr, Any]] = None,
963
- _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
964
- ) -> ApiResponse[ReturnTariffsResponse]:
965
- """Тарифы на возврат
966
-
967
- Метод возвращает [тарифы](https://seller.wildberries.ru/dynamic-product-categories/return-cost): - на перевозку товаров со склада WB или из пункта приёма до продавца - на обратную перевозку возвратов, которые не забрал продавец <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 60 запросов | 1 секунда | 5 запросов | </div>
968
-
969
- :param var_date: Дата в формате ГГГГ-ММ-ДД (required)
970
- :type var_date: str
971
- :param _request_timeout: timeout setting for this request. If one
972
- number provided, it will be total request
973
- timeout. It can also be a pair (tuple) of
974
- (connection, read) timeouts.
975
- :type _request_timeout: int, tuple(int, int), optional
976
- :param _request_auth: set to override the auth_settings for an a single
977
- request; this effectively ignores the
978
- authentication in the spec for a single request.
979
- :type _request_auth: dict, optional
980
- :param _content_type: force content-type for the request.
981
- :type _content_type: str, Optional
982
- :param _headers: set to override the headers for a single
983
- request; this effectively ignores the headers
984
- in the spec for a single request.
985
- :type _headers: dict, optional
986
- :param _host_index: set to override the host_index for a single
987
- request; this effectively ignores the host_index
988
- in the spec for a single request.
989
- :type _host_index: int, optional
990
- :return: Returns the result object.
991
- """ # noqa: E501
992
-
993
- _param = self._api_v1_tariffs_return_get_serialize(
994
- var_date=var_date,
995
- _request_auth=_request_auth,
996
- _content_type=_content_type,
997
- _headers=_headers,
998
- _host_index=_host_index
999
- )
1000
-
1001
- _response_types_map: Dict[str, Optional[str]] = {
1002
- '200': "ReturnTariffsResponse",
1003
- '400': "BadRequest",
1004
- '401': "ApiV1TariffsCommissionGet401Response",
1005
- '429': "ApiV1TariffsCommissionGet401Response",
1006
- }
1007
- response_data = self.api_client.call_api(
1008
- *_param,
1009
- _request_timeout=_request_timeout
1010
- )
1011
- response_data.read()
1012
- return self.api_client.response_deserialize(
1013
- response_data=response_data,
1014
- response_types_map=_response_types_map,
1015
- )
1016
-
1017
-
1018
- @validate_call
1019
- def api_v1_tariffs_return_get_without_preload_content(
1020
- self,
1021
- var_date: Annotated[StrictStr, Field(description="Дата в формате ГГГГ-ММ-ДД")],
1022
- _request_timeout: Union[
1023
- None,
1024
- Annotated[StrictFloat, Field(gt=0)],
1025
- Tuple[
1026
- Annotated[StrictFloat, Field(gt=0)],
1027
- Annotated[StrictFloat, Field(gt=0)]
1028
- ]
1029
- ] = None,
1030
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1031
- _content_type: Optional[StrictStr] = None,
1032
- _headers: Optional[Dict[StrictStr, Any]] = None,
1033
- _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
1034
- ) -> RESTResponseType:
1035
- """Тарифы на возврат
1036
-
1037
- Метод возвращает [тарифы](https://seller.wildberries.ru/dynamic-product-categories/return-cost): - на перевозку товаров со склада WB или из пункта приёма до продавца - на обратную перевозку возвратов, которые не забрал продавец <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 60 запросов | 1 секунда | 5 запросов | </div>
1038
-
1039
- :param var_date: Дата в формате ГГГГ-ММ-ДД (required)
1040
- :type var_date: str
1041
- :param _request_timeout: timeout setting for this request. If one
1042
- number provided, it will be total request
1043
- timeout. It can also be a pair (tuple) of
1044
- (connection, read) timeouts.
1045
- :type _request_timeout: int, tuple(int, int), optional
1046
- :param _request_auth: set to override the auth_settings for an a single
1047
- request; this effectively ignores the
1048
- authentication in the spec for a single request.
1049
- :type _request_auth: dict, optional
1050
- :param _content_type: force content-type for the request.
1051
- :type _content_type: str, Optional
1052
- :param _headers: set to override the headers for a single
1053
- request; this effectively ignores the headers
1054
- in the spec for a single request.
1055
- :type _headers: dict, optional
1056
- :param _host_index: set to override the host_index for a single
1057
- request; this effectively ignores the host_index
1058
- in the spec for a single request.
1059
- :type _host_index: int, optional
1060
- :return: Returns the result object.
1061
- """ # noqa: E501
1062
-
1063
- _param = self._api_v1_tariffs_return_get_serialize(
1064
- var_date=var_date,
1065
- _request_auth=_request_auth,
1066
- _content_type=_content_type,
1067
- _headers=_headers,
1068
- _host_index=_host_index
1069
- )
1070
-
1071
- _response_types_map: Dict[str, Optional[str]] = {
1072
- '200': "ReturnTariffsResponse",
1073
- '400': "BadRequest",
1074
- '401': "ApiV1TariffsCommissionGet401Response",
1075
- '429': "ApiV1TariffsCommissionGet401Response",
1076
- }
1077
- response_data = self.api_client.call_api(
1078
- *_param,
1079
- _request_timeout=_request_timeout
1080
- )
1081
- return response_data.response
1082
-
1083
-
1084
- def _api_v1_tariffs_return_get_serialize(
1085
- self,
1086
- var_date,
1087
- _request_auth,
1088
- _content_type,
1089
- _headers,
1090
- _host_index,
1091
- ) -> RequestSerialized:
1092
-
1093
- _hosts = [
1094
- 'https://common-api.wildberries.ru'
1095
- ]
1096
- _host = _hosts[_host_index]
1097
-
1098
- _collection_formats: Dict[str, str] = {
1099
- }
1100
-
1101
- _path_params: Dict[str, str] = {}
1102
- _query_params: List[Tuple[str, str]] = []
1103
- _header_params: Dict[str, Optional[str]] = _headers or {}
1104
- _form_params: List[Tuple[str, str]] = []
1105
- _files: Dict[
1106
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1107
- ] = {}
1108
- _body_params: Optional[bytes] = None
1109
-
1110
- # process the path parameters
1111
- # process the query parameters
1112
- if var_date is not None:
1113
-
1114
- _query_params.append(('date', var_date))
1115
-
1116
- # process the header parameters
1117
- # process the form parameters
1118
- # process the body parameter
1119
-
1120
-
1121
- # set the HTTP header `Accept`
1122
- if 'Accept' not in _header_params:
1123
- _header_params['Accept'] = self.api_client.select_header_accept(
1124
- [
1125
- 'application/json',
1126
- 'application/problem+json'
1127
- ]
1128
- )
1129
-
1130
-
1131
- # authentication setting
1132
- _auth_settings: List[str] = [
1133
- 'HeaderApiKey'
1134
- ]
1135
-
1136
- return self.api_client.param_serialize(
1137
- method='GET',
1138
- resource_path='/api/v1/tariffs/return',
1139
- path_params=_path_params,
1140
- query_params=_query_params,
1141
- header_params=_header_params,
1142
- body=_body_params,
1143
- post_params=_form_params,
1144
- files=_files,
1145
- auth_settings=_auth_settings,
1146
- collection_formats=_collection_formats,
1147
- _host=_host,
1148
- _request_auth=_request_auth
1149
- )
1150
-
1151
-