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
|
@@ -1,361 +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 pydantic import Field, StrictStr
|
|
20
|
-
from typing import Optional
|
|
21
|
-
from typing_extensions import Annotated
|
|
22
|
-
from wildberries_sdk.reports.models.excise_report_request import ExciseReportRequest
|
|
23
|
-
from wildberries_sdk.reports.models.excise_report_response import ExciseReportResponse
|
|
24
|
-
|
|
25
|
-
from wildberries_sdk.reports.api_client import ApiClient, RequestSerialized
|
|
26
|
-
from wildberries_sdk.reports.api_response import ApiResponse
|
|
27
|
-
from wildberries_sdk.reports.rest import RESTResponseType
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
class CApi:
|
|
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_v1_analytics_excise_report_post(
|
|
45
|
-
self,
|
|
46
|
-
date_from: Annotated[StrictStr, Field(description="Начало отчётного периода, `ГГГГ-ММ-ДД` ")],
|
|
47
|
-
date_to: Annotated[StrictStr, Field(description="Конец отчётного периода, `ГГГГ-ММ-ДД` ")],
|
|
48
|
-
excise_report_request: Optional[ExciseReportRequest] = None,
|
|
49
|
-
_request_timeout: Union[
|
|
50
|
-
None,
|
|
51
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
52
|
-
Tuple[
|
|
53
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
54
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
55
|
-
]
|
|
56
|
-
] = None,
|
|
57
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
58
|
-
_content_type: Optional[StrictStr] = None,
|
|
59
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
60
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
|
61
|
-
) -> ExciseReportResponse:
|
|
62
|
-
"""Получить отчёт
|
|
63
|
-
|
|
64
|
-
Метод возвращает отчёт с [операциями по товарам с обязательной маркировкой](https://seller.wildberries.ru/analytics-reports/excise-report).<br><br> Данный отчёт можно сохранить в [формате таблиц](https://dev.wildberries.ru/cases/1). <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 5 часов | 10 запросов | 30 минут | 10 запросов | </div>
|
|
65
|
-
|
|
66
|
-
:param date_from: Начало отчётного периода, `ГГГГ-ММ-ДД` (required)
|
|
67
|
-
:type date_from: str
|
|
68
|
-
:param date_to: Конец отчётного периода, `ГГГГ-ММ-ДД` (required)
|
|
69
|
-
:type date_to: str
|
|
70
|
-
:param excise_report_request:
|
|
71
|
-
:type excise_report_request: ExciseReportRequest
|
|
72
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
73
|
-
number provided, it will be total request
|
|
74
|
-
timeout. It can also be a pair (tuple) of
|
|
75
|
-
(connection, read) timeouts.
|
|
76
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
77
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
78
|
-
request; this effectively ignores the
|
|
79
|
-
authentication in the spec for a single request.
|
|
80
|
-
:type _request_auth: dict, optional
|
|
81
|
-
:param _content_type: force content-type for the request.
|
|
82
|
-
:type _content_type: str, Optional
|
|
83
|
-
:param _headers: set to override the headers for a single
|
|
84
|
-
request; this effectively ignores the headers
|
|
85
|
-
in the spec for a single request.
|
|
86
|
-
:type _headers: dict, optional
|
|
87
|
-
:param _host_index: set to override the host_index for a single
|
|
88
|
-
request; this effectively ignores the host_index
|
|
89
|
-
in the spec for a single request.
|
|
90
|
-
:type _host_index: int, optional
|
|
91
|
-
:return: Returns the result object.
|
|
92
|
-
""" # noqa: E501
|
|
93
|
-
|
|
94
|
-
_param = self._api_v1_analytics_excise_report_post_serialize(
|
|
95
|
-
date_from=date_from,
|
|
96
|
-
date_to=date_to,
|
|
97
|
-
excise_report_request=excise_report_request,
|
|
98
|
-
_request_auth=_request_auth,
|
|
99
|
-
_content_type=_content_type,
|
|
100
|
-
_headers=_headers,
|
|
101
|
-
_host_index=_host_index
|
|
102
|
-
)
|
|
103
|
-
|
|
104
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
105
|
-
'200': "ExciseReportResponse",
|
|
106
|
-
'400': "Model4xxResponse",
|
|
107
|
-
'401': "ApiV1SupplierIncomesGet401Response",
|
|
108
|
-
'429': "ApiV1SupplierIncomesGet401Response",
|
|
109
|
-
}
|
|
110
|
-
response_data = self.api_client.call_api(
|
|
111
|
-
*_param,
|
|
112
|
-
_request_timeout=_request_timeout
|
|
113
|
-
)
|
|
114
|
-
response_data.read()
|
|
115
|
-
return self.api_client.response_deserialize(
|
|
116
|
-
response_data=response_data,
|
|
117
|
-
response_types_map=_response_types_map,
|
|
118
|
-
).data
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
@validate_call
|
|
122
|
-
def api_v1_analytics_excise_report_post_with_http_info(
|
|
123
|
-
self,
|
|
124
|
-
date_from: Annotated[StrictStr, Field(description="Начало отчётного периода, `ГГГГ-ММ-ДД` ")],
|
|
125
|
-
date_to: Annotated[StrictStr, Field(description="Конец отчётного периода, `ГГГГ-ММ-ДД` ")],
|
|
126
|
-
excise_report_request: Optional[ExciseReportRequest] = None,
|
|
127
|
-
_request_timeout: Union[
|
|
128
|
-
None,
|
|
129
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
130
|
-
Tuple[
|
|
131
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
132
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
133
|
-
]
|
|
134
|
-
] = None,
|
|
135
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
136
|
-
_content_type: Optional[StrictStr] = None,
|
|
137
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
138
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
|
139
|
-
) -> ApiResponse[ExciseReportResponse]:
|
|
140
|
-
"""Получить отчёт
|
|
141
|
-
|
|
142
|
-
Метод возвращает отчёт с [операциями по товарам с обязательной маркировкой](https://seller.wildberries.ru/analytics-reports/excise-report).<br><br> Данный отчёт можно сохранить в [формате таблиц](https://dev.wildberries.ru/cases/1). <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 5 часов | 10 запросов | 30 минут | 10 запросов | </div>
|
|
143
|
-
|
|
144
|
-
:param date_from: Начало отчётного периода, `ГГГГ-ММ-ДД` (required)
|
|
145
|
-
:type date_from: str
|
|
146
|
-
:param date_to: Конец отчётного периода, `ГГГГ-ММ-ДД` (required)
|
|
147
|
-
:type date_to: str
|
|
148
|
-
:param excise_report_request:
|
|
149
|
-
:type excise_report_request: ExciseReportRequest
|
|
150
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
151
|
-
number provided, it will be total request
|
|
152
|
-
timeout. It can also be a pair (tuple) of
|
|
153
|
-
(connection, read) timeouts.
|
|
154
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
155
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
156
|
-
request; this effectively ignores the
|
|
157
|
-
authentication in the spec for a single request.
|
|
158
|
-
:type _request_auth: dict, optional
|
|
159
|
-
:param _content_type: force content-type for the request.
|
|
160
|
-
:type _content_type: str, Optional
|
|
161
|
-
:param _headers: set to override the headers for a single
|
|
162
|
-
request; this effectively ignores the headers
|
|
163
|
-
in the spec for a single request.
|
|
164
|
-
:type _headers: dict, optional
|
|
165
|
-
:param _host_index: set to override the host_index for a single
|
|
166
|
-
request; this effectively ignores the host_index
|
|
167
|
-
in the spec for a single request.
|
|
168
|
-
:type _host_index: int, optional
|
|
169
|
-
:return: Returns the result object.
|
|
170
|
-
""" # noqa: E501
|
|
171
|
-
|
|
172
|
-
_param = self._api_v1_analytics_excise_report_post_serialize(
|
|
173
|
-
date_from=date_from,
|
|
174
|
-
date_to=date_to,
|
|
175
|
-
excise_report_request=excise_report_request,
|
|
176
|
-
_request_auth=_request_auth,
|
|
177
|
-
_content_type=_content_type,
|
|
178
|
-
_headers=_headers,
|
|
179
|
-
_host_index=_host_index
|
|
180
|
-
)
|
|
181
|
-
|
|
182
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
183
|
-
'200': "ExciseReportResponse",
|
|
184
|
-
'400': "Model4xxResponse",
|
|
185
|
-
'401': "ApiV1SupplierIncomesGet401Response",
|
|
186
|
-
'429': "ApiV1SupplierIncomesGet401Response",
|
|
187
|
-
}
|
|
188
|
-
response_data = self.api_client.call_api(
|
|
189
|
-
*_param,
|
|
190
|
-
_request_timeout=_request_timeout
|
|
191
|
-
)
|
|
192
|
-
response_data.read()
|
|
193
|
-
return self.api_client.response_deserialize(
|
|
194
|
-
response_data=response_data,
|
|
195
|
-
response_types_map=_response_types_map,
|
|
196
|
-
)
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
@validate_call
|
|
200
|
-
def api_v1_analytics_excise_report_post_without_preload_content(
|
|
201
|
-
self,
|
|
202
|
-
date_from: Annotated[StrictStr, Field(description="Начало отчётного периода, `ГГГГ-ММ-ДД` ")],
|
|
203
|
-
date_to: Annotated[StrictStr, Field(description="Конец отчётного периода, `ГГГГ-ММ-ДД` ")],
|
|
204
|
-
excise_report_request: Optional[ExciseReportRequest] = None,
|
|
205
|
-
_request_timeout: Union[
|
|
206
|
-
None,
|
|
207
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
208
|
-
Tuple[
|
|
209
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
210
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
211
|
-
]
|
|
212
|
-
] = None,
|
|
213
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
214
|
-
_content_type: Optional[StrictStr] = None,
|
|
215
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
216
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
|
217
|
-
) -> RESTResponseType:
|
|
218
|
-
"""Получить отчёт
|
|
219
|
-
|
|
220
|
-
Метод возвращает отчёт с [операциями по товарам с обязательной маркировкой](https://seller.wildberries.ru/analytics-reports/excise-report).<br><br> Данный отчёт можно сохранить в [формате таблиц](https://dev.wildberries.ru/cases/1). <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 5 часов | 10 запросов | 30 минут | 10 запросов | </div>
|
|
221
|
-
|
|
222
|
-
:param date_from: Начало отчётного периода, `ГГГГ-ММ-ДД` (required)
|
|
223
|
-
:type date_from: str
|
|
224
|
-
:param date_to: Конец отчётного периода, `ГГГГ-ММ-ДД` (required)
|
|
225
|
-
:type date_to: str
|
|
226
|
-
:param excise_report_request:
|
|
227
|
-
:type excise_report_request: ExciseReportRequest
|
|
228
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
229
|
-
number provided, it will be total request
|
|
230
|
-
timeout. It can also be a pair (tuple) of
|
|
231
|
-
(connection, read) timeouts.
|
|
232
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
233
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
234
|
-
request; this effectively ignores the
|
|
235
|
-
authentication in the spec for a single request.
|
|
236
|
-
:type _request_auth: dict, optional
|
|
237
|
-
:param _content_type: force content-type for the request.
|
|
238
|
-
:type _content_type: str, Optional
|
|
239
|
-
:param _headers: set to override the headers for a single
|
|
240
|
-
request; this effectively ignores the headers
|
|
241
|
-
in the spec for a single request.
|
|
242
|
-
:type _headers: dict, optional
|
|
243
|
-
:param _host_index: set to override the host_index for a single
|
|
244
|
-
request; this effectively ignores the host_index
|
|
245
|
-
in the spec for a single request.
|
|
246
|
-
:type _host_index: int, optional
|
|
247
|
-
:return: Returns the result object.
|
|
248
|
-
""" # noqa: E501
|
|
249
|
-
|
|
250
|
-
_param = self._api_v1_analytics_excise_report_post_serialize(
|
|
251
|
-
date_from=date_from,
|
|
252
|
-
date_to=date_to,
|
|
253
|
-
excise_report_request=excise_report_request,
|
|
254
|
-
_request_auth=_request_auth,
|
|
255
|
-
_content_type=_content_type,
|
|
256
|
-
_headers=_headers,
|
|
257
|
-
_host_index=_host_index
|
|
258
|
-
)
|
|
259
|
-
|
|
260
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
261
|
-
'200': "ExciseReportResponse",
|
|
262
|
-
'400': "Model4xxResponse",
|
|
263
|
-
'401': "ApiV1SupplierIncomesGet401Response",
|
|
264
|
-
'429': "ApiV1SupplierIncomesGet401Response",
|
|
265
|
-
}
|
|
266
|
-
response_data = self.api_client.call_api(
|
|
267
|
-
*_param,
|
|
268
|
-
_request_timeout=_request_timeout
|
|
269
|
-
)
|
|
270
|
-
return response_data.response
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
def _api_v1_analytics_excise_report_post_serialize(
|
|
274
|
-
self,
|
|
275
|
-
date_from,
|
|
276
|
-
date_to,
|
|
277
|
-
excise_report_request,
|
|
278
|
-
_request_auth,
|
|
279
|
-
_content_type,
|
|
280
|
-
_headers,
|
|
281
|
-
_host_index,
|
|
282
|
-
) -> RequestSerialized:
|
|
283
|
-
|
|
284
|
-
_hosts = [
|
|
285
|
-
'https://seller-analytics-api.wildberries.ru'
|
|
286
|
-
]
|
|
287
|
-
_host = _hosts[_host_index]
|
|
288
|
-
|
|
289
|
-
_collection_formats: Dict[str, str] = {
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
_path_params: Dict[str, str] = {}
|
|
293
|
-
_query_params: List[Tuple[str, str]] = []
|
|
294
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
295
|
-
_form_params: List[Tuple[str, str]] = []
|
|
296
|
-
_files: Dict[
|
|
297
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
298
|
-
] = {}
|
|
299
|
-
_body_params: Optional[bytes] = None
|
|
300
|
-
|
|
301
|
-
# process the path parameters
|
|
302
|
-
# process the query parameters
|
|
303
|
-
if date_from is not None:
|
|
304
|
-
|
|
305
|
-
_query_params.append(('dateFrom', date_from))
|
|
306
|
-
|
|
307
|
-
if date_to is not None:
|
|
308
|
-
|
|
309
|
-
_query_params.append(('dateTo', date_to))
|
|
310
|
-
|
|
311
|
-
# process the header parameters
|
|
312
|
-
# process the form parameters
|
|
313
|
-
# process the body parameter
|
|
314
|
-
if excise_report_request is not None:
|
|
315
|
-
_body_params = excise_report_request
|
|
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
|
-
'application/problem+json'
|
|
324
|
-
]
|
|
325
|
-
)
|
|
326
|
-
|
|
327
|
-
# set the HTTP header `Content-Type`
|
|
328
|
-
if _content_type:
|
|
329
|
-
_header_params['Content-Type'] = _content_type
|
|
330
|
-
else:
|
|
331
|
-
_default_content_type = (
|
|
332
|
-
self.api_client.select_header_content_type(
|
|
333
|
-
[
|
|
334
|
-
'application/json'
|
|
335
|
-
]
|
|
336
|
-
)
|
|
337
|
-
)
|
|
338
|
-
if _default_content_type is not None:
|
|
339
|
-
_header_params['Content-Type'] = _default_content_type
|
|
340
|
-
|
|
341
|
-
# authentication setting
|
|
342
|
-
_auth_settings: List[str] = [
|
|
343
|
-
'HeaderApiKey'
|
|
344
|
-
]
|
|
345
|
-
|
|
346
|
-
return self.api_client.param_serialize(
|
|
347
|
-
method='POST',
|
|
348
|
-
resource_path='/api/v1/analytics/excise-report',
|
|
349
|
-
path_params=_path_params,
|
|
350
|
-
query_params=_query_params,
|
|
351
|
-
header_params=_header_params,
|
|
352
|
-
body=_body_params,
|
|
353
|
-
post_params=_form_params,
|
|
354
|
-
files=_files,
|
|
355
|
-
auth_settings=_auth_settings,
|
|
356
|
-
collection_formats=_collection_formats,
|
|
357
|
-
_host=_host,
|
|
358
|
-
_request_auth=_request_auth
|
|
359
|
-
)
|
|
360
|
-
|
|
361
|
-
|