use crate::Request;
use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize, Debug, Default)]
pub struct PddOpenMsgServiceSendExpressMsg {
#[serde(rename = "out_id")]
pub out_id: Option<String>,
#[serde(rename = "sign_name")]
pub sign_name: Option<String>,
#[serde(rename = "sms_up_extend_code")]
pub sms_up_extend_code: Option<String>,
#[serde(rename = "template_code")]
pub template_code: Option<i64>,
#[serde(rename = "template_param_json")]
pub template_param_json: Option<TemplateParamJson>,
#[serde(rename = "waybill_codes")]
pub waybill_codes: Option<Vec<String>>,
#[serde(rename = "wp_code")]
pub wp_code: Option<String>,
}
#[derive(Serialize, Deserialize, Debug, Default)]
pub struct TemplateParamJson {
#[serde(rename = "$key")]
pub key: Option<String>,
#[serde(rename = "$value")]
pub value: Option<String>,
}
impl Request for PddOpenMsgServiceSendExpressMsg {
fn get_type() -> String {
"pdd.open.msg.service.send.express.msg".to_string()
}
fn get_response_name() -> String {
"biz_id".to_string()
}
}