wildberries-sdk 0.1.20__py3-none-any.whl → 0.1.22__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 +43 -1
- wildberries_sdk/orders_dbs/api/default_api.py +3610 -78
- wildberries_sdk/orders_dbs/api_client.py +1 -1
- wildberries_sdk/orders_dbs/configuration.py +1 -1
- wildberries_sdk/orders_dbs/models/__init__.py +21 -0
- wildberries_sdk/orders_dbs/models/api_batch_error.py +93 -0
- wildberries_sdk/orders_dbs/models/api_batch_error_response.py +89 -0
- wildberries_sdk/orders_dbs/models/api_error.py +93 -0
- wildberries_sdk/orders_dbs/models/api_gtin.py +90 -0
- wildberries_sdk/orders_dbs/models/api_imei.py +90 -0
- wildberries_sdk/orders_dbs/models/api_order_code_request.py +89 -0
- wildberries_sdk/orders_dbs/models/api_order_meta_v2.py +97 -0
- wildberries_sdk/orders_dbs/models/api_order_status_v2.py +101 -0
- wildberries_sdk/orders_dbs/models/api_order_statuses_v2.py +95 -0
- wildberries_sdk/orders_dbs/models/api_orders_code_request.py +96 -0
- wildberries_sdk/orders_dbs/models/api_orders_gtin_set_request.py +96 -0
- wildberries_sdk/orders_dbs/models/api_orders_imei_set_request.py +96 -0
- wildberries_sdk/orders_dbs/models/api_orders_meta_delete_request.py +90 -0
- wildberries_sdk/orders_dbs/models/api_orders_meta_response.py +95 -0
- wildberries_sdk/orders_dbs/models/api_orders_request_v2.py +88 -0
- wildberries_sdk/orders_dbs/models/api_orders_sgtins_set_request.py +96 -0
- wildberries_sdk/orders_dbs/models/api_orders_uin_set_request.py +96 -0
- wildberries_sdk/orders_dbs/models/api_sgtins.py +90 -0
- wildberries_sdk/orders_dbs/models/api_status_set_response.py +99 -0
- wildberries_sdk/orders_dbs/models/api_status_set_responses.py +97 -0
- wildberries_sdk/orders_dbs/models/api_uin.py +90 -0
- wildberries_sdk/orders_dbs/models/error.py +1 -1
- wildberries_sdk/orders_dbs/models/order_new_dbs.py +1 -1
- 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/default_api.py +21 -21
- wildberries_sdk/reports/api_client.py +1 -1
- wildberries_sdk/reports/configuration.py +1 -1
- wildberries_sdk/reports/models/orders_item.py +1 -1
- wildberries_sdk/reports/models/sales_item.py +3 -3
- 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.20.dist-info → wildberries_sdk-0.1.22.dist-info}/METADATA +32 -15
- {wildberries_sdk-0.1.20.dist-info → wildberries_sdk-0.1.22.dist-info}/RECORD +75 -54
- {wildberries_sdk-0.1.20.dist-info → wildberries_sdk-0.1.22.dist-info}/LICENSE +0 -0
- {wildberries_sdk-0.1.20.dist-info → wildberries_sdk-0.1.22.dist-info}/WHEEL +0 -0
- {wildberries_sdk-0.1.20.dist-info → wildberries_sdk-0.1.22.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.22/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.22".\
|
|
540
540
|
format(env=sys.platform, pyversion=sys.version)
|
|
541
541
|
|
|
542
542
|
def get_host_settings(self) -> List[HostSetting]:
|
|
@@ -13,8 +13,29 @@
|
|
|
13
13
|
""" # noqa: E501
|
|
14
14
|
|
|
15
15
|
# import models into model package
|
|
16
|
+
from wildberries_sdk.orders_dbs.models.api_batch_error import ApiBatchError
|
|
17
|
+
from wildberries_sdk.orders_dbs.models.api_batch_error_response import ApiBatchErrorResponse
|
|
18
|
+
from wildberries_sdk.orders_dbs.models.api_error import ApiError
|
|
19
|
+
from wildberries_sdk.orders_dbs.models.api_gtin import ApiGTIN
|
|
20
|
+
from wildberries_sdk.orders_dbs.models.api_imei import ApiIMEI
|
|
21
|
+
from wildberries_sdk.orders_dbs.models.api_order_code_request import ApiOrderCodeRequest
|
|
16
22
|
from wildberries_sdk.orders_dbs.models.api_order_group_inner import ApiOrderGroupInner
|
|
17
23
|
from wildberries_sdk.orders_dbs.models.api_order_groups_request import ApiOrderGroupsRequest
|
|
24
|
+
from wildberries_sdk.orders_dbs.models.api_order_meta_v2 import ApiOrderMetaV2
|
|
25
|
+
from wildberries_sdk.orders_dbs.models.api_order_status_v2 import ApiOrderStatusV2
|
|
26
|
+
from wildberries_sdk.orders_dbs.models.api_order_statuses_v2 import ApiOrderStatusesV2
|
|
27
|
+
from wildberries_sdk.orders_dbs.models.api_orders_code_request import ApiOrdersCodeRequest
|
|
28
|
+
from wildberries_sdk.orders_dbs.models.api_orders_gtin_set_request import ApiOrdersGTINSetRequest
|
|
29
|
+
from wildberries_sdk.orders_dbs.models.api_orders_imei_set_request import ApiOrdersIMEISetRequest
|
|
30
|
+
from wildberries_sdk.orders_dbs.models.api_orders_meta_delete_request import ApiOrdersMetaDeleteRequest
|
|
31
|
+
from wildberries_sdk.orders_dbs.models.api_orders_meta_response import ApiOrdersMetaResponse
|
|
32
|
+
from wildberries_sdk.orders_dbs.models.api_orders_request_v2 import ApiOrdersRequestV2
|
|
33
|
+
from wildberries_sdk.orders_dbs.models.api_orders_sgtins_set_request import ApiOrdersSGTINsSetRequest
|
|
34
|
+
from wildberries_sdk.orders_dbs.models.api_orders_uin_set_request import ApiOrdersUINSetRequest
|
|
35
|
+
from wildberries_sdk.orders_dbs.models.api_sgtins import ApiSGTINs
|
|
36
|
+
from wildberries_sdk.orders_dbs.models.api_status_set_response import ApiStatusSetResponse
|
|
37
|
+
from wildberries_sdk.orders_dbs.models.api_status_set_responses import ApiStatusSetResponses
|
|
38
|
+
from wildberries_sdk.orders_dbs.models.api_uin import ApiUIN
|
|
18
39
|
from wildberries_sdk.orders_dbs.models.api_v3_dbs_orders_get200_response import ApiV3DbsOrdersGet200Response
|
|
19
40
|
from wildberries_sdk.orders_dbs.models.api_v3_dbs_orders_new_get200_response import ApiV3DbsOrdersNewGet200Response
|
|
20
41
|
from wildberries_sdk.orders_dbs.models.api_v3_dbs_orders_new_get401_response import ApiV3DbsOrdersNewGet401Response
|
|
@@ -0,0 +1,93 @@
|
|
|
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 ApiBatchError(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
ApiBatchError
|
|
28
|
+
""" # noqa: E501
|
|
29
|
+
detail: Optional[Dict[str, Any]] = Field(default=None, description="Детали ошибки")
|
|
30
|
+
origin: Optional[StrictStr] = Field(default=None, description="ID внутреннего сервиса WB")
|
|
31
|
+
request_id: Optional[StrictStr] = Field(default=None, description="Уникальный ID запроса", alias="requestId")
|
|
32
|
+
title: Optional[StrictStr] = Field(default=None, description="Заголовок ошибки")
|
|
33
|
+
__properties: ClassVar[List[str]] = ["detail", "origin", "requestId", "title"]
|
|
34
|
+
|
|
35
|
+
model_config = ConfigDict(
|
|
36
|
+
populate_by_name=True,
|
|
37
|
+
validate_assignment=True,
|
|
38
|
+
protected_namespaces=(),
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
def to_str(self) -> str:
|
|
43
|
+
"""Returns the string representation of the model using alias"""
|
|
44
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
45
|
+
|
|
46
|
+
def to_json(self) -> str:
|
|
47
|
+
"""Returns the JSON representation of the model using alias"""
|
|
48
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
49
|
+
return json.dumps(self.to_dict())
|
|
50
|
+
|
|
51
|
+
@classmethod
|
|
52
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
53
|
+
"""Create an instance of ApiBatchError from a JSON string"""
|
|
54
|
+
return cls.from_dict(json.loads(json_str))
|
|
55
|
+
|
|
56
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
57
|
+
"""Return the dictionary representation of the model using alias.
|
|
58
|
+
|
|
59
|
+
This has the following differences from calling pydantic's
|
|
60
|
+
`self.model_dump(by_alias=True)`:
|
|
61
|
+
|
|
62
|
+
* `None` is only added to the output dict for nullable fields that
|
|
63
|
+
were set at model initialization. Other fields with value `None`
|
|
64
|
+
are ignored.
|
|
65
|
+
"""
|
|
66
|
+
excluded_fields: Set[str] = set([
|
|
67
|
+
])
|
|
68
|
+
|
|
69
|
+
_dict = self.model_dump(
|
|
70
|
+
by_alias=True,
|
|
71
|
+
exclude=excluded_fields,
|
|
72
|
+
exclude_none=True,
|
|
73
|
+
)
|
|
74
|
+
return _dict
|
|
75
|
+
|
|
76
|
+
@classmethod
|
|
77
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
78
|
+
"""Create an instance of ApiBatchError from a dict"""
|
|
79
|
+
if obj is None:
|
|
80
|
+
return None
|
|
81
|
+
|
|
82
|
+
if not isinstance(obj, dict):
|
|
83
|
+
return cls.model_validate(obj)
|
|
84
|
+
|
|
85
|
+
_obj = cls.model_validate({
|
|
86
|
+
"detail": obj.get("detail"),
|
|
87
|
+
"origin": obj.get("origin"),
|
|
88
|
+
"requestId": obj.get("requestId"),
|
|
89
|
+
"title": obj.get("title")
|
|
90
|
+
})
|
|
91
|
+
return _obj
|
|
92
|
+
|
|
93
|
+
|
|
@@ -0,0 +1,89 @@
|
|
|
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, StrictInt, 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 ApiBatchErrorResponse(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
ApiBatchErrorResponse
|
|
28
|
+
""" # noqa: E501
|
|
29
|
+
code: Optional[StrictInt] = Field(default=None, description="Код ошибки")
|
|
30
|
+
detail: Optional[StrictStr] = Field(default=None, description="- `not found` — сборочное задание не найдено - `status conflict` — операция невозможна для этого статуса сборочного задания ")
|
|
31
|
+
__properties: ClassVar[List[str]] = ["code", "detail"]
|
|
32
|
+
|
|
33
|
+
model_config = ConfigDict(
|
|
34
|
+
populate_by_name=True,
|
|
35
|
+
validate_assignment=True,
|
|
36
|
+
protected_namespaces=(),
|
|
37
|
+
)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
def to_str(self) -> str:
|
|
41
|
+
"""Returns the string representation of the model using alias"""
|
|
42
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
43
|
+
|
|
44
|
+
def to_json(self) -> str:
|
|
45
|
+
"""Returns the JSON representation of the model using alias"""
|
|
46
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
47
|
+
return json.dumps(self.to_dict())
|
|
48
|
+
|
|
49
|
+
@classmethod
|
|
50
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
51
|
+
"""Create an instance of ApiBatchErrorResponse from a JSON string"""
|
|
52
|
+
return cls.from_dict(json.loads(json_str))
|
|
53
|
+
|
|
54
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
55
|
+
"""Return the dictionary representation of the model using alias.
|
|
56
|
+
|
|
57
|
+
This has the following differences from calling pydantic's
|
|
58
|
+
`self.model_dump(by_alias=True)`:
|
|
59
|
+
|
|
60
|
+
* `None` is only added to the output dict for nullable fields that
|
|
61
|
+
were set at model initialization. Other fields with value `None`
|
|
62
|
+
are ignored.
|
|
63
|
+
"""
|
|
64
|
+
excluded_fields: Set[str] = set([
|
|
65
|
+
])
|
|
66
|
+
|
|
67
|
+
_dict = self.model_dump(
|
|
68
|
+
by_alias=True,
|
|
69
|
+
exclude=excluded_fields,
|
|
70
|
+
exclude_none=True,
|
|
71
|
+
)
|
|
72
|
+
return _dict
|
|
73
|
+
|
|
74
|
+
@classmethod
|
|
75
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
76
|
+
"""Create an instance of ApiBatchErrorResponse from a dict"""
|
|
77
|
+
if obj is None:
|
|
78
|
+
return None
|
|
79
|
+
|
|
80
|
+
if not isinstance(obj, dict):
|
|
81
|
+
return cls.model_validate(obj)
|
|
82
|
+
|
|
83
|
+
_obj = cls.model_validate({
|
|
84
|
+
"code": obj.get("code"),
|
|
85
|
+
"detail": obj.get("detail")
|
|
86
|
+
})
|
|
87
|
+
return _obj
|
|
88
|
+
|
|
89
|
+
|
|
@@ -0,0 +1,93 @@
|
|
|
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 ApiError(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
ApiError
|
|
28
|
+
""" # noqa: E501
|
|
29
|
+
detail: Optional[Dict[str, Any]] = Field(default=None, description="Детали ошибки")
|
|
30
|
+
origin: Optional[StrictStr] = Field(default=None, description="ID внутреннего сервиса WB")
|
|
31
|
+
request_id: Optional[StrictStr] = Field(default=None, description="Уникальный ID запроса", alias="requestId")
|
|
32
|
+
title: Optional[StrictStr] = Field(default=None, description="Заголовок ошибки")
|
|
33
|
+
__properties: ClassVar[List[str]] = ["detail", "origin", "requestId", "title"]
|
|
34
|
+
|
|
35
|
+
model_config = ConfigDict(
|
|
36
|
+
populate_by_name=True,
|
|
37
|
+
validate_assignment=True,
|
|
38
|
+
protected_namespaces=(),
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
def to_str(self) -> str:
|
|
43
|
+
"""Returns the string representation of the model using alias"""
|
|
44
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
45
|
+
|
|
46
|
+
def to_json(self) -> str:
|
|
47
|
+
"""Returns the JSON representation of the model using alias"""
|
|
48
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
49
|
+
return json.dumps(self.to_dict())
|
|
50
|
+
|
|
51
|
+
@classmethod
|
|
52
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
53
|
+
"""Create an instance of ApiError from a JSON string"""
|
|
54
|
+
return cls.from_dict(json.loads(json_str))
|
|
55
|
+
|
|
56
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
57
|
+
"""Return the dictionary representation of the model using alias.
|
|
58
|
+
|
|
59
|
+
This has the following differences from calling pydantic's
|
|
60
|
+
`self.model_dump(by_alias=True)`:
|
|
61
|
+
|
|
62
|
+
* `None` is only added to the output dict for nullable fields that
|
|
63
|
+
were set at model initialization. Other fields with value `None`
|
|
64
|
+
are ignored.
|
|
65
|
+
"""
|
|
66
|
+
excluded_fields: Set[str] = set([
|
|
67
|
+
])
|
|
68
|
+
|
|
69
|
+
_dict = self.model_dump(
|
|
70
|
+
by_alias=True,
|
|
71
|
+
exclude=excluded_fields,
|
|
72
|
+
exclude_none=True,
|
|
73
|
+
)
|
|
74
|
+
return _dict
|
|
75
|
+
|
|
76
|
+
@classmethod
|
|
77
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
78
|
+
"""Create an instance of ApiError from a dict"""
|
|
79
|
+
if obj is None:
|
|
80
|
+
return None
|
|
81
|
+
|
|
82
|
+
if not isinstance(obj, dict):
|
|
83
|
+
return cls.model_validate(obj)
|
|
84
|
+
|
|
85
|
+
_obj = cls.model_validate({
|
|
86
|
+
"detail": obj.get("detail"),
|
|
87
|
+
"origin": obj.get("origin"),
|
|
88
|
+
"requestId": obj.get("requestId"),
|
|
89
|
+
"title": obj.get("title")
|
|
90
|
+
})
|
|
91
|
+
return _obj
|
|
92
|
+
|
|
93
|
+
|
|
@@ -0,0 +1,90 @@
|
|
|
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, StrictInt
|
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
+
from typing_extensions import Annotated
|
|
23
|
+
from typing import Optional, Set
|
|
24
|
+
from typing_extensions import Self
|
|
25
|
+
|
|
26
|
+
class ApiGTIN(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
ApiGTIN
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
gtin: Optional[Annotated[str, Field(min_length=13, strict=True, max_length=13)]] = Field(default=None, description="GTIN")
|
|
31
|
+
order_id: Optional[StrictInt] = Field(default=None, description="ID сборочного задания", alias="orderId")
|
|
32
|
+
__properties: ClassVar[List[str]] = ["gtin", "orderId"]
|
|
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 ApiGTIN 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 ApiGTIN 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
|
+
"gtin": obj.get("gtin"),
|
|
86
|
+
"orderId": obj.get("orderId")
|
|
87
|
+
})
|
|
88
|
+
return _obj
|
|
89
|
+
|
|
90
|
+
|
|
@@ -0,0 +1,90 @@
|
|
|
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, StrictInt
|
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
+
from typing_extensions import Annotated
|
|
23
|
+
from typing import Optional, Set
|
|
24
|
+
from typing_extensions import Self
|
|
25
|
+
|
|
26
|
+
class ApiIMEI(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
ApiIMEI
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
order_id: Optional[StrictInt] = Field(default=None, description="ID сборочного задания", alias="orderId")
|
|
31
|
+
imei: Optional[Annotated[str, Field(min_length=15, strict=True, max_length=15)]] = Field(default=None, description="IMEI")
|
|
32
|
+
__properties: ClassVar[List[str]] = ["orderId", "imei"]
|
|
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 ApiIMEI 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 ApiIMEI 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
|
+
"orderId": obj.get("orderId"),
|
|
86
|
+
"imei": obj.get("imei")
|
|
87
|
+
})
|
|
88
|
+
return _obj
|
|
89
|
+
|
|
90
|
+
|
|
@@ -0,0 +1,89 @@
|
|
|
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, StrictInt, 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 ApiOrderCodeRequest(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
ApiOrderCodeRequest
|
|
28
|
+
""" # noqa: E501
|
|
29
|
+
code: Optional[StrictStr] = Field(default=None, description="Код подтверждения. <br> Отображается у покупателя на сайте и в приложении Wildberries")
|
|
30
|
+
order_id: Optional[StrictInt] = Field(default=None, description="ID сборочного задания", alias="orderId")
|
|
31
|
+
__properties: ClassVar[List[str]] = ["code", "orderId"]
|
|
32
|
+
|
|
33
|
+
model_config = ConfigDict(
|
|
34
|
+
populate_by_name=True,
|
|
35
|
+
validate_assignment=True,
|
|
36
|
+
protected_namespaces=(),
|
|
37
|
+
)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
def to_str(self) -> str:
|
|
41
|
+
"""Returns the string representation of the model using alias"""
|
|
42
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
43
|
+
|
|
44
|
+
def to_json(self) -> str:
|
|
45
|
+
"""Returns the JSON representation of the model using alias"""
|
|
46
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
47
|
+
return json.dumps(self.to_dict())
|
|
48
|
+
|
|
49
|
+
@classmethod
|
|
50
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
51
|
+
"""Create an instance of ApiOrderCodeRequest from a JSON string"""
|
|
52
|
+
return cls.from_dict(json.loads(json_str))
|
|
53
|
+
|
|
54
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
55
|
+
"""Return the dictionary representation of the model using alias.
|
|
56
|
+
|
|
57
|
+
This has the following differences from calling pydantic's
|
|
58
|
+
`self.model_dump(by_alias=True)`:
|
|
59
|
+
|
|
60
|
+
* `None` is only added to the output dict for nullable fields that
|
|
61
|
+
were set at model initialization. Other fields with value `None`
|
|
62
|
+
are ignored.
|
|
63
|
+
"""
|
|
64
|
+
excluded_fields: Set[str] = set([
|
|
65
|
+
])
|
|
66
|
+
|
|
67
|
+
_dict = self.model_dump(
|
|
68
|
+
by_alias=True,
|
|
69
|
+
exclude=excluded_fields,
|
|
70
|
+
exclude_none=True,
|
|
71
|
+
)
|
|
72
|
+
return _dict
|
|
73
|
+
|
|
74
|
+
@classmethod
|
|
75
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
76
|
+
"""Create an instance of ApiOrderCodeRequest from a dict"""
|
|
77
|
+
if obj is None:
|
|
78
|
+
return None
|
|
79
|
+
|
|
80
|
+
if not isinstance(obj, dict):
|
|
81
|
+
return cls.model_validate(obj)
|
|
82
|
+
|
|
83
|
+
_obj = cls.model_validate({
|
|
84
|
+
"code": obj.get("code"),
|
|
85
|
+
"orderId": obj.get("orderId")
|
|
86
|
+
})
|
|
87
|
+
return _obj
|
|
88
|
+
|
|
89
|
+
|