mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 12:06:56 +08:00
feat(analytics): add sessionized_metrics and currency_conversion for refunds analytics (#6419)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -659,7 +659,8 @@ pub mod routes {
|
||||
org_id: org_id.clone(),
|
||||
merchant_ids: vec![merchant_id.clone()],
|
||||
};
|
||||
analytics::refunds::get_metrics(&state.pool, &auth, req)
|
||||
let ex_rates = get_forex_exchange_rates(state.clone()).await?;
|
||||
analytics::refunds::get_metrics(&state.pool, &ex_rates, &auth, req)
|
||||
.await
|
||||
.map(ApplicationResponse::Json)
|
||||
},
|
||||
@ -697,7 +698,8 @@ pub mod routes {
|
||||
let auth: AuthInfo = AuthInfo::OrgLevel {
|
||||
org_id: org_id.clone(),
|
||||
};
|
||||
analytics::refunds::get_metrics(&state.pool, &auth, req)
|
||||
let ex_rates = get_forex_exchange_rates(state.clone()).await?;
|
||||
analytics::refunds::get_metrics(&state.pool, &ex_rates, &auth, req)
|
||||
.await
|
||||
.map(ApplicationResponse::Json)
|
||||
},
|
||||
@ -743,7 +745,8 @@ pub mod routes {
|
||||
merchant_id: merchant_id.clone(),
|
||||
profile_ids: vec![profile_id.clone()],
|
||||
};
|
||||
analytics::refunds::get_metrics(&state.pool, &auth, req)
|
||||
let ex_rates = get_forex_exchange_rates(state.clone()).await?;
|
||||
analytics::refunds::get_metrics(&state.pool, &ex_rates, &auth, req)
|
||||
.await
|
||||
.map(ApplicationResponse::Json)
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user