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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. wildberries_sdk/analytics/__init__.py +3 -7
  2. wildberries_sdk/analytics/api/__init__.py +1 -3
  3. wildberries_sdk/analytics/api/default_api.py +4670 -0
  4. wildberries_sdk/analytics/api_client.py +1 -1
  5. wildberries_sdk/analytics/configuration.py +1 -1
  6. wildberries_sdk/communications/__init__.py +1 -5
  7. wildberries_sdk/communications/api/__init__.py +0 -2
  8. wildberries_sdk/communications/api/default_api.py +4282 -858
  9. wildberries_sdk/communications/api_client.py +1 -1
  10. wildberries_sdk/communications/configuration.py +1 -1
  11. wildberries_sdk/finances/__init__.py +1 -3
  12. wildberries_sdk/finances/api/__init__.py +0 -1
  13. wildberries_sdk/finances/api/default_api.py +367 -2
  14. wildberries_sdk/finances/api_client.py +1 -1
  15. wildberries_sdk/finances/configuration.py +1 -1
  16. wildberries_sdk/finances/models/detail_report_item.py +6 -2
  17. wildberries_sdk/general/__init__.py +3 -7
  18. wildberries_sdk/general/api/__init__.py +1 -3
  19. wildberries_sdk/general/api/{api.py → default_api.py} +560 -1
  20. wildberries_sdk/general/api_client.py +1 -1
  21. wildberries_sdk/general/configuration.py +1 -1
  22. wildberries_sdk/in_store_pickup/__init__.py +3 -5
  23. wildberries_sdk/in_store_pickup/api/__init__.py +1 -2
  24. wildberries_sdk/in_store_pickup/api/{api.py → default_api.py} +1798 -2
  25. wildberries_sdk/in_store_pickup/api_client.py +1 -1
  26. wildberries_sdk/in_store_pickup/configuration.py +1 -1
  27. wildberries_sdk/orders_dbs/__init__.py +3 -5
  28. wildberries_sdk/orders_dbs/api/__init__.py +1 -2
  29. wildberries_sdk/orders_dbs/api/{dbs_api.py → default_api.py} +1819 -2
  30. wildberries_sdk/orders_dbs/api_client.py +1 -1
  31. wildberries_sdk/orders_dbs/configuration.py +1 -1
  32. wildberries_sdk/orders_dbw/__init__.py +3 -5
  33. wildberries_sdk/orders_dbw/api/__init__.py +1 -2
  34. wildberries_sdk/orders_dbw/api/{dbw_api.py → default_api.py} +1821 -1
  35. wildberries_sdk/orders_dbw/api_client.py +1 -1
  36. wildberries_sdk/orders_dbw/configuration.py +1 -1
  37. wildberries_sdk/orders_fbs/__init__.py +3 -5
  38. wildberries_sdk/orders_fbs/api/__init__.py +1 -2
  39. wildberries_sdk/orders_fbs/api/default_api.py +10043 -0
  40. wildberries_sdk/orders_fbs/api_client.py +1 -1
  41. wildberries_sdk/orders_fbs/configuration.py +1 -1
  42. wildberries_sdk/orders_fbw/__init__.py +3 -5
  43. wildberries_sdk/orders_fbw/api/__init__.py +1 -2
  44. wildberries_sdk/orders_fbw/api/default_api.py +2368 -0
  45. wildberries_sdk/orders_fbw/api_client.py +1 -1
  46. wildberries_sdk/orders_fbw/configuration.py +1 -1
  47. wildberries_sdk/products/__init__.py +1 -7
  48. wildberries_sdk/products/api/__init__.py +0 -3
  49. wildberries_sdk/products/api/default_api.py +12348 -2
  50. wildberries_sdk/products/api_client.py +1 -1
  51. wildberries_sdk/products/configuration.py +1 -1
  52. wildberries_sdk/products/models/content_v2_cards_update_post_request_inner_dimensions.py +1 -1
  53. wildberries_sdk/products/models/content_v2_cards_upload_add_post_request_cards_to_add_inner_dimensions.py +1 -1
  54. wildberries_sdk/products/models/content_v2_cards_upload_post_request_inner_variants_inner_dimensions.py +1 -1
  55. wildberries_sdk/products/models/content_v2_get_cards_list_post200_response_cards_inner_tags_inner.py +1 -1
  56. wildberries_sdk/promotion/__init__.py +1 -3
  57. wildberries_sdk/promotion/api/__init__.py +0 -1
  58. wildberries_sdk/promotion/api/default_api.py +10107 -1059
  59. wildberries_sdk/promotion/api_client.py +1 -1
  60. wildberries_sdk/promotion/configuration.py +1 -1
  61. wildberries_sdk/reports/__init__.py +3 -13
  62. wildberries_sdk/reports/api/__init__.py +1 -6
  63. wildberries_sdk/{promotion/api/api.py → reports/api/default_api.py} +2245 -2381
  64. wildberries_sdk/reports/api_client.py +1 -1
  65. wildberries_sdk/reports/configuration.py +1 -1
  66. wildberries_sdk/tariffs/__init__.py +1 -3
  67. wildberries_sdk/tariffs/api/__init__.py +0 -1
  68. wildberries_sdk/tariffs/api/default_api.py +1147 -34
  69. wildberries_sdk/tariffs/api_client.py +1 -1
  70. wildberries_sdk/tariffs/configuration.py +1 -1
  71. wildberries_sdk/wbd/__init__.py +1 -3
  72. wildberries_sdk/wbd/api/__init__.py +0 -1
  73. wildberries_sdk/wbd/api/default_api.py +1662 -89
  74. wildberries_sdk/wbd/api_client.py +1 -1
  75. wildberries_sdk/wbd/configuration.py +1 -1
  76. wildberries_sdk/wbd/models/offer_create_request.py +1 -1
  77. wildberries_sdk/wbd/models/offer_update_request.py +1 -1
  78. wildberries_sdk-0.1.19.dist-info/METADATA +390 -0
  79. {wildberries_sdk-0.1.17.dist-info → wildberries_sdk-0.1.19.dist-info}/RECORD +82 -92
  80. wildberries_sdk/analytics/api/api.py +0 -1490
  81. wildberries_sdk/analytics/api/csv_api.py +0 -1178
  82. wildberries_sdk/communications/api/api.py +0 -1166
  83. wildberries_sdk/finances/api/api.py +0 -404
  84. wildberries_sdk/general/api/api_api.py +0 -341
  85. wildberries_sdk/general/api/wbapi_api.py +0 -291
  86. wildberries_sdk/orders_fbs/api/fbs_api.py +0 -2683
  87. wildberries_sdk/orders_fbw/api/api.py +0 -1153
  88. wildberries_sdk/products/api/api.py +0 -3891
  89. wildberries_sdk/reports/api/api.py +0 -350
  90. wildberries_sdk/reports/api/c_api.py +0 -361
  91. wildberries_sdk/tariffs/api/api.py +0 -1151
  92. wildberries_sdk/wbd/api/api.py +0 -1611
  93. wildberries_sdk-0.1.17.dist-info/METADATA +0 -191
  94. {wildberries_sdk-0.1.17.dist-info → wildberries_sdk-0.1.19.dist-info}/LICENSE +0 -0
  95. {wildberries_sdk-0.1.17.dist-info → wildberries_sdk-0.1.19.dist-info}/WHEEL +0 -0
  96. {wildberries_sdk-0.1.17.dist-info → wildberries_sdk-0.1.19.dist-info}/top_level.txt +0 -0
