wildberries-sdk 0.1.17__py3-none-any.whl → 0.1.18__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. wildberries_sdk/analytics/__init__.py +3 -7
  2. wildberries_sdk/analytics/api/__init__.py +1 -3
  3. wildberries_sdk/analytics/api/default_api.py +4670 -0
  4. wildberries_sdk/analytics/api_client.py +1 -1
  5. wildberries_sdk/analytics/configuration.py +1 -1
  6. wildberries_sdk/communications/__init__.py +1 -5
  7. wildberries_sdk/communications/api/__init__.py +0 -2
  8. wildberries_sdk/communications/api/default_api.py +4282 -858
  9. wildberries_sdk/communications/api_client.py +1 -1
  10. wildberries_sdk/communications/configuration.py +1 -1
  11. wildberries_sdk/finances/__init__.py +1 -3
  12. wildberries_sdk/finances/api/__init__.py +0 -1
  13. wildberries_sdk/finances/api/default_api.py +367 -2
  14. wildberries_sdk/finances/api_client.py +1 -1
  15. wildberries_sdk/finances/configuration.py +1 -1
  16. wildberries_sdk/general/__init__.py +3 -7
  17. wildberries_sdk/general/api/__init__.py +1 -3
  18. wildberries_sdk/general/api/{api.py → default_api.py} +560 -1
  19. wildberries_sdk/general/api_client.py +1 -1
  20. wildberries_sdk/general/configuration.py +1 -1
  21. wildberries_sdk/in_store_pickup/__init__.py +3 -5
  22. wildberries_sdk/in_store_pickup/api/__init__.py +1 -2
  23. wildberries_sdk/in_store_pickup/api/{api.py → default_api.py} +1798 -2
  24. wildberries_sdk/in_store_pickup/api_client.py +1 -1
  25. wildberries_sdk/in_store_pickup/configuration.py +1 -1
  26. wildberries_sdk/orders_dbs/__init__.py +3 -5
  27. wildberries_sdk/orders_dbs/api/__init__.py +1 -2
  28. wildberries_sdk/orders_dbs/api/{dbs_api.py → default_api.py} +1819 -2
  29. wildberries_sdk/orders_dbs/api_client.py +1 -1
  30. wildberries_sdk/orders_dbs/configuration.py +1 -1
  31. wildberries_sdk/orders_dbw/__init__.py +3 -5
  32. wildberries_sdk/orders_dbw/api/__init__.py +1 -2
  33. wildberries_sdk/orders_dbw/api/{dbw_api.py → default_api.py} +1821 -1
  34. wildberries_sdk/orders_dbw/api_client.py +1 -1
  35. wildberries_sdk/orders_dbw/configuration.py +1 -1
  36. wildberries_sdk/orders_fbs/__init__.py +3 -5
  37. wildberries_sdk/orders_fbs/api/__init__.py +1 -2
  38. wildberries_sdk/orders_fbs/api/default_api.py +10043 -0
  39. wildberries_sdk/orders_fbs/api_client.py +1 -1
  40. wildberries_sdk/orders_fbs/configuration.py +1 -1
  41. wildberries_sdk/orders_fbw/__init__.py +3 -5
  42. wildberries_sdk/orders_fbw/api/__init__.py +1 -2
  43. wildberries_sdk/orders_fbw/api/default_api.py +2368 -0
  44. wildberries_sdk/orders_fbw/api_client.py +1 -1
  45. wildberries_sdk/orders_fbw/configuration.py +1 -1
  46. wildberries_sdk/products/__init__.py +1 -7
  47. wildberries_sdk/products/api/__init__.py +0 -3
  48. wildberries_sdk/products/api/default_api.py +12348 -2
  49. wildberries_sdk/products/api_client.py +1 -1
  50. wildberries_sdk/products/configuration.py +1 -1
  51. wildberries_sdk/products/models/content_v2_get_cards_list_post200_response_cards_inner_tags_inner.py +1 -1
  52. wildberries_sdk/promotion/__init__.py +1 -3
  53. wildberries_sdk/promotion/api/__init__.py +0 -1
  54. wildberries_sdk/promotion/api/default_api.py +10107 -1059
  55. wildberries_sdk/promotion/api_client.py +1 -1
  56. wildberries_sdk/promotion/configuration.py +1 -1
  57. wildberries_sdk/reports/__init__.py +3 -13
  58. wildberries_sdk/reports/api/__init__.py +1 -6
  59. wildberries_sdk/{promotion/api/api.py → reports/api/default_api.py} +2245 -2381
  60. wildberries_sdk/reports/api_client.py +1 -1
  61. wildberries_sdk/reports/configuration.py +1 -1
  62. wildberries_sdk/tariffs/__init__.py +1 -3
  63. wildberries_sdk/tariffs/api/__init__.py +0 -1
  64. wildberries_sdk/tariffs/api/default_api.py +1147 -34
  65. wildberries_sdk/tariffs/api_client.py +1 -1
  66. wildberries_sdk/tariffs/configuration.py +1 -1
  67. wildberries_sdk/wbd/__init__.py +1 -3
  68. wildberries_sdk/wbd/api/__init__.py +0 -1
  69. wildberries_sdk/wbd/api/default_api.py +1662 -89
  70. wildberries_sdk/wbd/api_client.py +1 -1
  71. wildberries_sdk/wbd/configuration.py +1 -1
  72. wildberries_sdk/wbd/models/offer_create_request.py +1 -1
  73. wildberries_sdk/wbd/models/offer_update_request.py +1 -1
  74. wildberries_sdk-0.1.18.dist-info/METADATA +395 -0
  75. {wildberries_sdk-0.1.17.dist-info → wildberries_sdk-0.1.18.dist-info}/RECORD +78 -88
  76. wildberries_sdk/analytics/api/api.py +0 -1490
  77. wildberries_sdk/analytics/api/csv_api.py +0 -1178
  78. wildberries_sdk/communications/api/api.py +0 -1166
  79. wildberries_sdk/finances/api/api.py +0 -404
  80. wildberries_sdk/general/api/api_api.py +0 -341
  81. wildberries_sdk/general/api/wbapi_api.py +0 -291
  82. wildberries_sdk/orders_fbs/api/fbs_api.py +0 -2683
  83. wildberries_sdk/orders_fbw/api/api.py +0 -1153
  84. wildberries_sdk/products/api/api.py +0 -3891
  85. wildberries_sdk/reports/api/api.py +0 -350
  86. wildberries_sdk/reports/api/c_api.py +0 -361
  87. wildberries_sdk/tariffs/api/api.py +0 -1151
  88. wildberries_sdk/wbd/api/api.py +0 -1611
  89. wildberries_sdk-0.1.17.dist-info/METADATA +0 -191
  90. {wildberries_sdk-0.1.17.dist-info → wildberries_sdk-0.1.18.dist-info}/LICENSE +0 -0
  91. {wildberries_sdk-0.1.17.dist-info → wildberries_sdk-0.1.18.dist-info}/WHEEL +0 -0
  92. {wildberries_sdk-0.1.17.dist-info → wildberries_sdk-0.1.18.dist-info}/top_level.txt +0 -0
@@ -16,13 +16,18 @@ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
16
16
  from typing import Any, Dict, List, Optional, Tuple, Union
17
17
  from typing_extensions import Annotated
18
18
 
19
- from pydantic import Field, StrictInt
19
+ from pydantic import Field, StrictInt, StrictStr
20
20
  from typing import List, Optional
21
21
  from typing_extensions import Annotated
22
22
  from wildberries_sdk.orders_dbs.models.api_order_group_inner import ApiOrderGroupInner
23
23
  from wildberries_sdk.orders_dbs.models.api_order_groups_request import ApiOrderGroupsRequest
24
24
  from wildberries_sdk.orders_dbs.models.api_v3_dbs_orders_get200_response import ApiV3DbsOrdersGet200Response
25
25
  from wildberries_sdk.orders_dbs.models.api_v3_dbs_orders_new_get200_response import ApiV3DbsOrdersNewGet200Response
26
+ from wildberries_sdk.orders_dbs.models.api_v3_dbs_orders_order_id_meta_get200_response import ApiV3DbsOrdersOrderIdMetaGet200Response
27
+ from wildberries_sdk.orders_dbs.models.api_v3_dbs_orders_order_id_meta_gtin_put_request import ApiV3DbsOrdersOrderIdMetaGtinPutRequest
28
+ from wildberries_sdk.orders_dbs.models.api_v3_dbs_orders_order_id_meta_imei_put_request import ApiV3DbsOrdersOrderIdMetaImeiPutRequest
29
+ from wildberries_sdk.orders_dbs.models.api_v3_dbs_orders_order_id_meta_sgtin_put_request import ApiV3DbsOrdersOrderIdMetaSgtinPutRequest
30
+ from wildberries_sdk.orders_dbs.models.api_v3_dbs_orders_order_id_meta_uin_put_request import ApiV3DbsOrdersOrderIdMetaUinPutRequest
26
31
  from wildberries_sdk.orders_dbs.models.api_v3_dbs_orders_status_post200_response import ApiV3DbsOrdersStatusPost200Response
27
32
  from wildberries_sdk.orders_dbs.models.api_v3_dbs_orders_status_post_request import ApiV3DbsOrdersStatusPostRequest
28
33
  from wildberries_sdk.orders_dbs.models.code import Code
@@ -36,7 +41,7 @@ from wildberries_sdk.orders_dbs.api_response import ApiResponse
36
41
  from wildberries_sdk.orders_dbs.rest import RESTResponseType
37
42
 
38
43
 
