|
|
@ -57,6 +57,7 @@ public class KYCV3Gateway extends PrivilegedGateway implements KYCV3GatewayInter |
|
|
|
HashMap<String, RequestBody> map = new HashMap<>(); |
|
|
|
map.put("userId", createStringUploadValue(requestBody.getUserId())); |
|
|
|
map.put("type", createStringUploadValue(requestBody.getType())); |
|
|
|
map.put("TrustDocId", createStringUploadValue(requestBody.getTrustDockId())); |
|
|
|
|
|
|
|
|
|
|
|
PersonalInfoDTO personalInfoDTO = requestBody.getPersonalInformation(); |
|
|
@ -74,7 +75,6 @@ public class KYCV3Gateway extends PrivilegedGateway implements KYCV3GatewayInter |
|
|
|
map.put("additionalIdType", createStringUploadValue(personalInfoDTO.getAdditionalIdType())); |
|
|
|
map.put("purposeOfRegistration", createStringUploadValue(personalInfoDTO.getPurposeOfRegistration())); |
|
|
|
map.put("RegistrationType", createStringUploadValue(registrationType)); |
|
|
|
map.put("TrustDocId", createStringUploadValue(requestBody.getTrustDockId())); |
|
|
|
} |
|
|
|
|
|
|
|
File faceImageFile = null; |
|
|
@ -91,8 +91,8 @@ public class KYCV3Gateway extends PrivilegedGateway implements KYCV3GatewayInter |
|
|
|
backIdImageFile = requestBody.getPictures().getBackIdImageFile(); |
|
|
|
// sideIdImageFile = requestBody.getPictures().getSideIdImageFile(); |
|
|
|
additionalIdImageFile = requestBody.getPictures().getAdditionalIdImageFile(); |
|
|
|
for(IDTextDTO item: kycRelatedDataDTO.getAdditionalIdType()){ |
|
|
|
if(item.getId().equalsIgnoreCase(personalInfoDTO.getAdditionalIdType()) && item.getBackRequired()){ |
|
|
|
for (IDTextDTO item : kycRelatedDataDTO.getAdditionalIdType()) { |
|
|
|
if (item.getId().equalsIgnoreCase(personalInfoDTO.getAdditionalIdType()) && item.getBackRequired()) { |
|
|
|
additionalIdBackImageFile = requestBody.getPictures().getAdditionalIdBackImageFile(); |
|
|
|
} |
|
|
|
} |
|
|
@ -168,7 +168,7 @@ public class KYCV3Gateway extends PrivilegedGateway implements KYCV3GatewayInter |
|
|
|
|
|
|
|
kycRelatedDataDTO.setPersonalInformation(mockedPersonalInfo); |
|
|
|
|
|
|
|
PicturesDTO mockedPictures= new PicturesDTO(); |
|
|
|
PicturesDTO mockedPictures = new PicturesDTO(); |
|
|
|
mockedPictures.setIdFront("https://www.whizzprints.com/blogimage/identity-card-78188.png"); |
|
|
|
mockedPictures.setIdBack("https://www.whizzprints.com/blogimage/volunteer-id-card-71891.png"); |
|
|
|
mockedPictures.setIdSide("https://www.whizzprints.com/blogimage/atm-card-72818.png"); |
|
|
@ -189,7 +189,7 @@ public class KYCV3Gateway extends PrivilegedGateway implements KYCV3GatewayInter |
|
|
|
jsonObject.addProperty(Constants.USER_ID_KEY, userId); |
|
|
|
jsonObject.addProperty(Constants.OTP_KEY, OTP); |
|
|
|
jsonObject.addProperty(Constants.REQUEST_FOR_KEY, requestFor); |
|
|
|
return HttpClientV2.getInstance().verifyEmailCode(auth,jsonObject); |
|
|
|
return HttpClientV2.getInstance().verifyEmailCode(auth, jsonObject); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
@ -207,16 +207,16 @@ public class KYCV3Gateway extends PrivilegedGateway implements KYCV3GatewayInter |
|
|
|
|
|
|
|
@Override |
|
|
|
public Observable<ResponseBody> agreeToUserTermsAndConditions(String basicAuth, String userID, String agreed) { |
|
|
|
return HttpClientV2.getInstance().agreeToTermsAndCondition(basicAuth,userID,agreed); |
|
|
|
return HttpClientV2.getInstance().agreeToTermsAndCondition(basicAuth, userID, agreed); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public Observable<ResponseBody> getKycSettings(String auth, JsonObject jsonObject) { |
|
|
|
return HttpClientV2.getInstance().getKycSetting(auth , jsonObject); |
|
|
|
return HttpClientV2.getInstance().getKycSetting(auth, jsonObject); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public Observable<ResponseBody> saveKycSettings(String auth, JsonObject jsonObject) { |
|
|
|
return HttpClientV2.getInstance().saveKycSetting(auth , jsonObject); |
|
|
|
return HttpClientV2.getInstance().saveKycSetting(auth, jsonObject); |
|
|
|
} |
|
|
|
} |