mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-10-31 10:06:32 +08:00 
			
		
		
		
	feat(router): add external authentication webhooks flow (#4339)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
		 Sai Harsha Vardhan
					Sai Harsha Vardhan
				
			
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			 GitHub
						GitHub
					
				
			
						parent
						
							d4dbaadb06
						
					
				
				
					commit
					00cd96d097
				
			| @ -38,6 +38,7 @@ pub enum IncomingWebhookEvent { | ||||
|     MandateActive, | ||||
|     MandateRevoked, | ||||
|     EndpointVerification, | ||||
|     ExternalAuthenticationARes, | ||||
| } | ||||
|  | ||||
| pub enum WebhookFlow { | ||||
| @ -48,6 +49,7 @@ pub enum WebhookFlow { | ||||
|     ReturnResponse, | ||||
|     BankTransfer, | ||||
|     Mandate, | ||||
|     ExternalAuthentication, | ||||
| } | ||||
|  | ||||
| #[derive(Clone, Debug, Eq, PartialEq, Serialize, Deserialize)] | ||||
| @ -116,6 +118,7 @@ impl From<IncomingWebhookEvent> for WebhookFlow { | ||||
|             IncomingWebhookEvent::EndpointVerification => Self::ReturnResponse, | ||||
|             IncomingWebhookEvent::SourceChargeable | ||||
|             | IncomingWebhookEvent::SourceTransactionCreated => Self::BankTransfer, | ||||
|             IncomingWebhookEvent::ExternalAuthenticationARes => Self::ExternalAuthentication, | ||||
|         } | ||||
|     } | ||||
| } | ||||
| @ -134,11 +137,18 @@ pub enum MandateIdType { | ||||
|     ConnectorMandateId(String), | ||||
| } | ||||
|  | ||||
| #[derive(Clone)] | ||||
| pub enum AuthenticationIdType { | ||||
|     AuthenticationId(String), | ||||
|     ConnectorAuthenticationId(String), | ||||
| } | ||||
|  | ||||
| #[derive(Clone)] | ||||
| pub enum ObjectReferenceId { | ||||
|     PaymentId(payments::PaymentIdType), | ||||
|     RefundId(RefundIdType), | ||||
|     MandateId(MandateIdType), | ||||
|     ExternalAuthenticationID(AuthenticationIdType), | ||||
| } | ||||
|  | ||||
| pub struct IncomingWebhookDetails { | ||||
|  | ||||
		Reference in New Issue
	
	Block a user