TP-71164 | First Emi Due Date Fix for LoanAgreement (#11508)
This commit is contained in:
@@ -70,6 +70,7 @@ import com.navi.ap.utils.constants.KYC_VERIFICATION_RESULT
|
||||
import com.navi.ap.utils.constants.LAST_SELECTED_TENURE_PILL_INDEX
|
||||
import com.navi.ap.utils.constants.LOAN_APPLICATION_ID
|
||||
import com.navi.ap.utils.constants.LOAN_APPLICATION_V2
|
||||
import com.navi.ap.utils.constants.LOAN_DISBURSEMENT_FIRST_EMI_DUE_DATE
|
||||
import com.navi.ap.utils.constants.LOAN_SLIDER
|
||||
import com.navi.ap.utils.constants.MANDATE_AUTH_TYPE
|
||||
import com.navi.ap.utils.constants.MIN_QUERY_LENGTH
|
||||
@@ -1312,10 +1313,13 @@ internal class PLLambdaImpl(
|
||||
bridge.getViewModelScope().launch(Dispatchers.IO) {
|
||||
val loanApplicationId = resolvedValues[LOAN_APPLICATION_ID]?.toString().orEmpty()
|
||||
val documentType = resolvedValues[DOCUMENT_TYPE]?.toString().orEmpty()
|
||||
val firstEmiDueDate =
|
||||
resolvedValues[LOAN_DISBURSEMENT_FIRST_EMI_DUE_DATE]?.toString().orEmpty()
|
||||
val lambdaResponse =
|
||||
repository.initiateAgreementAndSanctionLetterDownload(
|
||||
loanApplicationId = loanApplicationId,
|
||||
documentType = documentType
|
||||
documentType = documentType,
|
||||
firstEmiDueDate = firstEmiDueDate
|
||||
)
|
||||
when {
|
||||
lambdaResponse.data.isNotNull() -> {
|
||||
|
||||
@@ -267,11 +267,13 @@ class PLLambdaRepository @Inject constructor(private val retrofitService: APRetr
|
||||
suspend fun initiateAgreementAndSanctionLetterDownload(
|
||||
loanApplicationId: String,
|
||||
documentType: String,
|
||||
firstEmiDueDate: String
|
||||
): ApRepoResult<AgreementLetterDownloadResponse> {
|
||||
val response =
|
||||
retrofitService.initiateAgreementAndSanctionLetterDownload(
|
||||
loanApplicationId = loanApplicationId,
|
||||
documentType = documentType
|
||||
documentType = documentType,
|
||||
firstEmiDueDate = firstEmiDueDate
|
||||
)
|
||||
logApiResponseEvents(
|
||||
methodName = ::initiateAgreementAndSanctionLetterDownload.name,
|
||||
|
||||
@@ -192,7 +192,8 @@ interface PlLambdaService {
|
||||
suspend fun initiateAgreementAndSanctionLetterDownload(
|
||||
@Path("loanApplicationId") loanApplicationId: String,
|
||||
@Header("X-Target") xTarget: String = ModuleName.OPL.name,
|
||||
@Query("documentType") documentType: String? = null
|
||||
@Query("documentType") documentType: String? = null,
|
||||
@Query("firstEmiDueDate") firstEmiDueDate: String? = null
|
||||
): Response<GenericResponse<AgreementLetterDownloadResponse>>
|
||||
|
||||
@GET("/loan-agreement/requests/{requestId}")
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
*
|
||||
* * Copyright © 2023 by Navi Technologies Limited
|
||||
* * Copyright © 2023-2024 by Navi Technologies Limited
|
||||
* * All rights reserved. Strictly confidential
|
||||
*
|
||||
*/
|
||||
@@ -98,3 +98,4 @@ const val AWS_UPLOAD_MAX_RETRY = 3
|
||||
const val S3_KEY = "S3_KEY"
|
||||
const val OFFER_TYPE = "offerType"
|
||||
const val FETCH_EMI_DATES = "fetchEmiDates"
|
||||
const val LOAN_DISBURSEMENT_FIRST_EMI_DUE_DATE = "loanDisbursement.firstEmiDueDate"
|
||||
|
||||
Reference in New Issue
Block a user