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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. wildberries_sdk/analytics/__init__.py +3 -7
  2. wildberries_sdk/analytics/api/__init__.py +1 -3
  3. wildberries_sdk/analytics/api/default_api.py +4670 -0
  4. wildberries_sdk/analytics/api_client.py +1 -1
  5. wildberries_sdk/analytics/configuration.py +1 -1
  6. wildberries_sdk/communications/__init__.py +1 -5
  7. wildberries_sdk/communications/api/__init__.py +0 -2
  8. wildberries_sdk/communications/api/default_api.py +4282 -858
  9. wildberries_sdk/communications/api_client.py +1 -1
  10. wildberries_sdk/communications/configuration.py +1 -1
  11. wildberries_sdk/finances/__init__.py +1 -3
  12. wildberries_sdk/finances/api/__init__.py +0 -1
  13. wildberries_sdk/finances/api/default_api.py +367 -2
  14. wildberries_sdk/finances/api_client.py +1 -1
  15. wildberries_sdk/finances/configuration.py +1 -1
  16. wildberries_sdk/general/__init__.py +3 -7
  17. wildberries_sdk/general/api/__init__.py +1 -3
  18. wildberries_sdk/general/api/{api.py → default_api.py} +560 -1
  19. wildberries_sdk/general/api_client.py +1 -1
  20. wildberries_sdk/general/configuration.py +1 -1
  21. wildberries_sdk/in_store_pickup/__init__.py +3 -5
  22. wildberries_sdk/in_store_pickup/api/__init__.py +1 -2
  23. wildberries_sdk/in_store_pickup/api/{api.py → default_api.py} +1798 -2
  24. wildberries_sdk/in_store_pickup/api_client.py +1 -1
  25. wildberries_sdk/in_store_pickup/configuration.py +1 -1
  26. wildberries_sdk/orders_dbs/__init__.py +3 -5
  27. wildberries_sdk/orders_dbs/api/__init__.py +1 -2
  28. wildberries_sdk/orders_dbs/api/{dbs_api.py → default_api.py} +1819 -2
  29. wildberries_sdk/orders_dbs/api_client.py +1 -1
  30. wildberries_sdk/orders_dbs/configuration.py +1 -1
  31. wildberries_sdk/orders_dbw/__init__.py +3 -5
  32. wildberries_sdk/orders_dbw/api/__init__.py +1 -2
  33. wildberries_sdk/orders_dbw/api/{dbw_api.py → default_api.py} +1821 -1
  34. wildberries_sdk/orders_dbw/api_client.py +1 -1
  35. wildberries_sdk/orders_dbw/configuration.py +1 -1
  36. wildberries_sdk/orders_fbs/__init__.py +3 -5
  37. wildberries_sdk/orders_fbs/api/__init__.py +1 -2
  38. wildberries_sdk/orders_fbs/api/default_api.py +10043 -0
  39. wildberries_sdk/orders_fbs/api_client.py +1 -1
  40. wildberries_sdk/orders_fbs/configuration.py +1 -1
  41. wildberries_sdk/orders_fbw/__init__.py +3 -5
  42. wildberries_sdk/orders_fbw/api/__init__.py +1 -2
  43. wildberries_sdk/orders_fbw/api/default_api.py +2368 -0
  44. wildberries_sdk/orders_fbw/api_client.py +1 -1
  45. wildberries_sdk/orders_fbw/configuration.py +1 -1
  46. wildberries_sdk/products/__init__.py +1 -7
  47. wildberries_sdk/products/api/__init__.py +0 -3
  48. wildberries_sdk/products/api/default_api.py +12348 -2
  49. wildberries_sdk/products/api_client.py +1 -1
  50. wildberries_sdk/products/configuration.py +1 -1
  51. wildberries_sdk/products/models/content_v2_get_cards_list_post200_response_cards_inner_tags_inner.py +1 -1
  52. wildberries_sdk/promotion/__init__.py +1 -3
  53. wildberries_sdk/promotion/api/__init__.py +0 -1
  54. wildberries_sdk/promotion/api/default_api.py +10107 -1059
  55. wildberries_sdk/promotion/api_client.py +1 -1
  56. wildberries_sdk/promotion/configuration.py +1 -1
  57. wildberries_sdk/reports/__init__.py +3 -13
  58. wildberries_sdk/reports/api/__init__.py +1 -6
  59. wildberries_sdk/{promotion/api/api.py → reports/api/default_api.py} +2245 -2381
  60. wildberries_sdk/reports/api_client.py +1 -1
  61. wildberries_sdk/reports/configuration.py +1 -1
  62. wildberries_sdk/tariffs/__init__.py +1 -3
  63. wildberries_sdk/tariffs/api/__init__.py +0 -1
  64. wildberries_sdk/tariffs/api/default_api.py +1147 -34
  65. wildberries_sdk/tariffs/api_client.py +1 -1
  66. wildberries_sdk/tariffs/configuration.py +1 -1
  67. wildberries_sdk/wbd/__init__.py +1 -3
  68. wildberries_sdk/wbd/api/__init__.py +0 -1
  69. wildberries_sdk/wbd/api/default_api.py +1662 -89
  70. wildberries_sdk/wbd/api_client.py +1 -1
  71. wildberries_sdk/wbd/configuration.py +1 -1
  72. wildberries_sdk/wbd/models/offer_create_request.py +1 -1
  73. wildberries_sdk/wbd/models/offer_update_request.py +1 -1
  74. wildberries_sdk-0.1.18.dist-info/METADATA +395 -0
  75. {wildberries_sdk-0.1.16.dist-info → wildberries_sdk-0.1.18.dist-info}/RECORD +78 -88
  76. wildberries_sdk/analytics/api/api.py +0 -1490
  77. wildberries_sdk/analytics/api/csv_api.py +0 -1178
  78. wildberries_sdk/communications/api/api.py +0 -1166
  79. wildberries_sdk/finances/api/api.py +0 -404
  80. wildberries_sdk/general/api/api_api.py +0 -341
  81. wildberries_sdk/general/api/wbapi_api.py +0 -291
  82. wildberries_sdk/orders_fbs/api/fbs_api.py +0 -2683
  83. wildberries_sdk/orders_fbw/api/api.py +0 -1153
  84. wildberries_sdk/products/api/api.py +0 -3891
  85. wildberries_sdk/reports/api/api.py +0 -350
  86. wildberries_sdk/reports/api/c_api.py +0 -361
  87. wildberries_sdk/tariffs/api/api.py +0 -1151
  88. wildberries_sdk/wbd/api/api.py +0 -1611
  89. wildberries_sdk-0.1.16.dist-info/METADATA +0 -191
  90. {wildberries_sdk-0.1.16.dist-info → wildberries_sdk-0.1.18.dist-info}/LICENSE +0 -0
  91. {wildberries_sdk-0.1.16.dist-info → wildberries_sdk-0.1.18.dist-info}/WHEEL +0 -0
  92. {wildberries_sdk-0.1.16.dist-info → wildberries_sdk-0.1.18.dist-info}/top_level.txt +0 -0
