NTP-44548 | Transaction type check (#15988)
This commit is contained in:
committed by
GitHub
parent
3fdc1ac604
commit
e26f1a9d02
@@ -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(
|
||||
|
||||
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user