wildberries-sdk 0.1.34__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.
Files changed (53) hide show
  1. wildberries_sdk/analytics/__init__.py +1 -1
  2. wildberries_sdk/analytics/api_client.py +1 -1
  3. wildberries_sdk/analytics/configuration.py +1 -1
  4. wildberries_sdk/communications/__init__.py +1 -1
  5. wildberries_sdk/communications/api_client.py +1 -1
  6. wildberries_sdk/communications/configuration.py +1 -1
  7. wildberries_sdk/finances/__init__.py +1 -1
  8. wildberries_sdk/finances/api_client.py +1 -1
  9. wildberries_sdk/finances/configuration.py +1 -1
  10. wildberries_sdk/general/__init__.py +1 -1
  11. wildberries_sdk/general/api_client.py +1 -1
  12. wildberries_sdk/general/configuration.py +1 -1
  13. wildberries_sdk/in_store_pickup/__init__.py +1 -1
  14. wildberries_sdk/in_store_pickup/api_client.py +1 -1
  15. wildberries_sdk/in_store_pickup/configuration.py +1 -1
  16. wildberries_sdk/orders_dbs/__init__.py +9 -1
  17. wildberries_sdk/orders_dbs/api/default_api.py +294 -3
  18. wildberries_sdk/orders_dbs/api_client.py +1 -1
  19. wildberries_sdk/orders_dbs/configuration.py +1 -1
  20. wildberries_sdk/orders_dbs/models/__init__.py +4 -0
  21. wildberries_sdk/orders_dbs/models/api_b2b_client_info.py +91 -0
  22. wildberries_sdk/orders_dbs/models/api_b2b_client_info_response.py +105 -0
  23. wildberries_sdk/orders_dbs/models/api_b2b_client_info_response_errors_inner.py +89 -0
  24. wildberries_sdk/orders_dbs/models/api_b2b_client_info_responses.py +97 -0
  25. wildberries_sdk/orders_dbw/__init__.py +1 -1
  26. wildberries_sdk/orders_dbw/api_client.py +1 -1
  27. wildberries_sdk/orders_dbw/configuration.py +1 -1
  28. wildberries_sdk/orders_fbs/__init__.py +1 -1
  29. wildberries_sdk/orders_fbs/api_client.py +1 -1
  30. wildberries_sdk/orders_fbs/configuration.py +1 -1
  31. wildberries_sdk/orders_fbw/__init__.py +1 -1
  32. wildberries_sdk/orders_fbw/api_client.py +1 -1
  33. wildberries_sdk/orders_fbw/configuration.py +1 -1
  34. wildberries_sdk/products/__init__.py +1 -1
  35. wildberries_sdk/products/api_client.py +1 -1
  36. wildberries_sdk/products/configuration.py +1 -1
  37. wildberries_sdk/promotion/__init__.py +1 -1
  38. wildberries_sdk/promotion/api_client.py +1 -1
  39. wildberries_sdk/promotion/configuration.py +1 -1
  40. wildberries_sdk/reports/__init__.py +1 -1
  41. wildberries_sdk/reports/api_client.py +1 -1
  42. wildberries_sdk/reports/configuration.py +1 -1
  43. wildberries_sdk/tariffs/__init__.py +1 -1
  44. wildberries_sdk/tariffs/api_client.py +1 -1
  45. wildberries_sdk/tariffs/configuration.py +1 -1
  46. wildberries_sdk/wbd/__init__.py +1 -1
  47. wildberries_sdk/wbd/api_client.py +1 -1
  48. wildberries_sdk/wbd/configuration.py +1 -1
  49. {wildberries_sdk-0.1.34.dist-info → wildberries_sdk-0.1.35.dist-info}/METADATA +2 -1
  50. {wildberries_sdk-0.1.34.dist-info → wildberries_sdk-0.1.35.dist-info}/RECORD +53 -49
  51. {wildberries_sdk-0.1.34.dist-info → wildberries_sdk-0.1.35.dist-info}/LICENSE +0 -0
  52. {wildberries_sdk-0.1.34.dist-info → wildberries_sdk-0.1.35.dist-info}/WHEEL +0 -0
  53. {wildberries_sdk-0.1.34.dist-info → wildberries_sdk-0.1.35.dist-info}/top_level.txt +0 -0
@@ -14,7 +14,7 @@
14
14
  """ # noqa: E501
15
15
 
16
16
 
17
- __version__ = "0.1.34"
17
+ __version__ = "0.1.35"
18
18
 
19
19
  # Define package exports
20
20
  __all__ = [
@@ -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.34/python'
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.analytics.Configuration(
536
536
  "OS: {env}\n"\
537
537
  "Python Version: {pyversion}\n"\
538
538
  "Version of the API: analytics\n"\
539
- "SDK Package Version: 0.1.34".\
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]:
@@ -14,7 +14,7 @@
14
14
  """ # noqa: E501
15
15
 
16
16
 
17
- __version__ = "0.1.34"
17
+ __version__ = "0.1.35"
18
18
 
19
19
  # Define package exports
