NTP-32021 | Divyesh | add upi lite logo in bill payment (#14686)
This commit is contained in:
@@ -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?,
|
||||
|
||||
@@ -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(),
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user