Skip to main content

wb_api_client/analytics/models/
table_size_request.rs

1/*
2 * Аналитика и данные
3 *
4 * Узнать больше об аналитике и данных можно в [справочном центре](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)
5 *
6 * The version of the OpenAPI document: analytics
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::analytics::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct TableSizeRequest {
16    /// Артикул WB
17    #[serde(rename = "nmID")]
18    pub nm_id: i64,
19    #[serde(rename = "currentPeriod")]
20    pub current_period: Box<models::PeriodInv>,
21    #[serde(rename = "stockType")]
22    pub stock_type: models::StockType,
23    #[serde(rename = "orderBy")]
24    pub order_by: Box<models::TableOrderBy>,
25    /// Включить детализацию по складам
26    #[serde(rename = "includeOffice")]
27    pub include_office: bool,
28}
29
30impl TableSizeRequest {
31    pub fn new(
32        nm_id: i64,
33        current_period: models::PeriodInv,
34        stock_type: models::StockType,
35        order_by: models::TableOrderBy,
36        include_office: bool,
37    ) -> TableSizeRequest {
38        TableSizeRequest {
39            nm_id,
40            current_period: Box::new(current_period),
41            stock_type,
42            order_by: Box::new(order_by),
43            include_office,
44        }
45    }
46}