@@ -16,13 +16,16 @@ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
16
16
  from typing import Any, Dict, List, Optional, Tuple, Union
17
17
  from typing_extensions import Annotated
18
18
 
19
+ from datetime import date
19
20
  from pydantic import Field, StrictBool, StrictInt
20
21
  from typing import Optional
21
22
  from typing_extensions import Annotated
23
+ from wildberries_sdk.general.models.api_communications_v2_news_get200_response import ApiCommunicationsV2NewsGet200Response
22
24
  from wildberries_sdk.general.models.api_v1_seller_info_get200_response import ApiV1SellerInfoGet200Response
23
25
  from wildberries_sdk.general.models.create_invite_request import CreateInviteRequest
24
26
  from wildberries_sdk.general.models.create_invite_response import CreateInviteResponse
25
27
  from wildberries_sdk.general.models.get_users_response import GetUsersResponse
28
+ from wildberries_sdk.general.models.ping_get200_response import PingGet200Response
26
29
  from wildberries_sdk.general.models.update_user_access_request import UpdateUserAccessRequest
27
30
 
28
31
  from wildberries_sdk.general.api_client import ApiClient, RequestSerialized
@@ -30,7 +33,7 @@ from wildberries_sdk.general.api_response import ApiResponse
30
33
  from wildberries_sdk.general.rest import RESTResponseType
31
34
 
32
35
 
