Merge pull request #1631 from medici/cug-1-fixes

Fix company name in EPFO page
This commit is contained in:
rahul bhat
2021-10-08 16:23:56 +05:30
committed by GitHub Enterprise
5 changed files with 16 additions and 15 deletions

View File

@@ -221,9 +221,9 @@ class OtpBottomSheet : BaseBottomSheet(), View.OnClickListener {
NaviAnalytics.OTP_DISBURSEMENT -> {
otpSharedViewModel?.verifyOtp(
OtpRequest(
binding.otpBoxLayout.getText(),
otpToken,
otpAutoFill
otp = binding.otpBoxLayout.getText(),
otpToken = otpToken,
otpAutofill = otpAutoFill
)
)
}
@@ -231,10 +231,10 @@ class OtpBottomSheet : BaseBottomSheet(), View.OnClickListener {
startCountDownTimerForApiTimeout(API_TIMEOUT)
otpSharedViewModel?.verifyOtpForEPFO(
OtpRequest(
binding.otpBoxLayout.getText(),
otpToken,
otpAutoFill,
arguments?.getString(KEY_COMPANY_NAME)
otp = binding.otpBoxLayout.getText(),
otpToken = otpToken,
otpAutofill = otpAutoFill,
companyName = arguments?.getString(KEY_COMPANY_NAME)
)
)
}

View File

@@ -9,6 +9,7 @@ data class OtpRequest(
@SerializedName("otpToken") val otpToken: String? = null,
@SerializedName("otpAutofill") val otpAutofill: Boolean? = null,
@SerializedName("type") val loginType: String? = null,
@SerializedName("companyName") val companyName: String? = null,
@SerializedName("truecallerProfileData") val truecallerProfileData: TrueProfileData? = null,
@SerializedName("appVersion") val appVersionData: AppVersionData = AppVersionData(
BuildConfig.VERSION_CODE.toString(),

View File

@@ -115,9 +115,9 @@ class TelcoOtpFragment : BaseFragment(), View.OnClickListener {
showLoader()
viewModel.verifyOtp(
OtpRequest(
binding.otpBoxLayout.getText(),
viewModel.telcoDetails.value?.content?.otpToken,
otpAutoFill
otp = binding.otpBoxLayout.getText(),
otpToken = viewModel.telcoDetails.value?.content?.otpToken,
otpAutofill = otpAutoFill
)
)
}

View File

@@ -128,10 +128,10 @@ class RegistrationVM : BaseVM() {
) {
val otpRequest =
OtpRequest(
otp,
otpToken,
isAutoFetchOtp,
loginType,
otp = otp,
otpToken = otpToken,
otpAutofill = isAutoFetchOtp,
loginType = loginType,
deviceDetail = deviceDetail,
source = source
)

View File

@@ -144,7 +144,7 @@ class BankVerificationFragment :
private fun startCountDown() {
if (countDownTimer == null) {
countDownTimer = object : CountDownTimer(20000, 3000) {
countDownTimer = object : CountDownTimer(120000, 3000) {
override fun onTick(millisUntilFinished: Long) {
val accessToken =
sharedPreferences?.getObject(SharedPreferencesKeys.COMMON_RESPONSE_OBJECT)?.accessToken.toString()