wildberries-sdk 0.1.0__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 (1018) hide show
  1. wildberries_sdk-0.1.0.dist-info/METADATA +12 -0
  2. wildberries_sdk-0.1.0.dist-info/RECORD +1018 -0
  3. wildberries_sdk-0.1.0.dist-info/WHEEL +5 -0
  4. wildberries_sdk-0.1.0.dist-info/licenses/LICENSE +21 -0
  5. wildberries_sdk-0.1.0.dist-info/top_level.txt +14 -0
  6. wildberries_sdk_analytics/__init__.py +362 -0
  7. wildberries_sdk_analytics/api/__init__.py +7 -0
  8. wildberries_sdk_analytics/api/api.py +1490 -0
  9. wildberries_sdk_analytics/api/csv_api.py +1178 -0
  10. wildberries_sdk_analytics/api_client.py +804 -0
  11. wildberries_sdk_analytics/api_response.py +21 -0
  12. wildberries_sdk_analytics/configuration.py +608 -0
  13. wildberries_sdk_analytics/exceptions.py +219 -0
  14. wildberries_sdk_analytics/models/__init__.py +171 -0
  15. wildberries_sdk_analytics/models/api_v2_nm_report_downloads_get400_response.py +93 -0
  16. wildberries_sdk_analytics/models/api_v2_nm_report_downloads_get403_response.py +93 -0
  17. wildberries_sdk_analytics/models/api_v2_nm_report_downloads_post429_response.py +137 -0
  18. wildberries_sdk_analytics/models/api_v2_nm_report_downloads_post_request.py +196 -0
  19. wildberries_sdk_analytics/models/api_v2_search_report_product_orders_post200_response.py +91 -0
  20. wildberries_sdk_analytics/models/api_v2_search_report_product_search_texts_post200_response.py +91 -0
  21. wildberries_sdk_analytics/models/api_v2_search_report_report_post200_response.py +91 -0
  22. wildberries_sdk_analytics/models/api_v2_search_report_table_details_post200_response.py +91 -0
  23. wildberries_sdk_analytics/models/api_v2_search_report_table_groups_post200_response.py +91 -0
  24. wildberries_sdk_analytics/models/api_v2_stocks_report_offices_post200_response.py +91 -0
  25. wildberries_sdk_analytics/models/api_v2_stocks_report_products_groups_post200_response.py +91 -0
  26. wildberries_sdk_analytics/models/api_v2_stocks_report_products_products_post200_response.py +91 -0
  27. wildberries_sdk_analytics/models/api_v2_stocks_report_products_sizes_post200_response.py +91 -0
  28. wildberries_sdk_analytics/models/common_info.py +99 -0
  29. wildberries_sdk_analytics/models/common_info_advertised_products.py +89 -0
  30. wildberries_sdk_analytics/models/common_info_supplier_rating.py +89 -0
  31. wildberries_sdk_analytics/models/common_product_filters.py +120 -0
  32. wildberries_sdk_analytics/models/common_report_filters.py +120 -0
  33. wildberries_sdk_analytics/models/common_response_properties.py +87 -0
  34. wildberries_sdk_analytics/models/common_shipping_office_filters.py +104 -0
  35. wildberries_sdk_analytics/models/common_size_filters.py +104 -0
  36. wildberries_sdk_analytics/models/comparison.py +129 -0
  37. wildberries_sdk_analytics/models/comparison_time_to_ready_dynamic.py +91 -0
  38. wildberries_sdk_analytics/models/comparison_wb_club_dynamic.py +103 -0
  39. wildberries_sdk_analytics/models/conversions.py +91 -0
  40. wildberries_sdk_analytics/models/date_period.py +90 -0
  41. wildberries_sdk_analytics/models/error_object.py +93 -0
  42. wildberries_sdk_analytics/models/error_object400.py +93 -0
  43. wildberries_sdk_analytics/models/error_object403.py +93 -0
  44. wildberries_sdk_analytics/models/float_graph_by_period_item.py +92 -0
  45. wildberries_sdk_analytics/models/grouped_history_request.py +102 -0
  46. wildberries_sdk_analytics/models/history.py +108 -0
  47. wildberries_sdk_analytics/models/history_product.py +97 -0
  48. wildberries_sdk_analytics/models/level.py +37 -0
  49. wildberries_sdk_analytics/models/main_request.py +123 -0
  50. wildberries_sdk_analytics/models/main_response.py +113 -0
  51. wildberries_sdk_analytics/models/nm_report_create_report_response.py +87 -0
  52. wildberries_sdk_analytics/models/nm_report_get_reports_response.py +95 -0
  53. wildberries_sdk_analytics/models/nm_report_get_reports_response_data_inner.py +101 -0
  54. wildberries_sdk_analytics/models/nm_report_retry_report_request.py +88 -0
  55. wildberries_sdk_analytics/models/nm_report_retry_report_response.py +87 -0
  56. wildberries_sdk_analytics/models/order_by.py +103 -0
  57. wildberries_sdk_analytics/models/order_by_gr_te.py +103 -0
  58. wildberries_sdk_analytics/models/order_by_mode.py +37 -0
  59. wildberries_sdk_analytics/models/past_period.py +90 -0
  60. wildberries_sdk_analytics/models/period.py +90 -0
  61. wildberries_sdk_analytics/models/period_orders_request.py +90 -0
  62. wildberries_sdk_analytics/models/period_st.py +90 -0
  63. wildberries_sdk_analytics/models/position_cluster.py +39 -0
  64. wildberries_sdk_analytics/models/position_info.py +113 -0
  65. wildberries_sdk_analytics/models/position_info_average.py +89 -0
  66. wildberries_sdk_analytics/models/position_info_median.py +89 -0
  67. wildberries_sdk_analytics/models/post_sales_funnel_grouped_history200_response.py +95 -0
  68. wildberries_sdk_analytics/models/post_sales_funnel_products200_response.py +91 -0
  69. wildberries_sdk_analytics/models/post_sales_funnel_products200_response_data.py +95 -0
  70. wildberries_sdk_analytics/models/post_sales_funnel_products401_response.py +102 -0
  71. wildberries_sdk_analytics/models/product.py +117 -0
  72. wildberries_sdk_analytics/models/product_history_request.py +99 -0
  73. wildberries_sdk_analytics/models/product_history_response_inner.py +101 -0
  74. wildberries_sdk_analytics/models/product_history_response_inner_product.py +97 -0
  75. wildberries_sdk_analytics/models/product_orders_metrics.py +92 -0
  76. wildberries_sdk_analytics/models/product_orders_request.py +96 -0
  77. wildberries_sdk_analytics/models/product_orders_response.py +105 -0
  78. wildberries_sdk_analytics/models/product_orders_text_item.py +99 -0
  79. wildberries_sdk_analytics/models/product_search_texts_request.py +125 -0
  80. wildberries_sdk_analytics/models/product_search_texts_response.py +95 -0
  81. wildberries_sdk_analytics/models/product_stocks.py +91 -0
  82. wildberries_sdk_analytics/models/products_request.py +118 -0
  83. wildberries_sdk_analytics/models/products_request_past_period.py +90 -0
  84. wildberries_sdk_analytics/models/products_request_selected_period.py +90 -0
  85. wildberries_sdk_analytics/models/products_response.py +95 -0
  86. wildberries_sdk_analytics/models/products_response_products_inner.py +97 -0
  87. wildberries_sdk_analytics/models/products_response_products_inner_product.py +117 -0
  88. wildberries_sdk_analytics/models/products_response_products_inner_statistic.py +103 -0
  89. wildberries_sdk_analytics/models/response429_download.py +102 -0
  90. wildberries_sdk_analytics/models/response429_download_daily.py +93 -0
  91. wildberries_sdk_analytics/models/sales_funnel_group_req.py +98 -0
  92. wildberries_sdk_analytics/models/sales_funnel_group_req_params.py +102 -0
  93. wildberries_sdk_analytics/models/sales_funnel_product_req.py +98 -0
  94. wildberries_sdk_analytics/models/sales_funnel_product_req_params.py +115 -0
  95. wildberries_sdk_analytics/models/search_report_group_req.py +98 -0
  96. wildberries_sdk_analytics/models/search_report_group_req_params.py +119 -0
  97. wildberries_sdk_analytics/models/search_report_position_chart_item.py +91 -0
  98. wildberries_sdk_analytics/models/search_report_position_clusters.py +103 -0
  99. wildberries_sdk_analytics/models/search_report_position_clusters_below.py +89 -0
  100. wildberries_sdk_analytics/models/search_report_position_clusters_first_hundred.py +89 -0
  101. wildberries_sdk_analytics/models/search_report_position_clusters_second_hundred.py +89 -0
  102. wildberries_sdk_analytics/models/search_report_product_req.py +98 -0
  103. wildberries_sdk_analytics/models/search_report_product_req_params.py +119 -0
  104. wildberries_sdk_analytics/models/search_report_text_req.py +98 -0
  105. wildberries_sdk_analytics/models/search_report_text_req_params.py +131 -0
  106. wildberries_sdk_analytics/models/statistic.py +135 -0
  107. wildberries_sdk_analytics/models/statistic_conversions.py +91 -0
  108. wildberries_sdk_analytics/models/statistic_time_to_ready.py +91 -0
  109. wildberries_sdk_analytics/models/statistic_wb_club.py +103 -0
  110. wildberries_sdk_analytics/models/statistics.py +103 -0
  111. wildberries_sdk_analytics/models/statistics_comparison.py +129 -0
  112. wildberries_sdk_analytics/models/statistics_past.py +135 -0
  113. wildberries_sdk_analytics/models/statistics_selected.py +135 -0
  114. wildberries_sdk_analytics/models/stock_type.py +38 -0
  115. wildberries_sdk_analytics/models/stocks_report_req.py +98 -0
  116. wildberries_sdk_analytics/models/table_common_metrics.py +141 -0
  117. wildberries_sdk_analytics/models/table_common_metrics_avg_stock_turnover.py +89 -0
  118. wildberries_sdk_analytics/models/table_common_metrics_office_missing_time.py +89 -0
  119. wildberries_sdk_analytics/models/table_common_metrics_sale_rate.py +89 -0
  120. wildberries_sdk_analytics/models/table_details_request.py +129 -0
  121. wildberries_sdk_analytics/models/table_details_response.py +95 -0
  122. wildberries_sdk_analytics/models/table_group_field.py +54 -0
  123. wildberries_sdk_analytics/models/table_group_item.py +111 -0
  124. wildberries_sdk_analytics/models/table_group_item_metrics.py +127 -0
  125. wildberries_sdk_analytics/models/table_group_item_metrics_add_to_cart.py +89 -0
  126. wildberries_sdk_analytics/models/table_group_item_metrics_avg_position.py +89 -0
  127. wildberries_sdk_analytics/models/table_group_item_metrics_cart_to_order.py +89 -0
  128. wildberries_sdk_analytics/models/table_group_item_metrics_open_to_cart.py +89 -0
  129. wildberries_sdk_analytics/models/table_group_item_metrics_orders.py +89 -0
  130. wildberries_sdk_analytics/models/table_group_item_metrics_visibility.py +89 -0
  131. wildberries_sdk_analytics/models/table_group_item_st.py +111 -0
  132. wildberries_sdk_analytics/models/table_group_request.py +123 -0
  133. wildberries_sdk_analytics/models/table_group_request_st.py +125 -0
  134. wildberries_sdk_analytics/models/table_group_response.py +95 -0
  135. wildberries_sdk_analytics/models/table_group_response_st.py +95 -0
  136. wildberries_sdk_analytics/models/table_office_item.py +97 -0
  137. wildberries_sdk_analytics/models/table_order_by.py +91 -0
  138. wildberries_sdk_analytics/models/table_product_item.py +155 -0
  139. wildberries_sdk_analytics/models/table_product_item_all_of_price.py +89 -0
  140. wildberries_sdk_analytics/models/table_product_item_st.py +107 -0
  141. wildberries_sdk_analytics/models/table_product_item_st_metrics.py +156 -0
  142. wildberries_sdk_analytics/models/table_product_item_st_metrics_all_of_current_price.py +89 -0
  143. wildberries_sdk_analytics/models/table_product_request.py +125 -0
  144. wildberries_sdk_analytics/models/table_product_response.py +95 -0
  145. wildberries_sdk_analytics/models/table_search_text_item.py +165 -0
  146. wildberries_sdk_analytics/models/table_search_text_item_all_of_add_to_cart.py +91 -0
  147. wildberries_sdk_analytics/models/table_search_text_item_all_of_cart_to_order.py +91 -0
  148. wildberries_sdk_analytics/models/table_search_text_item_all_of_frequency.py +89 -0
  149. wildberries_sdk_analytics/models/table_search_text_item_all_of_median_position.py +89 -0
  150. wildberries_sdk_analytics/models/table_search_text_item_all_of_open_card.py +91 -0
  151. wildberries_sdk_analytics/models/table_search_text_item_all_of_open_to_cart.py +91 -0
  152. wildberries_sdk_analytics/models/table_search_text_item_all_of_orders.py +91 -0
  153. wildberries_sdk_analytics/models/table_search_text_item_all_of_visibility.py +89 -0
  154. wildberries_sdk_analytics/models/table_shipping_office_item.py +103 -0
  155. wildberries_sdk_analytics/models/table_shipping_office_item_offices_inner.py +95 -0
  156. wildberries_sdk_analytics/models/table_shipping_office_metrics.py +99 -0
  157. wildberries_sdk_analytics/models/table_shipping_office_response.py +95 -0
  158. wildberries_sdk_analytics/models/table_size_response.py +105 -0
  159. wildberries_sdk_analytics/models/table_size_response_sizes_inner.py +105 -0
  160. wildberries_sdk_analytics/models/table_size_response_sizes_inner_metrics.py +147 -0
  161. wildberries_sdk_analytics/models/tag.py +89 -0
  162. wildberries_sdk_analytics/models/text_limit.py +144 -0
  163. wildberries_sdk_analytics/models/time_to_ready.py +91 -0
  164. wildberries_sdk_analytics/models/visibility_info.py +125 -0
  165. wildberries_sdk_analytics/models/visibility_info_by_day_inner.py +92 -0
  166. wildberries_sdk_analytics/models/visibility_info_open_card.py +89 -0
  167. wildberries_sdk_analytics/models/visibility_info_visibility.py +89 -0
  168. wildberries_sdk_analytics/models/wb_club_metrics.py +103 -0
  169. wildberries_sdk_analytics/models/wb_club_metrics_dynamic.py +103 -0
  170. wildberries_sdk_analytics/py.typed +0 -0
  171. wildberries_sdk_analytics/rest.py +263 -0
  172. wildberries_sdk_communications/__init__.py +214 -0
  173. wildberries_sdk_communications/api/__init__.py +7 -0
  174. wildberries_sdk_communications/api/api.py +1159 -0
  175. wildberries_sdk_communications/api/default_api.py +4243 -0
  176. wildberries_sdk_communications/api_client.py +804 -0
  177. wildberries_sdk_communications/api_response.py +21 -0
  178. wildberries_sdk_communications/configuration.py +608 -0
  179. wildberries_sdk_communications/exceptions.py +219 -0
  180. wildberries_sdk_communications/models/__init__.py +97 -0
  181. wildberries_sdk_communications/models/api_feedbacks_v1_pins_count_get200_response.py +87 -0
  182. wildberries_sdk_communications/models/api_feedbacks_v1_pins_delete200_response.py +87 -0
  183. wildberries_sdk_communications/models/api_feedbacks_v1_pins_get200_response.py +97 -0
  184. wildberries_sdk_communications/models/api_feedbacks_v1_pins_limits_get200_response.py +91 -0
  185. wildberries_sdk_communications/models/api_feedbacks_v1_pins_post200_response.py +95 -0
  186. wildberries_sdk_communications/models/api_v1_claim_patch400_response.py +91 -0
  187. wildberries_sdk_communications/models/api_v1_claim_patch_request.py +92 -0
  188. wildberries_sdk_communications/models/api_v1_claims_get200_response.py +97 -0
  189. wildberries_sdk_communications/models/api_v1_claims_get200_response_claims_inner.py +131 -0
  190. wildberries_sdk_communications/models/api_v1_claims_get400_response.py +91 -0
  191. wildberries_sdk_communications/models/api_v1_feedback_get200_response.py +102 -0
  192. wildberries_sdk_communications/models/api_v1_feedback_get200_response_data.py +197 -0
  193. wildberries_sdk_communications/models/api_v1_feedback_get200_response_data_answer.py +91 -0
  194. wildberries_sdk_communications/models/api_v1_feedback_get200_response_data_photo_links_inner.py +89 -0
  195. wildberries_sdk_communications/models/api_v1_feedback_get200_response_data_product_details.py +114 -0
  196. wildberries_sdk_communications/models/api_v1_feedback_get200_response_data_video.py +91 -0
  197. wildberries_sdk_communications/models/api_v1_feedbacks_answer_patch_request.py +90 -0
  198. wildberries_sdk_communications/models/api_v1_feedbacks_answer_post_request.py +90 -0
  199. wildberries_sdk_communications/models/api_v1_feedbacks_archive_get200_response.py +102 -0
  200. wildberries_sdk_communications/models/api_v1_feedbacks_archive_get200_response_data.py +95 -0
  201. wildberries_sdk_communications/models/api_v1_feedbacks_count_get200_response.py +98 -0
  202. wildberries_sdk_communications/models/api_v1_feedbacks_count_unanswered_get200_response.py +102 -0
  203. wildberries_sdk_communications/models/api_v1_feedbacks_count_unanswered_get200_response_data.py +89 -0
  204. wildberries_sdk_communications/models/api_v1_feedbacks_get200_response.py +102 -0
  205. wildberries_sdk_communications/models/api_v1_feedbacks_get200_response_data.py +99 -0
  206. wildberries_sdk_communications/models/api_v1_feedbacks_order_return_post_request.py +87 -0
  207. wildberries_sdk_communications/models/api_v1_new_feedbacks_questions_get200_response.py +102 -0
  208. wildberries_sdk_communications/models/api_v1_new_feedbacks_questions_get200_response_data.py +89 -0
  209. wildberries_sdk_communications/models/api_v1_new_feedbacks_questions_get401_response.py +102 -0
  210. wildberries_sdk_communications/models/api_v1_question_get200_response.py +102 -0
  211. wildberries_sdk_communications/models/api_v1_question_get200_response_data.py +115 -0
  212. wildberries_sdk_communications/models/api_v1_question_get200_response_data_answer.py +92 -0
  213. wildberries_sdk_communications/models/api_v1_question_get200_response_data_product_details.py +97 -0
  214. wildberries_sdk_communications/models/api_v1_questions_count_get200_response.py +98 -0
  215. wildberries_sdk_communications/models/api_v1_questions_count_unanswered_get200_response.py +102 -0
  216. wildberries_sdk_communications/models/api_v1_questions_count_unanswered_get200_response_data.py +89 -0
  217. wildberries_sdk_communications/models/api_v1_questions_get200_response.py +102 -0
  218. wildberries_sdk_communications/models/api_v1_questions_get200_response_data.py +99 -0
  219. wildberries_sdk_communications/models/api_v1_questions_get200_response_data_questions_inner.py +115 -0
  220. wildberries_sdk_communications/models/api_v1_questions_get200_response_data_questions_inner_answer.py +92 -0
  221. wildberries_sdk_communications/models/api_v1_questions_get200_response_data_questions_inner_product_details.py +97 -0
  222. wildberries_sdk_communications/models/api_v1_questions_patch200_response.py +103 -0
  223. wildberries_sdk_communications/models/api_v1_questions_patch_request.py +137 -0
  224. wildberries_sdk_communications/models/api_v1_questions_patch_request_one_of.py +89 -0
  225. wildberries_sdk_communications/models/api_v1_questions_patch_request_one_of1.py +95 -0
  226. wildberries_sdk_communications/models/api_v1_questions_patch_request_one_of1_answer.py +87 -0
  227. wildberries_sdk_communications/models/api_v1_seller_events_get400_response.py +97 -0
  228. wildberries_sdk_communications/models/chat.py +105 -0
  229. wildberries_sdk_communications/models/chats_response.py +102 -0
  230. wildberries_sdk_communications/models/domain_review_pin_method.py +37 -0
  231. wildberries_sdk_communications/models/domain_review_pin_on.py +37 -0
  232. wildberries_sdk_communications/models/domain_review_state.py +37 -0
  233. wildberries_sdk_communications/models/event.py +115 -0
  234. wildberries_sdk_communications/models/event_attachments.py +111 -0
  235. wildberries_sdk_communications/models/event_message.py +93 -0
  236. wildberries_sdk_communications/models/event_type.py +36 -0
  237. wildberries_sdk_communications/models/events_response.py +98 -0
  238. wildberries_sdk_communications/models/events_result.py +104 -0
  239. wildberries_sdk_communications/models/file.py +97 -0
  240. wildberries_sdk_communications/models/good_card.py +99 -0
  241. wildberries_sdk_communications/models/image.py +91 -0
  242. wildberries_sdk_communications/models/last_message.py +89 -0
  243. wildberries_sdk_communications/models/message_response.py +93 -0
  244. wildberries_sdk_communications/models/message_response_result.py +89 -0
  245. wildberries_sdk_communications/models/openapi_pin_review_item.py +105 -0
  246. wildberries_sdk_communications/models/openapi_pin_review_item_result.py +95 -0
  247. wildberries_sdk_communications/models/openapi_pin_review_item_result_data_inner.py +119 -0
  248. wildberries_sdk_communications/models/openapi_pinned_review_item_result.py +117 -0
  249. wildberries_sdk_communications/models/openapi_result_err.py +102 -0
  250. wildberries_sdk_communications/models/openapi_seller_limit.py +95 -0
  251. wildberries_sdk_communications/models/openapi_seller_limits_response.py +91 -0
  252. wildberries_sdk_communications/models/openapi_seller_limits_response_data.py +106 -0
  253. wildberries_sdk_communications/models/respond_result_err.py +95 -0
  254. wildberries_sdk_communications/models/respond_success_response.py +87 -0
  255. wildberries_sdk_communications/models/response_feedback_inner.py +197 -0
  256. wildberries_sdk_communications/models/response_feedback_inner_answer.py +91 -0
  257. wildberries_sdk_communications/models/response_feedback_inner_product_details.py +114 -0
  258. wildberries_sdk_communications/models/response_feedback_inner_video.py +91 -0
  259. wildberries_sdk_communications/models/responsefeedback_err.py +105 -0
  260. wildberries_sdk_communications/models/sender.py +38 -0
  261. wildberries_sdk_communications/models/standardized_fq_error.py +93 -0
  262. wildberries_sdk_communications/py.typed +0 -0
  263. wildberries_sdk_communications/rest.py +263 -0
  264. wildberries_sdk_finances/__init__.py +84 -0
  265. wildberries_sdk_finances/api/__init__.py +6 -0
  266. wildberries_sdk_finances/api/api.py +404 -0
  267. wildberries_sdk_finances/api/default_api.py +1579 -0
  268. wildberries_sdk_finances/api_client.py +804 -0
  269. wildberries_sdk_finances/api_response.py +21 -0
  270. wildberries_sdk_finances/configuration.py +608 -0
  271. wildberries_sdk_finances/exceptions.py +219 -0
  272. wildberries_sdk_finances/models/__init__.py +33 -0
  273. wildberries_sdk_finances/models/api_v1_account_balance_get200_response.py +91 -0
  274. wildberries_sdk_finances/models/api_v1_account_balance_get401_response.py +102 -0
  275. wildberries_sdk_finances/models/api_v1_documents_list_get400_response.py +95 -0
  276. wildberries_sdk_finances/models/api_v5_supplier_report_detail_by_period_get400_response.py +95 -0
  277. wildberries_sdk_finances/models/detail_report_item.py +263 -0
  278. wildberries_sdk_finances/models/get_categories.py +91 -0
  279. wildberries_sdk_finances/models/get_categories_data.py +95 -0
  280. wildberries_sdk_finances/models/get_categories_data_categories_inner.py +89 -0
  281. wildberries_sdk_finances/models/get_doc.py +91 -0
  282. wildberries_sdk_finances/models/get_doc_data.py +91 -0
  283. wildberries_sdk_finances/models/get_docs.py +91 -0
  284. wildberries_sdk_finances/models/get_docs_data.py +91 -0
  285. wildberries_sdk_finances/models/get_list.py +91 -0
  286. wildberries_sdk_finances/models/get_list_data.py +95 -0
  287. wildberries_sdk_finances/models/get_list_data_documents_inner.py +97 -0
  288. wildberries_sdk_finances/models/request_download.py +96 -0
  289. wildberries_sdk_finances/models/request_download_params_inner.py +89 -0
  290. wildberries_sdk_finances/py.typed +0 -0
  291. wildberries_sdk_finances/rest.py +263 -0
  292. wildberries_sdk_general/__init__.py +84 -0
  293. wildberries_sdk_general/api/__init__.py +7 -0
  294. wildberries_sdk_general/api/api.py +1454 -0
  295. wildberries_sdk_general/api/api_api.py +341 -0
  296. wildberries_sdk_general/api/wbapi_api.py +291 -0
  297. wildberries_sdk_general/api_client.py +804 -0
  298. wildberries_sdk_general/api_response.py +21 -0
  299. wildberries_sdk_general/configuration.py +608 -0
  300. wildberries_sdk_general/exceptions.py +219 -0
  301. wildberries_sdk_general/models/__init__.py +32 -0
  302. wildberries_sdk_general/models/access_inner.py +96 -0
  303. wildberries_sdk_general/models/api_communications_v2_news_get200_response.py +95 -0
  304. wildberries_sdk_general/models/api_communications_v2_news_get200_response_data_inner.py +104 -0
  305. wildberries_sdk_general/models/api_communications_v2_news_get200_response_data_inner_types_inner.py +89 -0
  306. wildberries_sdk_general/models/api_v1_seller_info_get200_response.py +91 -0
  307. wildberries_sdk_general/models/create_invite_request.py +101 -0
  308. wildberries_sdk_general/models/create_invite_request_invite.py +90 -0
  309. wildberries_sdk_general/models/create_invite_response.py +95 -0
  310. wildberries_sdk_general/models/error_response.py +95 -0
  311. wildberries_sdk_general/models/get_users_response.py +99 -0
  312. wildberries_sdk_general/models/get_users_response_users_inner.py +135 -0
  313. wildberries_sdk_general/models/get_users_response_users_inner_invitee_info.py +96 -0
  314. wildberries_sdk_general/models/ping_get200_response.py +99 -0
  315. wildberries_sdk_general/models/ping_get401_response.py +102 -0
  316. wildberries_sdk_general/models/update_user_access_request.py +95 -0
  317. wildberries_sdk_general/models/user_access.py +97 -0
  318. wildberries_sdk_general/py.typed +0 -0
  319. wildberries_sdk_general/rest.py +263 -0
  320. wildberries_sdk_in_store_pickup/__init__.py +98 -0
  321. wildberries_sdk_in_store_pickup/api/__init__.py +6 -0
  322. wildberries_sdk_in_store_pickup/api/api.py +2884 -0
  323. wildberries_sdk_in_store_pickup/api_client.py +804 -0
  324. wildberries_sdk_in_store_pickup/api_response.py +21 -0
  325. wildberries_sdk_in_store_pickup/configuration.py +608 -0
  326. wildberries_sdk_in_store_pickup/exceptions.py +219 -0
  327. wildberries_sdk_in_store_pickup/models/__init__.py +40 -0
  328. wildberries_sdk_in_store_pickup/models/api_base_meta.py +109 -0
  329. wildberries_sdk_in_store_pickup/models/api_base_meta_gtin.py +92 -0
  330. wildberries_sdk_in_store_pickup/models/api_base_meta_imei.py +92 -0
  331. wildberries_sdk_in_store_pickup/models/api_base_meta_sgtin.py +92 -0
  332. wildberries_sdk_in_store_pickup/models/api_base_meta_uin.py +92 -0
  333. wildberries_sdk_in_store_pickup/models/api_check_identity_request.py +89 -0
  334. wildberries_sdk_in_store_pickup/models/api_checked_identity.py +87 -0
  335. wildberries_sdk_in_store_pickup/models/api_error.py +91 -0
  336. wildberries_sdk_in_store_pickup/models/api_gtin_request.py +87 -0
  337. wildberries_sdk_in_store_pickup/models/api_imei_request.py +87 -0
  338. wildberries_sdk_in_store_pickup/models/api_new_order.py +150 -0
  339. wildberries_sdk_in_store_pickup/models/api_new_orders.py +95 -0
  340. wildberries_sdk_in_store_pickup/models/api_order.py +134 -0
  341. wildberries_sdk_in_store_pickup/models/api_order_client_info.py +93 -0
  342. wildberries_sdk_in_store_pickup/models/api_order_client_info_resp.py +95 -0
  343. wildberries_sdk_in_store_pickup/models/api_order_status.py +91 -0
  344. wildberries_sdk_in_store_pickup/models/api_order_statuses.py +95 -0
  345. wildberries_sdk_in_store_pickup/models/api_orders.py +97 -0
  346. wildberries_sdk_in_store_pickup/models/api_orders_meta.py +91 -0
  347. wildberries_sdk_in_store_pickup/models/api_orders_request.py +87 -0
  348. wildberries_sdk_in_store_pickup/models/api_sgtins_request.py +87 -0
  349. wildberries_sdk_in_store_pickup/models/api_uin_request.py +87 -0
  350. wildberries_sdk_in_store_pickup/models/api_v3_click_collect_orders_new_get401_response.py +102 -0
  351. wildberries_sdk_in_store_pickup/models/error.py +96 -0
  352. wildberries_sdk_in_store_pickup/py.typed +0 -0
  353. wildberries_sdk_in_store_pickup/rest.py +263 -0
  354. wildberries_sdk_orders_dbs/__init__.py +112 -0
  355. wildberries_sdk_orders_dbs/api/__init__.py +6 -0
  356. wildberries_sdk_orders_dbs/api/dbs_api.py +3261 -0
  357. wildberries_sdk_orders_dbs/api_client.py +804 -0
  358. wildberries_sdk_orders_dbs/api_response.py +21 -0
  359. wildberries_sdk_orders_dbs/configuration.py +608 -0
  360. wildberries_sdk_orders_dbs/exceptions.py +219 -0
  361. wildberries_sdk_orders_dbs/models/__init__.py +47 -0
  362. wildberries_sdk_orders_dbs/models/api_order_group_inner.py +95 -0
  363. wildberries_sdk_orders_dbs/models/api_order_groups_request.py +88 -0
  364. wildberries_sdk_orders_dbs/models/api_v3_dbs_orders_get200_response.py +97 -0
  365. wildberries_sdk_orders_dbs/models/api_v3_dbs_orders_new_get200_response.py +95 -0
  366. wildberries_sdk_orders_dbs/models/api_v3_dbs_orders_new_get401_response.py +102 -0
  367. wildberries_sdk_orders_dbs/models/api_v3_dbs_orders_order_id_meta_get200_response.py +96 -0
  368. wildberries_sdk_orders_dbs/models/api_v3_dbs_orders_order_id_meta_gtin_put_request.py +88 -0
  369. wildberries_sdk_orders_dbs/models/api_v3_dbs_orders_order_id_meta_imei_put_request.py +88 -0
  370. wildberries_sdk_orders_dbs/models/api_v3_dbs_orders_order_id_meta_sgtin_put_request.py +88 -0
  371. wildberries_sdk_orders_dbs/models/api_v3_dbs_orders_order_id_meta_uin_put_request.py +88 -0
  372. wildberries_sdk_orders_dbs/models/api_v3_dbs_orders_status_post200_response.py +95 -0
  373. wildberries_sdk_orders_dbs/models/api_v3_dbs_orders_status_post200_response_orders_inner.py +91 -0
  374. wildberries_sdk_orders_dbs/models/api_v3_dbs_orders_status_post_request.py +88 -0
  375. wildberries_sdk_orders_dbs/models/code.py +87 -0
  376. wildberries_sdk_orders_dbs/models/dbs_only_client_info.py +99 -0
  377. wildberries_sdk_orders_dbs/models/dbs_only_client_info_resp.py +95 -0
  378. wildberries_sdk_orders_dbs/models/delivery_dates_info_resp.py +95 -0
  379. wildberries_sdk_orders_dbs/models/delivery_dates_info_resp_orders_inner.py +124 -0
  380. wildberries_sdk_orders_dbs/models/delivery_dates_request.py +88 -0
  381. wildberries_sdk_orders_dbs/models/error.py +96 -0
  382. wildberries_sdk_orders_dbs/models/meta.py +109 -0
  383. wildberries_sdk_orders_dbs/models/meta_gtin.py +92 -0
  384. wildberries_sdk_orders_dbs/models/meta_imei.py +92 -0
  385. wildberries_sdk_orders_dbs/models/meta_sgtin.py +92 -0
  386. wildberries_sdk_orders_dbs/models/meta_uin.py +92 -0
  387. wildberries_sdk_orders_dbs/models/order_dbs.py +156 -0
  388. wildberries_sdk_orders_dbs/models/order_dbs_address.py +91 -0
  389. wildberries_sdk_orders_dbs/models/order_new_dbs.py +175 -0
  390. wildberries_sdk_orders_dbs/models/order_new_dbs_address.py +91 -0
  391. wildberries_sdk_orders_dbs/models/order_new_dbs_options.py +87 -0
  392. wildberries_sdk_orders_dbs/models/orders_request_api.py +87 -0
  393. wildberries_sdk_orders_dbs/py.typed +0 -0
  394. wildberries_sdk_orders_dbs/rest.py +263 -0
  395. wildberries_sdk_orders_dbw/__init__.py +114 -0
  396. wildberries_sdk_orders_dbw/api/__init__.py +6 -0
  397. wildberries_sdk_orders_dbw/api/dbw_api.py +2688 -0
  398. wildberries_sdk_orders_dbw/api_client.py +804 -0
  399. wildberries_sdk_orders_dbw/api_response.py +21 -0
  400. wildberries_sdk_orders_dbw/configuration.py +608 -0
  401. wildberries_sdk_orders_dbw/exceptions.py +219 -0
  402. wildberries_sdk_orders_dbw/models/__init__.py +48 -0
  403. wildberries_sdk_orders_dbw/models/api_v3_dbw_orders_get200_response.py +97 -0
  404. wildberries_sdk_orders_dbw/models/api_v3_dbw_orders_new_get200_response.py +95 -0
  405. wildberries_sdk_orders_dbw/models/api_v3_dbw_orders_new_get401_response.py +102 -0
  406. wildberries_sdk_orders_dbw/models/api_v3_dbw_orders_order_id_meta_get200_response.py +96 -0
  407. wildberries_sdk_orders_dbw/models/api_v3_dbw_orders_order_id_meta_gtin_put_request.py +88 -0
  408. wildberries_sdk_orders_dbw/models/api_v3_dbw_orders_order_id_meta_imei_put_request.py +88 -0
  409. wildberries_sdk_orders_dbw/models/api_v3_dbw_orders_order_id_meta_sgtin_put_request.py +88 -0
  410. wildberries_sdk_orders_dbw/models/api_v3_dbw_orders_order_id_meta_uin_put_request.py +88 -0
  411. wildberries_sdk_orders_dbw/models/api_v3_dbw_orders_status_post200_response.py +95 -0
  412. wildberries_sdk_orders_dbw/models/api_v3_dbw_orders_status_post200_response_orders_inner.py +91 -0
  413. wildberries_sdk_orders_dbw/models/api_v3_dbw_orders_status_post_request.py +88 -0
  414. wildberries_sdk_orders_dbw/models/api_v3_dbw_orders_stickers_post200_response.py +95 -0
  415. wildberries_sdk_orders_dbw/models/api_v3_dbw_orders_stickers_post200_response_stickers_inner.py +95 -0
  416. wildberries_sdk_orders_dbw/models/api_v3_dbw_orders_stickers_post_request.py +88 -0
  417. wildberries_sdk_orders_dbw/models/courier_contacts_response.py +91 -0
  418. wildberries_sdk_orders_dbw/models/courier_info.py +120 -0
  419. wildberries_sdk_orders_dbw/models/delivery_dates_info_resp.py +95 -0
  420. wildberries_sdk_orders_dbw/models/delivery_dates_info_resp_orders_inner.py +124 -0
  421. wildberries_sdk_orders_dbw/models/delivery_dates_request.py +88 -0
  422. wildberries_sdk_orders_dbw/models/error.py +96 -0
  423. wildberries_sdk_orders_dbw/models/meta.py +109 -0
  424. wildberries_sdk_orders_dbw/models/meta_gtin.py +92 -0
  425. wildberries_sdk_orders_dbw/models/meta_imei.py +92 -0
  426. wildberries_sdk_orders_dbw/models/meta_sgtin.py +92 -0
  427. wildberries_sdk_orders_dbw/models/meta_uin.py +92 -0
  428. wildberries_sdk_orders_dbw/models/order.py +150 -0
  429. wildberries_sdk_orders_dbw/models/order_courier_info.py +93 -0
  430. wildberries_sdk_orders_dbw/models/order_courier_info_resp.py +95 -0
  431. wildberries_sdk_orders_dbw/models/order_new_dbw.py +164 -0
  432. wildberries_sdk_orders_dbw/models/order_new_dbw_address.py +91 -0
  433. wildberries_sdk_orders_dbw/models/order_new_dbw_options.py +87 -0
  434. wildberries_sdk_orders_dbw/models/orders_request_api.py +87 -0
  435. wildberries_sdk_orders_dbw/py.typed +0 -0
  436. wildberries_sdk_orders_dbw/rest.py +263 -0
  437. wildberries_sdk_orders_fbs/__init__.py +178 -0
  438. wildberries_sdk_orders_fbs/api/__init__.py +6 -0
  439. wildberries_sdk_orders_fbs/api/fbs_api.py +2683 -0
  440. wildberries_sdk_orders_fbs/api_client.py +804 -0
  441. wildberries_sdk_orders_fbs/api_response.py +21 -0
  442. wildberries_sdk_orders_fbs/configuration.py +608 -0
  443. wildberries_sdk_orders_fbs/exceptions.py +219 -0
  444. wildberries_sdk_orders_fbs/models/__init__.py +80 -0
  445. wildberries_sdk_orders_fbs/models/api_marketplace_v3_supplies_supply_id_orders_patch_request.py +88 -0
  446. wildberries_sdk_orders_fbs/models/api_v3_orders_get200_response.py +97 -0
  447. wildberries_sdk_orders_fbs/models/api_v3_orders_new_get200_response.py +95 -0
  448. wildberries_sdk_orders_fbs/models/api_v3_orders_order_id_meta_expiration_put_request.py +87 -0
  449. wildberries_sdk_orders_fbs/models/api_v3_orders_order_id_meta_get200_response.py +91 -0
  450. wildberries_sdk_orders_fbs/models/api_v3_orders_order_id_meta_gtin_put_request.py +88 -0
  451. wildberries_sdk_orders_fbs/models/api_v3_orders_order_id_meta_imei_put_request.py +88 -0
  452. wildberries_sdk_orders_fbs/models/api_v3_orders_order_id_meta_sgtin_put_request.py +88 -0
  453. wildberries_sdk_orders_fbs/models/api_v3_orders_order_id_meta_uin_put_request.py +88 -0
  454. wildberries_sdk_orders_fbs/models/api_v3_orders_status_history_post200_response.py +95 -0
  455. wildberries_sdk_orders_fbs/models/api_v3_orders_status_history_post200_response_orders_inner.py +100 -0
  456. wildberries_sdk_orders_fbs/models/api_v3_orders_status_history_post200_response_orders_inner_statuses_inner.py +94 -0
  457. wildberries_sdk_orders_fbs/models/api_v3_orders_status_history_post_request.py +88 -0
  458. wildberries_sdk_orders_fbs/models/api_v3_orders_status_post200_response.py +95 -0
  459. wildberries_sdk_orders_fbs/models/api_v3_orders_status_post200_response_orders_inner.py +111 -0
  460. wildberries_sdk_orders_fbs/models/api_v3_orders_status_post_request.py +88 -0
  461. wildberries_sdk_orders_fbs/models/api_v3_orders_stickers_cross_border_post200_response.py +95 -0
  462. wildberries_sdk_orders_fbs/models/api_v3_orders_stickers_cross_border_post200_response_stickers_inner.py +91 -0
  463. wildberries_sdk_orders_fbs/models/api_v3_orders_stickers_cross_border_post_request.py +88 -0
  464. wildberries_sdk_orders_fbs/models/api_v3_orders_stickers_post200_response.py +95 -0
  465. wildberries_sdk_orders_fbs/models/api_v3_orders_stickers_post200_response_stickers_inner.py +95 -0
  466. wildberries_sdk_orders_fbs/models/api_v3_orders_stickers_post_request.py +88 -0
  467. wildberries_sdk_orders_fbs/models/api_v3_passes_offices_get401_response.py +102 -0
  468. wildberries_sdk_orders_fbs/models/api_v3_passes_pass_id_put_request.py +96 -0
  469. wildberries_sdk_orders_fbs/models/api_v3_passes_post201_response.py +87 -0
  470. wildberries_sdk_orders_fbs/models/api_v3_passes_post_request.py +96 -0
  471. wildberries_sdk_orders_fbs/models/api_v3_supplies_get200_response.py +97 -0
  472. wildberries_sdk_orders_fbs/models/api_v3_supplies_orders_reshipment_get200_response.py +95 -0
  473. wildberries_sdk_orders_fbs/models/api_v3_supplies_orders_reshipment_get200_response_orders_inner.py +99 -0
  474. wildberries_sdk_orders_fbs/models/api_v3_supplies_post201_response.py +87 -0
  475. wildberries_sdk_orders_fbs/models/api_v3_supplies_post_request.py +88 -0
  476. wildberries_sdk_orders_fbs/models/api_v3_supplies_supply_id_barcode_get200_response.py +89 -0
  477. wildberries_sdk_orders_fbs/models/api_v3_supplies_supply_id_orders_get200_response.py +95 -0
  478. wildberries_sdk_orders_fbs/models/api_v3_supplies_supply_id_trbx_delete_request.py +87 -0
  479. wildberries_sdk_orders_fbs/models/api_v3_supplies_supply_id_trbx_get200_response.py +95 -0
  480. wildberries_sdk_orders_fbs/models/api_v3_supplies_supply_id_trbx_post201_response.py +88 -0
  481. wildberries_sdk_orders_fbs/models/api_v3_supplies_supply_id_trbx_post_request.py +88 -0
  482. wildberries_sdk_orders_fbs/models/api_v3_supplies_supply_id_trbx_stickers_post200_response.py +96 -0
  483. wildberries_sdk_orders_fbs/models/api_v3_supplies_supply_id_trbx_stickers_post_request.py +87 -0
  484. wildberries_sdk_orders_fbs/models/crossborder_turkey_client_info.py +99 -0
  485. wildberries_sdk_orders_fbs/models/crossborder_turkey_client_info_resp.py +95 -0
  486. wildberries_sdk_orders_fbs/models/error.py +96 -0
  487. wildberries_sdk_orders_fbs/models/meta.py +115 -0
  488. wildberries_sdk_orders_fbs/models/meta_expiration.py +92 -0
  489. wildberries_sdk_orders_fbs/models/meta_gtin.py +92 -0
  490. wildberries_sdk_orders_fbs/models/meta_imei.py +92 -0
  491. wildberries_sdk_orders_fbs/models/meta_sgtin.py +92 -0
  492. wildberries_sdk_orders_fbs/models/meta_uin.py +92 -0
  493. wildberries_sdk_orders_fbs/models/model_pass.py +103 -0
  494. wildberries_sdk_orders_fbs/models/order.py +173 -0
  495. wildberries_sdk_orders_fbs/models/order_address.py +91 -0
  496. wildberries_sdk_orders_fbs/models/order_new.py +210 -0
  497. wildberries_sdk_orders_fbs/models/order_options.py +87 -0
  498. wildberries_sdk_orders_fbs/models/orders_request_api.py +87 -0
  499. wildberries_sdk_orders_fbs/models/pass_office.py +91 -0
  500. wildberries_sdk_orders_fbs/models/supply.py +127 -0
  501. wildberries_sdk_orders_fbs/models/supply_order.py +142 -0
  502. wildberries_sdk_orders_fbs/models/supply_trbx.py +87 -0
  503. wildberries_sdk_orders_fbs/models/trbx_stickers.py +90 -0
  504. wildberries_sdk_orders_fbs/models/v3_api_error.py +91 -0
  505. wildberries_sdk_orders_fbs/models/v3_get_meta_multi_request.py +88 -0
  506. wildberries_sdk_orders_fbs/models/v3_order_meta_api.py +92 -0
  507. wildberries_sdk_orders_fbs/models/v3_orders_meta_api.py +95 -0
  508. wildberries_sdk_orders_fbs/models/v3_supply_order_ids_api.py +87 -0
  509. wildberries_sdk_orders_fbs/py.typed +0 -0
  510. wildberries_sdk_orders_fbs/rest.py +263 -0
  511. wildberries_sdk_orders_fbw/__init__.py +88 -0
  512. wildberries_sdk_orders_fbw/api/__init__.py +6 -0
  513. wildberries_sdk_orders_fbw/api/api.py +1153 -0
  514. wildberries_sdk_orders_fbw/api_client.py +804 -0
  515. wildberries_sdk_orders_fbw/api_response.py +21 -0
  516. wildberries_sdk_orders_fbw/configuration.py +608 -0
  517. wildberries_sdk_orders_fbw/exceptions.py +219 -0
  518. wildberries_sdk_orders_fbw/models/__init__.py +35 -0
  519. wildberries_sdk_orders_fbw/models/api_v1_acceptance_coefficients_get401_response.py +102 -0
  520. wildberries_sdk_orders_fbw/models/models_acceptance_coefficient.py +141 -0
  521. wildberries_sdk_orders_fbw/models/models_box.py +99 -0
  522. wildberries_sdk_orders_fbw/models/models_date_filter_request.py +98 -0
  523. wildberries_sdk_orders_fbw/models/models_error_model.py +95 -0
  524. wildberries_sdk_orders_fbw/models/models_good.py +90 -0
  525. wildberries_sdk_orders_fbw/models/models_good_in_box.py +89 -0
  526. wildberries_sdk_orders_fbw/models/models_good_in_supply.py +139 -0
  527. wildberries_sdk_orders_fbw/models/models_handy_supply_status.py +41 -0
  528. wildberries_sdk_orders_fbw/models/models_options_result_model.py +97 -0
  529. wildberries_sdk_orders_fbw/models/models_options_result_model_result_inner.py +110 -0
  530. wildberries_sdk_orders_fbw/models/models_options_result_model_result_inner_error.py +89 -0
  531. wildberries_sdk_orders_fbw/models/models_options_result_model_result_inner_warehouses_inner.py +93 -0
  532. wildberries_sdk_orders_fbw/models/models_supplies_filters_request.py +98 -0
  533. wildberries_sdk_orders_fbw/models/models_supply.py +131 -0
  534. wildberries_sdk_orders_fbw/models/models_supply_details.py +200 -0
  535. wildberries_sdk_orders_fbw/models/models_transit_tariff.py +109 -0
  536. wildberries_sdk_orders_fbw/models/models_volume_tariff.py +91 -0
  537. wildberries_sdk_orders_fbw/models/models_warehouses_result_items.py +97 -0
  538. wildberries_sdk_orders_fbw/py.typed +0 -0
  539. wildberries_sdk_orders_fbw/rest.py +263 -0
  540. wildberries_sdk_products/__init__.py +334 -0
  541. wildberries_sdk_products/api/__init__.py +8 -0
  542. wildberries_sdk_products/api/api.py +3891 -0
  543. wildberries_sdk_products/api/default_api.py +2076 -0
  544. wildberries_sdk_products/api_client.py +804 -0
  545. wildberries_sdk_products/api_response.py +21 -0
  546. wildberries_sdk_products/configuration.py +608 -0
  547. wildberries_sdk_products/exceptions.py +219 -0
  548. wildberries_sdk_products/models/__init__.py +156 -0
  549. wildberries_sdk_products/models/api_v2_buffer_goods_task_get200_response.py +95 -0
  550. wildberries_sdk_products/models/api_v2_buffer_goods_task_get200_response_data.py +107 -0
  551. wildberries_sdk_products/models/api_v2_buffer_tasks_get200_response.py +100 -0
  552. wildberries_sdk_products/models/api_v2_history_goods_task_get200_response.py +91 -0
  553. wildberries_sdk_products/models/api_v2_history_goods_task_get200_response_data.py +97 -0
  554. wildberries_sdk_products/models/api_v2_history_tasks_get200_response.py +100 -0
  555. wildberries_sdk_products/models/api_v2_list_goods_filter_get200_response.py +95 -0
  556. wildberries_sdk_products/models/api_v2_list_goods_filter_get200_response_data.py +95 -0
  557. wildberries_sdk_products/models/api_v2_list_goods_filter_post_request.py +88 -0
  558. wildberries_sdk_products/models/api_v2_list_goods_size_nm_get200_response.py +95 -0
  559. wildberries_sdk_products/models/api_v2_list_goods_size_nm_get200_response_data.py +100 -0
  560. wildberries_sdk_products/models/api_v2_quarantine_goods_get200_response.py +100 -0
  561. wildberries_sdk_products/models/api_v2_quarantine_goods_get200_response_data.py +95 -0
  562. wildberries_sdk_products/models/api_v2_upload_task_club_discount_post_request.py +95 -0
  563. wildberries_sdk_products/models/api_v2_upload_task_post_request.py +95 -0
  564. wildberries_sdk_products/models/api_v2_upload_task_size_post_request.py +95 -0
  565. wildberries_sdk_products/models/api_v3_dbw_warehouses_warehouse_id_contacts_get200_response.py +95 -0
  566. wildberries_sdk_products/models/api_v3_dbw_warehouses_warehouse_id_contacts_get200_response_contacts_inner.py +90 -0
  567. wildberries_sdk_products/models/api_v3_stocks_warehouse_id_delete_request.py +90 -0
  568. wildberries_sdk_products/models/api_v3_stocks_warehouse_id_post200_response.py +95 -0
  569. wildberries_sdk_products/models/api_v3_stocks_warehouse_id_post200_response_stocks_inner.py +91 -0
  570. wildberries_sdk_products/models/api_v3_stocks_warehouse_id_post_request.py +90 -0
  571. wildberries_sdk_products/models/api_v3_stocks_warehouse_id_put406_response.py +96 -0
  572. wildberries_sdk_products/models/api_v3_stocks_warehouse_id_put_request.py +96 -0
  573. wildberries_sdk_products/models/api_v3_stocks_warehouse_id_put_request_stocks_inner.py +92 -0
  574. wildberries_sdk_products/models/api_v3_warehouses_post201_response.py +87 -0
  575. wildberries_sdk_products/models/api_v3_warehouses_post_request.py +90 -0
  576. wildberries_sdk_products/models/brands_response.py +99 -0
  577. wildberries_sdk_products/models/brands_response_brands_inner.py +91 -0
  578. wildberries_sdk_products/models/brands_response_error.py +103 -0
  579. wildberries_sdk_products/models/brands_response_error_errors_inner.py +96 -0
  580. wildberries_sdk_products/models/club_disc_req.py +89 -0
  581. wildberries_sdk_products/models/content_v2_barcodes_post200_response.py +98 -0
  582. wildberries_sdk_products/models/content_v2_barcodes_post_request.py +87 -0
  583. wildberries_sdk_products/models/content_v2_cards_delete_trash_post200_response.py +103 -0
  584. wildberries_sdk_products/models/content_v2_cards_delete_trash_post_request.py +87 -0
  585. wildberries_sdk_products/models/content_v2_cards_limits_get200_response.py +102 -0
  586. wildberries_sdk_products/models/content_v2_cards_limits_get200_response_data.py +89 -0
  587. wildberries_sdk_products/models/content_v2_cards_move_nm_post400_response.py +137 -0
  588. wildberries_sdk_products/models/content_v2_cards_move_nm_post_request.py +137 -0
  589. wildberries_sdk_products/models/content_v2_cards_update_post413_response.py +99 -0
  590. wildberries_sdk_products/models/content_v2_cards_update_post_request_inner.py +122 -0
  591. wildberries_sdk_products/models/content_v2_cards_update_post_request_inner_characteristics_inner.py +94 -0
  592. wildberries_sdk_products/models/content_v2_cards_update_post_request_inner_dimensions.py +93 -0
  593. wildberries_sdk_products/models/content_v2_cards_update_post_request_inner_sizes_inner.py +95 -0
  594. wildberries_sdk_products/models/content_v2_cards_upload_add_post_request.py +97 -0
  595. wildberries_sdk_products/models/content_v2_cards_upload_add_post_request_cards_to_add_inner.py +126 -0
  596. wildberries_sdk_products/models/content_v2_cards_upload_add_post_request_cards_to_add_inner_dimensions.py +93 -0
  597. wildberries_sdk_products/models/content_v2_cards_upload_post_request_inner.py +97 -0
  598. wildberries_sdk_products/models/content_v2_cards_upload_post_request_inner_variants_inner.py +126 -0
  599. wildberries_sdk_products/models/content_v2_cards_upload_post_request_inner_variants_inner_dimensions.py +93 -0
  600. wildberries_sdk_products/models/content_v2_cards_upload_post_request_inner_variants_inner_sizes_inner.py +93 -0
  601. wildberries_sdk_products/models/content_v2_directory_colors_get200_response.py +106 -0
  602. wildberries_sdk_products/models/content_v2_directory_colors_get200_response_data_inner.py +89 -0
  603. wildberries_sdk_products/models/content_v2_directory_countries_get200_response.py +106 -0
  604. wildberries_sdk_products/models/content_v2_directory_countries_get200_response_data_inner.py +89 -0
  605. wildberries_sdk_products/models/content_v2_directory_kinds_get200_response.py +98 -0
  606. wildberries_sdk_products/models/content_v2_directory_seasons_get200_response.py +98 -0
  607. wildberries_sdk_products/models/content_v2_directory_tnved_get200_response.py +106 -0
  608. wildberries_sdk_products/models/content_v2_directory_tnved_get200_response_data_inner.py +89 -0
  609. wildberries_sdk_products/models/content_v2_directory_vat_get200_response.py +98 -0
  610. wildberries_sdk_products/models/content_v2_get_cards_list_post200_response.py +101 -0
  611. wildberries_sdk_products/models/content_v2_get_cards_list_post200_response_cards_inner.py +163 -0
  612. wildberries_sdk_products/models/content_v2_get_cards_list_post200_response_cards_inner_characteristics_inner.py +96 -0
  613. wildberries_sdk_products/models/content_v2_get_cards_list_post200_response_cards_inner_dimensions.py +95 -0
  614. wildberries_sdk_products/models/content_v2_get_cards_list_post200_response_cards_inner_photos_inner.py +95 -0
  615. wildberries_sdk_products/models/content_v2_get_cards_list_post200_response_cards_inner_sizes_inner.py +93 -0
  616. wildberries_sdk_products/models/content_v2_get_cards_list_post200_response_cards_inner_tags_inner.py +91 -0
  617. wildberries_sdk_products/models/content_v2_get_cards_list_post200_response_cards_inner_wholesale.py +89 -0
  618. wildberries_sdk_products/models/content_v2_get_cards_list_post200_response_cursor.py +91 -0
  619. wildberries_sdk_products/models/content_v2_get_cards_list_post_request.py +91 -0
  620. wildberries_sdk_products/models/content_v2_get_cards_list_post_request_settings.py +103 -0
  621. wildberries_sdk_products/models/content_v2_get_cards_list_post_request_settings_cursor.py +91 -0
  622. wildberries_sdk_products/models/content_v2_get_cards_list_post_request_settings_filter.py +99 -0
  623. wildberries_sdk_products/models/content_v2_get_cards_list_post_request_settings_sort.py +87 -0
  624. wildberries_sdk_products/models/content_v2_get_cards_trash_post200_response.py +101 -0
  625. wildberries_sdk_products/models/content_v2_get_cards_trash_post200_response_cards_inner.py +146 -0
  626. wildberries_sdk_products/models/content_v2_get_cards_trash_post200_response_cards_inner_sizes_inner.py +93 -0
  627. wildberries_sdk_products/models/content_v2_get_cards_trash_post200_response_cursor.py +91 -0
  628. wildberries_sdk_products/models/content_v2_get_cards_trash_post_request.py +91 -0
  629. wildberries_sdk_products/models/content_v2_get_cards_trash_post_request_settings.py +103 -0
  630. wildberries_sdk_products/models/content_v2_get_cards_trash_post_request_settings_cursor.py +91 -0
  631. wildberries_sdk_products/models/content_v2_get_cards_trash_post_request_settings_filter.py +87 -0
  632. wildberries_sdk_products/models/content_v2_get_cards_trash_post_request_settings_sort.py +87 -0
  633. wildberries_sdk_products/models/content_v2_object_all_get200_response.py +106 -0
  634. wildberries_sdk_products/models/content_v2_object_all_get200_response_data_inner.py +93 -0
  635. wildberries_sdk_products/models/content_v2_object_charcs_subject_id_get200_response.py +106 -0
  636. wildberries_sdk_products/models/content_v2_object_charcs_subject_id_get200_response_data_inner.py +103 -0
  637. wildberries_sdk_products/models/content_v2_object_parent_all_get200_response.py +106 -0
  638. wildberries_sdk_products/models/content_v2_object_parent_all_get200_response_data_inner.py +91 -0
  639. wildberries_sdk_products/models/content_v2_object_parent_all_get401_response.py +102 -0
  640. wildberries_sdk_products/models/content_v2_tag_id_patch_request.py +89 -0
  641. wildberries_sdk_products/models/content_v2_tag_nomenclature_link_post_request.py +89 -0
  642. wildberries_sdk_products/models/content_v2_tag_post_request.py +89 -0
  643. wildberries_sdk_products/models/content_v2_tags_get200_response.py +102 -0
  644. wildberries_sdk_products/models/content_v2_tags_get200_response_data.py +91 -0
  645. wildberries_sdk_products/models/content_v3_media_file_post200_response.py +98 -0
  646. wildberries_sdk_products/models/content_v3_media_save_post_request.py +89 -0
  647. wildberries_sdk_products/models/error.py +96 -0
  648. wildberries_sdk_products/models/good.py +91 -0
  649. wildberries_sdk_products/models/good_buffer_history.py +110 -0
  650. wildberries_sdk_products/models/good_history.py +110 -0
  651. wildberries_sdk_products/models/goods_list.py +109 -0
  652. wildberries_sdk_products/models/goods_list_sizes_inner.py +95 -0
  653. wildberries_sdk_products/models/media_errors.py +103 -0
  654. wildberries_sdk_products/models/models_error_brand.py +89 -0
  655. wildberries_sdk_products/models/models_error_subject.py +89 -0
  656. wildberries_sdk_products/models/models_error_table_list_public_resp_v2.py +101 -0
  657. wildberries_sdk_products/models/models_error_table_list_public_resp_v2_item.py +121 -0
  658. wildberries_sdk_products/models/office.py +130 -0
  659. wildberries_sdk_products/models/quarantine_goods.py +108 -0
  660. wildberries_sdk_products/models/request_already_exists_error.py +95 -0
  661. wildberries_sdk_products/models/request_already_exists_error_data.py +89 -0
  662. wildberries_sdk_products/models/request_move_nms_imt_conn.py +89 -0
  663. wildberries_sdk_products/models/request_move_nms_imt_disconn.py +87 -0
  664. wildberries_sdk_products/models/request_public_viewer_public_errors_table_list_v2.py +97 -0
  665. wildberries_sdk_products/models/response_body_content_error400.py +103 -0
  666. wildberries_sdk_products/models/response_body_content_error403.py +103 -0
  667. wildberries_sdk_products/models/response_card_create.py +102 -0
  668. wildberries_sdk_products/models/response_card_create_additional_errors.py +154 -0
  669. wildberries_sdk_products/models/response_card_create_additional_errors_one_of.py +87 -0
  670. wildberries_sdk_products/models/response_card_create_additional_errors_one_of1.py +87 -0
  671. wildberries_sdk_products/models/response_content_error.py +103 -0
  672. wildberries_sdk_products/models/response_error.py +96 -0
  673. wildberries_sdk_products/models/response_incorrect_date.py +87 -0
  674. wildberries_sdk_products/models/response_public_viewer_public_errors_table_list_v2.py +102 -0
  675. wildberries_sdk_products/models/size_good.py +109 -0
  676. wildberries_sdk_products/models/size_good_req.py +91 -0
  677. wildberries_sdk_products/models/stocks_warehouse_error_inner.py +104 -0
  678. wildberries_sdk_products/models/stocks_warehouse_error_inner_data_inner.py +89 -0
  679. wildberries_sdk_products/models/store_contact_request_body.py +96 -0
  680. wildberries_sdk_products/models/store_contact_request_body_contacts_inner.py +90 -0
  681. wildberries_sdk_products/models/supplier_task_metadata.py +98 -0
  682. wildberries_sdk_products/models/supplier_task_metadata_buffer.py +98 -0
  683. wildberries_sdk_products/models/swagger_public_errors_cursor_input.py +93 -0
  684. wildberries_sdk_products/models/swagger_public_errors_order_v2.py +87 -0
  685. wildberries_sdk_products/models/task_created.py +95 -0
  686. wildberries_sdk_products/models/task_created_data.py +89 -0
  687. wildberries_sdk_products/models/viewer_contract_public_errors_cursor_output.py +92 -0
  688. wildberries_sdk_products/models/warehouse.py +119 -0
  689. wildberries_sdk_products/py.typed +0 -0
  690. wildberries_sdk_products/rest.py +263 -0
  691. wildberries_sdk_promotion/__init__.py +376 -0
  692. wildberries_sdk_promotion/api/__init__.py +6 -0
  693. wildberries_sdk_promotion/api/api.py +9087 -0
  694. wildberries_sdk_promotion/api/default_api.py +5738 -0
  695. wildberries_sdk_promotion/api_client.py +804 -0
  696. wildberries_sdk_promotion/api_response.py +21 -0
  697. wildberries_sdk_promotion/configuration.py +608 -0
  698. wildberries_sdk_promotion/exceptions.py +219 -0
  699. wildberries_sdk_promotion/models/__init__.py +179 -0
  700. wildberries_sdk_promotion/models/adv_v0_auction_bids_patch200_response.py +95 -0
  701. wildberries_sdk_promotion/models/adv_v0_auction_bids_patch200_response_bids_inner.py +97 -0
  702. wildberries_sdk_promotion/models/adv_v0_auction_bids_patch200_response_bids_inner_nm_bids_inner.py +91 -0
  703. wildberries_sdk_promotion/models/adv_v0_auction_bids_patch_request.py +96 -0
  704. wildberries_sdk_promotion/models/adv_v0_auction_bids_patch_request_bids_inner.py +98 -0
  705. wildberries_sdk_promotion/models/adv_v0_auction_bids_patch_request_bids_inner_nm_bids_inner.py +98 -0
  706. wildberries_sdk_promotion/models/adv_v0_auction_nms_patch200_response.py +95 -0
  707. wildberries_sdk_promotion/models/adv_v0_auction_nms_patch200_response_nms_inner.py +93 -0
  708. wildberries_sdk_promotion/models/adv_v0_auction_nms_patch200_response_nms_inner_nms.py +89 -0
  709. wildberries_sdk_promotion/models/adv_v0_auction_nms_patch_request.py +96 -0
  710. wildberries_sdk_promotion/models/adv_v0_auction_nms_patch_request_nms_inner.py +93 -0
  711. wildberries_sdk_promotion/models/adv_v0_auction_nms_patch_request_nms_inner_nms.py +89 -0
  712. wildberries_sdk_promotion/models/adv_v0_auction_placements_put_request.py +96 -0
  713. wildberries_sdk_promotion/models/adv_v0_auction_placements_put_request_placements_inner.py +93 -0
  714. wildberries_sdk_promotion/models/adv_v0_auction_placements_put_request_placements_inner_placements.py +89 -0
  715. wildberries_sdk_promotion/models/adv_v0_bids_min_post200_response.py +95 -0
  716. wildberries_sdk_promotion/models/adv_v0_bids_min_post200_response_bids_inner.py +97 -0
  717. wildberries_sdk_promotion/models/adv_v0_bids_min_post200_response_bids_inner_bids_inner.py +90 -0
  718. wildberries_sdk_promotion/models/adv_v0_bids_min_post_request.py +108 -0
  719. wildberries_sdk_promotion/models/adv_v0_bids_patch400_response.py +107 -0
  720. wildberries_sdk_promotion/models/adv_v0_bids_patch400_response_errors_inner.py +89 -0
  721. wildberries_sdk_promotion/models/adv_v0_bids_patch_request.py +96 -0
  722. wildberries_sdk_promotion/models/adv_v0_config_get200_response.py +105 -0
  723. wildberries_sdk_promotion/models/adv_v0_config_get200_response_config_inner.py +91 -0
  724. wildberries_sdk_promotion/models/adv_v0_rename_post_request.py +89 -0
  725. wildberries_sdk_promotion/models/adv_v1_advert_get200_response.py +114 -0
  726. wildberries_sdk_promotion/models/adv_v1_advert_get200_response_extended.py +109 -0
  727. wildberries_sdk_promotion/models/adv_v1_advert_get200_response_items_inner.py +144 -0
  728. wildberries_sdk_promotion/models/adv_v1_advert_get200_response_items_inner_show_hours_inner.py +89 -0
  729. wildberries_sdk_promotion/models/adv_v1_adverts_get200_response_inner.py +100 -0
  730. wildberries_sdk_promotion/models/adv_v1_auto_updatenm_post_request.py +89 -0
  731. wildberries_sdk_promotion/models/adv_v1_balance_get200_response.py +101 -0
  732. wildberries_sdk_promotion/models/adv_v1_balance_get200_response_cashbacks_inner.py +91 -0
  733. wildberries_sdk_promotion/models/adv_v1_budget_deposit_post400_response.py +87 -0
  734. wildberries_sdk_promotion/models/adv_v1_budget_deposit_post_request.py +105 -0
  735. wildberries_sdk_promotion/models/adv_v1_budget_get200_response.py +91 -0
  736. wildberries_sdk_promotion/models/adv_v1_count_get200_response.py +93 -0
  737. wildberries_sdk_promotion/models/adv_v1_count_get200_response_adverts.py +91 -0
  738. wildberries_sdk_promotion/models/adv_v1_payments_get200_response_inner.py +97 -0
  739. wildberries_sdk_promotion/models/adv_v1_promotion_count_get200_response.py +102 -0
  740. wildberries_sdk_promotion/models/adv_v1_promotion_count_get200_response_adverts_inner.py +101 -0
  741. wildberries_sdk_promotion/models/adv_v1_promotion_count_get200_response_adverts_inner_advert_list_inner.py +90 -0
  742. wildberries_sdk_promotion/models/adv_v1_promotion_count_get401_response.py +102 -0
  743. wildberries_sdk_promotion/models/adv_v1_search_set_excluded_post_request.py +87 -0
  744. wildberries_sdk_promotion/models/adv_v1_search_set_plus_post_request.py +87 -0
  745. wildberries_sdk_promotion/models/adv_v1_stat_words_get200_response.py +101 -0
  746. wildberries_sdk_promotion/models/adv_v1_stat_words_get200_response_stat_inner.py +112 -0
  747. wildberries_sdk_promotion/models/adv_v1_stat_words_get200_response_words.py +105 -0
  748. wildberries_sdk_promotion/models/adv_v1_stat_words_get200_response_words_keywords_inner.py +89 -0
  749. wildberries_sdk_promotion/models/adv_v1_stats_post200_response_inner.py +151 -0
  750. wildberries_sdk_promotion/models/adv_v1_supplier_subjects_get200_response_inner.py +91 -0
  751. wildberries_sdk_promotion/models/adv_v1_upd_get200_response_inner.py +106 -0
  752. wildberries_sdk_promotion/models/adv_v2_auto_stat_words_get200_response.py +97 -0
  753. wildberries_sdk_promotion/models/adv_v2_auto_stat_words_get200_response_clusters_inner.py +91 -0
  754. wildberries_sdk_promotion/models/adv_v2_fullstats_post200_response.py +145 -0
  755. wildberries_sdk_promotion/models/adv_v2_fullstats_post_request_inner.py +151 -0
  756. wildberries_sdk_promotion/models/adv_v2_seacat_save_ad_post_request.py +126 -0
  757. wildberries_sdk_promotion/models/adv_v2_supplier_nms_post200_response_inner.py +91 -0
  758. wildberries_sdk_promotion/models/advert_bids_kopecks.py +89 -0
  759. wildberries_sdk_promotion/models/advert_nms_settings.py +99 -0
  760. wildberries_sdk_promotion/models/advert_settings.py +102 -0
  761. wildberries_sdk_promotion/models/advert_subject.py +89 -0
  762. wildberries_sdk_promotion/models/api_advert_v1_bids_min_post200_response.py +95 -0
  763. wildberries_sdk_promotion/models/api_advert_v1_bids_min_post200_response_bids_inner.py +97 -0
  764. wildberries_sdk_promotion/models/api_advert_v1_bids_min_post200_response_bids_inner_bids_inner.py +90 -0
  765. wildberries_sdk_promotion/models/api_advert_v1_bids_patch200_response.py +95 -0
  766. wildberries_sdk_promotion/models/api_advert_v1_bids_patch200_response_bids_inner.py +97 -0
  767. wildberries_sdk_promotion/models/api_advert_v1_bids_patch200_response_bids_inner_nm_bids_inner.py +91 -0
  768. wildberries_sdk_promotion/models/api_advert_v1_bids_patch_request.py +96 -0
  769. wildberries_sdk_promotion/models/api_advert_v1_bids_patch_request_bids_inner.py +98 -0
  770. wildberries_sdk_promotion/models/api_advert_v1_bids_patch_request_bids_inner_nm_bids_inner.py +98 -0
  771. wildberries_sdk_promotion/models/api_v1_calendar_promotions_details_get200_response.py +91 -0
  772. wildberries_sdk_promotion/models/api_v1_calendar_promotions_details_get200_response_data.py +95 -0
  773. wildberries_sdk_promotion/models/api_v1_calendar_promotions_details_get200_response_data_promotions_inner.py +131 -0
  774. wildberries_sdk_promotion/models/api_v1_calendar_promotions_details_get200_response_data_promotions_inner_ranging_inner.py +92 -0
  775. wildberries_sdk_promotion/models/api_v1_calendar_promotions_get200_response.py +91 -0
  776. wildberries_sdk_promotion/models/api_v1_calendar_promotions_get200_response_data.py +95 -0
  777. wildberries_sdk_promotion/models/api_v1_calendar_promotions_get200_response_data_promotions_inner.py +106 -0
  778. wildberries_sdk_promotion/models/api_v1_calendar_promotions_get400_response.py +87 -0
  779. wildberries_sdk_promotion/models/api_v1_calendar_promotions_nomenclatures_get200_response.py +91 -0
  780. wildberries_sdk_promotion/models/api_v1_calendar_promotions_nomenclatures_get200_response_data.py +95 -0
  781. wildberries_sdk_promotion/models/api_v1_calendar_promotions_nomenclatures_get400_response.py +87 -0
  782. wildberries_sdk_promotion/models/api_v1_calendar_promotions_nomenclatures_get422_response.py +87 -0
  783. wildberries_sdk_promotion/models/api_v1_calendar_promotions_upload_post200_response.py +91 -0
  784. wildberries_sdk_promotion/models/api_v1_calendar_promotions_upload_post200_response_data.py +89 -0
  785. wildberries_sdk_promotion/models/api_v1_calendar_promotions_upload_post422_response.py +87 -0
  786. wildberries_sdk_promotion/models/api_v1_calendar_promotions_upload_post_request.py +91 -0
  787. wildberries_sdk_promotion/models/api_v1_calendar_promotions_upload_post_request_data.py +92 -0
  788. wildberries_sdk_promotion/models/auction_advert_bids.py +89 -0
  789. wildberries_sdk_promotion/models/auction_advert_nms_settings.py +99 -0
  790. wildberries_sdk_promotion/models/auction_advert_settings.py +102 -0
  791. wildberries_sdk_promotion/models/auction_advert_subject.py +89 -0
  792. wildberries_sdk_promotion/models/booster_stats_inner.py +92 -0
  793. wildberries_sdk_promotion/models/booster_stats_v3_inner.py +92 -0
  794. wildberries_sdk_promotion/models/daily_stats1_inner.py +98 -0
  795. wildberries_sdk_promotion/models/daily_stats1_inner_app_type_stats_inner.py +97 -0
  796. wildberries_sdk_promotion/models/daily_stats2_inner.py +98 -0
  797. wildberries_sdk_promotion/models/daily_stats2_inner_app_type_stats_inner.py +97 -0
  798. wildberries_sdk_promotion/models/days_inner.py +118 -0
  799. wildberries_sdk_promotion/models/days_inner_apps_inner.py +117 -0
  800. wildberries_sdk_promotion/models/days_inner_apps_inner_nm_inner.py +109 -0
  801. wildberries_sdk_promotion/models/days_v3_inner.py +120 -0
  802. wildberries_sdk_promotion/models/days_v3_inner_apps_inner.py +126 -0
  803. wildberries_sdk_promotion/models/days_v3_inner_apps_inner_nms_inner.py +111 -0
  804. wildberries_sdk_promotion/models/error_response.py +89 -0
  805. wildberries_sdk_promotion/models/full_stats_error.py +95 -0
  806. wildberries_sdk_promotion/models/full_stats_item.py +129 -0
  807. wildberries_sdk_promotion/models/get_adverts.py +95 -0
  808. wildberries_sdk_promotion/models/get_adverts_adverts_inner.py +120 -0
  809. wildberries_sdk_promotion/models/get_auction_adverts.py +95 -0
  810. wildberries_sdk_promotion/models/get_auction_adverts_adverts_inner.py +120 -0
  811. wildberries_sdk_promotion/models/model400_response.py +87 -0
  812. wildberries_sdk_promotion/models/placement_type.py +38 -0
  813. wildberries_sdk_promotion/models/promotions_goods_list.py +99 -0
  814. wildberries_sdk_promotion/models/request_with_campaign_id.py +87 -0
  815. wildberries_sdk_promotion/models/request_with_date.py +90 -0
  816. wildberries_sdk_promotion/models/request_with_interval.py +93 -0
  817. wildberries_sdk_promotion/models/request_with_interval_interval.py +90 -0
  818. wildberries_sdk_promotion/models/response400.py +95 -0
  819. wildberries_sdk_promotion/models/response_adv_error1.py +87 -0
  820. wildberries_sdk_promotion/models/response_info_advert_type8.py +112 -0
  821. wildberries_sdk_promotion/models/response_info_advert_type8_auto_params.py +131 -0
  822. wildberries_sdk_promotion/models/response_info_advert_type8_auto_params_active.py +91 -0
  823. wildberries_sdk_promotion/models/response_info_advert_type8_auto_params_menus_inner.py +89 -0
  824. wildberries_sdk_promotion/models/response_info_advert_type8_auto_params_nm_cpm_inner.py +89 -0
  825. wildberries_sdk_promotion/models/response_info_advert_type8_auto_params_sets_inner.py +89 -0
  826. wildberries_sdk_promotion/models/response_info_advert_type8_auto_params_subject.py +89 -0
  827. wildberries_sdk_promotion/models/response_with_date_inner.py +130 -0
  828. wildberries_sdk_promotion/models/response_with_interval_inner.py +133 -0
  829. wildberries_sdk_promotion/models/response_with_interval_inner_interval.py +90 -0
  830. wildberries_sdk_promotion/models/response_with_return.py +87 -0
  831. wildberries_sdk_promotion/models/standardized_batch_error.py +95 -0
  832. wildberries_sdk_promotion/models/stat.py +95 -0
  833. wildberries_sdk_promotion/models/stat_date.py +98 -0
  834. wildberries_sdk_promotion/models/stat_interval.py +101 -0
  835. wildberries_sdk_promotion/models/stat_interval_interval.py +90 -0
  836. wildberries_sdk_promotion/models/stats1_inner.py +93 -0
  837. wildberries_sdk_promotion/models/stats2_inner.py +97 -0
  838. wildberries_sdk_promotion/models/stats_blok1.py +136 -0
  839. wildberries_sdk_promotion/models/stats_blok2.py +136 -0
  840. wildberries_sdk_promotion/models/timestamps.py +99 -0
  841. wildberries_sdk_promotion/models/v0_advert_multi_bid_item.py +89 -0
  842. wildberries_sdk_promotion/models/v0_advert_multibid.py +97 -0
  843. wildberries_sdk_promotion/models/v0_get_config_categories_response.py +91 -0
  844. wildberries_sdk_promotion/models/v0_get_norm_query_bids_item.py +93 -0
  845. wildberries_sdk_promotion/models/v0_get_norm_query_bids_request.py +96 -0
  846. wildberries_sdk_promotion/models/v0_get_norm_query_bids_request_item.py +89 -0
  847. wildberries_sdk_promotion/models/v0_get_norm_query_bids_response.py +95 -0
  848. wildberries_sdk_promotion/models/v0_get_norm_query_minus_request.py +96 -0
  849. wildberries_sdk_promotion/models/v0_get_norm_query_minus_request_item.py +89 -0
  850. wildberries_sdk_promotion/models/v0_get_norm_query_minus_response.py +95 -0
  851. wildberries_sdk_promotion/models/v0_get_norm_query_minus_response_item.py +91 -0
  852. wildberries_sdk_promotion/models/v0_get_norm_query_stats_item.py +100 -0
  853. wildberries_sdk_promotion/models/v0_get_norm_query_stats_item_stat.py +103 -0
  854. wildberries_sdk_promotion/models/v0_get_norm_query_stats_request.py +101 -0
  855. wildberries_sdk_promotion/models/v0_get_norm_query_stats_request_items_inner.py +89 -0
  856. wildberries_sdk_promotion/models/v0_get_norm_query_stats_response.py +95 -0
  857. wildberries_sdk_promotion/models/v0_keywords_statistic.py +95 -0
  858. wildberries_sdk_promotion/models/v0_keywords_statistics.py +98 -0
  859. wildberries_sdk_promotion/models/v0_keywords_statistics_response.py +95 -0
  860. wildberries_sdk_promotion/models/v0_set_minus_norm_query_request.py +92 -0
  861. wildberries_sdk_promotion/models/v0_set_norm_query_bids_request.py +96 -0
  862. wildberries_sdk_promotion/models/v0_set_norm_query_bids_request_item.py +93 -0
  863. wildberries_sdk_promotion/py.typed +0 -0
  864. wildberries_sdk_promotion/rest.py +263 -0
  865. wildberries_sdk_reports/__init__.py +168 -0
  866. wildberries_sdk_reports/api/__init__.py +10 -0
  867. wildberries_sdk_reports/api/api.py +350 -0
  868. wildberries_sdk_reports/api/c_api.py +361 -0
  869. wildberries_sdk_reports/api_client.py +804 -0
  870. wildberries_sdk_reports/api_response.py +21 -0
  871. wildberries_sdk_reports/configuration.py +608 -0
  872. wildberries_sdk_reports/exceptions.py +219 -0
  873. wildberries_sdk_reports/models/__init__.py +71 -0
  874. wildberries_sdk_reports/models/api_v1_acceptance_report_tasks_task_id_download_get200_response_inner.py +100 -0
  875. wildberries_sdk_reports/models/api_v1_analytics_antifraud_details_get200_response.py +95 -0
  876. wildberries_sdk_reports/models/api_v1_analytics_antifraud_details_get200_response_details_inner.py +95 -0
  877. wildberries_sdk_reports/models/api_v1_analytics_banned_products_blocked_get200_response.py +95 -0
  878. wildberries_sdk_reports/models/api_v1_analytics_banned_products_blocked_get200_response_report_inner.py +95 -0
  879. wildberries_sdk_reports/models/api_v1_analytics_banned_products_blocked_get400_response.py +95 -0
  880. wildberries_sdk_reports/models/api_v1_analytics_banned_products_shadowed_get200_response.py +95 -0
  881. wildberries_sdk_reports/models/api_v1_analytics_banned_products_shadowed_get200_response_report_inner.py +95 -0
  882. wildberries_sdk_reports/models/api_v1_analytics_brand_share_brands_get200_response.py +87 -0
  883. wildberries_sdk_reports/models/api_v1_analytics_brand_share_get200_response.py +95 -0
  884. wildberries_sdk_reports/models/api_v1_analytics_brand_share_get200_response_report_inner.py +93 -0
  885. wildberries_sdk_reports/models/api_v1_analytics_brand_share_parent_subjects_get200_response.py +95 -0
  886. wildberries_sdk_reports/models/api_v1_analytics_brand_share_parent_subjects_get200_response_data_inner.py +89 -0
  887. wildberries_sdk_reports/models/api_v1_analytics_characteristics_change_get200_response.py +95 -0
  888. wildberries_sdk_reports/models/api_v1_analytics_characteristics_change_get200_response_report_inner.py +112 -0
  889. wildberries_sdk_reports/models/api_v1_analytics_goods_labeling_get200_response.py +95 -0
  890. wildberries_sdk_reports/models/api_v1_analytics_goods_labeling_get200_response_report_inner.py +100 -0
  891. wildberries_sdk_reports/models/api_v1_analytics_goods_return_get200_response.py +95 -0
  892. wildberries_sdk_reports/models/api_v1_analytics_goods_return_get200_response_report_inner.py +149 -0
  893. wildberries_sdk_reports/models/api_v1_analytics_incorrect_attachments_get200_response.py +95 -0
  894. wildberries_sdk_reports/models/api_v1_analytics_incorrect_attachments_get200_response_report_inner.py +97 -0
  895. wildberries_sdk_reports/models/api_v1_analytics_region_sale_get200_response.py +95 -0
  896. wildberries_sdk_reports/models/api_v1_analytics_region_sale_get200_response_report_inner.py +103 -0
  897. wildberries_sdk_reports/models/api_v1_analytics_warehouse_measurements_get200_response.py +137 -0
  898. wildberries_sdk_reports/models/api_v1_supplier_incomes_get400_response.py +137 -0
  899. wildberries_sdk_reports/models/api_v1_supplier_incomes_get401_response.py +102 -0
  900. wildberries_sdk_reports/models/api_v1_warehouse_remains_tasks_task_id_download_get200_response_inner.py +109 -0
  901. wildberries_sdk_reports/models/api_v1_warehouse_remains_tasks_task_id_download_get200_response_inner_warehouses_inner.py +89 -0
  902. wildberries_sdk_reports/models/create_task_response.py +91 -0
  903. wildberries_sdk_reports/models/create_task_response_data.py +87 -0
  904. wildberries_sdk_reports/models/excise_report_request.py +98 -0
  905. wildberries_sdk_reports/models/excise_report_response.py +91 -0
  906. wildberries_sdk_reports/models/get_deductions200_response.py +91 -0
  907. wildberries_sdk_reports/models/get_deductions200_response_data.py +97 -0
  908. wildberries_sdk_reports/models/get_deductions200_response_data_reports_inner.py +116 -0
  909. wildberries_sdk_reports/models/get_tasks_response.py +91 -0
  910. wildberries_sdk_reports/models/get_tasks_response_data.py +89 -0
  911. wildberries_sdk_reports/models/incomes_item.py +123 -0
  912. wildberries_sdk_reports/models/measurement.py +91 -0
  913. wildberries_sdk_reports/models/measurement_data.py +97 -0
  914. wildberries_sdk_reports/models/measurement_data_reports_inner.py +118 -0
  915. wildberries_sdk_reports/models/model4xx_response.py +93 -0
  916. wildberries_sdk_reports/models/models_excise_report_response.py +95 -0
  917. wildberries_sdk_reports/models/models_excise_report_response_data_inner.py +109 -0
  918. wildberries_sdk_reports/models/orders_item.py +151 -0
  919. wildberries_sdk_reports/models/penalty.py +91 -0
  920. wildberries_sdk_reports/models/penalty_data.py +97 -0
  921. wildberries_sdk_reports/models/penalty_data_reports_inner.py +122 -0
  922. wildberries_sdk_reports/models/response400_retentions.py +95 -0
  923. wildberries_sdk_reports/models/response403_retentions.py +95 -0
  924. wildberries_sdk_reports/models/response_error_statistics.py +87 -0
  925. wildberries_sdk_reports/models/response_error_statistics2.py +87 -0
  926. wildberries_sdk_reports/models/response_paid_storage_inner.py +131 -0
  927. wildberries_sdk_reports/models/sales_item.py +153 -0
  928. wildberries_sdk_reports/models/stocks_item.py +123 -0
  929. wildberries_sdk_reports/py.typed +0 -0
  930. wildberries_sdk_reports/rest.py +263 -0
  931. wildberries_sdk_tariffs/__init__.py +104 -0
  932. wildberries_sdk_tariffs/api/__init__.py +6 -0
  933. wildberries_sdk_tariffs/api/api.py +1151 -0
  934. wildberries_sdk_tariffs/api/default_api.py +315 -0
  935. wildberries_sdk_tariffs/api_client.py +804 -0
  936. wildberries_sdk_tariffs/api_response.py +21 -0
  937. wildberries_sdk_tariffs/configuration.py +608 -0
  938. wildberries_sdk_tariffs/exceptions.py +219 -0
  939. wildberries_sdk_tariffs/models/__init__.py +43 -0
  940. wildberries_sdk_tariffs/models/api_v1_tariffs_commission_get200_response.py +179 -0
  941. wildberries_sdk_tariffs/models/api_v1_tariffs_commission_get401_response.py +102 -0
  942. wildberries_sdk_tariffs/models/bad_request.py +93 -0
  943. wildberries_sdk_tariffs/models/commission.py +95 -0
  944. wildberries_sdk_tariffs/models/commission_china.py +95 -0
  945. wildberries_sdk_tariffs/models/commission_china_report_inner.py +95 -0
  946. wildberries_sdk_tariffs/models/commission_report_inner.py +105 -0
  947. wildberries_sdk_tariffs/models/commission_turkey.py +95 -0
  948. wildberries_sdk_tariffs/models/commission_turkey_report_inner.py +95 -0
  949. wildberries_sdk_tariffs/models/commission_uae.py +95 -0
  950. wildberries_sdk_tariffs/models/commission_uae_report_inner.py +95 -0
  951. wildberries_sdk_tariffs/models/commission_uzbekistan.py +95 -0
  952. wildberries_sdk_tariffs/models/commission_uzbekistan_report_inner.py +95 -0
  953. wildberries_sdk_tariffs/models/models_acceptance_coefficient.py +141 -0
  954. wildberries_sdk_tariffs/models/models_error_model.py +95 -0
  955. wildberries_sdk_tariffs/models/models_return_tariffs_response.py +91 -0
  956. wildberries_sdk_tariffs/models/models_tariffs_box_response.py +91 -0
  957. wildberries_sdk_tariffs/models/models_tariffs_pallet_response.py +91 -0
  958. wildberries_sdk_tariffs/models/models_warehouse_box_rates.py +107 -0
  959. wildberries_sdk_tariffs/models/models_warehouse_pallet_rates.py +97 -0
  960. wildberries_sdk_tariffs/models/models_warehouse_return_rates.py +107 -0
  961. wildberries_sdk_tariffs/models/models_warehouses_box_rates.py +104 -0
  962. wildberries_sdk_tariffs/models/models_warehouses_pallet_rates.py +104 -0
  963. wildberries_sdk_tariffs/models/models_warehouses_return_rates.py +106 -0
  964. wildberries_sdk_tariffs/models/return_tariffs_response.py +91 -0
  965. wildberries_sdk_tariffs/models/tariffs_box_response.py +91 -0
  966. wildberries_sdk_tariffs/models/tariffs_pallet_response.py +91 -0
  967. wildberries_sdk_tariffs/py.typed +0 -0
  968. wildberries_sdk_tariffs/rest.py +263 -0
  969. wildberries_sdk_wbd/__init__.py +128 -0
  970. wildberries_sdk_wbd/api/__init__.py +6 -0
  971. wildberries_sdk_wbd/api/api.py +1611 -0
  972. wildberries_sdk_wbd/api/default_api.py +5233 -0
  973. wildberries_sdk_wbd/api_client.py +804 -0
  974. wildberries_sdk_wbd/api_response.py +21 -0
  975. wildberries_sdk_wbd/configuration.py +608 -0
  976. wildberries_sdk_wbd/exceptions.py +219 -0
  977. wildberries_sdk_wbd/models/__init__.py +55 -0
  978. wildberries_sdk_wbd/models/catalog_node.py +119 -0
  979. wildberries_sdk_wbd/models/chunk_part.py +89 -0
  980. wildberries_sdk_wbd/models/content.py +138 -0
  981. wildberries_sdk_wbd/models/content_delete_request.py +87 -0
  982. wildberries_sdk_wbd/models/content_files_inner.py +91 -0
  983. wildberries_sdk_wbd/models/content_list.py +97 -0
  984. wildberries_sdk_wbd/models/content_meta.py +116 -0
  985. wildberries_sdk_wbd/models/get_full_catalog_response.py +97 -0
  986. wildberries_sdk_wbd/models/illustration_response.py +89 -0
  987. wildberries_sdk_wbd/models/key_redeemed_response.py +99 -0
  988. wildberries_sdk_wbd/models/key_response.py +105 -0
  989. wildberries_sdk_wbd/models/keys_count_response.py +93 -0
  990. wildberries_sdk_wbd/models/keys_delete_response.py +95 -0
  991. wildberries_sdk_wbd/models/keys_delete_response_statuses_inner.py +93 -0
  992. wildberries_sdk_wbd/models/keys_load_request.py +90 -0
  993. wildberries_sdk_wbd/models/keys_redeemed_response_list.py +97 -0
  994. wildberries_sdk_wbd/models/keys_response_list.py +97 -0
  995. wildberries_sdk_wbd/models/offer_content.py +117 -0
  996. wildberries_sdk_wbd/models/offer_content_files_inner.py +91 -0
  997. wildberries_sdk_wbd/models/offer_create_content.py +89 -0
  998. wildberries_sdk_wbd/models/offer_create_request.py +148 -0
  999. wildberries_sdk_wbd/models/offer_meta_request.py +100 -0
  1000. wildberries_sdk_wbd/models/offer_price_update_request.py +89 -0
  1001. wildberries_sdk_wbd/models/offer_response.py +183 -0
  1002. wildberries_sdk_wbd/models/offer_response_list.py +97 -0
  1003. wildberries_sdk_wbd/models/offer_status_update_request.py +94 -0
  1004. wildberries_sdk_wbd/models/offer_update_request.py +145 -0
  1005. wildberries_sdk_wbd/models/problem_details400.py +108 -0
  1006. wildberries_sdk_wbd/models/problem_details401.py +97 -0
  1007. wildberries_sdk_wbd/models/problem_details403.py +95 -0
  1008. wildberries_sdk_wbd/models/problem_details404.py +97 -0
  1009. wildberries_sdk_wbd/models/problem_details500.py +106 -0
  1010. wildberries_sdk_wbd/models/problem_details502.py +106 -0
  1011. wildberries_sdk_wbd/models/tag.py +93 -0
  1012. wildberries_sdk_wbd/models/update_content_request.py +100 -0
  1013. wildberries_sdk_wbd/models/upload_chunk_response.py +89 -0
  1014. wildberries_sdk_wbd/models/upload_gallery_response.py +87 -0
  1015. wildberries_sdk_wbd/models/upload_init_request.py +129 -0
  1016. wildberries_sdk_wbd/models/upload_init_response.py +89 -0
  1017. wildberries_sdk_wbd/py.typed +0 -0
  1018. wildberries_sdk_wbd/rest.py +263 -0
