|
11 | 11 | import cn.binarywang.wx.miniapp.bean.delivery.GetOrderResponse; |
12 | 12 | import cn.binarywang.wx.miniapp.bean.delivery.MockUpdateOrderRequest; |
13 | 13 | import cn.binarywang.wx.miniapp.bean.delivery.MockUpdateOrderResponse; |
| 14 | +import cn.binarywang.wx.miniapp.bean.delivery.QueryWaybillTraceRequest; |
| 15 | +import cn.binarywang.wx.miniapp.bean.delivery.QueryWaybillTraceResponse; |
| 16 | +import cn.binarywang.wx.miniapp.bean.delivery.TraceWaybillRequest; |
| 17 | +import cn.binarywang.wx.miniapp.bean.delivery.TraceWaybillResponse; |
14 | 18 | import me.chanjar.weixin.common.error.WxErrorException; |
15 | 19 |
|
16 | 20 | /** |
|
25 | 29 | */ |
26 | 30 | public interface WxMaImmediateDeliveryService { |
27 | 31 |
|
28 | | - /** |
29 | | - * 拉取已绑定账号. |
30 | | - * <pre> |
31 | | - * 文档地址:https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-business/immediateDelivery.getBindAccount.html |
32 | | - * </pre> |
33 | | - * |
34 | | - * @return 响应 |
35 | | - * @throws WxErrorException 异常 |
36 | | - */ |
37 | | - BindAccountResponse getBindAccount() throws WxErrorException; |
| 32 | + /** |
| 33 | + * 拉取已绑定账号. |
| 34 | + * <pre> |
| 35 | + * 文档地址:https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-business/immediateDelivery.getBindAccount.html |
| 36 | + * </pre> |
| 37 | + * |
| 38 | + * @return 响应 |
| 39 | + * @throws WxErrorException 异常 |
| 40 | + */ |
| 41 | + BindAccountResponse getBindAccount() throws WxErrorException; |
38 | 42 |
|
39 | | - /** |
40 | | - * 下配送单接口. |
41 | | - * <pre> |
42 | | - * 文档地址:https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-business/immediateDelivery.addOrder.html |
43 | | - * </pre> |
44 | | - * |
45 | | - * @param request request |
46 | | - * @return 响应 |
47 | | - * @throws WxErrorException 异常 |
48 | | - */ |
49 | | - AddOrderResponse addOrder(AddOrderRequest request) throws WxErrorException; |
| 43 | + /** |
| 44 | + * 下配送单接口. |
| 45 | + * <pre> |
| 46 | + * 文档地址:https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-business/immediateDelivery.addOrder.html |
| 47 | + * </pre> |
| 48 | + * |
| 49 | + * @param request request |
| 50 | + * @return 响应 |
| 51 | + * @throws WxErrorException 异常 |
| 52 | + */ |
| 53 | + AddOrderResponse addOrder(AddOrderRequest request) throws WxErrorException; |
50 | 54 |
|
51 | | - /** |
52 | | - * 拉取配送单信息. |
53 | | - * <pre> |
54 | | - * 商家可使用本接口查询某一配送单的配送状态,便于商家掌握配送情况。 |
55 | | - * 文档地址:https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-business/immediateDelivery.getOrder.html |
56 | | - * </pre> |
57 | | - * |
58 | | - * @param request request |
59 | | - * @return 响应 |
60 | | - * @throws WxErrorException 异常 |
61 | | - */ |
62 | | - GetOrderResponse getOrder(GetOrderRequest request) throws WxErrorException; |
| 55 | + /** |
| 56 | + * 拉取配送单信息. |
| 57 | + * <pre> |
| 58 | + * 商家可使用本接口查询某一配送单的配送状态,便于商家掌握配送情况。 |
| 59 | + * 文档地址:https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-business/immediateDelivery.getOrder.html |
| 60 | + * </pre> |
| 61 | + * |
| 62 | + * @param request request |
| 63 | + * @return 响应 |
| 64 | + * @throws WxErrorException 异常 |
| 65 | + */ |
| 66 | + GetOrderResponse getOrder(GetOrderRequest request) throws WxErrorException; |
63 | 67 |
|
64 | | - /** |
65 | | - * 取消配送单接口. |
66 | | - * <pre> |
67 | | - * 文档地址:https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-business/immediateDelivery.cancelOrder.html |
68 | | - * </pre> |
69 | | - * |
70 | | - * @param request request |
71 | | - * @return 响应 |
72 | | - * @throws WxErrorException 异常 |
73 | | - */ |
74 | | - CancelOrderResponse cancelOrder(CancelOrderRequest request) throws WxErrorException; |
| 68 | + /** |
| 69 | + * 取消配送单接口. |
| 70 | + * <pre> |
| 71 | + * 文档地址:https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-business/immediateDelivery.cancelOrder.html |
| 72 | + * </pre> |
| 73 | + * |
| 74 | + * @param request request |
| 75 | + * @return 响应 |
| 76 | + * @throws WxErrorException 异常 |
| 77 | + */ |
| 78 | + CancelOrderResponse cancelOrder(CancelOrderRequest request) throws WxErrorException; |
75 | 79 |
|
76 | | - /** |
77 | | - * 异常件退回商家商家确认收货接口. |
78 | | - * <pre> |
79 | | - * 文档地址:https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-business/immediateDelivery.abnormalConfirm.html |
80 | | - * </pre> |
81 | | - * |
82 | | - * @param request request |
83 | | - * @return 响应 |
84 | | - * @throws WxErrorException 异常 |
85 | | - */ |
86 | | - AbnormalConfirmResponse abnormalConfirm(AbnormalConfirmRequest request) throws WxErrorException; |
| 80 | + /** |
| 81 | + * 异常件退回商家商家确认收货接口. |
| 82 | + * <pre> |
| 83 | + * 文档地址:https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-business/immediateDelivery.abnormalConfirm.html |
| 84 | + * </pre> |
| 85 | + * |
| 86 | + * @param request request |
| 87 | + * @return 响应 |
| 88 | + * @throws WxErrorException 异常 |
| 89 | + */ |
| 90 | + AbnormalConfirmResponse abnormalConfirm(AbnormalConfirmRequest request) throws WxErrorException; |
| 91 | + |
| 92 | + /** |
| 93 | + * 模拟配送公司更新配送单状态, 该接口只用于沙盒环境,即订单并没有真实流转到运力方. |
| 94 | + * <pre> |
| 95 | + * 文档地址:https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-business/immediateDelivery.mockUpdateOrder.html |
| 96 | + * </pre> |
| 97 | + * |
| 98 | + * @param request request |
| 99 | + * @return 响应 |
| 100 | + * @throws WxErrorException 异常 |
| 101 | + */ |
| 102 | + MockUpdateOrderResponse mockUpdateOrder(MockUpdateOrderRequest request) throws WxErrorException; |
| 103 | + |
| 104 | + |
| 105 | + /** |
| 106 | + * 商户使用此接口向微信提供某交易单号对应的运单号。微信后台会跟踪运单的状态变化 |
| 107 | + * <pre> |
| 108 | + * 文档地址:https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/express/express_search.html |
| 109 | + * </pre> |
| 110 | + * |
| 111 | + * @param request request |
| 112 | + * @return 响应 |
| 113 | + * @throws WxErrorException 异常 |
| 114 | + */ |
| 115 | + TraceWaybillResponse traceWaybill(TraceWaybillRequest request) throws WxErrorException; |
| 116 | + |
| 117 | + |
| 118 | + /** |
| 119 | + * 商户在调用完trace_waybill接口后,可以使用本接口查询到对应运单的详情信息 |
| 120 | + * <pre> |
| 121 | + * 文档地址:https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/express/express_search.html |
| 122 | + * </pre> |
| 123 | + * |
| 124 | + * @param request request |
| 125 | + * @return 响应 |
| 126 | + * @throws WxErrorException 异常 |
| 127 | + */ |
| 128 | + QueryWaybillTraceResponse queryWaybillTrace(QueryWaybillTraceRequest request) |
| 129 | + throws WxErrorException; |
87 | 130 |
|
88 | | - /** |
89 | | - * 模拟配送公司更新配送单状态, 该接口只用于沙盒环境,即订单并没有真实流转到运力方. |
90 | | - * <pre> |
91 | | - * 文档地址:https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-business/immediateDelivery.mockUpdateOrder.html |
92 | | - * </pre> |
93 | | - * |
94 | | - * @param request request |
95 | | - * @return 响应 |
96 | | - * @throws WxErrorException 异常 |
97 | | - */ |
98 | | - MockUpdateOrderResponse mockUpdateOrder(MockUpdateOrderRequest request) throws WxErrorException; |
99 | 131 |
|
100 | 132 | } |
0 commit comments