mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-19 18:45:03 +08:00
汇付基础响应
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询汇付结算账户信息
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user