mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2026-03-10 00:13:40 +08:00
🆕 #3452 【微信支付】新增消费者投诉2.0的更新退款审批结果的接口
This commit is contained in:
@@ -135,6 +135,20 @@ public interface ComplaintService {
|
||||
*/
|
||||
void complete(CompleteRequest request) throws WxPayException;
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 更新退款审批结果API
|
||||
* 针对“申请退款单”,需要商户明确返回是否可退款的审批结果。
|
||||
* 若根据用户描述,核实可以退款,审批动作传入“APPROVE”,同意退款,并给出一个预计退款时间。传入“同意退款”后,需要额外调退款接口发起原路退款。退款到账后,投诉单的状态将自动扭转为“处理完成”。
|
||||
* 若根据用户描述,核实不能退款,审批动作传入“REJECT”,拒绝退款,并说明拒绝退款原因。驳回退款后,投诉单的状态将自动扭转为“处理完成”。
|
||||
* 文档详见: <a href="https://pay.wechatpay.cn/docs/merchant/apis/consumer-complaint/complaints/update-refund-progress.html">...</a>
|
||||
* </pre>
|
||||
*
|
||||
* @param request {@link UpdateRefundProgressRequest} 请求数据
|
||||
* @throws WxPayException the wx pay exception
|
||||
*/
|
||||
void updateRefundProgress(UpdateRefundProgressRequest request) throws WxPayException;
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 商户上传反馈图片API
|
||||
|
||||
@@ -112,6 +112,14 @@ public class ComplaintServiceImpl implements ComplaintService {
|
||||
this.payService.postV3(url, GSON.toJson(request));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateRefundProgress(UpdateRefundProgressRequest request) throws WxPayException {
|
||||
String url = String.format("%s/v3/merchant-service/complaints-v2/%s/update-refund-progress", this.payService.getPayBaseUrl(), request.getComplaintId());
|
||||
// 上面url已经含有complaintId,这里设置为空,避免在body中再次传递,否则微信会报错
|
||||
request.setComplaintId(null);
|
||||
this.payService.postV3(url, GSON.toJson(request));
|
||||
}
|
||||
|
||||
@Override
|
||||
public ImageUploadResult uploadResponseImage(File imageFile) throws WxPayException, IOException {
|
||||
String url = String.format("%s/v3/merchant-service/images/upload", this.payService.getPayBaseUrl());
|
||||
|
||||
Reference in New Issue
Block a user