mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 04:04:55 +08:00
feat(connector): add dispute webhooks for Stripe (#918)
This commit is contained in:
@ -31,11 +31,14 @@ pub struct DisputeResponse {
|
||||
/// Reason code of dispute sent by connector
|
||||
pub connector_reason_code: Option<String>,
|
||||
/// Evidence deadline of dispute sent by connector
|
||||
pub challenge_required_by: Option<String>,
|
||||
#[serde(with = "common_utils::custom_serde::iso8601::option")]
|
||||
pub challenge_required_by: Option<PrimitiveDateTime>,
|
||||
/// Dispute created time sent by connector
|
||||
pub created_at: Option<String>,
|
||||
#[serde(with = "common_utils::custom_serde::iso8601::option")]
|
||||
pub created_at: Option<PrimitiveDateTime>,
|
||||
/// Dispute updated time sent by connector
|
||||
pub updated_at: Option<String>,
|
||||
#[serde(with = "common_utils::custom_serde::iso8601::option")]
|
||||
pub updated_at: Option<PrimitiveDateTime>,
|
||||
/// Time at which dispute is received
|
||||
pub received_at: String,
|
||||
}
|
||||
|
||||
@ -880,6 +880,7 @@ impl From<AttemptStatus> for IntentStatus {
|
||||
frunk::LabelledGeneric,
|
||||
ToSchema,
|
||||
)]
|
||||
#[serde(rename_all = "snake_case")]
|
||||
pub enum DisputeStage {
|
||||
PreDispute,
|
||||
#[default]
|
||||
@ -901,6 +902,7 @@ pub enum DisputeStage {
|
||||
frunk::LabelledGeneric,
|
||||
ToSchema,
|
||||
)]
|
||||
#[serde(rename_all = "snake_case")]
|
||||
pub enum DisputeStatus {
|
||||
#[default]
|
||||
DisputeOpened,
|
||||
|
||||
Reference in New Issue
Block a user