NTP-32021 | Divyesh | add upi lite logo in bill payment (#14686)

This commit is contained in:
Divyesh Shinde
2025-01-27 15:44:56 +05:30
committed by GitHub
parent c9ae435496
commit b2032686cd
3 changed files with 9 additions and 3 deletions

View File

@@ -26,6 +26,7 @@ data class BbpsTransactionDetailsMetadata(
@SerializedName("billerLogoUrl") val billerLogoUrl: String?,
@SerializedName("primaryCustomerParamKey") val primaryCustomerParamKey: String?,
@SerializedName("primaryCustomerParamValue") val primaryCustomerParamValue: String?,
@SerializedName("purposeCode") val purposeCode: String?,
@SerializedName("categoryId") val categoryId: String?,
@SerializedName("categoryName") val categoryName: String?,
@SerializedName("refundStatus") val refundStatus: String?,

View File

@@ -107,6 +107,11 @@ fun OrderItem.toOrderEntity(
naviPayMetadata?.purposeCode == NAVI_PAY_UPI_LITE_SEND_MONEY_PURPOSE_CODE
} else false
val isBillPaymentViaUPILite =
if (productType.orEmpty().contains(OrderProductType.BBPS.name)) {
bbpsMetaData?.purposeCode == NAVI_PAY_UPI_LITE_SEND_MONEY_PURPOSE_CODE
} else false
val otherUserInfo =
if (productType.orEmpty().contains(OrderProductType.UPI.name)) {
val otherUser =
@@ -164,7 +169,7 @@ fun OrderItem.toOrderEntity(
paymentMode = OrderPaymentMode.getOrderPaymentModeFromString(paymentMode.orEmpty()),
paymentModeTags =
getPaymentModeTags(
isSendMoneyViaUPILite = isSendMoneyViaUPILite,
isPaymentModeUPILite = isBillPaymentViaUPILite || isSendMoneyViaUPILite,
naviPayMetadata = naviPayMetadata,
),
orderType = orderType.orEmpty(),

View File

@@ -104,7 +104,7 @@ fun OrderItem.getOrderStatusOfView(): OrderStatusOfView {
}
fun OrderItem.getPaymentModeTags(
isSendMoneyViaUPILite: Boolean,
isPaymentModeUPILite: Boolean,
naviPayMetadata: NaviPayTransactionDetailsMetadata?,
): String {
@@ -112,7 +112,7 @@ fun OrderItem.getPaymentModeTags(
val eligibleTags = mutableSetOf<String>()
if (isSendMoneyViaUPILite) {
if (isPaymentModeUPILite) {
eligibleTags.add(TransactionPaymentModeTags.UPI_LITE.value)
}