mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-10-31 10:06:32 +08:00 
			
		
		
		
	feat: add resources and granular permission groups for reconciliation (#6591)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
		| @ -1,6 +1,9 @@ | ||||
| use common_utils::events::{ApiEventMetric, ApiEventsType}; | ||||
| use masking::PeekInterface; | ||||
|  | ||||
| use crate::recon::{ReconStatusResponse, ReconTokenResponse, ReconUpdateMerchantRequest}; | ||||
| use crate::recon::{ | ||||
|     ReconStatusResponse, ReconTokenResponse, ReconUpdateMerchantRequest, VerifyTokenResponse, | ||||
| }; | ||||
|  | ||||
| impl ApiEventMetric for ReconUpdateMerchantRequest { | ||||
|     fn get_api_event_type(&self) -> Option<ApiEventsType> { | ||||
| @ -19,3 +22,11 @@ impl ApiEventMetric for ReconStatusResponse { | ||||
|         Some(ApiEventsType::Recon) | ||||
|     } | ||||
| } | ||||
|  | ||||
| impl ApiEventMetric for VerifyTokenResponse { | ||||
|     fn get_api_event_type(&self) -> Option<ApiEventsType> { | ||||
|         Some(ApiEventsType::User { | ||||
|             user_id: self.user_email.peek().to_string(), | ||||
|         }) | ||||
|     } | ||||
| } | ||||
|  | ||||
| @ -1,11 +1,7 @@ | ||||
| use common_utils::events::{ApiEventMetric, ApiEventsType}; | ||||
| #[cfg(feature = "recon")] | ||||
| use masking::PeekInterface; | ||||
|  | ||||
| #[cfg(feature = "dummy_connector")] | ||||
| use crate::user::sample_data::SampleDataRequest; | ||||
| #[cfg(feature = "recon")] | ||||
| use crate::user::VerifyTokenResponse; | ||||
| use crate::user::{ | ||||
|     dashboard_metadata::{ | ||||
|         GetMetaDataRequest, GetMetaDataResponse, GetMultipleMetaDataPayload, SetMetaDataRequest, | ||||
| @ -23,15 +19,6 @@ use crate::user::{ | ||||
|     VerifyTotpRequest, | ||||
| }; | ||||
|  | ||||
| #[cfg(feature = "recon")] | ||||
| impl ApiEventMetric for VerifyTokenResponse { | ||||
|     fn get_api_event_type(&self) -> Option<ApiEventsType> { | ||||
|         Some(ApiEventsType::User { | ||||
|             user_id: self.user_email.peek().to_string(), | ||||
|         }) | ||||
|     } | ||||
| } | ||||
|  | ||||
| common_utils::impl_api_event_type!( | ||||
|     Miscellaneous, | ||||
|     ( | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Kashif
					Kashif