Command: grep -n -A 15 "pub async fn getmerchant"…
- User
Command: grep -n -A 15 "pub async fn get_merchant_" /workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/analytics.rs | head -30 Output: 447: pub async fn get_merchant_payment_metrics( 448- state: web::Data, 449- req: actix_web::HttpRequest, 450- json_payload: web::Json<[GetPaymentMetricRequest; 1]>, 451- ) -> impl Responder { 452- // safety: This shouldn't panic owing to the data type 453- #[allow(clippy::expect_used)] 454- let payload = json_payload 455- .into_inner() 456- .to_vec() 457- .pop() 458- .expect("Couldn't get GetPaymentMetricRequest"); 459- let flow = AnalyticsFlow::GetPaymentMetrics; 460- Box::pin(api::server_wrap( 461- flow, 462- state,
608: pub async fn get_merchant_payment_intent_metrics( 609- state: web::Data, 610- req: actix_web::HttpRequest, 611- json_payload: web::Json<[GetPaymentIntentMetricRequest; 1]>, 612- ) -> impl Responder { 613- // safety: This shouldn't panic owing to the data type 614- #[allow(clippy::expect_used)] 615- let payload = json_payload 616- .into_inner() 617- .to_vec() 618- .pop() 619- .expect("Couldn't get GetPaymentIntentMetricRequest"); 620- let flow = AnalyticsFlow::GetPaymentIntentMetrics;
Assistant
<is_displaying_contents> true </is_displaying_contents>