33
- class Api:
36
+ class DefaultApi:
34
37
  """NOTE: This class is auto generated by OpenAPI Generator
35
38
  Ref: https://openapi-generator.tech
36
39
 
@@ -43,6 +46,307 @@ class Api:
43
46
  self.api_client = api_client
44
47
 
45
48
 
49
+ @validate_call
50
+ def api_communications_v2_news_get(
51
+ self,
52
+ var_from: Optional[date] = None,
53
+ from_id: Annotated[Optional[StrictInt], Field(description="ID новости, начиная с которой — включая её — нужно получить список новостей")] = None,
54
+ _request_timeout: Union[
55
+ None,
56
+ Annotated[StrictFloat, Field(gt=0)],
57
+ Tuple[
58
+ Annotated[StrictFloat, Field(gt=0)],
59
+ Annotated[StrictFloat, Field(gt=0)]
60
+ ]
61
+ ] = None,
62
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
63
+ _content_type: Optional[StrictStr] = None,
64
+ _headers: Optional[Dict[StrictStr, Any]] = None,
65
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
66
+ ) -> ApiCommunicationsV2NewsGet200Response:
67
+ """Получение новостей портала продавцов
68
+
69
+ Метод позволяет получать новости портала продавцов. <br> Для получения успешного ответа необходимо указать один из параметров `from` или `fromID`. <br> За один запрос можно получить не более 100 новостей. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 1 запрос | 1 минута | 10 запросов | </div>
70
+
71
+ :param var_from:
72
+ :type var_from: date
73
+ :param from_id: ID новости, начиная с которой — включая её — нужно получить список новостей
74
+ :type from_id: int
75
+ :param _request_timeout: timeout setting for this request. If one
76
+ number provided, it will be total request
77
+ timeout. It can also be a pair (tuple) of
78
+ (connection, read) timeouts.
79
+ :type _request_timeout: int, tuple(int, int), optional
80
+ :param _request_auth: set to override the auth_settings for an a single
81
+ request; this effectively ignores the
82
+ authentication in the spec for a single request.
83
+ :type _request_auth: dict, optional
84
+ :param _content_type: force content-type for the request.
85
+ :type _content_type: str, Optional
86
+ :param _headers: set to override the headers for a single
87
+ request; this effectively ignores the headers
88
+ in the spec for a single request.
89
+ :type _headers: dict, optional
90
+ :param _host_index: set to override the host_index for a single
91
+ request; this effectively ignores the host_index
92
+ in the spec for a single request.
93
+ :type _host_index: int, optional
94
+ :return: Returns the result object.
95
+ """ # noqa: E501
96
+
97
+ _param = self._api_communications_v2_news_get_serialize(
98
+ var_from=var_from,
99
+ from_id=from_id,
100
+ _request_auth=_request_auth,
101
+ _content_type=_content_type,
102
+ _headers=_headers,
103
+ _host_index=_host_index
104
+ )
105
+
106
+ _response_types_map: Dict[str, Optional[str]] = {
107
+ '200': "ApiCommunicationsV2NewsGet200Response",
108
+ '400': None,
109
+ '401': "PingGet401Response",
110
+ '429': "PingGet401Response",
111
+ }
112
+ response_data = self.api_client.call_api(
113
+ *_param,
114
+ _request_timeout=_request_timeout
115
+ )
116
+ response_data.read()
117
+ return self.api_client.response_deserialize(
118
+ response_data=response_data,
119
+ response_types_map=_response_types_map,
120
+ ).data
121
+
122
+
123
+ @validate_call
124
+ def api_communications_v2_news_get_with_http_info(
125
+ self,
126
+ var_from: Optional[date] = None,
127
+ from_id: Annotated[Optional[StrictInt], Field(description="ID новости, начиная с которой — включая её — нужно получить список новостей")] = None,
128
+ _request_timeout: Union[
129
+ None,
130
+ Annotated[StrictFloat, Field(gt=0)],
131
+ Tuple[
132
+ Annotated[StrictFloat, Field(gt=0)],
133
+ Annotated[StrictFloat, Field(gt=0)]
134
+ ]
135
+ ] = None,
136
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
137
+ _content_type: Optional[StrictStr] = None,
138
+ _headers: Optional[Dict[StrictStr, Any]] = None,
139
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
140
+ ) -> ApiResponse[ApiCommunicationsV2NewsGet200Response]:
141
+ """Получение новостей портала продавцов
142
+
143
+ Метод позволяет получать новости портала продавцов. <br> Для получения успешного ответа необходимо указать один из параметров `from` или `fromID`. <br> За один запрос можно получить не более 100 новостей. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 1 запрос | 1 минута | 10 запросов | </div>
144
+
145
+ :param var_from:
146
+ :type var_from: date
147
+ :param from_id: ID новости, начиная с которой — включая её — нужно получить список новостей
148
+ :type from_id: int
149
+ :param _request_timeout: timeout setting for this request. If one
150
+ number provided, it will be total request
151
+ timeout. It can also be a pair (tuple) of
152
+ (connection, read) timeouts.
153
+ :type _request_timeout: int, tuple(int, int), optional
154
+ :param _request_auth: set to override the auth_settings for an a single
155
+ request; this effectively ignores the
156
+ authentication in the spec for a single request.
157
+ :type _request_auth: dict, optional
158
+ :param _content_type: force content-type for the request.
159
+ :type _content_type: str, Optional
160
+ :param _headers: set to override the headers for a single
161
+ request; this effectively ignores the headers
162
+ in the spec for a single request.
163
+ :type _headers: dict, optional
164
+ :param _host_index: set to override the host_index for a single
165
+ request; this effectively ignores the host_index
166
+ in the spec for a single request.
167
+ :type _host_index: int, optional
168
+ :return: Returns the result object.
169
+ """ # noqa: E501
170
+
171
+ _param = self._api_communications_v2_news_get_serialize(
172
+ var_from=var_from,
173
+ from_id=from_id,
174
+ _request_auth=_request_auth,
175
+ _content_type=_content_type,
176
+ _headers=_headers,
177
+ _host_index=_host_index
178
+ )
179
+
180
+ _response_types_map: Dict[str, Optional[str]] = {
181
+ '200': "ApiCommunicationsV2NewsGet200Response",
182
+ '400': None,
183
+ '401': "PingGet401Response",
184
+ '429': "PingGet401Response",
185
+ }
186
+ response_data = self.api_client.call_api(
187
+ *_param,
188
+ _request_timeout=_request_timeout
189
+ )
190
+ response_data.read()
191
+ return self.api_client.response_deserialize(
192
+ response_data=response_data,
193
+ response_types_map=_response_types_map,
194
+ )
195
+
196
+
197
+ @validate_call
198
+ def api_communications_v2_news_get_without_preload_content(
199
+ self,
200
+ var_from: Optional[date] = None,
201
+ from_id: Annotated[Optional[StrictInt], Field(description="ID новости, начиная с которой — включая её — нужно получить список новостей")] = None,
202
+ _request_timeout: Union[
203
+ None,
204
+ Annotated[StrictFloat, Field(gt=0)],
205
+ Tuple[
206
+ Annotated[StrictFloat, Field(gt=0)],
207
+ Annotated[StrictFloat, Field(gt=0)]
208
+ ]
209
+ ] = None,
210
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
211
+ _content_type: Optional[StrictStr] = None,
212
+ _headers: Optional[Dict[StrictStr, Any]] = None,
213
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
214
+ ) -> RESTResponseType:
215
+ """Получение новостей портала продавцов
216
+
217
+ Метод позволяет получать новости портала продавцов. <br> Для получения успешного ответа необходимо указать один из параметров `from` или `fromID`. <br> За один запрос можно получить не более 100 новостей. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 1 запрос | 1 минута | 10 запросов | </div>
218
+
219
+ :param var_from:
220
+ :type var_from: date
221
+ :param from_id: ID новости, начиная с которой — включая её — нужно получить список новостей
222
+ :type from_id: int
223
+ :param _request_timeout: timeout setting for this request. If one
224
+ number provided, it will be total request
225
+ timeout. It can also be a pair (tuple) of
226
+ (connection, read) timeouts.
227
+ :type _request_timeout: int, tuple(int, int), optional
228
+ :param _request_auth: set to override the auth_settings for an a single
229
+ request; this effectively ignores the
230
+ authentication in the spec for a single request.
231
+ :type _request_auth: dict, optional
232
+ :param _content_type: force content-type for the request.
233
+ :type _content_type: str, Optional
234
+ :param _headers: set to override the headers for a single
235
+ request; this effectively ignores the headers
236
+ in the spec for a single request.
237
+ :type _headers: dict, optional
238
+ :param _host_index: set to override the host_index for a single
239
+ request; this effectively ignores the host_index
240
+ in the spec for a single request.
241
+ :type _host_index: int, optional
242
+ :return: Returns the result object.
243
+ """ # noqa: E501
244
+
245
+ _param = self._api_communications_v2_news_get_serialize(
246
+ var_from=var_from,
247
+ from_id=from_id,
248
+ _request_auth=_request_auth,
249
+ _content_type=_content_type,
250
+ _headers=_headers,
251
+ _host_index=_host_index
252
+ )
253
+
254
+ _response_types_map: Dict[str, Optional[str]] = {
255
+ '200': "ApiCommunicationsV2NewsGet200Response",
256
+ '400': None,
257
+ '401': "PingGet401Response",
258
+ '429': "PingGet401Response",
259
+ }
260
+ response_data = self.api_client.call_api(
261
+ *_param,
262
+ _request_timeout=_request_timeout
263
+ )
264
+ return response_data.response
265
+
266
+
267
+ def _api_communications_v2_news_get_serialize(
268
+ self,
269
+ var_from,
270
+ from_id,
271
+ _request_auth,
272
+ _content_type,
273
+ _headers,
274
+ _host_index,
275
+ ) -> RequestSerialized:
276
+
277
+ _hosts = [
278
+ 'https://common-api.wildberries.ru'
279
+ ]
280
+ _host = _hosts[_host_index]
281
+
282
+ _collection_formats: Dict[str, str] = {
283
+ }
284
+
285
+ _path_params: Dict[str, str] = {}
286
+ _query_params: List[Tuple[str, str]] = []
287
+ _header_params: Dict[str, Optional[str]] = _headers or {}
288
+ _form_params: List[Tuple[str, str]] = []
289
+ _files: Dict[
290
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
291
+ ] = {}
292
+ _body_params: Optional[bytes] = None
293
+
294
+ # process the path parameters
295
+ # process the query parameters
296
+ if var_from is not None:
297
+ if isinstance(var_from, date):
298
+ _query_params.append(
299
+ (
300
+ 'from',
301
+ var_from.strftime(
302
+ self.api_client.configuration.date_format
303
+ )
304
+ )
305
+ )
306
+ else:
307
+ _query_params.append(('from', var_from))
308
+
309
+ if from_id is not None:
310
+
311
+ _query_params.append(('fromID', from_id))
312
+
313
+ # process the header parameters
314
+ # process the form parameters
315
+ # process the body parameter
316
+
317
+
318
+ # set the HTTP header `Accept`
319
+ if 'Accept' not in _header_params:
320
+ _header_params['Accept'] = self.api_client.select_header_accept(
321
+ [
322
+ 'application/json'
323
+ ]
324
+ )
325
+
326
+
327
+ # authentication setting
328
+ _auth_settings: List[str] = [
329
+ 'HeaderApiKey'
330
+ ]
331
+
332
+ return self.api_client.param_serialize(
333
+ method='GET',
334
+ resource_path='/api/communications/v2/news',
335
+ path_params=_path_params,
336
+ query_params=_query_params,
337
+ header_params=_header_params,
338
+ body=_body_params,
339
+ post_params=_form_params,
340
+ files=_files,
341
+ auth_settings=_auth_settings,
342
+ collection_formats=_collection_formats,
343
+ _host=_host,
344
+ _request_auth=_request_auth
345
+ )
346
+
347
+
348
+
349
+
46
350
  @validate_call
47
351
  def api_v1_invite_post(
48
352
  self,
@@ -1452,3 +1756,258 @@ class Api:
1452
1756
  )
1453
1757
 
1454
1758
 
1759
+
1760
+
1761
+ @validate_call
1762
+ def ping_get(
1763
+ self,
1764
+ _request_timeout: Union[
1765
+ None,
1766
+ Annotated[StrictFloat, Field(gt=0)],
1767
+ Tuple[
1768
+ Annotated[StrictFloat, Field(gt=0)],
1769
+ Annotated[StrictFloat, Field(gt=0)]
1770
+ ]
1771
+ ] = None,
1772
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1773
+ _content_type: Optional[StrictStr] = None,
1774
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1775
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
1776
+ ) -> PingGet200Response:
1777
+ """Проверка подключения
1778
+
1779
+ Метод проверяет: 1. Успешно ли запрос доходит до WB API 2. Валидность токена авторизации и URL запроса 3. Совпадают ли категория токена и сервис <div class=\"description_important\"> Метод не предназначен для проверки доступности сервисов WB </div> У каждого сервиса есть свой вариант метода в зависимости от домена: | Категория | URL запроса | |---------------|-----------------------| | Контент | `https://content-api.wildberries.ru/ping`<br>`https://content-api-sandbox.wildberries.ru/ping` | | Аналитика | `https://seller-analytics-api.wildberries.ru/ping` | | Цены и скидки | `https://discounts-prices-api.wildberries.ru/ping`<br>`https://discounts-prices-api-sandbox.wildberries.ru/ping` | | Маркетплейс | `https://marketplace-api.wildberries.ru/ping` | | Статистика | `https://statistics-api.wildberries.ru/ping`<br>`https://statistics-api-sandbox.wildberries.ru/ping` | | Продвижение | `https://advert-api.wildberries.ru/ping`<br>`https://advert-api-sandbox.wildberries.ru/ping` | | Вопросы и отзывы | `https://feedbacks-api.wildberries.ru/ping`<br>`https://feedbacks-api-sandbox.wildberries.ru/ping` | | Чат с покупателями | `https://buyer-chat-api.wildberries.ru/ping` | | Поставки | `https://supplies-api.wildberries.ru/ping` | | Возвраты покупателями | `https://returns-api.wildberries.ru/ping` | | Документы | `https://documents-api.wildberries.ru/ping` | | Финансы | `https://finance-api.wildberries.ru/ping` | | Тарифы, Новости, Информация о продавце | `https://common-api.wildberries.ru/ping` | | Управление пользователями продавца | `https://user-management-api.wildberries.ru/ping` | <div class=\"description_limit\"> Максимум 3 запроса за 30 <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">секунд</a>. Если попытаться автоматизировать использование метода, запросы будут временно заблокированы. Лимит действует отдельно для каждого варианта метода в зависимости от домена </div>
1780
+
1781
+ :param _request_timeout: timeout setting for this request. If one
1782
+ number provided, it will be total request
1783
+ timeout. It can also be a pair (tuple) of
1784
+ (connection, read) timeouts.
1785
+ :type _request_timeout: int, tuple(int, int), optional
1786
+ :param _request_auth: set to override the auth_settings for an a single
1787
+ request; this effectively ignores the
1788
+ authentication in the spec for a single request.
1789
+ :type _request_auth: dict, optional
1790
+ :param _content_type: force content-type for the request.
1791
+ :type _content_type: str, Optional
1792
+ :param _headers: set to override the headers for a single
1793
+ request; this effectively ignores the headers
1794
+ in the spec for a single request.
1795
+ :type _headers: dict, optional
1796
+ :param _host_index: set to override the host_index for a single
1797
+ request; this effectively ignores the host_index
1798
+ in the spec for a single request.
1799
+ :type _host_index: int, optional
1800
+ :return: Returns the result object.
1801
+ """ # noqa: E501
1802
+
1803
+ _param = self._ping_get_serialize(
1804
+ _request_auth=_request_auth,
1805
+ _content_type=_content_type,
1806
+ _headers=_headers,
1807
+ _host_index=_host_index
1808
+ )
1809
+
1810
+ _response_types_map: Dict[str, Optional[str]] = {
1811
+ '200': "PingGet200Response",
1812
+ '401': "PingGet401Response",
1813
+ '429': "PingGet401Response",
1814
+ }
1815
+ response_data = self.api_client.call_api(
1816
+ *_param,
1817
+ _request_timeout=_request_timeout
1818
+ )
1819
+ response_data.read()
1820
+ return self.api_client.response_deserialize(
1821
+ response_data=response_data,
1822
+ response_types_map=_response_types_map,
1823
+ ).data
1824
+
1825
+
1826
+ @validate_call
1827
+ def ping_get_with_http_info(
1828
+ self,
1829
+ _request_timeout: Union[
1830
+ None,
1831
+ Annotated[StrictFloat, Field(gt=0)],
1832
+ Tuple[
1833
+ Annotated[StrictFloat, Field(gt=0)],
1834
+ Annotated[StrictFloat, Field(gt=0)]
1835
+ ]
1836
+ ] = None,
1837
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1838
+ _content_type: Optional[StrictStr] = None,
1839
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1840
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
1841
+ ) -> ApiResponse[PingGet200Response]:
1842
+ """Проверка подключения
1843
+
1844
+ Метод проверяет: 1. Успешно ли запрос доходит до WB API 2. Валидность токена авторизации и URL запроса 3. Совпадают ли категория токена и сервис <div class=\"description_important\"> Метод не предназначен для проверки доступности сервисов WB </div> У каждого сервиса есть свой вариант метода в зависимости от домена: | Категория | URL запроса | |---------------|-----------------------| | Контент | `https://content-api.wildberries.ru/ping`<br>`https://content-api-sandbox.wildberries.ru/ping` | | Аналитика | `https://seller-analytics-api.wildberries.ru/ping` | | Цены и скидки | `https://discounts-prices-api.wildberries.ru/ping`<br>`https://discounts-prices-api-sandbox.wildberries.ru/ping` | | Маркетплейс | `https://marketplace-api.wildberries.ru/ping` | | Статистика | `https://statistics-api.wildberries.ru/ping`<br>`https://statistics-api-sandbox.wildberries.ru/ping` | | Продвижение | `https://advert-api.wildberries.ru/ping`<br>`https://advert-api-sandbox.wildberries.ru/ping` | | Вопросы и отзывы | `https://feedbacks-api.wildberries.ru/ping`<br>`https://feedbacks-api-sandbox.wildberries.ru/ping` | | Чат с покупателями | `https://buyer-chat-api.wildberries.ru/ping` | | Поставки | `https://supplies-api.wildberries.ru/ping` | | Возвраты покупателями | `https://returns-api.wildberries.ru/ping` | | Документы | `https://documents-api.wildberries.ru/ping` | | Финансы | `https://finance-api.wildberries.ru/ping` | | Тарифы, Новости, Информация о продавце | `https://common-api.wildberries.ru/ping` | | Управление пользователями продавца | `https://user-management-api.wildberries.ru/ping` | <div class=\"description_limit\"> Максимум 3 запроса за 30 <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">секунд</a>. Если попытаться автоматизировать использование метода, запросы будут временно заблокированы. Лимит действует отдельно для каждого варианта метода в зависимости от домена </div>
1845
+
1846
+ :param _request_timeout: timeout setting for this request. If one
1847
+ number provided, it will be total request
1848
+ timeout. It can also be a pair (tuple) of
1849
+ (connection, read) timeouts.
1850
+ :type _request_timeout: int, tuple(int, int), optional
1851
+ :param _request_auth: set to override the auth_settings for an a single
1852
+ request; this effectively ignores the
1853
+ authentication in the spec for a single request.
1854
+ :type _request_auth: dict, optional
1855
+ :param _content_type: force content-type for the request.
1856
+ :type _content_type: str, Optional
1857
+ :param _headers: set to override the headers for a single
1858
+ request; this effectively ignores the headers
1859
+ in the spec for a single request.
1860
+ :type _headers: dict, optional
1861
+ :param _host_index: set to override the host_index for a single
1862
+ request; this effectively ignores the host_index
1863
+ in the spec for a single request.
1864
+ :type _host_index: int, optional
1865
+ :return: Returns the result object.
1866
+ """ # noqa: E501
1867
+
1868
+ _param = self._ping_get_serialize(
1869
+ _request_auth=_request_auth,
1870
+ _content_type=_content_type,
1871
+ _headers=_headers,
1872
+ _host_index=_host_index
1873
+ )
1874
+
1875
+ _response_types_map: Dict[str, Optional[str]] = {
1876
+ '200': "PingGet200Response",
1877
+ '401': "PingGet401Response",
1878
+ '429': "PingGet401Response",
1879
+ }
1880
+ response_data = self.api_client.call_api(
1881
+ *_param,
1882
+ _request_timeout=_request_timeout
1883
+ )
1884
+ response_data.read()
1885
+ return self.api_client.response_deserialize(
1886
+ response_data=response_data,
1887
+ response_types_map=_response_types_map,
1888
+ )
1889
+
1890
+
1891
+ @validate_call
1892
+ def ping_get_without_preload_content(
1893
+ self,
1894
+ _request_timeout: Union[
1895
+ None,
1896
+ Annotated[StrictFloat, Field(gt=0)],
1897
+ Tuple[
1898
+ Annotated[StrictFloat, Field(gt=0)],
1899
+ Annotated[StrictFloat, Field(gt=0)]
1900
+ ]
1901
+ ] = None,
1902
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1903
+ _content_type: Optional[StrictStr] = None,
1904
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1905
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
1906
+ ) -> RESTResponseType:
1907
+ """Проверка подключения
1908
+
1909
+ Метод проверяет: 1. Успешно ли запрос доходит до WB API 2. Валидность токена авторизации и URL запроса 3. Совпадают ли категория токена и сервис <div class=\"description_important\"> Метод не предназначен для проверки доступности сервисов WB </div> У каждого сервиса есть свой вариант метода в зависимости от домена: | Категория | URL запроса | |---------------|-----------------------| | Контент | `https://content-api.wildberries.ru/ping`<br>`https://content-api-sandbox.wildberries.ru/ping` | | Аналитика | `https://seller-analytics-api.wildberries.ru/ping` | | Цены и скидки | `https://discounts-prices-api.wildberries.ru/ping`<br>`https://discounts-prices-api-sandbox.wildberries.ru/ping` | | Маркетплейс | `https://marketplace-api.wildberries.ru/ping` | | Статистика | `https://statistics-api.wildberries.ru/ping`<br>`https://statistics-api-sandbox.wildberries.ru/ping` | | Продвижение | `https://advert-api.wildberries.ru/ping`<br>`https://advert-api-sandbox.wildberries.ru/ping` | | Вопросы и отзывы | `https://feedbacks-api.wildberries.ru/ping`<br>`https://feedbacks-api-sandbox.wildberries.ru/ping` | | Чат с покупателями | `https://buyer-chat-api.wildberries.ru/ping` | | Поставки | `https://supplies-api.wildberries.ru/ping` | | Возвраты покупателями | `https://returns-api.wildberries.ru/ping` | | Документы | `https://documents-api.wildberries.ru/ping` | | Финансы | `https://finance-api.wildberries.ru/ping` | | Тарифы, Новости, Информация о продавце | `https://common-api.wildberries.ru/ping` | | Управление пользователями продавца | `https://user-management-api.wildberries.ru/ping` | <div class=\"description_limit\"> Максимум 3 запроса за 30 <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">секунд</a>. Если попытаться автоматизировать использование метода, запросы будут временно заблокированы. Лимит действует отдельно для каждого варианта метода в зависимости от домена </div>
1910
+
1911
+ :param _request_timeout: timeout setting for this request. If one
1912
+ number provided, it will be total request
1913
+ timeout. It can also be a pair (tuple) of
1914
+ (connection, read) timeouts.
1915
+ :type _request_timeout: int, tuple(int, int), optional
1916
+ :param _request_auth: set to override the auth_settings for an a single
1917
+ request; this effectively ignores the
1918
+ authentication in the spec for a single request.
1919
+ :type _request_auth: dict, optional
1920
+ :param _content_type: force content-type for the request.
1921
+ :type _content_type: str, Optional
1922
+ :param _headers: set to override the headers for a single
1923
+ request; this effectively ignores the headers
1924
+ in the spec for a single request.
1925
+ :type _headers: dict, optional
1926
+ :param _host_index: set to override the host_index for a single
1927
+ request; this effectively ignores the host_index
1928
+ in the spec for a single request.
1929
+ :type _host_index: int, optional
1930
+ :return: Returns the result object.
1931
+ """ # noqa: E501
1932
+
1933
+ _param = self._ping_get_serialize(
1934
+ _request_auth=_request_auth,
1935
+ _content_type=_content_type,
1936
+ _headers=_headers,
1937
+ _host_index=_host_index
1938
+ )
1939
+
1940
+ _response_types_map: Dict[str, Optional[str]] = {
1941
+ '200': "PingGet200Response",
1942
+ '401': "PingGet401Response",
1943
+ '429': "PingGet401Response",
1944
+ }
1945
+ response_data = self.api_client.call_api(
1946
+ *_param,
1947
+ _request_timeout=_request_timeout
1948
+ )
1949
+ return response_data.response
1950
+
1951
+
1952
+ def _ping_get_serialize(
1953
+ self,
1954
+ _request_auth,
1955
+ _content_type,
1956
+ _headers,
1957
+ _host_index,
1958
+ ) -> RequestSerialized:
1959
+
1960
+ _hosts = [
1961
+ 'https://common-api.wildberries.ru'
1962
+ ]
1963
+ _host = _hosts[_host_index]
1964
+
1965
+ _collection_formats: Dict[str, str] = {
1966
+ }
1967
+
1968
+ _path_params: Dict[str, str] = {}
1969
+ _query_params: List[Tuple[str, str]] = []
1970
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1971
+ _form_params: List[Tuple[str, str]] = []
1972
+ _files: Dict[
1973
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1974
+ ] = {}
1975
+ _body_params: Optional[bytes] = None
1976
+
1977
+ # process the path parameters
1978
+ # process the query parameters
1979
+ # process the header parameters
1980
+ # process the form parameters
1981
+ # process the body parameter
1982
+
1983
+
1984
+ # set the HTTP header `Accept`
1985
+ if 'Accept' not in _header_params:
1986
+ _header_params['Accept'] = self.api_client.select_header_accept(
1987
+ [
1988
+ 'application/json'
1989
+ ]
1990
+ )
1991
+
1992
+
1993
+ # authentication setting
1994
+ _auth_settings: List[str] = [
1995
+ 'HeaderApiKey'
1996
+ ]
1997
+
1998
+ return self.api_client.param_serialize(
1999
+ method='GET',
2000
+ resource_path='/ping',
2001
+ path_params=_path_params,
2002
+ query_params=_query_params,
2003
+ header_params=_header_params,
2004
+ body=_body_params,
2005
+ post_params=_form_params,
2006
+ files=_files,
2007
+ auth_settings=_auth_settings,
2008
+ collection_formats=_collection_formats,
2009
+ _host=_host,
2010
+ _request_auth=_request_auth
2011
+ )
2012
+
2013
+
@@ -91,7 +91,7 @@ class ApiClient:
91
91
  self.default_headers[header_name] = header_value
92
92
  self.cookie = cookie
93
93
  # Set default User-Agent.
94
- self.user_agent = 'OpenAPI-Generator/0.1.17/python'
94
+ self.user_agent = 'OpenAPI-Generator/0.1.19/python'
95
95
  self.client_side_validation = configuration.client_side_validation
96
96
 
97
97
  def __enter__(self):
@@ -536,7 +536,7 @@ conf = wildberries_sdk.general.Configuration(
536
536
  "OS: {env}\n"\
537
537
  "Python Version: {pyversion}\n"\
538
538
  "Version of the API: general\n"\
539
- "SDK Package Version: 0.1.17".\
539
+ "SDK Package Version: 0.1.19".\
540
540
  format(env=sys.platform, pyversion=sys.version)
541
541
 
542
542
  def get_host_settings(self) -> List[HostSetting]:
@@ -14,12 +14,11 @@
14
14
  """ # noqa: E501
15
15
 
16
16
 
17
- __version__ = "0.1.17"
17
+ __version__ = "0.1.19"
18
18
 
19
19
  # Define package exports
20
20
  __all__ = [
21
- "Api",
22
- "Api",
21
+ "DefaultApi",
23
22
  "ApiResponse",
24
23
  "ApiClient",
25
24
  "Configuration",
@@ -56,8 +55,7 @@ __all__ = [
56
55
  ]
57
56
 
58
57
  # import apis into sdk package
59
- from wildberries_sdk.in_store_pickup.api.api import Api as Api
60
- from wildberries_sdk.in_store_pickup.api.api import Api as Api
58
+ from wildberries_sdk.in_store_pickup.api.default_api import DefaultApi as DefaultApi
61
59
 
62
60
  # import ApiClient
63
61
  from wildberries_sdk.in_store_pickup.api_response import ApiResponse as ApiResponse
@@ -1,6 +1,5 @@
1
1
  # flake8: noqa
2
2
 
3
3
  # import apis into api package
4
- from wildberries_sdk.in_store_pickup.api.api import Api
5
- from wildberries_sdk.in_store_pickup.api.api import Api
4
+ from wildberries_sdk.in_store_pickup.api.default_api import DefaultApi
6
5