mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 04:04:55 +08:00
feat(multitenancy): add support for multitenancy and handle the same in router, producer, consumer, drainer and analytics (#4630)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Co-authored-by: Arun Raj M <jarnura47@gmail.com>
This commit is contained in:
@ -12,14 +12,14 @@ use super::routing::helpers::{
|
||||
};
|
||||
use crate::{
|
||||
core::errors::{self, RouterResponse},
|
||||
routes::AppState,
|
||||
routes::SessionState,
|
||||
services::api as service_api,
|
||||
types::domain,
|
||||
utils::OptionExt,
|
||||
};
|
||||
|
||||
pub async fn upsert_conditional_config(
|
||||
state: AppState,
|
||||
state: SessionState,
|
||||
key_store: domain::MerchantKeyStore,
|
||||
merchant_account: domain::MerchantAccount,
|
||||
request: DecisionManager,
|
||||
@ -149,7 +149,7 @@ pub async fn upsert_conditional_config(
|
||||
}
|
||||
|
||||
pub async fn delete_conditional_config(
|
||||
state: AppState,
|
||||
state: SessionState,
|
||||
key_store: domain::MerchantKeyStore,
|
||||
merchant_account: domain::MerchantAccount,
|
||||
) -> RouterResponse<()> {
|
||||
@ -177,7 +177,7 @@ pub async fn delete_conditional_config(
|
||||
}
|
||||
|
||||
pub async fn retrieve_conditional_config(
|
||||
state: AppState,
|
||||
state: SessionState,
|
||||
merchant_account: domain::MerchantAccount,
|
||||
) -> RouterResponse<DecisionManagerResponse> {
|
||||
let db = state.store.as_ref();
|
||||
|
||||
Reference in New Issue
Block a user