mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 04:04:55 +08:00
feat(router): added incoming dispute webhooks flow (#769)
Co-authored-by: Sangamesh <sangamesh.kulkarni@juspay.in> Co-authored-by: sai harsha <sai.harsha@sai.harsha-MacBookPro> Co-authored-by: Arun Raj M <jarnura47@gmail.com>
This commit is contained in:
@ -267,6 +267,13 @@ pub enum EventType {
|
||||
PaymentSucceeded,
|
||||
RefundSucceeded,
|
||||
RefundFailed,
|
||||
DisputeOpened,
|
||||
DisputeExpired,
|
||||
DisputeAccepted,
|
||||
DisputeCancelled,
|
||||
DisputeChallenged,
|
||||
DisputeWon,
|
||||
DisputeLost,
|
||||
}
|
||||
|
||||
#[derive(
|
||||
@ -767,3 +774,51 @@ impl From<AttemptStatus> for IntentStatus {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(
|
||||
Clone,
|
||||
Default,
|
||||
Debug,
|
||||
Eq,
|
||||
Hash,
|
||||
PartialEq,
|
||||
serde::Deserialize,
|
||||
serde::Serialize,
|
||||
strum::Display,
|
||||
strum::EnumString,
|
||||
frunk::LabelledGeneric,
|
||||
ToSchema,
|
||||
)]
|
||||
pub enum DisputeStage {
|
||||
PreDispute,
|
||||
#[default]
|
||||
Dispute,
|
||||
PreArbitration,
|
||||
}
|
||||
|
||||
#[derive(
|
||||
Clone,
|
||||
Debug,
|
||||
Default,
|
||||
Eq,
|
||||
Hash,
|
||||
PartialEq,
|
||||
serde::Deserialize,
|
||||
serde::Serialize,
|
||||
strum::Display,
|
||||
strum::EnumString,
|
||||
frunk::LabelledGeneric,
|
||||
ToSchema,
|
||||
)]
|
||||
pub enum DisputeStatus {
|
||||
#[default]
|
||||
DisputeOpened,
|
||||
DisputeExpired,
|
||||
DisputeAccepted,
|
||||
DisputeCancelled,
|
||||
DisputeChallenged,
|
||||
// dispute has been successfully challenged by the merchant
|
||||
DisputeWon,
|
||||
// dispute has been unsuccessfully challenged
|
||||
DisputeLost,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user