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
@@ -17,9 +17,13 @@ from typing import Any, Dict, List, Optional, Tuple, Union
17
17
  from typing_extensions import Annotated
18
18
 
19
19
  from pydantic import Field, StrictStr
20
- from typing import Optional
20
+ from typing import List, Optional
21
21
  from typing_extensions import Annotated
22
22
  from wildberries_sdk.tariffs.models.api_v1_tariffs_commission_get200_response import ApiV1TariffsCommissionGet200Response
23
+ from wildberries_sdk.tariffs.models.models_acceptance_coefficient import ModelsAcceptanceCoefficient
24
+ from wildberries_sdk.tariffs.models.return_tariffs_response import ReturnTariffsResponse
25
+ from wildberries_sdk.tariffs.models.tariffs_box_response import TariffsBoxResponse
26
+ from wildberries_sdk.tariffs.models.tariffs_pallet_response import TariffsPalletResponse
23
27
 
24
28
  from wildberries_sdk.tariffs.api_client import ApiClient, RequestSerialized
25
29
  from wildberries_sdk.tariffs.api_response import ApiResponse
@@ -39,10 +43,913 @@ class DefaultApi:
39
43
  self.api_client = api_client
40
44
 
41
45
 
46
+ @validate_call
47
+ def api_tariffs_v1_acceptance_coefficients_get(
48
+ self,
49
+ warehouse_ids: Annotated[Optional[StrictStr], Field(description="ID складов.<br>По умолчанию возвращаются данные по всем складам")] = None,
50
+ _request_timeout: Union[
51
+ None,
52
+ Annotated[StrictFloat, Field(gt=0)],
53
+ Tuple[
54
+ Annotated[StrictFloat, Field(gt=0)],
55
+ Annotated[StrictFloat, Field(gt=0)]
56
+ ]
57
+ ] = None,
58
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
59
+ _content_type: Optional[StrictStr] = None,
60
+ _headers: Optional[Dict[StrictStr, Any]] = None,
61
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
62
+ ) -> List[ModelsAcceptanceCoefficient]:
63
+ """Тарифы на поставку
64
+
65
+ Метод возвращает тарифы на поставку для конкретных складов на ближайшие 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>
66
+
67
+ :param warehouse_ids: ID складов.<br>По умолчанию возвращаются данные по всем складам
68
+ :type warehouse_ids: str
69
+ :param _request_timeout: timeout setting for this request. If one
70
+ number provided, it will be total request
71
+ timeout. It can also be a pair (tuple) of
72
+ (connection, read) timeouts.
73
+ :type _request_timeout: int, tuple(int, int), optional
74
+ :param _request_auth: set to override the auth_settings for an a single
75
+ request; this effectively ignores the
76
+ authentication in the spec for a single request.
77
+ :type _request_auth: dict, optional
78
+ :param _content_type: force content-type for the request.
79
+ :type _content_type: str, Optional
80
+ :param _headers: set to override the headers for a single
81
+ request; this effectively ignores the headers
82
+ in the spec for a single request.
83
+ :type _headers: dict, optional
84
+ :param _host_index: set to override the host_index for a single
85
+ request; this effectively ignores the host_index
86
+ in the spec for a single request.
87
+ :type _host_index: int, optional
88
+ :return: Returns the result object.
89
+ """ # noqa: E501
90
+
91
+ _param = self._api_tariffs_v1_acceptance_coefficients_get_serialize(
92
+ warehouse_ids=warehouse_ids,
93
+ _request_auth=_request_auth,
94
+ _content_type=_content_type,
95
+ _headers=_headers,
96
+ _host_index=_host_index
97
+ )
98
+
99
+ _response_types_map: Dict[str, Optional[str]] = {
100
+ '200': "List[ModelsAcceptanceCoefficient]",
101
+ '400': "ModelsErrorModel",
102
+ '401': "ApiV1TariffsCommissionGet401Response",
103
+ '403': None,
104
+ '404': None,
105
+ '429': "ApiV1TariffsCommissionGet401Response",
106
+ }
107
+ response_data = self.api_client.call_api(
108
+ *_param,
109
+ _request_timeout=_request_timeout
110
+ )
111
+ response_data.read()
112
+ return self.api_client.response_deserialize(
113
+ response_data=response_data,
114
+ response_types_map=_response_types_map,
115
+ ).data
116
+
117
+
118
+ @validate_call
119
+ def api_tariffs_v1_acceptance_coefficients_get_with_http_info(
120
+ self,
121
+ warehouse_ids: Annotated[Optional[StrictStr], Field(description="ID складов.<br>По умолчанию возвращаются данные по всем складам")] = None,
122
+ _request_timeout: Union[
123
+ None,
124
+ Annotated[StrictFloat, Field(gt=0)],
125
+ Tuple[
126
+ Annotated[StrictFloat, Field(gt=0)],
127
+ Annotated[StrictFloat, Field(gt=0)]
128
+ ]
129
+ ] = None,
130
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
131
+ _content_type: Optional[StrictStr] = None,
132
+ _headers: Optional[Dict[StrictStr, Any]] = None,
133
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
134
+ ) -> ApiResponse[List[ModelsAcceptanceCoefficient]]:
135
+ """Тарифы на поставку
136
+
137
+ Метод возвращает тарифы на поставку для конкретных складов на ближайшие 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>
138
+
139
+ :param warehouse_ids: ID складов.<br>По умолчанию возвращаются данные по всем складам
140
+ :type warehouse_ids: str
141
+ :param _request_timeout: timeout setting for this request. If one
142
+ number provided, it will be total request
143
+ timeout. It can also be a pair (tuple) of
144
+ (connection, read) timeouts.
145
+ :type _request_timeout: int, tuple(int, int), optional
146
+ :param _request_auth: set to override the auth_settings for an a single
147
+ request; this effectively ignores the
148
+ authentication in the spec for a single request.
149
+ :type _request_auth: dict, optional
150
+ :param _content_type: force content-type for the request.
151
+ :type _content_type: str, Optional
152
+ :param _headers: set to override the headers for a single
153
+ request; this effectively ignores the headers
154
+ in the spec for a single request.
155
+ :type _headers: dict, optional
156
+ :param _host_index: set to override the host_index for a single
157
+ request; this effectively ignores the host_index
158
+ in the spec for a single request.
159
+ :type _host_index: int, optional
160
+ :return: Returns the result object.
161
+ """ # noqa: E501
162
+
163
+ _param = self._api_tariffs_v1_acceptance_coefficients_get_serialize(
164
+ warehouse_ids=warehouse_ids,
165
+ _request_auth=_request_auth,
166
+ _content_type=_content_type,
167
+ _headers=_headers,
168
+ _host_index=_host_index
169
+ )
170
+
171
+ _response_types_map: Dict[str, Optional[str]] = {
172
+ '200': "List[ModelsAcceptanceCoefficient]",
173
+ '400': "ModelsErrorModel",
174
+ '401': "ApiV1TariffsCommissionGet401Response",
175
+ '403': None,
176
+ '404': None,
177
+ '429': "ApiV1TariffsCommissionGet401Response",
178
+ }
179
+ response_data = self.api_client.call_api(
180
+ *_param,
181
+ _request_timeout=_request_timeout
182
+ )
183
+ response_data.read()
184
+ return self.api_client.response_deserialize(
185
+ response_data=response_data,
186
+ response_types_map=_response_types_map,
187
+ )
188
+
189
+
190
+ @validate_call
191
+ def api_tariffs_v1_acceptance_coefficients_get_without_preload_content(
192
+ self,
193
+ warehouse_ids: Annotated[Optional[StrictStr], Field(description="ID складов.<br>По умолчанию возвращаются данные по всем складам")] = None,
194
+ _request_timeout: Union[
195
+ None,
196
+ Annotated[StrictFloat, Field(gt=0)],
197
+ Tuple[
198
+ Annotated[StrictFloat, Field(gt=0)],
199
+ Annotated[StrictFloat, Field(gt=0)]
200
+ ]
201
+ ] = None,
202
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
203
+ _content_type: Optional[StrictStr] = None,
204
+ _headers: Optional[Dict[StrictStr, Any]] = None,
205
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
206
+ ) -> RESTResponseType:
207
+ """Тарифы на поставку
208
+
209
+ Метод возвращает тарифы на поставку для конкретных складов на ближайшие 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>
210
+
211
+ :param warehouse_ids: ID складов.<br>По умолчанию возвращаются данные по всем складам
212
+ :type warehouse_ids: str
213
+ :param _request_timeout: timeout setting for this request. If one
214
+ number provided, it will be total request
215
+ timeout. It can also be a pair (tuple) of
216
+ (connection, read) timeouts.
217
+ :type _request_timeout: int, tuple(int, int), optional
218
+ :param _request_auth: set to override the auth_settings for an a single
219
+ request; this effectively ignores the
220
+ authentication in the spec for a single request.
221
+ :type _request_auth: dict, optional
222
+ :param _content_type: force content-type for the request.
223
+ :type _content_type: str, Optional
224
+ :param _headers: set to override the headers for a single
225
+ request; this effectively ignores the headers
226
+ in the spec for a single request.
227
+ :type _headers: dict, optional
228
+ :param _host_index: set to override the host_index for a single
229
+ request; this effectively ignores the host_index
230
+ in the spec for a single request.
231
+ :type _host_index: int, optional
232
+ :return: Returns the result object.
233
+ """ # noqa: E501
234
+
235
+ _param = self._api_tariffs_v1_acceptance_coefficients_get_serialize(
236
+ warehouse_ids=warehouse_ids,
237
+ _request_auth=_request_auth,
238
+ _content_type=_content_type,
239
+ _headers=_headers,
240
+ _host_index=_host_index
241
+ )
242
+
243
+ _response_types_map: Dict[str, Optional[str]] = {
244
+ '200': "List[ModelsAcceptanceCoefficient]",
245
+ '400': "ModelsErrorModel",
246
+ '401': "ApiV1TariffsCommissionGet401Response",
247
+ '403': None,
248
+ '404': None,
249
+ '429': "ApiV1TariffsCommissionGet401Response",
250
+ }
251
+ response_data = self.api_client.call_api(
252
+ *_param,
253
+ _request_timeout=_request_timeout
254
+ )
255
+ return response_data.response
256
+
257
+
258
+ def _api_tariffs_v1_acceptance_coefficients_get_serialize(
259
+ self,
260
+ warehouse_ids,
261
+ _request_auth,
262
+ _content_type,
263
+ _headers,
264
+ _host_index,
265
+ ) -> RequestSerialized:
266
+
267
+ _hosts = [
268
+ 'https://common-api.wildberries.ru'
269
+ ]
270
+ _host = _hosts[_host_index]
271
+
272
+ _collection_formats: Dict[str, str] = {
273
+ }
274
+
275
+ _path_params: Dict[str, str] = {}
276
+ _query_params: List[Tuple[str, str]] = []
277
+ _header_params: Dict[str, Optional[str]] = _headers or {}
278
+ _form_params: List[Tuple[str, str]] = []
279
+ _files: Dict[
280
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
281
+ ] = {}
282
+ _body_params: Optional[bytes] = None
283
+
284
+ # process the path parameters
285
+ # process the query parameters
286
+ if warehouse_ids is not None:
287
+
288
+ _query_params.append(('warehouseIDs', warehouse_ids))
289
+
290
+ # process the header parameters
291
+ # process the form parameters
292
+ # process the body parameter
293
+
294
+
295
+ # set the HTTP header `Accept`
296
+ if 'Accept' not in _header_params:
297
+ _header_params['Accept'] = self.api_client.select_header_accept(
298
+ [
299
+ 'application/json'
300
+ ]
301
+ )
302
+
303
+
304
+ # authentication setting
305
+ _auth_settings: List[str] = [
306
+ 'HeaderApiKey'
307
+ ]
308
+
309
+ return self.api_client.param_serialize(
310
+ method='GET',
311
+ resource_path='/api/tariffs/v1/acceptance/coefficients',
312
+ path_params=_path_params,
313
+ query_params=_query_params,
314
+ header_params=_header_params,
315
+ body=_body_params,
316
+ post_params=_form_params,
317
+ files=_files,
318
+ auth_settings=_auth_settings,
319
+ collection_formats=_collection_formats,
320
+ _host=_host,
321
+ _request_auth=_request_auth
322
+ )
323
+
324
+
325
+
326
+
327
+ @validate_call
328
+ def api_v1_tariffs_box_get(
329
+ self,
330
+ var_date: Annotated[StrictStr, Field(description="Дата в формате ГГГГ-ММ-ДД")],
331
+ _request_timeout: Union[
332
+ None,
333
+ Annotated[StrictFloat, Field(gt=0)],
334
+ Tuple[
335
+ Annotated[StrictFloat, Field(gt=0)],
336
+ Annotated[StrictFloat, Field(gt=0)]
337
+ ]
338
+ ] = None,
339
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
340
+ _content_type: Optional[StrictStr] = None,
341
+ _headers: Optional[Dict[StrictStr, Any]] = None,
342
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
343
+ ) -> TariffsBoxResponse:
344
+ """Тарифы для коробов
345
+
346
+ Для товаров, которые поставляются на склад в коробах, метод возвращает [тарифы на остаток](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>
347
+
348
+ :param var_date: Дата в формате ГГГГ-ММ-ДД (required)
349
+ :type var_date: str
350
+ :param _request_timeout: timeout setting for this request. If one
351
+ number provided, it will be total request
352
+ timeout. It can also be a pair (tuple) of
353
+ (connection, read) timeouts.
354
+ :type _request_timeout: int, tuple(int, int), optional
355
+ :param _request_auth: set to override the auth_settings for an a single
356
+ request; this effectively ignores the
357
+ authentication in the spec for a single request.
358
+ :type _request_auth: dict, optional
359
+ :param _content_type: force content-type for the request.
360
+ :type _content_type: str, Optional
361
+ :param _headers: set to override the headers for a single
362
+ request; this effectively ignores the headers
363
+ in the spec for a single request.
364
+ :type _headers: dict, optional
365
+ :param _host_index: set to override the host_index for a single
366
+ request; this effectively ignores the host_index
367
+ in the spec for a single request.
368
+ :type _host_index: int, optional
369
+ :return: Returns the result object.
370
+ """ # noqa: E501
371
+
372
+ _param = self._api_v1_tariffs_box_get_serialize(
373
+ var_date=var_date,
374
+ _request_auth=_request_auth,
375
+ _content_type=_content_type,
376
+ _headers=_headers,
377
+ _host_index=_host_index
378
+ )
379
+
380
+ _response_types_map: Dict[str, Optional[str]] = {
381
+ '200': "TariffsBoxResponse",
382
+ '400': "BadRequest",
383
+ '401': "ApiV1TariffsCommissionGet401Response",
384
+ '429': "ApiV1TariffsCommissionGet401Response",
385
+ }
386
+ response_data = self.api_client.call_api(
387
+ *_param,
388
+ _request_timeout=_request_timeout
389
+ )
390
+ response_data.read()
391
+ return self.api_client.response_deserialize(
392
+ response_data=response_data,
393
+ response_types_map=_response_types_map,
394
+ ).data
395
+
396
+
397
+ @validate_call
398
+ def api_v1_tariffs_box_get_with_http_info(
399
+ self,
400
+ var_date: Annotated[StrictStr, Field(description="Дата в формате ГГГГ-ММ-ДД")],
401
+ _request_timeout: Union[
402
+ None,
403
+ Annotated[StrictFloat, Field(gt=0)],
404
+ Tuple[
405
+ Annotated[StrictFloat, Field(gt=0)],
406
+ Annotated[StrictFloat, Field(gt=0)]
407
+ ]
408
+ ] = None,
409
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
410
+ _content_type: Optional[StrictStr] = None,
411
+ _headers: Optional[Dict[StrictStr, Any]] = None,
412
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
413
+ ) -> ApiResponse[TariffsBoxResponse]:
414
+ """Тарифы для коробов
415
+
416
+ Для товаров, которые поставляются на склад в коробах, метод возвращает [тарифы на остаток](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>
417
+
418
+ :param var_date: Дата в формате ГГГГ-ММ-ДД (required)
419
+ :type var_date: str
420
+ :param _request_timeout: timeout setting for this request. If one
421
+ number provided, it will be total request
422
+ timeout. It can also be a pair (tuple) of
423
+ (connection, read) timeouts.
424
+ :type _request_timeout: int, tuple(int, int), optional
425
+ :param _request_auth: set to override the auth_settings for an a single
426
+ request; this effectively ignores the
427
+ authentication in the spec for a single request.
428
+ :type _request_auth: dict, optional
429
+ :param _content_type: force content-type for the request.
430
+ :type _content_type: str, Optional
431
+ :param _headers: set to override the headers for a single
432
+ request; this effectively ignores the headers
433
+ in the spec for a single request.
434
+ :type _headers: dict, optional
435
+ :param _host_index: set to override the host_index for a single
436
+ request; this effectively ignores the host_index
437
+ in the spec for a single request.
438
+ :type _host_index: int, optional
439
+ :return: Returns the result object.
440
+ """ # noqa: E501
441
+
442
+ _param = self._api_v1_tariffs_box_get_serialize(
443
+ var_date=var_date,
444
+ _request_auth=_request_auth,
445
+ _content_type=_content_type,
446
+ _headers=_headers,
447
+ _host_index=_host_index
448
+ )
449
+
450
+ _response_types_map: Dict[str, Optional[str]] = {
451
+ '200': "TariffsBoxResponse",
452
+ '400': "BadRequest",
453
+ '401': "ApiV1TariffsCommissionGet401Response",
454
+ '429': "ApiV1TariffsCommissionGet401Response",
455
+ }
456
+ response_data = self.api_client.call_api(
457
+ *_param,
458
+ _request_timeout=_request_timeout
459
+ )
460
+ response_data.read()
461
+ return self.api_client.response_deserialize(
462
+ response_data=response_data,
463
+ response_types_map=_response_types_map,
464
+ )
465
+
466
+
467
+ @validate_call
468
+ def api_v1_tariffs_box_get_without_preload_content(
469
+ self,
470
+ var_date: Annotated[StrictStr, Field(description="Дата в формате ГГГГ-ММ-ДД")],
471
+ _request_timeout: Union[
472
+ None,
473
+ Annotated[StrictFloat, Field(gt=0)],
474
+ Tuple[
475
+ Annotated[StrictFloat, Field(gt=0)],
476
+ Annotated[StrictFloat, Field(gt=0)]
477
+ ]
478
+ ] = None,
479
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
480
+ _content_type: Optional[StrictStr] = None,
481
+ _headers: Optional[Dict[StrictStr, Any]] = None,
482
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
483
+ ) -> RESTResponseType:
484
+ """Тарифы для коробов
485
+
486
+ Для товаров, которые поставляются на склад в коробах, метод возвращает [тарифы на остаток](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>
487
+
488
+ :param var_date: Дата в формате ГГГГ-ММ-ДД (required)
489
+ :type var_date: str
490
+ :param _request_timeout: timeout setting for this request. If one
491
+ number provided, it will be total request
492
+ timeout. It can also be a pair (tuple) of
493
+ (connection, read) timeouts.
494
+ :type _request_timeout: int, tuple(int, int), optional
495
+ :param _request_auth: set to override the auth_settings for an a single
496
+ request; this effectively ignores the
497
+ authentication in the spec for a single request.
498
+ :type _request_auth: dict, optional
499
+ :param _content_type: force content-type for the request.
500
+ :type _content_type: str, Optional
501
+ :param _headers: set to override the headers for a single
502
+ request; this effectively ignores the headers
503
+ in the spec for a single request.
504
+ :type _headers: dict, optional
505
+ :param _host_index: set to override the host_index for a single
506
+ request; this effectively ignores the host_index
507
+ in the spec for a single request.
508
+ :type _host_index: int, optional
509
+ :return: Returns the result object.
510
+ """ # noqa: E501
511
+
512
+ _param = self._api_v1_tariffs_box_get_serialize(
513
+ var_date=var_date,
514
+ _request_auth=_request_auth,
515
+ _content_type=_content_type,
516
+ _headers=_headers,
517
+ _host_index=_host_index
518
+ )
519
+
520
+ _response_types_map: Dict[str, Optional[str]] = {
521
+ '200': "TariffsBoxResponse",
522
+ '400': "BadRequest",
523
+ '401': "ApiV1TariffsCommissionGet401Response",
524
+ '429': "ApiV1TariffsCommissionGet401Response",
525
+ }
526
+ response_data = self.api_client.call_api(
527
+ *_param,
528
+ _request_timeout=_request_timeout
529
+ )
530
+ return response_data.response
531
+
532
+
533
+ def _api_v1_tariffs_box_get_serialize(
534
+ self,
535
+ var_date,
536
+ _request_auth,
537
+ _content_type,
538
+ _headers,
539
+ _host_index,
540
+ ) -> RequestSerialized:
541
+
542
+ _hosts = [
543
+ 'https://common-api.wildberries.ru'
544
+ ]
545
+ _host = _hosts[_host_index]
546
+
547
+ _collection_formats: Dict[str, str] = {
548
+ }
549
+
550
+ _path_params: Dict[str, str] = {}
551
+ _query_params: List[Tuple[str, str]] = []
552
+ _header_params: Dict[str, Optional[str]] = _headers or {}
553
+ _form_params: List[Tuple[str, str]] = []
554
+ _files: Dict[
555
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
556
+ ] = {}
557
+ _body_params: Optional[bytes] = None
558
+
559
+ # process the path parameters
560
+ # process the query parameters
561
+ if var_date is not None:
562
+
563
+ _query_params.append(('date', var_date))
564
+
565
+ # process the header parameters
566
+ # process the form parameters
567
+ # process the body parameter
568
+
569
+
570
+ # set the HTTP header `Accept`
571
+ if 'Accept' not in _header_params:
572
+ _header_params['Accept'] = self.api_client.select_header_accept(
573
+ [
574
+ 'application/json',
575
+ 'application/problem+json'
576
+ ]
577
+ )
578
+
579
+
580
+ # authentication setting
581
+ _auth_settings: List[str] = [
582
+ 'HeaderApiKey'
583
+ ]
584
+
585
+ return self.api_client.param_serialize(
586
+ method='GET',
587
+ resource_path='/api/v1/tariffs/box',
588
+ path_params=_path_params,
589
+ query_params=_query_params,
590
+ header_params=_header_params,
591
+ body=_body_params,
592
+ post_params=_form_params,
593
+ files=_files,
594
+ auth_settings=_auth_settings,
595
+ collection_formats=_collection_formats,
596
+ _host=_host,
597
+ _request_auth=_request_auth
598
+ )
599
+
600
+
601
+
602
+
42
603
  @validate_call
