use crate::Request;
use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize, Debug, Default)]
pub struct PddStockWareCreate {
#[serde(rename = "ware_type")]
pub ware_type: Option<i32>,
#[serde(rename = "ware_infos")]
pub ware_infos: Option<Vec<WareInfos>>,
#[serde(rename = "ware_sn")]
pub ware_sn: Option<String>,
#[serde(rename = "ware_name")]
pub ware_name: Option<String>,
#[serde(rename = "note")]
pub note: Option<String>,
#[serde(rename = "service_quality")]
pub service_quality: Option<i32>,
#[serde(rename = "volume")]
pub volume: Option<i32>,
#[serde(rename = "length")]
pub length: Option<i32>,
#[serde(rename = "width")]
pub width: Option<i32>,
#[serde(rename = "height")]
pub height: Option<i32>,
#[serde(rename = "weight")]
pub weight: Option<i32>,
#[serde(rename = "gross_weight")]
pub gross_weight: Option<i32>,
#[serde(rename = "net_weight")]
pub net_weight: Option<i32>,
#[serde(rename = "tare_weight")]
pub tare_weight: Option<i32>,
#[serde(rename = "price")]
pub price: Option<i32>,
#[serde(rename = "color")]
pub color: Option<String>,
#[serde(rename = "packing")]
pub packing: Option<String>,
}
#[derive(Serialize, Deserialize, Debug, Default)]
pub struct WareInfos {
#[serde(rename = "ware_quantity")]
pub ware_quantity: Option<i32>,
#[serde(rename = "ware_id")]
pub ware_id: Option<i64>,
}
impl Request for PddStockWareCreate {
fn get_type() -> String {
"pdd.stock.ware.create".to_string()
}
fn get_response_name() -> String {
"open_api_response".to_string()
}
}