wildberries-sdk 0.1.26__py3-none-any.whl → 0.1.28__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 (77) hide show
  1. wildberries_sdk/analytics/__init__.py +1 -1
  2. wildberries_sdk/analytics/api_client.py +1 -1
  3. wildberries_sdk/analytics/configuration.py +1 -1
  4. wildberries_sdk/communications/__init__.py +1 -1
  5. wildberries_sdk/communications/api/default_api.py +30 -30
  6. wildberries_sdk/communications/api_client.py +1 -1
  7. wildberries_sdk/communications/configuration.py +1 -1
  8. wildberries_sdk/communications/models/api_v1_claims_get200_response_claims_inner.py +3 -4
  9. wildberries_sdk/communications/models/api_v1_feedback_get200_response_data_product_details.py +1 -1
  10. wildberries_sdk/communications/models/api_v1_question_get200_response_data_product_details.py +1 -1
  11. wildberries_sdk/communications/models/api_v1_questions_get200_response_data_questions_inner_product_details.py +1 -1
  12. wildberries_sdk/communications/models/openapi_pin_review_item.py +1 -1
  13. wildberries_sdk/communications/models/openapi_pin_review_item_result_data_inner.py +1 -1
  14. wildberries_sdk/communications/models/openapi_pinned_review_item_result.py +3 -3
  15. wildberries_sdk/communications/models/openapi_seller_limit.py +4 -4
  16. wildberries_sdk/communications/models/response_feedback_inner_product_details.py +1 -1
  17. wildberries_sdk/finances/__init__.py +1 -1
  18. wildberries_sdk/finances/api_client.py +1 -1
  19. wildberries_sdk/finances/configuration.py +1 -1
  20. wildberries_sdk/general/__init__.py +1 -1
  21. wildberries_sdk/general/api_client.py +1 -1
  22. wildberries_sdk/general/configuration.py +1 -1
  23. wildberries_sdk/in_store_pickup/__init__.py +1 -1
  24. wildberries_sdk/in_store_pickup/api_client.py +1 -1
  25. wildberries_sdk/in_store_pickup/configuration.py +1 -1
  26. wildberries_sdk/orders_dbs/__init__.py +1 -1
  27. wildberries_sdk/orders_dbs/api_client.py +1 -1
  28. wildberries_sdk/orders_dbs/configuration.py +1 -1
  29. wildberries_sdk/orders_dbw/__init__.py +1 -1
  30. wildberries_sdk/orders_dbw/api_client.py +1 -1
  31. wildberries_sdk/orders_dbw/configuration.py +1 -1
  32. wildberries_sdk/orders_fbs/__init__.py +1 -5
  33. wildberries_sdk/orders_fbs/api/default_api.py +0 -283
  34. wildberries_sdk/orders_fbs/api_client.py +1 -1
  35. wildberries_sdk/orders_fbs/configuration.py +1 -1
  36. wildberries_sdk/orders_fbs/models/__init__.py +0 -2
  37. wildberries_sdk/orders_fbw/__init__.py +1 -1
  38. wildberries_sdk/orders_fbw/api_client.py +1 -1
  39. wildberries_sdk/orders_fbw/configuration.py +1 -1
  40. wildberries_sdk/products/__init__.py +1 -1
  41. wildberries_sdk/products/api/default_api.py +18 -18
  42. wildberries_sdk/products/api_client.py +1 -1
  43. wildberries_sdk/products/configuration.py +1 -1
  44. wildberries_sdk/products/models/content_v2_cards_upload_add_post_request.py +2 -2
  45. wildberries_sdk/products/models/content_v2_cards_upload_post_request_inner.py +1 -1
  46. wildberries_sdk/products/models/content_v2_directory_countries_get200_response_data_inner.py +4 -2
  47. wildberries_sdk/products/models/content_v2_get_cards_list_post200_response_cards_inner.py +1 -1
  48. wildberries_sdk/products/models/content_v2_get_cards_list_post_request_settings_cursor.py +3 -2
  49. wildberries_sdk/products/models/content_v2_get_cards_list_post_request_settings_filter.py +1 -1
  50. wildberries_sdk/products/models/content_v2_get_cards_trash_post_request_settings_cursor.py +3 -2
  51. wildberries_sdk/products/models/request_move_nms_imt_conn.py +2 -2
  52. wildberries_sdk/products/models/request_move_nms_imt_disconn.py +1 -1
  53. wildberries_sdk/promotion/__init__.py +1 -1
  54. wildberries_sdk/promotion/api_client.py +1 -1
  55. wildberries_sdk/promotion/configuration.py +1 -1
  56. wildberries_sdk/reports/__init__.py +1 -9
  57. wildberries_sdk/reports/api/default_api.py +153 -765
  58. wildberries_sdk/reports/api_client.py +1 -1
  59. wildberries_sdk/reports/configuration.py +1 -1
  60. wildberries_sdk/reports/models/__init__.py +0 -4
  61. wildberries_sdk/tariffs/__init__.py +1 -1
  62. wildberries_sdk/tariffs/api_client.py +1 -1
  63. wildberries_sdk/tariffs/configuration.py +1 -1
  64. wildberries_sdk/wbd/__init__.py +1 -1
  65. wildberries_sdk/wbd/api_client.py +1 -1
  66. wildberries_sdk/wbd/configuration.py +1 -1
  67. {wildberries_sdk-0.1.26.dist-info → wildberries_sdk-0.1.28.dist-info}/METADATA +1 -4
  68. {wildberries_sdk-0.1.26.dist-info → wildberries_sdk-0.1.28.dist-info}/RECORD +71 -77
  69. wildberries_sdk/orders_fbs/models/api_v3_supplies_supply_id_orders_get200_response.py +0 -95
  70. wildberries_sdk/orders_fbs/models/supply_order.py +0 -142
  71. wildberries_sdk/reports/models/api_v1_analytics_characteristics_change_get200_response.py +0 -95
  72. wildberries_sdk/reports/models/api_v1_analytics_characteristics_change_get200_response_report_inner.py +0 -112
  73. wildberries_sdk/reports/models/api_v1_analytics_incorrect_attachments_get200_response.py +0 -95
  74. wildberries_sdk/reports/models/api_v1_analytics_incorrect_attachments_get200_response_report_inner.py +0 -97
  75. {wildberries_sdk-0.1.26.dist-info → wildberries_sdk-0.1.28.dist-info}/LICENSE +0 -0
  76. {wildberries_sdk-0.1.26.dist-info → wildberries_sdk-0.1.28.dist-info}/WHEEL +0 -0
  77. {wildberries_sdk-0.1.26.dist-info → wildberries_sdk-0.1.28.dist-info}/top_level.txt +0 -0
