mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-10-31 01:57:45 +08:00 
			
		
		
		
	feat(payments_v2): implement payments capture v2 (#6722)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
		| @ -11,7 +11,7 @@ use super::{ | ||||
| ))] | ||||
| use crate::payment_methods::CustomerPaymentMethodsListResponse; | ||||
| #[cfg(all(feature = "v2", feature = "payment_methods_v2"))] | ||||
| use crate::payment_methods::CustomerPaymentMethodsListResponse; | ||||
| use crate::{events, payment_methods::CustomerPaymentMethodsListResponse}; | ||||
| use crate::{ | ||||
|     payment_methods::{ | ||||
|         CustomerDefaultPaymentMethodResponse, DefaultPaymentMethod, ListCountriesCurrenciesRequest, | ||||
| @ -418,3 +418,12 @@ impl ApiEventMetric for PaymentStartRedirectionRequest { | ||||
|         }) | ||||
|     } | ||||
| } | ||||
|  | ||||
| #[cfg(feature = "v2")] | ||||
| impl ApiEventMetric for events::PaymentsCaptureResponse { | ||||
|     fn get_api_event_type(&self) -> Option<ApiEventsType> { | ||||
|         Some(ApiEventsType::Payment { | ||||
|             payment_id: self.id.clone(), | ||||
|         }) | ||||
|     } | ||||
| } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Narayan Bhat
					Narayan Bhat