forked from binarywang/WxJava
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWxChannelAfterSaleService.java
More file actions
139 lines (125 loc) · 4.57 KB
/
WxChannelAfterSaleService.java
File metadata and controls
139 lines (125 loc) · 4.57 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
package me.chanjar.weixin.channel.api;
import java.util.List;
import me.chanjar.weixin.channel.bean.after.AfterSaleInfoResponse;
import me.chanjar.weixin.channel.bean.after.AfterSaleListResponse;
import me.chanjar.weixin.channel.bean.after.AfterSaleReasonResponse;
import me.chanjar.weixin.channel.bean.after.AfterSaleRejectReasonResponse;
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 异常
*/
AfterSaleListResponse listIds(Long beginCreateTime, Long endCreateTime, String nextKey)
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;
}