|
|
|
@ -2,6 +2,7 @@ package au.com.royalpay.payment.manage.merchants.web;
|
|
|
|
|
|
|
|
|
|
import au.com.royalpay.payment.core.exceptions.ParamInvalidException;
|
|
|
|
|
import au.com.royalpay.payment.manage.kyc.core.KycService;
|
|
|
|
|
import au.com.royalpay.payment.manage.mappers.system.ClientComplianceCompanyMapper;
|
|
|
|
|
import au.com.royalpay.payment.manage.merchants.beans.ClientAuthFilesInfo;
|
|
|
|
|
import au.com.royalpay.payment.manage.merchants.beans.ClientKycFilesInfo;
|
|
|
|
|
import au.com.royalpay.payment.manage.merchants.beans.ClientRegisterInfo;
|
|
|
|
@ -60,6 +61,8 @@ public class PartnerViewController {
|
|
|
|
|
@Resource
|
|
|
|
|
private SignInAccountService signInAccountService;
|
|
|
|
|
@Resource
|
|
|
|
|
private ClientComplianceCompanyMapper clientComplianceCompanyMapper;
|
|
|
|
|
@Resource
|
|
|
|
|
private KycService kycService;
|
|
|
|
|
|
|
|
|
|
@RequestMapping(method = RequestMethod.GET)
|
|
|
|
@ -588,6 +591,19 @@ public class PartnerViewController {
|
|
|
|
|
clientManager.uploadKycFiles(manager, account.getString("client_moniker"), filesInfo);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@PartnerMapping(value = "/update/wait_kyc_file", method = RequestMethod.PUT)
|
|
|
|
|
@ResponseBody
|
|
|
|
|
public void updateWaitKycFile(@ModelAttribute(CommonConsts.PARTNER_STATUS) JSONObject account, @RequestBody ClientKycFilesInfo filesInfo) {
|
|
|
|
|
JSONObject KycFilesAuth = clientComplianceCompanyMapper.findKycFileComplete(account.getIntValue("client_id"));
|
|
|
|
|
if (KycFilesAuth == null) {
|
|
|
|
|
JSONObject manager = new JSONObject();
|
|
|
|
|
manager.put("display_name","client");
|
|
|
|
|
clientManager.uploadKycFilesForWaitCompliance(manager, account.getString("client_moniker"), filesInfo);
|
|
|
|
|
}else {
|
|
|
|
|
throw new BadRequestException("已通过审核,暂不能提交和修改");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@PartnerMapping(value = "/update/wait_compliance_file", method = RequestMethod.PUT)
|
|
|
|
|
@ResponseBody
|
|
|
|
|
public void updateWaitComplianceFile(@ModelAttribute(CommonConsts.PARTNER_STATUS) JSONObject account, @RequestBody ClientAuthFilesInfo filesInfo) {
|
|
|
|
@ -602,7 +618,6 @@ public class PartnerViewController {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@PartnerMapping(value = "/clientCompliance/{clientMoniker}/viewCommit", method = RequestMethod.POST)
|
|
|
|
|
@ResponseBody
|
|
|
|
|
public void clientComplianceViewCommit(@PathVariable String clientMoniker ,@ModelAttribute(CommonConsts.PARTNER_STATUS) JSONObject account, @RequestBody JSONObject photoInfo) {
|
|
|
|
|