use crate::Request;
use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize, Debug, Default)]
pub struct ParamList {
#[serde(rename = "object_id")]
pub object_id: Option<String>,
#[serde(rename = "waybill_code")]
pub waybill_code: Option<String>,
#[serde(rename = "wp_code")]
pub wp_code: Option<String>,
}
#[derive(Serialize, Deserialize, Debug, Default)]
pub struct PddWaybillQueryByWaybillcode {
#[serde(rename = "param_list")]
pub param_list: Option<Vec<ParamList>>,
}
impl Request for PddWaybillQueryByWaybillcode {
fn get_type() -> String {
"pdd.waybill.query.by.waybillcode".to_string()
}
fn get_response_name() -> String {
"pdd_waybill_query_by_waybillcode_response".to_string()
}
}