|
|
@ -98,9 +98,10 @@ public class HomeV2Presenter extends BasePresenter implements HomeV2PresenterInt |
|
|
|
@Override |
|
|
|
public String checkIfUserVerified() { |
|
|
|
String resultMessage = null; |
|
|
|
String pennyTestStatus=gateway.getPennyTestStatus(); |
|
|
|
if (!gateway.hasUserSubmittedKYC()) |
|
|
|
resultMessage = "Kindly complete your registration process with us to start using GME services"; |
|
|
|
else if(!gateway.getPennyTestStatus().equalsIgnoreCase("2")) |
|
|
|
else if (pennyTestStatus!=null&&pennyTestStatus.length()>0&& !pennyTestStatus.equalsIgnoreCase("2")) |
|
|
|
resultMessage = "Please verify your primary bank account to complete the registration"; |
|
|
|
else if (!gateway.isUserKYCVerified()) |
|
|
|
resultMessage = "Your registration request is in approval process. You will soon be able to use GME services"; |
|
|
@ -175,8 +176,13 @@ public class HomeV2Presenter extends BasePresenter implements HomeV2PresenterInt |
|
|
|
boolean disableKYCViewClick = userInfoModelV2.getKyc() && !userInfoModelV2.isVerified(); |
|
|
|
boolean shouldShowKYCView = false; |
|
|
|
|
|
|
|
boolean isPennyTestPending = !userInfoModelV2.getPennyTestStatus().equalsIgnoreCase("2"); |
|
|
|
boolean hasRequestedPennyTest = userInfoModelV2.getPennyTestStatus().equalsIgnoreCase("1"); |
|
|
|
boolean isPennyTestPending = false; |
|
|
|
boolean hasRequestedPennyTest = false; |
|
|
|
|
|
|
|
if (userInfoModelV2.getPennyTestStatus() != null) { |
|
|
|
isPennyTestPending = !userInfoModelV2.getPennyTestStatus().equalsIgnoreCase("2"); |
|
|
|
hasRequestedPennyTest= userInfoModelV2.getPennyTestStatus().equalsIgnoreCase("1"); |
|
|
|
} |
|
|
|
|
|
|
|
if (!userInfoModelV2.getKyc()) { |
|
|
|
shouldShowKYCView = true; |
|
|
@ -198,7 +204,7 @@ public class HomeV2Presenter extends BasePresenter implements HomeV2PresenterInt |
|
|
|
userInfoModelV2.getRewardPoint(), isPennyTestPending && !shouldShowKYCView, hasRequestedPennyTest, |
|
|
|
pennyTestTitle, pennyTestMessage)); |
|
|
|
|
|
|
|
view.showWithdrawView(userInfoModelV2.isVerified()&&userInfoModelV2.getPennyTestStatus().equalsIgnoreCase("2")); |
|
|
|
view.showWithdrawView(userInfoModelV2.isVerified() && !isPennyTestPending); |
|
|
|
|
|
|
|
AppUpdateModel androidAppUpdateModel = null; |
|
|
|
if (userInfoModelV2.getAppUpdate() != null) |
|
|
|