Browse Source

register changes

new_design
Mohan Shiwakoti 1 year ago
parent
commit
5d77815cc0
  1. 2
      app/src/main/java/com/remit/jmecustomer/features/kyc/newCustomer/gateway/KYCV3Gateway.java
  2. 5
      app/src/main/java/com/remit/jmecustomer/features/registerv3/newcustomer/gateway/NewRegisterV3Gateway.java

2
app/src/main/java/com/remit/jmecustomer/features/kyc/newCustomer/gateway/KYCV3Gateway.java

@ -57,6 +57,7 @@ public class KYCV3Gateway extends PrivilegedGateway implements KYCV3GatewayInter
HashMap<String, RequestBody> map = new HashMap<>(); HashMap<String, RequestBody> map = new HashMap<>();
map.put("userId", createStringUploadValue(requestBody.getUserId())); map.put("userId", createStringUploadValue(requestBody.getUserId()));
map.put("type", createStringUploadValue(requestBody.getType())); map.put("type", createStringUploadValue(requestBody.getType()));
map.put("TrustDocId", createStringUploadValue(requestBody.getTrustDockId()));
PersonalInfoDTO personalInfoDTO = requestBody.getPersonalInformation(); PersonalInfoDTO personalInfoDTO = requestBody.getPersonalInformation();
@ -74,7 +75,6 @@ public class KYCV3Gateway extends PrivilegedGateway implements KYCV3GatewayInter
map.put("additionalIdType", createStringUploadValue(personalInfoDTO.getAdditionalIdType())); map.put("additionalIdType", createStringUploadValue(personalInfoDTO.getAdditionalIdType()));
map.put("purposeOfRegistration", createStringUploadValue(personalInfoDTO.getPurposeOfRegistration())); map.put("purposeOfRegistration", createStringUploadValue(personalInfoDTO.getPurposeOfRegistration()));
map.put("RegistrationType", createStringUploadValue(registrationType)); map.put("RegistrationType", createStringUploadValue(registrationType));
map.put("TrustDocId", createStringUploadValue(requestBody.getTrustDockId()));
} }
File faceImageFile = null; File faceImageFile = null;

5
app/src/main/java/com/remit/jmecustomer/features/registerv3/newcustomer/gateway/NewRegisterV3Gateway.java

@ -1,5 +1,7 @@
package com.remit.jmecustomer.features.registerv3.newcustomer.gateway; package com.remit.jmecustomer.features.registerv3.newcustomer.gateway;
import static com.remit.jmecustomer.utils.Constants.FOREIGNER_TYPE;
import android.annotation.SuppressLint; import android.annotation.SuppressLint;
import android.content.Context; import android.content.Context;
@ -59,8 +61,9 @@ public class NewRegisterV3Gateway extends PrivilegedGateway implements NewRegist
@Override @Override
public Observable<ResponseBody> validateParameters(String userID, String fullName, String dob) { public Observable<ResponseBody> validateParameters(String userID, String fullName, String dob) {
String selectedNationality = RemitApplication.getStorage().getString(PrefKeys.SELECTED_NATIONALITY, "");
JsonObject jsonObject = new JsonObject(); JsonObject jsonObject = new JsonObject();
jsonObject.addProperty("IdType", "residenceId");
jsonObject.addProperty("IdType", selectedNationality.equalsIgnoreCase(FOREIGNER_TYPE) ? "RESIDENCE" : "DRIVING_LICENCE");
jsonObject.addProperty("IdNumber", userID); jsonObject.addProperty("IdNumber", userID);
jsonObject.addProperty("FullName", fullName); jsonObject.addProperty("FullName", fullName);
jsonObject.addProperty("DOB", dob); jsonObject.addProperty("DOB", dob);

Loading…
Cancel
Save