@@ -0,0 +1,3891 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Работа с товарами
5
+
6
+ С помощью методов этого раздела вы можете: - [создать](/openapi/work-with-products#tag/Sozdanie-kartochek-tovarov) и [редактировать](/openapi/work-with-products#tag/Kartochki-tovarov) карточки товаров - получить [категории, предметы, характеристики и бренды товаров](/openapi/work-with-products#tag/Kategorii-predmety-i-harakteristiki) - загрузить [медиафайлы](/openapi/work-with-products#tag/Mediafajly) в карточки товаров - настроить [ярлыки](/openapi/work-with-products#tag/Yarlyki) для поиска товаров - установить [цены и скидки](/openapi/work-with-products#tag/Ceny-i-skidki) - управлять [остатками товаров](/openapi/work-with-products#tag/Ostatki-na-skladah-prodavca) и [складами](/openapi/work-with-products#tag/Sklady-prodavca), если вы работаете по модели продаж со склада продавца <div class=\"description_ref\"> Узнать, как использовать методы в бизнес-кейсах, можно в <a href=\"https://dev.wildberries.ru/news/101\">инструкции по работе с товарами</a> </div>
7
+
8
+ The version of the OpenAPI document: products
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+ import warnings
15
+ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
16
+ from typing import Any, Dict, List, Optional, Tuple, Union
17
+ from typing_extensions import Annotated
18
+
19
+ from pydantic import Field, StrictInt, StrictStr
20
+ from typing import Optional
21
+ from typing_extensions import Annotated
22
+ from wildberries_sdk_products.models.api_v3_stocks_warehouse_id_delete_request import ApiV3StocksWarehouseIdDeleteRequest
23
+ from wildberries_sdk_products.models.api_v3_stocks_warehouse_id_post200_response import ApiV3StocksWarehouseIdPost200Response
24
+ from wildberries_sdk_products.models.api_v3_stocks_warehouse_id_post_request import ApiV3StocksWarehouseIdPostRequest
25
+ from wildberries_sdk_products.models.api_v3_stocks_warehouse_id_put_request import ApiV3StocksWarehouseIdPutRequest
26
+ from wildberries_sdk_products.models.brands_response import BrandsResponse
27
+ from wildberries_sdk_products.models.content_v2_directory_colors_get200_response import ContentV2DirectoryColorsGet200Response
28
+ from wildberries_sdk_products.models.content_v2_directory_countries_get200_response import ContentV2DirectoryCountriesGet200Response
29
+ from wildberries_sdk_products.models.content_v2_directory_kinds_get200_response import ContentV2DirectoryKindsGet200Response
30
+ from wildberries_sdk_products.models.content_v2_directory_seasons_get200_response import ContentV2DirectorySeasonsGet200Response
31
+ from wildberries_sdk_products.models.content_v2_directory_tnved_get200_response import ContentV2DirectoryTnvedGet200Response
32
+ from wildberries_sdk_products.models.content_v2_directory_vat_get200_response import ContentV2DirectoryVatGet200Response
33
+ from wildberries_sdk_products.models.content_v2_object_all_get200_response import ContentV2ObjectAllGet200Response
34
+ from wildberries_sdk_products.models.content_v2_object_charcs_subject_id_get200_response import ContentV2ObjectCharcsSubjectIdGet200Response
35
+ from wildberries_sdk_products.models.content_v2_object_parent_all_get200_response import ContentV2ObjectParentAllGet200Response
36
+
37
+ from wildberries_sdk_products.api_client import ApiClient, RequestSerialized
38
+ from wildberries_sdk_products.api_response import ApiResponse
39
+ from wildberries_sdk_products.rest import RESTResponseType
40
+
41
+
42
+ class Api:
43
+ """NOTE: This class is auto generated by OpenAPI Generator
44
+ Ref: https://openapi-generator.tech
45
+
46
+ Do not edit the class manually.
47
+ """
48
+
49
+ def __init__(self, api_client=None) -> None:
50
+ if api_client is None:
51
+ api_client = ApiClient.get_default()
52
+ self.api_client = api_client
53
+
54
+
55
+ @validate_call
56
+ def api_content_v1_brands_get(
57
+ self,
58
+ subject_id: Annotated[StrictInt, Field(description="ID предмета")],
59
+ next: Annotated[Optional[StrictInt], Field(description="Параметр пагинации. Используйте значение `next` из ответа, чтобы получить следующий пакет данных")] = None,
60
+ _request_timeout: Union[
61
+ None,
62
+ Annotated[StrictFloat, Field(gt=0)],
63
+ Tuple[
64
+ Annotated[StrictFloat, Field(gt=0)],
65
+ Annotated[StrictFloat, Field(gt=0)]
66
+ ]
67
+ ] = None,
68
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
69
+ _content_type: Optional[StrictStr] = None,
70
+ _headers: Optional[Dict[StrictStr, Any]] = None,
71
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
72
+ ) -> BrandsResponse:
73
+ """Бренды
74
+
75
+ Метод возвращает список брендов по ID предмета. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 секунда | 1 запрос | 1 секунда | 5 запросов | </div>
76
+
77
+ :param subject_id: ID предмета (required)
78
+ :type subject_id: int
79
+ :param next: Параметр пагинации. Используйте значение `next` из ответа, чтобы получить следующий пакет данных
80
+ :type next: int
81
+ :param _request_timeout: timeout setting for this request. If one
82
+ number provided, it will be total request
83
+ timeout. It can also be a pair (tuple) of
84
+ (connection, read) timeouts.
85
+ :type _request_timeout: int, tuple(int, int), optional
86
+ :param _request_auth: set to override the auth_settings for an a single
87
+ request; this effectively ignores the
88
+ authentication in the spec for a single request.
89
+ :type _request_auth: dict, optional
90
+ :param _content_type: force content-type for the request.
91
+ :type _content_type: str, Optional
92
+ :param _headers: set to override the headers for a single
93
+ request; this effectively ignores the headers
94
+ in the spec for a single request.
95
+ :type _headers: dict, optional
96
+ :param _host_index: set to override the host_index for a single
97
+ request; this effectively ignores the host_index
98
+ in the spec for a single request.
99
+ :type _host_index: int, optional
100
+ :return: Returns the result object.
101
+ """ # noqa: E501
102
+
103
+ _param = self._api_content_v1_brands_get_serialize(
104
+ subject_id=subject_id,
105
+ next=next,
106
+ _request_auth=_request_auth,
107
+ _content_type=_content_type,
108
+ _headers=_headers,
109
+ _host_index=_host_index
110
+ )
111
+
112
+ _response_types_map: Dict[str, Optional[str]] = {
113
+ '200': "BrandsResponse",
114
+ '400': "BrandsResponseError",
115
+ '401': "ContentV2ObjectParentAllGet401Response",
116
+ '404': "BrandsResponseError",
117
+ '429': "ContentV2ObjectParentAllGet401Response",
118
+ }
119
+ response_data = self.api_client.call_api(
120
+ *_param,
121
+ _request_timeout=_request_timeout
122
+ )
123
+ response_data.read()
124
+ return self.api_client.response_deserialize(
125
+ response_data=response_data,
126
+ response_types_map=_response_types_map,
127
+ ).data
128
+
129
+
130
+ @validate_call
131
+ def api_content_v1_brands_get_with_http_info(
132
+ self,
133
+ subject_id: Annotated[StrictInt, Field(description="ID предмета")],
134
+ next: Annotated[Optional[StrictInt], Field(description="Параметр пагинации. Используйте значение `next` из ответа, чтобы получить следующий пакет данных")] = None,
135
+ _request_timeout: Union[
136
+ None,
137
+ Annotated[StrictFloat, Field(gt=0)],
138
+ Tuple[
139
+ Annotated[StrictFloat, Field(gt=0)],
140
+ Annotated[StrictFloat, Field(gt=0)]
141
+ ]
142
+ ] = None,
143
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
144
+ _content_type: Optional[StrictStr] = None,
145
+ _headers: Optional[Dict[StrictStr, Any]] = None,
146
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
147
+ ) -> ApiResponse[BrandsResponse]:
148
+ """Бренды
149
+
150
+ Метод возвращает список брендов по ID предмета. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 секунда | 1 запрос | 1 секунда | 5 запросов | </div>
151
+
152
+ :param subject_id: ID предмета (required)
153
+ :type subject_id: int
154
+ :param next: Параметр пагинации. Используйте значение `next` из ответа, чтобы получить следующий пакет данных
155
+ :type next: int
156
+ :param _request_timeout: timeout setting for this request. If one
157
+ number provided, it will be total request
158
+ timeout. It can also be a pair (tuple) of
159
+ (connection, read) timeouts.
160
+ :type _request_timeout: int, tuple(int, int), optional
161
+ :param _request_auth: set to override the auth_settings for an a single
162
+ request; this effectively ignores the
163
+ authentication in the spec for a single request.
164
+ :type _request_auth: dict, optional
165
+ :param _content_type: force content-type for the request.
166
+ :type _content_type: str, Optional
167
+ :param _headers: set to override the headers for a single
168
+ request; this effectively ignores the headers
169
+ in the spec for a single request.
170
+ :type _headers: dict, optional
171
+ :param _host_index: set to override the host_index for a single
172
+ request; this effectively ignores the host_index
173
+ in the spec for a single request.
174
+ :type _host_index: int, optional
175
+ :return: Returns the result object.
176
+ """ # noqa: E501
177
+
178
+ _param = self._api_content_v1_brands_get_serialize(
179
+ subject_id=subject_id,
180
+ next=next,
181
+ _request_auth=_request_auth,
182
+ _content_type=_content_type,
183
+ _headers=_headers,
184
+ _host_index=_host_index
185
+ )
186
+
187
+ _response_types_map: Dict[str, Optional[str]] = {
188
+ '200': "BrandsResponse",
189
+ '400': "BrandsResponseError",
190
+ '401': "ContentV2ObjectParentAllGet401Response",
191
+ '404': "BrandsResponseError",
192
+ '429': "ContentV2ObjectParentAllGet401Response",
193
+ }
194
+ response_data = self.api_client.call_api(
195
+ *_param,
196
+ _request_timeout=_request_timeout
197
+ )
198
+ response_data.read()
199
+ return self.api_client.response_deserialize(
200
+ response_data=response_data,
201
+ response_types_map=_response_types_map,
202
+ )
203
+
204
+
205
+ @validate_call
206
+ def api_content_v1_brands_get_without_preload_content(
207
+ self,
208
+ subject_id: Annotated[StrictInt, Field(description="ID предмета")],
209
+ next: Annotated[Optional[StrictInt], Field(description="Параметр пагинации. Используйте значение `next` из ответа, чтобы получить следующий пакет данных")] = None,
210
+ _request_timeout: Union[
211
+ None,
212
+ Annotated[StrictFloat, Field(gt=0)],
213
+ Tuple[
214
+ Annotated[StrictFloat, Field(gt=0)],
215
+ Annotated[StrictFloat, Field(gt=0)]
216
+ ]
217
+ ] = None,
218
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
219
+ _content_type: Optional[StrictStr] = None,
220
+ _headers: Optional[Dict[StrictStr, Any]] = None,
221
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
222
+ ) -> RESTResponseType:
223
+ """Бренды
224
+
225
+ Метод возвращает список брендов по ID предмета. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 секунда | 1 запрос | 1 секунда | 5 запросов | </div>
226
+
227
+ :param subject_id: ID предмета (required)
228
+ :type subject_id: int
229
+ :param next: Параметр пагинации. Используйте значение `next` из ответа, чтобы получить следующий пакет данных
230
+ :type next: int
231
+ :param _request_timeout: timeout setting for this request. If one
232
+ number provided, it will be total request
233
+ timeout. It can also be a pair (tuple) of
234
+ (connection, read) timeouts.
235
+ :type _request_timeout: int, tuple(int, int), optional
236
+ :param _request_auth: set to override the auth_settings for an a single
237
+ request; this effectively ignores the
238
+ authentication in the spec for a single request.
239
+ :type _request_auth: dict, optional
240
+ :param _content_type: force content-type for the request.
241
+ :type _content_type: str, Optional
242
+ :param _headers: set to override the headers for a single
243
+ request; this effectively ignores the headers
244
+ in the spec for a single request.
245
+ :type _headers: dict, optional
246
+ :param _host_index: set to override the host_index for a single
247
+ request; this effectively ignores the host_index
248
+ in the spec for a single request.
249
+ :type _host_index: int, optional
250
+ :return: Returns the result object.
251
+ """ # noqa: E501
252
+
253
+ _param = self._api_content_v1_brands_get_serialize(
254
+ subject_id=subject_id,
255
+ next=next,
256
+ _request_auth=_request_auth,
257
+ _content_type=_content_type,
258
+ _headers=_headers,
259
+ _host_index=_host_index
260
+ )
261
+
262
+ _response_types_map: Dict[str, Optional[str]] = {
263
+ '200': "BrandsResponse",
264
+ '400': "BrandsResponseError",
265
+ '401': "ContentV2ObjectParentAllGet401Response",
266
+ '404': "BrandsResponseError",
267
+ '429': "ContentV2ObjectParentAllGet401Response",
268
+ }
269
+ response_data = self.api_client.call_api(
270
+ *_param,
271
+ _request_timeout=_request_timeout
272
+ )
273
+ return response_data.response
274
+
275
+
276
+ def _api_content_v1_brands_get_serialize(
277
+ self,
278
+ subject_id,
279
+ next,
280
+ _request_auth,
281
+ _content_type,
282
+ _headers,
283
+ _host_index,
284
+ ) -> RequestSerialized:
285
+
286
+ _hosts = [
287
+ 'https://content-api.wildberries.ru'
288
+ ]
289
+ _host = _hosts[_host_index]
290
+
291
+ _collection_formats: Dict[str, str] = {
292
+ }
293
+
294
+ _path_params: Dict[str, str] = {}
295
+ _query_params: List[Tuple[str, str]] = []
296
+ _header_params: Dict[str, Optional[str]] = _headers or {}
297
+ _form_params: List[Tuple[str, str]] = []
298
+ _files: Dict[
299
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
300
+ ] = {}
301
+ _body_params: Optional[bytes] = None
302
+
303
+ # process the path parameters
304
+ # process the query parameters
305
+ if subject_id is not None:
306
+
307
+ _query_params.append(('subjectId', subject_id))
308
+
309
+ if next is not None:
310
+
311
+ _query_params.append(('next', next))
312
+
313
+ # process the header parameters
314
+ # process the form parameters
315
+ # process the body parameter
316
+
317
+
318
+ # set the HTTP header `Accept`
319
+ if 'Accept' not in _header_params:
320
+ _header_params['Accept'] = self.api_client.select_header_accept(
321
+ [
322
+ 'application/json',
323
+ 'application/problem+json'
324
+ ]
325
+ )
326
+
327
+
328
+ # authentication setting
329
+ _auth_settings: List[str] = [
330
+ 'HeaderApiKey'
331
+ ]
332
+
333
+ return self.api_client.param_serialize(
334
+ method='GET',
335
+ resource_path='/api/content/v1/brands',
336
+ path_params=_path_params,
337
+ query_params=_query_params,
338
+ header_params=_header_params,
339
+ body=_body_params,
340
+ post_params=_form_params,
341
+ files=_files,
342
+ auth_settings=_auth_settings,
343
+ collection_formats=_collection_formats,
344
+ _host=_host,
345
+ _request_auth=_request_auth
346
+ )
347
+
348
+
349
+
350
+
351
+ @validate_call
352
+ def api_v3_stocks_warehouse_id_delete(
353
+ self,
354
+ warehouse_id: Annotated[StrictInt, Field(description="ID склада продавца")],
355
+ api_v3_stocks_warehouse_id_delete_request: ApiV3StocksWarehouseIdDeleteRequest,
356
+ _request_timeout: Union[
357
+ None,
358
+ Annotated[StrictFloat, Field(gt=0)],
359
+ Tuple[
360
+ Annotated[StrictFloat, Field(gt=0)],
361
+ Annotated[StrictFloat, Field(gt=0)]
362
+ ]
363
+ ] = None,
364
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
365
+ _content_type: Optional[StrictStr] = None,
366
+ _headers: Optional[Dict[StrictStr, Any]] = None,
367
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
368
+ ) -> None:
369
+ """Удалить остатки товаров
370
+
371
+ Метод удаляет запись об остатках товаров продавца из [списка остатков](/openapi/work-with-products#tag/Ostatki-na-skladah-prodavca/paths/~1api~1v3~1stocks~1%7BwarehouseId%7D/post). <div class=\"description_important\"> <strong>Действие необратимо</strong>. Удаленный остаток будет необходимо загрузить повторно для возобновления продаж. </div> <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов <strong>остатков на складах продавца</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 50 запросов | 1200 миллисекунд | 2 запроса | Один запрос с кодом ответа <code>409</code> учитывается как 10 запросов </div>
372
+
373
+ :param warehouse_id: ID склада продавца (required)
374
+ :type warehouse_id: int
375
+ :param api_v3_stocks_warehouse_id_delete_request: (required)
376
+ :type api_v3_stocks_warehouse_id_delete_request: ApiV3StocksWarehouseIdDeleteRequest
377
+ :param _request_timeout: timeout setting for this request. If one
378
+ number provided, it will be total request
379
+ timeout. It can also be a pair (tuple) of
380
+ (connection, read) timeouts.
381
+ :type _request_timeout: int, tuple(int, int), optional
382
+ :param _request_auth: set to override the auth_settings for an a single
383
+ request; this effectively ignores the
384
+ authentication in the spec for a single request.
385
+ :type _request_auth: dict, optional
386
+ :param _content_type: force content-type for the request.
387
+ :type _content_type: str, Optional
388
+ :param _headers: set to override the headers for a single
389
+ request; this effectively ignores the headers
390
+ in the spec for a single request.
391
+ :type _headers: dict, optional
392
+ :param _host_index: set to override the host_index for a single
393
+ request; this effectively ignores the host_index
394
+ in the spec for a single request.
395
+ :type _host_index: int, optional
396
+ :return: Returns the result object.
397
+ """ # noqa: E501
398
+
399
+ _param = self._api_v3_stocks_warehouse_id_delete_serialize(
400
+ warehouse_id=warehouse_id,
401
+ api_v3_stocks_warehouse_id_delete_request=api_v3_stocks_warehouse_id_delete_request,
402
+ _request_auth=_request_auth,
403
+ _content_type=_content_type,
404
+ _headers=_headers,
405
+ _host_index=_host_index
406
+ )
407
+
408
+ _response_types_map: Dict[str, Optional[str]] = {
409
+ '204': None,
410
+ '400': "Error",
411
+ '401': "ContentV2ObjectParentAllGet401Response",
412
+ '403': "Error",
413
+ '404': "Error",
414
+ '409': "Error",
415
+ '429': "ContentV2ObjectParentAllGet401Response",
416
+ }
417
+ response_data = self.api_client.call_api(
418
+ *_param,
419
+ _request_timeout=_request_timeout
420
+ )
421
+ response_data.read()
422
+ return self.api_client.response_deserialize(
423
+ response_data=response_data,
424
+ response_types_map=_response_types_map,
425
+ ).data
426
+
427
+
428
+ @validate_call
429
+ def api_v3_stocks_warehouse_id_delete_with_http_info(
430
+ self,
431
+ warehouse_id: Annotated[StrictInt, Field(description="ID склада продавца")],
432
+ api_v3_stocks_warehouse_id_delete_request: ApiV3StocksWarehouseIdDeleteRequest,
433
+ _request_timeout: Union[
434
+ None,
435
+ Annotated[StrictFloat, Field(gt=0)],
436
+ Tuple[
437
+ Annotated[StrictFloat, Field(gt=0)],
438
+ Annotated[StrictFloat, Field(gt=0)]
439
+ ]
440
+ ] = None,
441
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
442
+ _content_type: Optional[StrictStr] = None,
443
+ _headers: Optional[Dict[StrictStr, Any]] = None,
444
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
445
+ ) -> ApiResponse[None]:
446
+ """Удалить остатки товаров
447
+
448
+ Метод удаляет запись об остатках товаров продавца из [списка остатков](/openapi/work-with-products#tag/Ostatki-na-skladah-prodavca/paths/~1api~1v3~1stocks~1%7BwarehouseId%7D/post). <div class=\"description_important\"> <strong>Действие необратимо</strong>. Удаленный остаток будет необходимо загрузить повторно для возобновления продаж. </div> <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов <strong>остатков на складах продавца</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 50 запросов | 1200 миллисекунд | 2 запроса | Один запрос с кодом ответа <code>409</code> учитывается как 10 запросов </div>
449
+
450
+ :param warehouse_id: ID склада продавца (required)
451
+ :type warehouse_id: int
452
+ :param api_v3_stocks_warehouse_id_delete_request: (required)
453
+ :type api_v3_stocks_warehouse_id_delete_request: ApiV3StocksWarehouseIdDeleteRequest
454
+ :param _request_timeout: timeout setting for this request. If one
455
+ number provided, it will be total request
456
+ timeout. It can also be a pair (tuple) of
457
+ (connection, read) timeouts.
458
+ :type _request_timeout: int, tuple(int, int), optional
459
+ :param _request_auth: set to override the auth_settings for an a single
460
+ request; this effectively ignores the
461
+ authentication in the spec for a single request.
462
+ :type _request_auth: dict, optional
463
+ :param _content_type: force content-type for the request.
464
+ :type _content_type: str, Optional
465
+ :param _headers: set to override the headers for a single
466
+ request; this effectively ignores the headers
467
+ in the spec for a single request.
468
+ :type _headers: dict, optional
469
+ :param _host_index: set to override the host_index for a single
470
+ request; this effectively ignores the host_index
471
+ in the spec for a single request.
472
+ :type _host_index: int, optional
473
+ :return: Returns the result object.
474
+ """ # noqa: E501
475
+
476
+ _param = self._api_v3_stocks_warehouse_id_delete_serialize(
477
+ warehouse_id=warehouse_id,
478
+ api_v3_stocks_warehouse_id_delete_request=api_v3_stocks_warehouse_id_delete_request,
479
+ _request_auth=_request_auth,
480
+ _content_type=_content_type,
481
+ _headers=_headers,
482
+ _host_index=_host_index
483
+ )
484
+
485
+ _response_types_map: Dict[str, Optional[str]] = {
486
+ '204': None,
487
+ '400': "Error",
488
+ '401': "ContentV2ObjectParentAllGet401Response",
489
+ '403': "Error",
490
+ '404': "Error",
491
+ '409': "Error",
492
+ '429': "ContentV2ObjectParentAllGet401Response",
493
+ }
494
+ response_data = self.api_client.call_api(
495
+ *_param,
496
+ _request_timeout=_request_timeout
497
+ )
498
+ response_data.read()
499
+ return self.api_client.response_deserialize(
500
+ response_data=response_data,
501
+ response_types_map=_response_types_map,
502
+ )
503
+
504
+
505
+ @validate_call
506
+ def api_v3_stocks_warehouse_id_delete_without_preload_content(
507
+ self,
508
+ warehouse_id: Annotated[StrictInt, Field(description="ID склада продавца")],
509
+ api_v3_stocks_warehouse_id_delete_request: ApiV3StocksWarehouseIdDeleteRequest,
510
+ _request_timeout: Union[
511
+ None,
512
+ Annotated[StrictFloat, Field(gt=0)],
513
+ Tuple[
514
+ Annotated[StrictFloat, Field(gt=0)],
515
+ Annotated[StrictFloat, Field(gt=0)]
516
+ ]
517
+ ] = None,
518
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
519
+ _content_type: Optional[StrictStr] = None,
520
+ _headers: Optional[Dict[StrictStr, Any]] = None,
521
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
522
+ ) -> RESTResponseType:
523
+ """Удалить остатки товаров
524
+
525
+ Метод удаляет запись об остатках товаров продавца из [списка остатков](/openapi/work-with-products#tag/Ostatki-na-skladah-prodavca/paths/~1api~1v3~1stocks~1%7BwarehouseId%7D/post). <div class=\"description_important\"> <strong>Действие необратимо</strong>. Удаленный остаток будет необходимо загрузить повторно для возобновления продаж. </div> <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов <strong>остатков на складах продавца</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 50 запросов | 1200 миллисекунд | 2 запроса | Один запрос с кодом ответа <code>409</code> учитывается как 10 запросов </div>
526
+
527
+ :param warehouse_id: ID склада продавца (required)
528
+ :type warehouse_id: int
529
+ :param api_v3_stocks_warehouse_id_delete_request: (required)
530
+ :type api_v3_stocks_warehouse_id_delete_request: ApiV3StocksWarehouseIdDeleteRequest
531
+ :param _request_timeout: timeout setting for this request. If one
532
+ number provided, it will be total request
533
+ timeout. It can also be a pair (tuple) of
534
+ (connection, read) timeouts.
535
+ :type _request_timeout: int, tuple(int, int), optional
536
+ :param _request_auth: set to override the auth_settings for an a single
537
+ request; this effectively ignores the
538
+ authentication in the spec for a single request.
539
+ :type _request_auth: dict, optional
540
+ :param _content_type: force content-type for the request.
541
+ :type _content_type: str, Optional
542
+ :param _headers: set to override the headers for a single
543
+ request; this effectively ignores the headers
544
+ in the spec for a single request.
545
+ :type _headers: dict, optional
546
+ :param _host_index: set to override the host_index for a single
547
+ request; this effectively ignores the host_index
548
+ in the spec for a single request.
549
+ :type _host_index: int, optional
550
+ :return: Returns the result object.
551
+ """ # noqa: E501
552
+
553
+ _param = self._api_v3_stocks_warehouse_id_delete_serialize(
554
+ warehouse_id=warehouse_id,
555
+ api_v3_stocks_warehouse_id_delete_request=api_v3_stocks_warehouse_id_delete_request,
556
+ _request_auth=_request_auth,
557
+ _content_type=_content_type,
558
+ _headers=_headers,
559
+ _host_index=_host_index
560
+ )
561
+
562
+ _response_types_map: Dict[str, Optional[str]] = {
563
+ '204': None,
564
+ '400': "Error",
565
+ '401': "ContentV2ObjectParentAllGet401Response",
566
+ '403': "Error",
567
+ '404': "Error",
568
+ '409': "Error",
569
+ '429': "ContentV2ObjectParentAllGet401Response",
570
+ }
571
+ response_data = self.api_client.call_api(
572
+ *_param,
573
+ _request_timeout=_request_timeout
574
+ )
575
+ return response_data.response
576
+
577
+
578
+ def _api_v3_stocks_warehouse_id_delete_serialize(
579
+ self,
580
+ warehouse_id,
581
+ api_v3_stocks_warehouse_id_delete_request,
582
+ _request_auth,
583
+ _content_type,
584
+ _headers,
585
+ _host_index,
586
+ ) -> RequestSerialized:
587
+
588
+ _hosts = [
589
+ 'https://marketplace-api.wildberries.ru'
590
+ ]
591
+ _host = _hosts[_host_index]
592
+
593
+ _collection_formats: Dict[str, str] = {
594
+ }
595
+
596
+ _path_params: Dict[str, str] = {}
597
+ _query_params: List[Tuple[str, str]] = []
598
+ _header_params: Dict[str, Optional[str]] = _headers or {}
599
+ _form_params: List[Tuple[str, str]] = []
600
+ _files: Dict[
601
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
602
+ ] = {}
603
+ _body_params: Optional[bytes] = None
604
+
605
+ # process the path parameters
606
+ if warehouse_id is not None:
607
+ _path_params['warehouseId'] = warehouse_id
608
+ # process the query parameters
609
+ # process the header parameters
610
+ # process the form parameters
611
+ # process the body parameter
612
+ if api_v3_stocks_warehouse_id_delete_request is not None:
613
+ _body_params = api_v3_stocks_warehouse_id_delete_request
614
+
615
+
616
+ # set the HTTP header `Accept`
617
+ if 'Accept' not in _header_params:
618
+ _header_params['Accept'] = self.api_client.select_header_accept(
619
+ [
620
+ 'application/json'
621
+ ]
622
+ )
623
+
624
+ # set the HTTP header `Content-Type`
625
+ if _content_type:
626
+ _header_params['Content-Type'] = _content_type
627
+ else:
628
+ _default_content_type = (
629
+ self.api_client.select_header_content_type(
630
+ [
631
+ 'application/json'
632
+ ]
633
+ )
634
+ )
635
+ if _default_content_type is not None:
636
+ _header_params['Content-Type'] = _default_content_type
637
+
638
+ # authentication setting
639
+ _auth_settings: List[str] = [
640
+ 'HeaderApiKey'
641
+ ]
642
+
643
+ return self.api_client.param_serialize(
644
+ method='DELETE',
645
+ resource_path='/api/v3/stocks/{warehouseId}',
646
+ path_params=_path_params,
647
+ query_params=_query_params,
648
+ header_params=_header_params,
649
+ body=_body_params,
650
+ post_params=_form_params,
651
+ files=_files,
652
+ auth_settings=_auth_settings,
653
+ collection_formats=_collection_formats,
654
+ _host=_host,
655
+ _request_auth=_request_auth
656
+ )
657
+
658
+
659
+
660
+
661
+ @validate_call
662
+ def api_v3_stocks_warehouse_id_post(
663
+ self,
664
+ warehouse_id: Annotated[StrictInt, Field(description="ID склада продавца")],
665
+ api_v3_stocks_warehouse_id_post_request: ApiV3StocksWarehouseIdPostRequest,
666
+ _request_timeout: Union[
667
+ None,
668
+ Annotated[StrictFloat, Field(gt=0)],
669
+ Tuple[
670
+ Annotated[StrictFloat, Field(gt=0)],
671
+ Annotated[StrictFloat, Field(gt=0)]
672
+ ]
673
+ ] = None,
674
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
675
+ _content_type: Optional[StrictStr] = None,
676
+ _headers: Optional[Dict[StrictStr, Any]] = None,
677
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
678
+ ) -> ApiV3StocksWarehouseIdPost200Response:
679
+ """Получить остатки товаров
680
+
681
+ Метод возвращает данные об остатках товаров на [складах продавца](/openapi/work-with-products#tag/Sklady-prodavca). <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов <strong>остатков на складах продавца</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 300 запросов | 200 миллисекунд | 20 запросов | Один запрос с кодом ответа <code>409</code> учитывается как 10 запросов </div>
682
+
683
+ :param warehouse_id: ID склада продавца (required)
684
+ :type warehouse_id: int
685
+ :param api_v3_stocks_warehouse_id_post_request: (required)
686
+ :type api_v3_stocks_warehouse_id_post_request: ApiV3StocksWarehouseIdPostRequest
687
+ :param _request_timeout: timeout setting for this request. If one
688
+ number provided, it will be total request
689
+ timeout. It can also be a pair (tuple) of
690
+ (connection, read) timeouts.
691
+ :type _request_timeout: int, tuple(int, int), optional
692
+ :param _request_auth: set to override the auth_settings for an a single
693
+ request; this effectively ignores the
694
+ authentication in the spec for a single request.
695
+ :type _request_auth: dict, optional
696
+ :param _content_type: force content-type for the request.
697
+ :type _content_type: str, Optional
698
+ :param _headers: set to override the headers for a single
699
+ request; this effectively ignores the headers
700
+ in the spec for a single request.
701
+ :type _headers: dict, optional
702
+ :param _host_index: set to override the host_index for a single
703
+ request; this effectively ignores the host_index
704
+ in the spec for a single request.
705
+ :type _host_index: int, optional
706
+ :return: Returns the result object.
707
+ """ # noqa: E501
708
+
709
+ _param = self._api_v3_stocks_warehouse_id_post_serialize(
710
+ warehouse_id=warehouse_id,
711
+ api_v3_stocks_warehouse_id_post_request=api_v3_stocks_warehouse_id_post_request,
712
+ _request_auth=_request_auth,
713
+ _content_type=_content_type,
714
+ _headers=_headers,
715
+ _host_index=_host_index
716
+ )
717
+
718
+ _response_types_map: Dict[str, Optional[str]] = {
719
+ '200': "ApiV3StocksWarehouseIdPost200Response",
720
+ '400': "Error",
721
+ '401': "ContentV2ObjectParentAllGet401Response",
722
+ '403': "Error",
723
+ '404': "Error",
724
+ '429': "ContentV2ObjectParentAllGet401Response",
725
+ }
726
+ response_data = self.api_client.call_api(
727
+ *_param,
728
+ _request_timeout=_request_timeout
729
+ )
730
+ response_data.read()
731
+ return self.api_client.response_deserialize(
732
+ response_data=response_data,
733
+ response_types_map=_response_types_map,
734
+ ).data
735
+
736
+
737
+ @validate_call
738
+ def api_v3_stocks_warehouse_id_post_with_http_info(
739
+ self,
740
+ warehouse_id: Annotated[StrictInt, Field(description="ID склада продавца")],
741
+ api_v3_stocks_warehouse_id_post_request: ApiV3StocksWarehouseIdPostRequest,
742
+ _request_timeout: Union[
743
+ None,
744
+ Annotated[StrictFloat, Field(gt=0)],
745
+ Tuple[
746
+ Annotated[StrictFloat, Field(gt=0)],
747
+ Annotated[StrictFloat, Field(gt=0)]
748
+ ]
749
+ ] = None,
750
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
751
+ _content_type: Optional[StrictStr] = None,
752
+ _headers: Optional[Dict[StrictStr, Any]] = None,
753
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
754
+ ) -> ApiResponse[ApiV3StocksWarehouseIdPost200Response]:
755
+ """Получить остатки товаров
756
+
757
+ Метод возвращает данные об остатках товаров на [складах продавца](/openapi/work-with-products#tag/Sklady-prodavca). <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов <strong>остатков на складах продавца</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 300 запросов | 200 миллисекунд | 20 запросов | Один запрос с кодом ответа <code>409</code> учитывается как 10 запросов </div>
758
+
759
+ :param warehouse_id: ID склада продавца (required)
760
+ :type warehouse_id: int
761
+ :param api_v3_stocks_warehouse_id_post_request: (required)
762
+ :type api_v3_stocks_warehouse_id_post_request: ApiV3StocksWarehouseIdPostRequest
763
+ :param _request_timeout: timeout setting for this request. If one
764
+ number provided, it will be total request
765
+ timeout. It can also be a pair (tuple) of
766
+ (connection, read) timeouts.
767
+ :type _request_timeout: int, tuple(int, int), optional
768
+ :param _request_auth: set to override the auth_settings for an a single
769
+ request; this effectively ignores the
770
+ authentication in the spec for a single request.
771
+ :type _request_auth: dict, optional
772
+ :param _content_type: force content-type for the request.
773
+ :type _content_type: str, Optional
774
+ :param _headers: set to override the headers for a single
775
+ request; this effectively ignores the headers
776
+ in the spec for a single request.
777
+ :type _headers: dict, optional
778
+ :param _host_index: set to override the host_index for a single
779
+ request; this effectively ignores the host_index
780
+ in the spec for a single request.
781
+ :type _host_index: int, optional
782
+ :return: Returns the result object.
783
+ """ # noqa: E501
784
+
785
+ _param = self._api_v3_stocks_warehouse_id_post_serialize(
786
+ warehouse_id=warehouse_id,
787
+ api_v3_stocks_warehouse_id_post_request=api_v3_stocks_warehouse_id_post_request,
788
+ _request_auth=_request_auth,
789
+ _content_type=_content_type,
790
+ _headers=_headers,
791
+ _host_index=_host_index
792
+ )
793
+
794
+ _response_types_map: Dict[str, Optional[str]] = {
795
+ '200': "ApiV3StocksWarehouseIdPost200Response",
796
+ '400': "Error",
797
+ '401': "ContentV2ObjectParentAllGet401Response",
798
+ '403': "Error",
799
+ '404': "Error",
800
+ '429': "ContentV2ObjectParentAllGet401Response",
801
+ }
802
+ response_data = self.api_client.call_api(
803
+ *_param,
804
+ _request_timeout=_request_timeout
805
+ )
806
+ response_data.read()
807
+ return self.api_client.response_deserialize(
808
+ response_data=response_data,
809
+ response_types_map=_response_types_map,
810
+ )
811
+
812
+
813
+ @validate_call
814
+ def api_v3_stocks_warehouse_id_post_without_preload_content(
815
+ self,
816
+ warehouse_id: Annotated[StrictInt, Field(description="ID склада продавца")],
817
+ api_v3_stocks_warehouse_id_post_request: ApiV3StocksWarehouseIdPostRequest,
818
+ _request_timeout: Union[
819
+ None,
820
+ Annotated[StrictFloat, Field(gt=0)],
821
+ Tuple[
822
+ Annotated[StrictFloat, Field(gt=0)],
823
+ Annotated[StrictFloat, Field(gt=0)]
824
+ ]
825
+ ] = None,
826
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
827
+ _content_type: Optional[StrictStr] = None,
828
+ _headers: Optional[Dict[StrictStr, Any]] = None,
829
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
830
+ ) -> RESTResponseType:
831
+ """Получить остатки товаров
832
+
833
+ Метод возвращает данные об остатках товаров на [складах продавца](/openapi/work-with-products#tag/Sklady-prodavca). <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов <strong>остатков на складах продавца</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 300 запросов | 200 миллисекунд | 20 запросов | Один запрос с кодом ответа <code>409</code> учитывается как 10 запросов </div>
834
+
835
+ :param warehouse_id: ID склада продавца (required)
836
+ :type warehouse_id: int
837
+ :param api_v3_stocks_warehouse_id_post_request: (required)
838
+ :type api_v3_stocks_warehouse_id_post_request: ApiV3StocksWarehouseIdPostRequest
839
+ :param _request_timeout: timeout setting for this request. If one
840
+ number provided, it will be total request
841
+ timeout. It can also be a pair (tuple) of
842
+ (connection, read) timeouts.
843
+ :type _request_timeout: int, tuple(int, int), optional
844
+ :param _request_auth: set to override the auth_settings for an a single
845
+ request; this effectively ignores the
846
+ authentication in the spec for a single request.
847
+ :type _request_auth: dict, optional
848
+ :param _content_type: force content-type for the request.
849
+ :type _content_type: str, Optional
850
+ :param _headers: set to override the headers for a single
851
+ request; this effectively ignores the headers
852
+ in the spec for a single request.
853
+ :type _headers: dict, optional
854
+ :param _host_index: set to override the host_index for a single
855
+ request; this effectively ignores the host_index
856
+ in the spec for a single request.
857
+ :type _host_index: int, optional
858
+ :return: Returns the result object.
859
+ """ # noqa: E501
860
+
861
+ _param = self._api_v3_stocks_warehouse_id_post_serialize(
862
+ warehouse_id=warehouse_id,
863
+ api_v3_stocks_warehouse_id_post_request=api_v3_stocks_warehouse_id_post_request,
864
+ _request_auth=_request_auth,
865
+ _content_type=_content_type,
866
+ _headers=_headers,
867
+ _host_index=_host_index
868
+ )
869
+
870
+ _response_types_map: Dict[str, Optional[str]] = {
871
+ '200': "ApiV3StocksWarehouseIdPost200Response",
872
+ '400': "Error",
873
+ '401': "ContentV2ObjectParentAllGet401Response",
874
+ '403': "Error",
875
+ '404': "Error",
876
+ '429': "ContentV2ObjectParentAllGet401Response",
877
+ }
878
+ response_data = self.api_client.call_api(
879
+ *_param,
880
+ _request_timeout=_request_timeout
881
+ )
882
+ return response_data.response
883
+
884
+
885
+ def _api_v3_stocks_warehouse_id_post_serialize(
886
+ self,
887
+ warehouse_id,
888
+ api_v3_stocks_warehouse_id_post_request,
889
+ _request_auth,
890
+ _content_type,
891
+ _headers,
892
+ _host_index,
893
+ ) -> RequestSerialized:
894
+
895
+ _hosts = [
896
+ 'https://marketplace-api.wildberries.ru'
897
+ ]
898
+ _host = _hosts[_host_index]
899
+
900
+ _collection_formats: Dict[str, str] = {
901
+ }
902
+
903
+ _path_params: Dict[str, str] = {}
904
+ _query_params: List[Tuple[str, str]] = []
905
+ _header_params: Dict[str, Optional[str]] = _headers or {}
906
+ _form_params: List[Tuple[str, str]] = []
907
+ _files: Dict[
908
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
909
+ ] = {}
910
+ _body_params: Optional[bytes] = None
911
+
912
+ # process the path parameters
913
+ if warehouse_id is not None:
914
+ _path_params['warehouseId'] = warehouse_id
915
+ # process the query parameters
916
+ # process the header parameters
917
+ # process the form parameters
918
+ # process the body parameter
919
+ if api_v3_stocks_warehouse_id_post_request is not None:
920
+ _body_params = api_v3_stocks_warehouse_id_post_request
921
+
922
+
923
+ # set the HTTP header `Accept`
924
+ if 'Accept' not in _header_params:
925
+ _header_params['Accept'] = self.api_client.select_header_accept(
926
+ [
927
+ 'application/json'
928
+ ]
929
+ )
930
+
931
+ # set the HTTP header `Content-Type`
932
+ if _content_type:
933
+ _header_params['Content-Type'] = _content_type
934
+ else:
935
+ _default_content_type = (
936
+ self.api_client.select_header_content_type(
937
+ [
938
+ 'application/json'
939
+ ]
940
+ )
941
+ )
942
+ if _default_content_type is not None:
943
+ _header_params['Content-Type'] = _default_content_type
944
+
945
+ # authentication setting
946
+ _auth_settings: List[str] = [
947
+ 'HeaderApiKey'
948
+ ]
949
+
950
+ return self.api_client.param_serialize(
951
+ method='POST',
952
+ resource_path='/api/v3/stocks/{warehouseId}',
953
+ path_params=_path_params,
954
+ query_params=_query_params,
955
+ header_params=_header_params,
956
+ body=_body_params,
957
+ post_params=_form_params,
958
+ files=_files,
959
+ auth_settings=_auth_settings,
960
+ collection_formats=_collection_formats,
961
+ _host=_host,
962
+ _request_auth=_request_auth
963
+ )
964
+
965
+
966
+
967
+
968
+ @validate_call
969
+ def api_v3_stocks_warehouse_id_put(
970
+ self,
971
+ warehouse_id: Annotated[StrictInt, Field(description="ID склада продавца")],
972
+ api_v3_stocks_warehouse_id_put_request: Optional[ApiV3StocksWarehouseIdPutRequest] = None,
973
+ _request_timeout: Union[
974
+ None,
975
+ Annotated[StrictFloat, Field(gt=0)],
976
+ Tuple[
977
+ Annotated[StrictFloat, Field(gt=0)],
978
+ Annotated[StrictFloat, Field(gt=0)]
979
+ ]
980
+ ] = None,
981
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
982
+ _content_type: Optional[StrictStr] = None,
983
+ _headers: Optional[Dict[StrictStr, Any]] = None,
984
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
985
+ ) -> None:
986
+ """Обновить остатки товаров
987
+
988
+ Метод обновляет количество остатков товаров продавца [в списке](/openapi/work-with-products#tag/Ostatki-na-skladah-prodavca/paths/~1api~1v3~1stocks~1%7BwarehouseId%7D/post). <div class=\"description_important\"> Названия параметров запроса не валидируются. При отправке некорректных названий вы получите успешный ответ (<code>204</code>), но остатки не обновятся. </div> <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов <strong>остатков на складах продавца</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 300 запросов | 200 миллисекунд | 20 запросов | Один запрос с кодом ответа <code>409</code> учитывается как 10 запросов </div>
989
+
990
+ :param warehouse_id: ID склада продавца (required)
991
+ :type warehouse_id: int
992
+ :param api_v3_stocks_warehouse_id_put_request:
993
+ :type api_v3_stocks_warehouse_id_put_request: ApiV3StocksWarehouseIdPutRequest
994
+ :param _request_timeout: timeout setting for this request. If one
995
+ number provided, it will be total request
996
+ timeout. It can also be a pair (tuple) of
997
+ (connection, read) timeouts.
998
+ :type _request_timeout: int, tuple(int, int), optional
999
+ :param _request_auth: set to override the auth_settings for an a single
1000
+ request; this effectively ignores the
1001
+ authentication in the spec for a single request.
1002
+ :type _request_auth: dict, optional
1003
+ :param _content_type: force content-type for the request.
1004
+ :type _content_type: str, Optional
1005
+ :param _headers: set to override the headers for a single
1006
+ request; this effectively ignores the headers
1007
+ in the spec for a single request.
1008
+ :type _headers: dict, optional
1009
+ :param _host_index: set to override the host_index for a single
1010
+ request; this effectively ignores the host_index
1011
+ in the spec for a single request.
1012
+ :type _host_index: int, optional
1013
+ :return: Returns the result object.
1014
+ """ # noqa: E501
1015
+
1016
+ _param = self._api_v3_stocks_warehouse_id_put_serialize(
1017
+ warehouse_id=warehouse_id,
1018
+ api_v3_stocks_warehouse_id_put_request=api_v3_stocks_warehouse_id_put_request,
1019
+ _request_auth=_request_auth,
1020
+ _content_type=_content_type,
1021
+ _headers=_headers,
1022
+ _host_index=_host_index
1023
+ )
1024
+
1025
+ _response_types_map: Dict[str, Optional[str]] = {
1026
+ '204': None,
1027
+ '400': "Error",
1028
+ '401': "ContentV2ObjectParentAllGet401Response",
1029
+ '403': "Error",
1030
+ '404': "Error",
1031
+ '406': "ApiV3StocksWarehouseIdPut406Response",
1032
+ '409': "List[StocksWarehouseErrorInner]",
1033
+ '429': "ContentV2ObjectParentAllGet401Response",
1034
+ }
1035
+ response_data = self.api_client.call_api(
1036
+ *_param,
1037
+ _request_timeout=_request_timeout
1038
+ )
1039
+ response_data.read()
1040
+ return self.api_client.response_deserialize(
1041
+ response_data=response_data,
1042
+ response_types_map=_response_types_map,
1043
+ ).data
1044
+
1045
+
1046
+ @validate_call
1047
+ def api_v3_stocks_warehouse_id_put_with_http_info(
1048
+ self,
1049
+ warehouse_id: Annotated[StrictInt, Field(description="ID склада продавца")],
1050
+ api_v3_stocks_warehouse_id_put_request: Optional[ApiV3StocksWarehouseIdPutRequest] = None,
1051
+ _request_timeout: Union[
1052
+ None,
1053
+ Annotated[StrictFloat, Field(gt=0)],
1054
+ Tuple[
1055
+ Annotated[StrictFloat, Field(gt=0)],
1056
+ Annotated[StrictFloat, Field(gt=0)]
1057
+ ]
1058
+ ] = None,
1059
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1060
+ _content_type: Optional[StrictStr] = None,
1061
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1062
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
1063
+ ) -> ApiResponse[None]:
1064
+ """Обновить остатки товаров
1065
+
1066
+ Метод обновляет количество остатков товаров продавца [в списке](/openapi/work-with-products#tag/Ostatki-na-skladah-prodavca/paths/~1api~1v3~1stocks~1%7BwarehouseId%7D/post). <div class=\"description_important\"> Названия параметров запроса не валидируются. При отправке некорректных названий вы получите успешный ответ (<code>204</code>), но остатки не обновятся. </div> <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов <strong>остатков на складах продавца</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 300 запросов | 200 миллисекунд | 20 запросов | Один запрос с кодом ответа <code>409</code> учитывается как 10 запросов </div>
1067
+
1068
+ :param warehouse_id: ID склада продавца (required)
1069
+ :type warehouse_id: int
1070
+ :param api_v3_stocks_warehouse_id_put_request:
1071
+ :type api_v3_stocks_warehouse_id_put_request: ApiV3StocksWarehouseIdPutRequest
1072
+ :param _request_timeout: timeout setting for this request. If one
1073
+ number provided, it will be total request
1074
+ timeout. It can also be a pair (tuple) of
1075
+ (connection, read) timeouts.
1076
+ :type _request_timeout: int, tuple(int, int), optional
1077
+ :param _request_auth: set to override the auth_settings for an a single
1078
+ request; this effectively ignores the
1079
+ authentication in the spec for a single request.
1080
+ :type _request_auth: dict, optional
1081
+ :param _content_type: force content-type for the request.
1082
+ :type _content_type: str, Optional
1083
+ :param _headers: set to override the headers for a single
1084
+ request; this effectively ignores the headers
1085
+ in the spec for a single request.
1086
+ :type _headers: dict, optional
1087
+ :param _host_index: set to override the host_index for a single
1088
+ request; this effectively ignores the host_index
1089
+ in the spec for a single request.
1090
+ :type _host_index: int, optional
1091
+ :return: Returns the result object.
1092
+ """ # noqa: E501
1093
+
1094
+ _param = self._api_v3_stocks_warehouse_id_put_serialize(
1095
+ warehouse_id=warehouse_id,
1096
+ api_v3_stocks_warehouse_id_put_request=api_v3_stocks_warehouse_id_put_request,
1097
+ _request_auth=_request_auth,
1098
+ _content_type=_content_type,
1099
+ _headers=_headers,
1100
+ _host_index=_host_index
1101
+ )
1102
+
1103
+ _response_types_map: Dict[str, Optional[str]] = {
1104
+ '204': None,
1105
+ '400': "Error",
1106
+ '401': "ContentV2ObjectParentAllGet401Response",
1107
+ '403': "Error",
1108
+ '404': "Error",
1109
+ '406': "ApiV3StocksWarehouseIdPut406Response",
1110
+ '409': "List[StocksWarehouseErrorInner]",
1111
+ '429': "ContentV2ObjectParentAllGet401Response",
1112
+ }
1113
+ response_data = self.api_client.call_api(
1114
+ *_param,
1115
+ _request_timeout=_request_timeout
1116
+ )
1117
+ response_data.read()
1118
+ return self.api_client.response_deserialize(
1119
+ response_data=response_data,
1120
+ response_types_map=_response_types_map,
1121
+ )
1122
+
1123
+
1124
+ @validate_call
1125
+ def api_v3_stocks_warehouse_id_put_without_preload_content(
1126
+ self,
1127
+ warehouse_id: Annotated[StrictInt, Field(description="ID склада продавца")],
1128
+ api_v3_stocks_warehouse_id_put_request: Optional[ApiV3StocksWarehouseIdPutRequest] = None,
1129
+ _request_timeout: Union[
1130
+ None,
1131
+ Annotated[StrictFloat, Field(gt=0)],
1132
+ Tuple[
1133
+ Annotated[StrictFloat, Field(gt=0)],
1134
+ Annotated[StrictFloat, Field(gt=0)]
1135
+ ]
1136
+ ] = None,
1137
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1138
+ _content_type: Optional[StrictStr] = None,
1139
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1140
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
1141
+ ) -> RESTResponseType:
1142
+ """Обновить остатки товаров
1143
+
1144
+ Метод обновляет количество остатков товаров продавца [в списке](/openapi/work-with-products#tag/Ostatki-na-skladah-prodavca/paths/~1api~1v3~1stocks~1%7BwarehouseId%7D/post). <div class=\"description_important\"> Названия параметров запроса не валидируются. При отправке некорректных названий вы получите успешный ответ (<code>204</code>), но остатки не обновятся. </div> <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов <strong>остатков на складах продавца</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 300 запросов | 200 миллисекунд | 20 запросов | Один запрос с кодом ответа <code>409</code> учитывается как 10 запросов </div>
1145
+
1146
+ :param warehouse_id: ID склада продавца (required)
1147
+ :type warehouse_id: int
1148
+ :param api_v3_stocks_warehouse_id_put_request:
1149
+ :type api_v3_stocks_warehouse_id_put_request: ApiV3StocksWarehouseIdPutRequest
1150
+ :param _request_timeout: timeout setting for this request. If one
1151
+ number provided, it will be total request
1152
+ timeout. It can also be a pair (tuple) of
1153
+ (connection, read) timeouts.
1154
+ :type _request_timeout: int, tuple(int, int), optional
1155
+ :param _request_auth: set to override the auth_settings for an a single
1156
+ request; this effectively ignores the
1157
+ authentication in the spec for a single request.
1158
+ :type _request_auth: dict, optional
1159
+ :param _content_type: force content-type for the request.
1160
+ :type _content_type: str, Optional
1161
+ :param _headers: set to override the headers for a single
1162
+ request; this effectively ignores the headers
1163
+ in the spec for a single request.
1164
+ :type _headers: dict, optional
1165
+ :param _host_index: set to override the host_index for a single
1166
+ request; this effectively ignores the host_index
1167
+ in the spec for a single request.
1168
+ :type _host_index: int, optional
1169
+ :return: Returns the result object.
1170
+ """ # noqa: E501
1171
+
1172
+ _param = self._api_v3_stocks_warehouse_id_put_serialize(
1173
+ warehouse_id=warehouse_id,
1174
+ api_v3_stocks_warehouse_id_put_request=api_v3_stocks_warehouse_id_put_request,
1175
+ _request_auth=_request_auth,
1176
+ _content_type=_content_type,
1177
+ _headers=_headers,
1178
+ _host_index=_host_index
1179
+ )
1180
+
1181
+ _response_types_map: Dict[str, Optional[str]] = {
1182
+ '204': None,
1183
+ '400': "Error",
1184
+ '401': "ContentV2ObjectParentAllGet401Response",
1185
+ '403': "Error",
1186
+ '404': "Error",
1187
+ '406': "ApiV3StocksWarehouseIdPut406Response",
1188
+ '409': "List[StocksWarehouseErrorInner]",
1189
+ '429': "ContentV2ObjectParentAllGet401Response",
1190
+ }
1191
+ response_data = self.api_client.call_api(
1192
+ *_param,
1193
+ _request_timeout=_request_timeout
1194
+ )
1195
+ return response_data.response
1196
+
1197
+
1198
+ def _api_v3_stocks_warehouse_id_put_serialize(
1199
+ self,
1200
+ warehouse_id,
1201
+ api_v3_stocks_warehouse_id_put_request,
1202
+ _request_auth,
1203
+ _content_type,
1204
+ _headers,
1205
+ _host_index,
1206
+ ) -> RequestSerialized:
1207
+
1208
+ _hosts = [
1209
+ 'https://marketplace-api.wildberries.ru'
1210
+ ]
1211
+ _host = _hosts[_host_index]
1212
+
1213
+ _collection_formats: Dict[str, str] = {
1214
+ }
1215
+
1216
+ _path_params: Dict[str, str] = {}
1217
+ _query_params: List[Tuple[str, str]] = []
1218
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1219
+ _form_params: List[Tuple[str, str]] = []
1220
+ _files: Dict[
1221
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1222
+ ] = {}
1223
+ _body_params: Optional[bytes] = None
1224
+
1225
+ # process the path parameters
1226
+ if warehouse_id is not None:
1227
+ _path_params['warehouseId'] = warehouse_id
1228
+ # process the query parameters
1229
+ # process the header parameters
1230
+ # process the form parameters
1231
+ # process the body parameter
1232
+ if api_v3_stocks_warehouse_id_put_request is not None:
1233
+ _body_params = api_v3_stocks_warehouse_id_put_request
1234
+
1235
+
1236
+ # set the HTTP header `Accept`
1237
+ if 'Accept' not in _header_params:
1238
+ _header_params['Accept'] = self.api_client.select_header_accept(
1239
+ [
1240
+ 'application/json'
1241
+ ]
1242
+ )
1243
+
1244
+ # set the HTTP header `Content-Type`
1245
+ if _content_type:
1246
+ _header_params['Content-Type'] = _content_type
1247
+ else:
1248
+ _default_content_type = (
1249
+ self.api_client.select_header_content_type(
1250
+ [
1251
+ 'application/json'
1252
+ ]
1253
+ )
1254
+ )
1255
+ if _default_content_type is not None:
1256
+ _header_params['Content-Type'] = _default_content_type
1257
+
1258
+ # authentication setting
1259
+ _auth_settings: List[str] = [
1260
+ 'HeaderApiKey'
1261
+ ]
1262
+
1263
+ return self.api_client.param_serialize(
1264
+ method='PUT',
1265
+ resource_path='/api/v3/stocks/{warehouseId}',
1266
+ path_params=_path_params,
1267
+ query_params=_query_params,
1268
+ header_params=_header_params,
1269
+ body=_body_params,
1270
+ post_params=_form_params,
1271
+ files=_files,
1272
+ auth_settings=_auth_settings,
1273
+ collection_formats=_collection_formats,
1274
+ _host=_host,
1275
+ _request_auth=_request_auth
1276
+ )
1277
+
1278
+
1279
+
1280
+
1281
+ @validate_call
1282
+ def content_v2_directory_colors_get(
1283
+ self,
1284
+ locale: Annotated[Optional[StrictStr], Field(description="Язык полей ответа `subjectName` и `name`: - `ru` — русский - `en` — английский - `zh` — китайский Не используется в песочнице ")] = None,
1285
+ _request_timeout: Union[
1286
+ None,
1287
+ Annotated[StrictFloat, Field(gt=0)],
1288
+ Tuple[
1289
+ Annotated[StrictFloat, Field(gt=0)],
1290
+ Annotated[StrictFloat, Field(gt=0)]
1291
+ ]
1292
+ ] = None,
1293
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1294
+ _content_type: Optional[StrictStr] = None,
1295
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1296
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
1297
+ ) -> ContentV2DirectoryColorsGet200Response:
1298
+ """Цвет
1299
+
1300
+ Метод возвращает возможные значения [характеристики](/openapi/work-with-products#tag/Kategorii-predmety-i-harakteristiki/paths/~1content~1v2~1object~1charcs~1%7BsubjectId%7D/get) предмета `Цвет`. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов категории <strong>Контент</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 100 запросов | 600 миллисекунд | 5 запросов | Исключение — методы: <ul> <li><a href=\"/openapi/work-with-products#tag/Sozdanie-kartochek-tovarov/paths/~1content~1v2~1cards~1upload/post\">создания карточек товаров</a></li> <li><a href=\"/openapi/work-with-products#tag/Sozdanie-kartochek-tovarov/paths/~1content~1v2~1cards~1upload~1add/post\">создания карточек товаров с присоединением</a></li> <li><a href=\"/openapi/work-with-products#tag/Kartochki-tovarov/paths/~1content~1v2~1cards~1update/post\">редактирования карточек товаров</a></li> <li><a href=\"/openapi/work-with-products#tag/Kartochki-tovarov/paths/~1content~1v2~1cards~1error~1list/post\">получения несозданных карточек товаров с ошибками</a></li> </ul> </div>
1301
+
1302
+ :param locale: Язык полей ответа `subjectName` и `name`: - `ru` — русский - `en` — английский - `zh` — китайский Не используется в песочнице
1303
+ :type locale: str
1304
+ :param _request_timeout: timeout setting for this request. If one
1305
+ number provided, it will be total request
1306
+ timeout. It can also be a pair (tuple) of
1307
+ (connection, read) timeouts.
1308
+ :type _request_timeout: int, tuple(int, int), optional
1309
+ :param _request_auth: set to override the auth_settings for an a single
1310
+ request; this effectively ignores the
1311
+ authentication in the spec for a single request.
1312
+ :type _request_auth: dict, optional
1313
+ :param _content_type: force content-type for the request.
1314
+ :type _content_type: str, Optional
1315
+ :param _headers: set to override the headers for a single
1316
+ request; this effectively ignores the headers
1317
+ in the spec for a single request.
1318
+ :type _headers: dict, optional
1319
+ :param _host_index: set to override the host_index for a single
1320
+ request; this effectively ignores the host_index
1321
+ in the spec for a single request.
1322
+ :type _host_index: int, optional
1323
+ :return: Returns the result object.
1324
+ """ # noqa: E501
1325
+
1326
+ _param = self._content_v2_directory_colors_get_serialize(
1327
+ locale=locale,
1328
+ _request_auth=_request_auth,
1329
+ _content_type=_content_type,
1330
+ _headers=_headers,
1331
+ _host_index=_host_index
1332
+ )
1333
+
1334
+ _response_types_map: Dict[str, Optional[str]] = {
1335
+ '200': "ContentV2DirectoryColorsGet200Response",
1336
+ '400': "ResponseBodyContentError400",
1337
+ '401': "ContentV2ObjectParentAllGet401Response",
1338
+ '403': "ResponseBodyContentError403",
1339
+ '429': "ContentV2ObjectParentAllGet401Response",
1340
+ }
1341
+ response_data = self.api_client.call_api(
1342
+ *_param,
1343
+ _request_timeout=_request_timeout
1344
+ )
1345
+ response_data.read()
1346
+ return self.api_client.response_deserialize(
1347
+ response_data=response_data,
1348
+ response_types_map=_response_types_map,
1349
+ ).data
1350
+
1351
+
1352
+ @validate_call
1353
+ def content_v2_directory_colors_get_with_http_info(
1354
+ self,
1355
+ locale: Annotated[Optional[StrictStr], Field(description="Язык полей ответа `subjectName` и `name`: - `ru` — русский - `en` — английский - `zh` — китайский Не используется в песочнице ")] = None,
1356
+ _request_timeout: Union[
1357
+ None,
1358
+ Annotated[StrictFloat, Field(gt=0)],
1359
+ Tuple[
1360
+ Annotated[StrictFloat, Field(gt=0)],
1361
+ Annotated[StrictFloat, Field(gt=0)]
1362
+ ]
1363
+ ] = None,
1364
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1365
+ _content_type: Optional[StrictStr] = None,
1366
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1367
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
1368
+ ) -> ApiResponse[ContentV2DirectoryColorsGet200Response]:
1369
+ """Цвет
1370
+
1371
+ Метод возвращает возможные значения [характеристики](/openapi/work-with-products#tag/Kategorii-predmety-i-harakteristiki/paths/~1content~1v2~1object~1charcs~1%7BsubjectId%7D/get) предмета `Цвет`. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов категории <strong>Контент</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 100 запросов | 600 миллисекунд | 5 запросов | Исключение — методы: <ul> <li><a href=\"/openapi/work-with-products#tag/Sozdanie-kartochek-tovarov/paths/~1content~1v2~1cards~1upload/post\">создания карточек товаров</a></li> <li><a href=\"/openapi/work-with-products#tag/Sozdanie-kartochek-tovarov/paths/~1content~1v2~1cards~1upload~1add/post\">создания карточек товаров с присоединением</a></li> <li><a href=\"/openapi/work-with-products#tag/Kartochki-tovarov/paths/~1content~1v2~1cards~1update/post\">редактирования карточек товаров</a></li> <li><a href=\"/openapi/work-with-products#tag/Kartochki-tovarov/paths/~1content~1v2~1cards~1error~1list/post\">получения несозданных карточек товаров с ошибками</a></li> </ul> </div>
1372
+
1373
+ :param locale: Язык полей ответа `subjectName` и `name`: - `ru` — русский - `en` — английский - `zh` — китайский Не используется в песочнице
1374
+ :type locale: str
1375
+ :param _request_timeout: timeout setting for this request. If one
1376
+ number provided, it will be total request
1377
+ timeout. It can also be a pair (tuple) of
1378
+ (connection, read) timeouts.
1379
+ :type _request_timeout: int, tuple(int, int), optional
1380
+ :param _request_auth: set to override the auth_settings for an a single
1381
+ request; this effectively ignores the
1382
+ authentication in the spec for a single request.
1383
+ :type _request_auth: dict, optional
1384
+ :param _content_type: force content-type for the request.
1385
+ :type _content_type: str, Optional
1386
+ :param _headers: set to override the headers for a single
1387
+ request; this effectively ignores the headers
1388
+ in the spec for a single request.
1389
+ :type _headers: dict, optional
1390
+ :param _host_index: set to override the host_index for a single
1391
+ request; this effectively ignores the host_index
1392
+ in the spec for a single request.
1393
+ :type _host_index: int, optional
1394
+ :return: Returns the result object.
1395
+ """ # noqa: E501
1396
+
1397
+ _param = self._content_v2_directory_colors_get_serialize(
1398
+ locale=locale,
1399
+ _request_auth=_request_auth,
1400
+ _content_type=_content_type,
1401
+ _headers=_headers,
1402
+ _host_index=_host_index
1403
+ )
1404
+
1405
+ _response_types_map: Dict[str, Optional[str]] = {
1406
+ '200': "ContentV2DirectoryColorsGet200Response",
1407
+ '400': "ResponseBodyContentError400",
1408
+ '401': "ContentV2ObjectParentAllGet401Response",
1409
+ '403': "ResponseBodyContentError403",
1410
+ '429': "ContentV2ObjectParentAllGet401Response",
1411
+ }
1412
+ response_data = self.api_client.call_api(
1413
+ *_param,
1414
+ _request_timeout=_request_timeout
1415
+ )
1416
+ response_data.read()
1417
+ return self.api_client.response_deserialize(
1418
+ response_data=response_data,
1419
+ response_types_map=_response_types_map,
1420
+ )
1421
+
1422
+
1423
+ @validate_call
1424
+ def content_v2_directory_colors_get_without_preload_content(
1425
+ self,
1426
+ locale: Annotated[Optional[StrictStr], Field(description="Язык полей ответа `subjectName` и `name`: - `ru` — русский - `en` — английский - `zh` — китайский Не используется в песочнице ")] = None,
1427
+ _request_timeout: Union[
1428
+ None,
1429
+ Annotated[StrictFloat, Field(gt=0)],
1430
+ Tuple[
1431
+ Annotated[StrictFloat, Field(gt=0)],
1432
+ Annotated[StrictFloat, Field(gt=0)]
1433
+ ]
1434
+ ] = None,
1435
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1436
+ _content_type: Optional[StrictStr] = None,
1437
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1438
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
1439
+ ) -> RESTResponseType:
1440
+ """Цвет
1441
+
1442
+ Метод возвращает возможные значения [характеристики](/openapi/work-with-products#tag/Kategorii-predmety-i-harakteristiki/paths/~1content~1v2~1object~1charcs~1%7BsubjectId%7D/get) предмета `Цвет`. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов категории <strong>Контент</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 100 запросов | 600 миллисекунд | 5 запросов | Исключение — методы: <ul> <li><a href=\"/openapi/work-with-products#tag/Sozdanie-kartochek-tovarov/paths/~1content~1v2~1cards~1upload/post\">создания карточек товаров</a></li> <li><a href=\"/openapi/work-with-products#tag/Sozdanie-kartochek-tovarov/paths/~1content~1v2~1cards~1upload~1add/post\">создания карточек товаров с присоединением</a></li> <li><a href=\"/openapi/work-with-products#tag/Kartochki-tovarov/paths/~1content~1v2~1cards~1update/post\">редактирования карточек товаров</a></li> <li><a href=\"/openapi/work-with-products#tag/Kartochki-tovarov/paths/~1content~1v2~1cards~1error~1list/post\">получения несозданных карточек товаров с ошибками</a></li> </ul> </div>
1443
+
1444
+ :param locale: Язык полей ответа `subjectName` и `name`: - `ru` — русский - `en` — английский - `zh` — китайский Не используется в песочнице
1445
+ :type locale: str
1446
+ :param _request_timeout: timeout setting for this request. If one
1447
+ number provided, it will be total request
1448
+ timeout. It can also be a pair (tuple) of
1449
+ (connection, read) timeouts.
1450
+ :type _request_timeout: int, tuple(int, int), optional
1451
+ :param _request_auth: set to override the auth_settings for an a single
1452
+ request; this effectively ignores the
1453
+ authentication in the spec for a single request.
1454
+ :type _request_auth: dict, optional
1455
+ :param _content_type: force content-type for the request.
1456
+ :type _content_type: str, Optional
1457
+ :param _headers: set to override the headers for a single
1458
+ request; this effectively ignores the headers
1459
+ in the spec for a single request.
1460
+ :type _headers: dict, optional
1461
+ :param _host_index: set to override the host_index for a single
1462
+ request; this effectively ignores the host_index
1463
+ in the spec for a single request.
1464
+ :type _host_index: int, optional
1465
+ :return: Returns the result object.
1466
+ """ # noqa: E501
1467
+
1468
+ _param = self._content_v2_directory_colors_get_serialize(
1469
+ locale=locale,
1470
+ _request_auth=_request_auth,
1471
+ _content_type=_content_type,
1472
+ _headers=_headers,
1473
+ _host_index=_host_index
1474
+ )
1475
+
1476
+ _response_types_map: Dict[str, Optional[str]] = {
1477
+ '200': "ContentV2DirectoryColorsGet200Response",
1478
+ '400': "ResponseBodyContentError400",
1479
+ '401': "ContentV2ObjectParentAllGet401Response",
1480
+ '403': "ResponseBodyContentError403",
1481
+ '429': "ContentV2ObjectParentAllGet401Response",
1482
+ }
1483
+ response_data = self.api_client.call_api(
1484
+ *_param,
1485
+ _request_timeout=_request_timeout
1486
+ )
1487
+ return response_data.response
1488
+
1489
+
1490
+ def _content_v2_directory_colors_get_serialize(
1491
+ self,
1492
+ locale,
1493
+ _request_auth,
1494
+ _content_type,
1495
+ _headers,
1496
+ _host_index,
1497
+ ) -> RequestSerialized:
1498
+
1499
+ _hosts = [
1500
+ 'https://content-api.wildberries.ru'
1501
+ ]
1502
+ _host = _hosts[_host_index]
1503
+
1504
+ _collection_formats: Dict[str, str] = {
1505
+ }
1506
+
1507
+ _path_params: Dict[str, str] = {}
1508
+ _query_params: List[Tuple[str, str]] = []
1509
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1510
+ _form_params: List[Tuple[str, str]] = []
1511
+ _files: Dict[
1512
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1513
+ ] = {}
1514
+ _body_params: Optional[bytes] = None
1515
+
1516
+ # process the path parameters
1517
+ # process the query parameters
1518
+ if locale is not None:
1519
+
1520
+ _query_params.append(('locale', locale))
1521
+
1522
+ # process the header parameters
1523
+ # process the form parameters
1524
+ # process the body parameter
1525
+
1526
+
1527
+ # set the HTTP header `Accept`
1528
+ if 'Accept' not in _header_params:
1529
+ _header_params['Accept'] = self.api_client.select_header_accept(
1530
+ [
1531
+ 'application/json'
1532
+ ]
1533
+ )
1534
+
1535
+
1536
+ # authentication setting
1537
+ _auth_settings: List[str] = [
1538
+ 'HeaderApiKey'
1539
+ ]
1540
+
1541
+ return self.api_client.param_serialize(
1542
+ method='GET',
1543
+ resource_path='/content/v2/directory/colors',
1544
+ path_params=_path_params,
1545
+ query_params=_query_params,
1546
+ header_params=_header_params,
1547
+ body=_body_params,
1548
+ post_params=_form_params,
1549
+ files=_files,
1550
+ auth_settings=_auth_settings,
1551
+ collection_formats=_collection_formats,
1552
+ _host=_host,
1553
+ _request_auth=_request_auth
1554
+ )
1555
+
1556
+
1557
+
1558
+
1559
+ @validate_call
1560
+ def content_v2_directory_countries_get(
1561
+ self,
1562
+ locale: Annotated[Optional[StrictStr], Field(description="Язык полей ответа `subjectName` и `name`: - `ru` — русский - `en` — английский - `zh` — китайский Не используется в песочнице ")] = None,
1563
+ _request_timeout: Union[
1564
+ None,
1565
+ Annotated[StrictFloat, Field(gt=0)],
1566
+ Tuple[
1567
+ Annotated[StrictFloat, Field(gt=0)],
1568
+ Annotated[StrictFloat, Field(gt=0)]
1569
+ ]
1570
+ ] = None,
1571
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1572
+ _content_type: Optional[StrictStr] = None,
1573
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1574
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
1575
+ ) -> ContentV2DirectoryCountriesGet200Response:
1576
+ """Страна производства
1577
+
1578
+ Метод возвращает возможные значения [характеристики](/openapi/work-with-products#tag/Kategorii-predmety-i-harakteristiki/paths/~1content~1v2~1object~1charcs~1%7BsubjectId%7D/get) предмета `Страна производства`. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов категории <strong>Контент</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 100 запросов | 600 миллисекунд | 5 запросов | Исключение — методы: <ul> <li><a href=\"/openapi/work-with-products#tag/Sozdanie-kartochek-tovarov/paths/~1content~1v2~1cards~1upload/post\">создания карточек товаров</a></li> <li><a href=\"/openapi/work-with-products#tag/Sozdanie-kartochek-tovarov/paths/~1content~1v2~1cards~1upload~1add/post\">создания карточек товаров с присоединением</a></li> <li><a href=\"/openapi/work-with-products#tag/Kartochki-tovarov/paths/~1content~1v2~1cards~1update/post\">редактирования карточек товаров</a></li> <li><a href=\"/openapi/work-with-products#tag/Kartochki-tovarov/paths/~1content~1v2~1cards~1error~1list/post\">получения несозданных карточек товаров с ошибками</a></li> </ul> </div>
1579
+
1580
+ :param locale: Язык полей ответа `subjectName` и `name`: - `ru` — русский - `en` — английский - `zh` — китайский Не используется в песочнице
1581
+ :type locale: str
1582
+ :param _request_timeout: timeout setting for this request. If one
1583
+ number provided, it will be total request
1584
+ timeout. It can also be a pair (tuple) of
1585
+ (connection, read) timeouts.
1586
+ :type _request_timeout: int, tuple(int, int), optional
1587
+ :param _request_auth: set to override the auth_settings for an a single
1588
+ request; this effectively ignores the
1589
+ authentication in the spec for a single request.
1590
+ :type _request_auth: dict, optional
1591
+ :param _content_type: force content-type for the request.
1592
+ :type _content_type: str, Optional
1593
+ :param _headers: set to override the headers for a single
1594
+ request; this effectively ignores the headers
1595
+ in the spec for a single request.
1596
+ :type _headers: dict, optional
1597
+ :param _host_index: set to override the host_index for a single
1598
+ request; this effectively ignores the host_index
1599
+ in the spec for a single request.
1600
+ :type _host_index: int, optional
1601
+ :return: Returns the result object.
1602
+ """ # noqa: E501
1603
+
1604
+ _param = self._content_v2_directory_countries_get_serialize(
1605
+ locale=locale,
1606
+ _request_auth=_request_auth,
1607
+ _content_type=_content_type,
1608
+ _headers=_headers,
1609
+ _host_index=_host_index
1610
+ )
1611
+
1612
+ _response_types_map: Dict[str, Optional[str]] = {
1613
+ '200': "ContentV2DirectoryCountriesGet200Response",
1614
+ '400': "ResponseBodyContentError400",
1615
+ '401': "ContentV2ObjectParentAllGet401Response",
1616
+ '403': "ResponseBodyContentError403",
1617
+ '429': "ContentV2ObjectParentAllGet401Response",
1618
+ }
1619
+ response_data = self.api_client.call_api(
1620
+ *_param,
1621
+ _request_timeout=_request_timeout
1622
+ )
1623
+ response_data.read()
1624
+ return self.api_client.response_deserialize(
1625
+ response_data=response_data,
1626
+ response_types_map=_response_types_map,
1627
+ ).data
1628
+
1629
+
1630
+ @validate_call
1631
+ def content_v2_directory_countries_get_with_http_info(
1632
+ self,
1633
+ locale: Annotated[Optional[StrictStr], Field(description="Язык полей ответа `subjectName` и `name`: - `ru` — русский - `en` — английский - `zh` — китайский Не используется в песочнице ")] = None,
1634
+ _request_timeout: Union[
1635
+ None,
1636
+ Annotated[StrictFloat, Field(gt=0)],
1637
+ Tuple[
1638
+ Annotated[StrictFloat, Field(gt=0)],
1639
+ Annotated[StrictFloat, Field(gt=0)]
1640
+ ]
1641
+ ] = None,
1642
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1643
+ _content_type: Optional[StrictStr] = None,
1644
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1645
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
1646
+ ) -> ApiResponse[ContentV2DirectoryCountriesGet200Response]:
1647
+ """Страна производства
1648
+
1649
+ Метод возвращает возможные значения [характеристики](/openapi/work-with-products#tag/Kategorii-predmety-i-harakteristiki/paths/~1content~1v2~1object~1charcs~1%7BsubjectId%7D/get) предмета `Страна производства`. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов категории <strong>Контент</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 100 запросов | 600 миллисекунд | 5 запросов | Исключение — методы: <ul> <li><a href=\"/openapi/work-with-products#tag/Sozdanie-kartochek-tovarov/paths/~1content~1v2~1cards~1upload/post\">создания карточек товаров</a></li> <li><a href=\"/openapi/work-with-products#tag/Sozdanie-kartochek-tovarov/paths/~1content~1v2~1cards~1upload~1add/post\">создания карточек товаров с присоединением</a></li> <li><a href=\"/openapi/work-with-products#tag/Kartochki-tovarov/paths/~1content~1v2~1cards~1update/post\">редактирования карточек товаров</a></li> <li><a href=\"/openapi/work-with-products#tag/Kartochki-tovarov/paths/~1content~1v2~1cards~1error~1list/post\">получения несозданных карточек товаров с ошибками</a></li> </ul> </div>
1650
+
1651
+ :param locale: Язык полей ответа `subjectName` и `name`: - `ru` — русский - `en` — английский - `zh` — китайский Не используется в песочнице
1652
+ :type locale: str
1653
+ :param _request_timeout: timeout setting for this request. If one
1654
+ number provided, it will be total request
1655
+ timeout. It can also be a pair (tuple) of
1656
+ (connection, read) timeouts.
1657
+ :type _request_timeout: int, tuple(int, int), optional
1658
+ :param _request_auth: set to override the auth_settings for an a single
1659
+ request; this effectively ignores the
1660
+ authentication in the spec for a single request.
1661
+ :type _request_auth: dict, optional
1662
+ :param _content_type: force content-type for the request.
1663
+ :type _content_type: str, Optional
1664
+ :param _headers: set to override the headers for a single
1665
+ request; this effectively ignores the headers
1666
+ in the spec for a single request.
1667
+ :type _headers: dict, optional
1668
+ :param _host_index: set to override the host_index for a single
1669
+ request; this effectively ignores the host_index
1670
+ in the spec for a single request.
1671
+ :type _host_index: int, optional
1672
+ :return: Returns the result object.
1673
+ """ # noqa: E501
1674
+
1675
+ _param = self._content_v2_directory_countries_get_serialize(
1676
+ locale=locale,
1677
+ _request_auth=_request_auth,
1678
+ _content_type=_content_type,
1679
+ _headers=_headers,
1680
+ _host_index=_host_index
1681
+ )
1682
+
1683
+ _response_types_map: Dict[str, Optional[str]] = {
1684
+ '200': "ContentV2DirectoryCountriesGet200Response",
1685
+ '400': "ResponseBodyContentError400",
1686
+ '401': "ContentV2ObjectParentAllGet401Response",
1687
+ '403': "ResponseBodyContentError403",
1688
+ '429': "ContentV2ObjectParentAllGet401Response",
1689
+ }
1690
+ response_data = self.api_client.call_api(
1691
+ *_param,
1692
+ _request_timeout=_request_timeout
1693
+ )
1694
+ response_data.read()
1695
+ return self.api_client.response_deserialize(
1696
+ response_data=response_data,
1697
+ response_types_map=_response_types_map,
1698
+ )
1699
+
1700
+
1701
+ @validate_call
1702
+ def content_v2_directory_countries_get_without_preload_content(
1703
+ self,
1704
+ locale: Annotated[Optional[StrictStr], Field(description="Язык полей ответа `subjectName` и `name`: - `ru` — русский - `en` — английский - `zh` — китайский Не используется в песочнице ")] = None,
1705
+ _request_timeout: Union[
1706
+ None,
1707
+ Annotated[StrictFloat, Field(gt=0)],
1708
+ Tuple[
1709
+ Annotated[StrictFloat, Field(gt=0)],
1710
+ Annotated[StrictFloat, Field(gt=0)]
1711
+ ]
1712
+ ] = None,
1713
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1714
+ _content_type: Optional[StrictStr] = None,
1715
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1716
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
1717
+ ) -> RESTResponseType:
1718
+ """Страна производства
1719
+
1720
+ Метод возвращает возможные значения [характеристики](/openapi/work-with-products#tag/Kategorii-predmety-i-harakteristiki/paths/~1content~1v2~1object~1charcs~1%7BsubjectId%7D/get) предмета `Страна производства`. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов категории <strong>Контент</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 100 запросов | 600 миллисекунд | 5 запросов | Исключение — методы: <ul> <li><a href=\"/openapi/work-with-products#tag/Sozdanie-kartochek-tovarov/paths/~1content~1v2~1cards~1upload/post\">создания карточек товаров</a></li> <li><a href=\"/openapi/work-with-products#tag/Sozdanie-kartochek-tovarov/paths/~1content~1v2~1cards~1upload~1add/post\">создания карточек товаров с присоединением</a></li> <li><a href=\"/openapi/work-with-products#tag/Kartochki-tovarov/paths/~1content~1v2~1cards~1update/post\">редактирования карточек товаров</a></li> <li><a href=\"/openapi/work-with-products#tag/Kartochki-tovarov/paths/~1content~1v2~1cards~1error~1list/post\">получения несозданных карточек товаров с ошибками</a></li> </ul> </div>
1721
+
1722
+ :param locale: Язык полей ответа `subjectName` и `name`: - `ru` — русский - `en` — английский - `zh` — китайский Не используется в песочнице
1723
+ :type locale: str
1724
+ :param _request_timeout: timeout setting for this request. If one
1725
+ number provided, it will be total request
1726
+ timeout. It can also be a pair (tuple) of
1727
+ (connection, read) timeouts.
1728
+ :type _request_timeout: int, tuple(int, int), optional
1729
+ :param _request_auth: set to override the auth_settings for an a single
1730
+ request; this effectively ignores the
1731
+ authentication in the spec for a single request.
1732
+ :type _request_auth: dict, optional
1733
+ :param _content_type: force content-type for the request.
1734
+ :type _content_type: str, Optional
1735
+ :param _headers: set to override the headers for a single
1736
+ request; this effectively ignores the headers
1737
+ in the spec for a single request.
1738
+ :type _headers: dict, optional
1739
+ :param _host_index: set to override the host_index for a single
1740
+ request; this effectively ignores the host_index
1741
+ in the spec for a single request.
1742
+ :type _host_index: int, optional
1743
+ :return: Returns the result object.
1744
+ """ # noqa: E501
1745
+
1746
+ _param = self._content_v2_directory_countries_get_serialize(
1747
+ locale=locale,
1748
+ _request_auth=_request_auth,
1749
+ _content_type=_content_type,
1750
+ _headers=_headers,
1751
+ _host_index=_host_index
1752
+ )
1753
+
1754
+ _response_types_map: Dict[str, Optional[str]] = {
1755
+ '200': "ContentV2DirectoryCountriesGet200Response",
1756
+ '400': "ResponseBodyContentError400",
1757
+ '401': "ContentV2ObjectParentAllGet401Response",
1758
+ '403': "ResponseBodyContentError403",
1759
+ '429': "ContentV2ObjectParentAllGet401Response",
1760
+ }
1761
+ response_data = self.api_client.call_api(
1762
+ *_param,
1763
+ _request_timeout=_request_timeout
1764
+ )
1765
+ return response_data.response
1766
+
1767
+
1768
+ def _content_v2_directory_countries_get_serialize(
1769
+ self,
1770
+ locale,
1771
+ _request_auth,
1772
+ _content_type,
1773
+ _headers,
1774
+ _host_index,
1775
+ ) -> RequestSerialized:
1776
+
1777
+ _hosts = [
1778
+ 'https://content-api.wildberries.ru'
1779
+ ]
1780
+ _host = _hosts[_host_index]
1781
+
1782
+ _collection_formats: Dict[str, str] = {
1783
+ }
1784
+
1785
+ _path_params: Dict[str, str] = {}
1786
+ _query_params: List[Tuple[str, str]] = []
1787
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1788
+ _form_params: List[Tuple[str, str]] = []
1789
+ _files: Dict[
1790
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1791
+ ] = {}
1792
+ _body_params: Optional[bytes] = None
1793
+
1794
+ # process the path parameters
1795
+ # process the query parameters
1796
+ if locale is not None:
1797
+
1798
+ _query_params.append(('locale', locale))
1799
+
1800
+ # process the header parameters
1801
+ # process the form parameters
1802
+ # process the body parameter
1803
+
1804
+
1805
+ # set the HTTP header `Accept`
1806
+ if 'Accept' not in _header_params:
1807
+ _header_params['Accept'] = self.api_client.select_header_accept(
1808
+ [
1809
+ 'application/json'
1810
+ ]
1811
+ )
1812
+
1813
+
1814
+ # authentication setting
1815
+ _auth_settings: List[str] = [
1816
+ 'HeaderApiKey'
1817
+ ]
1818
+
1819
+ return self.api_client.param_serialize(
1820
+ method='GET',
1821
+ resource_path='/content/v2/directory/countries',
1822
+ path_params=_path_params,
1823
+ query_params=_query_params,
1824
+ header_params=_header_params,
1825
+ body=_body_params,
1826
+ post_params=_form_params,
1827
+ files=_files,
1828
+ auth_settings=_auth_settings,
1829
+ collection_formats=_collection_formats,
1830
+ _host=_host,
1831
+ _request_auth=_request_auth
1832
+ )
1833
+
1834
+
1835
+
1836
+
1837
+ @validate_call
1838
+ def content_v2_directory_kinds_get(
1839
+ self,
1840
+ locale: Annotated[Optional[StrictStr], Field(description="Язык полей ответа `subjectName` и `name`: - `ru` — русский - `en` — английский - `zh` — китайский Не используется в песочнице ")] = None,
1841
+ _request_timeout: Union[
1842
+ None,
1843
+ Annotated[StrictFloat, Field(gt=0)],
1844
+ Tuple[
1845
+ Annotated[StrictFloat, Field(gt=0)],
1846
+ Annotated[StrictFloat, Field(gt=0)]
1847
+ ]
1848
+ ] = None,
1849
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1850
+ _content_type: Optional[StrictStr] = None,
1851
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1852
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
1853
+ ) -> ContentV2DirectoryKindsGet200Response:
1854
+ """Пол
1855
+
1856
+ Метод возвращает возможные значения [характеристики](/openapi/work-with-products#tag/Kategorii-predmety-i-harakteristiki/paths/~1content~1v2~1object~1charcs~1%7BsubjectId%7D/get) предмета `Пол`. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов категории <strong>Контент</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 100 запросов | 600 миллисекунд | 5 запросов | Исключение — методы: <ul> <li><a href=\"/openapi/work-with-products#tag/Sozdanie-kartochek-tovarov/paths/~1content~1v2~1cards~1upload/post\">создания карточек товаров</a></li> <li><a href=\"/openapi/work-with-products#tag/Sozdanie-kartochek-tovarov/paths/~1content~1v2~1cards~1upload~1add/post\">создания карточек товаров с присоединением</a></li> <li><a href=\"/openapi/work-with-products#tag/Kartochki-tovarov/paths/~1content~1v2~1cards~1update/post\">редактирования карточек товаров</a></li> <li><a href=\"/openapi/work-with-products#tag/Kartochki-tovarov/paths/~1content~1v2~1cards~1error~1list/post\">получения несозданных карточек товаров с ошибками</a></li> </ul> </div>
1857
+
1858
+ :param locale: Язык полей ответа `subjectName` и `name`: - `ru` — русский - `en` — английский - `zh` — китайский Не используется в песочнице
1859
+ :type locale: str
1860
+ :param _request_timeout: timeout setting for this request. If one
1861
+ number provided, it will be total request
1862
+ timeout. It can also be a pair (tuple) of
1863
+ (connection, read) timeouts.
1864
+ :type _request_timeout: int, tuple(int, int), optional
1865
+ :param _request_auth: set to override the auth_settings for an a single
1866
+ request; this effectively ignores the
1867
+ authentication in the spec for a single request.
1868
+ :type _request_auth: dict, optional
1869
+ :param _content_type: force content-type for the request.
1870
+ :type _content_type: str, Optional
1871
+ :param _headers: set to override the headers for a single
1872
+ request; this effectively ignores the headers
1873
+ in the spec for a single request.
1874
+ :type _headers: dict, optional
1875
+ :param _host_index: set to override the host_index for a single
1876
+ request; this effectively ignores the host_index
1877
+ in the spec for a single request.
1878
+ :type _host_index: int, optional
1879
+ :return: Returns the result object.
1880
+ """ # noqa: E501
1881
+
1882
+ _param = self._content_v2_directory_kinds_get_serialize(
1883
+ locale=locale,
1884
+ _request_auth=_request_auth,
1885
+ _content_type=_content_type,
1886
+ _headers=_headers,
1887
+ _host_index=_host_index
1888
+ )
1889
+
1890
+ _response_types_map: Dict[str, Optional[str]] = {
1891
+ '200': "ContentV2DirectoryKindsGet200Response",
1892
+ '400': "ResponseBodyContentError400",
1893
+ '401': "ContentV2ObjectParentAllGet401Response",
1894
+ '403': "ResponseBodyContentError403",
1895
+ '429': "ContentV2ObjectParentAllGet401Response",
1896
+ }
1897
+ response_data = self.api_client.call_api(
1898
+ *_param,
1899
+ _request_timeout=_request_timeout
1900
+ )
1901
+ response_data.read()
1902
+ return self.api_client.response_deserialize(
1903
+ response_data=response_data,
1904
+ response_types_map=_response_types_map,
1905
+ ).data
1906
+
1907
+
1908
+ @validate_call
1909
+ def content_v2_directory_kinds_get_with_http_info(
1910
+ self,
1911
+ locale: Annotated[Optional[StrictStr], Field(description="Язык полей ответа `subjectName` и `name`: - `ru` — русский - `en` — английский - `zh` — китайский Не используется в песочнице ")] = None,
1912
+ _request_timeout: Union[
1913
+ None,
1914
+ Annotated[StrictFloat, Field(gt=0)],
1915
+ Tuple[
1916
+ Annotated[StrictFloat, Field(gt=0)],
1917
+ Annotated[StrictFloat, Field(gt=0)]
1918
+ ]
1919
+ ] = None,
1920
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1921
+ _content_type: Optional[StrictStr] = None,
1922
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1923
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
1924
+ ) -> ApiResponse[ContentV2DirectoryKindsGet200Response]:
1925
+ """Пол
1926
+
1927
+ Метод возвращает возможные значения [характеристики](/openapi/work-with-products#tag/Kategorii-predmety-i-harakteristiki/paths/~1content~1v2~1object~1charcs~1%7BsubjectId%7D/get) предмета `Пол`. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов категории <strong>Контент</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 100 запросов | 600 миллисекунд | 5 запросов | Исключение — методы: <ul> <li><a href=\"/openapi/work-with-products#tag/Sozdanie-kartochek-tovarov/paths/~1content~1v2~1cards~1upload/post\">создания карточек товаров</a></li> <li><a href=\"/openapi/work-with-products#tag/Sozdanie-kartochek-tovarov/paths/~1content~1v2~1cards~1upload~1add/post\">создания карточек товаров с присоединением</a></li> <li><a href=\"/openapi/work-with-products#tag/Kartochki-tovarov/paths/~1content~1v2~1cards~1update/post\">редактирования карточек товаров</a></li> <li><a href=\"/openapi/work-with-products#tag/Kartochki-tovarov/paths/~1content~1v2~1cards~1error~1list/post\">получения несозданных карточек товаров с ошибками</a></li> </ul> </div>
1928
+
1929
+ :param locale: Язык полей ответа `subjectName` и `name`: - `ru` — русский - `en` — английский - `zh` — китайский Не используется в песочнице
1930
+ :type locale: str
1931
+ :param _request_timeout: timeout setting for this request. If one
1932
+ number provided, it will be total request
1933
+ timeout. It can also be a pair (tuple) of
1934
+ (connection, read) timeouts.
1935
+ :type _request_timeout: int, tuple(int, int), optional
1936
+ :param _request_auth: set to override the auth_settings for an a single
1937
+ request; this effectively ignores the
1938
+ authentication in the spec for a single request.
1939
+ :type _request_auth: dict, optional
1940
+ :param _content_type: force content-type for the request.
1941
+ :type _content_type: str, Optional
1942
+ :param _headers: set to override the headers for a single
1943
+ request; this effectively ignores the headers
1944
+ in the spec for a single request.
1945
+ :type _headers: dict, optional
1946
+ :param _host_index: set to override the host_index for a single
1947
+ request; this effectively ignores the host_index
1948
+ in the spec for a single request.
1949
+ :type _host_index: int, optional
1950
+ :return: Returns the result object.
1951
+ """ # noqa: E501
1952
+
1953
+ _param = self._content_v2_directory_kinds_get_serialize(
1954
+ locale=locale,
1955
+ _request_auth=_request_auth,
1956
+ _content_type=_content_type,
1957
+ _headers=_headers,
1958
+ _host_index=_host_index
1959
+ )
1960
+
1961
+ _response_types_map: Dict[str, Optional[str]] = {
1962
+ '200': "ContentV2DirectoryKindsGet200Response",
1963
+ '400': "ResponseBodyContentError400",
1964
+ '401': "ContentV2ObjectParentAllGet401Response",
1965
+ '403': "ResponseBodyContentError403",
1966
+ '429': "ContentV2ObjectParentAllGet401Response",
1967
+ }
1968
+ response_data = self.api_client.call_api(
1969
+ *_param,
1970
+ _request_timeout=_request_timeout
1971
+ )
1972
+ response_data.read()
1973
+ return self.api_client.response_deserialize(
1974
+ response_data=response_data,
1975
+ response_types_map=_response_types_map,
1976
+ )
1977
+
1978
+
1979
+ @validate_call
1980
+ def content_v2_directory_kinds_get_without_preload_content(
1981
+ self,
1982
+ locale: Annotated[Optional[StrictStr], Field(description="Язык полей ответа `subjectName` и `name`: - `ru` — русский - `en` — английский - `zh` — китайский Не используется в песочнице ")] = None,
1983
+ _request_timeout: Union[
1984
+ None,
1985
+ Annotated[StrictFloat, Field(gt=0)],
1986
+ Tuple[
1987
+ Annotated[StrictFloat, Field(gt=0)],
1988
+ Annotated[StrictFloat, Field(gt=0)]
1989
+ ]
1990
+ ] = None,
1991
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1992
+ _content_type: Optional[StrictStr] = None,
1993
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1994
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
1995
+ ) -> RESTResponseType:
1996
+ """Пол
1997
+
1998
+ Метод возвращает возможные значения [характеристики](/openapi/work-with-products#tag/Kategorii-predmety-i-harakteristiki/paths/~1content~1v2~1object~1charcs~1%7BsubjectId%7D/get) предмета `Пол`. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов категории <strong>Контент</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 100 запросов | 600 миллисекунд | 5 запросов | Исключение — методы: <ul> <li><a href=\"/openapi/work-with-products#tag/Sozdanie-kartochek-tovarov/paths/~1content~1v2~1cards~1upload/post\">создания карточек товаров</a></li> <li><a href=\"/openapi/work-with-products#tag/Sozdanie-kartochek-tovarov/paths/~1content~1v2~1cards~1upload~1add/post\">создания карточек товаров с присоединением</a></li> <li><a href=\"/openapi/work-with-products#tag/Kartochki-tovarov/paths/~1content~1v2~1cards~1update/post\">редактирования карточек товаров</a></li> <li><a href=\"/openapi/work-with-products#tag/Kartochki-tovarov/paths/~1content~1v2~1cards~1error~1list/post\">получения несозданных карточек товаров с ошибками</a></li> </ul> </div>
1999
+
2000
+ :param locale: Язык полей ответа `subjectName` и `name`: - `ru` — русский - `en` — английский - `zh` — китайский Не используется в песочнице
2001
+ :type locale: str
2002
+ :param _request_timeout: timeout setting for this request. If one
2003
+ number provided, it will be total request
2004
+ timeout. It can also be a pair (tuple) of
2005
+ (connection, read) timeouts.
2006
+ :type _request_timeout: int, tuple(int, int), optional
2007
+ :param _request_auth: set to override the auth_settings for an a single
2008
+ request; this effectively ignores the
2009
+ authentication in the spec for a single request.
2010
+ :type _request_auth: dict, optional
2011
+ :param _content_type: force content-type for the request.
2012
+ :type _content_type: str, Optional
2013
+ :param _headers: set to override the headers for a single
2014
+ request; this effectively ignores the headers
2015
+ in the spec for a single request.
2016
+ :type _headers: dict, optional
2017
+ :param _host_index: set to override the host_index for a single
2018
+ request; this effectively ignores the host_index
2019
+ in the spec for a single request.
2020
+ :type _host_index: int, optional
2021
+ :return: Returns the result object.
2022
+ """ # noqa: E501
2023
+
2024
+ _param = self._content_v2_directory_kinds_get_serialize(
2025
+ locale=locale,
2026
+ _request_auth=_request_auth,
2027
+ _content_type=_content_type,
2028
+ _headers=_headers,
2029
+ _host_index=_host_index
2030
+ )
2031
+
2032
+ _response_types_map: Dict[str, Optional[str]] = {
2033
+ '200': "ContentV2DirectoryKindsGet200Response",
2034
+ '400': "ResponseBodyContentError400",
2035
+ '401': "ContentV2ObjectParentAllGet401Response",
2036
+ '403': "ResponseBodyContentError403",
2037
+ '429': "ContentV2ObjectParentAllGet401Response",
2038
+ }
2039
+ response_data = self.api_client.call_api(
2040
+ *_param,
2041
+ _request_timeout=_request_timeout
2042
+ )
2043
+ return response_data.response
2044
+
2045
+
2046
+ def _content_v2_directory_kinds_get_serialize(
2047
+ self,
2048
+ locale,
2049
+ _request_auth,
2050
+ _content_type,
2051
+ _headers,
2052
+ _host_index,
2053
+ ) -> RequestSerialized:
2054
+
2055
+ _hosts = [
2056
+ 'https://content-api.wildberries.ru'
2057
+ ]
2058
+ _host = _hosts[_host_index]
2059
+
2060
+ _collection_formats: Dict[str, str] = {
2061
+ }
2062
+
2063
+ _path_params: Dict[str, str] = {}
2064
+ _query_params: List[Tuple[str, str]] = []
2065
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2066
+ _form_params: List[Tuple[str, str]] = []
2067
+ _files: Dict[
2068
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2069
+ ] = {}
2070
+ _body_params: Optional[bytes] = None
2071
+
2072
+ # process the path parameters
2073
+ # process the query parameters
2074
+ if locale is not None:
2075
+
2076
+ _query_params.append(('locale', locale))
2077
+
2078
+ # process the header parameters
2079
+ # process the form parameters
2080
+ # process the body parameter
2081
+
2082
+
2083
+ # set the HTTP header `Accept`
2084
+ if 'Accept' not in _header_params:
2085
+ _header_params['Accept'] = self.api_client.select_header_accept(
2086
+ [
2087
+ 'application/json'
2088
+ ]
2089
+ )
2090
+
2091
+
2092
+ # authentication setting
2093
+ _auth_settings: List[str] = [
2094
+ 'HeaderApiKey'
2095
+ ]
2096
+
2097
+ return self.api_client.param_serialize(
2098
+ method='GET',
2099
+ resource_path='/content/v2/directory/kinds',
2100
+ path_params=_path_params,
2101
+ query_params=_query_params,
2102
+ header_params=_header_params,
2103
+ body=_body_params,
2104
+ post_params=_form_params,
2105
+ files=_files,
2106
+ auth_settings=_auth_settings,
2107
+ collection_formats=_collection_formats,
2108
+ _host=_host,
2109
+ _request_auth=_request_auth
2110
+ )
2111
+
2112
+
2113
+
2114
+
2115
+ @validate_call
2116
+ def content_v2_directory_seasons_get(
2117
+ self,
2118
+ locale: Annotated[Optional[StrictStr], Field(description="Язык полей ответа `subjectName` и `name`: - `ru` — русский - `en` — английский - `zh` — китайский Не используется в песочнице ")] = None,
2119
+ _request_timeout: Union[
2120
+ None,
2121
+ Annotated[StrictFloat, Field(gt=0)],
2122
+ Tuple[
2123
+ Annotated[StrictFloat, Field(gt=0)],
2124
+ Annotated[StrictFloat, Field(gt=0)]
2125
+ ]
2126
+ ] = None,
2127
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2128
+ _content_type: Optional[StrictStr] = None,
2129
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2130
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
2131
+ ) -> ContentV2DirectorySeasonsGet200Response:
2132
+ """Сезон
2133
+
2134
+ Метод возвращает возможные значения [характеристики](/openapi/work-with-products#tag/Kategorii-predmety-i-harakteristiki/paths/~1content~1v2~1object~1charcs~1%7BsubjectId%7D/get) предмета `Сезон`. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов категории <strong>Контент</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 100 запросов | 600 миллисекунд | 5 запросов | Исключение — методы: <ul> <li><a href=\"/openapi/work-with-products#tag/Sozdanie-kartochek-tovarov/paths/~1content~1v2~1cards~1upload/post\">создания карточек товаров</a></li> <li><a href=\"/openapi/work-with-products#tag/Sozdanie-kartochek-tovarov/paths/~1content~1v2~1cards~1upload~1add/post\">создания карточек товаров с присоединением</a></li> <li><a href=\"/openapi/work-with-products#tag/Kartochki-tovarov/paths/~1content~1v2~1cards~1update/post\">редактирования карточек товаров</a></li> <li><a href=\"/openapi/work-with-products#tag/Kartochki-tovarov/paths/~1content~1v2~1cards~1error~1list/post\">получения несозданных карточек товаров с ошибками</a></li> </ul> </div>
2135
+
2136
+ :param locale: Язык полей ответа `subjectName` и `name`: - `ru` — русский - `en` — английский - `zh` — китайский Не используется в песочнице
2137
+ :type locale: str
2138
+ :param _request_timeout: timeout setting for this request. If one
2139
+ number provided, it will be total request
2140
+ timeout. It can also be a pair (tuple) of
2141
+ (connection, read) timeouts.
2142
+ :type _request_timeout: int, tuple(int, int), optional
2143
+ :param _request_auth: set to override the auth_settings for an a single
2144
+ request; this effectively ignores the
2145
+ authentication in the spec for a single request.
2146
+ :type _request_auth: dict, optional
2147
+ :param _content_type: force content-type for the request.
2148
+ :type _content_type: str, Optional
2149
+ :param _headers: set to override the headers for a single
2150
+ request; this effectively ignores the headers
2151
+ in the spec for a single request.
2152
+ :type _headers: dict, optional
2153
+ :param _host_index: set to override the host_index for a single
2154
+ request; this effectively ignores the host_index
2155
+ in the spec for a single request.
2156
+ :type _host_index: int, optional
2157
+ :return: Returns the result object.
2158
+ """ # noqa: E501
2159
+
2160
+ _param = self._content_v2_directory_seasons_get_serialize(
2161
+ locale=locale,
2162
+ _request_auth=_request_auth,
2163
+ _content_type=_content_type,
2164
+ _headers=_headers,
2165
+ _host_index=_host_index
2166
+ )
2167
+
2168
+ _response_types_map: Dict[str, Optional[str]] = {
2169
+ '200': "ContentV2DirectorySeasonsGet200Response",
2170
+ '400': "ResponseBodyContentError400",
2171
+ '401': "ContentV2ObjectParentAllGet401Response",
2172
+ '403': "ResponseBodyContentError403",
2173
+ '429': "ContentV2ObjectParentAllGet401Response",
2174
+ }
2175
+ response_data = self.api_client.call_api(
2176
+ *_param,
2177
+ _request_timeout=_request_timeout
2178
+ )
2179
+ response_data.read()
2180
+ return self.api_client.response_deserialize(
2181
+ response_data=response_data,
2182
+ response_types_map=_response_types_map,
2183
+ ).data
2184
+
2185
+
2186
+ @validate_call
2187
+ def content_v2_directory_seasons_get_with_http_info(
2188
+ self,
2189
+ locale: Annotated[Optional[StrictStr], Field(description="Язык полей ответа `subjectName` и `name`: - `ru` — русский - `en` — английский - `zh` — китайский Не используется в песочнице ")] = None,
2190
+ _request_timeout: Union[
2191
+ None,
2192
+ Annotated[StrictFloat, Field(gt=0)],
2193
+ Tuple[
2194
+ Annotated[StrictFloat, Field(gt=0)],
2195
+ Annotated[StrictFloat, Field(gt=0)]
2196
+ ]
2197
+ ] = None,
2198
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2199
+ _content_type: Optional[StrictStr] = None,
2200
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2201
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
2202
+ ) -> ApiResponse[ContentV2DirectorySeasonsGet200Response]:
2203
+ """Сезон
2204
+
2205
+ Метод возвращает возможные значения [характеристики](/openapi/work-with-products#tag/Kategorii-predmety-i-harakteristiki/paths/~1content~1v2~1object~1charcs~1%7BsubjectId%7D/get) предмета `Сезон`. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов категории <strong>Контент</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 100 запросов | 600 миллисекунд | 5 запросов | Исключение — методы: <ul> <li><a href=\"/openapi/work-with-products#tag/Sozdanie-kartochek-tovarov/paths/~1content~1v2~1cards~1upload/post\">создания карточек товаров</a></li> <li><a href=\"/openapi/work-with-products#tag/Sozdanie-kartochek-tovarov/paths/~1content~1v2~1cards~1upload~1add/post\">создания карточек товаров с присоединением</a></li> <li><a href=\"/openapi/work-with-products#tag/Kartochki-tovarov/paths/~1content~1v2~1cards~1update/post\">редактирования карточек товаров</a></li> <li><a href=\"/openapi/work-with-products#tag/Kartochki-tovarov/paths/~1content~1v2~1cards~1error~1list/post\">получения несозданных карточек товаров с ошибками</a></li> </ul> </div>
2206
+
2207
+ :param locale: Язык полей ответа `subjectName` и `name`: - `ru` — русский - `en` — английский - `zh` — китайский Не используется в песочнице
2208
+ :type locale: str
2209
+ :param _request_timeout: timeout setting for this request. If one
2210
+ number provided, it will be total request
2211
+ timeout. It can also be a pair (tuple) of
2212
+ (connection, read) timeouts.
2213
+ :type _request_timeout: int, tuple(int, int), optional
2214
+ :param _request_auth: set to override the auth_settings for an a single
2215
+ request; this effectively ignores the
2216
+ authentication in the spec for a single request.
2217
+ :type _request_auth: dict, optional
2218
+ :param _content_type: force content-type for the request.
2219
+ :type _content_type: str, Optional
2220
+ :param _headers: set to override the headers for a single
2221
+ request; this effectively ignores the headers
2222
+ in the spec for a single request.
2223
+ :type _headers: dict, optional
2224
+ :param _host_index: set to override the host_index for a single
2225
+ request; this effectively ignores the host_index
2226
+ in the spec for a single request.
2227
+ :type _host_index: int, optional
2228
+ :return: Returns the result object.
2229
+ """ # noqa: E501
2230
+
2231
+ _param = self._content_v2_directory_seasons_get_serialize(
2232
+ locale=locale,
2233
+ _request_auth=_request_auth,
2234
+ _content_type=_content_type,
2235
+ _headers=_headers,
2236
+ _host_index=_host_index
2237
+ )
2238
+
2239
+ _response_types_map: Dict[str, Optional[str]] = {
2240
+ '200': "ContentV2DirectorySeasonsGet200Response",
2241
+ '400': "ResponseBodyContentError400",
2242
+ '401': "ContentV2ObjectParentAllGet401Response",
2243
+ '403': "ResponseBodyContentError403",
2244
+ '429': "ContentV2ObjectParentAllGet401Response",
2245
+ }
2246
+ response_data = self.api_client.call_api(
2247
+ *_param,
2248
+ _request_timeout=_request_timeout
2249
+ )
2250
+ response_data.read()
2251
+ return self.api_client.response_deserialize(
2252
+ response_data=response_data,
2253
+ response_types_map=_response_types_map,
2254
+ )
2255
+
2256
+
2257
+ @validate_call
2258
+ def content_v2_directory_seasons_get_without_preload_content(
2259
+ self,
2260
+ locale: Annotated[Optional[StrictStr], Field(description="Язык полей ответа `subjectName` и `name`: - `ru` — русский - `en` — английский - `zh` — китайский Не используется в песочнице ")] = None,
2261
+ _request_timeout: Union[
2262
+ None,
2263
+ Annotated[StrictFloat, Field(gt=0)],
2264
+ Tuple[
2265
+ Annotated[StrictFloat, Field(gt=0)],
2266
+ Annotated[StrictFloat, Field(gt=0)]
2267
+ ]
2268
+ ] = None,
2269
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2270
+ _content_type: Optional[StrictStr] = None,
2271
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2272
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
2273
+ ) -> RESTResponseType:
2274
+ """Сезон
2275
+
2276
+ Метод возвращает возможные значения [характеристики](/openapi/work-with-products#tag/Kategorii-predmety-i-harakteristiki/paths/~1content~1v2~1object~1charcs~1%7BsubjectId%7D/get) предмета `Сезон`. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов категории <strong>Контент</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 100 запросов | 600 миллисекунд | 5 запросов | Исключение — методы: <ul> <li><a href=\"/openapi/work-with-products#tag/Sozdanie-kartochek-tovarov/paths/~1content~1v2~1cards~1upload/post\">создания карточек товаров</a></li> <li><a href=\"/openapi/work-with-products#tag/Sozdanie-kartochek-tovarov/paths/~1content~1v2~1cards~1upload~1add/post\">создания карточек товаров с присоединением</a></li> <li><a href=\"/openapi/work-with-products#tag/Kartochki-tovarov/paths/~1content~1v2~1cards~1update/post\">редактирования карточек товаров</a></li> <li><a href=\"/openapi/work-with-products#tag/Kartochki-tovarov/paths/~1content~1v2~1cards~1error~1list/post\">получения несозданных карточек товаров с ошибками</a></li> </ul> </div>
2277
+
2278
+ :param locale: Язык полей ответа `subjectName` и `name`: - `ru` — русский - `en` — английский - `zh` — китайский Не используется в песочнице
2279
+ :type locale: str
2280
+ :param _request_timeout: timeout setting for this request. If one
2281
+ number provided, it will be total request
2282
+ timeout. It can also be a pair (tuple) of
2283
+ (connection, read) timeouts.
2284
+ :type _request_timeout: int, tuple(int, int), optional
2285
+ :param _request_auth: set to override the auth_settings for an a single
2286
+ request; this effectively ignores the
2287
+ authentication in the spec for a single request.
2288
+ :type _request_auth: dict, optional
2289
+ :param _content_type: force content-type for the request.
2290
+ :type _content_type: str, Optional
2291
+ :param _headers: set to override the headers for a single
2292
+ request; this effectively ignores the headers
2293
+ in the spec for a single request.
2294
+ :type _headers: dict, optional
2295
+ :param _host_index: set to override the host_index for a single
2296
+ request; this effectively ignores the host_index
2297
+ in the spec for a single request.
2298
+ :type _host_index: int, optional
2299
+ :return: Returns the result object.
2300
+ """ # noqa: E501
2301
+
2302
+ _param = self._content_v2_directory_seasons_get_serialize(
2303
+ locale=locale,
2304
+ _request_auth=_request_auth,
2305
+ _content_type=_content_type,
2306
+ _headers=_headers,
2307
+ _host_index=_host_index
2308
+ )
2309
+
2310
+ _response_types_map: Dict[str, Optional[str]] = {
2311
+ '200': "ContentV2DirectorySeasonsGet200Response",
2312
+ '400': "ResponseBodyContentError400",
2313
+ '401': "ContentV2ObjectParentAllGet401Response",
2314
+ '403': "ResponseBodyContentError403",
2315
+ '429': "ContentV2ObjectParentAllGet401Response",
2316
+ }
2317
+ response_data = self.api_client.call_api(
2318
+ *_param,
2319
+ _request_timeout=_request_timeout
2320
+ )
2321
+ return response_data.response
2322
+
2323
+
2324
+ def _content_v2_directory_seasons_get_serialize(
2325
+ self,
2326
+ locale,
2327
+ _request_auth,
2328
+ _content_type,
2329
+ _headers,
2330
+ _host_index,
2331
+ ) -> RequestSerialized:
2332
+
2333
+ _hosts = [
2334
+ 'https://content-api.wildberries.ru'
2335
+ ]
2336
+ _host = _hosts[_host_index]
2337
+
2338
+ _collection_formats: Dict[str, str] = {
2339
+ }
2340
+
2341
+ _path_params: Dict[str, str] = {}
2342
+ _query_params: List[Tuple[str, str]] = []
2343
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2344
+ _form_params: List[Tuple[str, str]] = []
2345
+ _files: Dict[
2346
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2347
+ ] = {}
2348
+ _body_params: Optional[bytes] = None
2349
+
2350
+ # process the path parameters
2351
+ # process the query parameters
2352
+ if locale is not None:
2353
+
2354
+ _query_params.append(('locale', locale))
2355
+
2356
+ # process the header parameters
2357
+ # process the form parameters
2358
+ # process the body parameter
2359
+
2360
+
2361
+ # set the HTTP header `Accept`
2362
+ if 'Accept' not in _header_params:
2363
+ _header_params['Accept'] = self.api_client.select_header_accept(
2364
+ [
2365
+ 'application/json'
2366
+ ]
2367
+ )
2368
+
2369
+
2370
+ # authentication setting
2371
+ _auth_settings: List[str] = [
2372
+ 'HeaderApiKey'
2373
+ ]
2374
+
2375
+ return self.api_client.param_serialize(
2376
+ method='GET',
2377
+ resource_path='/content/v2/directory/seasons',
2378
+ path_params=_path_params,
2379
+ query_params=_query_params,
2380
+ header_params=_header_params,
2381
+ body=_body_params,
2382
+ post_params=_form_params,
2383
+ files=_files,
2384
+ auth_settings=_auth_settings,
2385
+ collection_formats=_collection_formats,
2386
+ _host=_host,
2387
+ _request_auth=_request_auth
2388
+ )
2389
+
2390
+
2391
+
2392
+
2393
+ @validate_call
2394
+ def content_v2_directory_tnved_get(
2395
+ self,
2396
+ subject_id: Annotated[StrictInt, Field(description="ID предмета")],
2397
+ search: Annotated[Optional[StrictInt], Field(description="Поиск по ТНВЭД-коду. Работает только в паре с `subjectID`")] = None,
2398
+ locale: Annotated[Optional[StrictStr], Field(description="Язык полей ответа: - `ru` — русский - `en` — английский - `zh` — китайский Не используется в песочнице ")] = None,
2399
+ _request_timeout: Union[
2400
+ None,
2401
+ Annotated[StrictFloat, Field(gt=0)],
2402
+ Tuple[
2403
+ Annotated[StrictFloat, Field(gt=0)],
2404
+ Annotated[StrictFloat, Field(gt=0)]
2405
+ ]
2406
+ ] = None,
2407
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2408
+ _content_type: Optional[StrictStr] = None,
2409
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2410
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
2411
+ ) -> ContentV2DirectoryTnvedGet200Response:
2412
+ """ТНВЭД-код
2413
+
2414
+ Метод возвращает список ТНВЭД-кодов по ID [предмета](/openapi/work-with-products#tag/Kategorii-predmety-i-harakteristiki/paths/~1content~1v2~1object~1all/get) и фрагменту ТНВЭД-кода. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов категории <strong>Контент</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 100 запросов | 600 миллисекунд | 5 запросов | Исключение — методы: <ul> <li><a href=\"/openapi/work-with-products#tag/Sozdanie-kartochek-tovarov/paths/~1content~1v2~1cards~1upload/post\">создания карточек товаров</a></li> <li><a href=\"/openapi/work-with-products#tag/Sozdanie-kartochek-tovarov/paths/~1content~1v2~1cards~1upload~1add/post\">создания карточек товаров с присоединением</a></li> <li><a href=\"/openapi/work-with-products#tag/Kartochki-tovarov/paths/~1content~1v2~1cards~1update/post\">редактирования карточек товаров</a></li> <li><a href=\"/openapi/work-with-products#tag/Kartochki-tovarov/paths/~1content~1v2~1cards~1error~1list/post\">получения несозданных карточек товаров с ошибками</a></li> </ul> </div>
2415
+
2416
+ :param subject_id: ID предмета (required)
2417
+ :type subject_id: int
2418
+ :param search: Поиск по ТНВЭД-коду. Работает только в паре с `subjectID`
2419
+ :type search: int
2420
+ :param locale: Язык полей ответа: - `ru` — русский - `en` — английский - `zh` — китайский Не используется в песочнице
2421
+ :type locale: str
2422
+ :param _request_timeout: timeout setting for this request. If one
2423
+ number provided, it will be total request
2424
+ timeout. It can also be a pair (tuple) of
2425
+ (connection, read) timeouts.
2426
+ :type _request_timeout: int, tuple(int, int), optional
2427
+ :param _request_auth: set to override the auth_settings for an a single
2428
+ request; this effectively ignores the
2429
+ authentication in the spec for a single request.
2430
+ :type _request_auth: dict, optional
2431
+ :param _content_type: force content-type for the request.
2432
+ :type _content_type: str, Optional
2433
+ :param _headers: set to override the headers for a single
2434
+ request; this effectively ignores the headers
2435
+ in the spec for a single request.
2436
+ :type _headers: dict, optional
2437
+ :param _host_index: set to override the host_index for a single
2438
+ request; this effectively ignores the host_index
2439
+ in the spec for a single request.
2440
+ :type _host_index: int, optional
2441
+ :return: Returns the result object.
2442
+ """ # noqa: E501
2443
+
2444
+ _param = self._content_v2_directory_tnved_get_serialize(
2445
+ subject_id=subject_id,
2446
+ search=search,
2447
+ locale=locale,
2448
+ _request_auth=_request_auth,
2449
+ _content_type=_content_type,
2450
+ _headers=_headers,
2451
+ _host_index=_host_index
2452
+ )
2453
+
2454
+ _response_types_map: Dict[str, Optional[str]] = {
2455
+ '200': "ContentV2DirectoryTnvedGet200Response",
2456
+ '400': "ResponseBodyContentError400",
2457
+ '401': "ContentV2ObjectParentAllGet401Response",
2458
+ '403': "ResponseBodyContentError403",
2459
+ '429': "ContentV2ObjectParentAllGet401Response",
2460
+ }
2461
+ response_data = self.api_client.call_api(
2462
+ *_param,
2463
+ _request_timeout=_request_timeout
2464
+ )
2465
+ response_data.read()
2466
+ return self.api_client.response_deserialize(
2467
+ response_data=response_data,
2468
+ response_types_map=_response_types_map,
2469
+ ).data
2470
+
2471
+
2472
+ @validate_call
2473
+ def content_v2_directory_tnved_get_with_http_info(
2474
+ self,
2475
+ subject_id: Annotated[StrictInt, Field(description="ID предмета")],
2476
+ search: Annotated[Optional[StrictInt], Field(description="Поиск по ТНВЭД-коду. Работает только в паре с `subjectID`")] = None,
2477
+ locale: Annotated[Optional[StrictStr], Field(description="Язык полей ответа: - `ru` — русский - `en` — английский - `zh` — китайский Не используется в песочнице ")] = None,
2478
+ _request_timeout: Union[
2479
+ None,
2480
+ Annotated[StrictFloat, Field(gt=0)],
2481
+ Tuple[
2482
+ Annotated[StrictFloat, Field(gt=0)],
2483
+ Annotated[StrictFloat, Field(gt=0)]
2484
+ ]
2485
+ ] = None,
2486
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2487
+ _content_type: Optional[StrictStr] = None,
2488
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2489
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
2490
+ ) -> ApiResponse[ContentV2DirectoryTnvedGet200Response]:
2491
+ """ТНВЭД-код
2492
+
2493
+ Метод возвращает список ТНВЭД-кодов по ID [предмета](/openapi/work-with-products#tag/Kategorii-predmety-i-harakteristiki/paths/~1content~1v2~1object~1all/get) и фрагменту ТНВЭД-кода. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов категории <strong>Контент</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 100 запросов | 600 миллисекунд | 5 запросов | Исключение — методы: <ul> <li><a href=\"/openapi/work-with-products#tag/Sozdanie-kartochek-tovarov/paths/~1content~1v2~1cards~1upload/post\">создания карточек товаров</a></li> <li><a href=\"/openapi/work-with-products#tag/Sozdanie-kartochek-tovarov/paths/~1content~1v2~1cards~1upload~1add/post\">создания карточек товаров с присоединением</a></li> <li><a href=\"/openapi/work-with-products#tag/Kartochki-tovarov/paths/~1content~1v2~1cards~1update/post\">редактирования карточек товаров</a></li> <li><a href=\"/openapi/work-with-products#tag/Kartochki-tovarov/paths/~1content~1v2~1cards~1error~1list/post\">получения несозданных карточек товаров с ошибками</a></li> </ul> </div>
2494
+
2495
+ :param subject_id: ID предмета (required)
2496
+ :type subject_id: int
2497
+ :param search: Поиск по ТНВЭД-коду. Работает только в паре с `subjectID`
2498
+ :type search: int
2499
+ :param locale: Язык полей ответа: - `ru` — русский - `en` — английский - `zh` — китайский Не используется в песочнице
2500
+ :type locale: str
2501
+ :param _request_timeout: timeout setting for this request. If one
2502
+ number provided, it will be total request
2503
+ timeout. It can also be a pair (tuple) of
2504
+ (connection, read) timeouts.
2505
+ :type _request_timeout: int, tuple(int, int), optional
2506
+ :param _request_auth: set to override the auth_settings for an a single
2507
+ request; this effectively ignores the
2508
+ authentication in the spec for a single request.
2509
+ :type _request_auth: dict, optional
2510
+ :param _content_type: force content-type for the request.
2511
+ :type _content_type: str, Optional
2512
+ :param _headers: set to override the headers for a single
2513
+ request; this effectively ignores the headers
2514
+ in the spec for a single request.
2515
+ :type _headers: dict, optional
2516
+ :param _host_index: set to override the host_index for a single
2517
+ request; this effectively ignores the host_index
2518
+ in the spec for a single request.
2519
+ :type _host_index: int, optional
2520
+ :return: Returns the result object.
2521
+ """ # noqa: E501
2522
+
2523
+ _param = self._content_v2_directory_tnved_get_serialize(
2524
+ subject_id=subject_id,
2525
+ search=search,
2526
+ locale=locale,
2527
+ _request_auth=_request_auth,
2528
+ _content_type=_content_type,
2529
+ _headers=_headers,
2530
+ _host_index=_host_index
2531
+ )
2532
+
2533
+ _response_types_map: Dict[str, Optional[str]] = {
2534
+ '200': "ContentV2DirectoryTnvedGet200Response",
2535
+ '400': "ResponseBodyContentError400",
2536
+ '401': "ContentV2ObjectParentAllGet401Response",
2537
+ '403': "ResponseBodyContentError403",
2538
+ '429': "ContentV2ObjectParentAllGet401Response",
2539
+ }
2540
+ response_data = self.api_client.call_api(
2541
+ *_param,
2542
+ _request_timeout=_request_timeout
2543
+ )
2544
+ response_data.read()
2545
+ return self.api_client.response_deserialize(
2546
+ response_data=response_data,
2547
+ response_types_map=_response_types_map,
2548
+ )
2549
+
2550
+
2551
+ @validate_call
2552
+ def content_v2_directory_tnved_get_without_preload_content(
2553
+ self,
2554
+ subject_id: Annotated[StrictInt, Field(description="ID предмета")],
2555
+ search: Annotated[Optional[StrictInt], Field(description="Поиск по ТНВЭД-коду. Работает только в паре с `subjectID`")] = None,
2556
+ locale: Annotated[Optional[StrictStr], Field(description="Язык полей ответа: - `ru` — русский - `en` — английский - `zh` — китайский Не используется в песочнице ")] = None,
2557
+ _request_timeout: Union[
2558
+ None,
2559
+ Annotated[StrictFloat, Field(gt=0)],
2560
+ Tuple[
2561
+ Annotated[StrictFloat, Field(gt=0)],
2562
+ Annotated[StrictFloat, Field(gt=0)]
2563
+ ]
2564
+ ] = None,
2565
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2566
+ _content_type: Optional[StrictStr] = None,
2567
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2568
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
2569
+ ) -> RESTResponseType:
2570
+ """ТНВЭД-код
2571
+
2572
+ Метод возвращает список ТНВЭД-кодов по ID [предмета](/openapi/work-with-products#tag/Kategorii-predmety-i-harakteristiki/paths/~1content~1v2~1object~1all/get) и фрагменту ТНВЭД-кода. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов категории <strong>Контент</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 100 запросов | 600 миллисекунд | 5 запросов | Исключение — методы: <ul> <li><a href=\"/openapi/work-with-products#tag/Sozdanie-kartochek-tovarov/paths/~1content~1v2~1cards~1upload/post\">создания карточек товаров</a></li> <li><a href=\"/openapi/work-with-products#tag/Sozdanie-kartochek-tovarov/paths/~1content~1v2~1cards~1upload~1add/post\">создания карточек товаров с присоединением</a></li> <li><a href=\"/openapi/work-with-products#tag/Kartochki-tovarov/paths/~1content~1v2~1cards~1update/post\">редактирования карточек товаров</a></li> <li><a href=\"/openapi/work-with-products#tag/Kartochki-tovarov/paths/~1content~1v2~1cards~1error~1list/post\">получения несозданных карточек товаров с ошибками</a></li> </ul> </div>
2573
+
2574
+ :param subject_id: ID предмета (required)
2575
+ :type subject_id: int
2576
+ :param search: Поиск по ТНВЭД-коду. Работает только в паре с `subjectID`
2577
+ :type search: int
2578
+ :param locale: Язык полей ответа: - `ru` — русский - `en` — английский - `zh` — китайский Не используется в песочнице
2579
+ :type locale: str
2580
+ :param _request_timeout: timeout setting for this request. If one
2581
+ number provided, it will be total request
2582
+ timeout. It can also be a pair (tuple) of
2583
+ (connection, read) timeouts.
2584
+ :type _request_timeout: int, tuple(int, int), optional
2585
+ :param _request_auth: set to override the auth_settings for an a single
2586
+ request; this effectively ignores the
2587
+ authentication in the spec for a single request.
2588
+ :type _request_auth: dict, optional
2589
+ :param _content_type: force content-type for the request.
2590
+ :type _content_type: str, Optional
2591
+ :param _headers: set to override the headers for a single
2592
+ request; this effectively ignores the headers
2593
+ in the spec for a single request.
2594
+ :type _headers: dict, optional
2595
+ :param _host_index: set to override the host_index for a single
2596
+ request; this effectively ignores the host_index
2597
+ in the spec for a single request.
2598
+ :type _host_index: int, optional
2599
+ :return: Returns the result object.
2600
+ """ # noqa: E501
2601
+
2602
+ _param = self._content_v2_directory_tnved_get_serialize(
2603
+ subject_id=subject_id,
2604
+ search=search,
2605
+ locale=locale,
2606
+ _request_auth=_request_auth,
2607
+ _content_type=_content_type,
2608
+ _headers=_headers,
2609
+ _host_index=_host_index
2610
+ )
2611
+
2612
+ _response_types_map: Dict[str, Optional[str]] = {
2613
+ '200': "ContentV2DirectoryTnvedGet200Response",
2614
+ '400': "ResponseBodyContentError400",
2615
+ '401': "ContentV2ObjectParentAllGet401Response",
2616
+ '403': "ResponseBodyContentError403",
2617
+ '429': "ContentV2ObjectParentAllGet401Response",
2618
+ }
2619
+ response_data = self.api_client.call_api(
2620
+ *_param,
2621
+ _request_timeout=_request_timeout
2622
+ )
2623
+ return response_data.response
2624
+
2625
+
2626
+ def _content_v2_directory_tnved_get_serialize(
2627
+ self,
2628
+ subject_id,
2629
+ search,
2630
+ locale,
2631
+ _request_auth,
2632
+ _content_type,
2633
+ _headers,
2634
+ _host_index,
2635
+ ) -> RequestSerialized:
2636
+
2637
+ _hosts = [
2638
+ 'https://content-api.wildberries.ru'
2639
+ ]
2640
+ _host = _hosts[_host_index]
2641
+
2642
+ _collection_formats: Dict[str, str] = {
2643
+ }
2644
+
2645
+ _path_params: Dict[str, str] = {}
2646
+ _query_params: List[Tuple[str, str]] = []
2647
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2648
+ _form_params: List[Tuple[str, str]] = []
2649
+ _files: Dict[
2650
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2651
+ ] = {}
2652
+ _body_params: Optional[bytes] = None
2653
+
2654
+ # process the path parameters
2655
+ # process the query parameters
2656
+ if subject_id is not None:
2657
+
2658
+ _query_params.append(('subjectID', subject_id))
2659
+
2660
+ if search is not None:
2661
+
2662
+ _query_params.append(('search', search))
2663
+
2664
+ if locale is not None:
2665
+
2666
+ _query_params.append(('locale', locale))
2667
+
2668
+ # process the header parameters
2669
+ # process the form parameters
2670
+ # process the body parameter
2671
+
2672
+
2673
+ # set the HTTP header `Accept`
2674
+ if 'Accept' not in _header_params:
2675
+ _header_params['Accept'] = self.api_client.select_header_accept(
2676
+ [
2677
+ 'application/json'
2678
+ ]
2679
+ )
2680
+
2681
+
2682
+ # authentication setting
2683
+ _auth_settings: List[str] = [
2684
+ 'HeaderApiKey'
2685
+ ]
2686
+
2687
+ return self.api_client.param_serialize(
2688
+ method='GET',
2689
+ resource_path='/content/v2/directory/tnved',
2690
+ path_params=_path_params,
2691
+ query_params=_query_params,
2692
+ header_params=_header_params,
2693
+ body=_body_params,
2694
+ post_params=_form_params,
2695
+ files=_files,
2696
+ auth_settings=_auth_settings,
2697
+ collection_formats=_collection_formats,
2698
+ _host=_host,
2699
+ _request_auth=_request_auth
2700
+ )
2701
+
2702
+
2703
+
2704
+
2705
+ @validate_call
2706
+ def content_v2_directory_vat_get(
2707
+ self,
2708
+ locale: Annotated[Optional[StrictStr], Field(description="Язык полей ответа `subjectName` и `name`: - `ru` — русский - `en` — английский - `zh` — китайский Не используется в песочнице ")] = None,
2709
+ _request_timeout: Union[
2710
+ None,
2711
+ Annotated[StrictFloat, Field(gt=0)],
2712
+ Tuple[
2713
+ Annotated[StrictFloat, Field(gt=0)],
2714
+ Annotated[StrictFloat, Field(gt=0)]
2715
+ ]
2716
+ ] = None,
2717
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2718
+ _content_type: Optional[StrictStr] = None,
2719
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2720
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
2721
+ ) -> ContentV2DirectoryVatGet200Response:
2722
+ """Ставка НДС
2723
+
2724
+ Метод возвращает возможные значения [характеристики](/openapi/work-with-products#tag/Kategorii-predmety-i-harakteristiki/paths/~1content~1v2~1object~1charcs~1%7BsubjectId%7D/get) предмета `Ставка НДС`. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов категории <strong>Контент</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 100 запросов | 600 миллисекунд | 5 запросов | Исключение — методы: <ul> <li><a href=\"/openapi/work-with-products#tag/Sozdanie-kartochek-tovarov/paths/~1content~1v2~1cards~1upload/post\">создания карточек товаров</a></li> <li><a href=\"/openapi/work-with-products#tag/Sozdanie-kartochek-tovarov/paths/~1content~1v2~1cards~1upload~1add/post\">создания карточек товаров с присоединением</a></li> <li><a href=\"/openapi/work-with-products#tag/Kartochki-tovarov/paths/~1content~1v2~1cards~1update/post\">редактирования карточек товаров</a></li> <li><a href=\"/openapi/work-with-products#tag/Kartochki-tovarov/paths/~1content~1v2~1cards~1error~1list/post\">получения несозданных карточек товаров с ошибками</a></li> </ul> </div>
2725
+
2726
+ :param locale: Язык полей ответа `subjectName` и `name`: - `ru` — русский - `en` — английский - `zh` — китайский Не используется в песочнице
2727
+ :type locale: str
2728
+ :param _request_timeout: timeout setting for this request. If one
2729
+ number provided, it will be total request
2730
+ timeout. It can also be a pair (tuple) of
2731
+ (connection, read) timeouts.
2732
+ :type _request_timeout: int, tuple(int, int), optional
2733
+ :param _request_auth: set to override the auth_settings for an a single
2734
+ request; this effectively ignores the
2735
+ authentication in the spec for a single request.
2736
+ :type _request_auth: dict, optional
2737
+ :param _content_type: force content-type for the request.
2738
+ :type _content_type: str, Optional
2739
+ :param _headers: set to override the headers for a single
2740
+ request; this effectively ignores the headers
2741
+ in the spec for a single request.
2742
+ :type _headers: dict, optional
2743
+ :param _host_index: set to override the host_index for a single
2744
+ request; this effectively ignores the host_index
2745
+ in the spec for a single request.
2746
+ :type _host_index: int, optional
2747
+ :return: Returns the result object.
2748
+ """ # noqa: E501
2749
+
2750
+ _param = self._content_v2_directory_vat_get_serialize(
2751
+ locale=locale,
2752
+ _request_auth=_request_auth,
2753
+ _content_type=_content_type,
2754
+ _headers=_headers,
2755
+ _host_index=_host_index
2756
+ )
2757
+
2758
+ _response_types_map: Dict[str, Optional[str]] = {
2759
+ '200': "ContentV2DirectoryVatGet200Response",
2760
+ '400': "ResponseBodyContentError400",
2761
+ '401': "ContentV2ObjectParentAllGet401Response",
2762
+ '403': "ResponseBodyContentError403",
2763
+ '429': "ContentV2ObjectParentAllGet401Response",
2764
+ }
2765
+ response_data = self.api_client.call_api(
2766
+ *_param,
2767
+ _request_timeout=_request_timeout
2768
+ )
2769
+ response_data.read()
2770
+ return self.api_client.response_deserialize(
2771
+ response_data=response_data,
2772
+ response_types_map=_response_types_map,
2773
+ ).data
2774
+
2775
+
2776
+ @validate_call
2777
+ def content_v2_directory_vat_get_with_http_info(
2778
+ self,
2779
+ locale: Annotated[Optional[StrictStr], Field(description="Язык полей ответа `subjectName` и `name`: - `ru` — русский - `en` — английский - `zh` — китайский Не используется в песочнице ")] = None,
2780
+ _request_timeout: Union[
2781
+ None,
2782
+ Annotated[StrictFloat, Field(gt=0)],
2783
+ Tuple[
2784
+ Annotated[StrictFloat, Field(gt=0)],
2785
+ Annotated[StrictFloat, Field(gt=0)]
2786
+ ]
2787
+ ] = None,
2788
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2789
+ _content_type: Optional[StrictStr] = None,
2790
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2791
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
2792
+ ) -> ApiResponse[ContentV2DirectoryVatGet200Response]:
2793
+ """Ставка НДС
2794
+
2795
+ Метод возвращает возможные значения [характеристики](/openapi/work-with-products#tag/Kategorii-predmety-i-harakteristiki/paths/~1content~1v2~1object~1charcs~1%7BsubjectId%7D/get) предмета `Ставка НДС`. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов категории <strong>Контент</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 100 запросов | 600 миллисекунд | 5 запросов | Исключение — методы: <ul> <li><a href=\"/openapi/work-with-products#tag/Sozdanie-kartochek-tovarov/paths/~1content~1v2~1cards~1upload/post\">создания карточек товаров</a></li> <li><a href=\"/openapi/work-with-products#tag/Sozdanie-kartochek-tovarov/paths/~1content~1v2~1cards~1upload~1add/post\">создания карточек товаров с присоединением</a></li> <li><a href=\"/openapi/work-with-products#tag/Kartochki-tovarov/paths/~1content~1v2~1cards~1update/post\">редактирования карточек товаров</a></li> <li><a href=\"/openapi/work-with-products#tag/Kartochki-tovarov/paths/~1content~1v2~1cards~1error~1list/post\">получения несозданных карточек товаров с ошибками</a></li> </ul> </div>
2796
+
2797
+ :param locale: Язык полей ответа `subjectName` и `name`: - `ru` — русский - `en` — английский - `zh` — китайский Не используется в песочнице
2798
+ :type locale: str
2799
+ :param _request_timeout: timeout setting for this request. If one
2800
+ number provided, it will be total request
2801
+ timeout. It can also be a pair (tuple) of
2802
+ (connection, read) timeouts.
2803
+ :type _request_timeout: int, tuple(int, int), optional
2804
+ :param _request_auth: set to override the auth_settings for an a single
2805
+ request; this effectively ignores the
2806
+ authentication in the spec for a single request.
2807
+ :type _request_auth: dict, optional
2808
+ :param _content_type: force content-type for the request.
2809
+ :type _content_type: str, Optional
2810
+ :param _headers: set to override the headers for a single
2811
+ request; this effectively ignores the headers
2812
+ in the spec for a single request.
2813
+ :type _headers: dict, optional
2814
+ :param _host_index: set to override the host_index for a single
2815
+ request; this effectively ignores the host_index
2816
+ in the spec for a single request.
2817
+ :type _host_index: int, optional
2818
+ :return: Returns the result object.
2819
+ """ # noqa: E501
2820
+
2821
+ _param = self._content_v2_directory_vat_get_serialize(
2822
+ locale=locale,
2823
+ _request_auth=_request_auth,
2824
+ _content_type=_content_type,
2825
+ _headers=_headers,
2826
+ _host_index=_host_index
2827
+ )
2828
+
2829
+ _response_types_map: Dict[str, Optional[str]] = {
2830
+ '200': "ContentV2DirectoryVatGet200Response",
2831
+ '400': "ResponseBodyContentError400",
2832
+ '401': "ContentV2ObjectParentAllGet401Response",
2833
+ '403': "ResponseBodyContentError403",
2834
+ '429': "ContentV2ObjectParentAllGet401Response",
2835
+ }
2836
+ response_data = self.api_client.call_api(
2837
+ *_param,
2838
+ _request_timeout=_request_timeout
2839
+ )
2840
+ response_data.read()
2841
+ return self.api_client.response_deserialize(
2842
+ response_data=response_data,
2843
+ response_types_map=_response_types_map,
2844
+ )
2845
+
2846
+
2847
+ @validate_call
2848
+ def content_v2_directory_vat_get_without_preload_content(
2849
+ self,
2850
+ locale: Annotated[Optional[StrictStr], Field(description="Язык полей ответа `subjectName` и `name`: - `ru` — русский - `en` — английский - `zh` — китайский Не используется в песочнице ")] = None,
2851
+ _request_timeout: Union[
2852
+ None,
2853
+ Annotated[StrictFloat, Field(gt=0)],
2854
+ Tuple[
2855
+ Annotated[StrictFloat, Field(gt=0)],
2856
+ Annotated[StrictFloat, Field(gt=0)]
2857
+ ]
2858
+ ] = None,
2859
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2860
+ _content_type: Optional[StrictStr] = None,
2861
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2862
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
2863
+ ) -> RESTResponseType:
2864
+ """Ставка НДС
2865
+
2866
+ Метод возвращает возможные значения [характеристики](/openapi/work-with-products#tag/Kategorii-predmety-i-harakteristiki/paths/~1content~1v2~1object~1charcs~1%7BsubjectId%7D/get) предмета `Ставка НДС`. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов категории <strong>Контент</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 100 запросов | 600 миллисекунд | 5 запросов | Исключение — методы: <ul> <li><a href=\"/openapi/work-with-products#tag/Sozdanie-kartochek-tovarov/paths/~1content~1v2~1cards~1upload/post\">создания карточек товаров</a></li> <li><a href=\"/openapi/work-with-products#tag/Sozdanie-kartochek-tovarov/paths/~1content~1v2~1cards~1upload~1add/post\">создания карточек товаров с присоединением</a></li> <li><a href=\"/openapi/work-with-products#tag/Kartochki-tovarov/paths/~1content~1v2~1cards~1update/post\">редактирования карточек товаров</a></li> <li><a href=\"/openapi/work-with-products#tag/Kartochki-tovarov/paths/~1content~1v2~1cards~1error~1list/post\">получения несозданных карточек товаров с ошибками</a></li> </ul> </div>
2867
+
2868
+ :param locale: Язык полей ответа `subjectName` и `name`: - `ru` — русский - `en` — английский - `zh` — китайский Не используется в песочнице
2869
+ :type locale: str
2870
+ :param _request_timeout: timeout setting for this request. If one
2871
+ number provided, it will be total request
2872
+ timeout. It can also be a pair (tuple) of
2873
+ (connection, read) timeouts.
2874
+ :type _request_timeout: int, tuple(int, int), optional
2875
+ :param _request_auth: set to override the auth_settings for an a single
2876
+ request; this effectively ignores the
2877
+ authentication in the spec for a single request.
2878
+ :type _request_auth: dict, optional
2879
+ :param _content_type: force content-type for the request.
2880
+ :type _content_type: str, Optional
2881
+ :param _headers: set to override the headers for a single
2882
+ request; this effectively ignores the headers
2883
+ in the spec for a single request.
2884
+ :type _headers: dict, optional
2885
+ :param _host_index: set to override the host_index for a single
2886
+ request; this effectively ignores the host_index
2887
+ in the spec for a single request.
2888
+ :type _host_index: int, optional
2889
+ :return: Returns the result object.
2890
+ """ # noqa: E501
2891
+
2892
+ _param = self._content_v2_directory_vat_get_serialize(
2893
+ locale=locale,
2894
+ _request_auth=_request_auth,
2895
+ _content_type=_content_type,
2896
+ _headers=_headers,
2897
+ _host_index=_host_index
2898
+ )
2899
+
2900
+ _response_types_map: Dict[str, Optional[str]] = {
2901
+ '200': "ContentV2DirectoryVatGet200Response",
2902
+ '400': "ResponseBodyContentError400",
2903
+ '401': "ContentV2ObjectParentAllGet401Response",
2904
+ '403': "ResponseBodyContentError403",
2905
+ '429': "ContentV2ObjectParentAllGet401Response",
2906
+ }
2907
+ response_data = self.api_client.call_api(
2908
+ *_param,
2909
+ _request_timeout=_request_timeout
2910
+ )
2911
+ return response_data.response
2912
+
2913
+
2914
+ def _content_v2_directory_vat_get_serialize(
2915
+ self,
2916
+ locale,
2917
+ _request_auth,
2918
+ _content_type,
2919
+ _headers,
2920
+ _host_index,
2921
+ ) -> RequestSerialized:
2922
+
2923
+ _hosts = [
2924
+ 'https://content-api.wildberries.ru'
2925
+ ]
2926
+ _host = _hosts[_host_index]
2927
+
2928
+ _collection_formats: Dict[str, str] = {
2929
+ }
2930
+
2931
+ _path_params: Dict[str, str] = {}
2932
+ _query_params: List[Tuple[str, str]] = []
2933
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2934
+ _form_params: List[Tuple[str, str]] = []
2935
+ _files: Dict[
2936
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2937
+ ] = {}
2938
+ _body_params: Optional[bytes] = None
2939
+
2940
+ # process the path parameters
2941
+ # process the query parameters
2942
+ if locale is not None:
2943
+
2944
+ _query_params.append(('locale', locale))
2945
+
2946
+ # process the header parameters
2947
+ # process the form parameters
2948
+ # process the body parameter
2949
+
2950
+
2951
+ # set the HTTP header `Accept`
2952
+ if 'Accept' not in _header_params:
2953
+ _header_params['Accept'] = self.api_client.select_header_accept(
2954
+ [
2955
+ 'application/json'
2956
+ ]
2957
+ )
2958
+
2959
+
2960
+ # authentication setting
2961
+ _auth_settings: List[str] = [
2962
+ 'HeaderApiKey'
2963
+ ]
2964
+
2965
+ return self.api_client.param_serialize(
2966
+ method='GET',
2967
+ resource_path='/content/v2/directory/vat',
2968
+ path_params=_path_params,
2969
+ query_params=_query_params,
2970
+ header_params=_header_params,
2971
+ body=_body_params,
2972
+ post_params=_form_params,
2973
+ files=_files,
2974
+ auth_settings=_auth_settings,
2975
+ collection_formats=_collection_formats,
2976
+ _host=_host,
2977
+ _request_auth=_request_auth
2978
+ )
2979
+
2980
+
2981
+
2982
+
2983
+ @validate_call
2984
+ def content_v2_object_all_get(
2985
+ self,
2986
+ locale: Annotated[Optional[StrictStr], Field(description="Язык полей ответа: - `ru` — русский - `en` — английский - `zh` — китайский Не используется в песочнице ")] = None,
2987
+ name: Annotated[Optional[StrictStr], Field(description="Поиск по названию предмета (Носки), поиск работает по подстроке, искать можно на любом из поддерживаемых языков")] = None,
2988
+ limit: Optional[StrictInt] = None,
2989
+ offset: Optional[StrictInt] = None,
2990
+ parent_id: Annotated[Optional[StrictInt], Field(description="ID родительской категории предмета")] = None,
2991
+ _request_timeout: Union[
2992
+ None,
2993
+ Annotated[StrictFloat, Field(gt=0)],
2994
+ Tuple[
2995
+ Annotated[StrictFloat, Field(gt=0)],
2996
+ Annotated[StrictFloat, Field(gt=0)]
2997
+ ]
2998
+ ] = None,
2999
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3000
+ _content_type: Optional[StrictStr] = None,
3001
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3002
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
3003
+ ) -> ContentV2ObjectAllGet200Response:
3004
+ """Список предметов
3005
+
3006
+ Метод возвращает список названий [родительских категорий предметов](/openapi/work-with-products#tag/Kategorii-predmety-i-harakteristiki/paths/~1content~1v2~1object~1parent~1all/get) и их предметов с ID. Например, у категории `Игрушки` будут предметы `Калейдоскопы`, `Куклы`, `Мячики`. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов категории <strong>Контент</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 100 запросов | 600 миллисекунд | 5 запросов | Исключение — методы: <ul> <li><a href=\"/openapi/work-with-products#tag/Sozdanie-kartochek-tovarov/paths/~1content~1v2~1cards~1upload/post\">создания карточек товаров</a></li> <li><a href=\"/openapi/work-with-products#tag/Sozdanie-kartochek-tovarov/paths/~1content~1v2~1cards~1upload~1add/post\">создания карточек товаров с присоединением</a></li> <li><a href=\"/openapi/work-with-products#tag/Kartochki-tovarov/paths/~1content~1v2~1cards~1update/post\">редактирования карточек товаров</a></li> <li><a href=\"/openapi/work-with-products#tag/Kartochki-tovarov/paths/~1content~1v2~1cards~1error~1list/post\">получения несозданных карточек товаров с ошибками</a></li> </ul> </div>
3007
+
3008
+ :param locale: Язык полей ответа: - `ru` — русский - `en` — английский - `zh` — китайский Не используется в песочнице
3009
+ :type locale: str
3010
+ :param name: Поиск по названию предмета (Носки), поиск работает по подстроке, искать можно на любом из поддерживаемых языков
3011
+ :type name: str
3012
+ :param limit:
3013
+ :type limit: int
3014
+ :param offset:
3015
+ :type offset: int
3016
+ :param parent_id: ID родительской категории предмета
3017
+ :type parent_id: int
3018
+ :param _request_timeout: timeout setting for this request. If one
3019
+ number provided, it will be total request
3020
+ timeout. It can also be a pair (tuple) of
3021
+ (connection, read) timeouts.
3022
+ :type _request_timeout: int, tuple(int, int), optional
3023
+ :param _request_auth: set to override the auth_settings for an a single
3024
+ request; this effectively ignores the
3025
+ authentication in the spec for a single request.
3026
+ :type _request_auth: dict, optional
3027
+ :param _content_type: force content-type for the request.
3028
+ :type _content_type: str, Optional
3029
+ :param _headers: set to override the headers for a single
3030
+ request; this effectively ignores the headers
3031
+ in the spec for a single request.
3032
+ :type _headers: dict, optional
3033
+ :param _host_index: set to override the host_index for a single
3034
+ request; this effectively ignores the host_index
3035
+ in the spec for a single request.
3036
+ :type _host_index: int, optional
3037
+ :return: Returns the result object.
3038
+ """ # noqa: E501
3039
+
3040
+ _param = self._content_v2_object_all_get_serialize(
3041
+ locale=locale,
3042
+ name=name,
3043
+ limit=limit,
3044
+ offset=offset,
3045
+ parent_id=parent_id,
3046
+ _request_auth=_request_auth,
3047
+ _content_type=_content_type,
3048
+ _headers=_headers,
3049
+ _host_index=_host_index
3050
+ )
3051
+
3052
+ _response_types_map: Dict[str, Optional[str]] = {
3053
+ '200': "ContentV2ObjectAllGet200Response",
3054
+ '401': "ContentV2ObjectParentAllGet401Response",
3055
+ '429': "ContentV2ObjectParentAllGet401Response",
3056
+ }
3057
+ response_data = self.api_client.call_api(
3058
+ *_param,
3059
+ _request_timeout=_request_timeout
3060
+ )
3061
+ response_data.read()
3062
+ return self.api_client.response_deserialize(
3063
+ response_data=response_data,
3064
+ response_types_map=_response_types_map,
3065
+ ).data
3066
+
3067
+
3068
+ @validate_call
3069
+ def content_v2_object_all_get_with_http_info(
3070
+ self,
3071
+ locale: Annotated[Optional[StrictStr], Field(description="Язык полей ответа: - `ru` — русский - `en` — английский - `zh` — китайский Не используется в песочнице ")] = None,
3072
+ name: Annotated[Optional[StrictStr], Field(description="Поиск по названию предмета (Носки), поиск работает по подстроке, искать можно на любом из поддерживаемых языков")] = None,
3073
+ limit: Optional[StrictInt] = None,
3074
+ offset: Optional[StrictInt] = None,
3075
+ parent_id: Annotated[Optional[StrictInt], Field(description="ID родительской категории предмета")] = None,
3076
+ _request_timeout: Union[
3077
+ None,
3078
+ Annotated[StrictFloat, Field(gt=0)],
3079
+ Tuple[
3080
+ Annotated[StrictFloat, Field(gt=0)],
3081
+ Annotated[StrictFloat, Field(gt=0)]
3082
+ ]
3083
+ ] = None,
3084
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3085
+ _content_type: Optional[StrictStr] = None,
3086
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3087
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
3088
+ ) -> ApiResponse[ContentV2ObjectAllGet200Response]:
3089
+ """Список предметов
3090
+
3091
+ Метод возвращает список названий [родительских категорий предметов](/openapi/work-with-products#tag/Kategorii-predmety-i-harakteristiki/paths/~1content~1v2~1object~1parent~1all/get) и их предметов с ID. Например, у категории `Игрушки` будут предметы `Калейдоскопы`, `Куклы`, `Мячики`. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов категории <strong>Контент</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 100 запросов | 600 миллисекунд | 5 запросов | Исключение — методы: <ul> <li><a href=\"/openapi/work-with-products#tag/Sozdanie-kartochek-tovarov/paths/~1content~1v2~1cards~1upload/post\">создания карточек товаров</a></li> <li><a href=\"/openapi/work-with-products#tag/Sozdanie-kartochek-tovarov/paths/~1content~1v2~1cards~1upload~1add/post\">создания карточек товаров с присоединением</a></li> <li><a href=\"/openapi/work-with-products#tag/Kartochki-tovarov/paths/~1content~1v2~1cards~1update/post\">редактирования карточек товаров</a></li> <li><a href=\"/openapi/work-with-products#tag/Kartochki-tovarov/paths/~1content~1v2~1cards~1error~1list/post\">получения несозданных карточек товаров с ошибками</a></li> </ul> </div>
3092
+
3093
+ :param locale: Язык полей ответа: - `ru` — русский - `en` — английский - `zh` — китайский Не используется в песочнице
3094
+ :type locale: str
3095
+ :param name: Поиск по названию предмета (Носки), поиск работает по подстроке, искать можно на любом из поддерживаемых языков
3096
+ :type name: str
3097
+ :param limit:
3098
+ :type limit: int
3099
+ :param offset:
3100
+ :type offset: int
3101
+ :param parent_id: ID родительской категории предмета
3102
+ :type parent_id: int
3103
+ :param _request_timeout: timeout setting for this request. If one
3104
+ number provided, it will be total request
3105
+ timeout. It can also be a pair (tuple) of
3106
+ (connection, read) timeouts.
3107
+ :type _request_timeout: int, tuple(int, int), optional
3108
+ :param _request_auth: set to override the auth_settings for an a single
3109
+ request; this effectively ignores the
3110
+ authentication in the spec for a single request.
3111
+ :type _request_auth: dict, optional
3112
+ :param _content_type: force content-type for the request.
3113
+ :type _content_type: str, Optional
3114
+ :param _headers: set to override the headers for a single
3115
+ request; this effectively ignores the headers
3116
+ in the spec for a single request.
3117
+ :type _headers: dict, optional
3118
+ :param _host_index: set to override the host_index for a single
3119
+ request; this effectively ignores the host_index
3120
+ in the spec for a single request.
3121
+ :type _host_index: int, optional
3122
+ :return: Returns the result object.
3123
+ """ # noqa: E501
3124
+
3125
+ _param = self._content_v2_object_all_get_serialize(
3126
+ locale=locale,
3127
+ name=name,
3128
+ limit=limit,
3129
+ offset=offset,
3130
+ parent_id=parent_id,
3131
+ _request_auth=_request_auth,
3132
+ _content_type=_content_type,
3133
+ _headers=_headers,
3134
+ _host_index=_host_index
3135
+ )
3136
+
3137
+ _response_types_map: Dict[str, Optional[str]] = {
3138
+ '200': "ContentV2ObjectAllGet200Response",
3139
+ '401': "ContentV2ObjectParentAllGet401Response",
3140
+ '429': "ContentV2ObjectParentAllGet401Response",
3141
+ }
3142
+ response_data = self.api_client.call_api(
3143
+ *_param,
3144
+ _request_timeout=_request_timeout
3145
+ )
3146
+ response_data.read()
3147
+ return self.api_client.response_deserialize(
3148
+ response_data=response_data,
3149
+ response_types_map=_response_types_map,
3150
+ )
3151
+
3152
+
3153
+ @validate_call
3154
+ def content_v2_object_all_get_without_preload_content(
3155
+ self,
3156
+ locale: Annotated[Optional[StrictStr], Field(description="Язык полей ответа: - `ru` — русский - `en` — английский - `zh` — китайский Не используется в песочнице ")] = None,
3157
+ name: Annotated[Optional[StrictStr], Field(description="Поиск по названию предмета (Носки), поиск работает по подстроке, искать можно на любом из поддерживаемых языков")] = None,
3158
+ limit: Optional[StrictInt] = None,
3159
+ offset: Optional[StrictInt] = None,
3160
+ parent_id: Annotated[Optional[StrictInt], Field(description="ID родительской категории предмета")] = None,
3161
+ _request_timeout: Union[
3162
+ None,
3163
+ Annotated[StrictFloat, Field(gt=0)],
3164
+ Tuple[
3165
+ Annotated[StrictFloat, Field(gt=0)],
3166
+ Annotated[StrictFloat, Field(gt=0)]
3167
+ ]
3168
+ ] = None,
3169
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3170
+ _content_type: Optional[StrictStr] = None,
3171
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3172
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
3173
+ ) -> RESTResponseType:
3174
+ """Список предметов
3175
+
3176
+ Метод возвращает список названий [родительских категорий предметов](/openapi/work-with-products#tag/Kategorii-predmety-i-harakteristiki/paths/~1content~1v2~1object~1parent~1all/get) и их предметов с ID. Например, у категории `Игрушки` будут предметы `Калейдоскопы`, `Куклы`, `Мячики`. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов категории <strong>Контент</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 100 запросов | 600 миллисекунд | 5 запросов | Исключение — методы: <ul> <li><a href=\"/openapi/work-with-products#tag/Sozdanie-kartochek-tovarov/paths/~1content~1v2~1cards~1upload/post\">создания карточек товаров</a></li> <li><a href=\"/openapi/work-with-products#tag/Sozdanie-kartochek-tovarov/paths/~1content~1v2~1cards~1upload~1add/post\">создания карточек товаров с присоединением</a></li> <li><a href=\"/openapi/work-with-products#tag/Kartochki-tovarov/paths/~1content~1v2~1cards~1update/post\">редактирования карточек товаров</a></li> <li><a href=\"/openapi/work-with-products#tag/Kartochki-tovarov/paths/~1content~1v2~1cards~1error~1list/post\">получения несозданных карточек товаров с ошибками</a></li> </ul> </div>
3177
+
3178
+ :param locale: Язык полей ответа: - `ru` — русский - `en` — английский - `zh` — китайский Не используется в песочнице
3179
+ :type locale: str
3180
+ :param name: Поиск по названию предмета (Носки), поиск работает по подстроке, искать можно на любом из поддерживаемых языков
3181
+ :type name: str
3182
+ :param limit:
3183
+ :type limit: int
3184
+ :param offset:
3185
+ :type offset: int
3186
+ :param parent_id: ID родительской категории предмета
3187
+ :type parent_id: int
3188
+ :param _request_timeout: timeout setting for this request. If one
3189
+ number provided, it will be total request
3190
+ timeout. It can also be a pair (tuple) of
3191
+ (connection, read) timeouts.
3192
+ :type _request_timeout: int, tuple(int, int), optional
3193
+ :param _request_auth: set to override the auth_settings for an a single
3194
+ request; this effectively ignores the
3195
+ authentication in the spec for a single request.
3196
+ :type _request_auth: dict, optional
3197
+ :param _content_type: force content-type for the request.
3198
+ :type _content_type: str, Optional
3199
+ :param _headers: set to override the headers for a single
3200
+ request; this effectively ignores the headers
3201
+ in the spec for a single request.
3202
+ :type _headers: dict, optional
3203
+ :param _host_index: set to override the host_index for a single
3204
+ request; this effectively ignores the host_index
3205
+ in the spec for a single request.
3206
+ :type _host_index: int, optional
3207
+ :return: Returns the result object.
3208
+ """ # noqa: E501
3209
+
3210
+ _param = self._content_v2_object_all_get_serialize(
3211
+ locale=locale,
3212
+ name=name,
3213
+ limit=limit,
3214
+ offset=offset,
3215
+ parent_id=parent_id,
3216
+ _request_auth=_request_auth,
3217
+ _content_type=_content_type,
3218
+ _headers=_headers,
3219
+ _host_index=_host_index
3220
+ )
3221
+
3222
+ _response_types_map: Dict[str, Optional[str]] = {
3223
+ '200': "ContentV2ObjectAllGet200Response",
3224
+ '401': "ContentV2ObjectParentAllGet401Response",
3225
+ '429': "ContentV2ObjectParentAllGet401Response",
3226
+ }
3227
+ response_data = self.api_client.call_api(
3228
+ *_param,
3229
+ _request_timeout=_request_timeout
3230
+ )
3231
+ return response_data.response
3232
+
3233
+
3234
+ def _content_v2_object_all_get_serialize(
3235
+ self,
3236
+ locale,
3237
+ name,
3238
+ limit,
3239
+ offset,
3240
+ parent_id,
3241
+ _request_auth,
3242
+ _content_type,
3243
+ _headers,
3244
+ _host_index,
3245
+ ) -> RequestSerialized:
3246
+
3247
+ _hosts = [
3248
+ 'https://content-api.wildberries.ru'
3249
+ ]
3250
+ _host = _hosts[_host_index]
3251
+
3252
+ _collection_formats: Dict[str, str] = {
3253
+ }
3254
+
3255
+ _path_params: Dict[str, str] = {}
3256
+ _query_params: List[Tuple[str, str]] = []
3257
+ _header_params: Dict[str, Optional[str]] = _headers or {}
3258
+ _form_params: List[Tuple[str, str]] = []
3259
+ _files: Dict[
3260
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3261
+ ] = {}
3262
+ _body_params: Optional[bytes] = None
3263
+
3264
+ # process the path parameters
3265
+ # process the query parameters
3266
+ if locale is not None:
3267
+
3268
+ _query_params.append(('locale', locale))
3269
+
3270
+ if name is not None:
3271
+
3272
+ _query_params.append(('name', name))
3273
+
3274
+ if limit is not None:
3275
+
3276
+ _query_params.append(('limit', limit))
3277
+
3278
+ if offset is not None:
3279
+
3280
+ _query_params.append(('offset', offset))
3281
+
3282
+ if parent_id is not None:
3283
+
3284
+ _query_params.append(('parentID', parent_id))
3285
+
3286
+ # process the header parameters
3287
+ # process the form parameters
3288
+ # process the body parameter
3289
+
3290
+
3291
+ # set the HTTP header `Accept`
3292
+ if 'Accept' not in _header_params:
3293
+ _header_params['Accept'] = self.api_client.select_header_accept(
3294
+ [
3295
+ 'application/json'
3296
+ ]
3297
+ )
3298
+
3299
+
3300
+ # authentication setting
3301
+ _auth_settings: List[str] = [
3302
+ 'HeaderApiKey'
3303
+ ]
3304
+
3305
+ return self.api_client.param_serialize(
3306
+ method='GET',
3307
+ resource_path='/content/v2/object/all',
3308
+ path_params=_path_params,
3309
+ query_params=_query_params,
3310
+ header_params=_header_params,
3311
+ body=_body_params,
3312
+ post_params=_form_params,
3313
+ files=_files,
3314
+ auth_settings=_auth_settings,
3315
+ collection_formats=_collection_formats,
3316
+ _host=_host,
3317
+ _request_auth=_request_auth
3318
+ )
3319
+
3320
+
3321
+
3322
+
3323
+ @validate_call
3324
+ def content_v2_object_charcs_subject_id_get(
3325
+ self,
3326
+ subject_id: Annotated[StrictInt, Field(description="ID предмета")],
3327
+ locale: Annotated[Optional[StrictStr], Field(description="Язык полей ответа `subjectName` и `name`: - `ru` — русский - `en` — английский - `zh` — китайский Не используется в песочнице ")] = None,
3328
+ _request_timeout: Union[
3329
+ None,
3330
+ Annotated[StrictFloat, Field(gt=0)],
3331
+ Tuple[
3332
+ Annotated[StrictFloat, Field(gt=0)],
3333
+ Annotated[StrictFloat, Field(gt=0)]
3334
+ ]
3335
+ ] = None,
3336
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3337
+ _content_type: Optional[StrictStr] = None,
3338
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3339
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
3340
+ ) -> ContentV2ObjectCharcsSubjectIdGet200Response:
3341
+ """Характеристики предмета
3342
+
3343
+ Метод возвращает параметры характеристик предмета: названия, типы данных, единицы измерения и так далее. В запросе необходимо указать ID [предмета](/openapi/work-with-products#tag/Kategorii-predmety-i-harakteristiki/paths/~1content~1v2~1object~1all/get). <div class=\"description_important\"> Для получения значений характеристик <a href=\"/openapi/work-with-products#tag/Kategorii-predmety-i-harakteristiki/paths/~1content~1v2~1directory~1colors/get\">Цвет</a>, <a href=\"/openapi/work-with-products#tag/Kategorii-predmety-i-harakteristiki/paths/~1content~1v2~1directory~1kinds/get\">Пол</a>, <a href=\"/openapi/work-with-products#tag/Kategorii-predmety-i-harakteristiki/paths/~1content~1v2~1directory~1countries/get\">Страна производства</a>, <a href=\"/openapi/work-with-products#tag/Kategorii-predmety-i-harakteristiki/paths/~1content~1v2~1directory~1seasons/get\">Сезон</a>, <a href=\"/openapi/work-with-products#tag/Kategorii-predmety-i-harakteristiki/paths/~1content~1v2~1directory~1vat/get\">Ставка НДС</a> и <a href=\"/openapi/work-with-products#tag/Kategorii-predmety-i-harakteristiki/paths/~1content~1v2~1directory~1tnved/get\">ТНВЭД-код</a> используйте отдельные методы </div> <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов категории <strong>Контент</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 100 запросов | 600 миллисекунд | 5 запросов | Исключение — методы: <ul> <li><a href=\"/openapi/work-with-products#tag/Sozdanie-kartochek-tovarov/paths/~1content~1v2~1cards~1upload/post\">создания карточек товаров</a></li> <li><a href=\"/openapi/work-with-products#tag/Sozdanie-kartochek-tovarov/paths/~1content~1v2~1cards~1upload~1add/post\">создания карточек товаров с присоединением</a></li> <li><a href=\"/openapi/work-with-products#tag/Kartochki-tovarov/paths/~1content~1v2~1cards~1update/post\">редактирования карточек товаров</a></li> <li><a href=\"/openapi/work-with-products#tag/Kartochki-tovarov/paths/~1content~1v2~1cards~1error~1list/post\">получения несозданных карточек товаров с ошибками</a></li> </ul> </div>
3344
+
3345
+ :param subject_id: ID предмета (required)
3346
+ :type subject_id: int
3347
+ :param locale: Язык полей ответа `subjectName` и `name`: - `ru` — русский - `en` — английский - `zh` — китайский Не используется в песочнице
3348
+ :type locale: str
3349
+ :param _request_timeout: timeout setting for this request. If one
3350
+ number provided, it will be total request
3351
+ timeout. It can also be a pair (tuple) of
3352
+ (connection, read) timeouts.
3353
+ :type _request_timeout: int, tuple(int, int), optional
3354
+ :param _request_auth: set to override the auth_settings for an a single
3355
+ request; this effectively ignores the
3356
+ authentication in the spec for a single request.
3357
+ :type _request_auth: dict, optional
3358
+ :param _content_type: force content-type for the request.
3359
+ :type _content_type: str, Optional
3360
+ :param _headers: set to override the headers for a single
3361
+ request; this effectively ignores the headers
3362
+ in the spec for a single request.
3363
+ :type _headers: dict, optional
3364
+ :param _host_index: set to override the host_index for a single
3365
+ request; this effectively ignores the host_index
3366
+ in the spec for a single request.
3367
+ :type _host_index: int, optional
3368
+ :return: Returns the result object.
3369
+ """ # noqa: E501
3370
+
3371
+ _param = self._content_v2_object_charcs_subject_id_get_serialize(
3372
+ subject_id=subject_id,
3373
+ locale=locale,
3374
+ _request_auth=_request_auth,
3375
+ _content_type=_content_type,
3376
+ _headers=_headers,
3377
+ _host_index=_host_index
3378
+ )
3379
+
3380
+ _response_types_map: Dict[str, Optional[str]] = {
3381
+ '200': "ContentV2ObjectCharcsSubjectIdGet200Response",
3382
+ '400': "ResponseBodyContentError400",
3383
+ '401': "ContentV2ObjectParentAllGet401Response",
3384
+ '403': "ResponseBodyContentError403",
3385
+ '429': "ContentV2ObjectParentAllGet401Response",
3386
+ }
3387
+ response_data = self.api_client.call_api(
3388
+ *_param,
3389
+ _request_timeout=_request_timeout
3390
+ )
3391
+ response_data.read()
3392
+ return self.api_client.response_deserialize(
3393
+ response_data=response_data,
3394
+ response_types_map=_response_types_map,
3395
+ ).data
3396
+
3397
+
3398
+ @validate_call
3399
+ def content_v2_object_charcs_subject_id_get_with_http_info(
3400
+ self,
3401
+ subject_id: Annotated[StrictInt, Field(description="ID предмета")],
3402
+ locale: Annotated[Optional[StrictStr], Field(description="Язык полей ответа `subjectName` и `name`: - `ru` — русский - `en` — английский - `zh` — китайский Не используется в песочнице ")] = None,
3403
+ _request_timeout: Union[
3404
+ None,
3405
+ Annotated[StrictFloat, Field(gt=0)],
3406
+ Tuple[
3407
+ Annotated[StrictFloat, Field(gt=0)],
3408
+ Annotated[StrictFloat, Field(gt=0)]
3409
+ ]
3410
+ ] = None,
3411
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3412
+ _content_type: Optional[StrictStr] = None,
3413
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3414
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
3415
+ ) -> ApiResponse[ContentV2ObjectCharcsSubjectIdGet200Response]:
3416
+ """Характеристики предмета
3417
+
3418
+ Метод возвращает параметры характеристик предмета: названия, типы данных, единицы измерения и так далее. В запросе необходимо указать ID [предмета](/openapi/work-with-products#tag/Kategorii-predmety-i-harakteristiki/paths/~1content~1v2~1object~1all/get). <div class=\"description_important\"> Для получения значений характеристик <a href=\"/openapi/work-with-products#tag/Kategorii-predmety-i-harakteristiki/paths/~1content~1v2~1directory~1colors/get\">Цвет</a>, <a href=\"/openapi/work-with-products#tag/Kategorii-predmety-i-harakteristiki/paths/~1content~1v2~1directory~1kinds/get\">Пол</a>, <a href=\"/openapi/work-with-products#tag/Kategorii-predmety-i-harakteristiki/paths/~1content~1v2~1directory~1countries/get\">Страна производства</a>, <a href=\"/openapi/work-with-products#tag/Kategorii-predmety-i-harakteristiki/paths/~1content~1v2~1directory~1seasons/get\">Сезон</a>, <a href=\"/openapi/work-with-products#tag/Kategorii-predmety-i-harakteristiki/paths/~1content~1v2~1directory~1vat/get\">Ставка НДС</a> и <a href=\"/openapi/work-with-products#tag/Kategorii-predmety-i-harakteristiki/paths/~1content~1v2~1directory~1tnved/get\">ТНВЭД-код</a> используйте отдельные методы </div> <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов категории <strong>Контент</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 100 запросов | 600 миллисекунд | 5 запросов | Исключение — методы: <ul> <li><a href=\"/openapi/work-with-products#tag/Sozdanie-kartochek-tovarov/paths/~1content~1v2~1cards~1upload/post\">создания карточек товаров</a></li> <li><a href=\"/openapi/work-with-products#tag/Sozdanie-kartochek-tovarov/paths/~1content~1v2~1cards~1upload~1add/post\">создания карточек товаров с присоединением</a></li> <li><a href=\"/openapi/work-with-products#tag/Kartochki-tovarov/paths/~1content~1v2~1cards~1update/post\">редактирования карточек товаров</a></li> <li><a href=\"/openapi/work-with-products#tag/Kartochki-tovarov/paths/~1content~1v2~1cards~1error~1list/post\">получения несозданных карточек товаров с ошибками</a></li> </ul> </div>
3419
+
3420
+ :param subject_id: ID предмета (required)
3421
+ :type subject_id: int
3422
+ :param locale: Язык полей ответа `subjectName` и `name`: - `ru` — русский - `en` — английский - `zh` — китайский Не используется в песочнице
3423
+ :type locale: str
3424
+ :param _request_timeout: timeout setting for this request. If one
3425
+ number provided, it will be total request
3426
+ timeout. It can also be a pair (tuple) of
3427
+ (connection, read) timeouts.
3428
+ :type _request_timeout: int, tuple(int, int), optional
3429
+ :param _request_auth: set to override the auth_settings for an a single
3430
+ request; this effectively ignores the
3431
+ authentication in the spec for a single request.
3432
+ :type _request_auth: dict, optional
3433
+ :param _content_type: force content-type for the request.
3434
+ :type _content_type: str, Optional
3435
+ :param _headers: set to override the headers for a single
3436
+ request; this effectively ignores the headers
3437
+ in the spec for a single request.
3438
+ :type _headers: dict, optional
3439
+ :param _host_index: set to override the host_index for a single
3440
+ request; this effectively ignores the host_index
3441
+ in the spec for a single request.
3442
+ :type _host_index: int, optional
3443
+ :return: Returns the result object.
3444
+ """ # noqa: E501
3445
+
3446
+ _param = self._content_v2_object_charcs_subject_id_get_serialize(
3447
+ subject_id=subject_id,
3448
+ locale=locale,
3449
+ _request_auth=_request_auth,
3450
+ _content_type=_content_type,
3451
+ _headers=_headers,
3452
+ _host_index=_host_index
3453
+ )
3454
+
3455
+ _response_types_map: Dict[str, Optional[str]] = {
3456
+ '200': "ContentV2ObjectCharcsSubjectIdGet200Response",
3457
+ '400': "ResponseBodyContentError400",
3458
+ '401': "ContentV2ObjectParentAllGet401Response",
3459
+ '403': "ResponseBodyContentError403",
3460
+ '429': "ContentV2ObjectParentAllGet401Response",
3461
+ }
3462
+ response_data = self.api_client.call_api(
3463
+ *_param,
3464
+ _request_timeout=_request_timeout
3465
+ )
3466
+ response_data.read()
3467
+ return self.api_client.response_deserialize(
3468
+ response_data=response_data,
3469
+ response_types_map=_response_types_map,
3470
+ )
3471
+
3472
+
3473
+ @validate_call
3474
+ def content_v2_object_charcs_subject_id_get_without_preload_content(
3475
+ self,
3476
+ subject_id: Annotated[StrictInt, Field(description="ID предмета")],
3477
+ locale: Annotated[Optional[StrictStr], Field(description="Язык полей ответа `subjectName` и `name`: - `ru` — русский - `en` — английский - `zh` — китайский Не используется в песочнице ")] = None,
3478
+ _request_timeout: Union[
3479
+ None,
3480
+ Annotated[StrictFloat, Field(gt=0)],
3481
+ Tuple[
3482
+ Annotated[StrictFloat, Field(gt=0)],
3483
+ Annotated[StrictFloat, Field(gt=0)]
3484
+ ]
3485
+ ] = None,
3486
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3487
+ _content_type: Optional[StrictStr] = None,
3488
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3489
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
3490
+ ) -> RESTResponseType:
3491
+ """Характеристики предмета
3492
+
3493
+ Метод возвращает параметры характеристик предмета: названия, типы данных, единицы измерения и так далее. В запросе необходимо указать ID [предмета](/openapi/work-with-products#tag/Kategorii-predmety-i-harakteristiki/paths/~1content~1v2~1object~1all/get). <div class=\"description_important\"> Для получения значений характеристик <a href=\"/openapi/work-with-products#tag/Kategorii-predmety-i-harakteristiki/paths/~1content~1v2~1directory~1colors/get\">Цвет</a>, <a href=\"/openapi/work-with-products#tag/Kategorii-predmety-i-harakteristiki/paths/~1content~1v2~1directory~1kinds/get\">Пол</a>, <a href=\"/openapi/work-with-products#tag/Kategorii-predmety-i-harakteristiki/paths/~1content~1v2~1directory~1countries/get\">Страна производства</a>, <a href=\"/openapi/work-with-products#tag/Kategorii-predmety-i-harakteristiki/paths/~1content~1v2~1directory~1seasons/get\">Сезон</a>, <a href=\"/openapi/work-with-products#tag/Kategorii-predmety-i-harakteristiki/paths/~1content~1v2~1directory~1vat/get\">Ставка НДС</a> и <a href=\"/openapi/work-with-products#tag/Kategorii-predmety-i-harakteristiki/paths/~1content~1v2~1directory~1tnved/get\">ТНВЭД-код</a> используйте отдельные методы </div> <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов категории <strong>Контент</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 100 запросов | 600 миллисекунд | 5 запросов | Исключение — методы: <ul> <li><a href=\"/openapi/work-with-products#tag/Sozdanie-kartochek-tovarov/paths/~1content~1v2~1cards~1upload/post\">создания карточек товаров</a></li> <li><a href=\"/openapi/work-with-products#tag/Sozdanie-kartochek-tovarov/paths/~1content~1v2~1cards~1upload~1add/post\">создания карточек товаров с присоединением</a></li> <li><a href=\"/openapi/work-with-products#tag/Kartochki-tovarov/paths/~1content~1v2~1cards~1update/post\">редактирования карточек товаров</a></li> <li><a href=\"/openapi/work-with-products#tag/Kartochki-tovarov/paths/~1content~1v2~1cards~1error~1list/post\">получения несозданных карточек товаров с ошибками</a></li> </ul> </div>
3494
+
3495
+ :param subject_id: ID предмета (required)
3496
+ :type subject_id: int
3497
+ :param locale: Язык полей ответа `subjectName` и `name`: - `ru` — русский - `en` — английский - `zh` — китайский Не используется в песочнице
3498
+ :type locale: str
3499
+ :param _request_timeout: timeout setting for this request. If one
3500
+ number provided, it will be total request
3501
+ timeout. It can also be a pair (tuple) of
3502
+ (connection, read) timeouts.
3503
+ :type _request_timeout: int, tuple(int, int), optional
3504
+ :param _request_auth: set to override the auth_settings for an a single
3505
+ request; this effectively ignores the
3506
+ authentication in the spec for a single request.
3507
+ :type _request_auth: dict, optional
3508
+ :param _content_type: force content-type for the request.
3509
+ :type _content_type: str, Optional
3510
+ :param _headers: set to override the headers for a single
3511
+ request; this effectively ignores the headers
3512
+ in the spec for a single request.
3513
+ :type _headers: dict, optional
3514
+ :param _host_index: set to override the host_index for a single
3515
+ request; this effectively ignores the host_index
3516
+ in the spec for a single request.
3517
+ :type _host_index: int, optional
3518
+ :return: Returns the result object.
3519
+ """ # noqa: E501
3520
+
3521
+ _param = self._content_v2_object_charcs_subject_id_get_serialize(
3522
+ subject_id=subject_id,
3523
+ locale=locale,
3524
+ _request_auth=_request_auth,
3525
+ _content_type=_content_type,
3526
+ _headers=_headers,
3527
+ _host_index=_host_index
3528
+ )
3529
+
3530
+ _response_types_map: Dict[str, Optional[str]] = {
3531
+ '200': "ContentV2ObjectCharcsSubjectIdGet200Response",
3532
+ '400': "ResponseBodyContentError400",
3533
+ '401': "ContentV2ObjectParentAllGet401Response",
3534
+ '403': "ResponseBodyContentError403",
3535
+ '429': "ContentV2ObjectParentAllGet401Response",
3536
+ }
3537
+ response_data = self.api_client.call_api(
3538
+ *_param,
3539
+ _request_timeout=_request_timeout
3540
+ )
3541
+ return response_data.response
3542
+
3543
+
3544
+ def _content_v2_object_charcs_subject_id_get_serialize(
3545
+ self,
3546
+ subject_id,
3547
+ locale,
3548
+ _request_auth,
3549
+ _content_type,
3550
+ _headers,
3551
+ _host_index,
3552
+ ) -> RequestSerialized:
3553
+
3554
+ _hosts = [
3555
+ 'https://content-api.wildberries.ru'
3556
+ ]
3557
+ _host = _hosts[_host_index]
3558
+
3559
+ _collection_formats: Dict[str, str] = {
3560
+ }
3561
+
3562
+ _path_params: Dict[str, str] = {}
3563
+ _query_params: List[Tuple[str, str]] = []
3564
+ _header_params: Dict[str, Optional[str]] = _headers or {}
3565
+ _form_params: List[Tuple[str, str]] = []
3566
+ _files: Dict[
3567
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3568
+ ] = {}
3569
+ _body_params: Optional[bytes] = None
3570
+
3571
+ # process the path parameters
3572
+ if subject_id is not None:
3573
+ _path_params['subjectId'] = subject_id
3574
+ # process the query parameters
3575
+ if locale is not None:
3576
+
3577
+ _query_params.append(('locale', locale))
3578
+
3579
+ # process the header parameters
3580
+ # process the form parameters
3581
+ # process the body parameter
3582
+
3583
+
3584
+ # set the HTTP header `Accept`
3585
+ if 'Accept' not in _header_params:
3586
+ _header_params['Accept'] = self.api_client.select_header_accept(
3587
+ [
3588
+ 'application/json'
3589
+ ]
3590
+ )
3591
+
3592
+
3593
+ # authentication setting
3594
+ _auth_settings: List[str] = [
3595
+ 'HeaderApiKey'
3596
+ ]
3597
+
3598
+ return self.api_client.param_serialize(
3599
+ method='GET',
3600
+ resource_path='/content/v2/object/charcs/{subjectId}',
3601
+ path_params=_path_params,
3602
+ query_params=_query_params,
3603
+ header_params=_header_params,
3604
+ body=_body_params,
3605
+ post_params=_form_params,
3606
+ files=_files,
3607
+ auth_settings=_auth_settings,
3608
+ collection_formats=_collection_formats,
3609
+ _host=_host,
3610
+ _request_auth=_request_auth
3611
+ )
3612
+
3613
+
3614
+
3615
+
3616
+ @validate_call
3617
+ def content_v2_object_parent_all_get(
3618
+ self,
3619
+ locale: Annotated[Optional[StrictStr], Field(description="Язык поля ответа `name`: - `ru` — русский - `en` — английский - `zh` — китайский Не используется в песочнице ")] = None,
3620
+ _request_timeout: Union[
3621
+ None,
3622
+ Annotated[StrictFloat, Field(gt=0)],
3623
+ Tuple[
3624
+ Annotated[StrictFloat, Field(gt=0)],
3625
+ Annotated[StrictFloat, Field(gt=0)]
3626
+ ]
3627
+ ] = None,
3628
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3629
+ _content_type: Optional[StrictStr] = None,
3630
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3631
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
3632
+ ) -> ContentV2ObjectParentAllGet200Response:
3633
+ """Родительские категории товаров
3634
+
3635
+ Метод возвращает названия и ID всех родительских категорий для [создания карточек товаров](/openapi/work-with-products#tag/Sozdanie-kartochek-tovarov): например, `Электроника`, `Бытовая химия`, `Рукоделие`. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов категории <strong>Контент</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 100 запросов | 600 миллисекунд | 5 запросов | Исключение — методы: <ul> <li><a href=\"/openapi/work-with-products#tag/Sozdanie-kartochek-tovarov/paths/~1content~1v2~1cards~1upload/post\">создания карточек товаров</a></li> <li><a href=\"/openapi/work-with-products#tag/Sozdanie-kartochek-tovarov/paths/~1content~1v2~1cards~1upload~1add/post\">создания карточек товаров с присоединением</a></li> <li><a href=\"/openapi/work-with-products#tag/Kartochki-tovarov/paths/~1content~1v2~1cards~1update/post\">редактирования карточек товаров</a></li> <li><a href=\"/openapi/work-with-products#tag/Kartochki-tovarov/paths/~1content~1v2~1cards~1error~1list/post\">получения несозданных карточек товаров с ошибками</a></li> </ul> </div>
3636
+
3637
+ :param locale: Язык поля ответа `name`: - `ru` — русский - `en` — английский - `zh` — китайский Не используется в песочнице
3638
+ :type locale: str
3639
+ :param _request_timeout: timeout setting for this request. If one
3640
+ number provided, it will be total request
3641
+ timeout. It can also be a pair (tuple) of
3642
+ (connection, read) timeouts.
3643
+ :type _request_timeout: int, tuple(int, int), optional
3644
+ :param _request_auth: set to override the auth_settings for an a single
3645
+ request; this effectively ignores the
3646
+ authentication in the spec for a single request.
3647
+ :type _request_auth: dict, optional
3648
+ :param _content_type: force content-type for the request.
3649
+ :type _content_type: str, Optional
3650
+ :param _headers: set to override the headers for a single
3651
+ request; this effectively ignores the headers
3652
+ in the spec for a single request.
3653
+ :type _headers: dict, optional
3654
+ :param _host_index: set to override the host_index for a single
3655
+ request; this effectively ignores the host_index
3656
+ in the spec for a single request.
3657
+ :type _host_index: int, optional
3658
+ :return: Returns the result object.
3659
+ """ # noqa: E501
3660
+
3661
+ _param = self._content_v2_object_parent_all_get_serialize(
3662
+ locale=locale,
3663
+ _request_auth=_request_auth,
3664
+ _content_type=_content_type,
3665
+ _headers=_headers,
3666
+ _host_index=_host_index
3667
+ )
3668
+
3669
+ _response_types_map: Dict[str, Optional[str]] = {
3670
+ '200': "ContentV2ObjectParentAllGet200Response",
3671
+ '400': "ResponseBodyContentError400",
3672
+ '401': "ContentV2ObjectParentAllGet401Response",
3673
+ '403': "ResponseBodyContentError403",
3674
+ '429': "ContentV2ObjectParentAllGet401Response",
3675
+ }
3676
+ response_data = self.api_client.call_api(
3677
+ *_param,
3678
+ _request_timeout=_request_timeout
3679
+ )
3680
+ response_data.read()
3681
+ return self.api_client.response_deserialize(
3682
+ response_data=response_data,
3683
+ response_types_map=_response_types_map,
3684
+ ).data
3685
+
3686
+
3687
+ @validate_call
3688
+ def content_v2_object_parent_all_get_with_http_info(
3689
+ self,
3690
+ locale: Annotated[Optional[StrictStr], Field(description="Язык поля ответа `name`: - `ru` — русский - `en` — английский - `zh` — китайский Не используется в песочнице ")] = None,
3691
+ _request_timeout: Union[
3692
+ None,
3693
+ Annotated[StrictFloat, Field(gt=0)],
3694
+ Tuple[
3695
+ Annotated[StrictFloat, Field(gt=0)],
3696
+ Annotated[StrictFloat, Field(gt=0)]
3697
+ ]
3698
+ ] = None,
3699
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3700
+ _content_type: Optional[StrictStr] = None,
3701
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3702
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
3703
+ ) -> ApiResponse[ContentV2ObjectParentAllGet200Response]:
3704
+ """Родительские категории товаров
3705
+
3706
+ Метод возвращает названия и ID всех родительских категорий для [создания карточек товаров](/openapi/work-with-products#tag/Sozdanie-kartochek-tovarov): например, `Электроника`, `Бытовая химия`, `Рукоделие`. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов категории <strong>Контент</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 100 запросов | 600 миллисекунд | 5 запросов | Исключение — методы: <ul> <li><a href=\"/openapi/work-with-products#tag/Sozdanie-kartochek-tovarov/paths/~1content~1v2~1cards~1upload/post\">создания карточек товаров</a></li> <li><a href=\"/openapi/work-with-products#tag/Sozdanie-kartochek-tovarov/paths/~1content~1v2~1cards~1upload~1add/post\">создания карточек товаров с присоединением</a></li> <li><a href=\"/openapi/work-with-products#tag/Kartochki-tovarov/paths/~1content~1v2~1cards~1update/post\">редактирования карточек товаров</a></li> <li><a href=\"/openapi/work-with-products#tag/Kartochki-tovarov/paths/~1content~1v2~1cards~1error~1list/post\">получения несозданных карточек товаров с ошибками</a></li> </ul> </div>
3707
+
3708
+ :param locale: Язык поля ответа `name`: - `ru` — русский - `en` — английский - `zh` — китайский Не используется в песочнице
3709
+ :type locale: str
3710
+ :param _request_timeout: timeout setting for this request. If one
3711
+ number provided, it will be total request
3712
+ timeout. It can also be a pair (tuple) of
3713
+ (connection, read) timeouts.
3714
+ :type _request_timeout: int, tuple(int, int), optional
3715
+ :param _request_auth: set to override the auth_settings for an a single
3716
+ request; this effectively ignores the
3717
+ authentication in the spec for a single request.
3718
+ :type _request_auth: dict, optional
3719
+ :param _content_type: force content-type for the request.
3720
+ :type _content_type: str, Optional
3721
+ :param _headers: set to override the headers for a single
3722
+ request; this effectively ignores the headers
3723
+ in the spec for a single request.
3724
+ :type _headers: dict, optional
3725
+ :param _host_index: set to override the host_index for a single
3726
+ request; this effectively ignores the host_index
3727
+ in the spec for a single request.
3728
+ :type _host_index: int, optional
3729
+ :return: Returns the result object.
3730
+ """ # noqa: E501
3731
+
3732
+ _param = self._content_v2_object_parent_all_get_serialize(
3733
+ locale=locale,
3734
+ _request_auth=_request_auth,
3735
+ _content_type=_content_type,
3736
+ _headers=_headers,
3737
+ _host_index=_host_index
3738
+ )
3739
+
3740
+ _response_types_map: Dict[str, Optional[str]] = {
3741
+ '200': "ContentV2ObjectParentAllGet200Response",
3742
+ '400': "ResponseBodyContentError400",
3743
+ '401': "ContentV2ObjectParentAllGet401Response",
3744
+ '403': "ResponseBodyContentError403",
3745
+ '429': "ContentV2ObjectParentAllGet401Response",
3746
+ }
3747
+ response_data = self.api_client.call_api(
3748
+ *_param,
3749
+ _request_timeout=_request_timeout
3750
+ )
3751
+ response_data.read()
3752
+ return self.api_client.response_deserialize(
3753
+ response_data=response_data,
3754
+ response_types_map=_response_types_map,
3755
+ )
3756
+
3757
+
3758
+ @validate_call
3759
+ def content_v2_object_parent_all_get_without_preload_content(
3760
+ self,
3761
+ locale: Annotated[Optional[StrictStr], Field(description="Язык поля ответа `name`: - `ru` — русский - `en` — английский - `zh` — китайский Не используется в песочнице ")] = None,
3762
+ _request_timeout: Union[
3763
+ None,
3764
+ Annotated[StrictFloat, Field(gt=0)],
3765
+ Tuple[
3766
+ Annotated[StrictFloat, Field(gt=0)],
3767
+ Annotated[StrictFloat, Field(gt=0)]
3768
+ ]
3769
+ ] = None,
3770
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3771
+ _content_type: Optional[StrictStr] = None,
3772
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3773
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
3774
+ ) -> RESTResponseType:
3775
+ """Родительские категории товаров
3776
+
3777
+ Метод возвращает названия и ID всех родительских категорий для [создания карточек товаров](/openapi/work-with-products#tag/Sozdanie-kartochek-tovarov): например, `Электроника`, `Бытовая химия`, `Рукоделие`. <div class=\"description_limit\"> <a href=\"/openapi/api-information#tag/Vvedenie/Limity-zaprosov\">Лимит запросов</a> на один аккаунт продавца для всех методов категории <strong>Контент</strong>: | Период | Лимит | Интервал | Всплеск | | --- | --- | --- | --- | | 1 минута | 100 запросов | 600 миллисекунд | 5 запросов | Исключение — методы: <ul> <li><a href=\"/openapi/work-with-products#tag/Sozdanie-kartochek-tovarov/paths/~1content~1v2~1cards~1upload/post\">создания карточек товаров</a></li> <li><a href=\"/openapi/work-with-products#tag/Sozdanie-kartochek-tovarov/paths/~1content~1v2~1cards~1upload~1add/post\">создания карточек товаров с присоединением</a></li> <li><a href=\"/openapi/work-with-products#tag/Kartochki-tovarov/paths/~1content~1v2~1cards~1update/post\">редактирования карточек товаров</a></li> <li><a href=\"/openapi/work-with-products#tag/Kartochki-tovarov/paths/~1content~1v2~1cards~1error~1list/post\">получения несозданных карточек товаров с ошибками</a></li> </ul> </div>
3778
+
3779
+ :param locale: Язык поля ответа `name`: - `ru` — русский - `en` — английский - `zh` — китайский Не используется в песочнице
3780
+ :type locale: str
3781
+ :param _request_timeout: timeout setting for this request. If one
3782
+ number provided, it will be total request
3783
+ timeout. It can also be a pair (tuple) of
3784
+ (connection, read) timeouts.
3785
+ :type _request_timeout: int, tuple(int, int), optional
3786
+ :param _request_auth: set to override the auth_settings for an a single
3787
+ request; this effectively ignores the
3788
+ authentication in the spec for a single request.
3789
+ :type _request_auth: dict, optional
3790
+ :param _content_type: force content-type for the request.
3791
+ :type _content_type: str, Optional
3792
+ :param _headers: set to override the headers for a single
3793
+ request; this effectively ignores the headers
3794
+ in the spec for a single request.
3795
+ :type _headers: dict, optional
3796
+ :param _host_index: set to override the host_index for a single
3797
+ request; this effectively ignores the host_index
3798
+ in the spec for a single request.
3799
+ :type _host_index: int, optional
3800
+ :return: Returns the result object.
3801
+ """ # noqa: E501
3802
+
3803
+ _param = self._content_v2_object_parent_all_get_serialize(
3804
+ locale=locale,
3805
+ _request_auth=_request_auth,
3806
+ _content_type=_content_type,
3807
+ _headers=_headers,
3808
+ _host_index=_host_index
3809
+ )
3810
+
3811
+ _response_types_map: Dict[str, Optional[str]] = {
3812
+ '200': "ContentV2ObjectParentAllGet200Response",
3813
+ '400': "ResponseBodyContentError400",
3814
+ '401': "ContentV2ObjectParentAllGet401Response",
3815
+ '403': "ResponseBodyContentError403",
3816
+ '429': "ContentV2ObjectParentAllGet401Response",
3817
+ }
3818
+ response_data = self.api_client.call_api(
3819
+ *_param,
3820
+ _request_timeout=_request_timeout
3821
+ )
3822
+ return response_data.response
3823
+
3824
+
3825
+ def _content_v2_object_parent_all_get_serialize(
3826
+ self,
3827
+ locale,
3828
+ _request_auth,
3829
+ _content_type,
3830
+ _headers,
3831
+ _host_index,
3832
+ ) -> RequestSerialized:
3833
+
3834
+ _hosts = [
3835
+ 'https://content-api.wildberries.ru'
3836
+ ]
3837
+ _host = _hosts[_host_index]
3838
+
3839
+ _collection_formats: Dict[str, str] = {
3840
+ }
3841
+
3842
+ _path_params: Dict[str, str] = {}
3843
+ _query_params: List[Tuple[str, str]] = []
3844
+ _header_params: Dict[str, Optional[str]] = _headers or {}
3845
+ _form_params: List[Tuple[str, str]] = []
3846
+ _files: Dict[
3847
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3848
+ ] = {}
3849
+ _body_params: Optional[bytes] = None
3850
+
3851
+ # process the path parameters
3852
+ # process the query parameters
3853
+ if locale is not None:
3854
+
3855
+ _query_params.append(('locale', locale))
3856
+
3857
+ # process the header parameters
3858
+ # process the form parameters
3859
+ # process the body parameter
3860
+
3861
+
3862
+ # set the HTTP header `Accept`
3863
+ if 'Accept' not in _header_params:
3864
+ _header_params['Accept'] = self.api_client.select_header_accept(
3865
+ [
3866
+ 'application/json'
3867
+ ]
3868
+ )
3869
+
3870
+
3871
+ # authentication setting
3872
+ _auth_settings: List[str] = [
3873
+ 'HeaderApiKey'
3874
+ ]
3875
+
3876
+ return self.api_client.param_serialize(
3877
+ method='GET',
3878
+ resource_path='/content/v2/object/parent/all',
3879
+ path_params=_path_params,
3880
+ query_params=_query_params,
3881
+ header_params=_header_params,
3882
+ body=_body_params,
3883
+ post_params=_form_params,
3884
+ files=_files,
3885
+ auth_settings=_auth_settings,
3886
+ collection_formats=_collection_formats,
3887
+ _host=_host,
3888
+ _request_auth=_request_auth
3889
+ )
3890
+
3891
+