20
20
  __all__ = [
@@ -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.34/python'
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.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.34".\
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]:
@@ -14,7 +14,7 @@
14
14
  """ # noqa: E501
15
15
 
16
16
 
17
- __version__ = "0.1.34"
17
+ __version__ = "0.1.35"
18
18
 
19
19
  # Define package exports
20
20
  __all__ = [
@@ -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.34/python'
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.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.34".\
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]:
@@ -14,7 +14,7 @@
14
14
  """ # noqa: E501
15
15
 
16
16
 
17
- __version__ = "0.1.34"
17
+ __version__ = "0.1.35"
18
18
 
19
19
  # Define package exports
20
20
  __all__ = [
@@ -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.34/python'
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.general.Configuration(
536
536
  "OS: {env}\n"\
537
537
  "Python Version: {pyversion}\n"\
538
538
  "Version of the API: general\n"\
539
- "SDK Package Version: 0.1.34".\
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]:
@@ -14,7 +14,7 @@
14
14
  """ # noqa: E501
15
15
 
16
16
 
17
- __version__ = "0.1.34"
17
+ __version__ = "0.1.35"
18
18
 
19
19
  # Define package exports
20
20
  __all__ = [
@@ -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.34/python'
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.in_store_pickup.Configuration(
536
536
  "OS: {env}\n"\
537
537
  "Python Version: {pyversion}\n"\
538
538
  "Version of the API: instorepickup\n"\
539
- "SDK Package Version: 0.1.34".\
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]:
@@ -14,7 +14,7 @@
14
14
  """ # noqa: E501
15
15
 
16
16
 
17
- __version__ = "0.1.34"
17
+ __version__ = "0.1.35"
18
18
 
19
19
  # Define package exports
20
20
  __all__ = [
@@ -28,6 +28,10 @@ __all__ = [
28
28
  "ApiKeyError",
29
29
  "ApiAttributeError",
30
30
  "ApiException",
31
+ "ApiB2bClientInfo",
32
+ "ApiB2bClientInfoResponse",
33
+ "ApiB2bClientInfoResponseErrorsInner",
34
+ "ApiB2bClientInfoResponses",
31
35
  "ApiBatchError",
32
36
  "ApiBatchErrorResponse",
33
37
  "ApiError",
@@ -100,6 +104,10 @@ from wildberries_sdk.orders_dbs.exceptions import ApiAttributeError as ApiAttrib
100
104
  from wildberries_sdk.orders_dbs.exceptions import ApiException as ApiException
101
105
 
102
106
  # import models into sdk package
107
+ from wildberries_sdk.orders_dbs.models.api_b2b_client_info import ApiB2bClientInfo as ApiB2bClientInfo
108
+ from wildberries_sdk.orders_dbs.models.api_b2b_client_info_response import ApiB2bClientInfoResponse as ApiB2bClientInfoResponse
109
+ from wildberries_sdk.orders_dbs.models.api_b2b_client_info_response_errors_inner import ApiB2bClientInfoResponseErrorsInner as ApiB2bClientInfoResponseErrorsInner
110
+ from wildberries_sdk.orders_dbs.models.api_b2b_client_info_responses import ApiB2bClientInfoResponses as ApiB2bClientInfoResponses
103
111
  from wildberries_sdk.orders_dbs.models.api_batch_error import ApiBatchError as ApiBatchError
104
112
  from wildberries_sdk.orders_dbs.models.api_batch_error_response import ApiBatchErrorResponse as ApiBatchErrorResponse
105
113
  from wildberries_sdk.orders_dbs.models.api_error import ApiError as ApiError
@@ -19,6 +19,7 @@ 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.api_b2b_client_info_responses import ApiB2bClientInfoResponses
22
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
@@ -65,6 +66,296 @@ class DefaultApi:
65
66
  self.api_client = api_client
66
67
 
67
68
 
69
+ @validate_call
70
+ def api_marketplace_v3_dbs_orders_b2b_info_post(
71
+ self,
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
+
68
359
  @validate_call
69
360
  def api_marketplace_v3_dbs_orders_meta_customs_declaration_post(
70
361
  self,
@@ -84,7 +375,7 @@ 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) `delivery`. <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>
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
380
  :param api_marketplace_v3_dbs_orders_meta_customs_declaration_post_request:
90
381
  :type api_marketplace_v3_dbs_orders_meta_customs_declaration_post_request: ApiMarketplaceV3DbsOrdersMetaCustomsDeclarationPostRequest
@@ -157,7 +448,7 @@ 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) `delivery`. <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>
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
453
  :param api_marketplace_v3_dbs_orders_meta_customs_declaration_post_request:
163
454
  :type api_marketplace_v3_dbs_orders_meta_customs_declaration_post_request: ApiMarketplaceV3DbsOrdersMetaCustomsDeclarationPostRequest
@@ -230,7 +521,7 @@ 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) `delivery`. <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>
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
526
  :param api_marketplace_v3_dbs_orders_meta_customs_declaration_post_request:
236
527
  :type api_marketplace_v3_dbs_orders_meta_customs_declaration_post_request: ApiMarketplaceV3DbsOrdersMetaCustomsDeclarationPostRequest
@@ -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.34/python'
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.34".\
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,6 +13,10 @@
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
@@ -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
+