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.
- 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/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_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.18.dist-info/METADATA +395 -0
- {wildberries_sdk-0.1.16.dist-info → wildberries_sdk-0.1.18.dist-info}/RECORD +78 -88
- 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.16.dist-info/METADATA +0 -191
- {wildberries_sdk-0.1.16.dist-info → wildberries_sdk-0.1.18.dist-info}/LICENSE +0 -0
- {wildberries_sdk-0.1.16.dist-info → wildberries_sdk-0.1.18.dist-info}/WHEEL +0 -0
- {wildberries_sdk-0.1.16.dist-info → wildberries_sdk-0.1.18.dist-info}/top_level.txt +0 -0
|
@@ -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.
|
|
94
|
+
self.user_agent = 'OpenAPI-Generator/0.1.18/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.communications.Configuration(
|
|
|
536
536
|
"OS: {env}\n"\
|
|
537
537
|
"Python Version: {pyversion}\n"\
|
|
538
538
|
"Version of the API: communication\n"\
|
|
539
|
-
"SDK Package Version: 0.1.
|
|
539
|
+
"SDK Package Version: 0.1.18".\
|
|
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
|
+
__version__ = "0.1.18"
|
|
18
18
|
|
|
19
19
|
# Define package exports
|
|
20
20
|
__all__ = [
|
|
21
21
|
"DefaultApi",
|
|
22
|
-
"Api",
|
|
23
22
|
"ApiResponse",
|
|
24
23
|
"ApiClient",
|
|
25
24
|
"Configuration",
|
|
@@ -50,7 +49,6 @@ __all__ = [
|
|
|
50
49
|
|
|
51
50
|
# import apis into sdk package
|
|
52
51
|
from wildberries_sdk.finances.api.default_api import DefaultApi as DefaultApi
|
|
53
|
-
from wildberries_sdk.finances.api.api import Api as Api
|
|
54
52
|
|
|
55
53
|
# import ApiClient
|
|
56
54
|
from wildberries_sdk.finances.api_response import ApiResponse as ApiResponse
|
|
@@ -16,11 +16,12 @@ 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
|
+
from datetime import date, datetime
|
|
20
20
|
from pydantic import Field, StrictInt, StrictStr, field_validator
|
|
21
|
-
from typing import Optional
|
|
21
|
+
from typing import List, Optional
|
|
22
22
|
from typing_extensions import Annotated
|
|
23
23
|
from wildberries_sdk.finances.models.api_v1_account_balance_get200_response import ApiV1AccountBalanceGet200Response
|
|
24
|
+
from wildberries_sdk.finances.models.detail_report_item import DetailReportItem
|
|
24
25
|
from wildberries_sdk.finances.models.get_categories import GetCategories
|
|
25
26
|
from wildberries_sdk.finances.models.get_doc import GetDoc
|
|
26
27
|
from wildberries_sdk.finances.models.get_docs import GetDocs
|
|
@@ -1577,3 +1578,367 @@ class DefaultApi:
|
|
|
1577
1578
|
)
|
|
1578
1579
|
|
|
1579
1580
|
|
|
1581
|
+
|
|
1582
|
+
|
|
1583
|
+
@validate_call
|
|
1584
|
+
def api_v5_supplier_report_detail_by_period_get(
|
|
1585
|
+
self,
|
|
1586
|
+
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` ")],
|
|
1587
|
+
date_to: Annotated[datetime, Field(description="Конечная дата отчёта")],
|
|
1588
|
+
limit: Annotated[Optional[Annotated[int, Field(le=100000, strict=True)]], Field(description="Количество строк в ответе")] = None,
|
|
1589
|
+
rrdid: Annotated[Optional[StrictInt], Field(description="Уникальный ID строки отчёта. Необходим для получения отчёта частями. <br> Загрузку отчёта нужно начинать с `rrdid = 0` и при последующих вызовах API передавать в запросе значение `rrd_id` из последней строки, полученной в результате предыдущего вызова. <br> Таким образом, для загрузки одного отчёта может понадобиться вызывать API до тех пор, пока не вернётся ответ 204. ")] = None,
|
|
1590
|
+
period: Annotated[Optional[StrictStr], Field(description="Периодичность отчёта: - `weekly` — еженедельный - `daily` — ежедневный ")] = None,
|
|
1591
|
+
_request_timeout: Union[
|
|
1592
|
+
None,
|
|
1593
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1594
|
+
Tuple[
|
|
1595
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1596
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1597
|
+
]
|
|
1598
|
+
] = None,
|
|
1599
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1600
|
+
_content_type: Optional[StrictStr] = None,
|
|
1601
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1602
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
|
1603
|
+
) -> List[DetailReportItem]:
|
|
1604
|
+
"""Отчёт о продажах по реализации
|
|
1605
|
+
|
|
1606
|
+
Метод возвращает детализации к [отчётам реализации](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>
|
|
1607
|
+
|
|
1608
|
+
: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)
|
|
1609
|
+
:type date_from: datetime
|
|
1610
|
+
:param date_to: Конечная дата отчёта (required)
|
|
1611
|
+
:type date_to: datetime
|
|
1612
|
+
:param limit: Количество строк в ответе
|
|
1613
|
+
:type limit: int
|
|
1614
|
+
:param rrdid: Уникальный ID строки отчёта. Необходим для получения отчёта частями. <br> Загрузку отчёта нужно начинать с `rrdid = 0` и при последующих вызовах API передавать в запросе значение `rrd_id` из последней строки, полученной в результате предыдущего вызова. <br> Таким образом, для загрузки одного отчёта может понадобиться вызывать API до тех пор, пока не вернётся ответ 204.
|
|
1615
|
+
:type rrdid: int
|
|
1616
|
+
:param period: Периодичность отчёта: - `weekly` — еженедельный - `daily` — ежедневный
|
|
1617
|
+
:type period: str
|
|
1618
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1619
|
+
number provided, it will be total request
|
|
1620
|
+
timeout. It can also be a pair (tuple) of
|
|
1621
|
+
(connection, read) timeouts.
|
|
1622
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1623
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1624
|
+
request; this effectively ignores the
|
|
1625
|
+
authentication in the spec for a single request.
|
|
1626
|
+
:type _request_auth: dict, optional
|
|
1627
|
+
:param _content_type: force content-type for the request.
|
|
1628
|
+
:type _content_type: str, Optional
|
|
1629
|
+
:param _headers: set to override the headers for a single
|
|
1630
|
+
request; this effectively ignores the headers
|
|
1631
|
+
in the spec for a single request.
|
|
1632
|
+
:type _headers: dict, optional
|
|
1633
|
+
:param _host_index: set to override the host_index for a single
|
|
1634
|
+
request; this effectively ignores the host_index
|
|
1635
|
+
in the spec for a single request.
|
|
1636
|
+
:type _host_index: int, optional
|
|
1637
|
+
:return: Returns the result object.
|
|
1638
|
+
""" # noqa: E501
|
|
1639
|
+
|
|
1640
|
+
_param = self._api_v5_supplier_report_detail_by_period_get_serialize(
|
|
1641
|
+
date_from=date_from,
|
|
1642
|
+
date_to=date_to,
|
|
1643
|
+
limit=limit,
|
|
1644
|
+
rrdid=rrdid,
|
|
1645
|
+
period=period,
|
|
1646
|
+
_request_auth=_request_auth,
|
|
1647
|
+
_content_type=_content_type,
|
|
1648
|
+
_headers=_headers,
|
|
1649
|
+
_host_index=_host_index
|
|
1650
|
+
)
|
|
1651
|
+
|
|
1652
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1653
|
+
'200': "List[DetailReportItem]",
|
|
1654
|
+
'204': None,
|
|
1655
|
+
'400': "ApiV5SupplierReportDetailByPeriodGet400Response",
|
|
1656
|
+
'401': "ApiV1AccountBalanceGet401Response",
|
|
1657
|
+
'429': "ApiV1AccountBalanceGet401Response",
|
|
1658
|
+
}
|
|
1659
|
+
response_data = self.api_client.call_api(
|
|
1660
|
+
*_param,
|
|
1661
|
+
_request_timeout=_request_timeout
|
|
1662
|
+
)
|
|
1663
|
+
response_data.read()
|
|
1664
|
+
return self.api_client.response_deserialize(
|
|
1665
|
+
response_data=response_data,
|
|
1666
|
+
response_types_map=_response_types_map,
|
|
1667
|
+
).data
|
|
1668
|
+
|
|
1669
|
+
|
|
1670
|
+
@validate_call
|
|
1671
|
+
def api_v5_supplier_report_detail_by_period_get_with_http_info(
|
|
1672
|
+
self,
|
|
1673
|
+
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` ")],
|
|
1674
|
+
date_to: Annotated[datetime, Field(description="Конечная дата отчёта")],
|
|
1675
|
+
limit: Annotated[Optional[Annotated[int, Field(le=100000, strict=True)]], Field(description="Количество строк в ответе")] = None,
|
|
1676
|
+
rrdid: Annotated[Optional[StrictInt], Field(description="Уникальный ID строки отчёта. Необходим для получения отчёта частями. <br> Загрузку отчёта нужно начинать с `rrdid = 0` и при последующих вызовах API передавать в запросе значение `rrd_id` из последней строки, полученной в результате предыдущего вызова. <br> Таким образом, для загрузки одного отчёта может понадобиться вызывать API до тех пор, пока не вернётся ответ 204. ")] = None,
|
|
1677
|
+
period: Annotated[Optional[StrictStr], Field(description="Периодичность отчёта: - `weekly` — еженедельный - `daily` — ежедневный ")] = None,
|
|
1678
|
+
_request_timeout: Union[
|
|
1679
|
+
None,
|
|
1680
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1681
|
+
Tuple[
|
|
1682
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1683
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1684
|
+
]
|
|
1685
|
+
] = None,
|
|
1686
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1687
|
+
_content_type: Optional[StrictStr] = None,
|
|
1688
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1689
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
|
1690
|
+
) -> ApiResponse[List[DetailReportItem]]:
|
|
1691
|
+
"""Отчёт о продажах по реализации
|
|
1692
|
+
|
|
1693
|
+
Метод возвращает детализации к [отчётам реализации](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>
|
|
1694
|
+
|
|
1695
|
+
: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)
|
|
1696
|
+
:type date_from: datetime
|
|
1697
|
+
:param date_to: Конечная дата отчёта (required)
|
|
1698
|
+
:type date_to: datetime
|
|
1699
|
+
:param limit: Количество строк в ответе
|
|
1700
|
+
:type limit: int
|
|
1701
|
+
:param rrdid: Уникальный ID строки отчёта. Необходим для получения отчёта частями. <br> Загрузку отчёта нужно начинать с `rrdid = 0` и при последующих вызовах API передавать в запросе значение `rrd_id` из последней строки, полученной в результате предыдущего вызова. <br> Таким образом, для загрузки одного отчёта может понадобиться вызывать API до тех пор, пока не вернётся ответ 204.
|
|
1702
|
+
:type rrdid: int
|
|
1703
|
+
:param period: Периодичность отчёта: - `weekly` — еженедельный - `daily` — ежедневный
|
|
1704
|
+
:type period: str
|
|
1705
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1706
|
+
number provided, it will be total request
|
|
1707
|
+
timeout. It can also be a pair (tuple) of
|
|
1708
|
+
(connection, read) timeouts.
|
|
1709
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1710
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1711
|
+
request; this effectively ignores the
|
|
1712
|
+
authentication in the spec for a single request.
|
|
1713
|
+
:type _request_auth: dict, optional
|
|
1714
|
+
:param _content_type: force content-type for the request.
|
|
1715
|
+
:type _content_type: str, Optional
|
|
1716
|
+
:param _headers: set to override the headers for a single
|
|
1717
|
+
request; this effectively ignores the headers
|
|
1718
|
+
in the spec for a single request.
|
|
1719
|
+
:type _headers: dict, optional
|
|
1720
|
+
:param _host_index: set to override the host_index for a single
|
|
1721
|
+
request; this effectively ignores the host_index
|
|
1722
|
+
in the spec for a single request.
|
|
1723
|
+
:type _host_index: int, optional
|
|
1724
|
+
:return: Returns the result object.
|
|
1725
|
+
""" # noqa: E501
|
|
1726
|
+
|
|
1727
|
+
_param = self._api_v5_supplier_report_detail_by_period_get_serialize(
|
|
1728
|
+
date_from=date_from,
|
|
1729
|
+
date_to=date_to,
|
|
1730
|
+
limit=limit,
|
|
1731
|
+
rrdid=rrdid,
|
|
1732
|
+
period=period,
|
|
1733
|
+
_request_auth=_request_auth,
|
|
1734
|
+
_content_type=_content_type,
|
|
1735
|
+
_headers=_headers,
|
|
1736
|
+
_host_index=_host_index
|
|
1737
|
+
)
|
|
1738
|
+
|
|
1739
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1740
|
+
'200': "List[DetailReportItem]",
|
|
1741
|
+
'204': None,
|
|
1742
|
+
'400': "ApiV5SupplierReportDetailByPeriodGet400Response",
|
|
1743
|
+
'401': "ApiV1AccountBalanceGet401Response",
|
|
1744
|
+
'429': "ApiV1AccountBalanceGet401Response",
|
|
1745
|
+
}
|
|
1746
|
+
response_data = self.api_client.call_api(
|
|
1747
|
+
*_param,
|
|
1748
|
+
_request_timeout=_request_timeout
|
|
1749
|
+
)
|
|
1750
|
+
response_data.read()
|
|
1751
|
+
return self.api_client.response_deserialize(
|
|
1752
|
+
response_data=response_data,
|
|
1753
|
+
response_types_map=_response_types_map,
|
|
1754
|
+
)
|
|
1755
|
+
|
|
1756
|
+
|
|
1757
|
+
@validate_call
|
|
1758
|
+
def api_v5_supplier_report_detail_by_period_get_without_preload_content(
|
|
1759
|
+
self,
|
|
1760
|
+
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` ")],
|
|
1761
|
+
date_to: Annotated[datetime, Field(description="Конечная дата отчёта")],
|
|
1762
|
+
limit: Annotated[Optional[Annotated[int, Field(le=100000, strict=True)]], Field(description="Количество строк в ответе")] = None,
|
|
1763
|
+
rrdid: Annotated[Optional[StrictInt], Field(description="Уникальный ID строки отчёта. Необходим для получения отчёта частями. <br> Загрузку отчёта нужно начинать с `rrdid = 0` и при последующих вызовах API передавать в запросе значение `rrd_id` из последней строки, полученной в результате предыдущего вызова. <br> Таким образом, для загрузки одного отчёта может понадобиться вызывать API до тех пор, пока не вернётся ответ 204. ")] = None,
|
|
1764
|
+
period: Annotated[Optional[StrictStr], Field(description="Периодичность отчёта: - `weekly` — еженедельный - `daily` — ежедневный ")] = None,
|
|
1765
|
+
_request_timeout: Union[
|
|
1766
|
+
None,
|
|
1767
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1768
|
+
Tuple[
|
|
1769
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1770
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1771
|
+
]
|
|
1772
|
+
] = None,
|
|
1773
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1774
|
+
_content_type: Optional[StrictStr] = None,
|
|
1775
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1776
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
|
1777
|
+
) -> RESTResponseType:
|
|
1778
|
+
"""Отчёт о продажах по реализации
|
|
1779
|
+
|
|
1780
|
+
Метод возвращает детализации к [отчётам реализации](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>
|
|
1781
|
+
|
|
1782
|
+
: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)
|
|
1783
|
+
:type date_from: datetime
|
|
1784
|
+
:param date_to: Конечная дата отчёта (required)
|
|
1785
|
+
:type date_to: datetime
|
|
1786
|
+
:param limit: Количество строк в ответе
|
|
1787
|
+
:type limit: int
|
|
1788
|
+
:param rrdid: Уникальный ID строки отчёта. Необходим для получения отчёта частями. <br> Загрузку отчёта нужно начинать с `rrdid = 0` и при последующих вызовах API передавать в запросе значение `rrd_id` из последней строки, полученной в результате предыдущего вызова. <br> Таким образом, для загрузки одного отчёта может понадобиться вызывать API до тех пор, пока не вернётся ответ 204.
|
|
1789
|
+
:type rrdid: int
|
|
1790
|
+
:param period: Периодичность отчёта: - `weekly` — еженедельный - `daily` — ежедневный
|
|
1791
|
+
:type period: str
|
|
1792
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1793
|
+
number provided, it will be total request
|
|
1794
|
+
timeout. It can also be a pair (tuple) of
|
|
1795
|
+
(connection, read) timeouts.
|
|
1796
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1797
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1798
|
+
request; this effectively ignores the
|
|
1799
|
+
authentication in the spec for a single request.
|
|
1800
|
+
:type _request_auth: dict, optional
|
|
1801
|
+
:param _content_type: force content-type for the request.
|
|
1802
|
+
:type _content_type: str, Optional
|
|
1803
|
+
:param _headers: set to override the headers for a single
|
|
1804
|
+
request; this effectively ignores the headers
|
|
1805
|
+
in the spec for a single request.
|
|
1806
|
+
:type _headers: dict, optional
|
|
1807
|
+
:param _host_index: set to override the host_index for a single
|
|
1808
|
+
request; this effectively ignores the host_index
|
|
1809
|
+
in the spec for a single request.
|
|
1810
|
+
:type _host_index: int, optional
|
|
1811
|
+
:return: Returns the result object.
|
|
1812
|
+
""" # noqa: E501
|
|
1813
|
+
|
|
1814
|
+
_param = self._api_v5_supplier_report_detail_by_period_get_serialize(
|
|
1815
|
+
date_from=date_from,
|
|
1816
|
+
date_to=date_to,
|
|
1817
|
+
limit=limit,
|
|
1818
|
+
rrdid=rrdid,
|
|
1819
|
+
period=period,
|
|
1820
|
+
_request_auth=_request_auth,
|
|
1821
|
+
_content_type=_content_type,
|
|
1822
|
+
_headers=_headers,
|
|
1823
|
+
_host_index=_host_index
|
|
1824
|
+
)
|
|
1825
|
+
|
|
1826
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1827
|
+
'200': "List[DetailReportItem]",
|
|
1828
|
+
'204': None,
|
|
1829
|
+
'400': "ApiV5SupplierReportDetailByPeriodGet400Response",
|
|
1830
|
+
'401': "ApiV1AccountBalanceGet401Response",
|
|
1831
|
+
'429': "ApiV1AccountBalanceGet401Response",
|
|
1832
|
+
}
|
|
1833
|
+
response_data = self.api_client.call_api(
|
|
1834
|
+
*_param,
|
|
1835
|
+
_request_timeout=_request_timeout
|
|
1836
|
+
)
|
|
1837
|
+
return response_data.response
|
|
1838
|
+
|
|
1839
|
+
|
|
1840
|
+
def _api_v5_supplier_report_detail_by_period_get_serialize(
|
|
1841
|
+
self,
|
|
1842
|
+
date_from,
|
|
1843
|
+
date_to,
|
|
1844
|
+
limit,
|
|
1845
|
+
rrdid,
|
|
1846
|
+
period,
|
|
1847
|
+
_request_auth,
|
|
1848
|
+
_content_type,
|
|
1849
|
+
_headers,
|
|
1850
|
+
_host_index,
|
|
1851
|
+
) -> RequestSerialized:
|
|
1852
|
+
|
|
1853
|
+
_hosts = [
|
|
1854
|
+
'https://statistics-api.wildberries.ru'
|
|
1855
|
+
]
|
|
1856
|
+
_host = _hosts[_host_index]
|
|
1857
|
+
|
|
1858
|
+
_collection_formats: Dict[str, str] = {
|
|
1859
|
+
}
|
|
1860
|
+
|
|
1861
|
+
_path_params: Dict[str, str] = {}
|
|
1862
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1863
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1864
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1865
|
+
_files: Dict[
|
|
1866
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1867
|
+
] = {}
|
|
1868
|
+
_body_params: Optional[bytes] = None
|
|
1869
|
+
|
|
1870
|
+
# process the path parameters
|
|
1871
|
+
# process the query parameters
|
|
1872
|
+
if date_from is not None:
|
|
1873
|
+
if isinstance(date_from, datetime):
|
|
1874
|
+
_query_params.append(
|
|
1875
|
+
(
|
|
1876
|
+
'dateFrom',
|
|
1877
|
+
date_from.strftime(
|
|
1878
|
+
self.api_client.configuration.datetime_format
|
|
1879
|
+
)
|
|
1880
|
+
)
|
|
1881
|
+
)
|
|
1882
|
+
else:
|
|
1883
|
+
_query_params.append(('dateFrom', date_from))
|
|
1884
|
+
|
|
1885
|
+
if date_to is not None:
|
|
1886
|
+
if isinstance(date_to, datetime):
|
|
1887
|
+
_query_params.append(
|
|
1888
|
+
(
|
|
1889
|
+
'dateTo',
|
|
1890
|
+
date_to.strftime(
|
|
1891
|
+
self.api_client.configuration.datetime_format
|
|
1892
|
+
)
|
|
1893
|
+
)
|
|
1894
|
+
)
|
|
1895
|
+
else:
|
|
1896
|
+
_query_params.append(('dateTo', date_to))
|
|
1897
|
+
|
|
1898
|
+
if limit is not None:
|
|
1899
|
+
|
|
1900
|
+
_query_params.append(('limit', limit))
|
|
1901
|
+
|
|
1902
|
+
if rrdid is not None:
|
|
1903
|
+
|
|
1904
|
+
_query_params.append(('rrdid', rrdid))
|
|
1905
|
+
|
|
1906
|
+
if period is not None:
|
|
1907
|
+
|
|
1908
|
+
_query_params.append(('period', period))
|
|
1909
|
+
|
|
1910
|
+
# process the header parameters
|
|
1911
|
+
# process the form parameters
|
|
1912
|
+
# process the body parameter
|
|
1913
|
+
|
|
1914
|
+
|
|
1915
|
+
# set the HTTP header `Accept`
|
|
1916
|
+
if 'Accept' not in _header_params:
|
|
1917
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1918
|
+
[
|
|
1919
|
+
'application/json'
|
|
1920
|
+
]
|
|
1921
|
+
)
|
|
1922
|
+
|
|
1923
|
+
|
|
1924
|
+
# authentication setting
|
|
1925
|
+
_auth_settings: List[str] = [
|
|
1926
|
+
'HeaderApiKey'
|
|
1927
|
+
]
|
|
1928
|
+
|
|
1929
|
+
return self.api_client.param_serialize(
|
|
1930
|
+
method='GET',
|
|
1931
|
+
resource_path='/api/v5/supplier/reportDetailByPeriod',
|
|
1932
|
+
path_params=_path_params,
|
|
1933
|
+
query_params=_query_params,
|
|
1934
|
+
header_params=_header_params,
|
|
1935
|
+
body=_body_params,
|
|
1936
|
+
post_params=_form_params,
|
|
1937
|
+
files=_files,
|
|
1938
|
+
auth_settings=_auth_settings,
|
|
1939
|
+
collection_formats=_collection_formats,
|
|
1940
|
+
_host=_host,
|
|
1941
|
+
_request_auth=_request_auth
|
|
1942
|
+
)
|
|
1943
|
+
|
|
1944
|
+
|
|
@@ -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.
|
|
94
|
+
self.user_agent = 'OpenAPI-Generator/0.1.18/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.finances.Configuration(
|
|
|
536
536
|
"OS: {env}\n"\
|
|
537
537
|
"Python Version: {pyversion}\n"\
|
|
538
538
|
"Version of the API: finances\n"\
|
|
539
|
-
"SDK Package Version: 0.1.
|
|
539
|
+
"SDK Package Version: 0.1.18".\
|
|
540
540
|
format(env=sys.platform, pyversion=sys.version)
|
|
541
541
|
|
|
542
542
|
def get_host_settings(self) -> List[HostSetting]:
|
|
@@ -14,13 +14,11 @@
|
|
|
14
14
|
""" # noqa: E501
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
__version__ = "0.1.
|
|
17
|
+
__version__ = "0.1.18"
|
|
18
18
|
|
|
19
19
|
# Define package exports
|
|
20
20
|
__all__ = [
|
|
21
|
-
"
|
|
22
|
-
"Api",
|
|
23
|
-
"WBAPIApi",
|
|
21
|
+
"DefaultApi",
|
|
24
22
|
"ApiResponse",
|
|
25
23
|
"ApiClient",
|
|
26
24
|
"Configuration",
|
|
@@ -49,9 +47,7 @@ __all__ = [
|
|
|
49
47
|
]
|
|
50
48
|
|
|
51
49
|
# import apis into sdk package
|
|
52
|
-
from wildberries_sdk.general.api.
|
|
53
|
-
from wildberries_sdk.general.api.api import Api as Api
|
|
54
|
-
from wildberries_sdk.general.api.wbapi_api import WBAPIApi as WBAPIApi
|
|
50
|
+
from wildberries_sdk.general.api.default_api import DefaultApi as DefaultApi
|
|
55
51
|
|
|
56
52
|
# import ApiClient
|
|
57
53
|
from wildberries_sdk.general.api_response import ApiResponse as ApiResponse
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
# flake8: noqa
|
|
2
2
|
|
|
3
3
|
# import apis into api package
|
|
4
|
-
from wildberries_sdk.general.api.
|
|
5
|
-
from wildberries_sdk.general.api.api import Api
|
|
6
|
-
from wildberries_sdk.general.api.wbapi_api import WBAPIApi
|
|
4
|
+
from wildberries_sdk.general.api.default_api import DefaultApi
|
|
7
5
|
|