43
604
  def api_v1_tariffs_commission_get(
44
605
  self,
45
- locale: Annotated[Optional[StrictStr], Field(description="Язык полей ответа `parentName` и `subjectName`: - `ru` — русский - `en` — английский - `zh` — китайский ")] = None,
606
+ locale: Annotated[Optional[StrictStr], Field(description="Язык полей ответа `parentName` и `subjectName`: - `ru` — русский - `en` — английский - `zh` — китайский ")] = None,
607
+ _request_timeout: Union[
608
+ None,
609
+ Annotated[StrictFloat, Field(gt=0)],
610
+ Tuple[
611
+ Annotated[StrictFloat, Field(gt=0)],
612
+ Annotated[StrictFloat, Field(gt=0)]
613
+ ]
614
+ ] = None,
615
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
616
+ _content_type: Optional[StrictStr] = None,
617
+ _headers: Optional[Dict[StrictStr, Any]] = None,
618
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
619
+ ) -> ApiV1TariffsCommissionGet200Response:
620
+ """Комиссия по категориям товаров
621
+
622
+ Метод возвращает данные о [комиссии](https://seller.wildberries.ru/dynamic-product-categories/commission) WB по [родительским категориям товаров](/openapi/work-with-products#tag/Kategorii-predmety-i-harakteristiki/paths/~1content~1v2~1object~1parent~1all/get) согласно модели продаж. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 1 запрос | 1 минута | 2 запроса | </div>
623
+
624
+ :param locale: Язык полей ответа `parentName` и `subjectName`: - `ru` — русский - `en` — английский - `zh` — китайский
625
+ :type locale: str
626
+ :param _request_timeout: timeout setting for this request. If one
627
+ number provided, it will be total request
628
+ timeout. It can also be a pair (tuple) of
629
+ (connection, read) timeouts.
630
+ :type _request_timeout: int, tuple(int, int), optional
631
+ :param _request_auth: set to override the auth_settings for an a single
632
+ request; this effectively ignores the
633
+ authentication in the spec for a single request.
634
+ :type _request_auth: dict, optional
635
+ :param _content_type: force content-type for the request.
636
+ :type _content_type: str, Optional
637
+ :param _headers: set to override the headers for a single
638
+ request; this effectively ignores the headers
639
+ in the spec for a single request.
640
+ :type _headers: dict, optional
641
+ :param _host_index: set to override the host_index for a single
642
+ request; this effectively ignores the host_index
643
+ in the spec for a single request.
644
+ :type _host_index: int, optional
645
+ :return: Returns the result object.
646
+ """ # noqa: E501
647
+
648
+ _param = self._api_v1_tariffs_commission_get_serialize(
649
+ locale=locale,
650
+ _request_auth=_request_auth,
651
+ _content_type=_content_type,
652
+ _headers=_headers,
653
+ _host_index=_host_index
654
+ )
655
+
656
+ _response_types_map: Dict[str, Optional[str]] = {
657
+ '200': "ApiV1TariffsCommissionGet200Response",
658
+ '400': "BadRequest",
659
+ '401': "ApiV1TariffsCommissionGet401Response",
660
+ '429': "ApiV1TariffsCommissionGet401Response",
661
+ }
662
+ response_data = self.api_client.call_api(
663
+ *_param,
664
+ _request_timeout=_request_timeout
665
+ )
666
+ response_data.read()
667
+ return self.api_client.response_deserialize(
668
+ response_data=response_data,
669
+ response_types_map=_response_types_map,
670
+ ).data
671
+
672
+
673
+ @validate_call
674
+ def api_v1_tariffs_commission_get_with_http_info(
675
+ self,
676
+ locale: Annotated[Optional[StrictStr], Field(description="Язык полей ответа `parentName` и `subjectName`: - `ru` — русский - `en` — английский - `zh` — китайский ")] = None,
677
+ _request_timeout: Union[
678
+ None,
679
+ Annotated[StrictFloat, Field(gt=0)],
680
+ Tuple[
681
+ Annotated[StrictFloat, Field(gt=0)],
682
+ Annotated[StrictFloat, Field(gt=0)]
683
+ ]
684
+ ] = None,
685
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
686
+ _content_type: Optional[StrictStr] = None,
687
+ _headers: Optional[Dict[StrictStr, Any]] = None,
688
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
689
+ ) -> ApiResponse[ApiV1TariffsCommissionGet200Response]:
690
+ """Комиссия по категориям товаров
691
+
692
+ Метод возвращает данные о [комиссии](https://seller.wildberries.ru/dynamic-product-categories/commission) WB по [родительским категориям товаров](/openapi/work-with-products#tag/Kategorii-predmety-i-harakteristiki/paths/~1content~1v2~1object~1parent~1all/get) согласно модели продаж. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 1 запрос | 1 минута | 2 запроса | </div>
693
+
694
+ :param locale: Язык полей ответа `parentName` и `subjectName`: - `ru` — русский - `en` — английский - `zh` — китайский
695
+ :type locale: str
696
+ :param _request_timeout: timeout setting for this request. If one
697
+ number provided, it will be total request
698
+ timeout. It can also be a pair (tuple) of
699
+ (connection, read) timeouts.
700
+ :type _request_timeout: int, tuple(int, int), optional
701
+ :param _request_auth: set to override the auth_settings for an a single
702
+ request; this effectively ignores the
703
+ authentication in the spec for a single request.
704
+ :type _request_auth: dict, optional
705
+ :param _content_type: force content-type for the request.
706
+ :type _content_type: str, Optional
707
+ :param _headers: set to override the headers for a single
708
+ request; this effectively ignores the headers
709
+ in the spec for a single request.
710
+ :type _headers: dict, optional
711
+ :param _host_index: set to override the host_index for a single
712
+ request; this effectively ignores the host_index
713
+ in the spec for a single request.
714
+ :type _host_index: int, optional
715
+ :return: Returns the result object.
716
+ """ # noqa: E501
717
+
718
+ _param = self._api_v1_tariffs_commission_get_serialize(
719
+ locale=locale,
720
+ _request_auth=_request_auth,
721
+ _content_type=_content_type,
722
+ _headers=_headers,
723
+ _host_index=_host_index
724
+ )
725
+
726
+ _response_types_map: Dict[str, Optional[str]] = {
727
+ '200': "ApiV1TariffsCommissionGet200Response",
728
+ '400': "BadRequest",
729
+ '401': "ApiV1TariffsCommissionGet401Response",
730
+ '429': "ApiV1TariffsCommissionGet401Response",
731
+ }
732
+ response_data = self.api_client.call_api(
733
+ *_param,
734
+ _request_timeout=_request_timeout
735
+ )
736
+ response_data.read()
737
+ return self.api_client.response_deserialize(
738
+ response_data=response_data,
739
+ response_types_map=_response_types_map,
740
+ )
741
+
742
+
743
+ @validate_call
744
+ def api_v1_tariffs_commission_get_without_preload_content(
745
+ self,
746
+ locale: Annotated[Optional[StrictStr], Field(description="Язык полей ответа `parentName` и `subjectName`: - `ru` — русский - `en` — английский - `zh` — китайский ")] = None,
747
+ _request_timeout: Union[
748
+ None,
749
+ Annotated[StrictFloat, Field(gt=0)],
750
+ Tuple[
751
+ Annotated[StrictFloat, Field(gt=0)],
752
+ Annotated[StrictFloat, Field(gt=0)]
753
+ ]
754
+ ] = None,
755
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
756
+ _content_type: Optional[StrictStr] = None,
757
+ _headers: Optional[Dict[StrictStr, Any]] = None,
758
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
759
+ ) -> RESTResponseType:
760
+ """Комиссия по категориям товаров
761
+
762
+ Метод возвращает данные о [комиссии](https://seller.wildberries.ru/dynamic-product-categories/commission) WB по [родительским категориям товаров](/openapi/work-with-products#tag/Kategorii-predmety-i-harakteristiki/paths/~1content~1v2~1object~1parent~1all/get) согласно модели продаж. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 1 запрос | 1 минута | 2 запроса | </div>
763
+
764
+ :param locale: Язык полей ответа `parentName` и `subjectName`: - `ru` — русский - `en` — английский - `zh` — китайский
765
+ :type locale: str
766
+ :param _request_timeout: timeout setting for this request. If one
767
+ number provided, it will be total request
768
+ timeout. It can also be a pair (tuple) of
769
+ (connection, read) timeouts.
770
+ :type _request_timeout: int, tuple(int, int), optional
771
+ :param _request_auth: set to override the auth_settings for an a single
772
+ request; this effectively ignores the
773
+ authentication in the spec for a single request.
774
+ :type _request_auth: dict, optional
775
+ :param _content_type: force content-type for the request.
776
+ :type _content_type: str, Optional
777
+ :param _headers: set to override the headers for a single
778
+ request; this effectively ignores the headers
779
+ in the spec for a single request.
780
+ :type _headers: dict, optional
781
+ :param _host_index: set to override the host_index for a single
782
+ request; this effectively ignores the host_index
783
+ in the spec for a single request.
784
+ :type _host_index: int, optional
785
+ :return: Returns the result object.
786
+ """ # noqa: E501
787
+
788
+ _param = self._api_v1_tariffs_commission_get_serialize(
789
+ locale=locale,
790
+ _request_auth=_request_auth,
791
+ _content_type=_content_type,
792
+ _headers=_headers,
793
+ _host_index=_host_index
794
+ )
795
+
796
+ _response_types_map: Dict[str, Optional[str]] = {
797
+ '200': "ApiV1TariffsCommissionGet200Response",
798
+ '400': "BadRequest",
799
+ '401': "ApiV1TariffsCommissionGet401Response",
800
+ '429': "ApiV1TariffsCommissionGet401Response",
801
+ }
802
+ response_data = self.api_client.call_api(
803
+ *_param,
804
+ _request_timeout=_request_timeout
805
+ )
806
+ return response_data.response
807
+
808
+
809
+ def _api_v1_tariffs_commission_get_serialize(
810
+ self,
811
+ locale,
812
+ _request_auth,
813
+ _content_type,
814
+ _headers,
815
+ _host_index,
816
+ ) -> RequestSerialized:
817
+
818
+ _hosts = [
819
+ 'https://common-api.wildberries.ru'
820
+ ]
821
+ _host = _hosts[_host_index]
822
+
823
+ _collection_formats: Dict[str, str] = {
824
+ }
825
+
826
+ _path_params: Dict[str, str] = {}
827
+ _query_params: List[Tuple[str, str]] = []
828
+ _header_params: Dict[str, Optional[str]] = _headers or {}
829
+ _form_params: List[Tuple[str, str]] = []
830
+ _files: Dict[
831
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
832
+ ] = {}
833
+ _body_params: Optional[bytes] = None
834
+
835
+ # process the path parameters
836
+ # process the query parameters
837
+ if locale is not None:
838
+
839
+ _query_params.append(('locale', locale))
840
+
841
+ # process the header parameters
842
+ # process the form parameters
843
+ # process the body parameter
844
+
845
+
846
+ # set the HTTP header `Accept`
847
+ if 'Accept' not in _header_params:
848
+ _header_params['Accept'] = self.api_client.select_header_accept(
849
+ [
850
+ 'application/json',
851
+ 'application/problem+json'
852
+ ]
853
+ )
854
+
855
+
856
+ # authentication setting
857
+ _auth_settings: List[str] = [
858
+ 'HeaderApiKey'
859
+ ]
860
+
861
+ return self.api_client.param_serialize(
862
+ method='GET',
863
+ resource_path='/api/v1/tariffs/commission',
864
+ path_params=_path_params,
865
+ query_params=_query_params,
866
+ header_params=_header_params,
867
+ body=_body_params,
868
+ post_params=_form_params,
869
+ files=_files,
870
+ auth_settings=_auth_settings,
871
+ collection_formats=_collection_formats,
872
+ _host=_host,
873
+ _request_auth=_request_auth
874
+ )
875
+
876
+
877
+
878
+
879
+ @validate_call
880
+ def api_v1_tariffs_pallet_get(
881
+ self,
882
+ var_date: Annotated[StrictStr, Field(description="Дата в формате ГГГГ-ММ-ДД")],
883
+ _request_timeout: Union[
884
+ None,
885
+ Annotated[StrictFloat, Field(gt=0)],
886
+ Tuple[
887
+ Annotated[StrictFloat, Field(gt=0)],
888
+ Annotated[StrictFloat, Field(gt=0)]
889
+ ]
890
+ ] = None,
891
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
892
+ _content_type: Optional[StrictStr] = None,
893
+ _headers: Optional[Dict[StrictStr, Any]] = None,
894
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
895
+ ) -> TariffsPalletResponse:
896
+ """Тарифы для монопаллет
897
+
898
+ Для товаров, которые поставляются на склад 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>
899
+
900
+ :param var_date: Дата в формате ГГГГ-ММ-ДД (required)
901
+ :type var_date: str
902
+ :param _request_timeout: timeout setting for this request. If one
903
+ number provided, it will be total request
904
+ timeout. It can also be a pair (tuple) of
905
+ (connection, read) timeouts.
906
+ :type _request_timeout: int, tuple(int, int), optional
907
+ :param _request_auth: set to override the auth_settings for an a single
908
+ request; this effectively ignores the
909
+ authentication in the spec for a single request.
910
+ :type _request_auth: dict, optional
911
+ :param _content_type: force content-type for the request.
912
+ :type _content_type: str, Optional
913
+ :param _headers: set to override the headers for a single
914
+ request; this effectively ignores the headers
915
+ in the spec for a single request.
916
+ :type _headers: dict, optional
917
+ :param _host_index: set to override the host_index for a single
918
+ request; this effectively ignores the host_index
919
+ in the spec for a single request.
920
+ :type _host_index: int, optional
921
+ :return: Returns the result object.
922
+ """ # noqa: E501
923
+
924
+ _param = self._api_v1_tariffs_pallet_get_serialize(
925
+ var_date=var_date,
926
+ _request_auth=_request_auth,
927
+ _content_type=_content_type,
928
+ _headers=_headers,
929
+ _host_index=_host_index
930
+ )
931
+
932
+ _response_types_map: Dict[str, Optional[str]] = {
933
+ '200': "TariffsPalletResponse",
934
+ '400': "BadRequest",
935
+ '401': "ApiV1TariffsCommissionGet401Response",
936
+ '429': "ApiV1TariffsCommissionGet401Response",
937
+ }
938
+ response_data = self.api_client.call_api(
939
+ *_param,
940
+ _request_timeout=_request_timeout
941
+ )
942
+ response_data.read()
943
+ return self.api_client.response_deserialize(
944
+ response_data=response_data,
945
+ response_types_map=_response_types_map,
946
+ ).data
947
+
948
+
949
+ @validate_call
950
+ def api_v1_tariffs_pallet_get_with_http_info(
951
+ self,
952
+ var_date: Annotated[StrictStr, Field(description="Дата в формате ГГГГ-ММ-ДД")],
46
953
  _request_timeout: Union[
47
954
  None,
48
955
  Annotated[StrictFloat, Field(gt=0)],
@@ -55,13 +962,13 @@ class DefaultApi:
55
962
  _content_type: Optional[StrictStr] = None,
56
963
  _headers: Optional[Dict[StrictStr, Any]] = None,
57
964
  _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
58
- ) -> ApiV1TariffsCommissionGet200Response:
59
- """Комиссия по категориям товаров
965
+ ) -> ApiResponse[TariffsPalletResponse]:
966
+ """Тарифы для монопаллет
60
967
 
61
- Метод возвращает данные о [комиссии](https://seller.wildberries.ru/dynamic-product-categories/commission) WB по [родительским категориям товаров](/openapi/work-with-products#tag/Kategorii-predmety-i-harakteristiki/paths/~1content~1v2~1object~1parent~1all/get) согласно модели продаж. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 1 запрос | 1 минута | 2 запроса | </div>
968
+ Для товаров, которые поставляются на склад 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>
62
969
 
63
- :param locale: Язык полей ответа `parentName` и `subjectName`: - `ru` — русский - `en` — английский - `zh` — китайский
64
- :type locale: str
970
+ :param var_date: Дата в формате ГГГГ-ММ-ДД (required)
971
+ :type var_date: str
65
972
  :param _request_timeout: timeout setting for this request. If one
66
973
  number provided, it will be total request
67
974
  timeout. It can also be a pair (tuple) of
@@ -84,8 +991,8 @@ class DefaultApi:
84
991
  :return: Returns the result object.
85
992
  """ # noqa: E501
86
993
 
87
- _param = self._api_v1_tariffs_commission_get_serialize(
88
- locale=locale,
994
+ _param = self._api_v1_tariffs_pallet_get_serialize(
995
+ var_date=var_date,
89
996
  _request_auth=_request_auth,
90
997
  _content_type=_content_type,
91
998
  _headers=_headers,
@@ -93,7 +1000,213 @@ class DefaultApi:
93
1000
  )
94
1001
 
95
1002
  _response_types_map: Dict[str, Optional[str]] = {
96
- '200': "ApiV1TariffsCommissionGet200Response",
1003
+ '200': "TariffsPalletResponse",
1004
+ '400': "BadRequest",
1005
+ '401': "ApiV1TariffsCommissionGet401Response",
1006
+ '429': "ApiV1TariffsCommissionGet401Response",
1007
+ }
1008
+ response_data = self.api_client.call_api(
1009
+ *_param,
1010
+ _request_timeout=_request_timeout
1011
+ )
1012
+ response_data.read()
1013
+ return self.api_client.response_deserialize(
1014
+ response_data=response_data,
1015
+ response_types_map=_response_types_map,
1016
+ )
1017
+
1018
+
1019
+ @validate_call
1020
+ def api_v1_tariffs_pallet_get_without_preload_content(
1021
+ self,
1022
+ var_date: Annotated[StrictStr, Field(description="Дата в формате ГГГГ-ММ-ДД")],
1023
+ _request_timeout: Union[
1024
+ None,
1025
+ Annotated[StrictFloat, Field(gt=0)],
1026
+ Tuple[
1027
+ Annotated[StrictFloat, Field(gt=0)],
1028
+ Annotated[StrictFloat, Field(gt=0)]
1029
+ ]
1030
+ ] = None,
1031
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1032
+ _content_type: Optional[StrictStr] = None,
1033
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1034
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
1035
+ ) -> RESTResponseType:
1036
+ """Тарифы для монопаллет
1037
+
1038
+ Для товаров, которые поставляются на склад 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>
1039
+
1040
+ :param var_date: Дата в формате ГГГГ-ММ-ДД (required)
1041
+ :type var_date: str
1042
+ :param _request_timeout: timeout setting for this request. If one
1043
+ number provided, it will be total request
1044
+ timeout. It can also be a pair (tuple) of
1045
+ (connection, read) timeouts.
1046
+ :type _request_timeout: int, tuple(int, int), optional
1047
+ :param _request_auth: set to override the auth_settings for an a single
1048
+ request; this effectively ignores the
1049
+ authentication in the spec for a single request.
1050
+ :type _request_auth: dict, optional
1051
+ :param _content_type: force content-type for the request.
1052
+ :type _content_type: str, Optional
1053
+ :param _headers: set to override the headers for a single
1054
+ request; this effectively ignores the headers
1055
+ in the spec for a single request.
1056
+ :type _headers: dict, optional
1057
+ :param _host_index: set to override the host_index for a single
1058
+ request; this effectively ignores the host_index
1059
+ in the spec for a single request.
1060
+ :type _host_index: int, optional
1061
+ :return: Returns the result object.
1062
+ """ # noqa: E501
1063
+
1064
+ _param = self._api_v1_tariffs_pallet_get_serialize(
1065
+ var_date=var_date,
1066
+ _request_auth=_request_auth,
1067
+ _content_type=_content_type,
1068
+ _headers=_headers,
1069
+ _host_index=_host_index
1070
+ )
1071
+
1072
+ _response_types_map: Dict[str, Optional[str]] = {
1073
+ '200': "TariffsPalletResponse",
1074
+ '400': "BadRequest",
1075
+ '401': "ApiV1TariffsCommissionGet401Response",
1076
+ '429': "ApiV1TariffsCommissionGet401Response",
1077
+ }
1078
+ response_data = self.api_client.call_api(
1079
+ *_param,
1080
+ _request_timeout=_request_timeout
1081
+ )
1082
+ return response_data.response
1083
+
1084
+
1085
+ def _api_v1_tariffs_pallet_get_serialize(
1086
+ self,
1087
+ var_date,
1088
+ _request_auth,
1089
+ _content_type,
1090
+ _headers,
1091
+ _host_index,
1092
+ ) -> RequestSerialized:
1093
+
1094
+ _hosts = [
1095
+ 'https://common-api.wildberries.ru'
1096
+ ]
1097
+ _host = _hosts[_host_index]
1098
+
1099
+ _collection_formats: Dict[str, str] = {
1100
+ }
1101
+
1102
+ _path_params: Dict[str, str] = {}
1103
+ _query_params: List[Tuple[str, str]] = []
1104
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1105
+ _form_params: List[Tuple[str, str]] = []
1106
+ _files: Dict[
1107
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1108
+ ] = {}
1109
+ _body_params: Optional[bytes] = None
1110
+
1111
+ # process the path parameters
1112
+ # process the query parameters
1113
+ if var_date is not None:
1114
+
1115
+ _query_params.append(('date', var_date))
1116
+
1117
+ # process the header parameters
1118
+ # process the form parameters
1119
+ # process the body parameter
1120
+
1121
+
1122
+ # set the HTTP header `Accept`
1123
+ if 'Accept' not in _header_params:
1124
+ _header_params['Accept'] = self.api_client.select_header_accept(
1125
+ [
1126
+ 'application/json',
1127
+ 'application/problem+json'
1128
+ ]
1129
+ )
1130
+
1131
+
1132
+ # authentication setting
1133
+ _auth_settings: List[str] = [
1134
+ 'HeaderApiKey'
1135
+ ]
1136
+
1137
+ return self.api_client.param_serialize(
1138
+ method='GET',
1139
+ resource_path='/api/v1/tariffs/pallet',
1140
+ path_params=_path_params,
1141
+ query_params=_query_params,
1142
+ header_params=_header_params,
1143
+ body=_body_params,
1144
+ post_params=_form_params,
1145
+ files=_files,
1146
+ auth_settings=_auth_settings,
1147
+ collection_formats=_collection_formats,
1148
+ _host=_host,
1149
+ _request_auth=_request_auth
1150
+ )
1151
+
1152
+
1153
+
1154
+
1155
+ @validate_call
1156
+ def api_v1_tariffs_return_get(
1157
+ self,
1158
+ var_date: Annotated[StrictStr, Field(description="Дата в формате ГГГГ-ММ-ДД")],
1159
+ _request_timeout: Union[
1160
+ None,
1161
+ Annotated[StrictFloat, Field(gt=0)],
1162
+ Tuple[
1163
+ Annotated[StrictFloat, Field(gt=0)],
1164
+ Annotated[StrictFloat, Field(gt=0)]
1165
+ ]
1166
+ ] = None,
1167
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1168
+ _content_type: Optional[StrictStr] = None,
1169
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1170
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
1171
+ ) -> ReturnTariffsResponse:
1172
+ """Тарифы на возврат
1173
+
1174
+ Метод возвращает [тарифы](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>
1175
+
1176
+ :param var_date: Дата в формате ГГГГ-ММ-ДД (required)
1177
+ :type var_date: str
1178
+ :param _request_timeout: timeout setting for this request. If one
1179
+ number provided, it will be total request
1180
+ timeout. It can also be a pair (tuple) of
1181
+ (connection, read) timeouts.
1182
+ :type _request_timeout: int, tuple(int, int), optional
1183
+ :param _request_auth: set to override the auth_settings for an a single
1184
+ request; this effectively ignores the
1185
+ authentication in the spec for a single request.
1186
+ :type _request_auth: dict, optional
1187
+ :param _content_type: force content-type for the request.
1188
+ :type _content_type: str, Optional
1189
+ :param _headers: set to override the headers for a single
1190
+ request; this effectively ignores the headers
1191
+ in the spec for a single request.
1192
+ :type _headers: dict, optional
1193
+ :param _host_index: set to override the host_index for a single
1194
+ request; this effectively ignores the host_index
1195
+ in the spec for a single request.
1196
+ :type _host_index: int, optional
1197
+ :return: Returns the result object.
1198
+ """ # noqa: E501
1199
+
1200
+ _param = self._api_v1_tariffs_return_get_serialize(
1201
+ var_date=var_date,
1202
+ _request_auth=_request_auth,
1203
+ _content_type=_content_type,
1204
+ _headers=_headers,
1205
+ _host_index=_host_index
1206
+ )
1207
+
1208
+ _response_types_map: Dict[str, Optional[str]] = {
1209
+ '200': "ReturnTariffsResponse",
97
1210
  '400': "BadRequest",
98
1211
  '401': "ApiV1TariffsCommissionGet401Response",
99
1212
  '429': "ApiV1TariffsCommissionGet401Response",
@@ -110,9 +1223,9 @@ class DefaultApi:
110
1223
 
111
1224
 
112
1225
  @validate_call
113
- def api_v1_tariffs_commission_get_with_http_info(
1226
+ def api_v1_tariffs_return_get_with_http_info(
114
1227
  self,
115
- locale: Annotated[Optional[StrictStr], Field(description="Язык полей ответа `parentName` и `subjectName`: - `ru` — русский - `en` — английский - `zh` — китайский ")] = None,
1228
+ var_date: Annotated[StrictStr, Field(description="Дата в формате ГГГГ-ММ-ДД")],
116
1229
  _request_timeout: Union[
117
1230
  None,
118
1231
  Annotated[StrictFloat, Field(gt=0)],
@@ -125,13 +1238,13 @@ class DefaultApi:
125
1238
  _content_type: Optional[StrictStr] = None,
126
1239
  _headers: Optional[Dict[StrictStr, Any]] = None,
127
1240
  _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
128
- ) -> ApiResponse[ApiV1TariffsCommissionGet200Response]:
129
- """Комиссия по категориям товаров
1241
+ ) -> ApiResponse[ReturnTariffsResponse]:
1242
+ """Тарифы на возврат
130
1243
 
131
- Метод возвращает данные о [комиссии](https://seller.wildberries.ru/dynamic-product-categories/commission) WB по [родительским категориям товаров](/openapi/work-with-products#tag/Kategorii-predmety-i-harakteristiki/paths/~1content~1v2~1object~1parent~1all/get) согласно модели продаж. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 1 запрос | 1 минута | 2 запроса | </div>
1244
+ Метод возвращает [тарифы](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>
132
1245
 
133
- :param locale: Язык полей ответа `parentName` и `subjectName`: - `ru` — русский - `en` — английский - `zh` — китайский
134
- :type locale: str
1246
+ :param var_date: Дата в формате ГГГГ-ММ-ДД (required)
1247
+ :type var_date: str
135
1248
  :param _request_timeout: timeout setting for this request. If one
136
1249
  number provided, it will be total request
137
1250
  timeout. It can also be a pair (tuple) of
@@ -154,8 +1267,8 @@ class DefaultApi:
154
1267
  :return: Returns the result object.
155
1268
  """ # noqa: E501
156
1269
 
157
- _param = self._api_v1_tariffs_commission_get_serialize(
158
- locale=locale,
1270
+ _param = self._api_v1_tariffs_return_get_serialize(
1271
+ var_date=var_date,
159
1272
  _request_auth=_request_auth,
160
1273
  _content_type=_content_type,
161
1274
  _headers=_headers,
@@ -163,7 +1276,7 @@ class DefaultApi:
163
1276
  )
164
1277
 
165
1278
  _response_types_map: Dict[str, Optional[str]] = {
166
- '200': "ApiV1TariffsCommissionGet200Response",
1279
+ '200': "ReturnTariffsResponse",
167
1280
  '400': "BadRequest",
168
1281
  '401': "ApiV1TariffsCommissionGet401Response",
169
1282
  '429': "ApiV1TariffsCommissionGet401Response",
@@ -180,9 +1293,9 @@ class DefaultApi:
180
1293
 
181
1294
 
182
1295
  @validate_call
183
- def api_v1_tariffs_commission_get_without_preload_content(
1296
+ def api_v1_tariffs_return_get_without_preload_content(
184
1297
  self,
185
- locale: Annotated[Optional[StrictStr], Field(description="Язык полей ответа `parentName` и `subjectName`: - `ru` — русский - `en` — английский - `zh` — китайский ")] = None,
1298
+ var_date: Annotated[StrictStr, Field(description="Дата в формате ГГГГ-ММ-ДД")],
186
1299
  _request_timeout: Union[
187
1300
  None,
188
1301
  Annotated[StrictFloat, Field(gt=0)],
@@ -196,12 +1309,12 @@ class DefaultApi:
196
1309
  _headers: Optional[Dict[StrictStr, Any]] = None,
197
1310
  _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
198
1311
  ) -> RESTResponseType:
199
- """Комиссия по категориям товаров
1312
+ """Тарифы на возврат
200
1313
 
201
- Метод возвращает данные о [комиссии](https://seller.wildberries.ru/dynamic-product-categories/commission) WB по [родительским категориям товаров](/openapi/work-with-products#tag/Kategorii-predmety-i-harakteristiki/paths/~1content~1v2~1object~1parent~1all/get) согласно модели продаж. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 1 запрос | 1 минута | 2 запроса | </div>
1314
+ Метод возвращает [тарифы](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>
202
1315
 
203
- :param locale: Язык полей ответа `parentName` и `subjectName`: - `ru` — русский - `en` — английский - `zh` — китайский
204
- :type locale: str
1316
+ :param var_date: Дата в формате ГГГГ-ММ-ДД (required)
1317
+ :type var_date: str
205
1318
  :param _request_timeout: timeout setting for this request. If one
206
1319
  number provided, it will be total request
207
1320
  timeout. It can also be a pair (tuple) of
@@ -224,8 +1337,8 @@ class DefaultApi:
224
1337
  :return: Returns the result object.
225
1338
  """ # noqa: E501
226
1339
 
227
- _param = self._api_v1_tariffs_commission_get_serialize(
228
- locale=locale,
1340
+ _param = self._api_v1_tariffs_return_get_serialize(
1341
+ var_date=var_date,
229
1342
  _request_auth=_request_auth,
230
1343
  _content_type=_content_type,
231
1344
  _headers=_headers,
@@ -233,7 +1346,7 @@ class DefaultApi:
233
1346
  )
234
1347
 
235
1348
  _response_types_map: Dict[str, Optional[str]] = {
236
- '200': "ApiV1TariffsCommissionGet200Response",
1349
+ '200': "ReturnTariffsResponse",
237
1350
  '400': "BadRequest",
238
1351
  '401': "ApiV1TariffsCommissionGet401Response",
239
1352
  '429': "ApiV1TariffsCommissionGet401Response",
@@ -245,9 +1358,9 @@ class DefaultApi:
245
1358
  return response_data.response
246
1359
 
247
1360
 
248
- def _api_v1_tariffs_commission_get_serialize(
1361
+ def _api_v1_tariffs_return_get_serialize(
249
1362
  self,
250
- locale,
1363
+ var_date,
251
1364
  _request_auth,
252
1365
  _content_type,
253
1366
  _headers,
@@ -273,9 +1386,9 @@ class DefaultApi:
273
1386
 
274
1387
  # process the path parameters
275
1388
  # process the query parameters
276
- if locale is not None:
1389
+ if var_date is not None:
277
1390
 
278
- _query_params.append(('locale', locale))
1391
+ _query_params.append(('date', var_date))
279
1392
 
280
1393
  # process the header parameters
281
1394
  # process the form parameters
@@ -299,7 +1412,7 @@ class DefaultApi:
299
1412
 
300
1413
  return self.api_client.param_serialize(
301
1414
  method='GET',
302
- resource_path='/api/v1/tariffs/commission',
1415
+ resource_path='/api/v1/tariffs/return',
303
1416
  path_params=_path_params,
304
1417
  query_params=_query_params,
305
1418
  header_params=_header_params,