mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-10-31 18:17:13 +08:00 
			
		
		
		
	feat(payment_method_validate): add new operation to payments_operation_core for payment method validation (#53)
Co-authored-by: Arun Raj M <jarnura47@gmail.com>
This commit is contained in:
		| @ -15,6 +15,7 @@ enum Derives { | ||||
|     Canceldata, | ||||
|     Capturedata, | ||||
|     Start, | ||||
|     Verify, | ||||
|     Session, | ||||
| } | ||||
|  | ||||
| @ -30,6 +31,7 @@ impl From<String> for Derives { | ||||
|             "capture" => Self::Capture, | ||||
|             "capturedata" => Self::Capturedata, | ||||
|             "start" => Self::Start, | ||||
|             "verify" => Self::Verify, | ||||
|             "session" => Self::Session, | ||||
|             _ => Self::Authorize, | ||||
|         } | ||||
| @ -100,6 +102,7 @@ impl Conversion { | ||||
|             Derives::Capture => syn::Ident::new("PaymentsCaptureRequest", Span::call_site()), | ||||
|             Derives::Capturedata => syn::Ident::new("PaymentsCaptureData", Span::call_site()), | ||||
|             Derives::Start => syn::Ident::new("PaymentsStartRequest", Span::call_site()), | ||||
|             Derives::Verify => syn::Ident::new("VerifyRequest", Span::call_site()), | ||||
|             Derives::Session => syn::Ident::new("PaymentsSessionRequest", Span::call_site()), | ||||
|         } | ||||
|     } | ||||
| @ -288,7 +291,8 @@ pub fn operation_derive_inner(token: proc_macro::TokenStream) -> proc_macro::Tok | ||||
|                         PaymentsRetrieveRequest, | ||||
|                         PaymentsRequest, | ||||
|                         PaymentsStartRequest, | ||||
|                         PaymentsSessionRequest | ||||
|                         PaymentsSessionRequest, | ||||
|                         VerifyRequest | ||||
|                     } | ||||
|                 }; | ||||
|                 #trait_derive | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Nishant Joshi
					Nishant Joshi