@@ -1,95 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- Заказы FBS
5
-
6
- <div class=\"description_important\"> <b>Методы для работы со сборочными заданиями модели DBW (Доставка курьером WB) теперь на <a href=\"https://dev.wildberries.ru/release-notes?id=312\">отдельном контуре</a>.</b> </div> В разделе заказов FBS (Fulfillment by Seller) вам доступны методы: 1. Управления [сборочными заданиями](/openapi/orders-fbs#tag/Sborochnye-zadaniya-FBS): информация о сборочных заданиях, метаданные, стикеры и так далее. 2. Управления [поставками заказов](/openapi/orders-fbs#tag/Postavki-FBS) продавца на склады WB. 3. Заказа [пропусков](/openapi/orders-fbs#tag/Propuska-FBS) на склады WB. <br> <div class=\"description_important\"> Узнать больше о заказах FBS можно в <a href=\"https://seller.wildberries.ru/instructions/ru/ru/category/b3e60238-fd4c-49ce-8668-ff688725a12d\">справочном центре</a> </div>
7
-
8
- The version of the OpenAPI document: order
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
10
-
11
- Do not edit the class manually.
12
- """ # noqa: E501
13
-
14
-
15
- from __future__ import annotations
16
- import pprint
17
- import re # noqa: F401
18
- import json
19
-
20
- from pydantic import BaseModel, ConfigDict
21
- from typing import Any, ClassVar, Dict, List, Optional
22
- from wildberries_sdk.orders_fbs.models.supply_order import SupplyOrder
23
- from typing import Optional, Set
24
- from typing_extensions import Self
25
-
26
- class ApiV3SuppliesSupplyIdOrdersGet200Response(BaseModel):
27
- """
28
- ApiV3SuppliesSupplyIdOrdersGet200Response
29
- """ # noqa: E501
30
- orders: Optional[List[SupplyOrder]] = None
31
- __properties: ClassVar[List[str]] = ["orders"]
32
-
33
- model_config = ConfigDict(
34
- populate_by_name=True,
35
- validate_assignment=True,
36
- protected_namespaces=(),
37
- )
38
-
39
-
40
- def to_str(self) -> str:
41
- """Returns the string representation of the model using alias"""
42
- return pprint.pformat(self.model_dump(by_alias=True))
43
-
44
- def to_json(self) -> str:
45
- """Returns the JSON representation of the model using alias"""
46
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
47
- return json.dumps(self.to_dict())
48
-
49
- @classmethod
50
- def from_json(cls, json_str: str) -> Optional[Self]:
51
- """Create an instance of ApiV3SuppliesSupplyIdOrdersGet200Response from a JSON string"""
52
- return cls.from_dict(json.loads(json_str))
53
-
54
- def to_dict(self) -> Dict[str, Any]:
55
- """Return the dictionary representation of the model using alias.
56
-
57
- This has the following differences from calling pydantic's
58
- `self.model_dump(by_alias=True)`:
59
-
60
- * `None` is only added to the output dict for nullable fields that
61
- were set at model initialization. Other fields with value `None`
62
- are ignored.
63
- """
64
- excluded_fields: Set[str] = set([
65
- ])
66
-
67
- _dict = self.model_dump(
68
- by_alias=True,
69
- exclude=excluded_fields,
70
- exclude_none=True,
71
- )
72
- # override the default output from pydantic by calling `to_dict()` of each item in orders (list)
73
- _items = []
74
- if self.orders:
75
- for _item_orders in self.orders:
76
- if _item_orders:
77
- _items.append(_item_orders.to_dict())
78
- _dict['orders'] = _items
79
- return _dict
80
-
81
- @classmethod
82
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
83
- """Create an instance of ApiV3SuppliesSupplyIdOrdersGet200Response from a dict"""
84
- if obj is None:
85
- return None
86
-
87
- if not isinstance(obj, dict):
88
- return cls.model_validate(obj)
89
-
90
- _obj = cls.model_validate({
91
- "orders": [SupplyOrder.from_dict(_item) for _item in obj["orders"]] if obj.get("orders") is not None else None
92
- })
93
- return _obj
94
-
95
-
@@ -1,142 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- Заказы FBS
5
-
6
- <div class=\"description_important\"> <b>Методы для работы со сборочными заданиями модели DBW (Доставка курьером WB) теперь на <a href=\"https://dev.wildberries.ru/release-notes?id=312\">отдельном контуре</a>.</b> </div> В разделе заказов FBS (Fulfillment by Seller) вам доступны методы: 1. Управления [сборочными заданиями](/openapi/orders-fbs#tag/Sborochnye-zadaniya-FBS): информация о сборочных заданиях, метаданные, стикеры и так далее. 2. Управления [поставками заказов](/openapi/orders-fbs#tag/Postavki-FBS) продавца на склады WB. 3. Заказа [пропусков](/openapi/orders-fbs#tag/Propuska-FBS) на склады WB. <br> <div class=\"description_important\"> Узнать больше о заказах FBS можно в <a href=\"https://seller.wildberries.ru/instructions/ru/ru/category/b3e60238-fd4c-49ce-8668-ff688725a12d\">справочном центре</a> </div>
7
-
8
- The version of the OpenAPI document: order
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
10
-
11
- Do not edit the class manually.
12
- """ # noqa: E501
13
-
14
-
15
- from __future__ import annotations
16
- import pprint
17
- import re # noqa: F401
18
- import json
19
-
20
- from datetime import datetime
21
- from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator
22
- from typing import Any, ClassVar, Dict, List, Optional, Union
23
- from typing import Optional, Set
24
- from typing_extensions import Self
25
-
26
- class SupplyOrder(BaseModel):
27
- """
28
- SupplyOrder
29
- """ # noqa: E501
30
- scan_price: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Цена приёмки в копейках. Отображается после фактической приёмки заказа. Для данного метода всегда будет возвращаться `null`. Предоставляется в информационных целях", alias="scanPrice")
31
- order_uid: Optional[StrictStr] = Field(default=None, description="ID транзакции для группировки сборочных заданий. Сборочные задания в одной корзине покупателя будут иметь одинаковый `orderUid`", alias="orderUid")
32
- article: Optional[StrictStr] = Field(default=None, description="Артикул продавца")
33
- color_code: Optional[StrictStr] = Field(default=None, description="Код цвета (только для колеруемых товаров)", alias="colorCode")
34
- rid: Optional[StrictStr] = Field(default=None, description="Уникальный ID заказа. <br> Примечание: `rid` — это `srid` в ответах методов: - [Заявки покупателей на возврат](./user-communication#tag/Vozvraty-pokupatelyami/paths/~1api~1v1~1claims/get) - [Заказы](./reports#tag/Osnovnye-otchyoty/paths/~1api~1v1~1supplier~1orders/get) - [Продажи](./reports#tag/Osnovnye-otchyoty/paths/~1api~1v1~1supplier~1sales/get) - [Отчет о возвратах и перемещении товаров](./reports#tag/Otchyot-o-vozvratah-i-peremeshenii-tovarov) - [Отчет о продажах по реализации](./financial-reports-and-accounting#tag/Finansovye-otchyoty/paths/~1api~1v5~1supplier~1reportDetailByPeriod/get) ")
35
- created_at: Optional[datetime] = Field(default=None, description="Дата создания сборочного задания (RFC3339)", alias="createdAt")
36
- offices: Optional[List[StrictStr]] = Field(default=None, description="Список офисов, куда следует привезти товар")
37
- skus: Optional[List[StrictStr]] = Field(default=None, description="Список баркодов")
38
- id: Optional[StrictInt] = Field(default=None, description="ID сборочного задания")
39
- warehouse_id: Optional[StrictInt] = Field(default=None, description="ID склада продавца, на который поступило сборочное задание", alias="warehouseId")
40
- nm_id: Optional[StrictInt] = Field(default=None, description="Артикул WB", alias="nmId")
41
- chrt_id: Optional[StrictInt] = Field(default=None, description="ID размера товара в системе WB", alias="chrtId")
42
- price: Optional[StrictInt] = Field(default=None, description="Цена в валюте продажи с учётом всех скидок, кроме скидки по WB Кошельку, умноженная на 100. Код валюты продажи — в поле `currencyCode`. Предоставляется в информационных целях ")
43
- converted_price: Optional[StrictInt] = Field(default=None, description="Цена в валюте страны продавца с учетом всех скидок, кроме скидки по WB Кошельку, умноженная на 100. Предоставляется в информационных целях", alias="convertedPrice")
44
- currency_code: Optional[StrictInt] = Field(default=None, description="Код валюты продажи", alias="currencyCode")
45
- converted_currency_code: Optional[StrictInt] = Field(default=None, description="Код валюты страны продавца", alias="convertedCurrencyCode")
46
- cargo_type: Optional[StrictInt] = Field(default=None, description="Тип товара: - `1` — малогабаритный товар (МГТ) - `2` — сверхгабаритный товар (СГТ) - `3` — крупногабаритный товар (КГТ+) ", alias="cargoType")
47
- is_zero_order: Optional[StrictBool] = Field(default=None, description="Признак заказа товара с нулевым остатком: - `false` — заказ сделан на товар с ненулевым остатком - `true` — заказ сделан на товар с нулевым остатком. Такой заказ можно отменить без штрафа за отмену ", alias="isZeroOrder")
48
- __properties: ClassVar[List[str]] = ["scanPrice", "orderUid", "article", "colorCode", "rid", "createdAt", "offices", "skus", "id", "warehouseId", "nmId", "chrtId", "price", "convertedPrice", "currencyCode", "convertedCurrencyCode", "cargoType", "isZeroOrder"]
49
-
50
- @field_validator('cargo_type')
51
- def cargo_type_validate_enum(cls, value):
52
- """Validates the enum"""
53
- if value is None:
54
- return value
55
-
56
- if value not in set([1, 2, 3]):
57
- raise ValueError("must be one of enum values (1, 2, 3)")
58
- return value
59
-
60
- model_config = ConfigDict(
61
- populate_by_name=True,
62
- validate_assignment=True,
63
- protected_namespaces=(),
64
- )
65
-
66
-
67
- def to_str(self) -> str:
68
- """Returns the string representation of the model using alias"""
69
- return pprint.pformat(self.model_dump(by_alias=True))
70
-
71
- def to_json(self) -> str:
72
- """Returns the JSON representation of the model using alias"""
73
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
74
- return json.dumps(self.to_dict())
75
-
76
- @classmethod
77
- def from_json(cls, json_str: str) -> Optional[Self]:
78
- """Create an instance of SupplyOrder from a JSON string"""
79
- return cls.from_dict(json.loads(json_str))
80
-
81
- def to_dict(self) -> Dict[str, Any]:
82
- """Return the dictionary representation of the model using alias.
83
-
84
- This has the following differences from calling pydantic's
85
- `self.model_dump(by_alias=True)`:
86
-
87
- * `None` is only added to the output dict for nullable fields that
88
- were set at model initialization. Other fields with value `None`
89
- are ignored.
90
- """
91
- excluded_fields: Set[str] = set([
92
- ])
93
-
94
- _dict = self.model_dump(
95
- by_alias=True,
96
- exclude=excluded_fields,
97
- exclude_none=True,
98
- )
99
- # set to None if scan_price (nullable) is None
100
- # and model_fields_set contains the field
101
- if self.scan_price is None and "scan_price" in self.model_fields_set:
102
- _dict['scanPrice'] = None
103
-
104
- # set to None if offices (nullable) is None
105
- # and model_fields_set contains the field
106
- if self.offices is None and "offices" in self.model_fields_set:
107
- _dict['offices'] = None
108
-
109
- return _dict
110
-
111
- @classmethod
112
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
113
- """Create an instance of SupplyOrder from a dict"""
114
- if obj is None:
115
- return None
116
-
117
- if not isinstance(obj, dict):
118
- return cls.model_validate(obj)
119
-
120
- _obj = cls.model_validate({
121
- "scanPrice": obj.get("scanPrice"),
122
- "orderUid": obj.get("orderUid"),
123
- "article": obj.get("article"),
124
- "colorCode": obj.get("colorCode"),
125
- "rid": obj.get("rid"),
126
- "createdAt": obj.get("createdAt"),
127
- "offices": obj.get("offices"),
128
- "skus": obj.get("skus"),
129
- "id": obj.get("id"),
130
- "warehouseId": obj.get("warehouseId"),
131
- "nmId": obj.get("nmId"),
132
- "chrtId": obj.get("chrtId"),
133
- "price": obj.get("price"),
134
- "convertedPrice": obj.get("convertedPrice"),
135
- "currencyCode": obj.get("currencyCode"),
136
- "convertedCurrencyCode": obj.get("convertedCurrencyCode"),
137
- "cargoType": obj.get("cargoType"),
138
- "isZeroOrder": obj.get("isZeroOrder")
139
- })
140
- return _obj
141
-
142
-
@@ -1,95 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- Отчёты
5
-
6
- <div class=\"description_important\"> Узнать больше об отчётах можно в <a href=\"https://seller.wildberries.ru/instructions/subcategory/5f2162c5-069b-416d-a4e1-48da2a76e6b0\">справочном центре</a> </div> С помощью этих методов вы можете получить [основные отчёты](/openapi/reports#tag/Osnovnye-otchyoty) и отчёты о: 1. [Остатках на складах](/openapi/reports#tag/Otchyot-ob-ostatkah-na-skladah) 2. [Товарах с обязательной маркировкой](/openapi/reports#tag/Otchyot-o-tovarah-c-obyazatelnoj-markirovkoj) 3. [Удержаниях](/openapi/reports#tag/Otchyoty-ob-uderzhaniyah) 4. [Платной приёмке](/openapi/reports#tag/Platnaya-priyomka) 5. [Платном хранении](/openapi/reports#tag/Platnoe-hranenie) 6. [Продажах по регионам](/openapi/reports#tag/Prodazhi-po-regionam) 7. [Доле бренда в продажах](/openapi/reports#tag/Dolya-brenda-v-prodazhah) 8. [Скрытых товарах](/openapi/reports#tag/Skrytye-tovary) 9. [Возвратах и перемещении товаров](/openapi/reports#tag/Otchyot-o-vozvratah-i-peremeshenii-tovarov)
7
-
8
- The version of the OpenAPI document: reports
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
10
-
11
- Do not edit the class manually.
12
- """ # noqa: E501
13
-
14
-
15
- from __future__ import annotations
16
- import pprint
17
- import re # noqa: F401
18
- import json
19
-
20
- from pydantic import BaseModel, ConfigDict
21
- from typing import Any, ClassVar, Dict, List, Optional
22
- from wildberries_sdk.reports.models.api_v1_analytics_characteristics_change_get200_response_report_inner import ApiV1AnalyticsCharacteristicsChangeGet200ResponseReportInner
23
- from typing import Optional, Set
24
- from typing_extensions import Self
25
-
26
- class ApiV1AnalyticsCharacteristicsChangeGet200Response(BaseModel):
27
- """
28
- ApiV1AnalyticsCharacteristicsChangeGet200Response
29
- """ # noqa: E501
30
- report: Optional[List[ApiV1AnalyticsCharacteristicsChangeGet200ResponseReportInner]] = None
31
- __properties: ClassVar[List[str]] = ["report"]
32
-
33
- model_config = ConfigDict(
34
- populate_by_name=True,
35
- validate_assignment=True,
36
- protected_namespaces=(),
37
- )
38
-
39
-
40
- def to_str(self) -> str:
41
- """Returns the string representation of the model using alias"""
42
- return pprint.pformat(self.model_dump(by_alias=True))
43
-
44
- def to_json(self) -> str:
45
- """Returns the JSON representation of the model using alias"""
46
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
47
- return json.dumps(self.to_dict())
48
-
49
- @classmethod
50
- def from_json(cls, json_str: str) -> Optional[Self]:
51
- """Create an instance of ApiV1AnalyticsCharacteristicsChangeGet200Response from a JSON string"""
52
- return cls.from_dict(json.loads(json_str))
53
-
54
- def to_dict(self) -> Dict[str, Any]:
55
- """Return the dictionary representation of the model using alias.
56
-
57
- This has the following differences from calling pydantic's
58
- `self.model_dump(by_alias=True)`:
59
-
60
- * `None` is only added to the output dict for nullable fields that
61
- were set at model initialization. Other fields with value `None`
62
- are ignored.
63
- """
64
- excluded_fields: Set[str] = set([
65
- ])
66
-
67
- _dict = self.model_dump(
68
- by_alias=True,
69
- exclude=excluded_fields,
70
- exclude_none=True,
71
- )
72
- # override the default output from pydantic by calling `to_dict()` of each item in report (list)
73
- _items = []
74
- if self.report:
75
- for _item_report in self.report:
76
- if _item_report:
77
- _items.append(_item_report.to_dict())
78
- _dict['report'] = _items
79
- return _dict
80
-
81
- @classmethod
82
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
83
- """Create an instance of ApiV1AnalyticsCharacteristicsChangeGet200Response from a dict"""
84
- if obj is None:
85
- return None
86
-
87
- if not isinstance(obj, dict):
88
- return cls.model_validate(obj)
89
-
90
- _obj = cls.model_validate({
91
- "report": [ApiV1AnalyticsCharacteristicsChangeGet200ResponseReportInner.from_dict(_item) for _item in obj["report"]] if obj.get("report") is not None else None
92
- })
93
- return _obj
94
-
95
-
@@ -1,112 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- Отчёты
5
-
6
- <div class=\"description_important\"> Узнать больше об отчётах можно в <a href=\"https://seller.wildberries.ru/instructions/subcategory/5f2162c5-069b-416d-a4e1-48da2a76e6b0\">справочном центре</a> </div> С помощью этих методов вы можете получить [основные отчёты](/openapi/reports#tag/Osnovnye-otchyoty) и отчёты о: 1. [Остатках на складах](/openapi/reports#tag/Otchyot-ob-ostatkah-na-skladah) 2. [Товарах с обязательной маркировкой](/openapi/reports#tag/Otchyot-o-tovarah-c-obyazatelnoj-markirovkoj) 3. [Удержаниях](/openapi/reports#tag/Otchyoty-ob-uderzhaniyah) 4. [Платной приёмке](/openapi/reports#tag/Platnaya-priyomka) 5. [Платном хранении](/openapi/reports#tag/Platnoe-hranenie) 6. [Продажах по регионам](/openapi/reports#tag/Prodazhi-po-regionam) 7. [Доле бренда в продажах](/openapi/reports#tag/Dolya-brenda-v-prodazhah) 8. [Скрытых товарах](/openapi/reports#tag/Skrytye-tovary) 9. [Возвратах и перемещении товаров](/openapi/reports#tag/Otchyot-o-vozvratah-i-peremeshenii-tovarov)
7
-
8
- The version of the OpenAPI document: reports
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
10
-
11
- Do not edit the class manually.
12
- """ # noqa: E501
13
-
14
-
15
- from __future__ import annotations
16
- import pprint
17
- import re # noqa: F401
18
- import json
19
-
20
- from datetime import datetime
21
- from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
22
- from typing import Any, ClassVar, Dict, List, Optional
23
- from typing import Optional, Set
24
- from typing_extensions import Self
25
-
26
- class ApiV1AnalyticsCharacteristicsChangeGet200ResponseReportInner(BaseModel):
27
- """
28
- ApiV1AnalyticsCharacteristicsChangeGet200ResponseReportInner
29
- """ # noqa: E501
30
- amount: Optional[StrictInt] = Field(default=None, description="Сумма штрафа в копейках")
31
- var_date: Optional[datetime] = Field(default=None, description="Дата изменения характеристик товара на складе", alias="date")
32
- new_barcode: Optional[StrictStr] = Field(default=None, description="Новый баркод в карточке товара", alias="newBarcode")
33
- new_color: Optional[StrictStr] = Field(default=None, description="Новый цвет", alias="newColor")
34
- new_sa: Optional[StrictStr] = Field(default=None, description="Новый артикул продавца", alias="newSa")
35
- new_shk_id: Optional[StrictInt] = Field(default=None, description="Новый штрихкод товара в WB", alias="newShkID")
36
- new_size: Optional[StrictStr] = Field(default=None, description="Новый размер", alias="newSize")
37
- nm_id: Optional[StrictInt] = Field(default=None, description="Артикул WB", alias="nmID")
38
- old_barcode: Optional[StrictStr] = Field(default=None, description="Старый баркод из карточки товара", alias="oldBarcode")
39
- old_color: Optional[StrictStr] = Field(default=None, description="Старый цвет", alias="oldColor")
40
- old_sa: Optional[StrictStr] = Field(default=None, description="Старый артикул продавца", alias="oldSa")
41
- old_shk_id: Optional[StrictInt] = Field(default=None, description="Старый штрихкод товара в WB", alias="oldShkID")
42
- old_size: Optional[StrictStr] = Field(default=None, description="Старый размер", alias="oldSize")
43
- __properties: ClassVar[List[str]] = ["amount", "date", "newBarcode", "newColor", "newSa", "newShkID", "newSize", "nmID", "oldBarcode", "oldColor", "oldSa", "oldShkID", "oldSize"]
44
-
45
- model_config = ConfigDict(
46
- populate_by_name=True,
47
- validate_assignment=True,
48
- protected_namespaces=(),
49
- )
50
-
51
-
52
- def to_str(self) -> str:
53
- """Returns the string representation of the model using alias"""
54
- return pprint.pformat(self.model_dump(by_alias=True))
55
-
56
- def to_json(self) -> str:
57
- """Returns the JSON representation of the model using alias"""
58
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
59
- return json.dumps(self.to_dict())
60
-
61
- @classmethod
62
- def from_json(cls, json_str: str) -> Optional[Self]:
63
- """Create an instance of ApiV1AnalyticsCharacteristicsChangeGet200ResponseReportInner from a JSON string"""
64
- return cls.from_dict(json.loads(json_str))
65
-
66
- def to_dict(self) -> Dict[str, Any]:
67
- """Return the dictionary representation of the model using alias.
68
-
69
- This has the following differences from calling pydantic's
70
- `self.model_dump(by_alias=True)`:
71
-
72
- * `None` is only added to the output dict for nullable fields that
73
- were set at model initialization. Other fields with value `None`
74
- are ignored.
75
- """
76
- excluded_fields: Set[str] = set([
77
- ])
78
-
79
- _dict = self.model_dump(
80
- by_alias=True,
81
- exclude=excluded_fields,
82
- exclude_none=True,
83
- )
84
- return _dict
85
-
86
- @classmethod
87
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
88
- """Create an instance of ApiV1AnalyticsCharacteristicsChangeGet200ResponseReportInner from a dict"""
89
- if obj is None:
90
- return None
91
-
92
- if not isinstance(obj, dict):
93
- return cls.model_validate(obj)
94
-
95
- _obj = cls.model_validate({
96
- "amount": obj.get("amount"),
97
- "date": obj.get("date"),
98
- "newBarcode": obj.get("newBarcode"),
99
- "newColor": obj.get("newColor"),
100
- "newSa": obj.get("newSa"),
101
- "newShkID": obj.get("newShkID"),
102
- "newSize": obj.get("newSize"),
103
- "nmID": obj.get("nmID"),
104
- "oldBarcode": obj.get("oldBarcode"),
105
- "oldColor": obj.get("oldColor"),
106
- "oldSa": obj.get("oldSa"),
107
- "oldShkID": obj.get("oldShkID"),
108
- "oldSize": obj.get("oldSize")
109
- })
110
- return _obj
111
-
112
-
@@ -1,95 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- Отчёты
5
-
6
- <div class=\"description_important\"> Узнать больше об отчётах можно в <a href=\"https://seller.wildberries.ru/instructions/subcategory/5f2162c5-069b-416d-a4e1-48da2a76e6b0\">справочном центре</a> </div> С помощью этих методов вы можете получить [основные отчёты](/openapi/reports#tag/Osnovnye-otchyoty) и отчёты о: 1. [Остатках на складах](/openapi/reports#tag/Otchyot-ob-ostatkah-na-skladah) 2. [Товарах с обязательной маркировкой](/openapi/reports#tag/Otchyot-o-tovarah-c-obyazatelnoj-markirovkoj) 3. [Удержаниях](/openapi/reports#tag/Otchyoty-ob-uderzhaniyah) 4. [Платной приёмке](/openapi/reports#tag/Platnaya-priyomka) 5. [Платном хранении](/openapi/reports#tag/Platnoe-hranenie) 6. [Продажах по регионам](/openapi/reports#tag/Prodazhi-po-regionam) 7. [Доле бренда в продажах](/openapi/reports#tag/Dolya-brenda-v-prodazhah) 8. [Скрытых товарах](/openapi/reports#tag/Skrytye-tovary) 9. [Возвратах и перемещении товаров](/openapi/reports#tag/Otchyot-o-vozvratah-i-peremeshenii-tovarov)
7
-
8
- The version of the OpenAPI document: reports
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
10
-
11
- Do not edit the class manually.
12
- """ # noqa: E501
13
-
14
-
15
- from __future__ import annotations
16
- import pprint
17
- import re # noqa: F401
18
- import json
19
-
20
- from pydantic import BaseModel, ConfigDict
21
- from typing import Any, ClassVar, Dict, List, Optional
22
- from wildberries_sdk.reports.models.api_v1_analytics_incorrect_attachments_get200_response_report_inner import ApiV1AnalyticsIncorrectAttachmentsGet200ResponseReportInner
23
- from typing import Optional, Set
24
- from typing_extensions import Self
25
-
26
- class ApiV1AnalyticsIncorrectAttachmentsGet200Response(BaseModel):
27
- """
28
- ApiV1AnalyticsIncorrectAttachmentsGet200Response
29
- """ # noqa: E501
30
- report: Optional[List[ApiV1AnalyticsIncorrectAttachmentsGet200ResponseReportInner]] = None
31
- __properties: ClassVar[List[str]] = ["report"]
32
-
33
- model_config = ConfigDict(
34
- populate_by_name=True,
35
- validate_assignment=True,
36
- protected_namespaces=(),
37
- )
38
-
39
-
40
- def to_str(self) -> str:
41
- """Returns the string representation of the model using alias"""
42
- return pprint.pformat(self.model_dump(by_alias=True))
43
-
44
- def to_json(self) -> str:
45
- """Returns the JSON representation of the model using alias"""
46
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
47
- return json.dumps(self.to_dict())
48
-
49
- @classmethod
50
- def from_json(cls, json_str: str) -> Optional[Self]:
51
- """Create an instance of ApiV1AnalyticsIncorrectAttachmentsGet200Response from a JSON string"""
52
- return cls.from_dict(json.loads(json_str))
53
-
54
- def to_dict(self) -> Dict[str, Any]:
55
- """Return the dictionary representation of the model using alias.
56
-
57
- This has the following differences from calling pydantic's
58
- `self.model_dump(by_alias=True)`:
59
-
60
- * `None` is only added to the output dict for nullable fields that
61
- were set at model initialization. Other fields with value `None`
62
- are ignored.
63
- """
64
- excluded_fields: Set[str] = set([
65
- ])
66
-
67
- _dict = self.model_dump(
68
- by_alias=True,
69
- exclude=excluded_fields,
70
- exclude_none=True,
71
- )
72
- # override the default output from pydantic by calling `to_dict()` of each item in report (list)
73
- _items = []
74
- if self.report:
75
- for _item_report in self.report:
76
- if _item_report:
77
- _items.append(_item_report.to_dict())
78
- _dict['report'] = _items
79
- return _dict
80
-
81
- @classmethod
82
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
83
- """Create an instance of ApiV1AnalyticsIncorrectAttachmentsGet200Response from a dict"""
84
- if obj is None:
85
- return None
86
-
87
- if not isinstance(obj, dict):
88
- return cls.model_validate(obj)
89
-
90
- _obj = cls.model_validate({
91
- "report": [ApiV1AnalyticsIncorrectAttachmentsGet200ResponseReportInner.from_dict(_item) for _item in obj["report"]] if obj.get("report") is not None else None
92
- })
93
- return _obj
94
-
95
-
@@ -1,97 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- Отчёты
5
-
6
- <div class=\"description_important\"> Узнать больше об отчётах можно в <a href=\"https://seller.wildberries.ru/instructions/subcategory/5f2162c5-069b-416d-a4e1-48da2a76e6b0\">справочном центре</a> </div> С помощью этих методов вы можете получить [основные отчёты](/openapi/reports#tag/Osnovnye-otchyoty) и отчёты о: 1. [Остатках на складах](/openapi/reports#tag/Otchyot-ob-ostatkah-na-skladah) 2. [Товарах с обязательной маркировкой](/openapi/reports#tag/Otchyot-o-tovarah-c-obyazatelnoj-markirovkoj) 3. [Удержаниях](/openapi/reports#tag/Otchyoty-ob-uderzhaniyah) 4. [Платной приёмке](/openapi/reports#tag/Platnaya-priyomka) 5. [Платном хранении](/openapi/reports#tag/Platnoe-hranenie) 6. [Продажах по регионам](/openapi/reports#tag/Prodazhi-po-regionam) 7. [Доле бренда в продажах](/openapi/reports#tag/Dolya-brenda-v-prodazhah) 8. [Скрытых товарах](/openapi/reports#tag/Skrytye-tovary) 9. [Возвратах и перемещении товаров](/openapi/reports#tag/Otchyot-o-vozvratah-i-peremeshenii-tovarov)
7
-
8
- The version of the OpenAPI document: reports
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
10
-
11
- Do not edit the class manually.
12
- """ # noqa: E501
13
-
14
-
15
- from __future__ import annotations
16
- import pprint
17
- import re # noqa: F401
18
- import json
19
-
20
- from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr
21
- from typing import Any, ClassVar, Dict, List, Optional, Union
22
- from typing import Optional, Set
23
- from typing_extensions import Self
24
-
25
- class ApiV1AnalyticsIncorrectAttachmentsGet200ResponseReportInner(BaseModel):
26
- """
27
- ApiV1AnalyticsIncorrectAttachmentsGet200ResponseReportInner
28
- """ # noqa: E501
29
- amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Цена, ₽")
30
- var_date: Optional[StrictStr] = Field(default=None, description="Дата", alias="date")
31
- lost_reason: Optional[StrictStr] = Field(default=None, description="Причина удержания", alias="lostReason")
32
- nm_id: Optional[StrictInt] = Field(default=None, description="Артикул WB", alias="nmID")
33
- photo_url: Optional[StrictStr] = Field(default=None, description="Фото", alias="photoUrl")
34
- shk_id: Optional[StrictInt] = Field(default=None, description="Штрихкод", alias="shkID")
35
- __properties: ClassVar[List[str]] = ["amount", "date", "lostReason", "nmID", "photoUrl", "shkID"]
36
-
37
- model_config = ConfigDict(
38
- populate_by_name=True,
39
- validate_assignment=True,
40
- protected_namespaces=(),
41
- )
42
-
43
-
44
- def to_str(self) -> str:
45
- """Returns the string representation of the model using alias"""
46
- return pprint.pformat(self.model_dump(by_alias=True))
47
-
48
- def to_json(self) -> str:
49
- """Returns the JSON representation of the model using alias"""
50
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
51
- return json.dumps(self.to_dict())
52
-
53
- @classmethod
54
- def from_json(cls, json_str: str) -> Optional[Self]:
55
- """Create an instance of ApiV1AnalyticsIncorrectAttachmentsGet200ResponseReportInner from a JSON string"""
56
- return cls.from_dict(json.loads(json_str))
57
-
58
- def to_dict(self) -> Dict[str, Any]:
59
- """Return the dictionary representation of the model using alias.
60
-
61
- This has the following differences from calling pydantic's
62
- `self.model_dump(by_alias=True)`:
63
-
64
- * `None` is only added to the output dict for nullable fields that
65
- were set at model initialization. Other fields with value `None`
66
- are ignored.
67
- """
68
- excluded_fields: Set[str] = set([
69
- ])
70
-
71
- _dict = self.model_dump(
72
- by_alias=True,
73
- exclude=excluded_fields,
74
- exclude_none=True,
75
- )
76
- return _dict
77
-
78
- @classmethod
79
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
80
- """Create an instance of ApiV1AnalyticsIncorrectAttachmentsGet200ResponseReportInner from a dict"""
81
- if obj is None:
82
- return None
83
-
84
- if not isinstance(obj, dict):
85
- return cls.model_validate(obj)
86
-
87
- _obj = cls.model_validate({
88
- "amount": obj.get("amount"),
89
- "date": obj.get("date"),
90
- "lostReason": obj.get("lostReason"),
91
- "nmID": obj.get("nmID"),
92
- "photoUrl": obj.get("photoUrl"),
93
- "shkID": obj.get("shkID")
94
- })
95
- return _obj
96
-
97
-