|
|
@ -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.core.exceptions.ParamInvalidException;
|
|
|
|
import au.com.royalpay.payment.manage.kyc.core.KycService;
|
|
|
|
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.ClientAuthFilesInfo;
|
|
|
|
import au.com.royalpay.payment.manage.merchants.beans.ClientKycFilesInfo;
|
|
|
|
import au.com.royalpay.payment.manage.merchants.beans.ClientKycFilesInfo;
|
|
|
|
import au.com.royalpay.payment.manage.merchants.beans.ClientRegisterInfo;
|
|
|
|
import au.com.royalpay.payment.manage.merchants.beans.ClientRegisterInfo;
|
|
|
@ -60,6 +61,8 @@ public class PartnerViewController {
|
|
|
|
@Resource
|
|
|
|
@Resource
|
|
|
|
private SignInAccountService signInAccountService;
|
|
|
|
private SignInAccountService signInAccountService;
|
|
|
|
@Resource
|
|
|
|
@Resource
|
|
|
|
|
|
|
|
private ClientComplianceCompanyMapper clientComplianceCompanyMapper;
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
private KycService kycService;
|
|
|
|
private KycService kycService;
|
|
|
|
|
|
|
|
|
|
|
|
@RequestMapping(method = RequestMethod.GET)
|
|
|
|
@RequestMapping(method = RequestMethod.GET)
|
|
|
@ -588,6 +591,19 @@ public class PartnerViewController {
|
|
|
|
clientManager.uploadKycFiles(manager, account.getString("client_moniker"), filesInfo);
|
|
|
|
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)
|
|
|
|
@PartnerMapping(value = "/update/wait_compliance_file", method = RequestMethod.PUT)
|
|
|
|
@ResponseBody
|
|
|
|
@ResponseBody
|
|
|
|
public void updateWaitComplianceFile(@ModelAttribute(CommonConsts.PARTNER_STATUS) JSONObject account, @RequestBody ClientAuthFilesInfo filesInfo) {
|
|
|
|
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)
|
|
|
|
@PartnerMapping(value = "/clientCompliance/{clientMoniker}/viewCommit", method = RequestMethod.POST)
|
|
|
|
@ResponseBody
|
|
|
|
@ResponseBody
|
|
|
|
public void clientComplianceViewCommit(@PathVariable String clientMoniker ,@ModelAttribute(CommonConsts.PARTNER_STATUS) JSONObject account, @RequestBody JSONObject photoInfo) {
|
|
|
|
public void clientComplianceViewCommit(@PathVariable String clientMoniker ,@ModelAttribute(CommonConsts.PARTNER_STATUS) JSONObject account, @RequestBody JSONObject photoInfo) {
|
|
|
|