use crate::Request;
use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize, Debug, Default)]
pub struct Value {
#[serde(rename = "key")]
pub key: Option<String>,
#[serde(rename = "value")]
pub value: Option<Vec<String>>,
}
#[derive(Serialize, Deserialize, Debug, Default)]
pub struct DepotRegion {
#[serde(rename = "key")]
pub key: Option<String>,
#[serde(rename = "value")]
pub value: Option<Value>,
}
#[derive(Serialize, Deserialize, Debug, Default)]
pub struct PddExpressAddDepot {
#[serde(rename = "contact_name")]
pub contact_name: Option<String>,
#[serde(rename = "depot_address")]
pub depot_address: Option<String>,
#[serde(rename = "depot_alias")]
pub depot_alias: Option<String>,
#[serde(rename = "depot_city_id")]
pub depot_city_id: Option<i32>,
#[serde(rename = "depot_code")]
pub depot_code: Option<String>,
#[serde(rename = "depot_district_id")]
pub depot_district_id: Option<i32>,
#[serde(rename = "depot_name")]
pub depot_name: Option<String>,
#[serde(rename = "depot_province_id")]
pub depot_province_id: Option<i32>,
#[serde(rename = "depot_region")]
pub depot_region: Option<DepotRegion>,
#[serde(rename = "telephone")]
pub telephone: Option<String>,
#[serde(rename = "zip_code")]
pub zip_code: Option<String>,
}
impl Request for PddExpressAddDepot {
fn get_type() -> String {
"pdd.express.add.depot".to_string()
}
fn get_response_name() -> String {
"open_api_response".to_string()
}
}