TP-72001 | added partPrePaymentType (#11916)

This commit is contained in:
shreyansu raj
2024-07-25 23:11:44 +05:30
committed by GitHub
parent 2ce38abbf4
commit 5fe7ae7c02
3 changed files with 12 additions and 6 deletions

View File

@@ -35,6 +35,7 @@ import com.naviapp.part_prepayment.PartPrePaymentActivity
import com.naviapp.part_prepayment.fragments.PartPrePaymentBaseFragment
import com.naviapp.part_prepayment.states.GenericWidgetState
import com.naviapp.payment.activities.NaviPaymentActivity
import com.naviapp.payment.fragments.PaymentType
import com.naviapp.payment.models.Amount
import com.naviapp.utils.Constants
import com.naviapp.utils.Constants.LOAN_TYPE
@@ -160,9 +161,10 @@ class CustomPaymentCalendarReviewFragment :
if (loanType == TYPE_PERSONAL_LOAN && ::initiatePaymentListener.isInitialized) {
initiatePaymentListener.initiatePayment(
amount = Amount(amountData?.toDoubleOrNull(), currency, symbol),
repaymentType = paymentType,
repaymentType = paymentType ?: PaymentType.PART_PRE_PAYMENT.name,
loanAccountNumber = loanAccountNumber,
loanType = loanType
loanType = loanType,
partPrePaymentRescheduleType = repaymentType
)
} else {
startPayment(

View File

@@ -53,6 +53,7 @@ import com.naviapp.part_prepayment.PartPrePaymentActivity
import com.naviapp.part_prepayment.fragments.PartPrePaymentBaseFragment
import com.naviapp.part_prepayment.states.GenericWidgetState
import com.naviapp.payment.activities.NaviPaymentActivity
import com.naviapp.payment.fragments.PaymentType
import com.naviapp.payment.models.Amount
import com.naviapp.utils.Constants
import com.naviapp.utils.Constants.IS_LOAN_AGREEMENT_UPDATION_REQUIRED
@@ -351,9 +352,10 @@ class RepaymentTypeFragment :
if (loanType == TYPE_PERSONAL_LOAN && ::initiatePaymentListener.isInitialized) {
initiatePaymentListener.initiatePayment(
amount = Amount(amountData?.toDoubleOrNull(), currency, symbol),
repaymentType = paymentType,
repaymentType = paymentType ?: PaymentType.PART_PRE_PAYMENT.name,
loanAccountNumber = loanAccountNumber,
loanType = loanType
loanType = loanType,
partPrePaymentRescheduleType = type as? String
)
} else {
startPayment(

View File

@@ -34,6 +34,7 @@ import com.naviapp.part_prepayment.PartPrePaymentActivity
import com.naviapp.part_prepayment.states.GenericWidgetState
import com.naviapp.part_prepayment.viewModels.PartPrePaymentEmiCalendarReviewVM
import com.naviapp.payment.activities.NaviPaymentActivity
import com.naviapp.payment.fragments.PaymentType
import com.naviapp.payment.models.Amount
import com.naviapp.utils.Constants
import com.naviapp.utils.Constants.LOAN_TYPE
@@ -116,9 +117,10 @@ class PartPrePaymentEmiCalendarReviewFragment :
if (loanType == TYPE_PERSONAL_LOAN && ::initiatePaymentListener.isInitialized) {
initiatePaymentListener.initiatePayment(
amount = Amount(amountData?.toDoubleOrNull(), currency, symbol),
repaymentType = paymentType,
repaymentType = paymentType ?: PaymentType.PART_PRE_PAYMENT.name,
loanAccountNumber = loanAccountNumber,
loanType = loanType
loanType = loanType,
partPrePaymentRescheduleType = repaymentType
)
} else {
startPayment(