|
|
@ -31,6 +31,7 @@ import com.nivesh.production.niveshfd.databinding.FragmentNiveshfdStepTwoBinding |
|
|
|
import com.nivesh.production.niveshfd.db.PreferenceManager |
|
|
|
import com.nivesh.production.niveshfd.model.* |
|
|
|
import com.nivesh.production.niveshfd.ui.activity.NiveshFdMainActivity |
|
|
|
import com.nivesh.production.niveshfd.util.Common |
|
|
|
import com.nivesh.production.niveshfd.util.Common.Companion.commonErrorAutoCompleteMethod |
|
|
|
import com.nivesh.production.niveshfd.util.Common.Companion.commonErrorMethod |
|
|
|
import com.nivesh.production.niveshfd.util.Common.Companion.commonSpinnerErrorMethod |
|
|
@ -769,10 +770,17 @@ class StepTwoNiveshFDFragment : Fragment() { |
|
|
|
} |
|
|
|
650 -> "" |
|
|
|
else -> { |
|
|
|
showDialogValidation( |
|
|
|
activity as NiveshFdMainActivity, |
|
|
|
getCodeResponse.Response.Errors[0].ErrorMessage |
|
|
|
) |
|
|
|
if (getCodeResponse.Response.Errors.isNotEmpty()) { |
|
|
|
showDialogValidation( |
|
|
|
activity as NiveshFdMainActivity, |
|
|
|
getCodeResponse.Response.Errors[0].ErrorMessage |
|
|
|
) |
|
|
|
}else{ |
|
|
|
showDialogValidation( |
|
|
|
activity as NiveshFdMainActivity, |
|
|
|
"".plus(getCodeResponse.Response.Message) |
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -822,10 +830,17 @@ class StepTwoNiveshFDFragment : Fragment() { |
|
|
|
} |
|
|
|
// 650 -> refreshToken() |
|
|
|
else -> { |
|
|
|
showDialogValidation( |
|
|
|
activity as NiveshFdMainActivity, |
|
|
|
createFDApplicationResponse.Response.Errors[0].ErrorMessage |
|
|
|
) |
|
|
|
if (createFDApplicationResponse.Response.Errors.isNotEmpty()) { |
|
|
|
showDialogValidation( |
|
|
|
activity as NiveshFdMainActivity, |
|
|
|
createFDApplicationResponse.Response.Errors[0].ErrorMessage |
|
|
|
) |
|
|
|
}else{ |
|
|
|
showDialogValidation( |
|
|
|
activity as NiveshFdMainActivity, |
|
|
|
"".plus(createFDApplicationResponse.Response.Message) |
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -1216,10 +1231,17 @@ class StepTwoNiveshFDFragment : Fragment() { |
|
|
|
} |
|
|
|
// 650 -> refreshToken() |
|
|
|
else -> { |
|
|
|
showDialogValidation( |
|
|
|
activity as NiveshFdMainActivity, |
|
|
|
getCodeResponse.Response.Errors[0].ErrorMessage |
|
|
|
) |
|
|
|
if (getCodeResponse.Response.Errors.isNotEmpty()) { |
|
|
|
showDialogValidation( |
|
|
|
activity as NiveshFdMainActivity, |
|
|
|
getCodeResponse.Response.Errors[0].ErrorMessage |
|
|
|
) |
|
|
|
}else{ |
|
|
|
showDialogValidation( |
|
|
|
activity as NiveshFdMainActivity, |
|
|
|
"".plus(getCodeResponse.Response.Message) |
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -1269,10 +1291,17 @@ class StepTwoNiveshFDFragment : Fragment() { |
|
|
|
} |
|
|
|
// 650 -> refreshToken() |
|
|
|
else -> { |
|
|
|
showDialogValidation( |
|
|
|
activity as NiveshFdMainActivity, |
|
|
|
getCodeResponse.Response.Errors[0].ErrorMessage |
|
|
|
) |
|
|
|
if (getCodeResponse.Response.Errors.isNotEmpty()) { |
|
|
|
showDialogValidation( |
|
|
|
activity as NiveshFdMainActivity, |
|
|
|
getCodeResponse.Response.Errors[0].ErrorMessage |
|
|
|
) |
|
|
|
}else{ |
|
|
|
showDialogValidation( |
|
|
|
activity as NiveshFdMainActivity, |
|
|
|
"".plus(getCodeResponse.Response.Message) |
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -1361,10 +1390,17 @@ class StepTwoNiveshFDFragment : Fragment() { |
|
|
|
} |
|
|
|
// 650 -> refreshToken() |
|
|
|
else -> { |
|
|
|
showDialogValidation( |
|
|
|
activity as NiveshFdMainActivity, |
|
|
|
getCodeResponse.Response.Errors[0].ErrorMessage |
|
|
|
) |
|
|
|
if (getCodeResponse.Response.Errors.isNotEmpty()) { |
|
|
|
showDialogValidation( |
|
|
|
activity as NiveshFdMainActivity, |
|
|
|
getCodeResponse.Response.Errors[0].ErrorMessage |
|
|
|
) |
|
|
|
}else{ |
|
|
|
showDialogValidation( |
|
|
|
activity as NiveshFdMainActivity, |
|
|
|
"".plus(getCodeResponse.Response.Message) |
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -1446,10 +1482,17 @@ class StepTwoNiveshFDFragment : Fragment() { |
|
|
|
} |
|
|
|
// 650 -> refreshToken() |
|
|
|
else -> { |
|
|
|
showDialogValidation( |
|
|
|
activity as NiveshFdMainActivity, |
|
|
|
getCodeResponse.Response.Errors[0].ErrorMessage |
|
|
|
) |
|
|
|
if (getCodeResponse.Response.Errors.isNotEmpty()) { |
|
|
|
showDialogValidation( |
|
|
|
activity as NiveshFdMainActivity, |
|
|
|
getCodeResponse.Response.Errors[0].ErrorMessage |
|
|
|
) |
|
|
|
}else{ |
|
|
|
showDialogValidation( |
|
|
|
activity as NiveshFdMainActivity, |
|
|
|
"".plus(getCodeResponse.Response.Message) |
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -1509,10 +1552,17 @@ class StepTwoNiveshFDFragment : Fragment() { |
|
|
|
} |
|
|
|
// 650 -> refreshToken() |
|
|
|
else -> { |
|
|
|
showDialogValidation( |
|
|
|
activity as NiveshFdMainActivity, |
|
|
|
getCodeResponse.Response.Errors[0].ErrorMessage |
|
|
|
) |
|
|
|
if (getCodeResponse.Response.Errors.isNotEmpty()) { |
|
|
|
showDialogValidation( |
|
|
|
activity as NiveshFdMainActivity, |
|
|
|
getCodeResponse.Response.Errors[0].ErrorMessage |
|
|
|
) |
|
|
|
}else{ |
|
|
|
showDialogValidation( |
|
|
|
activity as NiveshFdMainActivity, |
|
|
|
"".plus(getCodeResponse.Response.Message) |
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -1584,10 +1634,17 @@ class StepTwoNiveshFDFragment : Fragment() { |
|
|
|
} |
|
|
|
// 650 -> refreshToken() |
|
|
|
else -> { |
|
|
|
showDialogValidation( |
|
|
|
activity as NiveshFdMainActivity, |
|
|
|
getCodeResponse.Response.Errors[0].ErrorMessage |
|
|
|
) |
|
|
|
if (getCodeResponse.Response.Errors.isNotEmpty()) { |
|
|
|
showDialogValidation( |
|
|
|
activity as NiveshFdMainActivity, |
|
|
|
getCodeResponse.Response.Errors[0].ErrorMessage |
|
|
|
) |
|
|
|
}else{ |
|
|
|
showDialogValidation( |
|
|
|
activity as NiveshFdMainActivity, |
|
|
|
"".plus(getCodeResponse.Response.Message) |
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -1646,10 +1703,17 @@ class StepTwoNiveshFDFragment : Fragment() { |
|
|
|
} |
|
|
|
// 650 -> refreshToken() |
|
|
|
else -> { |
|
|
|
showDialogValidation( |
|
|
|
activity as NiveshFdMainActivity, |
|
|
|
getCodeResponse.Response.Errors[0].ErrorMessage |
|
|
|
) |
|
|
|
if (getCodeResponse.Response.Errors.isNotEmpty()) { |
|
|
|
showDialogValidation( |
|
|
|
activity as NiveshFdMainActivity, |
|
|
|
getCodeResponse.Response.Errors[0].ErrorMessage |
|
|
|
) |
|
|
|
}else{ |
|
|
|
showDialogValidation( |
|
|
|
activity as NiveshFdMainActivity, |
|
|
|
"".plus(getCodeResponse.Response.Message) |
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -1859,10 +1923,17 @@ class StepTwoNiveshFDFragment : Fragment() { |
|
|
|
} |
|
|
|
650 -> refreshToken() |
|
|
|
else -> { |
|
|
|
showDialogValidation( |
|
|
|
activity as NiveshFdMainActivity, |
|
|
|
getFDBankListResponse.Response.Errors[0].ErrorMessage |
|
|
|
) |
|
|
|
if (getFDBankListResponse.Response.Errors.isNotEmpty()) { |
|
|
|
showDialogValidation( |
|
|
|
activity as NiveshFdMainActivity, |
|
|
|
getFDBankListResponse.Response.Errors[0].ErrorMessage |
|
|
|
) |
|
|
|
}else{ |
|
|
|
showDialogValidation( |
|
|
|
activity as NiveshFdMainActivity, |
|
|
|
"".plus(getFDBankListResponse.Response.Message) |
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|