mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-10-31 18:17:13 +08:00 
			
		
		
		
	feat(router): add organization_id in authentication table and add it in authentication events (#7168)
				
					
				
			This commit is contained in:
		 Sai Harsha Vardhan
					Sai Harsha Vardhan
				
			
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			 GitHub
						GitHub
					
				
			
						parent
						
							9b1b245564
						
					
				
				
					commit
					f2117542a7
				
			| @ -174,6 +174,7 @@ impl ForeignFrom<common_enums::AuthenticationStatus> for common_enums::AttemptSt | ||||
|     } | ||||
| } | ||||
|  | ||||
| #[allow(clippy::too_many_arguments)] | ||||
| pub async fn create_new_authentication( | ||||
|     state: &SessionState, | ||||
|     merchant_id: common_utils::id_type::MerchantId, | ||||
| @ -182,6 +183,7 @@ pub async fn create_new_authentication( | ||||
|     profile_id: common_utils::id_type::ProfileId, | ||||
|     payment_id: Option<common_utils::id_type::PaymentId>, | ||||
|     merchant_connector_id: common_utils::id_type::MerchantConnectorAccountId, | ||||
|     organization_id: common_utils::id_type::OrganizationId, | ||||
| ) -> RouterResult<storage::Authentication> { | ||||
|     let authentication_id = | ||||
|         common_utils::generate_id_with_default_len(consts::AUTHENTICATION_ID_PREFIX); | ||||
| @ -220,6 +222,7 @@ pub async fn create_new_authentication( | ||||
|         directory_server_id: None, | ||||
|         acquirer_country_code: None, | ||||
|         service_details: None, | ||||
|         organization_id, | ||||
|     }; | ||||
|     state | ||||
|         .store | ||||
|  | ||||
		Reference in New Issue
	
	Block a user