zhaojs
2023-09-27 74098f1401afe40f961d1d167bb18dd0a71c4d59
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
using AlibabaSDK.Api;
using AlibabaSDK.Response;
using System;
using System.Collections.Generic;
using System.Text;
 
namespace AlibabaSDK.Request
{
    public class AlibabaTradeCancelRequest : IAlibabaApiRequest<AlibabaTradeCancelResponse>
    {
        public object ErrorObj()
        {
            return new AlibabaTradeCancelResponse();
        }
 
        public string GetApiName()
        {
            return "/param2/1/com.alibaba.trade/alibaba.trade.cancel";
        }
 
        public Dictionary<string, object> GetParameters()
        {
            Dictionary<string, object> dic = new Dictionary<string, object>();
            dic.Add("webSite", webSite);
            dic.Add("tradeID", tradeID);
            dic.Add("cancelReason", cancelReason);
           // dic.Add("remark", remark);
            return dic;
        }
        /// <summary>
        /// 站点信息,指定调用的API是属于国际站(alibaba)还是1688网站(1688)
        /// </summary>
        public string webSite { get; set; }
        /// <summary>
        /// 交易id,订单号
        /// </summary>
        public string tradeID { get; set; }
        /// <summary>
        /// 原因描述;buyerCancel:买家取消订单;sellerGoodsLack:卖家库存不足;other:其它
        /// </summary>
        public string cancelReason { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string remark { get; set; }
 
        public void Validate()
        {
            
        }
    }
}