wildberries-sdk 0.1.33__py3-none-any.whl → 0.1.35__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 +1 -1
- wildberries_sdk/analytics/api_client.py +1 -1
- wildberries_sdk/analytics/configuration.py +1 -1
- wildberries_sdk/communications/__init__.py +1 -1
- wildberries_sdk/communications/api_client.py +1 -1
- wildberries_sdk/communications/configuration.py +1 -1
- wildberries_sdk/finances/__init__.py +1 -1
- wildberries_sdk/finances/api_client.py +1 -1
- wildberries_sdk/finances/configuration.py +1 -1
- wildberries_sdk/general/__init__.py +1 -1
- wildberries_sdk/general/api_client.py +1 -1
- wildberries_sdk/general/configuration.py +1 -1
- wildberries_sdk/in_store_pickup/__init__.py +1 -1
- 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 +13 -5
- wildberries_sdk/orders_dbs/api/default_api.py +318 -27
- wildberries_sdk/orders_dbs/api_client.py +1 -1
- wildberries_sdk/orders_dbs/configuration.py +1 -1
- wildberries_sdk/orders_dbs/models/__init__.py +6 -2
- wildberries_sdk/orders_dbs/models/api_b2b_client_info.py +91 -0
- wildberries_sdk/orders_dbs/models/api_b2b_client_info_response.py +105 -0
- wildberries_sdk/orders_dbs/models/api_b2b_client_info_response_errors_inner.py +89 -0
- wildberries_sdk/orders_dbs/models/api_b2b_client_info_responses.py +97 -0
- wildberries_sdk/orders_dbs/models/{api_marketplace_v3_dbs_meta_customs_declaration_post_request.py → api_marketplace_v3_dbs_orders_meta_customs_declaration_post_request.py} +7 -7
- wildberries_sdk/orders_dbs/models/{api_marketplace_v3_dbs_meta_customs_declaration_post_request_orders_inner.py → api_marketplace_v3_dbs_orders_meta_customs_declaration_post_request_orders_inner.py} +4 -4
- wildberries_sdk/orders_dbw/__init__.py +1 -1
- wildberries_sdk/orders_dbw/api_client.py +1 -1
- wildberries_sdk/orders_dbw/configuration.py +1 -1
- wildberries_sdk/orders_fbs/__init__.py +1 -1
- wildberries_sdk/orders_fbs/api_client.py +1 -1
- wildberries_sdk/orders_fbs/configuration.py +1 -1
- wildberries_sdk/orders_fbw/__init__.py +1 -1
- wildberries_sdk/orders_fbw/api_client.py +1 -1
- wildberries_sdk/orders_fbw/configuration.py +1 -1
- wildberries_sdk/products/__init__.py +1 -1
- wildberries_sdk/products/api_client.py +1 -1
- wildberries_sdk/products/configuration.py +1 -1
- wildberries_sdk/promotion/__init__.py +1 -1
- wildberries_sdk/promotion/api_client.py +1 -1
- wildberries_sdk/promotion/configuration.py +1 -1
- wildberries_sdk/reports/__init__.py +1 -1
- wildberries_sdk/reports/api_client.py +1 -1
- wildberries_sdk/reports/configuration.py +1 -1
- wildberries_sdk/tariffs/__init__.py +1 -1
- wildberries_sdk/tariffs/api_client.py +1 -1
- wildberries_sdk/tariffs/configuration.py +1 -1
- wildberries_sdk/wbd/__init__.py +1 -1
- wildberries_sdk/wbd/api_client.py +1 -1
- wildberries_sdk/wbd/configuration.py +1 -1
- {wildberries_sdk-0.1.33.dist-info → wildberries_sdk-0.1.35.dist-info}/METADATA +3 -2
- {wildberries_sdk-0.1.33.dist-info → wildberries_sdk-0.1.35.dist-info}/RECORD +55 -51
- {wildberries_sdk-0.1.33.dist-info → wildberries_sdk-0.1.35.dist-info}/LICENSE +0 -0
- {wildberries_sdk-0.1.33.dist-info → wildberries_sdk-0.1.35.dist-info}/WHEEL +0 -0
- {wildberries_sdk-0.1.33.dist-info → wildberries_sdk-0.1.35.dist-info}/top_level.txt +0 -0
|
@@ -19,7 +19,8 @@ from typing_extensions import Annotated
|
|
|
19
19
|
from pydantic import Field, StrictInt, StrictStr
|
|
20
20
|
from typing import List, Optional
|
|
21
21
|
from typing_extensions import Annotated
|
|
22
|
-
from wildberries_sdk.orders_dbs.models.
|
|
22
|
+
from wildberries_sdk.orders_dbs.models.api_b2b_client_info_responses import ApiB2bClientInfoResponses
|
|
23
|
+
from wildberries_sdk.orders_dbs.models.api_marketplace_v3_dbs_orders_meta_customs_declaration_post_request import ApiMarketplaceV3DbsOrdersMetaCustomsDeclarationPostRequest
|
|
23
24
|
from wildberries_sdk.orders_dbs.models.api_order_group_inner import ApiOrderGroupInner
|
|
24
25
|
from wildberries_sdk.orders_dbs.models.api_order_groups_request import ApiOrderGroupsRequest
|
|
25
26
|
from wildberries_sdk.orders_dbs.models.api_order_statuses_v2 import ApiOrderStatusesV2
|
|
@@ -66,9 +67,299 @@ class DefaultApi:
|
|
|
66
67
|
|
|
67
68
|
|
|
68
69
|
@validate_call
|
|
69
|
-
def
|
|
70
|
+
def api_marketplace_v3_dbs_orders_b2b_info_post(
|
|
70
71
|
self,
|
|
71
|
-
|
|
72
|
+
api_orders_request_v2: ApiOrdersRequestV2,
|
|
73
|
+
_request_timeout: Union[
|
|
74
|
+
None,
|
|
75
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
76
|
+
Tuple[
|
|
77
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
78
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
79
|
+
]
|
|
80
|
+
] = None,
|
|
81
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
82
|
+
_content_type: Optional[StrictStr] = None,
|
|
83
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
84
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
|
85
|
+
) -> ApiB2bClientInfoResponses:
|
|
86
|
+
"""Информация о покупателе B2B
|
|
87
|
+
|
|
88
|
+
Метод возвращает данные B2B-покупателей по ID сборочных заданий: - ИНН - КПП - Наименование организации <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для методов <strong>сборочных заданий DBS</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 300 запросов | 200 миллисекунд | 20 запросов | </div>
|
|
89
|
+
|
|
90
|
+
:param api_orders_request_v2: (required)
|
|
91
|
+
:type api_orders_request_v2: ApiOrdersRequestV2
|
|
92
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
93
|
+
number provided, it will be total request
|
|
94
|
+
timeout. It can also be a pair (tuple) of
|
|
95
|
+
(connection, read) timeouts.
|
|
96
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
97
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
98
|
+
request; this effectively ignores the
|
|
99
|
+
authentication in the spec for a single request.
|
|
100
|
+
:type _request_auth: dict, optional
|
|
101
|
+
:param _content_type: force content-type for the request.
|
|
102
|
+
:type _content_type: str, Optional
|
|
103
|
+
:param _headers: set to override the headers for a single
|
|
104
|
+
request; this effectively ignores the headers
|
|
105
|
+
in the spec for a single request.
|
|
106
|
+
:type _headers: dict, optional
|
|
107
|
+
:param _host_index: set to override the host_index for a single
|
|
108
|
+
request; this effectively ignores the host_index
|
|
109
|
+
in the spec for a single request.
|
|
110
|
+
:type _host_index: int, optional
|
|
111
|
+
:return: Returns the result object.
|
|
112
|
+
""" # noqa: E501
|
|
113
|
+
|
|
114
|
+
_param = self._api_marketplace_v3_dbs_orders_b2b_info_post_serialize(
|
|
115
|
+
api_orders_request_v2=api_orders_request_v2,
|
|
116
|
+
_request_auth=_request_auth,
|
|
117
|
+
_content_type=_content_type,
|
|
118
|
+
_headers=_headers,
|
|
119
|
+
_host_index=_host_index
|
|
120
|
+
)
|
|
121
|
+
|
|
122
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
123
|
+
'200': "ApiB2bClientInfoResponses",
|
|
124
|
+
'400': "ApiBatchError",
|
|
125
|
+
'401': "ApiV3DbsOrdersNewGet401Response",
|
|
126
|
+
'403': "ApiBatchError",
|
|
127
|
+
'429': "ApiV3DbsOrdersNewGet401Response",
|
|
128
|
+
}
|
|
129
|
+
response_data = self.api_client.call_api(
|
|
130
|
+
*_param,
|
|
131
|
+
_request_timeout=_request_timeout
|
|
132
|
+
)
|
|
133
|
+
response_data.read()
|
|
134
|
+
return self.api_client.response_deserialize(
|
|
135
|
+
response_data=response_data,
|
|
136
|
+
response_types_map=_response_types_map,
|
|
137
|
+
).data
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
@validate_call
|
|
141
|
+
def api_marketplace_v3_dbs_orders_b2b_info_post_with_http_info(
|
|
142
|
+
self,
|
|
143
|
+
api_orders_request_v2: ApiOrdersRequestV2,
|
|
144
|
+
_request_timeout: Union[
|
|
145
|
+
None,
|
|
146
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
147
|
+
Tuple[
|
|
148
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
149
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
150
|
+
]
|
|
151
|
+
] = None,
|
|
152
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
153
|
+
_content_type: Optional[StrictStr] = None,
|
|
154
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
155
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
|
156
|
+
) -> ApiResponse[ApiB2bClientInfoResponses]:
|
|
157
|
+
"""Информация о покупателе B2B
|
|
158
|
+
|
|
159
|
+
Метод возвращает данные B2B-покупателей по ID сборочных заданий: - ИНН - КПП - Наименование организации <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для методов <strong>сборочных заданий DBS</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 300 запросов | 200 миллисекунд | 20 запросов | </div>
|
|
160
|
+
|
|
161
|
+
:param api_orders_request_v2: (required)
|
|
162
|
+
:type api_orders_request_v2: ApiOrdersRequestV2
|
|
163
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
164
|
+
number provided, it will be total request
|
|
165
|
+
timeout. It can also be a pair (tuple) of
|
|
166
|
+
(connection, read) timeouts.
|
|
167
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
168
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
169
|
+
request; this effectively ignores the
|
|
170
|
+
authentication in the spec for a single request.
|
|
171
|
+
:type _request_auth: dict, optional
|
|
172
|
+
:param _content_type: force content-type for the request.
|
|
173
|
+
:type _content_type: str, Optional
|
|
174
|
+
:param _headers: set to override the headers for a single
|
|
175
|
+
request; this effectively ignores the headers
|
|
176
|
+
in the spec for a single request.
|
|
177
|
+
:type _headers: dict, optional
|
|
178
|
+
:param _host_index: set to override the host_index for a single
|
|
179
|
+
request; this effectively ignores the host_index
|
|
180
|
+
in the spec for a single request.
|
|
181
|
+
:type _host_index: int, optional
|
|
182
|
+
:return: Returns the result object.
|
|
183
|
+
""" # noqa: E501
|
|
184
|
+
|
|
185
|
+
_param = self._api_marketplace_v3_dbs_orders_b2b_info_post_serialize(
|
|
186
|
+
api_orders_request_v2=api_orders_request_v2,
|
|
187
|
+
_request_auth=_request_auth,
|
|
188
|
+
_content_type=_content_type,
|
|
189
|
+
_headers=_headers,
|
|
190
|
+
_host_index=_host_index
|
|
191
|
+
)
|
|
192
|
+
|
|
193
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
194
|
+
'200': "ApiB2bClientInfoResponses",
|
|
195
|
+
'400': "ApiBatchError",
|
|
196
|
+
'401': "ApiV3DbsOrdersNewGet401Response",
|
|
197
|
+
'403': "ApiBatchError",
|
|
198
|
+
'429': "ApiV3DbsOrdersNewGet401Response",
|
|
199
|
+
}
|
|
200
|
+
response_data = self.api_client.call_api(
|
|
201
|
+
*_param,
|
|
202
|
+
_request_timeout=_request_timeout
|
|
203
|
+
)
|
|
204
|
+
response_data.read()
|
|
205
|
+
return self.api_client.response_deserialize(
|
|
206
|
+
response_data=response_data,
|
|
207
|
+
response_types_map=_response_types_map,
|
|
208
|
+
)
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
@validate_call
|
|
212
|
+
def api_marketplace_v3_dbs_orders_b2b_info_post_without_preload_content(
|
|
213
|
+
self,
|
|
214
|
+
api_orders_request_v2: ApiOrdersRequestV2,
|
|
215
|
+
_request_timeout: Union[
|
|
216
|
+
None,
|
|
217
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
218
|
+
Tuple[
|
|
219
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
220
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
221
|
+
]
|
|
222
|
+
] = None,
|
|
223
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
224
|
+
_content_type: Optional[StrictStr] = None,
|
|
225
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
226
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
|
227
|
+
) -> RESTResponseType:
|
|
228
|
+
"""Информация о покупателе B2B
|
|
229
|
+
|
|
230
|
+
Метод возвращает данные B2B-покупателей по ID сборочных заданий: - ИНН - КПП - Наименование организации <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для методов <strong>сборочных заданий DBS</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 300 запросов | 200 миллисекунд | 20 запросов | </div>
|
|
231
|
+
|
|
232
|
+
:param api_orders_request_v2: (required)
|
|
233
|
+
:type api_orders_request_v2: ApiOrdersRequestV2
|
|
234
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
235
|
+
number provided, it will be total request
|
|
236
|
+
timeout. It can also be a pair (tuple) of
|
|
237
|
+
(connection, read) timeouts.
|
|
238
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
239
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
240
|
+
request; this effectively ignores the
|
|
241
|
+
authentication in the spec for a single request.
|
|
242
|
+
:type _request_auth: dict, optional
|
|
243
|
+
:param _content_type: force content-type for the request.
|
|
244
|
+
:type _content_type: str, Optional
|
|
245
|
+
:param _headers: set to override the headers for a single
|
|
246
|
+
request; this effectively ignores the headers
|
|
247
|
+
in the spec for a single request.
|
|
248
|
+
:type _headers: dict, optional
|
|
249
|
+
:param _host_index: set to override the host_index for a single
|
|
250
|
+
request; this effectively ignores the host_index
|
|
251
|
+
in the spec for a single request.
|
|
252
|
+
:type _host_index: int, optional
|
|
253
|
+
:return: Returns the result object.
|
|
254
|
+
""" # noqa: E501
|
|
255
|
+
|
|
256
|
+
_param = self._api_marketplace_v3_dbs_orders_b2b_info_post_serialize(
|
|
257
|
+
api_orders_request_v2=api_orders_request_v2,
|
|
258
|
+
_request_auth=_request_auth,
|
|
259
|
+
_content_type=_content_type,
|
|
260
|
+
_headers=_headers,
|
|
261
|
+
_host_index=_host_index
|
|
262
|
+
)
|
|
263
|
+
|
|
264
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
265
|
+
'200': "ApiB2bClientInfoResponses",
|
|
266
|
+
'400': "ApiBatchError",
|
|
267
|
+
'401': "ApiV3DbsOrdersNewGet401Response",
|
|
268
|
+
'403': "ApiBatchError",
|
|
269
|
+
'429': "ApiV3DbsOrdersNewGet401Response",
|
|
270
|
+
}
|
|
271
|
+
response_data = self.api_client.call_api(
|
|
272
|
+
*_param,
|
|
273
|
+
_request_timeout=_request_timeout
|
|
274
|
+
)
|
|
275
|
+
return response_data.response
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
def _api_marketplace_v3_dbs_orders_b2b_info_post_serialize(
|
|
279
|
+
self,
|
|
280
|
+
api_orders_request_v2,
|
|
281
|
+
_request_auth,
|
|
282
|
+
_content_type,
|
|
283
|
+
_headers,
|
|
284
|
+
_host_index,
|
|
285
|
+
) -> RequestSerialized:
|
|
286
|
+
|
|
287
|
+
_hosts = [
|
|
288
|
+
'https://marketplace-api.wildberries.ru'
|
|
289
|
+
]
|
|
290
|
+
_host = _hosts[_host_index]
|
|
291
|
+
|
|
292
|
+
_collection_formats: Dict[str, str] = {
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
_path_params: Dict[str, str] = {}
|
|
296
|
+
_query_params: List[Tuple[str, str]] = []
|
|
297
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
298
|
+
_form_params: List[Tuple[str, str]] = []
|
|
299
|
+
_files: Dict[
|
|
300
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
301
|
+
] = {}
|
|
302
|
+
_body_params: Optional[bytes] = None
|
|
303
|
+
|
|
304
|
+
# process the path parameters
|
|
305
|
+
# process the query parameters
|
|
306
|
+
# process the header parameters
|
|
307
|
+
# process the form parameters
|
|
308
|
+
# process the body parameter
|
|
309
|
+
if api_orders_request_v2 is not None:
|
|
310
|
+
_body_params = api_orders_request_v2
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
# set the HTTP header `Accept`
|
|
314
|
+
if 'Accept' not in _header_params:
|
|
315
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
316
|
+
[
|
|
317
|
+
'application/json',
|
|
318
|
+
'application/problem+json'
|
|
319
|
+
]
|
|
320
|
+
)
|
|
321
|
+
|
|
322
|
+
# set the HTTP header `Content-Type`
|
|
323
|
+
if _content_type:
|
|
324
|
+
_header_params['Content-Type'] = _content_type
|
|
325
|
+
else:
|
|
326
|
+
_default_content_type = (
|
|
327
|
+
self.api_client.select_header_content_type(
|
|
328
|
+
[
|
|
329
|
+
'application/json'
|
|
330
|
+
]
|
|
331
|
+
)
|
|
332
|
+
)
|
|
333
|
+
if _default_content_type is not None:
|
|
334
|
+
_header_params['Content-Type'] = _default_content_type
|
|
335
|
+
|
|
336
|
+
# authentication setting
|
|
337
|
+
_auth_settings: List[str] = [
|
|
338
|
+
'HeaderApiKey'
|
|
339
|
+
]
|
|
340
|
+
|
|
341
|
+
return self.api_client.param_serialize(
|
|
342
|
+
method='POST',
|
|
343
|
+
resource_path='/api/marketplace/v3/dbs/orders/b2b/info',
|
|
344
|
+
path_params=_path_params,
|
|
345
|
+
query_params=_query_params,
|
|
346
|
+
header_params=_header_params,
|
|
347
|
+
body=_body_params,
|
|
348
|
+
post_params=_form_params,
|
|
349
|
+
files=_files,
|
|
350
|
+
auth_settings=_auth_settings,
|
|
351
|
+
collection_formats=_collection_formats,
|
|
352
|
+
_host=_host,
|
|
353
|
+
_request_auth=_request_auth
|
|
354
|
+
)
|
|
355
|
+
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
|
|
359
|
+
@validate_call
|
|
360
|
+
def api_marketplace_v3_dbs_orders_meta_customs_declaration_post(
|
|
361
|
+
self,
|
|
362
|
+
api_marketplace_v3_dbs_orders_meta_customs_declaration_post_request: Optional[ApiMarketplaceV3DbsOrdersMetaCustomsDeclarationPostRequest] = None,
|
|
72
363
|
_request_timeout: Union[
|
|
73
364
|
None,
|
|
74
365
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -84,10 +375,10 @@ class DefaultApi:
|
|
|
84
375
|
) -> None:
|
|
85
376
|
"""Закрепить за сборочными заданиями номер ГТД
|
|
86
377
|
|
|
87
|
-
Метод обновляет номер ГТД — грузовой таможенной декларации — в [метаданных сборочных заданий](/openapi/orders-dbs#tag/Metadannye-DBS/paths/~1api~1marketplace~1v3~1dbs~1orders~1meta~1info/post). <br><br> У одного сборочного задания может быть только один ГТД. Добавлять номер ГТД можно только для сборочных заданий, которые находятся в [статусе](/openapi/orders-dbs#tag/Sborochnye-zadaniya-DBS/paths/~1api~1v3~1dbs~1orders~1status/post) `
|
|
378
|
+
Метод обновляет номер ГТД — грузовой таможенной декларации — в [метаданных сборочных заданий](/openapi/orders-dbs#tag/Metadannye-DBS/paths/~1api~1marketplace~1v3~1dbs~1orders~1meta~1info/post). <br><br> У одного сборочного задания может быть только один ГТД. Добавлять номер ГТД можно только для сборочных заданий, которые находятся в [статусе](/openapi/orders-dbs#tag/Sborochnye-zadaniya-DBS/paths/~1api~1v3~1dbs~1orders~1status/post) `deliver`. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов <strong>закрепления метаданных DBS</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 мин | 500 запросов | 120 мс | 20 запросов | Один запрос с кодом ответа <code>409</code> учитывается как 10 запросов </div>
|
|
88
379
|
|
|
89
|
-
:param
|
|
90
|
-
:type
|
|
380
|
+
:param api_marketplace_v3_dbs_orders_meta_customs_declaration_post_request:
|
|
381
|
+
:type api_marketplace_v3_dbs_orders_meta_customs_declaration_post_request: ApiMarketplaceV3DbsOrdersMetaCustomsDeclarationPostRequest
|
|
91
382
|
:param _request_timeout: timeout setting for this request. If one
|
|
92
383
|
number provided, it will be total request
|
|
93
384
|
timeout. It can also be a pair (tuple) of
|
|
@@ -110,8 +401,8 @@ class DefaultApi:
|
|
|
110
401
|
:return: Returns the result object.
|
|
111
402
|
""" # noqa: E501
|
|
112
403
|
|
|
113
|
-
_param = self.
|
|
114
|
-
|
|
404
|
+
_param = self._api_marketplace_v3_dbs_orders_meta_customs_declaration_post_serialize(
|
|
405
|
+
api_marketplace_v3_dbs_orders_meta_customs_declaration_post_request=api_marketplace_v3_dbs_orders_meta_customs_declaration_post_request,
|
|
115
406
|
_request_auth=_request_auth,
|
|
116
407
|
_content_type=_content_type,
|
|
117
408
|
_headers=_headers,
|
|
@@ -139,9 +430,9 @@ class DefaultApi:
|
|
|
139
430
|
|
|
140
431
|
|
|
141
432
|
@validate_call
|
|
142
|
-
def
|
|
433
|
+
def api_marketplace_v3_dbs_orders_meta_customs_declaration_post_with_http_info(
|
|
143
434
|
self,
|
|
144
|
-
|
|
435
|
+
api_marketplace_v3_dbs_orders_meta_customs_declaration_post_request: Optional[ApiMarketplaceV3DbsOrdersMetaCustomsDeclarationPostRequest] = None,
|
|
145
436
|
_request_timeout: Union[
|
|
146
437
|
None,
|
|
147
438
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -157,10 +448,10 @@ class DefaultApi:
|
|
|
157
448
|
) -> ApiResponse[None]:
|
|
158
449
|
"""Закрепить за сборочными заданиями номер ГТД
|
|
159
450
|
|
|
160
|
-
Метод обновляет номер ГТД — грузовой таможенной декларации — в [метаданных сборочных заданий](/openapi/orders-dbs#tag/Metadannye-DBS/paths/~1api~1marketplace~1v3~1dbs~1orders~1meta~1info/post). <br><br> У одного сборочного задания может быть только один ГТД. Добавлять номер ГТД можно только для сборочных заданий, которые находятся в [статусе](/openapi/orders-dbs#tag/Sborochnye-zadaniya-DBS/paths/~1api~1v3~1dbs~1orders~1status/post) `
|
|
451
|
+
Метод обновляет номер ГТД — грузовой таможенной декларации — в [метаданных сборочных заданий](/openapi/orders-dbs#tag/Metadannye-DBS/paths/~1api~1marketplace~1v3~1dbs~1orders~1meta~1info/post). <br><br> У одного сборочного задания может быть только один ГТД. Добавлять номер ГТД можно только для сборочных заданий, которые находятся в [статусе](/openapi/orders-dbs#tag/Sborochnye-zadaniya-DBS/paths/~1api~1v3~1dbs~1orders~1status/post) `deliver`. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов <strong>закрепления метаданных DBS</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 мин | 500 запросов | 120 мс | 20 запросов | Один запрос с кодом ответа <code>409</code> учитывается как 10 запросов </div>
|
|
161
452
|
|
|
162
|
-
:param
|
|
163
|
-
:type
|
|
453
|
+
:param api_marketplace_v3_dbs_orders_meta_customs_declaration_post_request:
|
|
454
|
+
:type api_marketplace_v3_dbs_orders_meta_customs_declaration_post_request: ApiMarketplaceV3DbsOrdersMetaCustomsDeclarationPostRequest
|
|
164
455
|
:param _request_timeout: timeout setting for this request. If one
|
|
165
456
|
number provided, it will be total request
|
|
166
457
|
timeout. It can also be a pair (tuple) of
|
|
@@ -183,8 +474,8 @@ class DefaultApi:
|
|
|
183
474
|
:return: Returns the result object.
|
|
184
475
|
""" # noqa: E501
|
|
185
476
|
|
|
186
|
-
_param = self.
|
|
187
|
-
|
|
477
|
+
_param = self._api_marketplace_v3_dbs_orders_meta_customs_declaration_post_serialize(
|
|
478
|
+
api_marketplace_v3_dbs_orders_meta_customs_declaration_post_request=api_marketplace_v3_dbs_orders_meta_customs_declaration_post_request,
|
|
188
479
|
_request_auth=_request_auth,
|
|
189
480
|
_content_type=_content_type,
|
|
190
481
|
_headers=_headers,
|
|
@@ -212,9 +503,9 @@ class DefaultApi:
|
|
|
212
503
|
|
|
213
504
|
|
|
214
505
|
@validate_call
|
|
215
|
-
def
|
|
506
|
+
def api_marketplace_v3_dbs_orders_meta_customs_declaration_post_without_preload_content(
|
|
216
507
|
self,
|
|
217
|
-
|
|
508
|
+
api_marketplace_v3_dbs_orders_meta_customs_declaration_post_request: Optional[ApiMarketplaceV3DbsOrdersMetaCustomsDeclarationPostRequest] = None,
|
|
218
509
|
_request_timeout: Union[
|
|
219
510
|
None,
|
|
220
511
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -230,10 +521,10 @@ class DefaultApi:
|
|
|
230
521
|
) -> RESTResponseType:
|
|
231
522
|
"""Закрепить за сборочными заданиями номер ГТД
|
|
232
523
|
|
|
233
|
-
Метод обновляет номер ГТД — грузовой таможенной декларации — в [метаданных сборочных заданий](/openapi/orders-dbs#tag/Metadannye-DBS/paths/~1api~1marketplace~1v3~1dbs~1orders~1meta~1info/post). <br><br> У одного сборочного задания может быть только один ГТД. Добавлять номер ГТД можно только для сборочных заданий, которые находятся в [статусе](/openapi/orders-dbs#tag/Sborochnye-zadaniya-DBS/paths/~1api~1v3~1dbs~1orders~1status/post) `
|
|
524
|
+
Метод обновляет номер ГТД — грузовой таможенной декларации — в [метаданных сборочных заданий](/openapi/orders-dbs#tag/Metadannye-DBS/paths/~1api~1marketplace~1v3~1dbs~1orders~1meta~1info/post). <br><br> У одного сборочного задания может быть только один ГТД. Добавлять номер ГТД можно только для сборочных заданий, которые находятся в [статусе](/openapi/orders-dbs#tag/Sborochnye-zadaniya-DBS/paths/~1api~1v3~1dbs~1orders~1status/post) `deliver`. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов <strong>закрепления метаданных DBS</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 мин | 500 запросов | 120 мс | 20 запросов | Один запрос с кодом ответа <code>409</code> учитывается как 10 запросов </div>
|
|
234
525
|
|
|
235
|
-
:param
|
|
236
|
-
:type
|
|
526
|
+
:param api_marketplace_v3_dbs_orders_meta_customs_declaration_post_request:
|
|
527
|
+
:type api_marketplace_v3_dbs_orders_meta_customs_declaration_post_request: ApiMarketplaceV3DbsOrdersMetaCustomsDeclarationPostRequest
|
|
237
528
|
:param _request_timeout: timeout setting for this request. If one
|
|
238
529
|
number provided, it will be total request
|
|
239
530
|
timeout. It can also be a pair (tuple) of
|
|
@@ -256,8 +547,8 @@ class DefaultApi:
|
|
|
256
547
|
:return: Returns the result object.
|
|
257
548
|
""" # noqa: E501
|
|
258
549
|
|
|
259
|
-
_param = self.
|
|
260
|
-
|
|
550
|
+
_param = self._api_marketplace_v3_dbs_orders_meta_customs_declaration_post_serialize(
|
|
551
|
+
api_marketplace_v3_dbs_orders_meta_customs_declaration_post_request=api_marketplace_v3_dbs_orders_meta_customs_declaration_post_request,
|
|
261
552
|
_request_auth=_request_auth,
|
|
262
553
|
_content_type=_content_type,
|
|
263
554
|
_headers=_headers,
|
|
@@ -280,9 +571,9 @@ class DefaultApi:
|
|
|
280
571
|
return response_data.response
|
|
281
572
|
|
|
282
573
|
|
|
283
|
-
def
|
|
574
|
+
def _api_marketplace_v3_dbs_orders_meta_customs_declaration_post_serialize(
|
|
284
575
|
self,
|
|
285
|
-
|
|
576
|
+
api_marketplace_v3_dbs_orders_meta_customs_declaration_post_request,
|
|
286
577
|
_request_auth,
|
|
287
578
|
_content_type,
|
|
288
579
|
_headers,
|
|
@@ -311,8 +602,8 @@ class DefaultApi:
|
|
|
311
602
|
# process the header parameters
|
|
312
603
|
# process the form parameters
|
|
313
604
|
# process the body parameter
|
|
314
|
-
if
|
|
315
|
-
_body_params =
|
|
605
|
+
if api_marketplace_v3_dbs_orders_meta_customs_declaration_post_request is not None:
|
|
606
|
+
_body_params = api_marketplace_v3_dbs_orders_meta_customs_declaration_post_request
|
|
316
607
|
|
|
317
608
|
|
|
318
609
|
# set the HTTP header `Accept`
|
|
@@ -345,7 +636,7 @@ class DefaultApi:
|
|
|
345
636
|
|
|
346
637
|
return self.api_client.param_serialize(
|
|
347
638
|
method='POST',
|
|
348
|
-
resource_path='/api/marketplace/v3/dbs/meta/customs-declaration',
|
|
639
|
+
resource_path='/api/marketplace/v3/dbs/orders/meta/customs-declaration',
|
|
349
640
|
path_params=_path_params,
|
|
350
641
|
query_params=_query_params,
|
|
351
642
|
header_params=_header_params,
|
|
@@ -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.35/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.orders_dbs.Configuration(
|
|
|
536
536
|
"OS: {env}\n"\
|
|
537
537
|
"Python Version: {pyversion}\n"\
|
|
538
538
|
"Version of the API: order\n"\
|
|
539
|
-
"SDK Package Version: 0.1.
|
|
539
|
+
"SDK Package Version: 0.1.35".\
|
|
540
540
|
format(env=sys.platform, pyversion=sys.version)
|
|
541
541
|
|
|
542
542
|
def get_host_settings(self) -> List[HostSetting]:
|
|
@@ -13,13 +13,17 @@
|
|
|
13
13
|
""" # noqa: E501
|
|
14
14
|
|
|
15
15
|
# import models into model package
|
|
16
|
+
from wildberries_sdk.orders_dbs.models.api_b2b_client_info import ApiB2bClientInfo
|
|
17
|
+
from wildberries_sdk.orders_dbs.models.api_b2b_client_info_response import ApiB2bClientInfoResponse
|
|
18
|
+
from wildberries_sdk.orders_dbs.models.api_b2b_client_info_response_errors_inner import ApiB2bClientInfoResponseErrorsInner
|
|
19
|
+
from wildberries_sdk.orders_dbs.models.api_b2b_client_info_responses import ApiB2bClientInfoResponses
|
|
16
20
|
from wildberries_sdk.orders_dbs.models.api_batch_error import ApiBatchError
|
|
17
21
|
from wildberries_sdk.orders_dbs.models.api_batch_error_response import ApiBatchErrorResponse
|
|
18
22
|
from wildberries_sdk.orders_dbs.models.api_error import ApiError
|
|
19
23
|
from wildberries_sdk.orders_dbs.models.api_gtin import ApiGTIN
|
|
20
24
|
from wildberries_sdk.orders_dbs.models.api_imei import ApiIMEI
|
|
21
|
-
from wildberries_sdk.orders_dbs.models.
|
|
22
|
-
from wildberries_sdk.orders_dbs.models.
|
|
25
|
+
from wildberries_sdk.orders_dbs.models.api_marketplace_v3_dbs_orders_meta_customs_declaration_post_request import ApiMarketplaceV3DbsOrdersMetaCustomsDeclarationPostRequest
|
|
26
|
+
from wildberries_sdk.orders_dbs.models.api_marketplace_v3_dbs_orders_meta_customs_declaration_post_request_orders_inner import ApiMarketplaceV3DbsOrdersMetaCustomsDeclarationPostRequestOrdersInner
|
|
23
27
|
from wildberries_sdk.orders_dbs.models.api_order_code_request import ApiOrderCodeRequest
|
|
24
28
|
from wildberries_sdk.orders_dbs.models.api_order_group_inner import ApiOrderGroupInner
|
|
25
29
|
from wildberries_sdk.orders_dbs.models.api_order_groups_request import ApiOrderGroupsRequest
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Заказы DBS
|
|
5
|
+
|
|
6
|
+
<div class=\"description_important\"> Узнать больше о заказах DBS можно в <a href=\"https://seller.wildberries.ru/instructions/category/6572e024-7428-4db1-86a8-a4c7dbebbfcf?goBackOption=prevRoute&categoryId=5a8e1202-0865-45b7-acae-5d0afc7add56\">справочном центре</a> </div> Управление [сборочными заданиями](/openapi/orders-dbs#tag/Sborochnye-zadaniya-DBS) и [метаданными](/openapi/orders-dbs#tag/Metadannye-DBS) заказов DBS (Delivery by Seller).
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: order
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
+
from typing import Optional, Set
|
|
23
|
+
from typing_extensions import Self
|
|
24
|
+
|
|
25
|
+
class ApiB2bClientInfo(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
Данные покупателя B2B
|
|
28
|
+
""" # noqa: E501
|
|
29
|
+
inn: Optional[StrictStr] = Field(default=None, description="Индивидуальный номер налогоплательщика (ИНН)")
|
|
30
|
+
kpp: Optional[StrictStr] = Field(default=None, description="Код причины постановки на учёт (КПП)")
|
|
31
|
+
org_name: Optional[StrictStr] = Field(default=None, description="Наименование организации", alias="orgName")
|
|
32
|
+
__properties: ClassVar[List[str]] = ["inn", "kpp", "orgName"]
|
|
33
|
+
|
|
34
|
+
model_config = ConfigDict(
|
|
35
|
+
populate_by_name=True,
|
|
36
|
+
validate_assignment=True,
|
|
37
|
+
protected_namespaces=(),
|
|
38
|
+
)
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
def to_str(self) -> str:
|
|
42
|
+
"""Returns the string representation of the model using alias"""
|
|
43
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
44
|
+
|
|
45
|
+
def to_json(self) -> str:
|
|
46
|
+
"""Returns the JSON representation of the model using alias"""
|
|
47
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
48
|
+
return json.dumps(self.to_dict())
|
|
49
|
+
|
|
50
|
+
@classmethod
|
|
51
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
52
|
+
"""Create an instance of ApiB2bClientInfo from a JSON string"""
|
|
53
|
+
return cls.from_dict(json.loads(json_str))
|
|
54
|
+
|
|
55
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
56
|
+
"""Return the dictionary representation of the model using alias.
|
|
57
|
+
|
|
58
|
+
This has the following differences from calling pydantic's
|
|
59
|
+
`self.model_dump(by_alias=True)`:
|
|
60
|
+
|
|
61
|
+
* `None` is only added to the output dict for nullable fields that
|
|
62
|
+
were set at model initialization. Other fields with value `None`
|
|
63
|
+
are ignored.
|
|
64
|
+
"""
|
|
65
|
+
excluded_fields: Set[str] = set([
|
|
66
|
+
])
|
|
67
|
+
|
|
68
|
+
_dict = self.model_dump(
|
|
69
|
+
by_alias=True,
|
|
70
|
+
exclude=excluded_fields,
|
|
71
|
+
exclude_none=True,
|
|
72
|
+
)
|
|
73
|
+
return _dict
|
|
74
|
+
|
|
75
|
+
@classmethod
|
|
76
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
77
|
+
"""Create an instance of ApiB2bClientInfo from a dict"""
|
|
78
|
+
if obj is None:
|
|
79
|
+
return None
|
|
80
|
+
|
|
81
|
+
if not isinstance(obj, dict):
|
|
82
|
+
return cls.model_validate(obj)
|
|
83
|
+
|
|
84
|
+
_obj = cls.model_validate({
|
|
85
|
+
"inn": obj.get("inn"),
|
|
86
|
+
"kpp": obj.get("kpp"),
|
|
87
|
+
"orgName": obj.get("orgName")
|
|
88
|
+
})
|
|
89
|
+
return _obj
|
|
90
|
+
|
|
91
|
+
|