mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-10-31 18:17:13 +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:
		| @ -8,7 +8,7 @@ use crate::{ | ||||
|         payments, | ||||
|     }, | ||||
|     errors::RouterResult, | ||||
|     routes::AppState, | ||||
|     routes::SessionState, | ||||
|     services::{self, execute_connector_processing_step}, | ||||
|     types::{ | ||||
|         api, authentication::AuthenticationResponseData, domain, storage, | ||||
| @ -48,7 +48,7 @@ pub fn get_connector_data_if_separate_authn_supported( | ||||
| } | ||||
|  | ||||
| pub async fn update_trackers<F: Clone, Req>( | ||||
|     state: &AppState, | ||||
|     state: &SessionState, | ||||
|     router_data: RouterData<F, Req, AuthenticationResponseData>, | ||||
|     authentication: storage::Authentication, | ||||
|     acquirer_details: Option<super::types::AcquirerDetails>, | ||||
| @ -171,7 +171,7 @@ impl ForeignFrom<common_enums::AuthenticationStatus> for common_enums::AttemptSt | ||||
| } | ||||
|  | ||||
| pub async fn create_new_authentication( | ||||
|     state: &AppState, | ||||
|     state: &SessionState, | ||||
|     merchant_id: String, | ||||
|     authentication_connector: String, | ||||
|     token: String, | ||||
| @ -228,7 +228,7 @@ pub async fn create_new_authentication( | ||||
| } | ||||
|  | ||||
| pub async fn do_auth_connector_call<F, Req, Res>( | ||||
|     state: &AppState, | ||||
|     state: &SessionState, | ||||
|     authentication_connector_name: String, | ||||
|     router_data: RouterData<F, Req, Res>, | ||||
| ) -> RouterResult<RouterData<F, Req, Res>> | ||||
| @ -255,7 +255,7 @@ where | ||||
| } | ||||
|  | ||||
| pub async fn get_authentication_connector_data( | ||||
|     state: &AppState, | ||||
|     state: &SessionState, | ||||
|     key_store: &domain::MerchantKeyStore, | ||||
|     business_profile: &storage::BusinessProfile, | ||||
| ) -> RouterResult<( | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Jagan
					Jagan