NTP-44548 | Transaction type check (#15988)

This commit is contained in:
Balrambhai Sharma
2025-04-29 15:41:06 +05:30
committed by GitHub
parent 3fdc1ac604
commit e26f1a9d02
2 changed files with 15 additions and 0 deletions

View File

@@ -39,6 +39,16 @@ enum class OrderStatusOfView(val value: String) {
fun isPending(): Boolean {
return this == Pending || this == RequestMoneyPending
}
fun isRequestMoneyOrCollectRequest(): Boolean {
return this == RequestMoneyExpired ||
this == RequestMoneyPending ||
this == RequestMoneyFailed ||
this == RequestMoneyDeclined ||
this == CollectRequestExpired ||
this == CollectRequestDeclined ||
this == CollectRequestFailed
}
}
fun getViewOrderStatusFromStatusAndCategoryAndOrderRequestType(

View File

@@ -569,6 +569,11 @@ constructor(
return null
}
// Don't add collect request /request money related transactions in message db
if (orderEntity.orderStatusOfView.isRequestMoneyOrCollectRequest()) {
return null
}
// If payer or payee is NaviPay handle, then we need to have saExtCustId for conversationId
// generation
if (