TP-00000 | Sidharth Bamba | upi lite fix for degrister in-progress (#9422)
This commit is contained in:
@@ -29,6 +29,7 @@ import com.navi.pay.utils.NAVI_PAY_UPI_LITE_DE_REGISTRATION_WITH_AMOUNT_PURPOSE_
|
||||
import com.navi.pay.utils.NAVI_PAY_UPI_LITE_INITIAL_TOP_UP_PURPOSE_CODE
|
||||
import com.navi.pay.utils.NAVI_PAY_UPI_LITE_SEND_MONEY_PURPOSE_CODE
|
||||
import com.navi.pay.utils.NAVI_PAY_UPI_LITE_SUBSEQUENT_TOP_UP_PURPOSE_CODE
|
||||
import com.navi.pay.utils.UPI_LITE
|
||||
import com.navi.pay.utils.getBankNameAccountNumberText
|
||||
import com.navi.pay.utils.getDisplayableAmount
|
||||
import kotlinx.parcelize.IgnoredOnParcel
|
||||
@@ -90,8 +91,12 @@ data class TransactionEntity(
|
||||
@IgnoredOnParcel
|
||||
@delegate:Ignore
|
||||
val accountInfoKeyValue by lazy {
|
||||
if (isSendMoneyViaUPILite) {
|
||||
"UPI Lite"
|
||||
if (
|
||||
isSendMoneyViaUPILite ||
|
||||
(isUpiLiteTopUpOrClosureTransaction &&
|
||||
transactionStatusOfView == TransactionStatusOfView.Pending)
|
||||
) {
|
||||
UPI_LITE
|
||||
} else {
|
||||
getBankNameAccountNumberText(
|
||||
bankName = ownBankName,
|
||||
@@ -127,15 +132,24 @@ data class TransactionEntity(
|
||||
@IgnoredOnParcel
|
||||
@delegate:Ignore
|
||||
val otherUserNameFormatted by lazy {
|
||||
if (isUpiLiteTopUpOrClosureTransaction) {
|
||||
"UPI Lite"
|
||||
} else if (transactionDetailEntity.metaData.txnType == UpiTransactionType.SELF_PAY.name) {
|
||||
getBankNameAccountNumberText(
|
||||
bankName = transactionDetailEntity.payeeInfo.bankName,
|
||||
maskedAccountNumber = transactionDetailEntity.payeeInfo.mdAccNo
|
||||
)
|
||||
} else {
|
||||
otherUserName
|
||||
when {
|
||||
isUpiLiteTopUpOrClosureTransaction -> {
|
||||
if (transactionStatusOfView == TransactionStatusOfView.Pending) {
|
||||
getBankNameAccountNumberText(
|
||||
bankName = ownBankName,
|
||||
maskedAccountNumber = ownMaskedAccountNumber
|
||||
)
|
||||
} else {
|
||||
UPI_LITE
|
||||
}
|
||||
}
|
||||
transactionDetailEntity.metaData.txnType == UpiTransactionType.SELF_PAY.name -> {
|
||||
getBankNameAccountNumberText(
|
||||
bankName = transactionDetailEntity.payeeInfo.bankName,
|
||||
maskedAccountNumber = transactionDetailEntity.payeeInfo.mdAccNo
|
||||
)
|
||||
}
|
||||
else -> otherUserName
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -303,6 +303,7 @@ const val MONEY_ADDED_TO_UPI_LITE = "UPI Lite Top-up"
|
||||
const val UPI_LITE_CLOSURE = "UPI Lite Closure"
|
||||
const val UPI_LITE_CREDBLOCK_SIGNATURE = "SIGNATURE"
|
||||
const val UPI_LITE_CREDBLOCK_INITIAL = "initial"
|
||||
const val UPI_LITE = "UPI Lite"
|
||||
|
||||
// Screen url
|
||||
const val SET_RESET_PIN_SCREEN = "navipay/accountverify/setresetpin"
|
||||
|
||||
Reference in New Issue
Block a user