mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-10-31 01:57:45 +08:00 
			
		
		
		
	feat(payment_methods_v2): Payment method Create API (#5812)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
		| @ -152,3 +152,21 @@ impl<T> ApiEventMetric for MetricsResponse<T> { | ||||
|         Some(ApiEventsType::Miscellaneous) | ||||
|     } | ||||
| } | ||||
|  | ||||
| #[cfg(all(feature = "v2", feature = "payment_methods_v2"))] | ||||
| impl ApiEventMetric for PaymentMethodIntentConfirmInternal { | ||||
|     fn get_api_event_type(&self) -> Option<ApiEventsType> { | ||||
|         Some(ApiEventsType::PaymentMethod { | ||||
|             payment_method_id: self.id.clone(), | ||||
|             payment_method: Some(self.payment_method), | ||||
|             payment_method_type: Some(self.payment_method_type), | ||||
|         }) | ||||
|     } | ||||
| } | ||||
|  | ||||
| #[cfg(all(feature = "v2", feature = "payment_methods_v2"))] | ||||
| impl ApiEventMetric for PaymentMethodIntentCreate { | ||||
|     fn get_api_event_type(&self) -> Option<ApiEventsType> { | ||||
|         Some(ApiEventsType::PaymentMethodCreate) | ||||
|     } | ||||
| } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Sarthak Soni
					Sarthak Soni