mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 04:04:43 +08:00
feat(merchant_account): add merchant account create v2 route (#5061)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Co-authored-by: Arun Raj M <jarnura47@gmail.com> Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Sanchith Hegde <22217505+SanchithHegde@users.noreply.github.com> Co-authored-by: Chethan Rao <70657455+Chethan-rao@users.noreply.github.com> Co-authored-by: Sarthak Soni <76486416+Sarthak1799@users.noreply.github.com> Co-authored-by: Sandeep Kumar <83278309+tsdk02@users.noreply.github.com> Co-authored-by: Abhitator216 <abhishek.kanojia@juspay.in> Co-authored-by: Abhishek Kanojia <89402434+Abhitator216@users.noreply.github.com> Co-authored-by: ivor-juspay <138492857+ivor-juspay@users.noreply.github.com> Co-authored-by: Sampras Lopes <sampras.lopes@juspay.in> Co-authored-by: Pa1NarK <69745008+pixincreate@users.noreply.github.com> Co-authored-by: likhinbopanna <131246334+likhinbopanna@users.noreply.github.com> Co-authored-by: Sahkal Poddar <sahkalplanet@gmail.com> Co-authored-by: Hrithikesh <61539176+hrithikesh026@users.noreply.github.com> Co-authored-by: Shankar Singh C <83439957+ShankarSinghC@users.noreply.github.com> Co-authored-by: SamraatBansal <55536657+SamraatBansal@users.noreply.github.com> Co-authored-by: GORAKHNATH YADAV <gorakhcodes@gmail.com> Co-authored-by: Apoorv Dixit <64925866+apoorvdixit88@users.noreply.github.com> Co-authored-by: ShivanshMathurJuspay <104988143+ShivanshMathurJuspay@users.noreply.github.com> Co-authored-by: awasthi21 <107559116+awasthi21@users.noreply.github.com> Co-authored-by: Prajjwal Kumar <prajjwal.kumar@juspay.in>
This commit is contained in:
@ -333,7 +333,7 @@ pub mod routes {
|
||||
|state, auth: AuthenticationData, req, _| async move {
|
||||
analytics::sdk_events::get_metrics(
|
||||
&state.pool,
|
||||
auth.merchant_account.publishable_key.as_ref(),
|
||||
&auth.merchant_account.publishable_key,
|
||||
req,
|
||||
)
|
||||
.await
|
||||
@ -369,8 +369,8 @@ pub mod routes {
|
||||
|state, auth: AuthenticationData, req, _| async move {
|
||||
analytics::active_payments::get_metrics(
|
||||
&state.pool,
|
||||
auth.merchant_account.publishable_key.as_ref(),
|
||||
Some(&auth.merchant_account.merchant_id),
|
||||
&auth.merchant_account.publishable_key,
|
||||
&auth.merchant_account.merchant_id,
|
||||
req,
|
||||
)
|
||||
.await
|
||||
@ -407,7 +407,7 @@ pub mod routes {
|
||||
analytics::auth_events::get_metrics(
|
||||
&state.pool,
|
||||
&auth.merchant_account.merchant_id,
|
||||
auth.merchant_account.publishable_key.as_ref(),
|
||||
&auth.merchant_account.publishable_key,
|
||||
req,
|
||||
)
|
||||
.await
|
||||
@ -534,7 +534,7 @@ pub mod routes {
|
||||
analytics::sdk_events::get_filters(
|
||||
&state.pool,
|
||||
req,
|
||||
auth.merchant_account.publishable_key.as_ref(),
|
||||
&auth.merchant_account.publishable_key,
|
||||
)
|
||||
.await
|
||||
.map(ApplicationResponse::Json)
|
||||
@ -603,13 +603,9 @@ pub mod routes {
|
||||
&req,
|
||||
json_payload.into_inner(),
|
||||
|state, auth: AuthenticationData, req, _| async move {
|
||||
sdk_events_core(
|
||||
&state.pool,
|
||||
req,
|
||||
auth.merchant_account.publishable_key.unwrap_or_default(),
|
||||
)
|
||||
.await
|
||||
.map(ApplicationResponse::Json)
|
||||
sdk_events_core(&state.pool, req, &auth.merchant_account.publishable_key)
|
||||
.await
|
||||
.map(ApplicationResponse::Json)
|
||||
},
|
||||
&auth::JWTAuth(Permission::Analytics),
|
||||
api_locking::LockAction::NotApplicable,
|
||||
|
||||
Reference in New Issue
Block a user