mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-10-31 10:06:32 +08:00 
			
		
		
		
	chore(analytics): adding dispute id to api log events (#3450)
This commit is contained in:
		 harsh-sharma-juspay
					harsh-sharma-juspay
				
			
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			 GitHub
						GitHub
					
				
			
						parent
						
							d6807abba4
						
					
				
				
					commit
					937aea906e
				
			| @ -1,5 +1,6 @@ | ||||
| pub mod connector_onboarding; | ||||
| pub mod customer; | ||||
| pub mod dispute; | ||||
| pub mod gsm; | ||||
| mod locker_migration; | ||||
| pub mod payment; | ||||
| @ -44,8 +45,6 @@ impl_misc_api_event_type!( | ||||
|     RetrievePaymentLinkResponse, | ||||
|     MandateListConstraints, | ||||
|     CreateFileResponse, | ||||
|     DisputeResponse, | ||||
|     SubmitEvidenceRequest, | ||||
|     MerchantConnectorResponse, | ||||
|     MerchantConnectorId, | ||||
|     MandateResponse, | ||||
|  | ||||
							
								
								
									
										25
									
								
								crates/api_models/src/events/dispute.rs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								crates/api_models/src/events/dispute.rs
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,25 @@ | ||||
| use common_utils::events::{ApiEventMetric, ApiEventsType}; | ||||
|  | ||||
| use super::{DisputeResponse, DisputeResponsePaymentsRetrieve, SubmitEvidenceRequest}; | ||||
|  | ||||
| impl ApiEventMetric for SubmitEvidenceRequest { | ||||
|     fn get_api_event_type(&self) -> Option<ApiEventsType> { | ||||
|         Some(ApiEventsType::Dispute { | ||||
|             dispute_id: self.dispute_id.clone(), | ||||
|         }) | ||||
|     } | ||||
| } | ||||
| impl ApiEventMetric for DisputeResponsePaymentsRetrieve { | ||||
|     fn get_api_event_type(&self) -> Option<ApiEventsType> { | ||||
|         Some(ApiEventsType::Dispute { | ||||
|             dispute_id: self.dispute_id.clone(), | ||||
|         }) | ||||
|     } | ||||
| } | ||||
| impl ApiEventMetric for DisputeResponse { | ||||
|     fn get_api_event_type(&self) -> Option<ApiEventsType> { | ||||
|         Some(ApiEventsType::Dispute { | ||||
|             dispute_id: self.dispute_id.clone(), | ||||
|         }) | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user