39
- class DBSApi:
44
+ class DefaultApi:
40
45
  """NOTE: This class is auto generated by OpenAPI Generator
41
46
  Ref: https://openapi-generator.tech
42
47
 
@@ -2352,6 +2357,1818 @@ class DBSApi:
2352
2357
 
2353
2358
 
2354
2359
 
2360
+ @validate_call
2361
+ def api_v3_dbs_orders_order_id_meta_delete(
2362
+ self,
2363
+ order_id: Annotated[StrictInt, Field(description="ID сборочного задания")],
2364
+ key: Annotated[Optional[StrictStr], Field(description="Название метаданных для удаления (**imei**, **uin**, **gtin**, **sgtin**). Передается только одно значение.")] = None,
2365
+ _request_timeout: Union[
2366
+ None,
2367
+ Annotated[StrictFloat, Field(gt=0)],
2368
+ Tuple[
2369
+ Annotated[StrictFloat, Field(gt=0)],
2370
+ Annotated[StrictFloat, Field(gt=0)]
2371
+ ]
2372
+ ] = None,
2373
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2374
+ _content_type: Optional[StrictStr] = None,
2375
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2376
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
2377
+ ) -> None:
2378
+ """Удалить метаданные сборочного задания
2379
+
2380
+ Метод удаляет значение [метаданных сборочного задания](/openapi/orders-dbs#tag/Metadannye-DBS/paths/~1api~1v3~1dbs~1orders~1%7BorderId%7D~1meta/get) для переданного ключа. <br><br> Возможные метаданные: - `imei` — [IMEI](/openapi/orders-dbs#tag/Metadannye-DBS/paths/~1api~1v3~1dbs~1orders~1%7BorderId%7D~1meta~1imei/put) - `uin` — [УИН](/openapi/orders-dbs#tag/Metadannye-DBS/paths/~1api~1v3~1dbs~1orders~1%7BorderId%7D~1meta~1uin/put) - `gtin` — [GTIN](/openapi/orders-dbs#tag/Metadannye-DBS/paths/~1api~1v3~1dbs~1orders~1%7BorderId%7D~1meta~1gtin/put) - `sgtin` — [код маркировки](/openapi/orders-dbs#tag/Metadannye-DBS/paths/~1api~1v3~1dbs~1orders~1%7BorderId%7D~1meta~1sgtin/put) Можно передать только один ключ. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов <strong>получения и удаления метаданных DBS</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 300 запросов | 200 миллисекунд | 20 запросов | Один запрос с кодом ответа <code>409</code> учитывается как 10 запросов </div>
2381
+
2382
+ :param order_id: ID сборочного задания (required)
2383
+ :type order_id: int
2384
+ :param key: Название метаданных для удаления (**imei**, **uin**, **gtin**, **sgtin**). Передается только одно значение.
2385
+ :type key: str
2386
+ :param _request_timeout: timeout setting for this request. If one
2387
+ number provided, it will be total request
2388
+ timeout. It can also be a pair (tuple) of
2389
+ (connection, read) timeouts.
2390
+ :type _request_timeout: int, tuple(int, int), optional
2391
+ :param _request_auth: set to override the auth_settings for an a single
2392
+ request; this effectively ignores the
2393
+ authentication in the spec for a single request.
2394
+ :type _request_auth: dict, optional
2395
+ :param _content_type: force content-type for the request.
2396
+ :type _content_type: str, Optional
2397
+ :param _headers: set to override the headers for a single
2398
+ request; this effectively ignores the headers
2399
+ in the spec for a single request.
2400
+ :type _headers: dict, optional
2401
+ :param _host_index: set to override the host_index for a single
2402
+ request; this effectively ignores the host_index
2403
+ in the spec for a single request.
2404
+ :type _host_index: int, optional
2405
+ :return: Returns the result object.
2406
+ """ # noqa: E501
2407
+
2408
+ _param = self._api_v3_dbs_orders_order_id_meta_delete_serialize(
2409
+ order_id=order_id,
2410
+ key=key,
2411
+ _request_auth=_request_auth,
2412
+ _content_type=_content_type,
2413
+ _headers=_headers,
2414
+ _host_index=_host_index
2415
+ )
2416
+
2417
+ _response_types_map: Dict[str, Optional[str]] = {
2418
+ '204': None,
2419
+ '400': "Error",
2420
+ '401': "ApiV3DbsOrdersNewGet401Response",
2421
+ '403': "Error",
2422
+ '409': "Error",
2423
+ '429': "ApiV3DbsOrdersNewGet401Response",
2424
+ }
2425
+ response_data = self.api_client.call_api(
2426
+ *_param,
2427
+ _request_timeout=_request_timeout
2428
+ )
2429
+ response_data.read()
2430
+ return self.api_client.response_deserialize(
2431
+ response_data=response_data,
2432
+ response_types_map=_response_types_map,
2433
+ ).data
2434
+
2435
+
2436
+ @validate_call
2437
+ def api_v3_dbs_orders_order_id_meta_delete_with_http_info(
2438
+ self,
2439
+ order_id: Annotated[StrictInt, Field(description="ID сборочного задания")],
2440
+ key: Annotated[Optional[StrictStr], Field(description="Название метаданных для удаления (**imei**, **uin**, **gtin**, **sgtin**). Передается только одно значение.")] = None,
2441
+ _request_timeout: Union[
2442
+ None,
2443
+ Annotated[StrictFloat, Field(gt=0)],
2444
+ Tuple[
2445
+ Annotated[StrictFloat, Field(gt=0)],
2446
+ Annotated[StrictFloat, Field(gt=0)]
2447
+ ]
2448
+ ] = None,
2449
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2450
+ _content_type: Optional[StrictStr] = None,
2451
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2452
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
2453
+ ) -> ApiResponse[None]:
2454
+ """Удалить метаданные сборочного задания
2455
+
2456
+ Метод удаляет значение [метаданных сборочного задания](/openapi/orders-dbs#tag/Metadannye-DBS/paths/~1api~1v3~1dbs~1orders~1%7BorderId%7D~1meta/get) для переданного ключа. <br><br> Возможные метаданные: - `imei` — [IMEI](/openapi/orders-dbs#tag/Metadannye-DBS/paths/~1api~1v3~1dbs~1orders~1%7BorderId%7D~1meta~1imei/put) - `uin` — [УИН](/openapi/orders-dbs#tag/Metadannye-DBS/paths/~1api~1v3~1dbs~1orders~1%7BorderId%7D~1meta~1uin/put) - `gtin` — [GTIN](/openapi/orders-dbs#tag/Metadannye-DBS/paths/~1api~1v3~1dbs~1orders~1%7BorderId%7D~1meta~1gtin/put) - `sgtin` — [код маркировки](/openapi/orders-dbs#tag/Metadannye-DBS/paths/~1api~1v3~1dbs~1orders~1%7BorderId%7D~1meta~1sgtin/put) Можно передать только один ключ. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов <strong>получения и удаления метаданных DBS</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 300 запросов | 200 миллисекунд | 20 запросов | Один запрос с кодом ответа <code>409</code> учитывается как 10 запросов </div>
2457
+
2458
+ :param order_id: ID сборочного задания (required)
2459
+ :type order_id: int
2460
+ :param key: Название метаданных для удаления (**imei**, **uin**, **gtin**, **sgtin**). Передается только одно значение.
2461
+ :type key: str
2462
+ :param _request_timeout: timeout setting for this request. If one
2463
+ number provided, it will be total request
2464
+ timeout. It can also be a pair (tuple) of
2465
+ (connection, read) timeouts.
2466
+ :type _request_timeout: int, tuple(int, int), optional
2467
+ :param _request_auth: set to override the auth_settings for an a single
2468
+ request; this effectively ignores the
2469
+ authentication in the spec for a single request.
2470
+ :type _request_auth: dict, optional
2471
+ :param _content_type: force content-type for the request.
2472
+ :type _content_type: str, Optional
2473
+ :param _headers: set to override the headers for a single
2474
+ request; this effectively ignores the headers
2475
+ in the spec for a single request.
2476
+ :type _headers: dict, optional
2477
+ :param _host_index: set to override the host_index for a single
2478
+ request; this effectively ignores the host_index
2479
+ in the spec for a single request.
2480
+ :type _host_index: int, optional
2481
+ :return: Returns the result object.
2482
+ """ # noqa: E501
2483
+
2484
+ _param = self._api_v3_dbs_orders_order_id_meta_delete_serialize(
2485
+ order_id=order_id,
2486
+ key=key,
2487
+ _request_auth=_request_auth,
2488
+ _content_type=_content_type,
2489
+ _headers=_headers,
2490
+ _host_index=_host_index
2491
+ )
2492
+
2493
+ _response_types_map: Dict[str, Optional[str]] = {
2494
+ '204': None,
2495
+ '400': "Error",
2496
+ '401': "ApiV3DbsOrdersNewGet401Response",
2497
+ '403': "Error",
2498
+ '409': "Error",
2499
+ '429': "ApiV3DbsOrdersNewGet401Response",
2500
+ }
2501
+ response_data = self.api_client.call_api(
2502
+ *_param,
2503
+ _request_timeout=_request_timeout
2504
+ )
2505
+ response_data.read()
2506
+ return self.api_client.response_deserialize(
2507
+ response_data=response_data,
2508
+ response_types_map=_response_types_map,
2509
+ )
2510
+
2511
+
2512
+ @validate_call
2513
+ def api_v3_dbs_orders_order_id_meta_delete_without_preload_content(
2514
+ self,
2515
+ order_id: Annotated[StrictInt, Field(description="ID сборочного задания")],
2516
+ key: Annotated[Optional[StrictStr], Field(description="Название метаданных для удаления (**imei**, **uin**, **gtin**, **sgtin**). Передается только одно значение.")] = None,
2517
+ _request_timeout: Union[
2518
+ None,
2519
+ Annotated[StrictFloat, Field(gt=0)],
2520
+ Tuple[
2521
+ Annotated[StrictFloat, Field(gt=0)],
2522
+ Annotated[StrictFloat, Field(gt=0)]
2523
+ ]
2524
+ ] = None,
2525
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2526
+ _content_type: Optional[StrictStr] = None,
2527
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2528
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
2529
+ ) -> RESTResponseType:
2530
+ """Удалить метаданные сборочного задания
2531
+
2532
+ Метод удаляет значение [метаданных сборочного задания](/openapi/orders-dbs#tag/Metadannye-DBS/paths/~1api~1v3~1dbs~1orders~1%7BorderId%7D~1meta/get) для переданного ключа. <br><br> Возможные метаданные: - `imei` — [IMEI](/openapi/orders-dbs#tag/Metadannye-DBS/paths/~1api~1v3~1dbs~1orders~1%7BorderId%7D~1meta~1imei/put) - `uin` — [УИН](/openapi/orders-dbs#tag/Metadannye-DBS/paths/~1api~1v3~1dbs~1orders~1%7BorderId%7D~1meta~1uin/put) - `gtin` — [GTIN](/openapi/orders-dbs#tag/Metadannye-DBS/paths/~1api~1v3~1dbs~1orders~1%7BorderId%7D~1meta~1gtin/put) - `sgtin` — [код маркировки](/openapi/orders-dbs#tag/Metadannye-DBS/paths/~1api~1v3~1dbs~1orders~1%7BorderId%7D~1meta~1sgtin/put) Можно передать только один ключ. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов <strong>получения и удаления метаданных DBS</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 300 запросов | 200 миллисекунд | 20 запросов | Один запрос с кодом ответа <code>409</code> учитывается как 10 запросов </div>
2533
+
2534
+ :param order_id: ID сборочного задания (required)
2535
+ :type order_id: int
2536
+ :param key: Название метаданных для удаления (**imei**, **uin**, **gtin**, **sgtin**). Передается только одно значение.
2537
+ :type key: str
2538
+ :param _request_timeout: timeout setting for this request. If one
2539
+ number provided, it will be total request
2540
+ timeout. It can also be a pair (tuple) of
2541
+ (connection, read) timeouts.
2542
+ :type _request_timeout: int, tuple(int, int), optional
2543
+ :param _request_auth: set to override the auth_settings for an a single
2544
+ request; this effectively ignores the
2545
+ authentication in the spec for a single request.
2546
+ :type _request_auth: dict, optional
2547
+ :param _content_type: force content-type for the request.
2548
+ :type _content_type: str, Optional
2549
+ :param _headers: set to override the headers for a single
2550
+ request; this effectively ignores the headers
2551
+ in the spec for a single request.
2552
+ :type _headers: dict, optional
2553
+ :param _host_index: set to override the host_index for a single
2554
+ request; this effectively ignores the host_index
2555
+ in the spec for a single request.
2556
+ :type _host_index: int, optional
2557
+ :return: Returns the result object.
2558
+ """ # noqa: E501
2559
+
2560
+ _param = self._api_v3_dbs_orders_order_id_meta_delete_serialize(
2561
+ order_id=order_id,
2562
+ key=key,
2563
+ _request_auth=_request_auth,
2564
+ _content_type=_content_type,
2565
+ _headers=_headers,
2566
+ _host_index=_host_index
2567
+ )
2568
+
2569
+ _response_types_map: Dict[str, Optional[str]] = {
2570
+ '204': None,
2571
+ '400': "Error",
2572
+ '401': "ApiV3DbsOrdersNewGet401Response",
2573
+ '403': "Error",
2574
+ '409': "Error",
2575
+ '429': "ApiV3DbsOrdersNewGet401Response",
2576
+ }
2577
+ response_data = self.api_client.call_api(
2578
+ *_param,
2579
+ _request_timeout=_request_timeout
2580
+ )
2581
+ return response_data.response
2582
+
2583
+
2584
+ def _api_v3_dbs_orders_order_id_meta_delete_serialize(
2585
+ self,
2586
+ order_id,
2587
+ key,
2588
+ _request_auth,
2589
+ _content_type,
2590
+ _headers,
2591
+ _host_index,
2592
+ ) -> RequestSerialized:
2593
+
2594
+ _hosts = [
2595
+ 'https://marketplace-api.wildberries.ru'
2596
+ ]
2597
+ _host = _hosts[_host_index]
2598
+
2599
+ _collection_formats: Dict[str, str] = {
2600
+ }
2601
+
2602
+ _path_params: Dict[str, str] = {}
2603
+ _query_params: List[Tuple[str, str]] = []
2604
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2605
+ _form_params: List[Tuple[str, str]] = []
2606
+ _files: Dict[
2607
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2608
+ ] = {}
2609
+ _body_params: Optional[bytes] = None
2610
+
2611
+ # process the path parameters
2612
+ if order_id is not None:
2613
+ _path_params['orderId'] = order_id
2614
+ # process the query parameters
2615
+ if key is not None:
2616
+
2617
+ _query_params.append(('key', key))
2618
+
2619
+ # process the header parameters
2620
+ # process the form parameters
2621
+ # process the body parameter
2622
+
2623
+
2624
+ # set the HTTP header `Accept`
2625
+ if 'Accept' not in _header_params:
2626
+ _header_params['Accept'] = self.api_client.select_header_accept(
2627
+ [
2628
+ 'application/json'
2629
+ ]
2630
+ )
2631
+
2632
+
2633
+ # authentication setting
2634
+ _auth_settings: List[str] = [
2635
+ 'HeaderApiKey'
2636
+ ]
2637
+
2638
+ return self.api_client.param_serialize(
2639
+ method='DELETE',
2640
+ resource_path='/api/v3/dbs/orders/{orderId}/meta',
2641
+ path_params=_path_params,
2642
+ query_params=_query_params,
2643
+ header_params=_header_params,
2644
+ body=_body_params,
2645
+ post_params=_form_params,
2646
+ files=_files,
2647
+ auth_settings=_auth_settings,
2648
+ collection_formats=_collection_formats,
2649
+ _host=_host,
2650
+ _request_auth=_request_auth
2651
+ )
2652
+
2653
+
2654
+
2655
+
2656
+ @validate_call
2657
+ def api_v3_dbs_orders_order_id_meta_get(
2658
+ self,
2659
+ order_id: Annotated[StrictInt, Field(description="ID сборочного задания")],
2660
+ _request_timeout: Union[
2661
+ None,
2662
+ Annotated[StrictFloat, Field(gt=0)],
2663
+ Tuple[
2664
+ Annotated[StrictFloat, Field(gt=0)],
2665
+ Annotated[StrictFloat, Field(gt=0)]
2666
+ ]
2667
+ ] = None,
2668
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2669
+ _content_type: Optional[StrictStr] = None,
2670
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2671
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
2672
+ ) -> ApiV3DbsOrdersOrderIdMetaGet200Response:
2673
+ """Получить метаданные сборочного задания
2674
+
2675
+ Метод возвращает метаданные [сборочного задания](/openapi/orders-dbw#tag/Sborochnye-zadaniya-DBW/paths/~1api~1v3~1dbw~1orders/get). <br><br> Перечень метаданных, доступных для сборочного задания, можно получить в [списке новых сборочных заданий](/openapi/orders-dbs#tag/Sborochnye-zadaniya-DBS/paths/~1api~1v3~1dbs~1orders~1new/get), поле `requiredMeta`. <br><br> Возможные метаданные: - `imei` — [IMEI](/openapi/orders-dbs#tag/Metadannye-DBS/paths/~1api~1v3~1dbs~1orders~1%7BorderId%7D~1meta~1imei/put) - `uin` — [УИН](/openapi/orders-dbs#tag/Metadannye-DBS/paths/~1api~1v3~1dbs~1orders~1%7BorderId%7D~1meta~1uin/put) - `gtin` — [GTIN](/openapi/orders-dbs#tag/Metadannye-DBS/paths/~1api~1v3~1dbs~1orders~1%7BorderId%7D~1meta~1gtin/put) - `sgtin` — [код маркировки](/openapi/orders-dbs#tag/Metadannye-DBS/paths/~1api~1v3~1dbs~1orders~1%7BorderId%7D~1meta~1sgtin/put) Если ответ вернулся с пустой структурой `meta`, значит у сборочного задания нет метаданных и добавить их нельзя. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов <strong>получения и удаления метаданных DBS</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 300 запросов | 200 миллисекунд | 20 запросов | </div>
2676
+
2677
+ :param order_id: ID сборочного задания (required)
2678
+ :type order_id: int
2679
+ :param _request_timeout: timeout setting for this request. If one
2680
+ number provided, it will be total request
2681
+ timeout. It can also be a pair (tuple) of
2682
+ (connection, read) timeouts.
2683
+ :type _request_timeout: int, tuple(int, int), optional
2684
+ :param _request_auth: set to override the auth_settings for an a single
2685
+ request; this effectively ignores the
2686
+ authentication in the spec for a single request.
2687
+ :type _request_auth: dict, optional
2688
+ :param _content_type: force content-type for the request.
2689
+ :type _content_type: str, Optional
2690
+ :param _headers: set to override the headers for a single
2691
+ request; this effectively ignores the headers
2692
+ in the spec for a single request.
2693
+ :type _headers: dict, optional
2694
+ :param _host_index: set to override the host_index for a single
2695
+ request; this effectively ignores the host_index
2696
+ in the spec for a single request.
2697
+ :type _host_index: int, optional
2698
+ :return: Returns the result object.
2699
+ """ # noqa: E501
2700
+
2701
+ _param = self._api_v3_dbs_orders_order_id_meta_get_serialize(
2702
+ order_id=order_id,
2703
+ _request_auth=_request_auth,
2704
+ _content_type=_content_type,
2705
+ _headers=_headers,
2706
+ _host_index=_host_index
2707
+ )
2708
+
2709
+ _response_types_map: Dict[str, Optional[str]] = {
2710
+ '200': "ApiV3DbsOrdersOrderIdMetaGet200Response",
2711
+ '401': "ApiV3DbsOrdersNewGet401Response",
2712
+ '403': "Error",
2713
+ '404': "Error",
2714
+ '429': "ApiV3DbsOrdersNewGet401Response",
2715
+ }
2716
+ response_data = self.api_client.call_api(
2717
+ *_param,
2718
+ _request_timeout=_request_timeout
2719
+ )
2720
+ response_data.read()
2721
+ return self.api_client.response_deserialize(
2722
+ response_data=response_data,
2723
+ response_types_map=_response_types_map,
2724
+ ).data
2725
+
2726
+
2727
+ @validate_call
2728
+ def api_v3_dbs_orders_order_id_meta_get_with_http_info(
2729
+ self,
2730
+ order_id: Annotated[StrictInt, Field(description="ID сборочного задания")],
2731
+ _request_timeout: Union[
2732
+ None,
2733
+ Annotated[StrictFloat, Field(gt=0)],
2734
+ Tuple[
2735
+ Annotated[StrictFloat, Field(gt=0)],
2736
+ Annotated[StrictFloat, Field(gt=0)]
2737
+ ]
2738
+ ] = None,
2739
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2740
+ _content_type: Optional[StrictStr] = None,
2741
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2742
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
2743
+ ) -> ApiResponse[ApiV3DbsOrdersOrderIdMetaGet200Response]:
2744
+ """Получить метаданные сборочного задания
2745
+
2746
+ Метод возвращает метаданные [сборочного задания](/openapi/orders-dbw#tag/Sborochnye-zadaniya-DBW/paths/~1api~1v3~1dbw~1orders/get). <br><br> Перечень метаданных, доступных для сборочного задания, можно получить в [списке новых сборочных заданий](/openapi/orders-dbs#tag/Sborochnye-zadaniya-DBS/paths/~1api~1v3~1dbs~1orders~1new/get), поле `requiredMeta`. <br><br> Возможные метаданные: - `imei` — [IMEI](/openapi/orders-dbs#tag/Metadannye-DBS/paths/~1api~1v3~1dbs~1orders~1%7BorderId%7D~1meta~1imei/put) - `uin` — [УИН](/openapi/orders-dbs#tag/Metadannye-DBS/paths/~1api~1v3~1dbs~1orders~1%7BorderId%7D~1meta~1uin/put) - `gtin` — [GTIN](/openapi/orders-dbs#tag/Metadannye-DBS/paths/~1api~1v3~1dbs~1orders~1%7BorderId%7D~1meta~1gtin/put) - `sgtin` — [код маркировки](/openapi/orders-dbs#tag/Metadannye-DBS/paths/~1api~1v3~1dbs~1orders~1%7BorderId%7D~1meta~1sgtin/put) Если ответ вернулся с пустой структурой `meta`, значит у сборочного задания нет метаданных и добавить их нельзя. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов <strong>получения и удаления метаданных DBS</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 300 запросов | 200 миллисекунд | 20 запросов | </div>
2747
+
2748
+ :param order_id: ID сборочного задания (required)
2749
+ :type order_id: int
2750
+ :param _request_timeout: timeout setting for this request. If one
2751
+ number provided, it will be total request
2752
+ timeout. It can also be a pair (tuple) of
2753
+ (connection, read) timeouts.
2754
+ :type _request_timeout: int, tuple(int, int), optional
2755
+ :param _request_auth: set to override the auth_settings for an a single
2756
+ request; this effectively ignores the
2757
+ authentication in the spec for a single request.
2758
+ :type _request_auth: dict, optional
2759
+ :param _content_type: force content-type for the request.
2760
+ :type _content_type: str, Optional
2761
+ :param _headers: set to override the headers for a single
2762
+ request; this effectively ignores the headers
2763
+ in the spec for a single request.
2764
+ :type _headers: dict, optional
2765
+ :param _host_index: set to override the host_index for a single
2766
+ request; this effectively ignores the host_index
2767
+ in the spec for a single request.
2768
+ :type _host_index: int, optional
2769
+ :return: Returns the result object.
2770
+ """ # noqa: E501
2771
+
2772
+ _param = self._api_v3_dbs_orders_order_id_meta_get_serialize(
2773
+ order_id=order_id,
2774
+ _request_auth=_request_auth,
2775
+ _content_type=_content_type,
2776
+ _headers=_headers,
2777
+ _host_index=_host_index
2778
+ )
2779
+
2780
+ _response_types_map: Dict[str, Optional[str]] = {
2781
+ '200': "ApiV3DbsOrdersOrderIdMetaGet200Response",
2782
+ '401': "ApiV3DbsOrdersNewGet401Response",
2783
+ '403': "Error",
2784
+ '404': "Error",
2785
+ '429': "ApiV3DbsOrdersNewGet401Response",
2786
+ }
2787
+ response_data = self.api_client.call_api(
2788
+ *_param,
2789
+ _request_timeout=_request_timeout
2790
+ )
2791
+ response_data.read()
2792
+ return self.api_client.response_deserialize(
2793
+ response_data=response_data,
2794
+ response_types_map=_response_types_map,
2795
+ )
2796
+
2797
+
2798
+ @validate_call
2799
+ def api_v3_dbs_orders_order_id_meta_get_without_preload_content(
2800
+ self,
2801
+ order_id: Annotated[StrictInt, Field(description="ID сборочного задания")],
2802
+ _request_timeout: Union[
2803
+ None,
2804
+ Annotated[StrictFloat, Field(gt=0)],
2805
+ Tuple[
2806
+ Annotated[StrictFloat, Field(gt=0)],
2807
+ Annotated[StrictFloat, Field(gt=0)]
2808
+ ]
2809
+ ] = None,
2810
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2811
+ _content_type: Optional[StrictStr] = None,
2812
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2813
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
2814
+ ) -> RESTResponseType:
2815
+ """Получить метаданные сборочного задания
2816
+
2817
+ Метод возвращает метаданные [сборочного задания](/openapi/orders-dbw#tag/Sborochnye-zadaniya-DBW/paths/~1api~1v3~1dbw~1orders/get). <br><br> Перечень метаданных, доступных для сборочного задания, можно получить в [списке новых сборочных заданий](/openapi/orders-dbs#tag/Sborochnye-zadaniya-DBS/paths/~1api~1v3~1dbs~1orders~1new/get), поле `requiredMeta`. <br><br> Возможные метаданные: - `imei` — [IMEI](/openapi/orders-dbs#tag/Metadannye-DBS/paths/~1api~1v3~1dbs~1orders~1%7BorderId%7D~1meta~1imei/put) - `uin` — [УИН](/openapi/orders-dbs#tag/Metadannye-DBS/paths/~1api~1v3~1dbs~1orders~1%7BorderId%7D~1meta~1uin/put) - `gtin` — [GTIN](/openapi/orders-dbs#tag/Metadannye-DBS/paths/~1api~1v3~1dbs~1orders~1%7BorderId%7D~1meta~1gtin/put) - `sgtin` — [код маркировки](/openapi/orders-dbs#tag/Metadannye-DBS/paths/~1api~1v3~1dbs~1orders~1%7BorderId%7D~1meta~1sgtin/put) Если ответ вернулся с пустой структурой `meta`, значит у сборочного задания нет метаданных и добавить их нельзя. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов <strong>получения и удаления метаданных DBS</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 300 запросов | 200 миллисекунд | 20 запросов | </div>
2818
+
2819
+ :param order_id: ID сборочного задания (required)
2820
+ :type order_id: int
2821
+ :param _request_timeout: timeout setting for this request. If one
2822
+ number provided, it will be total request
2823
+ timeout. It can also be a pair (tuple) of
2824
+ (connection, read) timeouts.
2825
+ :type _request_timeout: int, tuple(int, int), optional
2826
+ :param _request_auth: set to override the auth_settings for an a single
2827
+ request; this effectively ignores the
2828
+ authentication in the spec for a single request.
2829
+ :type _request_auth: dict, optional
2830
+ :param _content_type: force content-type for the request.
2831
+ :type _content_type: str, Optional
2832
+ :param _headers: set to override the headers for a single
2833
+ request; this effectively ignores the headers
2834
+ in the spec for a single request.
2835
+ :type _headers: dict, optional
2836
+ :param _host_index: set to override the host_index for a single
2837
+ request; this effectively ignores the host_index
2838
+ in the spec for a single request.
2839
+ :type _host_index: int, optional
2840
+ :return: Returns the result object.
2841
+ """ # noqa: E501
2842
+
2843
+ _param = self._api_v3_dbs_orders_order_id_meta_get_serialize(
2844
+ order_id=order_id,
2845
+ _request_auth=_request_auth,
2846
+ _content_type=_content_type,
2847
+ _headers=_headers,
2848
+ _host_index=_host_index
2849
+ )
2850
+
2851
+ _response_types_map: Dict[str, Optional[str]] = {
2852
+ '200': "ApiV3DbsOrdersOrderIdMetaGet200Response",
2853
+ '401': "ApiV3DbsOrdersNewGet401Response",
2854
+ '403': "Error",
2855
+ '404': "Error",
2856
+ '429': "ApiV3DbsOrdersNewGet401Response",
2857
+ }
2858
+ response_data = self.api_client.call_api(
2859
+ *_param,
2860
+ _request_timeout=_request_timeout
2861
+ )
2862
+ return response_data.response
2863
+
2864
+
2865
+ def _api_v3_dbs_orders_order_id_meta_get_serialize(
2866
+ self,
2867
+ order_id,
2868
+ _request_auth,
2869
+ _content_type,
2870
+ _headers,
2871
+ _host_index,
2872
+ ) -> RequestSerialized:
2873
+
2874
+ _hosts = [
2875
+ 'https://marketplace-api.wildberries.ru'
2876
+ ]
2877
+ _host = _hosts[_host_index]
2878
+
2879
+ _collection_formats: Dict[str, str] = {
2880
+ }
2881
+
2882
+ _path_params: Dict[str, str] = {}
2883
+ _query_params: List[Tuple[str, str]] = []
2884
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2885
+ _form_params: List[Tuple[str, str]] = []
2886
+ _files: Dict[
2887
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2888
+ ] = {}
2889
+ _body_params: Optional[bytes] = None
2890
+
2891
+ # process the path parameters
2892
+ if order_id is not None:
2893
+ _path_params['orderId'] = order_id
2894
+ # process the query parameters
2895
+ # process the header parameters
2896
+ # process the form parameters
2897
+ # process the body parameter
2898
+
2899
+
2900
+ # set the HTTP header `Accept`
2901
+ if 'Accept' not in _header_params:
2902
+ _header_params['Accept'] = self.api_client.select_header_accept(
2903
+ [
2904
+ 'application/json'
2905
+ ]
2906
+ )
2907
+
2908
+
2909
+ # authentication setting
2910
+ _auth_settings: List[str] = [
2911
+ 'HeaderApiKey'
2912
+ ]
2913
+
2914
+ return self.api_client.param_serialize(
2915
+ method='GET',
2916
+ resource_path='/api/v3/dbs/orders/{orderId}/meta',
2917
+ path_params=_path_params,
2918
+ query_params=_query_params,
2919
+ header_params=_header_params,
2920
+ body=_body_params,
2921
+ post_params=_form_params,
2922
+ files=_files,
2923
+ auth_settings=_auth_settings,
2924
+ collection_formats=_collection_formats,
2925
+ _host=_host,
2926
+ _request_auth=_request_auth
2927
+ )
2928
+
2929
+
2930
+
2931
+
2932
+ @validate_call
2933
+ def api_v3_dbs_orders_order_id_meta_gtin_put(
2934
+ self,
2935
+ order_id: Annotated[StrictInt, Field(description="ID сборочного задания")],
2936
+ api_v3_dbs_orders_order_id_meta_gtin_put_request: Optional[ApiV3DbsOrdersOrderIdMetaGtinPutRequest] = None,
2937
+ _request_timeout: Union[
2938
+ None,
2939
+ Annotated[StrictFloat, Field(gt=0)],
2940
+ Tuple[
2941
+ Annotated[StrictFloat, Field(gt=0)],
2942
+ Annotated[StrictFloat, Field(gt=0)]
2943
+ ]
2944
+ ] = None,
2945
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2946
+ _content_type: Optional[StrictStr] = None,
2947
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2948
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
2949
+ ) -> None:
2950
+ """Закрепить за сборочным заданием GTIN
2951
+
2952
+ Метод обновляет GTIN в [метаданных сборочного задания](/openapi/orders-dbs#tag/Metadannye-DBS/paths/~1api~1v3~1dbs~1orders~1%7BorderId%7D~1meta/get) — уникальный ID товара в Беларуси. <br><br> У одного сборочного задания может быть только один GTIN. Добавлять маркировку можно только для сборочных заданий, которые находятся в [статусе](/openapi/orders-dbs#tag/Sborochnye-zadaniya-DBS/paths/~1api~1v3~1dbs~1orders~1status/post) `confirm`. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов <strong>закрепления метаданных DBS</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 1000 запросов | 60 миллисекунд | 20 запросов | Один запрос с кодом ответа <code>409</code> учитывается как 10 запросов </div>
2953
+
2954
+ :param order_id: ID сборочного задания (required)
2955
+ :type order_id: int
2956
+ :param api_v3_dbs_orders_order_id_meta_gtin_put_request:
2957
+ :type api_v3_dbs_orders_order_id_meta_gtin_put_request: ApiV3DbsOrdersOrderIdMetaGtinPutRequest
2958
+ :param _request_timeout: timeout setting for this request. If one
2959
+ number provided, it will be total request
2960
+ timeout. It can also be a pair (tuple) of
2961
+ (connection, read) timeouts.
2962
+ :type _request_timeout: int, tuple(int, int), optional
2963
+ :param _request_auth: set to override the auth_settings for an a single
2964
+ request; this effectively ignores the
2965
+ authentication in the spec for a single request.
2966
+ :type _request_auth: dict, optional
2967
+ :param _content_type: force content-type for the request.
2968
+ :type _content_type: str, Optional
2969
+ :param _headers: set to override the headers for a single
2970
+ request; this effectively ignores the headers
2971
+ in the spec for a single request.
2972
+ :type _headers: dict, optional
2973
+ :param _host_index: set to override the host_index for a single
2974
+ request; this effectively ignores the host_index
2975
+ in the spec for a single request.
2976
+ :type _host_index: int, optional
2977
+ :return: Returns the result object.
2978
+ """ # noqa: E501
2979
+
2980
+ _param = self._api_v3_dbs_orders_order_id_meta_gtin_put_serialize(
2981
+ order_id=order_id,
2982
+ api_v3_dbs_orders_order_id_meta_gtin_put_request=api_v3_dbs_orders_order_id_meta_gtin_put_request,
2983
+ _request_auth=_request_auth,
2984
+ _content_type=_content_type,
2985
+ _headers=_headers,
2986
+ _host_index=_host_index
2987
+ )
2988
+
2989
+ _response_types_map: Dict[str, Optional[str]] = {
2990
+ '204': None,
2991
+ '400': "Error",
2992
+ '401': "ApiV3DbsOrdersNewGet401Response",
2993
+ '403': "Error",
2994
+ '404': "Error",
2995
+ '409': "Error",
2996
+ '429': "ApiV3DbsOrdersNewGet401Response",
2997
+ }
2998
+ response_data = self.api_client.call_api(
2999
+ *_param,
3000
+ _request_timeout=_request_timeout
3001
+ )
3002
+ response_data.read()
3003
+ return self.api_client.response_deserialize(
3004
+ response_data=response_data,
3005
+ response_types_map=_response_types_map,
3006
+ ).data
3007
+
3008
+
3009
+ @validate_call
3010
+ def api_v3_dbs_orders_order_id_meta_gtin_put_with_http_info(
3011
+ self,
3012
+ order_id: Annotated[StrictInt, Field(description="ID сборочного задания")],
3013
+ api_v3_dbs_orders_order_id_meta_gtin_put_request: Optional[ApiV3DbsOrdersOrderIdMetaGtinPutRequest] = None,
3014
+ _request_timeout: Union[
3015
+ None,
3016
+ Annotated[StrictFloat, Field(gt=0)],
3017
+ Tuple[
3018
+ Annotated[StrictFloat, Field(gt=0)],
3019
+ Annotated[StrictFloat, Field(gt=0)]
3020
+ ]
3021
+ ] = None,
3022
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3023
+ _content_type: Optional[StrictStr] = None,
3024
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3025
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
3026
+ ) -> ApiResponse[None]:
3027
+ """Закрепить за сборочным заданием GTIN
3028
+
3029
+ Метод обновляет GTIN в [метаданных сборочного задания](/openapi/orders-dbs#tag/Metadannye-DBS/paths/~1api~1v3~1dbs~1orders~1%7BorderId%7D~1meta/get) — уникальный ID товара в Беларуси. <br><br> У одного сборочного задания может быть только один GTIN. Добавлять маркировку можно только для сборочных заданий, которые находятся в [статусе](/openapi/orders-dbs#tag/Sborochnye-zadaniya-DBS/paths/~1api~1v3~1dbs~1orders~1status/post) `confirm`. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов <strong>закрепления метаданных DBS</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 1000 запросов | 60 миллисекунд | 20 запросов | Один запрос с кодом ответа <code>409</code> учитывается как 10 запросов </div>
3030
+
3031
+ :param order_id: ID сборочного задания (required)
3032
+ :type order_id: int
3033
+ :param api_v3_dbs_orders_order_id_meta_gtin_put_request:
3034
+ :type api_v3_dbs_orders_order_id_meta_gtin_put_request: ApiV3DbsOrdersOrderIdMetaGtinPutRequest
3035
+ :param _request_timeout: timeout setting for this request. If one
3036
+ number provided, it will be total request
3037
+ timeout. It can also be a pair (tuple) of
3038
+ (connection, read) timeouts.
3039
+ :type _request_timeout: int, tuple(int, int), optional
3040
+ :param _request_auth: set to override the auth_settings for an a single
3041
+ request; this effectively ignores the
3042
+ authentication in the spec for a single request.
3043
+ :type _request_auth: dict, optional
3044
+ :param _content_type: force content-type for the request.
3045
+ :type _content_type: str, Optional
3046
+ :param _headers: set to override the headers for a single
3047
+ request; this effectively ignores the headers
3048
+ in the spec for a single request.
3049
+ :type _headers: dict, optional
3050
+ :param _host_index: set to override the host_index for a single
3051
+ request; this effectively ignores the host_index
3052
+ in the spec for a single request.
3053
+ :type _host_index: int, optional
3054
+ :return: Returns the result object.
3055
+ """ # noqa: E501
3056
+
3057
+ _param = self._api_v3_dbs_orders_order_id_meta_gtin_put_serialize(
3058
+ order_id=order_id,
3059
+ api_v3_dbs_orders_order_id_meta_gtin_put_request=api_v3_dbs_orders_order_id_meta_gtin_put_request,
3060
+ _request_auth=_request_auth,
3061
+ _content_type=_content_type,
3062
+ _headers=_headers,
3063
+ _host_index=_host_index
3064
+ )
3065
+
3066
+ _response_types_map: Dict[str, Optional[str]] = {
3067
+ '204': None,
3068
+ '400': "Error",
3069
+ '401': "ApiV3DbsOrdersNewGet401Response",
3070
+ '403': "Error",
3071
+ '404': "Error",
3072
+ '409': "Error",
3073
+ '429': "ApiV3DbsOrdersNewGet401Response",
3074
+ }
3075
+ response_data = self.api_client.call_api(
3076
+ *_param,
3077
+ _request_timeout=_request_timeout
3078
+ )
3079
+ response_data.read()
3080
+ return self.api_client.response_deserialize(
3081
+ response_data=response_data,
3082
+ response_types_map=_response_types_map,
3083
+ )
3084
+
3085
+
3086
+ @validate_call
3087
+ def api_v3_dbs_orders_order_id_meta_gtin_put_without_preload_content(
3088
+ self,
3089
+ order_id: Annotated[StrictInt, Field(description="ID сборочного задания")],
3090
+ api_v3_dbs_orders_order_id_meta_gtin_put_request: Optional[ApiV3DbsOrdersOrderIdMetaGtinPutRequest] = None,
3091
+ _request_timeout: Union[
3092
+ None,
3093
+ Annotated[StrictFloat, Field(gt=0)],
3094
+ Tuple[
3095
+ Annotated[StrictFloat, Field(gt=0)],
3096
+ Annotated[StrictFloat, Field(gt=0)]
3097
+ ]
3098
+ ] = None,
3099
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3100
+ _content_type: Optional[StrictStr] = None,
3101
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3102
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
3103
+ ) -> RESTResponseType:
3104
+ """Закрепить за сборочным заданием GTIN
3105
+
3106
+ Метод обновляет GTIN в [метаданных сборочного задания](/openapi/orders-dbs#tag/Metadannye-DBS/paths/~1api~1v3~1dbs~1orders~1%7BorderId%7D~1meta/get) — уникальный ID товара в Беларуси. <br><br> У одного сборочного задания может быть только один GTIN. Добавлять маркировку можно только для сборочных заданий, которые находятся в [статусе](/openapi/orders-dbs#tag/Sborochnye-zadaniya-DBS/paths/~1api~1v3~1dbs~1orders~1status/post) `confirm`. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов <strong>закрепления метаданных DBS</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 1000 запросов | 60 миллисекунд | 20 запросов | Один запрос с кодом ответа <code>409</code> учитывается как 10 запросов </div>
3107
+
3108
+ :param order_id: ID сборочного задания (required)
3109
+ :type order_id: int
3110
+ :param api_v3_dbs_orders_order_id_meta_gtin_put_request:
3111
+ :type api_v3_dbs_orders_order_id_meta_gtin_put_request: ApiV3DbsOrdersOrderIdMetaGtinPutRequest
3112
+ :param _request_timeout: timeout setting for this request. If one
3113
+ number provided, it will be total request
3114
+ timeout. It can also be a pair (tuple) of
3115
+ (connection, read) timeouts.
3116
+ :type _request_timeout: int, tuple(int, int), optional
3117
+ :param _request_auth: set to override the auth_settings for an a single
3118
+ request; this effectively ignores the
3119
+ authentication in the spec for a single request.
3120
+ :type _request_auth: dict, optional
3121
+ :param _content_type: force content-type for the request.
3122
+ :type _content_type: str, Optional
3123
+ :param _headers: set to override the headers for a single
3124
+ request; this effectively ignores the headers
3125
+ in the spec for a single request.
3126
+ :type _headers: dict, optional
3127
+ :param _host_index: set to override the host_index for a single
3128
+ request; this effectively ignores the host_index
3129
+ in the spec for a single request.
3130
+ :type _host_index: int, optional
3131
+ :return: Returns the result object.
3132
+ """ # noqa: E501
3133
+
3134
+ _param = self._api_v3_dbs_orders_order_id_meta_gtin_put_serialize(
3135
+ order_id=order_id,
3136
+ api_v3_dbs_orders_order_id_meta_gtin_put_request=api_v3_dbs_orders_order_id_meta_gtin_put_request,
3137
+ _request_auth=_request_auth,
3138
+ _content_type=_content_type,
3139
+ _headers=_headers,
3140
+ _host_index=_host_index
3141
+ )
3142
+
3143
+ _response_types_map: Dict[str, Optional[str]] = {
3144
+ '204': None,
3145
+ '400': "Error",
3146
+ '401': "ApiV3DbsOrdersNewGet401Response",
3147
+ '403': "Error",
3148
+ '404': "Error",
3149
+ '409': "Error",
3150
+ '429': "ApiV3DbsOrdersNewGet401Response",
3151
+ }
3152
+ response_data = self.api_client.call_api(
3153
+ *_param,
3154
+ _request_timeout=_request_timeout
3155
+ )
3156
+ return response_data.response
3157
+
3158
+
3159
+ def _api_v3_dbs_orders_order_id_meta_gtin_put_serialize(
3160
+ self,
3161
+ order_id,
3162
+ api_v3_dbs_orders_order_id_meta_gtin_put_request,
3163
+ _request_auth,
3164
+ _content_type,
3165
+ _headers,
3166
+ _host_index,
3167
+ ) -> RequestSerialized:
3168
+
3169
+ _hosts = [
3170
+ 'https://marketplace-api.wildberries.ru'
3171
+ ]
3172
+ _host = _hosts[_host_index]
3173
+
3174
+ _collection_formats: Dict[str, str] = {
3175
+ }
3176
+
3177
+ _path_params: Dict[str, str] = {}
3178
+ _query_params: List[Tuple[str, str]] = []
3179
+ _header_params: Dict[str, Optional[str]] = _headers or {}
3180
+ _form_params: List[Tuple[str, str]] = []
3181
+ _files: Dict[
3182
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3183
+ ] = {}
3184
+ _body_params: Optional[bytes] = None
3185
+
3186
+ # process the path parameters
3187
+ if order_id is not None:
3188
+ _path_params['orderId'] = order_id
3189
+ # process the query parameters
3190
+ # process the header parameters
3191
+ # process the form parameters
3192
+ # process the body parameter
3193
+ if api_v3_dbs_orders_order_id_meta_gtin_put_request is not None:
3194
+ _body_params = api_v3_dbs_orders_order_id_meta_gtin_put_request
3195
+
3196
+
3197
+ # set the HTTP header `Accept`
3198
+ if 'Accept' not in _header_params:
3199
+ _header_params['Accept'] = self.api_client.select_header_accept(
3200
+ [
3201
+ 'application/json'
3202
+ ]
3203
+ )
3204
+
3205
+ # set the HTTP header `Content-Type`
3206
+ if _content_type:
3207
+ _header_params['Content-Type'] = _content_type
3208
+ else:
3209
+ _default_content_type = (
3210
+ self.api_client.select_header_content_type(
3211
+ [
3212
+ 'application/json'
3213
+ ]
3214
+ )
3215
+ )
3216
+ if _default_content_type is not None:
3217
+ _header_params['Content-Type'] = _default_content_type
3218
+
3219
+ # authentication setting
3220
+ _auth_settings: List[str] = [
3221
+ 'HeaderApiKey'
3222
+ ]
3223
+
3224
+ return self.api_client.param_serialize(
3225
+ method='PUT',
3226
+ resource_path='/api/v3/dbs/orders/{orderId}/meta/gtin',
3227
+ path_params=_path_params,
3228
+ query_params=_query_params,
3229
+ header_params=_header_params,
3230
+ body=_body_params,
3231
+ post_params=_form_params,
3232
+ files=_files,
3233
+ auth_settings=_auth_settings,
3234
+ collection_formats=_collection_formats,
3235
+ _host=_host,
3236
+ _request_auth=_request_auth
3237
+ )
3238
+
3239
+
3240
+
3241
+
3242
+ @validate_call
3243
+ def api_v3_dbs_orders_order_id_meta_imei_put(
3244
+ self,
3245
+ order_id: Annotated[StrictInt, Field(description="ID сборочного задания")],
3246
+ api_v3_dbs_orders_order_id_meta_imei_put_request: Optional[ApiV3DbsOrdersOrderIdMetaImeiPutRequest] = None,
3247
+ _request_timeout: Union[
3248
+ None,
3249
+ Annotated[StrictFloat, Field(gt=0)],
3250
+ Tuple[
3251
+ Annotated[StrictFloat, Field(gt=0)],
3252
+ Annotated[StrictFloat, Field(gt=0)]
3253
+ ]
3254
+ ] = None,
3255
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3256
+ _content_type: Optional[StrictStr] = None,
3257
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3258
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
3259
+ ) -> None:
3260
+ """Закрепить за сборочным заданием IMEI
3261
+
3262
+ Метод обновляет IMEI в [метаданных сборочного задания](/openapi/orders-dbs#tag/Metadannye-DBS/paths/~1api~1v3~1dbs~1orders~1%7BorderId%7D~1meta/get). <br><br> У одного сборочного задания может быть только один IMEI. Добавлять маркировку можно только для сборочных заданий, которые находятся в [статусе](/openapi/orders-dbs#tag/Sborochnye-zadaniya-DBS/paths/~1api~1v3~1dbs~1orders~1status/post) `confirm`. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов <strong>закрепления метаданных DBS</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 1000 запросов | 60 миллисекунд | 20 запросов | Один запрос с кодом ответа <code>409</code> учитывается как 10 запросов </div>
3263
+
3264
+ :param order_id: ID сборочного задания (required)
3265
+ :type order_id: int
3266
+ :param api_v3_dbs_orders_order_id_meta_imei_put_request:
3267
+ :type api_v3_dbs_orders_order_id_meta_imei_put_request: ApiV3DbsOrdersOrderIdMetaImeiPutRequest
3268
+ :param _request_timeout: timeout setting for this request. If one
3269
+ number provided, it will be total request
3270
+ timeout. It can also be a pair (tuple) of
3271
+ (connection, read) timeouts.
3272
+ :type _request_timeout: int, tuple(int, int), optional
3273
+ :param _request_auth: set to override the auth_settings for an a single
3274
+ request; this effectively ignores the
3275
+ authentication in the spec for a single request.
3276
+ :type _request_auth: dict, optional
3277
+ :param _content_type: force content-type for the request.
3278
+ :type _content_type: str, Optional
3279
+ :param _headers: set to override the headers for a single
3280
+ request; this effectively ignores the headers
3281
+ in the spec for a single request.
3282
+ :type _headers: dict, optional
3283
+ :param _host_index: set to override the host_index for a single
3284
+ request; this effectively ignores the host_index
3285
+ in the spec for a single request.
3286
+ :type _host_index: int, optional
3287
+ :return: Returns the result object.
3288
+ """ # noqa: E501
3289
+
3290
+ _param = self._api_v3_dbs_orders_order_id_meta_imei_put_serialize(
3291
+ order_id=order_id,
3292
+ api_v3_dbs_orders_order_id_meta_imei_put_request=api_v3_dbs_orders_order_id_meta_imei_put_request,
3293
+ _request_auth=_request_auth,
3294
+ _content_type=_content_type,
3295
+ _headers=_headers,
3296
+ _host_index=_host_index
3297
+ )
3298
+
3299
+ _response_types_map: Dict[str, Optional[str]] = {
3300
+ '204': None,
3301
+ '400': "Error",
3302
+ '401': "ApiV3DbsOrdersNewGet401Response",
3303
+ '403': "Error",
3304
+ '404': "Error",
3305
+ '409': "Error",
3306
+ '429': "ApiV3DbsOrdersNewGet401Response",
3307
+ }
3308
+ response_data = self.api_client.call_api(
3309
+ *_param,
3310
+ _request_timeout=_request_timeout
3311
+ )
3312
+ response_data.read()
3313
+ return self.api_client.response_deserialize(
3314
+ response_data=response_data,
3315
+ response_types_map=_response_types_map,
3316
+ ).data
3317
+
3318
+
3319
+ @validate_call
3320
+ def api_v3_dbs_orders_order_id_meta_imei_put_with_http_info(
3321
+ self,
3322
+ order_id: Annotated[StrictInt, Field(description="ID сборочного задания")],
3323
+ api_v3_dbs_orders_order_id_meta_imei_put_request: Optional[ApiV3DbsOrdersOrderIdMetaImeiPutRequest] = None,
3324
+ _request_timeout: Union[
3325
+ None,
3326
+ Annotated[StrictFloat, Field(gt=0)],
3327
+ Tuple[
3328
+ Annotated[StrictFloat, Field(gt=0)],
3329
+ Annotated[StrictFloat, Field(gt=0)]
3330
+ ]
3331
+ ] = None,
3332
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3333
+ _content_type: Optional[StrictStr] = None,
3334
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3335
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
3336
+ ) -> ApiResponse[None]:
3337
+ """Закрепить за сборочным заданием IMEI
3338
+
3339
+ Метод обновляет IMEI в [метаданных сборочного задания](/openapi/orders-dbs#tag/Metadannye-DBS/paths/~1api~1v3~1dbs~1orders~1%7BorderId%7D~1meta/get). <br><br> У одного сборочного задания может быть только один IMEI. Добавлять маркировку можно только для сборочных заданий, которые находятся в [статусе](/openapi/orders-dbs#tag/Sborochnye-zadaniya-DBS/paths/~1api~1v3~1dbs~1orders~1status/post) `confirm`. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов <strong>закрепления метаданных DBS</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 1000 запросов | 60 миллисекунд | 20 запросов | Один запрос с кодом ответа <code>409</code> учитывается как 10 запросов </div>
3340
+
3341
+ :param order_id: ID сборочного задания (required)
3342
+ :type order_id: int
3343
+ :param api_v3_dbs_orders_order_id_meta_imei_put_request:
3344
+ :type api_v3_dbs_orders_order_id_meta_imei_put_request: ApiV3DbsOrdersOrderIdMetaImeiPutRequest
3345
+ :param _request_timeout: timeout setting for this request. If one
3346
+ number provided, it will be total request
3347
+ timeout. It can also be a pair (tuple) of
3348
+ (connection, read) timeouts.
3349
+ :type _request_timeout: int, tuple(int, int), optional
3350
+ :param _request_auth: set to override the auth_settings for an a single
3351
+ request; this effectively ignores the
3352
+ authentication in the spec for a single request.
3353
+ :type _request_auth: dict, optional
3354
+ :param _content_type: force content-type for the request.
3355
+ :type _content_type: str, Optional
3356
+ :param _headers: set to override the headers for a single
3357
+ request; this effectively ignores the headers
3358
+ in the spec for a single request.
3359
+ :type _headers: dict, optional
3360
+ :param _host_index: set to override the host_index for a single
3361
+ request; this effectively ignores the host_index
3362
+ in the spec for a single request.
3363
+ :type _host_index: int, optional
3364
+ :return: Returns the result object.
3365
+ """ # noqa: E501
3366
+
3367
+ _param = self._api_v3_dbs_orders_order_id_meta_imei_put_serialize(
3368
+ order_id=order_id,
3369
+ api_v3_dbs_orders_order_id_meta_imei_put_request=api_v3_dbs_orders_order_id_meta_imei_put_request,
3370
+ _request_auth=_request_auth,
3371
+ _content_type=_content_type,
3372
+ _headers=_headers,
3373
+ _host_index=_host_index
3374
+ )
3375
+
3376
+ _response_types_map: Dict[str, Optional[str]] = {
3377
+ '204': None,
3378
+ '400': "Error",
3379
+ '401': "ApiV3DbsOrdersNewGet401Response",
3380
+ '403': "Error",
3381
+ '404': "Error",
3382
+ '409': "Error",
3383
+ '429': "ApiV3DbsOrdersNewGet401Response",
3384
+ }
3385
+ response_data = self.api_client.call_api(
3386
+ *_param,
3387
+ _request_timeout=_request_timeout
3388
+ )
3389
+ response_data.read()
3390
+ return self.api_client.response_deserialize(
3391
+ response_data=response_data,
3392
+ response_types_map=_response_types_map,
3393
+ )
3394
+
3395
+
3396
+ @validate_call
3397
+ def api_v3_dbs_orders_order_id_meta_imei_put_without_preload_content(
3398
+ self,
3399
+ order_id: Annotated[StrictInt, Field(description="ID сборочного задания")],
3400
+ api_v3_dbs_orders_order_id_meta_imei_put_request: Optional[ApiV3DbsOrdersOrderIdMetaImeiPutRequest] = None,
3401
+ _request_timeout: Union[
3402
+ None,
3403
+ Annotated[StrictFloat, Field(gt=0)],
3404
+ Tuple[
3405
+ Annotated[StrictFloat, Field(gt=0)],
3406
+ Annotated[StrictFloat, Field(gt=0)]
3407
+ ]
3408
+ ] = None,
3409
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3410
+ _content_type: Optional[StrictStr] = None,
3411
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3412
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
3413
+ ) -> RESTResponseType:
3414
+ """Закрепить за сборочным заданием IMEI
3415
+
3416
+ Метод обновляет IMEI в [метаданных сборочного задания](/openapi/orders-dbs#tag/Metadannye-DBS/paths/~1api~1v3~1dbs~1orders~1%7BorderId%7D~1meta/get). <br><br> У одного сборочного задания может быть только один IMEI. Добавлять маркировку можно только для сборочных заданий, которые находятся в [статусе](/openapi/orders-dbs#tag/Sborochnye-zadaniya-DBS/paths/~1api~1v3~1dbs~1orders~1status/post) `confirm`. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов <strong>закрепления метаданных DBS</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 1000 запросов | 60 миллисекунд | 20 запросов | Один запрос с кодом ответа <code>409</code> учитывается как 10 запросов </div>
3417
+
3418
+ :param order_id: ID сборочного задания (required)
3419
+ :type order_id: int
3420
+ :param api_v3_dbs_orders_order_id_meta_imei_put_request:
3421
+ :type api_v3_dbs_orders_order_id_meta_imei_put_request: ApiV3DbsOrdersOrderIdMetaImeiPutRequest
3422
+ :param _request_timeout: timeout setting for this request. If one
3423
+ number provided, it will be total request
3424
+ timeout. It can also be a pair (tuple) of
3425
+ (connection, read) timeouts.
3426
+ :type _request_timeout: int, tuple(int, int), optional
3427
+ :param _request_auth: set to override the auth_settings for an a single
3428
+ request; this effectively ignores the
3429
+ authentication in the spec for a single request.
3430
+ :type _request_auth: dict, optional
3431
+ :param _content_type: force content-type for the request.
3432
+ :type _content_type: str, Optional
3433
+ :param _headers: set to override the headers for a single
3434
+ request; this effectively ignores the headers
3435
+ in the spec for a single request.
3436
+ :type _headers: dict, optional
3437
+ :param _host_index: set to override the host_index for a single
3438
+ request; this effectively ignores the host_index
3439
+ in the spec for a single request.
3440
+ :type _host_index: int, optional
3441
+ :return: Returns the result object.
3442
+ """ # noqa: E501
3443
+
3444
+ _param = self._api_v3_dbs_orders_order_id_meta_imei_put_serialize(
3445
+ order_id=order_id,
3446
+ api_v3_dbs_orders_order_id_meta_imei_put_request=api_v3_dbs_orders_order_id_meta_imei_put_request,
3447
+ _request_auth=_request_auth,
3448
+ _content_type=_content_type,
3449
+ _headers=_headers,
3450
+ _host_index=_host_index
3451
+ )
3452
+
3453
+ _response_types_map: Dict[str, Optional[str]] = {
3454
+ '204': None,
3455
+ '400': "Error",
3456
+ '401': "ApiV3DbsOrdersNewGet401Response",
3457
+ '403': "Error",
3458
+ '404': "Error",
3459
+ '409': "Error",
3460
+ '429': "ApiV3DbsOrdersNewGet401Response",
3461
+ }
3462
+ response_data = self.api_client.call_api(
3463
+ *_param,
3464
+ _request_timeout=_request_timeout
3465
+ )
3466
+ return response_data.response
3467
+
3468
+
3469
+ def _api_v3_dbs_orders_order_id_meta_imei_put_serialize(
3470
+ self,
3471
+ order_id,
3472
+ api_v3_dbs_orders_order_id_meta_imei_put_request,
3473
+ _request_auth,
3474
+ _content_type,
3475
+ _headers,
3476
+ _host_index,
3477
+ ) -> RequestSerialized:
3478
+
3479
+ _hosts = [
3480
+ 'https://marketplace-api.wildberries.ru'
3481
+ ]
3482
+ _host = _hosts[_host_index]
3483
+
3484
+ _collection_formats: Dict[str, str] = {
3485
+ }
3486
+
3487
+ _path_params: Dict[str, str] = {}
3488
+ _query_params: List[Tuple[str, str]] = []
3489
+ _header_params: Dict[str, Optional[str]] = _headers or {}
3490
+ _form_params: List[Tuple[str, str]] = []
3491
+ _files: Dict[
3492
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3493
+ ] = {}
3494
+ _body_params: Optional[bytes] = None
3495
+
3496
+ # process the path parameters
3497
+ if order_id is not None:
3498
+ _path_params['orderId'] = order_id
3499
+ # process the query parameters
3500
+ # process the header parameters
3501
+ # process the form parameters
3502
+ # process the body parameter
3503
+ if api_v3_dbs_orders_order_id_meta_imei_put_request is not None:
3504
+ _body_params = api_v3_dbs_orders_order_id_meta_imei_put_request
3505
+
3506
+
3507
+ # set the HTTP header `Accept`
3508
+ if 'Accept' not in _header_params:
3509
+ _header_params['Accept'] = self.api_client.select_header_accept(
3510
+ [
3511
+ 'application/json'
3512
+ ]
3513
+ )
3514
+
3515
+ # set the HTTP header `Content-Type`
3516
+ if _content_type:
3517
+ _header_params['Content-Type'] = _content_type
3518
+ else:
3519
+ _default_content_type = (
3520
+ self.api_client.select_header_content_type(
3521
+ [
3522
+ 'application/json'
3523
+ ]
3524
+ )
3525
+ )
3526
+ if _default_content_type is not None:
3527
+ _header_params['Content-Type'] = _default_content_type
3528
+
3529
+ # authentication setting
3530
+ _auth_settings: List[str] = [
3531
+ 'HeaderApiKey'
3532
+ ]
3533
+
3534
+ return self.api_client.param_serialize(
3535
+ method='PUT',
3536
+ resource_path='/api/v3/dbs/orders/{orderId}/meta/imei',
3537
+ path_params=_path_params,
3538
+ query_params=_query_params,
3539
+ header_params=_header_params,
3540
+ body=_body_params,
3541
+ post_params=_form_params,
3542
+ files=_files,
3543
+ auth_settings=_auth_settings,
3544
+ collection_formats=_collection_formats,
3545
+ _host=_host,
3546
+ _request_auth=_request_auth
3547
+ )
3548
+
3549
+
3550
+
3551
+
3552
+ @validate_call
3553
+ def api_v3_dbs_orders_order_id_meta_sgtin_put(
3554
+ self,
3555
+ order_id: Annotated[StrictInt, Field(description="ID сборочного задания")],
3556
+ api_v3_dbs_orders_order_id_meta_sgtin_put_request: Optional[ApiV3DbsOrdersOrderIdMetaSgtinPutRequest] = None,
3557
+ _request_timeout: Union[
3558
+ None,
3559
+ Annotated[StrictFloat, Field(gt=0)],
3560
+ Tuple[
3561
+ Annotated[StrictFloat, Field(gt=0)],
3562
+ Annotated[StrictFloat, Field(gt=0)]
3563
+ ]
3564
+ ] = None,
3565
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3566
+ _content_type: Optional[StrictStr] = None,
3567
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3568
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
3569
+ ) -> None:
3570
+ """Закрепить за сборочным заданием код маркировки товара
3571
+
3572
+ Метод позволяет закрепить за сборочным заданием код маркировки [Честный знак](https://честныйзнак.рф). <br><br> Закрепить код маркировки можно только если в [метаданных сборочного задания](/openapi/orders-dbs#tag/Metadannye-DBS/paths/~1api~1v3~1dbs~1orders~1%7BorderId%7D~1meta/get) есть поле `sgtin`, а сборочное задание находится в [статусе](/openapi/orders-dbs#tag/Sborochnye-zadaniya-DBS/paths/~1api~1v3~1dbs~1orders~1status/post) `confirm`. <br><br> Получить загруженные маркировки можно в [метаданных сборочного задания](/openapi/orders-dbs#tag/Metadannye-DBS/paths/~1api~1v3~1dbs~1orders~1%7BorderId%7D~1meta/get). <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов <strong>закрепления метаданных DBS</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 1000 запросов | 60 миллисекунд | 20 запросов | Один запрос с кодом ответа <code>409</code> учитывается как 10 запросов </div>
3573
+
3574
+ :param order_id: ID сборочного задания (required)
3575
+ :type order_id: int
3576
+ :param api_v3_dbs_orders_order_id_meta_sgtin_put_request:
3577
+ :type api_v3_dbs_orders_order_id_meta_sgtin_put_request: ApiV3DbsOrdersOrderIdMetaSgtinPutRequest
3578
+ :param _request_timeout: timeout setting for this request. If one
3579
+ number provided, it will be total request
3580
+ timeout. It can also be a pair (tuple) of
3581
+ (connection, read) timeouts.
3582
+ :type _request_timeout: int, tuple(int, int), optional
3583
+ :param _request_auth: set to override the auth_settings for an a single
3584
+ request; this effectively ignores the
3585
+ authentication in the spec for a single request.
3586
+ :type _request_auth: dict, optional
3587
+ :param _content_type: force content-type for the request.
3588
+ :type _content_type: str, Optional
3589
+ :param _headers: set to override the headers for a single
3590
+ request; this effectively ignores the headers
3591
+ in the spec for a single request.
3592
+ :type _headers: dict, optional
3593
+ :param _host_index: set to override the host_index for a single
3594
+ request; this effectively ignores the host_index
3595
+ in the spec for a single request.
3596
+ :type _host_index: int, optional
3597
+ :return: Returns the result object.
3598
+ """ # noqa: E501
3599
+
3600
+ _param = self._api_v3_dbs_orders_order_id_meta_sgtin_put_serialize(
3601
+ order_id=order_id,
3602
+ api_v3_dbs_orders_order_id_meta_sgtin_put_request=api_v3_dbs_orders_order_id_meta_sgtin_put_request,
3603
+ _request_auth=_request_auth,
3604
+ _content_type=_content_type,
3605
+ _headers=_headers,
3606
+ _host_index=_host_index
3607
+ )
3608
+
3609
+ _response_types_map: Dict[str, Optional[str]] = {
3610
+ '204': None,
3611
+ '400': "Error",
3612
+ '401': "ApiV3DbsOrdersNewGet401Response",
3613
+ '403': "Error",
3614
+ '404': "Error",
3615
+ '409': "Error",
3616
+ '429': "ApiV3DbsOrdersNewGet401Response",
3617
+ }
3618
+ response_data = self.api_client.call_api(
3619
+ *_param,
3620
+ _request_timeout=_request_timeout
3621
+ )
3622
+ response_data.read()
3623
+ return self.api_client.response_deserialize(
3624
+ response_data=response_data,
3625
+ response_types_map=_response_types_map,
3626
+ ).data
3627
+
3628
+
3629
+ @validate_call
3630
+ def api_v3_dbs_orders_order_id_meta_sgtin_put_with_http_info(
3631
+ self,
3632
+ order_id: Annotated[StrictInt, Field(description="ID сборочного задания")],
3633
+ api_v3_dbs_orders_order_id_meta_sgtin_put_request: Optional[ApiV3DbsOrdersOrderIdMetaSgtinPutRequest] = None,
3634
+ _request_timeout: Union[
3635
+ None,
3636
+ Annotated[StrictFloat, Field(gt=0)],
3637
+ Tuple[
3638
+ Annotated[StrictFloat, Field(gt=0)],
3639
+ Annotated[StrictFloat, Field(gt=0)]
3640
+ ]
3641
+ ] = None,
3642
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3643
+ _content_type: Optional[StrictStr] = None,
3644
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3645
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
3646
+ ) -> ApiResponse[None]:
3647
+ """Закрепить за сборочным заданием код маркировки товара
3648
+
3649
+ Метод позволяет закрепить за сборочным заданием код маркировки [Честный знак](https://честныйзнак.рф). <br><br> Закрепить код маркировки можно только если в [метаданных сборочного задания](/openapi/orders-dbs#tag/Metadannye-DBS/paths/~1api~1v3~1dbs~1orders~1%7BorderId%7D~1meta/get) есть поле `sgtin`, а сборочное задание находится в [статусе](/openapi/orders-dbs#tag/Sborochnye-zadaniya-DBS/paths/~1api~1v3~1dbs~1orders~1status/post) `confirm`. <br><br> Получить загруженные маркировки можно в [метаданных сборочного задания](/openapi/orders-dbs#tag/Metadannye-DBS/paths/~1api~1v3~1dbs~1orders~1%7BorderId%7D~1meta/get). <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов <strong>закрепления метаданных DBS</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 1000 запросов | 60 миллисекунд | 20 запросов | Один запрос с кодом ответа <code>409</code> учитывается как 10 запросов </div>
3650
+
3651
+ :param order_id: ID сборочного задания (required)
3652
+ :type order_id: int
3653
+ :param api_v3_dbs_orders_order_id_meta_sgtin_put_request:
3654
+ :type api_v3_dbs_orders_order_id_meta_sgtin_put_request: ApiV3DbsOrdersOrderIdMetaSgtinPutRequest
3655
+ :param _request_timeout: timeout setting for this request. If one
3656
+ number provided, it will be total request
3657
+ timeout. It can also be a pair (tuple) of
3658
+ (connection, read) timeouts.
3659
+ :type _request_timeout: int, tuple(int, int), optional
3660
+ :param _request_auth: set to override the auth_settings for an a single
3661
+ request; this effectively ignores the
3662
+ authentication in the spec for a single request.
3663
+ :type _request_auth: dict, optional
3664
+ :param _content_type: force content-type for the request.
3665
+ :type _content_type: str, Optional
3666
+ :param _headers: set to override the headers for a single
3667
+ request; this effectively ignores the headers
3668
+ in the spec for a single request.
3669
+ :type _headers: dict, optional
3670
+ :param _host_index: set to override the host_index for a single
3671
+ request; this effectively ignores the host_index
3672
+ in the spec for a single request.
3673
+ :type _host_index: int, optional
3674
+ :return: Returns the result object.
3675
+ """ # noqa: E501
3676
+
3677
+ _param = self._api_v3_dbs_orders_order_id_meta_sgtin_put_serialize(
3678
+ order_id=order_id,
3679
+ api_v3_dbs_orders_order_id_meta_sgtin_put_request=api_v3_dbs_orders_order_id_meta_sgtin_put_request,
3680
+ _request_auth=_request_auth,
3681
+ _content_type=_content_type,
3682
+ _headers=_headers,
3683
+ _host_index=_host_index
3684
+ )
3685
+
3686
+ _response_types_map: Dict[str, Optional[str]] = {
3687
+ '204': None,
3688
+ '400': "Error",
3689
+ '401': "ApiV3DbsOrdersNewGet401Response",
3690
+ '403': "Error",
3691
+ '404': "Error",
3692
+ '409': "Error",
3693
+ '429': "ApiV3DbsOrdersNewGet401Response",
3694
+ }
3695
+ response_data = self.api_client.call_api(
3696
+ *_param,
3697
+ _request_timeout=_request_timeout
3698
+ )
3699
+ response_data.read()
3700
+ return self.api_client.response_deserialize(
3701
+ response_data=response_data,
3702
+ response_types_map=_response_types_map,
3703
+ )
3704
+
3705
+
3706
+ @validate_call
3707
+ def api_v3_dbs_orders_order_id_meta_sgtin_put_without_preload_content(
3708
+ self,
3709
+ order_id: Annotated[StrictInt, Field(description="ID сборочного задания")],
3710
+ api_v3_dbs_orders_order_id_meta_sgtin_put_request: Optional[ApiV3DbsOrdersOrderIdMetaSgtinPutRequest] = None,
3711
+ _request_timeout: Union[
3712
+ None,
3713
+ Annotated[StrictFloat, Field(gt=0)],
3714
+ Tuple[
3715
+ Annotated[StrictFloat, Field(gt=0)],
3716
+ Annotated[StrictFloat, Field(gt=0)]
3717
+ ]
3718
+ ] = None,
3719
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3720
+ _content_type: Optional[StrictStr] = None,
3721
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3722
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
3723
+ ) -> RESTResponseType:
3724
+ """Закрепить за сборочным заданием код маркировки товара
3725
+
3726
+ Метод позволяет закрепить за сборочным заданием код маркировки [Честный знак](https://честныйзнак.рф). <br><br> Закрепить код маркировки можно только если в [метаданных сборочного задания](/openapi/orders-dbs#tag/Metadannye-DBS/paths/~1api~1v3~1dbs~1orders~1%7BorderId%7D~1meta/get) есть поле `sgtin`, а сборочное задание находится в [статусе](/openapi/orders-dbs#tag/Sborochnye-zadaniya-DBS/paths/~1api~1v3~1dbs~1orders~1status/post) `confirm`. <br><br> Получить загруженные маркировки можно в [метаданных сборочного задания](/openapi/orders-dbs#tag/Metadannye-DBS/paths/~1api~1v3~1dbs~1orders~1%7BorderId%7D~1meta/get). <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов <strong>закрепления метаданных DBS</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 1000 запросов | 60 миллисекунд | 20 запросов | Один запрос с кодом ответа <code>409</code> учитывается как 10 запросов </div>
3727
+
3728
+ :param order_id: ID сборочного задания (required)
3729
+ :type order_id: int
3730
+ :param api_v3_dbs_orders_order_id_meta_sgtin_put_request:
3731
+ :type api_v3_dbs_orders_order_id_meta_sgtin_put_request: ApiV3DbsOrdersOrderIdMetaSgtinPutRequest
3732
+ :param _request_timeout: timeout setting for this request. If one
3733
+ number provided, it will be total request
3734
+ timeout. It can also be a pair (tuple) of
3735
+ (connection, read) timeouts.
3736
+ :type _request_timeout: int, tuple(int, int), optional
3737
+ :param _request_auth: set to override the auth_settings for an a single
3738
+ request; this effectively ignores the
3739
+ authentication in the spec for a single request.
3740
+ :type _request_auth: dict, optional
3741
+ :param _content_type: force content-type for the request.
3742
+ :type _content_type: str, Optional
3743
+ :param _headers: set to override the headers for a single
3744
+ request; this effectively ignores the headers
3745
+ in the spec for a single request.
3746
+ :type _headers: dict, optional
3747
+ :param _host_index: set to override the host_index for a single
3748
+ request; this effectively ignores the host_index
3749
+ in the spec for a single request.
3750
+ :type _host_index: int, optional
3751
+ :return: Returns the result object.
3752
+ """ # noqa: E501
3753
+
3754
+ _param = self._api_v3_dbs_orders_order_id_meta_sgtin_put_serialize(
3755
+ order_id=order_id,
3756
+ api_v3_dbs_orders_order_id_meta_sgtin_put_request=api_v3_dbs_orders_order_id_meta_sgtin_put_request,
3757
+ _request_auth=_request_auth,
3758
+ _content_type=_content_type,
3759
+ _headers=_headers,
3760
+ _host_index=_host_index
3761
+ )
3762
+
3763
+ _response_types_map: Dict[str, Optional[str]] = {
3764
+ '204': None,
3765
+ '400': "Error",
3766
+ '401': "ApiV3DbsOrdersNewGet401Response",
3767
+ '403': "Error",
3768
+ '404': "Error",
3769
+ '409': "Error",
3770
+ '429': "ApiV3DbsOrdersNewGet401Response",
3771
+ }
3772
+ response_data = self.api_client.call_api(
3773
+ *_param,
3774
+ _request_timeout=_request_timeout
3775
+ )
3776
+ return response_data.response
3777
+
3778
+
3779
+ def _api_v3_dbs_orders_order_id_meta_sgtin_put_serialize(
3780
+ self,
3781
+ order_id,
3782
+ api_v3_dbs_orders_order_id_meta_sgtin_put_request,
3783
+ _request_auth,
3784
+ _content_type,
3785
+ _headers,
3786
+ _host_index,
3787
+ ) -> RequestSerialized:
3788
+
3789
+ _hosts = [
3790
+ 'https://marketplace-api.wildberries.ru'
3791
+ ]
3792
+ _host = _hosts[_host_index]
3793
+
3794
+ _collection_formats: Dict[str, str] = {
3795
+ }
3796
+
3797
+ _path_params: Dict[str, str] = {}
3798
+ _query_params: List[Tuple[str, str]] = []
3799
+ _header_params: Dict[str, Optional[str]] = _headers or {}
3800
+ _form_params: List[Tuple[str, str]] = []
3801
+ _files: Dict[
3802
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3803
+ ] = {}
3804
+ _body_params: Optional[bytes] = None
3805
+
3806
+ # process the path parameters
3807
+ if order_id is not None:
3808
+ _path_params['orderId'] = order_id
3809
+ # process the query parameters
3810
+ # process the header parameters
3811
+ # process the form parameters
3812
+ # process the body parameter
3813
+ if api_v3_dbs_orders_order_id_meta_sgtin_put_request is not None:
3814
+ _body_params = api_v3_dbs_orders_order_id_meta_sgtin_put_request
3815
+
3816
+
3817
+ # set the HTTP header `Accept`
3818
+ if 'Accept' not in _header_params:
3819
+ _header_params['Accept'] = self.api_client.select_header_accept(
3820
+ [
3821
+ 'application/json'
3822
+ ]
3823
+ )
3824
+
3825
+ # set the HTTP header `Content-Type`
3826
+ if _content_type:
3827
+ _header_params['Content-Type'] = _content_type
3828
+ else:
3829
+ _default_content_type = (
3830
+ self.api_client.select_header_content_type(
3831
+ [
3832
+ 'application/json'
3833
+ ]
3834
+ )
3835
+ )
3836
+ if _default_content_type is not None:
3837
+ _header_params['Content-Type'] = _default_content_type
3838
+
3839
+ # authentication setting
3840
+ _auth_settings: List[str] = [
3841
+ 'HeaderApiKey'
3842
+ ]
3843
+
3844
+ return self.api_client.param_serialize(
3845
+ method='PUT',
3846
+ resource_path='/api/v3/dbs/orders/{orderId}/meta/sgtin',
3847
+ path_params=_path_params,
3848
+ query_params=_query_params,
3849
+ header_params=_header_params,
3850
+ body=_body_params,
3851
+ post_params=_form_params,
3852
+ files=_files,
3853
+ auth_settings=_auth_settings,
3854
+ collection_formats=_collection_formats,
3855
+ _host=_host,
3856
+ _request_auth=_request_auth
3857
+ )
3858
+
3859
+
3860
+
3861
+
3862
+ @validate_call
3863
+ def api_v3_dbs_orders_order_id_meta_uin_put(
3864
+ self,
3865
+ order_id: Annotated[StrictInt, Field(description="ID сборочного задания")],
3866
+ api_v3_dbs_orders_order_id_meta_uin_put_request: Optional[ApiV3DbsOrdersOrderIdMetaUinPutRequest] = None,
3867
+ _request_timeout: Union[
3868
+ None,
3869
+ Annotated[StrictFloat, Field(gt=0)],
3870
+ Tuple[
3871
+ Annotated[StrictFloat, Field(gt=0)],
3872
+ Annotated[StrictFloat, Field(gt=0)]
3873
+ ]
3874
+ ] = None,
3875
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3876
+ _content_type: Optional[StrictStr] = None,
3877
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3878
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
3879
+ ) -> None:
3880
+ """Закрепить за сборочным заданием УИН (уникальный идентификационный номер)
3881
+
3882
+ Метод обновляет УИН в [метаданных сборочного задания](/openapi/orders-dbs#tag/Metadannye-DBS/paths/~1api~1v3~1dbs~1orders~1%7BorderId%7D~1meta/get) — уникальный идентификационный номер. <br><br> У одного сборочного задания может быть только один УИН. Добавлять маркировку можно только для сборочных заданий, которые находятся в [статусе](/openapi/orders-dbs#tag/Sborochnye-zadaniya-DBS/paths/~1api~1v3~1dbs~1orders~1status/post) `confirm`. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов <strong>закрепления метаданных DBS</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 1000 запросов | 60 миллисекунд | 20 запросов | Один запрос с кодом ответа <code>409</code> учитывается как 10 запросов </div>
3883
+
3884
+ :param order_id: ID сборочного задания (required)
3885
+ :type order_id: int
3886
+ :param api_v3_dbs_orders_order_id_meta_uin_put_request:
3887
+ :type api_v3_dbs_orders_order_id_meta_uin_put_request: ApiV3DbsOrdersOrderIdMetaUinPutRequest
3888
+ :param _request_timeout: timeout setting for this request. If one
3889
+ number provided, it will be total request
3890
+ timeout. It can also be a pair (tuple) of
3891
+ (connection, read) timeouts.
3892
+ :type _request_timeout: int, tuple(int, int), optional
3893
+ :param _request_auth: set to override the auth_settings for an a single
3894
+ request; this effectively ignores the
3895
+ authentication in the spec for a single request.
3896
+ :type _request_auth: dict, optional
3897
+ :param _content_type: force content-type for the request.
3898
+ :type _content_type: str, Optional
3899
+ :param _headers: set to override the headers for a single
3900
+ request; this effectively ignores the headers
3901
+ in the spec for a single request.
3902
+ :type _headers: dict, optional
3903
+ :param _host_index: set to override the host_index for a single
3904
+ request; this effectively ignores the host_index
3905
+ in the spec for a single request.
3906
+ :type _host_index: int, optional
3907
+ :return: Returns the result object.
3908
+ """ # noqa: E501
3909
+
3910
+ _param = self._api_v3_dbs_orders_order_id_meta_uin_put_serialize(
3911
+ order_id=order_id,
3912
+ api_v3_dbs_orders_order_id_meta_uin_put_request=api_v3_dbs_orders_order_id_meta_uin_put_request,
3913
+ _request_auth=_request_auth,
3914
+ _content_type=_content_type,
3915
+ _headers=_headers,
3916
+ _host_index=_host_index
3917
+ )
3918
+
3919
+ _response_types_map: Dict[str, Optional[str]] = {
3920
+ '204': None,
3921
+ '400': "Error",
3922
+ '401': "ApiV3DbsOrdersNewGet401Response",
3923
+ '403': "Error",
3924
+ '404': "Error",
3925
+ '409': "Error",
3926
+ '429': "ApiV3DbsOrdersNewGet401Response",
3927
+ }
3928
+ response_data = self.api_client.call_api(
3929
+ *_param,
3930
+ _request_timeout=_request_timeout
3931
+ )
3932
+ response_data.read()
3933
+ return self.api_client.response_deserialize(
3934
+ response_data=response_data,
3935
+ response_types_map=_response_types_map,
3936
+ ).data
3937
+
3938
+
3939
+ @validate_call
3940
+ def api_v3_dbs_orders_order_id_meta_uin_put_with_http_info(
3941
+ self,
3942
+ order_id: Annotated[StrictInt, Field(description="ID сборочного задания")],
3943
+ api_v3_dbs_orders_order_id_meta_uin_put_request: Optional[ApiV3DbsOrdersOrderIdMetaUinPutRequest] = None,
3944
+ _request_timeout: Union[
3945
+ None,
3946
+ Annotated[StrictFloat, Field(gt=0)],
3947
+ Tuple[
3948
+ Annotated[StrictFloat, Field(gt=0)],
3949
+ Annotated[StrictFloat, Field(gt=0)]
3950
+ ]
3951
+ ] = None,
3952
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3953
+ _content_type: Optional[StrictStr] = None,
3954
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3955
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
3956
+ ) -> ApiResponse[None]:
3957
+ """Закрепить за сборочным заданием УИН (уникальный идентификационный номер)
3958
+
3959
+ Метод обновляет УИН в [метаданных сборочного задания](/openapi/orders-dbs#tag/Metadannye-DBS/paths/~1api~1v3~1dbs~1orders~1%7BorderId%7D~1meta/get) — уникальный идентификационный номер. <br><br> У одного сборочного задания может быть только один УИН. Добавлять маркировку можно только для сборочных заданий, которые находятся в [статусе](/openapi/orders-dbs#tag/Sborochnye-zadaniya-DBS/paths/~1api~1v3~1dbs~1orders~1status/post) `confirm`. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов <strong>закрепления метаданных DBS</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 1000 запросов | 60 миллисекунд | 20 запросов | Один запрос с кодом ответа <code>409</code> учитывается как 10 запросов </div>
3960
+
3961
+ :param order_id: ID сборочного задания (required)
3962
+ :type order_id: int
3963
+ :param api_v3_dbs_orders_order_id_meta_uin_put_request:
3964
+ :type api_v3_dbs_orders_order_id_meta_uin_put_request: ApiV3DbsOrdersOrderIdMetaUinPutRequest
3965
+ :param _request_timeout: timeout setting for this request. If one
3966
+ number provided, it will be total request
3967
+ timeout. It can also be a pair (tuple) of
3968
+ (connection, read) timeouts.
3969
+ :type _request_timeout: int, tuple(int, int), optional
3970
+ :param _request_auth: set to override the auth_settings for an a single
3971
+ request; this effectively ignores the
3972
+ authentication in the spec for a single request.
3973
+ :type _request_auth: dict, optional
3974
+ :param _content_type: force content-type for the request.
3975
+ :type _content_type: str, Optional
3976
+ :param _headers: set to override the headers for a single
3977
+ request; this effectively ignores the headers
3978
+ in the spec for a single request.
3979
+ :type _headers: dict, optional
3980
+ :param _host_index: set to override the host_index for a single
3981
+ request; this effectively ignores the host_index
3982
+ in the spec for a single request.
3983
+ :type _host_index: int, optional
3984
+ :return: Returns the result object.
3985
+ """ # noqa: E501
3986
+
3987
+ _param = self._api_v3_dbs_orders_order_id_meta_uin_put_serialize(
3988
+ order_id=order_id,
3989
+ api_v3_dbs_orders_order_id_meta_uin_put_request=api_v3_dbs_orders_order_id_meta_uin_put_request,
3990
+ _request_auth=_request_auth,
3991
+ _content_type=_content_type,
3992
+ _headers=_headers,
3993
+ _host_index=_host_index
3994
+ )
3995
+
3996
+ _response_types_map: Dict[str, Optional[str]] = {
3997
+ '204': None,
3998
+ '400': "Error",
3999
+ '401': "ApiV3DbsOrdersNewGet401Response",
4000
+ '403': "Error",
4001
+ '404': "Error",
4002
+ '409': "Error",
4003
+ '429': "ApiV3DbsOrdersNewGet401Response",
4004
+ }
4005
+ response_data = self.api_client.call_api(
4006
+ *_param,
4007
+ _request_timeout=_request_timeout
4008
+ )
4009
+ response_data.read()
4010
+ return self.api_client.response_deserialize(
4011
+ response_data=response_data,
4012
+ response_types_map=_response_types_map,
4013
+ )
4014
+
4015
+
4016
+ @validate_call
4017
+ def api_v3_dbs_orders_order_id_meta_uin_put_without_preload_content(
4018
+ self,
4019
+ order_id: Annotated[StrictInt, Field(description="ID сборочного задания")],
4020
+ api_v3_dbs_orders_order_id_meta_uin_put_request: Optional[ApiV3DbsOrdersOrderIdMetaUinPutRequest] = None,
4021
+ _request_timeout: Union[
4022
+ None,
4023
+ Annotated[StrictFloat, Field(gt=0)],
4024
+ Tuple[
4025
+ Annotated[StrictFloat, Field(gt=0)],
4026
+ Annotated[StrictFloat, Field(gt=0)]
4027
+ ]
4028
+ ] = None,
4029
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
4030
+ _content_type: Optional[StrictStr] = None,
4031
+ _headers: Optional[Dict[StrictStr, Any]] = None,
4032
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
4033
+ ) -> RESTResponseType:
4034
+ """Закрепить за сборочным заданием УИН (уникальный идентификационный номер)
4035
+
4036
+ Метод обновляет УИН в [метаданных сборочного задания](/openapi/orders-dbs#tag/Metadannye-DBS/paths/~1api~1v3~1dbs~1orders~1%7BorderId%7D~1meta/get) — уникальный идентификационный номер. <br><br> У одного сборочного задания может быть только один УИН. Добавлять маркировку можно только для сборочных заданий, которые находятся в [статусе](/openapi/orders-dbs#tag/Sborochnye-zadaniya-DBS/paths/~1api~1v3~1dbs~1orders~1status/post) `confirm`. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов <strong>закрепления метаданных DBS</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 1000 запросов | 60 миллисекунд | 20 запросов | Один запрос с кодом ответа <code>409</code> учитывается как 10 запросов </div>
4037
+
4038
+ :param order_id: ID сборочного задания (required)
4039
+ :type order_id: int
4040
+ :param api_v3_dbs_orders_order_id_meta_uin_put_request:
4041
+ :type api_v3_dbs_orders_order_id_meta_uin_put_request: ApiV3DbsOrdersOrderIdMetaUinPutRequest
4042
+ :param _request_timeout: timeout setting for this request. If one
4043
+ number provided, it will be total request
4044
+ timeout. It can also be a pair (tuple) of
4045
+ (connection, read) timeouts.
4046
+ :type _request_timeout: int, tuple(int, int), optional
4047
+ :param _request_auth: set to override the auth_settings for an a single
4048
+ request; this effectively ignores the
4049
+ authentication in the spec for a single request.
4050
+ :type _request_auth: dict, optional
4051
+ :param _content_type: force content-type for the request.
4052
+ :type _content_type: str, Optional
4053
+ :param _headers: set to override the headers for a single
4054
+ request; this effectively ignores the headers
4055
+ in the spec for a single request.
4056
+ :type _headers: dict, optional
4057
+ :param _host_index: set to override the host_index for a single
4058
+ request; this effectively ignores the host_index
4059
+ in the spec for a single request.
4060
+ :type _host_index: int, optional
4061
+ :return: Returns the result object.
4062
+ """ # noqa: E501
4063
+
4064
+ _param = self._api_v3_dbs_orders_order_id_meta_uin_put_serialize(
4065
+ order_id=order_id,
4066
+ api_v3_dbs_orders_order_id_meta_uin_put_request=api_v3_dbs_orders_order_id_meta_uin_put_request,
4067
+ _request_auth=_request_auth,
4068
+ _content_type=_content_type,
4069
+ _headers=_headers,
4070
+ _host_index=_host_index
4071
+ )
4072
+
4073
+ _response_types_map: Dict[str, Optional[str]] = {
4074
+ '204': None,
4075
+ '400': "Error",
4076
+ '401': "ApiV3DbsOrdersNewGet401Response",
4077
+ '403': "Error",
4078
+ '404': "Error",
4079
+ '409': "Error",
4080
+ '429': "ApiV3DbsOrdersNewGet401Response",
4081
+ }
4082
+ response_data = self.api_client.call_api(
4083
+ *_param,
4084
+ _request_timeout=_request_timeout
4085
+ )
4086
+ return response_data.response
4087
+
4088
+
4089
+ def _api_v3_dbs_orders_order_id_meta_uin_put_serialize(
4090
+ self,
4091
+ order_id,
4092
+ api_v3_dbs_orders_order_id_meta_uin_put_request,
4093
+ _request_auth,
4094
+ _content_type,
4095
+ _headers,
4096
+ _host_index,
4097
+ ) -> RequestSerialized:
4098
+
4099
+ _hosts = [
4100
+ 'https://marketplace-api.wildberries.ru'
4101
+ ]
4102
+ _host = _hosts[_host_index]
4103
+
4104
+ _collection_formats: Dict[str, str] = {
4105
+ }
4106
+
4107
+ _path_params: Dict[str, str] = {}
4108
+ _query_params: List[Tuple[str, str]] = []
4109
+ _header_params: Dict[str, Optional[str]] = _headers or {}
4110
+ _form_params: List[Tuple[str, str]] = []
4111
+ _files: Dict[
4112
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
4113
+ ] = {}
4114
+ _body_params: Optional[bytes] = None
4115
+
4116
+ # process the path parameters
4117
+ if order_id is not None:
4118
+ _path_params['orderId'] = order_id
4119
+ # process the query parameters
4120
+ # process the header parameters
4121
+ # process the form parameters
4122
+ # process the body parameter
4123
+ if api_v3_dbs_orders_order_id_meta_uin_put_request is not None:
4124
+ _body_params = api_v3_dbs_orders_order_id_meta_uin_put_request
4125
+
4126
+
4127
+ # set the HTTP header `Accept`
4128
+ if 'Accept' not in _header_params:
4129
+ _header_params['Accept'] = self.api_client.select_header_accept(
4130
+ [
4131
+ 'application/json'
4132
+ ]
4133
+ )
4134
+
4135
+ # set the HTTP header `Content-Type`
4136
+ if _content_type:
4137
+ _header_params['Content-Type'] = _content_type
4138
+ else:
4139
+ _default_content_type = (
4140
+ self.api_client.select_header_content_type(
4141
+ [
4142
+ 'application/json'
4143
+ ]
4144
+ )
4145
+ )
4146
+ if _default_content_type is not None:
4147
+ _header_params['Content-Type'] = _default_content_type
4148
+
4149
+ # authentication setting
4150
+ _auth_settings: List[str] = [
4151
+ 'HeaderApiKey'
4152
+ ]
4153
+
4154
+ return self.api_client.param_serialize(
4155
+ method='PUT',
4156
+ resource_path='/api/v3/dbs/orders/{orderId}/meta/uin',
4157
+ path_params=_path_params,
4158
+ query_params=_query_params,
4159
+ header_params=_header_params,
4160
+ body=_body_params,
4161
+ post_params=_form_params,
4162
+ files=_files,
4163
+ auth_settings=_auth_settings,
4164
+ collection_formats=_collection_formats,
4165
+ _host=_host,
4166
+ _request_auth=_request_auth
4167
+ )
4168
+
4169
+
4170
+
4171
+
2355
4172
  @validate_call
2356
4173
  def api_v3_dbs_orders_order_id_receive_patch(
2357
4174
  self,