@@ -1,350 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- Отчёты
5
-
6
- <div class=\"description_important\"> Узнать больше об отчётах можно в <a href=\"https://seller.wildberries.ru/instructions/subcategory/5f2162c5-069b-416d-a4e1-48da2a76e6b0\">справочном центре</a> </div> С помощью этих методов вы можете получить [основные отчёты](/openapi/reports#tag/Osnovnye-otchyoty) и отчёты о: 1. [Остатках на складах](/openapi/reports#tag/Otchyot-ob-ostatkah-na-skladah) 2. [Товарах с обязательной маркировкой](/openapi/reports#tag/Otchyot-o-tovarah-c-obyazatelnoj-markirovkoj) 3. [Удержаниях](/openapi/reports#tag/Otchyoty-ob-uderzhaniyah) 4. [Платной приёмке](/openapi/reports#tag/Platnaya-priyomka) 5. [Платном хранении](/openapi/reports#tag/Platnoe-hranenie) 6. [Продажах по регионам](/openapi/reports#tag/Prodazhi-po-regionam) 7. [Доле бренда в продажах](/openapi/reports#tag/Dolya-brenda-v-prodazhah) 8. [Скрытых товарах](/openapi/reports#tag/Skrytye-tovary) 9. [Возвратах и перемещении товаров](/openapi/reports#tag/Otchyot-o-vozvratah-i-peremeshenii-tovarov)
7
-
8
- The version of the OpenAPI document: reports
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
10
-
11
- Do not edit the class manually.
12
- """ # noqa: E501
13
-
14
- import warnings
15
- from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
16
- from typing import Any, Dict, List, Optional, Tuple, Union
17
- from typing_extensions import Annotated
18
-
19
- from datetime import date
20
- from pydantic import Field
21
- from typing_extensions import Annotated
22
- from wildberries_sdk.reports.models.api_v1_analytics_goods_return_get200_response import ApiV1AnalyticsGoodsReturnGet200Response
23
-
24
- from wildberries_sdk.reports.api_client import ApiClient, RequestSerialized
25
- from wildberries_sdk.reports.api_response import ApiResponse
26
- from wildberries_sdk.reports.rest import RESTResponseType
27
-
28
-
29
- class Api:
30
- """NOTE: This class is auto generated by OpenAPI Generator
31
- Ref: https://openapi-generator.tech
32
-
33
- Do not edit the class manually.
34
- """
35
-
36
- def __init__(self, api_client=None) -> None:
37
- if api_client is None:
38
- api_client = ApiClient.get_default()
39
- self.api_client = api_client
40
-
41
-
42
- @validate_call
43
- def api_v1_analytics_goods_return_get(
44
- self,
45
- date_from: Annotated[date, Field(description="Дата начала отчётного периода")],
46
- date_to: Annotated[date, Field(description="Дата окончания отчётного периода")],
47
- _request_timeout: Union[
48
- None,
49
- Annotated[StrictFloat, Field(gt=0)],
50
- Tuple[
51
- Annotated[StrictFloat, Field(gt=0)],
52
- Annotated[StrictFloat, Field(gt=0)]
53
- ]
54
- ] = None,
55
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
56
- _content_type: Optional[StrictStr] = None,
57
- _headers: Optional[Dict[StrictStr, Any]] = None,
58
- _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
59
- ) -> ApiV1AnalyticsGoodsReturnGet200Response:
60
- """Получить отчёт
61
-
62
- Метод возвращает отчёт о [возвратах товаров продавцу](https://seller.wildberries.ru/analytics-reports/goods-return). <br><br> Можно получить отчёт максимум за 31 день. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 1 запрос | 1 минута | 10 запросов | </div>
63
-
64
- :param date_from: Дата начала отчётного периода (required)
65
- :type date_from: date
66
- :param date_to: Дата окончания отчётного периода (required)
67
- :type date_to: date
68
- :param _request_timeout: timeout setting for this request. If one
69
- number provided, it will be total request
70
- timeout. It can also be a pair (tuple) of
71
- (connection, read) timeouts.
72
- :type _request_timeout: int, tuple(int, int), optional
73
- :param _request_auth: set to override the auth_settings for an a single
74
- request; this effectively ignores the
75
- authentication in the spec for a single request.
76
- :type _request_auth: dict, optional
77
- :param _content_type: force content-type for the request.
78
- :type _content_type: str, Optional
79
- :param _headers: set to override the headers for a single
80
- request; this effectively ignores the headers
81
- in the spec for a single request.
82
- :type _headers: dict, optional
83
- :param _host_index: set to override the host_index for a single
84
- request; this effectively ignores the host_index
85
- in the spec for a single request.
86
- :type _host_index: int, optional
87
- :return: Returns the result object.
88
- """ # noqa: E501
89
-
90
- _param = self._api_v1_analytics_goods_return_get_serialize(
91
- date_from=date_from,
92
- date_to=date_to,
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': "ApiV1AnalyticsGoodsReturnGet200Response",
101
- '400': "Model4xxResponse",
102
- '401': "ApiV1SupplierIncomesGet401Response",
103
- '429': "ApiV1SupplierIncomesGet401Response",
104
- }
105
- response_data = self.api_client.call_api(
106
- *_param,
107
- _request_timeout=_request_timeout
108
- )
109
- response_data.read()
110
- return self.api_client.response_deserialize(
111
- response_data=response_data,
112
- response_types_map=_response_types_map,
113
- ).data
114
-
115
-
116
- @validate_call
117
- def api_v1_analytics_goods_return_get_with_http_info(
118
- self,
119
- date_from: Annotated[date, Field(description="Дата начала отчётного периода")],
120
- date_to: Annotated[date, Field(description="Дата окончания отчётного периода")],
121
- _request_timeout: Union[
122
- None,
123
- Annotated[StrictFloat, Field(gt=0)],
124
- Tuple[
125
- Annotated[StrictFloat, Field(gt=0)],
126
- Annotated[StrictFloat, Field(gt=0)]
127
- ]
128
- ] = None,
129
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
130
- _content_type: Optional[StrictStr] = None,
131
- _headers: Optional[Dict[StrictStr, Any]] = None,
132
- _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
133
- ) -> ApiResponse[ApiV1AnalyticsGoodsReturnGet200Response]:
134
- """Получить отчёт
135
-
136
- Метод возвращает отчёт о [возвратах товаров продавцу](https://seller.wildberries.ru/analytics-reports/goods-return). <br><br> Можно получить отчёт максимум за 31 день. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 1 запрос | 1 минута | 10 запросов | </div>
137
-
138
- :param date_from: Дата начала отчётного периода (required)
139
- :type date_from: date
140
- :param date_to: Дата окончания отчётного периода (required)
141
- :type date_to: date
142
- :param _request_timeout: timeout setting for this request. If one
143
- number provided, it will be total request
144
- timeout. It can also be a pair (tuple) of
145
- (connection, read) timeouts.
146
- :type _request_timeout: int, tuple(int, int), optional
147
- :param _request_auth: set to override the auth_settings for an a single
148
- request; this effectively ignores the
149
- authentication in the spec for a single request.
150
- :type _request_auth: dict, optional
151
- :param _content_type: force content-type for the request.
152
- :type _content_type: str, Optional
153
- :param _headers: set to override the headers for a single
154
- request; this effectively ignores the headers
155
- in the spec for a single request.
156
- :type _headers: dict, optional
157
- :param _host_index: set to override the host_index for a single
158
- request; this effectively ignores the host_index
159
- in the spec for a single request.
160
- :type _host_index: int, optional
161
- :return: Returns the result object.
162
- """ # noqa: E501
163
-
164
- _param = self._api_v1_analytics_goods_return_get_serialize(
165
- date_from=date_from,
166
- date_to=date_to,
167
- _request_auth=_request_auth,
168
- _content_type=_content_type,
169
- _headers=_headers,
170
- _host_index=_host_index
171
- )
172
-
173
- _response_types_map: Dict[str, Optional[str]] = {
174
- '200': "ApiV1AnalyticsGoodsReturnGet200Response",
175
- '400': "Model4xxResponse",
176
- '401': "ApiV1SupplierIncomesGet401Response",
177
- '429': "ApiV1SupplierIncomesGet401Response",
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_v1_analytics_goods_return_get_without_preload_content(
192
- self,
193
- date_from: Annotated[date, Field(description="Дата начала отчётного периода")],
194
- date_to: Annotated[date, Field(description="Дата окончания отчётного периода")],
195
- _request_timeout: Union[
196
- None,
197
- Annotated[StrictFloat, Field(gt=0)],
198
- Tuple[
199
- Annotated[StrictFloat, Field(gt=0)],
200
- Annotated[StrictFloat, Field(gt=0)]
201
- ]
202
- ] = None,
203
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
204
- _content_type: Optional[StrictStr] = None,
205
- _headers: Optional[Dict[StrictStr, Any]] = None,
206
- _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
207
- ) -> RESTResponseType:
208
- """Получить отчёт
209
-
210
- Метод возвращает отчёт о [возвратах товаров продавцу](https://seller.wildberries.ru/analytics-reports/goods-return). <br><br> Можно получить отчёт максимум за 31 день. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 1 запрос | 1 минута | 10 запросов | </div>
211
-
212
- :param date_from: Дата начала отчётного периода (required)
213
- :type date_from: date
214
- :param date_to: Дата окончания отчётного периода (required)
215
- :type date_to: date
216
- :param _request_timeout: timeout setting for this request. If one
217
- number provided, it will be total request
218
- timeout. It can also be a pair (tuple) of
219
- (connection, read) timeouts.
220
- :type _request_timeout: int, tuple(int, int), optional
221
- :param _request_auth: set to override the auth_settings for an a single
222
- request; this effectively ignores the
223
- authentication in the spec for a single request.
224
- :type _request_auth: dict, optional
225
- :param _content_type: force content-type for the request.
226
- :type _content_type: str, Optional
227
- :param _headers: set to override the headers for a single
228
- request; this effectively ignores the headers
229
- in the spec for a single request.
230
- :type _headers: dict, optional
231
- :param _host_index: set to override the host_index for a single
232
- request; this effectively ignores the host_index
233
- in the spec for a single request.
234
- :type _host_index: int, optional
235
- :return: Returns the result object.
236
- """ # noqa: E501
237
-
238
- _param = self._api_v1_analytics_goods_return_get_serialize(
239
- date_from=date_from,
240
- date_to=date_to,
241
- _request_auth=_request_auth,
242
- _content_type=_content_type,
243
- _headers=_headers,
244
- _host_index=_host_index
245
- )
246
-
247
- _response_types_map: Dict[str, Optional[str]] = {
248
- '200': "ApiV1AnalyticsGoodsReturnGet200Response",
249
- '400': "Model4xxResponse",
250
- '401': "ApiV1SupplierIncomesGet401Response",
251
- '429': "ApiV1SupplierIncomesGet401Response",
252
- }
253
- response_data = self.api_client.call_api(
254
- *_param,
255
- _request_timeout=_request_timeout
256
- )
257
- return response_data.response
258
-
259
-
260
- def _api_v1_analytics_goods_return_get_serialize(
261
- self,
262
- date_from,
263
- date_to,
264
- _request_auth,
265
- _content_type,
266
- _headers,
267
- _host_index,
268
- ) -> RequestSerialized:
269
-
270
- _hosts = [
271
- 'https://seller-analytics-api.wildberries.ru'
272
- ]
273
- _host = _hosts[_host_index]
274
-
275
- _collection_formats: Dict[str, str] = {
276
- }
277
-
278
- _path_params: Dict[str, str] = {}
279
- _query_params: List[Tuple[str, str]] = []
280
- _header_params: Dict[str, Optional[str]] = _headers or {}
281
- _form_params: List[Tuple[str, str]] = []
282
- _files: Dict[
283
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
284
- ] = {}
285
- _body_params: Optional[bytes] = None
286
-
287
- # process the path parameters
288
- # process the query parameters
289
- if date_from is not None:
290
- if isinstance(date_from, date):
291
- _query_params.append(
292
- (
293
- 'dateFrom',
294
- date_from.strftime(
295
- self.api_client.configuration.date_format
296
- )
297
- )
298
- )
299
- else:
300
- _query_params.append(('dateFrom', date_from))
301
-
302
- if date_to is not None:
303
- if isinstance(date_to, date):
304
- _query_params.append(
305
- (
306
- 'dateTo',
307
- date_to.strftime(
308
- self.api_client.configuration.date_format
309
- )
310
- )
311
- )
312
- else:
313
- _query_params.append(('dateTo', date_to))
314
-
315
- # process the header parameters
316
- # process the form parameters
317
- # process the body parameter
318
-
319
-
320
- # set the HTTP header `Accept`
321
- if 'Accept' not in _header_params:
322
- _header_params['Accept'] = self.api_client.select_header_accept(
323
- [
324
- 'application/json',
325
- 'application/problem+json'
326
- ]
327
- )
328
-
329
-
330
- # authentication setting
331
- _auth_settings: List[str] = [
332
- 'HeaderApiKey'
333
- ]
334
-
335
- return self.api_client.param_serialize(
336
- method='GET',
337
- resource_path='/api/v1/analytics/goods-return',
338
- path_params=_path_params,
339
- query_params=_query_params,
340
- header_params=_header_params,
341
- body=_body_params,
342
- post_params=_form_params,
343
- files=_files,
344
- auth_settings=_auth_settings,
345
- collection_formats=_collection_formats,
346
- _host=_host,
347
- _request_auth=_request_auth
348
- )
349
-
350
-