汇付基础响应

This commit is contained in:
2023-08-21 13:51:14 +08:00
parent 68444ebc23
commit 2d48f50fdf

View File

@@ -403,6 +403,24 @@ public class AdapayService {
return corpMemberVO;
}
/**
* 删除结算账户对象
* 企业用户更新银行卡信息时调用,先删除后新建
*/
public void createDeleteSettleAccount(String adapayMemberId, String settleAccountId, String wechatAppId) throws BaseAdaPayException {
// 获取汇付支付配置
AbstractAdapayConfig config = AdapayConfigFactory.getConfig(wechatAppId);
if (config == null) {
throw new BusinessException(ReturnCodeEnum.CODE_ADAPAY_CONFIG_IS_NULL_ERROR);
}
Map<String, Object> settleCountParams = Maps.newHashMap();
settleCountParams.put("settle_account_id", settleAccountId);
settleCountParams.put("member_id", adapayMemberId);
settleCountParams.put("app_id", config.getAdapayAppId());
Map<String, Object> settleCount = SettleAccount.delete(settleCountParams);
}
/**
* 查询汇付结算账户信息
*/