Skip to content

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

fix(router): add payment advanced list routes (#13594)

Venu Madhav Bandarupalli2bfa24e75644
diff --git a/crates/router/src/routes/app.rs b/crates/router/src/routes/app.rs
index f4bfe7c821..ed92ff39bc 100644
--- a/crates/router/src/routes/app.rs
+++ b/crates/router/src/routes/app.rs
@@ -80,6 +80,10 @@ use super::{configs::*, customers, payments};
use super::{mandates::*, refunds::*};
#[cfg(feature = "olap")]
pub use crate::analytics::opensearch::OpenSearchClient;
+#[cfg(all(feature = "olap", feature = "v1"))]
+use crate::analytics::routes::{
+ get_payment_list_from_opensearch, get_profile_payment_list_from_opensearch,
+};
#[cfg(feature = "olap")]
use crate::analytics::AnalyticsProvider;
#[cfg(feature = "partial-auth")]
@@ -975,6 +979,14 @@ impl Payments {
.route(web::get().to(payments::profile_payments_list))
.route(web::post().to(payments::profile_payments_list_by_filter)),
)
+ .service(
+ web::resource("/advanced/list")
+ .route(web::post().to(get_payment_list_from_opensearch)),
+ )
+ .service(
+ web::resource("/profile/advanced/list")
+ .route(web::post().to(get_profile_payment_list_from_opensearch)),
+ )
.service(
web::resource("/filter")
.route(web::post().to(payments::get_filters_for_payments)),