NTP-15268 | send money feature tag fix (#14037)

This commit is contained in:
Akshita Singh
2024-12-09 15:31:43 +05:30
committed by GitHub
parent 93297ca748
commit f4dc5f848e
2 changed files with 5 additions and 5 deletions

View File

@@ -100,7 +100,7 @@ data class PayeeEntity(
val accountType: String? = null,
val accountNumber: String? = null,
val bankImgUrl: String = EMPTY,
val featureTags: List<String> = listOf(),
val featureTags: List<String>? = null,
val isNpciData: Boolean = false
) : Parcelable

View File

@@ -860,10 +860,10 @@ constructor(
private suspend fun updateAccountTypeEligibilityMap() {
val featureTags = payeeEntity.value.featureTags
if (featureTags.isNotEmpty()) {
if (featureTags?.isNotNullAndNotEmpty() == true) {
accountTypeEligibilityMap =
accountEligibilityMerchantHelper.fetchAccountTypeEligibilityMap(
featureTags = payeeEntity.value.featureTags,
featureTags = payeeEntity.value.featureTags ?: emptyList(),
screenName = screenName
)
}
@@ -1150,7 +1150,7 @@ constructor(
// Feature Tags check
if (
payeeEntity.value.featureTags.isNotEmpty() &&
payeeEntity.value.featureTags?.isNotNullAndNotEmpty() == true &&
!accountEligibilityMerchantHelper.getAccountEligibility(
eligibility = accountTypeEligibilityMap[linkedAccountEntity.accountType],
amount = paymentAmount
@@ -1413,7 +1413,7 @@ constructor(
if (linkedAccounts.isEmpty()) {
return
}
if (payeeEntity.value.featureTags.isEmpty()) {
if (payeeEntity.value.featureTags?.isEmpty() == true) {
updateLiteAccountEligibilityOnPaymentAmountChange()
} else { // accounts eligibility is dependent on feature tags
val updatedAccountsEligibilityOnPaymentChange =