TP-72001 | added partPrePaymentType (#11916)
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user