mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 19:46:48 +08:00
feat(core): add webhook setup event handler (#9420)
This commit is contained in:
@ -66,6 +66,7 @@ pub enum IncomingWebhookEvent {
|
||||
RecoveryPaymentPending,
|
||||
#[cfg(all(feature = "revenue_recovery", feature = "v2"))]
|
||||
RecoveryInvoiceCancel,
|
||||
SetupWebhook,
|
||||
}
|
||||
|
||||
impl IncomingWebhookEvent {
|
||||
@ -143,6 +144,7 @@ pub enum WebhookFlow {
|
||||
FraudCheck,
|
||||
#[cfg(all(feature = "revenue_recovery", feature = "v2"))]
|
||||
Recovery,
|
||||
Setup,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, Eq, PartialEq, Serialize, Deserialize)]
|
||||
@ -297,6 +299,7 @@ impl From<IncomingWebhookEvent> for WebhookFlow {
|
||||
| IncomingWebhookEvent::RecoveryPaymentFailure
|
||||
| IncomingWebhookEvent::RecoveryPaymentPending
|
||||
| IncomingWebhookEvent::RecoveryPaymentSuccess => Self::Recovery,
|
||||
IncomingWebhookEvent::SetupWebhook => Self::Setup,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user