heyuntao
2023-05-04 fbd6a11a99051f425640bf352842f4a0ecaa7a4d
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
using AlibabaSDK.Api;
using AlibabaSDK.Response;
using System;
using System.Collections.Generic;
using System.Text;
 
namespace AlibabaSDK.Request
{
    public class AlibabaCreateRefundRequest : IAlibabaApiRequest<AlibabaCreateRefundResponse>
    {
        public object ErrorObj()
        {
            return new AlibabaCreateRefundResponse();
        }
 
        public string GetApiName()
        {
            return "/param2/1/com.alibaba.trade/alibaba.trade.createRefund";
        }
 
        public Dictionary<string, object> GetParameters()
        {
            Dictionary<string, object> dic = new Dictionary<string, object>();
            dic.Add("orderId", orderId);
            dic.Add("orderEntryIds", orderEntryIds);
            dic.Add("disputeRequest", disputeRequest);
            dic.Add("applyPayment", applyPayment);
            dic.Add("applyCarriage", applyCarriage);
            dic.Add("applyReasonId", applyReasonId);
            dic.Add("description", description);
            dic.Add("goodsStatus", goodsStatus);
            return dic;
        }
        /// <summary>
        /// 主订单
        /// </summary>
        public long orderId { get; set; }
        /// <summary>
        /// 子订单
        /// </summary>
        public long orderEntryIds { get; set; }
        /// <summary>
        /// 退款:"refund"; 退款退货:"returnRefund",退款/退款退货。只有已收到货,才可以选择退款退货。
        /// </summary>
        public string disputeRequest { get; set; }
        /// <summary>
        /// 退款金额(单位:分)。不大于实际付款金额;等待卖家发货时,必须为商品的实际付款金额。
        /// </summary>
        public long applyPayment { get; set; }
        /// <summary>
        /// 退运费金额(单位:分)。
        /// </summary>
        public long applyCarriage { get; set; }
        /// <summary>
        /// 退款原因id(从API getRefundReasonList获取)
        /// </summary>
        public long applyReasonId { get; set; }
        /// <summary>
        /// 退款申请理由,2-150字
        /// </summary>
        public string description { get; set; }
        /// <summary>
        /// 售中等待卖家发货:"refundWaitSellerSend"; 售中等待买家收货:"refundWaitBuyerReceive"; 售中已收货(未确认完成交易):"refundBuyerReceived" 售后未收货:"aftersaleBuyerNotReceived"; 售后已收到货:"aftersaleBuyerReceived"
        /// </summary>
        public string goodsStatus { get; set; }
 
        /// <summary>
        /// 子订单退款数量。仅在售中买家已收货(退款退货)时,可指定退货数量;默认,全部退货。
        /// </summary>
        public List<AliRefundOrderEntryCountList> orderEntryCountList { get; set; }
 
        public class AliRefundOrderEntryCountList
        {
            /// <summary>
            /// 子订单id
            /// </summary>
            public long id { get; set; }
 
            /// <summary>
            /// 子订单购买商品数量
            /// </summary>
            public int count { get; set; }
        }
 
 
        public void Validate()
        {
           
        }
    }
}