feat(core): add webhook setup event handler (#9420)

This commit is contained in:
Sakil Mostak
2025-09-22 12:53:00 +05:30
committed by GitHub
parent 2553780051
commit 740f3af643
5 changed files with 39 additions and 1 deletions

View File

@ -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,
}
}
}