mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-10-31 10:06:32 +08:00 
			
		
		
		
	feat(core): add hypersense integration api (#7218)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
		
							
								
								
									
										30
									
								
								crates/api_models/src/events/external_service_auth.rs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								crates/api_models/src/events/external_service_auth.rs
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,30 @@ | ||||
| use common_utils::events::{ApiEventMetric, ApiEventsType}; | ||||
|  | ||||
| use crate::external_service_auth::{ | ||||
|     ExternalSignoutTokenRequest, ExternalTokenResponse, ExternalVerifyTokenRequest, | ||||
|     ExternalVerifyTokenResponse, | ||||
| }; | ||||
|  | ||||
| impl ApiEventMetric for ExternalTokenResponse { | ||||
|     fn get_api_event_type(&self) -> Option<ApiEventsType> { | ||||
|         Some(ApiEventsType::ExternalServiceAuth) | ||||
|     } | ||||
| } | ||||
|  | ||||
| impl ApiEventMetric for ExternalVerifyTokenRequest { | ||||
|     fn get_api_event_type(&self) -> Option<ApiEventsType> { | ||||
|         Some(ApiEventsType::ExternalServiceAuth) | ||||
|     } | ||||
| } | ||||
|  | ||||
| impl ApiEventMetric for ExternalVerifyTokenResponse { | ||||
|     fn get_api_event_type(&self) -> Option<ApiEventsType> { | ||||
|         Some(ApiEventsType::ExternalServiceAuth) | ||||
|     } | ||||
| } | ||||
|  | ||||
| impl ApiEventMetric for ExternalSignoutTokenRequest { | ||||
|     fn get_api_event_type(&self) -> Option<ApiEventsType> { | ||||
|         Some(ApiEventsType::ExternalServiceAuth) | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user
	 Uzair Khan
					Uzair Khan