NTP-24902 | Divyesh | bbps mobile number spacing fix (#14550)

This commit is contained in:
Divyesh Shinde
2025-01-16 16:28:58 +05:30
committed by GitHub
parent bcf34eaa2f
commit 29bc05244f
2 changed files with 15 additions and 1 deletions

View File

@@ -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,

View File

@@ -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,