-
-
Notifications
You must be signed in to change notification settings - Fork 9.1k
Expand file tree
/
Copy pathWxChannelAfterSaleService.java
More file actions
249 lines (224 loc) · 8.26 KB
/
Copy pathWxChannelAfterSaleService.java
File metadata and controls
249 lines (224 loc) · 8.26 KB
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
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
package me.chanjar.weixin.channel.api;
import java.util.List;
import me.chanjar.weixin.channel.bean.after.*;
import me.chanjar.weixin.channel.bean.base.WxChannelBaseResponse;
import me.chanjar.weixin.channel.bean.complaint.ComplaintOrderResponse;
import me.chanjar.weixin.common.error.WxErrorException;
/**
* 视频号小店 售后服务接口
*
* @author <a href="https://github.com/lixize">Zeyes</a>
*/
public interface WxChannelAfterSaleService {
/**
* 获取售后单列表
*
* @param beginCreateTime 订单创建启始时间 unix时间戳
* @param endCreateTime 订单创建结束时间,end_create_time减去begin_create_time不得大于24小时
* @param nextKey 翻页参数,从第二页开始传,来源于上一页的返回值
* @return 售后单列表
*
* @throws WxErrorException 异常
* @deprecated 使用 {@link WxChannelAfterSaleService#listIds(AfterSaleListParam)}
*/
@Deprecated
AfterSaleListResponse listIds(Long beginCreateTime, Long endCreateTime, String nextKey)
throws WxErrorException;
/**
* 获取售后单列表
*
* @param param 参数
* @return 售后单列表
*
* @throws WxErrorException 异常
*/
AfterSaleListResponse listIds(AfterSaleListParam param) throws WxErrorException;
/**
* 获取售后单详情
*
* @param afterSaleOrderId 售后单号
* @return 售后单信息
*
* @throws WxErrorException 异常
*/
AfterSaleInfoResponse get(String afterSaleOrderId) throws WxErrorException;
/**
* 同意售后
* 文档地址 https://developers.weixin.qq.com/doc/channels/API/aftersale/acceptapply.html
*
* @param afterSaleOrderId 售后单号
* @param addressId 同意退货时传入地址id
* @param acceptType 1. 同意退货退款,并通知用户退货; 2. 确认收到货并退款给用户。 如果不填则将根据当前的售后单状态自动选择相应操作。对于仅退款的情况,由于只存在一种同意的场景,无需填写此字段。
* @return BaseResponse
*
* @throws WxErrorException 异常
*/
WxChannelBaseResponse accept(String afterSaleOrderId, String addressId, Integer acceptType) throws WxErrorException;
/**
* 拒绝售后
* 文档地址 https://developers.weixin.qq.com/doc/channels/API/aftersale/rejectapply.html
*
* @param afterSaleOrderId 售后单号
* @param rejectReason 拒绝原因
* @param rejectReasonType 拒绝原因枚举值
* @see #getRejectReason()
* @return BaseResponse
*
* @throws WxErrorException 异常
*/
WxChannelBaseResponse reject(String afterSaleOrderId, String rejectReason, Integer rejectReasonType) throws WxErrorException;
/**
* 上传退款凭证
*
* @param afterSaleOrderId 售后单号
* @param desc 退款凭证描述
* @param certificates 退款凭证图片列表
* @return BaseResponse
*
* @throws WxErrorException 异常
*/
WxChannelBaseResponse uploadRefundEvidence(String afterSaleOrderId, String desc, List<String> certificates)
throws WxErrorException;
/**
* 商家补充纠纷单留言
*
* @param complaintId 纠纷单号
* @param content 留言内容,最多500字
* @param mediaIds 图片media_id列表,所有留言总图片数量最多20张
* @return BaseResponse
*
* @throws WxErrorException 异常
*/
WxChannelBaseResponse addComplaintMaterial(String complaintId, String content, List<String> mediaIds)
throws WxErrorException;
/**
* 商家举证
*
* @param complaintId 纠纷单号
* @param content 举证内容,最多500字
* @param mediaIds 图片media_id列表,所有留言总图片数量最多20张
* @return BaseResponse
*
* @throws WxErrorException 异常
*/
WxChannelBaseResponse addComplaintEvidence(String complaintId, String content, List<String> mediaIds)
throws WxErrorException;
/**
* 获取纠纷单
*
* @param complaintId 纠纷单号
* @return BaseResponse
*
* @throws WxErrorException 异常
*/
ComplaintOrderResponse getComplaint(String complaintId) throws WxErrorException;
/**
* 获取全量售后原因
* 文档地址:https://developers.weixin.qq.com/doc/channels/API/aftersale/getaftersalereason.html
*
* @return 售后原因
*
* @throws WxErrorException 异常
*/
AfterSaleReasonResponse getAllReason() throws WxErrorException;
/**
* 获取拒绝售后原因
* 文档地址:https://developers.weixin.qq.com/doc/channels/API/aftersale/getrejectreason.html
*
* @return 拒绝售后原因
*
* @throws WxErrorException 异常
*/
AfterSaleRejectReasonResponse getRejectReason() throws WxErrorException;
/**
* 换货发货
* 文档地址:https://developers.weixin.qq.com/doc/store/shop/API/channels-shop-aftersale/api_acceptexchangereship.html
*
* @param afterSaleOrderId 售后单号
* @param waybillId 快递单号
* @param deliveryId 快递公司id
* @return BaseResponse
*
* @throws WxErrorException 异常
*/
WxChannelBaseResponse acceptExchangeReship(String afterSaleOrderId, String waybillId, String deliveryId) throws WxErrorException;
/**
* 换货拒绝发货
* 文档地址:https://developers.weixin.qq.com/doc/store/shop/API/channels-shop-aftersale/api_rejectexchangereship.html
*
* @param afterSaleOrderId 售后单号
* @param rejectReason 拒绝原因具体描述 ,可使用默认描述,也可以自定义描述
* @param rejectReasonType 拒绝原因枚举值
* @param rejectCertificates 退款凭证,可使用图片上传接口获取media_id(数据类型填0)
* @return BaseResponse
*
* @throws WxErrorException 异常
*/
WxChannelBaseResponse rejectExchangeReship(String afterSaleOrderId, String rejectReason, Integer rejectReasonType, List<String> rejectCertificates) throws WxErrorException;
/**
* 商家协商
* 文档地址:https://developers.weixin.qq.com/doc/store/shop/API/channels-shop-aftersale/api_merchantupdateaftersale.html
* @param param 参数
* @return BaseResponse
*
* @throws WxErrorException 异常
*/
WxChannelBaseResponse merchantUpdateAfterSale(AfterSaleMerchantUpdateParam param) throws WxErrorException;
/**
* 商家获取保障单列表
* 文档地址:https://developers.weixin.qq.com/doc/channels/API/channels-shop-aftersale/guarantee/api_searchguaranteeorder
*
* @param param 参数
* @return 保障单列表
*
* @throws WxErrorException 异常
*/
GuaranteeOrderListResponse listGuaranteeOrder(GuaranteeOrderListParam param) throws WxErrorException;
/**
* 获取保障单详情
* 文档地址:https://developers.weixin.qq.com/doc/channels/API/channels-shop-aftersale/guarantee/api_getguaranteeorder
*
* @param guaranteeOrderId 保障单号
* @return 保障单详情
*
* @throws WxErrorException 异常
*/
GuaranteeOrderInfo getGuaranteeOrder(String guaranteeOrderId) throws WxErrorException;
/**
* 商家同意保障单申请
* 文档地址:https://developers.weixin.qq.com/doc/channels/API/channels-shop-aftersale/guarantee/api_merchantacceptguarantee
*
* @param guaranteeOrderId 保障单号
*
* @throws WxErrorException 异常
*/
void acceptGuarantee(String guaranteeOrderId) throws WxErrorException;
/**
* 商家协商保障单
* 文档地址:https://developers.weixin.qq.com/doc/channels/API/channels-shop-aftersale/guarantee/api_merchantmodifyguarantee
*
* @param req 参数
*
* @throws WxErrorException 异常
*/
void modifyGuarantee(GuaranteeModifyRequest req) throws WxErrorException;
/**
* 商家举证保障单
* 文档地址:https://developers.weixin.qq.com/doc/channels/API/channels-shop-aftersale/guarantee/api_merchantproofguarantee
*
* @param req 参数
*
* @throws WxErrorException 异常
*/
void proofGuarantee(GuaranteeProofRequest req) throws WxErrorException;
/**
* 商家拒绝保障单申请
* 文档地址:https://developers.weixin.qq.com/doc/channels/API/channels-shop-aftersale/guarantee/api_merchantrefuseguarantee
*
* @param guaranteeOrderId 保障单号
* @param reason 拒绝原因
*
* @throws WxErrorException 异常
*/
void refuseGuarantee(String guaranteeOrderId, String reason) throws WxErrorException;
}