NTP-15268 | send money feature tag fix (#14037)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user