mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-01 19:42:27 +08:00
feat(payments): add merchant order ref id filter (#6630)
This commit is contained in:
@ -871,6 +871,12 @@ impl<T: DatabaseStore> PaymentIntentInterface for crate::RouterStore<T> {
|
||||
query = query.filter(pi_dsl::customer_id.eq(customer_id.clone()));
|
||||
}
|
||||
|
||||
if let Some(merchant_order_reference_id) = ¶ms.merchant_order_reference_id {
|
||||
query = query.filter(
|
||||
pi_dsl::merchant_order_reference_id.eq(merchant_order_reference_id.clone()),
|
||||
)
|
||||
}
|
||||
|
||||
if let Some(profile_id) = ¶ms.profile_id {
|
||||
query = query.filter(pi_dsl::profile_id.eq_any(profile_id.clone()));
|
||||
}
|
||||
@ -1041,6 +1047,11 @@ impl<T: DatabaseStore> PaymentIntentInterface for crate::RouterStore<T> {
|
||||
if let Some(customer_id) = ¶ms.customer_id {
|
||||
query = query.filter(pi_dsl::customer_id.eq(customer_id.clone()));
|
||||
}
|
||||
if let Some(merchant_order_reference_id) = ¶ms.merchant_order_reference_id {
|
||||
query = query.filter(
|
||||
pi_dsl::merchant_order_reference_id.eq(merchant_order_reference_id.clone()),
|
||||
)
|
||||
}
|
||||
if let Some(profile_id) = ¶ms.profile_id {
|
||||
query = query.filter(pi_dsl::profile_id.eq_any(profile_id.clone()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user