检查aps费率配置;卡支付合同修改

master
dalong306 3 years ago
parent 45119c6e8e
commit 1a6f0cd5ca

@ -9,7 +9,7 @@
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>manage</artifactId>
<version>2.4.14</version>
<version>2.4.15</version>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jib-maven-plugin.version>2.4.0</jib-maven-plugin.version>

@ -4695,6 +4695,9 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
if (rate == null) {
throw new BadRequestException("The Partner's Rate is not config!");
}
checkChannelRate(client,PayChannel.ALIPAY_APS_IN_STORE.getChannelCode());
checkChannelRate(client,PayChannel.ALIPAY_APS_CASHIER.getChannelCode());
List<JSONObject> clientFiles = clientFilesMapper.findClientFile(client.getIntValue("client_id"));
if (clientFiles == null || clientFiles.equals("")) {
throw new BadRequestException("The Compliance File Must Be Uploaded!");
@ -4719,6 +4722,17 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
sendCommissionWechatMessage(client);
}
}
private void checkChannelRate(JSONObject client,String channel){
MerchantChannelPermissionResolver resolver = this.paymentApi.channelApi(channel).getChannelPermissionResolver();
if (!Objects.isNull(resolver) &&
resolver.newOrderEnabled(client, null, PlatformEnvironment.getEnv().getForeignCurrency())
) {
JSONObject rateApsInstore = merchantInfoProvider.clientCurrentRate(client.getIntValue("client_id"), new Date(), channel);
if (rateApsInstore == null) {
throw new BadRequestException("The Partner's "+channel+" Rate is not config!");
}
}
}
@Override
@Transactional
@ -7342,14 +7356,14 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
//装在数据
JSONObject info = new JSONObject();
info.put("down_date", formatter.print(new DateTime()));//下载文件日期
info.put("bussiness_name", (client.containsKey("business_name") ? client.getString("business_name") : legalInfo.getString("representative_person")) + " " + client.getString("abn"));//商圈类型
info.put("bussiness_name", (client.containsKey("company_name") ? client.getString("company_name") : legalInfo.getString("representative_person")) + " " + client.getString("abn"));//商圈类型
info.put("partner_address", client.getString("address"));//商家店铺地址
info.put("partner_country", client.getString("country"));//国家
info.put("partner_state", client.getString("state"));//洲
info.put("partner_bussiness_name", client.getString("business_name"));//商户商用名称
info.put("clean_days", clientRate.getInteger("clean_days"));//T+规则清算天数
info.put("partner_industry_mcc", upayProfileInfo.getString("mw_industry"));//信用卡注册商户行业编码
info.put("legal_bussiness", legalInfo.getString("representative_person") + " AS " + (client.containsKey("business_name") ? client.getString("business_name") : legalInfo.getString("representative_person")) + " ABN " + client.getString("abn"));//拼接规则:法人名 AS 商用名称 ABD 编码
info.put("legal_bussiness", legalInfo.getString("company_name") + " AS " + (client.containsKey("business_name") ? client.getString("business_name") : legalInfo.getString("representative_person")) + " ABN " + client.getString("abn"));//拼接规则:法人名 AS 商用名称 ABD 编码
info.put("annual_rate", cardAnnualRate);//年费率
info.put("cost_per_transaction", clientRate.getString("transaction_fee"));//每次交易成本
String domesticRateValue = cardRate.getString("domestic_rate_value");

@ -1134,7 +1134,7 @@
{
"children": [],
"label": "Digital Goods: Games",
"mccCode": "5816",
"mccCode": " 5816",
"value": "{\"category\":\"OTHER\",\"code\":\"5816\",\"description\":\"Digital Goods: Games\",\"parentCode\":\"D05\"}"
},
{

Loading…
Cancel
Save