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 PddOverseaDeclarationFailNotify {
    
    /// 1-超过购买额度,2-清关异常(如重量超标、退运、扣留等)
    #[serde(rename = "fail_reason")]
    pub fail_reason: Option<i32>,
    
    /// 订单号
    #[serde(rename = "order_sn")]
    pub order_sn: Option<String>,
    
}


impl Request for PddOverseaDeclarationFailNotify {
    fn get_type() -> String {
        "pdd.oversea.declaration.fail.notify".to_string()
    }

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