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.
- wildberries_sdk/analytics/__init__.py +3 -7
- wildberries_sdk/analytics/api/__init__.py +1 -3
- wildberries_sdk/analytics/api/default_api.py +4670 -0
- wildberries_sdk/analytics/api_client.py +1 -1
- wildberries_sdk/analytics/configuration.py +1 -1
- wildberries_sdk/communications/__init__.py +1 -5
- wildberries_sdk/communications/api/__init__.py +0 -2
- wildberries_sdk/communications/api/default_api.py +4282 -858
- wildberries_sdk/communications/api_client.py +1 -1
- wildberries_sdk/communications/configuration.py +1 -1
- wildberries_sdk/finances/__init__.py +1 -3
- wildberries_sdk/finances/api/__init__.py +0 -1
- wildberries_sdk/finances/api/default_api.py +367 -2
- wildberries_sdk/finances/api_client.py +1 -1
- wildberries_sdk/finances/configuration.py +1 -1
- wildberries_sdk/finances/models/detail_report_item.py +6 -2
- wildberries_sdk/general/__init__.py +3 -7
- wildberries_sdk/general/api/__init__.py +1 -3
- wildberries_sdk/general/api/{api.py → default_api.py} +560 -1
- wildberries_sdk/general/api_client.py +1 -1
- wildberries_sdk/general/configuration.py +1 -1
- wildberries_sdk/in_store_pickup/__init__.py +3 -5
- wildberries_sdk/in_store_pickup/api/__init__.py +1 -2
- wildberries_sdk/in_store_pickup/api/{api.py → default_api.py} +1798 -2
- wildberries_sdk/in_store_pickup/api_client.py +1 -1
- wildberries_sdk/in_store_pickup/configuration.py +1 -1
- wildberries_sdk/orders_dbs/__init__.py +3 -5
- wildberries_sdk/orders_dbs/api/__init__.py +1 -2
- wildberries_sdk/orders_dbs/api/{dbs_api.py → default_api.py} +1819 -2
- wildberries_sdk/orders_dbs/api_client.py +1 -1
- wildberries_sdk/orders_dbs/configuration.py +1 -1
- wildberries_sdk/orders_dbw/__init__.py +3 -5
- wildberries_sdk/orders_dbw/api/__init__.py +1 -2
- wildberries_sdk/orders_dbw/api/{dbw_api.py → default_api.py} +1821 -1
- wildberries_sdk/orders_dbw/api_client.py +1 -1
- wildberries_sdk/orders_dbw/configuration.py +1 -1
- wildberries_sdk/orders_fbs/__init__.py +3 -5
- wildberries_sdk/orders_fbs/api/__init__.py +1 -2
- wildberries_sdk/orders_fbs/api/default_api.py +10043 -0
- wildberries_sdk/orders_fbs/api_client.py +1 -1
- wildberries_sdk/orders_fbs/configuration.py +1 -1
- wildberries_sdk/orders_fbw/__init__.py +3 -5
- wildberries_sdk/orders_fbw/api/__init__.py +1 -2
- wildberries_sdk/orders_fbw/api/default_api.py +2368 -0
- wildberries_sdk/orders_fbw/api_client.py +1 -1
- wildberries_sdk/orders_fbw/configuration.py +1 -1
- wildberries_sdk/products/__init__.py +1 -7
- wildberries_sdk/products/api/__init__.py +0 -3
- wildberries_sdk/products/api/default_api.py +12348 -2
- wildberries_sdk/products/api_client.py +1 -1
- wildberries_sdk/products/configuration.py +1 -1
- wildberries_sdk/products/models/content_v2_cards_update_post_request_inner_dimensions.py +1 -1
- wildberries_sdk/products/models/content_v2_cards_upload_add_post_request_cards_to_add_inner_dimensions.py +1 -1
- wildberries_sdk/products/models/content_v2_cards_upload_post_request_inner_variants_inner_dimensions.py +1 -1
- wildberries_sdk/products/models/content_v2_get_cards_list_post200_response_cards_inner_tags_inner.py +1 -1
- wildberries_sdk/promotion/__init__.py +1 -3
- wildberries_sdk/promotion/api/__init__.py +0 -1
- wildberries_sdk/promotion/api/default_api.py +10107 -1059
- wildberries_sdk/promotion/api_client.py +1 -1
- wildberries_sdk/promotion/configuration.py +1 -1
- wildberries_sdk/reports/__init__.py +3 -13
- wildberries_sdk/reports/api/__init__.py +1 -6
- wildberries_sdk/{promotion/api/api.py → reports/api/default_api.py} +2245 -2381
- wildberries_sdk/reports/api_client.py +1 -1
- wildberries_sdk/reports/configuration.py +1 -1
- wildberries_sdk/tariffs/__init__.py +1 -3
- wildberries_sdk/tariffs/api/__init__.py +0 -1
- wildberries_sdk/tariffs/api/default_api.py +1147 -34
- wildberries_sdk/tariffs/api_client.py +1 -1
- wildberries_sdk/tariffs/configuration.py +1 -1
- wildberries_sdk/wbd/__init__.py +1 -3
- wildberries_sdk/wbd/api/__init__.py +0 -1
- wildberries_sdk/wbd/api/default_api.py +1662 -89
- wildberries_sdk/wbd/api_client.py +1 -1
- wildberries_sdk/wbd/configuration.py +1 -1
- wildberries_sdk/wbd/models/offer_create_request.py +1 -1
- wildberries_sdk/wbd/models/offer_update_request.py +1 -1
- wildberries_sdk-0.1.19.dist-info/METADATA +390 -0
- {wildberries_sdk-0.1.17.dist-info → wildberries_sdk-0.1.19.dist-info}/RECORD +82 -92
- wildberries_sdk/analytics/api/api.py +0 -1490
- wildberries_sdk/analytics/api/csv_api.py +0 -1178
- wildberries_sdk/communications/api/api.py +0 -1166
- wildberries_sdk/finances/api/api.py +0 -404
- wildberries_sdk/general/api/api_api.py +0 -341
- wildberries_sdk/general/api/wbapi_api.py +0 -291
- wildberries_sdk/orders_fbs/api/fbs_api.py +0 -2683
- wildberries_sdk/orders_fbw/api/api.py +0 -1153
- wildberries_sdk/products/api/api.py +0 -3891
- wildberries_sdk/reports/api/api.py +0 -350
- wildberries_sdk/reports/api/c_api.py +0 -361
- wildberries_sdk/tariffs/api/api.py +0 -1151
- wildberries_sdk/wbd/api/api.py +0 -1611
- wildberries_sdk-0.1.17.dist-info/METADATA +0 -191
- {wildberries_sdk-0.1.17.dist-info → wildberries_sdk-0.1.19.dist-info}/LICENSE +0 -0
- {wildberries_sdk-0.1.17.dist-info → wildberries_sdk-0.1.19.dist-info}/WHEEL +0 -0
- {wildberries_sdk-0.1.17.dist-info → wildberries_sdk-0.1.19.dist-info}/top_level.txt +0 -0
|
@@ -1,404 +0,0 @@
|
|
|
1
|
-
# coding: utf-8
|
|
2
|
-
|
|
3
|
-
"""
|
|
4
|
-
Документы и бухгалтерия
|
|
5
|
-
|
|
6
|
-
<div class=\"description_important\"> Узнать больше о документах и бухгалтерии можно в <a href=\"https://seller.wildberries.ru/instructions/category/ba929b64-1f89-4426-82d7-ce998ee552bd?goBackOption=prevRoute&categoryId=3c971375-9939-45e8-ab82-376019be8942\">справочном центре</a> </div> Просмотр [баланса](/openapi/financial-reports-and-accounting#tag/Balans), [финансовых отчётов](/openapi/financial-reports-and-accounting#tag/Finansovye-otchyoty) и [документов](/openapi/financial-reports-and-accounting#tag/Dokumenty) продавца.
|
|
7
|
-
|
|
8
|
-
The version of the OpenAPI document: finances
|
|
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 datetime
|
|
20
|
-
from pydantic import Field, StrictInt, StrictStr, field_validator
|
|
21
|
-
from typing import List, Optional
|
|
22
|
-
from typing_extensions import Annotated
|
|
23
|
-
from wildberries_sdk.finances.models.detail_report_item import DetailReportItem
|
|
24
|
-
|
|
25
|
-
from wildberries_sdk.finances.api_client import ApiClient, RequestSerialized
|
|
26
|
-
from wildberries_sdk.finances.api_response import ApiResponse
|
|
27
|
-
from wildberries_sdk.finances.rest import RESTResponseType
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
class Api:
|
|
31
|
-
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
32
|
-
Ref: https://openapi-generator.tech
|
|
33
|
-
|
|
34
|
-
Do not edit the class manually.
|
|
35
|
-
"""
|
|
36
|
-
|
|
37
|
-
def __init__(self, api_client=None) -> None:
|
|
38
|
-
if api_client is None:
|
|
39
|
-
api_client = ApiClient.get_default()
|
|
40
|
-
self.api_client = api_client
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
@validate_call
|
|
44
|
-
def api_v5_supplier_report_detail_by_period_get(
|
|
45
|
-
self,
|
|
46
|
-
date_from: Annotated[datetime, Field(description="Начальная дата отчёта.<br> Дата в формате RFC3339. Можно передать дату или дату со временем. Время можно указывать с точностью до секунд или миллисекунд. <br> Время передаётся в часовом поясе Москва (UTC+3). <br>Примеры: - `2019-06-20` - `2019-06-20T23:59:59` - `2019-06-20T00:00:00.12345` - `2017-03-25T00:00:00` ")],
|
|
47
|
-
date_to: Annotated[datetime, Field(description="Конечная дата отчёта")],
|
|
48
|
-
limit: Annotated[Optional[Annotated[int, Field(le=100000, strict=True)]], Field(description="Количество строк в ответе")] = None,
|
|
49
|
-
rrdid: Annotated[Optional[StrictInt], Field(description="Уникальный ID строки отчёта. Необходим для получения отчёта частями. <br> Загрузку отчёта нужно начинать с `rrdid = 0` и при последующих вызовах API передавать в запросе значение `rrd_id` из последней строки, полученной в результате предыдущего вызова. <br> Таким образом, для загрузки одного отчёта может понадобиться вызывать API до тех пор, пока не вернётся ответ 204. ")] = None,
|
|
50
|
-
period: Annotated[Optional[StrictStr], Field(description="Периодичность отчёта: - `weekly` — еженедельный - `daily` — ежедневный ")] = None,
|
|
51
|
-
_request_timeout: Union[
|
|
52
|
-
None,
|
|
53
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
54
|
-
Tuple[
|
|
55
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
56
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
57
|
-
]
|
|
58
|
-
] = None,
|
|
59
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
60
|
-
_content_type: Optional[StrictStr] = None,
|
|
61
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
62
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
|
63
|
-
) -> List[DetailReportItem]:
|
|
64
|
-
"""Отчёт о продажах по реализации
|
|
65
|
-
|
|
66
|
-
Метод возвращает детализации к [отчётам реализации](https://seller.wildberries.ru/suppliers-mutual-settlements). <br><br> Данные доступны с 29 января 2024 года. <div class=\"description_important\"> Вы можете выгрузить данные в <a href=\"https://dev.wildberries.ru/ru/cases/1\">Google Таблицы</a> </div> <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 1 запрос | 1 минута | 1 запрос | </div>
|
|
67
|
-
|
|
68
|
-
:param date_from: Начальная дата отчёта.<br> Дата в формате RFC3339. Можно передать дату или дату со временем. Время можно указывать с точностью до секунд или миллисекунд. <br> Время передаётся в часовом поясе Москва (UTC+3). <br>Примеры: - `2019-06-20` - `2019-06-20T23:59:59` - `2019-06-20T00:00:00.12345` - `2017-03-25T00:00:00` (required)
|
|
69
|
-
:type date_from: datetime
|
|
70
|
-
:param date_to: Конечная дата отчёта (required)
|
|
71
|
-
:type date_to: datetime
|
|
72
|
-
:param limit: Количество строк в ответе
|
|
73
|
-
:type limit: int
|
|
74
|
-
:param rrdid: Уникальный ID строки отчёта. Необходим для получения отчёта частями. <br> Загрузку отчёта нужно начинать с `rrdid = 0` и при последующих вызовах API передавать в запросе значение `rrd_id` из последней строки, полученной в результате предыдущего вызова. <br> Таким образом, для загрузки одного отчёта может понадобиться вызывать API до тех пор, пока не вернётся ответ 204.
|
|
75
|
-
:type rrdid: int
|
|
76
|
-
:param period: Периодичность отчёта: - `weekly` — еженедельный - `daily` — ежедневный
|
|
77
|
-
:type period: str
|
|
78
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
79
|
-
number provided, it will be total request
|
|
80
|
-
timeout. It can also be a pair (tuple) of
|
|
81
|
-
(connection, read) timeouts.
|
|
82
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
83
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
84
|
-
request; this effectively ignores the
|
|
85
|
-
authentication in the spec for a single request.
|
|
86
|
-
:type _request_auth: dict, optional
|
|
87
|
-
:param _content_type: force content-type for the request.
|
|
88
|
-
:type _content_type: str, Optional
|
|
89
|
-
:param _headers: set to override the headers for a single
|
|
90
|
-
request; this effectively ignores the headers
|
|
91
|
-
in the spec for a single request.
|
|
92
|
-
:type _headers: dict, optional
|
|
93
|
-
:param _host_index: set to override the host_index for a single
|
|
94
|
-
request; this effectively ignores the host_index
|
|
95
|
-
in the spec for a single request.
|
|
96
|
-
:type _host_index: int, optional
|
|
97
|
-
:return: Returns the result object.
|
|
98
|
-
""" # noqa: E501
|
|
99
|
-
|
|
100
|
-
_param = self._api_v5_supplier_report_detail_by_period_get_serialize(
|
|
101
|
-
date_from=date_from,
|
|
102
|
-
date_to=date_to,
|
|
103
|
-
limit=limit,
|
|
104
|
-
rrdid=rrdid,
|
|
105
|
-
period=period,
|
|
106
|
-
_request_auth=_request_auth,
|
|
107
|
-
_content_type=_content_type,
|
|
108
|
-
_headers=_headers,
|
|
109
|
-
_host_index=_host_index
|
|
110
|
-
)
|
|
111
|
-
|
|
112
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
113
|
-
'200': "List[DetailReportItem]",
|
|
114
|
-
'204': None,
|
|
115
|
-
'400': "ApiV5SupplierReportDetailByPeriodGet400Response",
|
|
116
|
-
'401': "ApiV1AccountBalanceGet401Response",
|
|
117
|
-
'429': "ApiV1AccountBalanceGet401Response",
|
|
118
|
-
}
|
|
119
|
-
response_data = self.api_client.call_api(
|
|
120
|
-
*_param,
|
|
121
|
-
_request_timeout=_request_timeout
|
|
122
|
-
)
|
|
123
|
-
response_data.read()
|
|
124
|
-
return self.api_client.response_deserialize(
|
|
125
|
-
response_data=response_data,
|
|
126
|
-
response_types_map=_response_types_map,
|
|
127
|
-
).data
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
@validate_call
|
|
131
|
-
def api_v5_supplier_report_detail_by_period_get_with_http_info(
|
|
132
|
-
self,
|
|
133
|
-
date_from: Annotated[datetime, Field(description="Начальная дата отчёта.<br> Дата в формате RFC3339. Можно передать дату или дату со временем. Время можно указывать с точностью до секунд или миллисекунд. <br> Время передаётся в часовом поясе Москва (UTC+3). <br>Примеры: - `2019-06-20` - `2019-06-20T23:59:59` - `2019-06-20T00:00:00.12345` - `2017-03-25T00:00:00` ")],
|
|
134
|
-
date_to: Annotated[datetime, Field(description="Конечная дата отчёта")],
|
|
135
|
-
limit: Annotated[Optional[Annotated[int, Field(le=100000, strict=True)]], Field(description="Количество строк в ответе")] = None,
|
|
136
|
-
rrdid: Annotated[Optional[StrictInt], Field(description="Уникальный ID строки отчёта. Необходим для получения отчёта частями. <br> Загрузку отчёта нужно начинать с `rrdid = 0` и при последующих вызовах API передавать в запросе значение `rrd_id` из последней строки, полученной в результате предыдущего вызова. <br> Таким образом, для загрузки одного отчёта может понадобиться вызывать API до тех пор, пока не вернётся ответ 204. ")] = None,
|
|
137
|
-
period: Annotated[Optional[StrictStr], Field(description="Периодичность отчёта: - `weekly` — еженедельный - `daily` — ежедневный ")] = None,
|
|
138
|
-
_request_timeout: Union[
|
|
139
|
-
None,
|
|
140
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
141
|
-
Tuple[
|
|
142
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
143
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
144
|
-
]
|
|
145
|
-
] = None,
|
|
146
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
147
|
-
_content_type: Optional[StrictStr] = None,
|
|
148
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
149
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
|
150
|
-
) -> ApiResponse[List[DetailReportItem]]:
|
|
151
|
-
"""Отчёт о продажах по реализации
|
|
152
|
-
|
|
153
|
-
Метод возвращает детализации к [отчётам реализации](https://seller.wildberries.ru/suppliers-mutual-settlements). <br><br> Данные доступны с 29 января 2024 года. <div class=\"description_important\"> Вы можете выгрузить данные в <a href=\"https://dev.wildberries.ru/ru/cases/1\">Google Таблицы</a> </div> <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 1 запрос | 1 минута | 1 запрос | </div>
|
|
154
|
-
|
|
155
|
-
:param date_from: Начальная дата отчёта.<br> Дата в формате RFC3339. Можно передать дату или дату со временем. Время можно указывать с точностью до секунд или миллисекунд. <br> Время передаётся в часовом поясе Москва (UTC+3). <br>Примеры: - `2019-06-20` - `2019-06-20T23:59:59` - `2019-06-20T00:00:00.12345` - `2017-03-25T00:00:00` (required)
|
|
156
|
-
:type date_from: datetime
|
|
157
|
-
:param date_to: Конечная дата отчёта (required)
|
|
158
|
-
:type date_to: datetime
|
|
159
|
-
:param limit: Количество строк в ответе
|
|
160
|
-
:type limit: int
|
|
161
|
-
:param rrdid: Уникальный ID строки отчёта. Необходим для получения отчёта частями. <br> Загрузку отчёта нужно начинать с `rrdid = 0` и при последующих вызовах API передавать в запросе значение `rrd_id` из последней строки, полученной в результате предыдущего вызова. <br> Таким образом, для загрузки одного отчёта может понадобиться вызывать API до тех пор, пока не вернётся ответ 204.
|
|
162
|
-
:type rrdid: int
|
|
163
|
-
:param period: Периодичность отчёта: - `weekly` — еженедельный - `daily` — ежедневный
|
|
164
|
-
:type period: str
|
|
165
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
166
|
-
number provided, it will be total request
|
|
167
|
-
timeout. It can also be a pair (tuple) of
|
|
168
|
-
(connection, read) timeouts.
|
|
169
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
170
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
171
|
-
request; this effectively ignores the
|
|
172
|
-
authentication in the spec for a single request.
|
|
173
|
-
:type _request_auth: dict, optional
|
|
174
|
-
:param _content_type: force content-type for the request.
|
|
175
|
-
:type _content_type: str, Optional
|
|
176
|
-
:param _headers: set to override the headers for a single
|
|
177
|
-
request; this effectively ignores the headers
|
|
178
|
-
in the spec for a single request.
|
|
179
|
-
:type _headers: dict, optional
|
|
180
|
-
:param _host_index: set to override the host_index for a single
|
|
181
|
-
request; this effectively ignores the host_index
|
|
182
|
-
in the spec for a single request.
|
|
183
|
-
:type _host_index: int, optional
|
|
184
|
-
:return: Returns the result object.
|
|
185
|
-
""" # noqa: E501
|
|
186
|
-
|
|
187
|
-
_param = self._api_v5_supplier_report_detail_by_period_get_serialize(
|
|
188
|
-
date_from=date_from,
|
|
189
|
-
date_to=date_to,
|
|
190
|
-
limit=limit,
|
|
191
|
-
rrdid=rrdid,
|
|
192
|
-
period=period,
|
|
193
|
-
_request_auth=_request_auth,
|
|
194
|
-
_content_type=_content_type,
|
|
195
|
-
_headers=_headers,
|
|
196
|
-
_host_index=_host_index
|
|
197
|
-
)
|
|
198
|
-
|
|
199
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
200
|
-
'200': "List[DetailReportItem]",
|
|
201
|
-
'204': None,
|
|
202
|
-
'400': "ApiV5SupplierReportDetailByPeriodGet400Response",
|
|
203
|
-
'401': "ApiV1AccountBalanceGet401Response",
|
|
204
|
-
'429': "ApiV1AccountBalanceGet401Response",
|
|
205
|
-
}
|
|
206
|
-
response_data = self.api_client.call_api(
|
|
207
|
-
*_param,
|
|
208
|
-
_request_timeout=_request_timeout
|
|
209
|
-
)
|
|
210
|
-
response_data.read()
|
|
211
|
-
return self.api_client.response_deserialize(
|
|
212
|
-
response_data=response_data,
|
|
213
|
-
response_types_map=_response_types_map,
|
|
214
|
-
)
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
@validate_call
|
|
218
|
-
def api_v5_supplier_report_detail_by_period_get_without_preload_content(
|
|
219
|
-
self,
|
|
220
|
-
date_from: Annotated[datetime, Field(description="Начальная дата отчёта.<br> Дата в формате RFC3339. Можно передать дату или дату со временем. Время можно указывать с точностью до секунд или миллисекунд. <br> Время передаётся в часовом поясе Москва (UTC+3). <br>Примеры: - `2019-06-20` - `2019-06-20T23:59:59` - `2019-06-20T00:00:00.12345` - `2017-03-25T00:00:00` ")],
|
|
221
|
-
date_to: Annotated[datetime, Field(description="Конечная дата отчёта")],
|
|
222
|
-
limit: Annotated[Optional[Annotated[int, Field(le=100000, strict=True)]], Field(description="Количество строк в ответе")] = None,
|
|
223
|
-
rrdid: Annotated[Optional[StrictInt], Field(description="Уникальный ID строки отчёта. Необходим для получения отчёта частями. <br> Загрузку отчёта нужно начинать с `rrdid = 0` и при последующих вызовах API передавать в запросе значение `rrd_id` из последней строки, полученной в результате предыдущего вызова. <br> Таким образом, для загрузки одного отчёта может понадобиться вызывать API до тех пор, пока не вернётся ответ 204. ")] = None,
|
|
224
|
-
period: Annotated[Optional[StrictStr], Field(description="Периодичность отчёта: - `weekly` — еженедельный - `daily` — ежедневный ")] = None,
|
|
225
|
-
_request_timeout: Union[
|
|
226
|
-
None,
|
|
227
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
228
|
-
Tuple[
|
|
229
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
230
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
231
|
-
]
|
|
232
|
-
] = None,
|
|
233
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
234
|
-
_content_type: Optional[StrictStr] = None,
|
|
235
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
236
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
|
237
|
-
) -> RESTResponseType:
|
|
238
|
-
"""Отчёт о продажах по реализации
|
|
239
|
-
|
|
240
|
-
Метод возвращает детализации к [отчётам реализации](https://seller.wildberries.ru/suppliers-mutual-settlements). <br><br> Данные доступны с 29 января 2024 года. <div class=\"description_important\"> Вы можете выгрузить данные в <a href=\"https://dev.wildberries.ru/ru/cases/1\">Google Таблицы</a> </div> <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 1 запрос | 1 минута | 1 запрос | </div>
|
|
241
|
-
|
|
242
|
-
:param date_from: Начальная дата отчёта.<br> Дата в формате RFC3339. Можно передать дату или дату со временем. Время можно указывать с точностью до секунд или миллисекунд. <br> Время передаётся в часовом поясе Москва (UTC+3). <br>Примеры: - `2019-06-20` - `2019-06-20T23:59:59` - `2019-06-20T00:00:00.12345` - `2017-03-25T00:00:00` (required)
|
|
243
|
-
:type date_from: datetime
|
|
244
|
-
:param date_to: Конечная дата отчёта (required)
|
|
245
|
-
:type date_to: datetime
|
|
246
|
-
:param limit: Количество строк в ответе
|
|
247
|
-
:type limit: int
|
|
248
|
-
:param rrdid: Уникальный ID строки отчёта. Необходим для получения отчёта частями. <br> Загрузку отчёта нужно начинать с `rrdid = 0` и при последующих вызовах API передавать в запросе значение `rrd_id` из последней строки, полученной в результате предыдущего вызова. <br> Таким образом, для загрузки одного отчёта может понадобиться вызывать API до тех пор, пока не вернётся ответ 204.
|
|
249
|
-
:type rrdid: int
|
|
250
|
-
:param period: Периодичность отчёта: - `weekly` — еженедельный - `daily` — ежедневный
|
|
251
|
-
:type period: str
|
|
252
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
253
|
-
number provided, it will be total request
|
|
254
|
-
timeout. It can also be a pair (tuple) of
|
|
255
|
-
(connection, read) timeouts.
|
|
256
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
257
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
258
|
-
request; this effectively ignores the
|
|
259
|
-
authentication in the spec for a single request.
|
|
260
|
-
:type _request_auth: dict, optional
|
|
261
|
-
:param _content_type: force content-type for the request.
|
|
262
|
-
:type _content_type: str, Optional
|
|
263
|
-
:param _headers: set to override the headers for a single
|
|
264
|
-
request; this effectively ignores the headers
|
|
265
|
-
in the spec for a single request.
|
|
266
|
-
:type _headers: dict, optional
|
|
267
|
-
:param _host_index: set to override the host_index for a single
|
|
268
|
-
request; this effectively ignores the host_index
|
|
269
|
-
in the spec for a single request.
|
|
270
|
-
:type _host_index: int, optional
|
|
271
|
-
:return: Returns the result object.
|
|
272
|
-
""" # noqa: E501
|
|
273
|
-
|
|
274
|
-
_param = self._api_v5_supplier_report_detail_by_period_get_serialize(
|
|
275
|
-
date_from=date_from,
|
|
276
|
-
date_to=date_to,
|
|
277
|
-
limit=limit,
|
|
278
|
-
rrdid=rrdid,
|
|
279
|
-
period=period,
|
|
280
|
-
_request_auth=_request_auth,
|
|
281
|
-
_content_type=_content_type,
|
|
282
|
-
_headers=_headers,
|
|
283
|
-
_host_index=_host_index
|
|
284
|
-
)
|
|
285
|
-
|
|
286
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
287
|
-
'200': "List[DetailReportItem]",
|
|
288
|
-
'204': None,
|
|
289
|
-
'400': "ApiV5SupplierReportDetailByPeriodGet400Response",
|
|
290
|
-
'401': "ApiV1AccountBalanceGet401Response",
|
|
291
|
-
'429': "ApiV1AccountBalanceGet401Response",
|
|
292
|
-
}
|
|
293
|
-
response_data = self.api_client.call_api(
|
|
294
|
-
*_param,
|
|
295
|
-
_request_timeout=_request_timeout
|
|
296
|
-
)
|
|
297
|
-
return response_data.response
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
def _api_v5_supplier_report_detail_by_period_get_serialize(
|
|
301
|
-
self,
|
|
302
|
-
date_from,
|
|
303
|
-
date_to,
|
|
304
|
-
limit,
|
|
305
|
-
rrdid,
|
|
306
|
-
period,
|
|
307
|
-
_request_auth,
|
|
308
|
-
_content_type,
|
|
309
|
-
_headers,
|
|
310
|
-
_host_index,
|
|
311
|
-
) -> RequestSerialized:
|
|
312
|
-
|
|
313
|
-
_hosts = [
|
|
314
|
-
'https://statistics-api.wildberries.ru'
|
|
315
|
-
]
|
|
316
|
-
_host = _hosts[_host_index]
|
|
317
|
-
|
|
318
|
-
_collection_formats: Dict[str, str] = {
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
_path_params: Dict[str, str] = {}
|
|
322
|
-
_query_params: List[Tuple[str, str]] = []
|
|
323
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
324
|
-
_form_params: List[Tuple[str, str]] = []
|
|
325
|
-
_files: Dict[
|
|
326
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
327
|
-
] = {}
|
|
328
|
-
_body_params: Optional[bytes] = None
|
|
329
|
-
|
|
330
|
-
# process the path parameters
|
|
331
|
-
# process the query parameters
|
|
332
|
-
if date_from is not None:
|
|
333
|
-
if isinstance(date_from, datetime):
|
|
334
|
-
_query_params.append(
|
|
335
|
-
(
|
|
336
|
-
'dateFrom',
|
|
337
|
-
date_from.strftime(
|
|
338
|
-
self.api_client.configuration.datetime_format
|
|
339
|
-
)
|
|
340
|
-
)
|
|
341
|
-
)
|
|
342
|
-
else:
|
|
343
|
-
_query_params.append(('dateFrom', date_from))
|
|
344
|
-
|
|
345
|
-
if date_to is not None:
|
|
346
|
-
if isinstance(date_to, datetime):
|
|
347
|
-
_query_params.append(
|
|
348
|
-
(
|
|
349
|
-
'dateTo',
|
|
350
|
-
date_to.strftime(
|
|
351
|
-
self.api_client.configuration.datetime_format
|
|
352
|
-
)
|
|
353
|
-
)
|
|
354
|
-
)
|
|
355
|
-
else:
|
|
356
|
-
_query_params.append(('dateTo', date_to))
|
|
357
|
-
|
|
358
|
-
if limit is not None:
|
|
359
|
-
|
|
360
|
-
_query_params.append(('limit', limit))
|
|
361
|
-
|
|
362
|
-
if rrdid is not None:
|
|
363
|
-
|
|
364
|
-
_query_params.append(('rrdid', rrdid))
|
|
365
|
-
|
|
366
|
-
if period is not None:
|
|
367
|
-
|
|
368
|
-
_query_params.append(('period', period))
|
|
369
|
-
|
|
370
|
-
# process the header parameters
|
|
371
|
-
# process the form parameters
|
|
372
|
-
# process the body parameter
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
# set the HTTP header `Accept`
|
|
376
|
-
if 'Accept' not in _header_params:
|
|
377
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
378
|
-
[
|
|
379
|
-
'application/json'
|
|
380
|
-
]
|
|
381
|
-
)
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
# authentication setting
|
|
385
|
-
_auth_settings: List[str] = [
|
|
386
|
-
'HeaderApiKey'
|
|
387
|
-
]
|
|
388
|
-
|
|
389
|
-
return self.api_client.param_serialize(
|
|
390
|
-
method='GET',
|
|
391
|
-
resource_path='/api/v5/supplier/reportDetailByPeriod',
|
|
392
|
-
path_params=_path_params,
|
|
393
|
-
query_params=_query_params,
|
|
394
|
-
header_params=_header_params,
|
|
395
|
-
body=_body_params,
|
|
396
|
-
post_params=_form_params,
|
|
397
|
-
files=_files,
|
|
398
|
-
auth_settings=_auth_settings,
|
|
399
|
-
collection_formats=_collection_formats,
|
|
400
|
-
_host=_host,
|
|
401
|
-
_request_auth=_request_auth
|
|
402
|
-
)
|
|
403
|
-
|
|
404
|
-
|