Browse Source

Account Id key added to kftc account

master
preyearegmi 6 years ago
parent
commit
0c5d7c997a
  1. 21
      app/src/main/java/com/gmeremit/online/gmeremittance_native/autodebitV2/model/autodebitaccountlisting/AutoDebitAccount.java
  2. 8
      app/src/main/java/com/gmeremit/online/gmeremittance_native/homeV2/presenter/HomeV2Presenter.java
  3. 3
      app/src/main/java/com/gmeremit/online/gmeremittance_native/sendmoneyV2/gateway/SendMoneyV2Gateway.java
  4. 50
      app/src/main/java/com/gmeremit/online/gmeremittance_native/sendmoneyV2/model/SendMoneyAPIRequestBody.java
  5. 5
      app/src/main/java/com/gmeremit/online/gmeremittance_native/sendmoneyV2/presenter/SendMoneyV2Presenter.java

21
app/src/main/java/com/gmeremit/online/gmeremittance_native/autodebitV2/model/autodebitaccountlisting/AutoDebitAccount.java

@ -70,6 +70,17 @@ public class AutoDebitAccount implements Parcelable {
@SerializedName("AutoDebit") @SerializedName("AutoDebit")
@Expose @Expose
private String autoDebit; private String autoDebit;
@SerializedName("KftcAccountId")
@Expose
private String kftcAccountId;
public String getKftcAccountId() {
return kftcAccountId;
}
public void setKftcAccountId(String kftcAccountId) {
this.kftcAccountId = kftcAccountId;
}
public String getErrorCode() { public String getErrorCode() {
return errorCode; return errorCode;
@ -239,6 +250,9 @@ public class AutoDebitAccount implements Parcelable {
this.autoDebit = autoDebit; this.autoDebit = autoDebit;
} }
public AutoDebitAccount() {
}
@Override @Override
public int describeContents() { public int describeContents() {
return 0; return 0;
@ -267,9 +281,7 @@ public class AutoDebitAccount implements Parcelable {
dest.writeString(this.accHolderInfo); dest.writeString(this.accHolderInfo);
dest.writeString(this.walletName); dest.writeString(this.walletName);
dest.writeString(this.autoDebit); dest.writeString(this.autoDebit);
}
public AutoDebitAccount() {
dest.writeString(this.kftcAccountId);
} }
protected AutoDebitAccount(Parcel in) { protected AutoDebitAccount(Parcel in) {
@ -294,9 +306,10 @@ public class AutoDebitAccount implements Parcelable {
this.accHolderInfo = in.readString(); this.accHolderInfo = in.readString();
this.walletName = in.readString(); this.walletName = in.readString();
this.autoDebit = in.readString(); this.autoDebit = in.readString();
this.kftcAccountId = in.readString();
} }
public static final Parcelable.Creator<AutoDebitAccount> CREATOR = new Parcelable.Creator<AutoDebitAccount>() {
public static final Creator<AutoDebitAccount> CREATOR = new Creator<AutoDebitAccount>() {
@Override @Override
public AutoDebitAccount createFromParcel(Parcel source) { public AutoDebitAccount createFromParcel(Parcel source) {
return new AutoDebitAccount(source); return new AutoDebitAccount(source);

8
app/src/main/java/com/gmeremit/online/gmeremittance_native/homeV2/presenter/HomeV2Presenter.java

@ -89,13 +89,7 @@ public class HomeV2Presenter extends BasePresenter implements HomeV2PresenterInt
public void manuallyUpdateKYCForStatusToSubmitted() { public void manuallyUpdateKYCForStatusToSubmitted() {
String kycMessage = "Your registration request is in approval process. You will soon be able to use GME services."; String kycMessage = "Your registration request is in approval process. You will soon be able to use GME services.";
String kycTitle = "Verification in Process"; String kycTitle = "Verification in Process";
// String pennyTestTitle = "Verify your Bank Account";
// String pennyTestMessage = "Please complete your primary bank account verification process.";
// view.showPennyTestViewIfRequired(true,pennyTestTitle,pennyTestMessage);
view.showKYCVerifiedIfRequired(true, kycMessage, kycTitle, true, null); view.showKYCVerifiedIfRequired(true, kycMessage, kycTitle, true, null);
// gateway.updateSubmittedKycInCache(true);
// gateway.updateVerifiedUserInCache(false);
} }
@Override @Override
@ -105,8 +99,6 @@ public class HomeV2Presenter extends BasePresenter implements HomeV2PresenterInt
String pennyTestTitle = "Continue the registration process"; String pennyTestTitle = "Continue the registration process";
String pennyTestMessage = "Please verify your primary bank account to complete the registration."; String pennyTestMessage = "Please verify your primary bank account to complete the registration.";
view.showKYCVerifiedIfRequired(false, "", "", true, () -> view.showPennyTestViewIfRequired(true, pennyTestTitle, pennyTestMessage)); view.showKYCVerifiedIfRequired(false, "", "", true, () -> view.showPennyTestViewIfRequired(true, pennyTestTitle, pennyTestMessage));
// view.showPennyTestViewIfRequired(true,pennyTestTitle,pennyTestMessage);
} }
@Override @Override

3
app/src/main/java/com/gmeremit/online/gmeremittance_native/sendmoneyV2/gateway/SendMoneyV2Gateway.java

@ -35,8 +35,6 @@ public class SendMoneyV2Gateway extends PrivilegedGateway implements SendMoneyV2
String senderAmount, String recieverAmount, String paymentMethodId, String senderAmount, String recieverAmount, String paymentMethodId,
String calculationPreference, String recipientCountryName, String recieverCountryId, String calculationPreference, String recipientCountryName, String recieverCountryId,
String bankId,String payoutPartnerId,String userID,String paymentType) { String bankId,String payoutPartnerId,String userID,String paymentType) {
JsonObject jsonObject=new JsonObject(); JsonObject jsonObject=new JsonObject();
jsonObject.addProperty("sCountry",senderCountryId); jsonObject.addProperty("sCountry",senderCountryId);
jsonObject.addProperty("sCurrency",senderCurrency); jsonObject.addProperty("sCurrency",senderCurrency);
@ -53,7 +51,6 @@ public class SendMoneyV2Gateway extends PrivilegedGateway implements SendMoneyV2
jsonObject.addProperty("payOutPartner",payoutPartnerId); jsonObject.addProperty("payOutPartner",payoutPartnerId);
jsonObject.addProperty("userId",userID); jsonObject.addProperty("userId",userID);
return HttpClientV2.getInstance().calculateForSendMoneyExchangeRateV2(auth,jsonObject); return HttpClientV2.getInstance().calculateForSendMoneyExchangeRateV2(auth,jsonObject);
} }

50
app/src/main/java/com/gmeremit/online/gmeremittance_native/sendmoneyV2/model/SendMoneyAPIRequestBody.java

@ -83,9 +83,7 @@ public class SendMoneyAPIRequestBody {
@SerializedName("foreX_SESSION_ID") @SerializedName("foreX_SESSION_ID")
@Expose @Expose
private String foreXSESSIONID; private String foreXSESSIONID;
@SerializedName("kftcLogId")
@Expose
private String kftcLogId;
@SerializedName("paymentType") @SerializedName("paymentType")
@Expose @Expose
private String paymentType; private String paymentType;
@ -100,15 +98,9 @@ public class SendMoneyAPIRequestBody {
private String receiverAccountNo; private String receiverAccountNo;
//KFTF Related Params //KFTF Related Params
@SerializedName("kftcAccountNum")
@Expose
private String kftcAccNo;
@SerializedName("kftcAccessToken")
@Expose
private String kftcAccessToken;
@SerializedName("kftcFintechUseNo")
@SerializedName("KftcAccountId")
@Expose @Expose
private String kftcFintechUseNo;
private String kftcAccountId;
public String getUser() { public String getUser() {
@ -319,12 +311,12 @@ public class SendMoneyAPIRequestBody {
this.foreXSESSIONID = foreXSESSIONID; this.foreXSESSIONID = foreXSESSIONID;
} }
public String getKftcLogId() {
return kftcLogId;
public String getKftcAccountId() {
return kftcAccountId;
} }
public void setKftcLogId(String kftcLogId) {
this.kftcLogId = kftcLogId;
public void setKftcAccountId(String kftcAccountId) {
this.kftcAccountId = kftcAccountId;
} }
public String getPaymentType() { public String getPaymentType() {
@ -359,33 +351,5 @@ public class SendMoneyAPIRequestBody {
this.receiverAccountNo = receiverAccountNo; this.receiverAccountNo = receiverAccountNo;
} }
public String getKftcAccNo() {
return kftcAccNo;
}
public void setKftcAccNo(String kftcAccNo) {
if(kftcAccNo==null)
kftcAccNo="";
this.kftcAccNo = kftcAccNo;
}
public String getKftcAccessToken() {
return kftcAccessToken;
}
public void setKftcAccessToken(String kftcAccessToken) {
if(kftcAccessToken==null)
kftcAccessToken="";
this.kftcAccessToken = kftcAccessToken;
}
public String getKftcFintechUseNo() {
return kftcFintechUseNo;
}
public void setKftcFintechUseNo(String kftcFintechUseNo) {
if(kftcFintechUseNo==null)
kftcFintechUseNo="";
this.kftcFintechUseNo = kftcFintechUseNo;
}
} }

5
app/src/main/java/com/gmeremit/online/gmeremittance_native/sendmoneyV2/presenter/SendMoneyV2Presenter.java

@ -245,9 +245,7 @@ public class SendMoneyV2Presenter extends BasePresenter implements SendMoneyV2Pr
sendMoneyAPIRequestBody.setIsAgreed(Constants.TRUE_STRING); sendMoneyAPIRequestBody.setIsAgreed(Constants.TRUE_STRING);
//KFTC Related Params //KFTC Related Params
sendMoneyAPIRequestBody.setKftcAccNo(selectedPaymentType.getAccountNum());
sendMoneyAPIRequestBody.setKftcAccessToken(selectedPaymentType.getAccessToken());
sendMoneyAPIRequestBody.setKftcFintechUseNo(selectedPaymentType.getFintechUseNo());
sendMoneyAPIRequestBody.setKftcAccountId(selectedPaymentType.getKftcAccountId());
sendMoneyAPIRequestBody.setTxnPassword(password); sendMoneyAPIRequestBody.setTxnPassword(password);
@ -304,7 +302,6 @@ public class SendMoneyV2Presenter extends BasePresenter implements SendMoneyV2Pr
@Override @Override
public Observable<ExchangeCalculationApiResponse> getForex(String recieveAmount, String senderAmount, boolean shouldCaulatedByRecipient, String recieverCurrency) { public Observable<ExchangeCalculationApiResponse> getForex(String recieveAmount, String senderAmount, boolean shouldCaulatedByRecipient, String recieverCurrency) {
String senderCountryId = gateway.getUserCountryId(); String senderCountryId = gateway.getUserCountryId();
String senderCurrency = gateway.getUserPreferredCurrency(); String senderCurrency = gateway.getUserPreferredCurrency();
String paymentMethodId = selectedPaymentModeData.getId(); String paymentMethodId = selectedPaymentModeData.getId();

Loading…
Cancel
Save