mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2026-03-10 00:13:40 +08:00
🆕 #3138 【微信支付】增加接查询结算账户修改申请状态的接口
This commit is contained in:
@@ -71,4 +71,15 @@ public interface Applyment4SubService {
|
||||
*/
|
||||
String modifySettlement(String subMchid, ModifySettlementRequest request) throws WxPayException;
|
||||
|
||||
/**
|
||||
* 查询结算账户修改申请状态
|
||||
* 文档详见:https://pay.weixin.qq.com/docs/partner/apis/modify-settlement/sub-merchants/get-application.html
|
||||
* 接口链接:https://api.mch.weixin.qq.com/v3/apply4sub/sub_merchants/{sub_mchid}/application/{application_no}
|
||||
*
|
||||
* @param subMchid
|
||||
* @param applicationNo
|
||||
* @return
|
||||
* @throws WxPayException
|
||||
*/
|
||||
SettlementApplicationResult settlementApplication(String subMchid, String applicationNo) throws WxPayException;
|
||||
}
|
||||
|
||||
@@ -63,4 +63,11 @@ public class Applyment4SubServiceImpl implements Applyment4SubService {
|
||||
encryptFiled(request);
|
||||
return payService.postV3WithWechatpaySerial(url, GSON.toJson(request));
|
||||
}
|
||||
|
||||
@Override
|
||||
public SettlementApplicationResult settlementApplication(String subMchid, String applicationNo) throws WxPayException {
|
||||
String url = String.format("%s/v3/apply4sub/sub_merchants/%s/application/%s", this.payService.getPayBaseUrl(), subMchid, applicationNo);
|
||||
String result = payService.getV3(url);
|
||||
return GSON.fromJson(result, SettlementApplicationResult.class);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user