1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
use crate::Request;

use serde::{Deserialize, Serialize};


/// 商家取消获取的电子面单号
#[derive(Serialize, Deserialize, Debug, Default)]
pub struct PddWaybillCancel {
    
    /// 电子面单号
    #[serde(rename = "waybill_code")]
    pub waybill_code: Option<String>,
    
    /// 快递公司code
    #[serde(rename = "wp_code")]
    pub wp_code: Option<String>,
    
}


impl Request for PddWaybillCancel {
    fn get_type() -> String {
        "pdd.waybill.cancel".to_string()
    }

    fn get_response_name() -> String {
        "pdd_waybill_cancel_response".to_string()
    }
}