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
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
 
namespace Operater.DTO.System
{
    public class GetRefundListRequest : PageBiz
    {
        public string YzTid { get; set; }
 
        public string YzRefundId { get; set; }
 
        public string YzOid { get; set; }
 
        /// <summary>
        ///有赞关联状态0:1688未提交申请 1:1688已提交申请 2:1688已处理退款
        /// </summary>
        public int RelationType { get; set; }
 
        /// <summary>
        /// 有赞订单退款状态
        /// </summary>
        public string YzRefundStatus { get; set; }
 
        public string AliTradeStatus { get; set; }
 
    }
    public class AliApplyForRequest
    {
        /// <summary>
        /// 退款id
        /// </summary>
        public string RefundId { get; set; }
        /// <summary>
        /// 退款:"refund"; 退款退货:"returnRefund"
        /// </summary>
        public string disputeRequest { get; set; }
        /// <summary>
        /// 退款金额。不大于实际付款金额;等待卖家发货时,必须为商品的实际付款金额。
        /// </summary>
        public decimal applyPayment { get; set; }
 
        /// <summary>
        /// 运费
        /// </summary>
        public decimal applyCarriage { get; set; }
 
        /// <summary>
        /// 退款原因id
        /// </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; }
 
        public string YzToken { get; set; }
 
        public string AliToken { get; set; }
    }
 
    public class AgressRefundPriceRequest
    {
 
        /// <summary>
        /// 退款id
        /// </summary>
        public string refundId { get; set; }
        /// <summary>
        /// 退款:"refund"; 退款退货:"returnRefund"
        /// </summary>
        public string disputeRequest { get; set; }
        /// <summary>
        /// 退款金额。不大于实际付款金额;等待卖家发货时,必须为商品的实际付款金额。
        /// </summary>
        public decimal applyPayment { get; set; }
 
        /// <summary>
        /// 运费
        /// </summary>
        public decimal applyCarriage { get; set; }
 
        /// <summary>
        /// 退款原因id
        /// </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 int count { get; set; }
 
        public string YzToken { get; set; }
 
        public string AliToken { get; set; }
 
        public string name { get; set; }
 
        public string mobile { get; set; }
 
        public string address { get; set; }
    }
 
    public class CreateRefundResponse
    {
        public bool Success { get; set; }
 
        public string ErrorMsg { get; set; }
    }
 
    public class GetRefundAddressResponse : CreateRefundResponse
    {
 
    }
 
    public class ReturnGoodsRequest
    {
        [Required(ErrorMessage = "RefundId不能为空")]
        public string RefundId { get; set; }
 
        public string YzToken { get; set; }
 
        public string AliToken { get; set; }
    }
 
    public class JudgeAliTradeRequest
    {
        [Required(ErrorMessage = "RefundId不能为空")]
        public string RefundId { get; set; }
    }
 
    public class JudgeAliTradeResponse
    {
        /// <summary>
        /// 1688订单是否已创建
        /// </summary>
        public bool IsAliTrade { get; set; }
 
        public bool IsAliTradePay { get; set; }
    }
 
    public class RefuseRefundRequest
    {
        [Required(ErrorMessage = "RefundId不能为空")]
        public string RefundId { get; set; }
 
        [Required(ErrorMessage = "Remark不能为空")]
        public string Remark { get; set; }
    }
 
    public class GetRefundDetailUrlRequest
    {
        [Required(ErrorMessage = "RefundId不能为空")]
        public string RefundId { get; set; }
 
        [Required(ErrorMessage = "TradeId不能为空")]
        public string TradeId { get; set; }
    }
 
    public class GetRefundDetailRequest
    {
        [Required(ErrorMessage = "RefundId不能为空")]
        public string RefundId { get; set; }
    }
 
    public class GetRefundDetailResponse: AgressRefundPriceRequest
    {
       public List<AlibabRefundDetail> ReasonList { get; set; }
 
        public bool IsAliRefund { get; set; }
    }
    public class AlibabRefundDetail
    {
        /// <summary>
        /// 原因id
        /// </summary>
        public long id { get; set; }
        /// <summary>
        /// 原因
        /// </summary>
        public string name { get; set; }
        /// <summary>
        /// 凭证是否必须上传
        /// </summary>
        public bool needVoucher { get; set; }
        /// <summary>
        /// 是否支持退运费
        /// </summary>
        public bool noRefundCarriage { get; set; }
        /// <summary>
        /// 提示
        /// </summary>
        public string tip { get; set; }
    }
 
    public class GetAliRefundDetailRequest
    {
        [Required(ErrorMessage = "RefundId不能为空")]
        public string RefundId { get; set; }
    }
 
    public  class GetAliRefundDetailResponse
    {
        public string Name { get; set; }
 
        public string Mobile { get; set; }
 
        public string Address { get; set; }
    }
}