File tree Expand file tree Collapse file tree 1 file changed +33
-4
lines changed
weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api Expand file tree Collapse file tree 1 file changed +33
-4
lines changed Original file line number Diff line number Diff line change 5
5
import me .chanjar .weixin .common .error .WxErrorException ;
6
6
7
7
/**
8
- * 退货组件
8
+ * 微信小程序物流退货组件接口。
9
+ * 用于处理退货单相关操作,包括新增、查询和取消退货单。
10
+ * 文档:https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/express/express.html
11
+ *
9
12
*/
10
13
public interface WxMaExpressDeliveryReturnService {
11
14
12
- /**
13
- * 获取支持的快递公司列表
14
- */
15
+ /** 新增退货单接口地址 */
15
16
String ADD_DELIVERY_RETURN_URL = "https://api.weixin.qq.com/cgi-bin/express/delivery/return/add" ;
17
+ /** 获取退货单接口地址 */
16
18
String GET_DELIVERY_RETURN_URL = "https://api.weixin.qq.com/cgi-bin/express/delivery/return/get" ;
19
+ /** 取消退货单接口地址 */
17
20
String UNBIND_DELIVERY_RETURN_URL = "https://api.weixin.qq.com/cgi-bin/express/delivery/return/unbind" ;
18
21
22
+ /**
23
+ * 新增退货单。
24
+ * 用于创建新的退货单,返回退货单信息。
25
+ *
26
+ * @param wxMaExpressDeliveryReturnAddRequest 退货单新增请求对象
27
+ * @return 退货单信息结果
28
+ * @throws WxErrorException 新增失败时抛出
29
+ */
19
30
WxMaExpressReturnInfoResult addDeliveryReturn (WxMaExpressDeliveryReturnAddRequest wxMaExpressDeliveryReturnAddRequest ) throws WxErrorException ;
31
+
32
+ /**
33
+ * 获取退货单信息。
34
+ * 根据退货单ID查询退货单的详细信息。
35
+ *
36
+ * @param returnId 退货单ID
37
+ * @return 退货单信息结果
38
+ * @throws WxErrorException 获取失败时抛出
39
+ */
20
40
WxMaExpressReturnInfoResult getDeliveryReturn (String returnId ) throws WxErrorException ;
41
+
42
+ /**
43
+ * 取消退货单。
44
+ * 取消指定的退货单,取消后的退货单将无法继续使用。
45
+ *
46
+ * @param returnId 退货单ID
47
+ * @return 操作结果
48
+ * @throws WxErrorException 取消失败时抛出
49
+ */
21
50
WxMaExpressReturnInfoResult unbindDeliveryReturn (String returnId ) throws WxErrorException ;
22
51
}
You can’t perform that action at this time.
0 commit comments