mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 00:49:42 +08:00
feat(connector): [Stripe] Add support for refund webhooks (#1488)
This commit is contained in:
committed by
GitHub
parent
82545555d7
commit
e6529b6a63
@ -41,21 +41,22 @@ pub enum WebhookFlow {
|
||||
impl From<IncomingWebhookEvent> for WebhookFlow {
|
||||
fn from(evt: IncomingWebhookEvent) -> Self {
|
||||
match evt {
|
||||
IncomingWebhookEvent::PaymentIntentFailure => Self::Payment,
|
||||
IncomingWebhookEvent::PaymentIntentSuccess => Self::Payment,
|
||||
IncomingWebhookEvent::PaymentIntentProcessing => Self::Payment,
|
||||
IncomingWebhookEvent::PaymentActionRequired => Self::Payment,
|
||||
IncomingWebhookEvent::PaymentIntentPartiallyFunded => Self::Payment,
|
||||
IncomingWebhookEvent::PaymentIntentFailure
|
||||
| IncomingWebhookEvent::PaymentIntentSuccess
|
||||
| IncomingWebhookEvent::PaymentIntentProcessing
|
||||
| IncomingWebhookEvent::PaymentActionRequired
|
||||
| IncomingWebhookEvent::PaymentIntentPartiallyFunded => Self::Payment,
|
||||
IncomingWebhookEvent::EventNotSupported => Self::ReturnResponse,
|
||||
IncomingWebhookEvent::RefundSuccess => Self::Refund,
|
||||
IncomingWebhookEvent::RefundFailure => Self::Refund,
|
||||
IncomingWebhookEvent::DisputeOpened => Self::Dispute,
|
||||
IncomingWebhookEvent::DisputeAccepted => Self::Dispute,
|
||||
IncomingWebhookEvent::DisputeExpired => Self::Dispute,
|
||||
IncomingWebhookEvent::DisputeCancelled => Self::Dispute,
|
||||
IncomingWebhookEvent::DisputeChallenged => Self::Dispute,
|
||||
IncomingWebhookEvent::DisputeWon => Self::Dispute,
|
||||
IncomingWebhookEvent::DisputeLost => Self::Dispute,
|
||||
IncomingWebhookEvent::RefundSuccess | IncomingWebhookEvent::RefundFailure => {
|
||||
Self::Refund
|
||||
}
|
||||
IncomingWebhookEvent::DisputeOpened
|
||||
| IncomingWebhookEvent::DisputeAccepted
|
||||
| IncomingWebhookEvent::DisputeExpired
|
||||
| IncomingWebhookEvent::DisputeCancelled
|
||||
| IncomingWebhookEvent::DisputeChallenged
|
||||
| IncomingWebhookEvent::DisputeWon
|
||||
| IncomingWebhookEvent::DisputeLost => Self::Dispute,
|
||||
IncomingWebhookEvent::EndpointVerification => Self::ReturnResponse,
|
||||
IncomingWebhookEvent::SourceChargeable
|
||||
| IncomingWebhookEvent::SourceTransactionCreated => Self::BankTransfer,
|
||||
|
||||
Reference in New Issue
Block a user