wb-api-client 2.0.0

Wildberries Seller API client (generated)
Documentation
/*
 * Аналитика и данные
 *
 * Узнать больше об аналитике и данных можно в [справочном центре](https://seller.wildberries.ru/instructions/ru/ru/subcategory/seller-analytics)  В разделе описаны методы получения: 1. [Воронки продаж](https://dev.wildberries.ru/openapi/analytics#tag/salesFunnel) 2. [Ленты заказов](https://dev.wildberries.ru/openapi/analytics#tag/orderFeed) 3. [Поисковых запросов по вашим товарам](https://dev.wildberries.ru/openapi/analytics#tag/searchQueriesForYourItems) 4. [Истории остатков](https://dev.wildberries.ru/openapi/analytics#tag/stocksReport) 5. [Оценки товара](https://dev.wildberries.ru/openapi/analytics#tag/itemRating) 6. [Аналитики продавца в формате CSV](https://dev.wildberries.ru/openapi/analytics#tag/sellerAnalyticsCsv)
 *
 * The version of the OpenAPI document: analytics
 *
 * Generated by: https://openapi-generator.tech
 */

use crate::analytics::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct TableShippingOfficeRequest {
    /// Список артикулов WB для фильтрации
    #[serde(rename = "nmIDs", skip_serializing_if = "Option::is_none")]
    pub nm_ids: Option<Vec<i64>>,
    /// Список ID предметов для фильтрации
    #[serde(rename = "subjectIDs", skip_serializing_if = "Option::is_none")]
    pub subject_ids: Option<Vec<i32>>,
    /// Список брендов для фильтрации
    #[serde(rename = "brandNames", skip_serializing_if = "Option::is_none")]
    pub brand_names: Option<Vec<String>>,
    /// Список ID ярлыков для фильтрации
    #[serde(rename = "tagIDs", skip_serializing_if = "Option::is_none")]
    pub tag_ids: Option<Vec<i64>>,
    #[serde(rename = "currentPeriod")]
    pub current_period: Box<models::PeriodInv>,
    #[serde(rename = "stockType")]
    pub stock_type: models::StockType,
    /// Скрыть удалённые товары
    #[serde(rename = "skipDeletedNm")]
    pub skip_deleted_nm: bool,
}

impl TableShippingOfficeRequest {
    pub fn new(
        current_period: models::PeriodInv,
        stock_type: models::StockType,
        skip_deleted_nm: bool,
    ) -> TableShippingOfficeRequest {
        TableShippingOfficeRequest {
            nm_ids: None,
            subject_ids: None,
            brand_names: None,
            tag_ids: None,
            current_period: Box::new(current_period),
            stock_type,
            skip_deleted_nm,
        }
    }
}