NTP-24902 | Divyesh | bbps mobile number spacing fix (#14550)
This commit is contained in:
@@ -251,7 +251,11 @@ private fun BillDetailsSection(bbpsTransactionDetailsMetadata: BbpsTransactionDe
|
||||
Spacer(modifier = Modifier.width(8.dp))
|
||||
NaviText(
|
||||
modifier = Modifier.weight(1f, fill = false),
|
||||
text = bbpsTransactionDetailsMetadata?.primaryCustomerParamKey.orEmpty(),
|
||||
text =
|
||||
OrderBbpsUtils.getDisplayableCustomerParamKey(
|
||||
primaryCustomerParamKey =
|
||||
bbpsTransactionDetailsMetadata?.primaryCustomerParamKey.orEmpty()
|
||||
),
|
||||
fontFamily = naviFontFamily,
|
||||
fontWeight = getFontWeight(FontWeightEnum.NAVI_BODY_REGULAR),
|
||||
fontSize = 14.sp,
|
||||
|
||||
@@ -25,6 +25,8 @@ object OrderBbpsUtils {
|
||||
private const val CATEGORY_ID_CABLE = "CABLE"
|
||||
private const val CATEGORY_ID_DTH = "DTH"
|
||||
private const val CATEGORY_ID_MOBILE_PREPAID = "MOBILE-PREPAID"
|
||||
private const val CUSTOMER_PARAM_KEY_MOBILE_NUMBER = "MobileNumber"
|
||||
private const val DISPLAYABLE_CUSTOMER_PARAM_KEY_MOBILE_NUMBER = "Mobile Number"
|
||||
|
||||
fun isRechargeCategory(categoryId: String): Boolean {
|
||||
return categoryId in
|
||||
@@ -36,6 +38,14 @@ object OrderBbpsUtils {
|
||||
)
|
||||
}
|
||||
|
||||
fun getDisplayableCustomerParamKey(primaryCustomerParamKey: String): String {
|
||||
if (primaryCustomerParamKey == CUSTOMER_PARAM_KEY_MOBILE_NUMBER) {
|
||||
return DISPLAYABLE_CUSTOMER_PARAM_KEY_MOBILE_NUMBER
|
||||
} else {
|
||||
return primaryCustomerParamKey
|
||||
}
|
||||
}
|
||||
|
||||
fun prepareRefundStatusWidgetProperties(
|
||||
orderEntity: OrderEntity?,
|
||||
resourceProvider: ResourceProvider,
|
||||
|
||||
Reference in New Issue
Block a user