wb_api_client/reports/models/excise_report_request.rs
1/*
2 * Отчёты
3 *
4 * Узнать больше об отчётах можно в [справочном центре](https://seller.wildberries.ru/instructions/subcategory/5f2162c5-069b-416d-a4e1-48da2a76e6b0) С помощью этих методов вы можете получать [основные отчёты](https://dev.wildberries.ru/openapi/reports#tag/mainReports) и отчёты о: 1. [Остатках на складах](https://dev.wildberries.ru/openapi/reports#tag/warehousesInventoryReport) 2. [Товарах с обязательной маркировкой](https://dev.wildberries.ru/openapi/reports#tag/reportOnItemsWithMandatoryLabeling) 3. [Удержаниях](https://dev.wildberries.ru/openapi/reports#tag/retentionReports) 4. [Операциях при приёмке](https://dev.wildberries.ru/openapi/reports#tag/acceptanceExpenses) 5. [Платном хранении](https://dev.wildberries.ru/openapi/reports#tag/paidStorage) 6. [Доле бренда в продажах](https://dev.wildberries.ru/openapi/reports#tag/shareOfBrandInSales) 7. [Заблокированных карточках](https://dev.wildberries.ru/openapi/reports#tag/blockedItems) 8. [Возвратах и перемещении товаров](https://dev.wildberries.ru/openapi/reports#tag/returnsAndItemMovementReport)
5 *
6 * The version of the OpenAPI document: reports
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::reports::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct ExciseReportRequest {
16 /// Код стран по стандарту ISO 3166-2. Чтобы получить данные по всем странам, оставьте параметр пустым
17 #[serde(rename = "countries", skip_serializing_if = "Option::is_none")]
18 pub countries: Option<Vec<Countries>>,
19}
20
21impl ExciseReportRequest {
22 pub fn new() -> ExciseReportRequest {
23 ExciseReportRequest { countries: None }
24 }
25}
26/// Код стран по стандарту ISO 3166-2. Чтобы получить данные по всем странам, оставьте параметр пустым
27#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
28pub enum Countries {
29 #[serde(rename = "AM")]
30 Am,
31 #[serde(rename = "BY")]
32 By,
33 #[serde(rename = "KG")]
34 Kg,
35 #[serde(rename = "KZ")]
36 Kz,
37 #[serde(rename = "RU")]
38 Ru,
39 #[serde(rename = "UZ")]
40 Uz,
41}
42
43impl Default for Countries {
44 fn default() -> Countries {
45 Self::Am
46 }
47}