mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 04:04:55 +08:00
feat(router): added support for optional defend dispute api call and added evidence submission flow for checkout connector (#979)
This commit is contained in:
committed by
GitHub
parent
0b7bc7bcd2
commit
4728d946e2
@ -122,6 +122,10 @@ pub struct SubmitEvidenceRequest {
|
||||
pub shipping_documentation: Option<String>,
|
||||
/// Tracking number of shipped product
|
||||
pub shipping_tracking_number: Option<String>,
|
||||
/// File Id showing two distinct transactions when customer claims a payment was charged twice
|
||||
pub invoice_showing_distinct_transactions: Option<String>,
|
||||
/// File Id of recurring transaction agreement
|
||||
pub recurring_transaction_agreement: Option<String>,
|
||||
/// Any additional supporting file
|
||||
pub uncategorized_file: Option<String>,
|
||||
/// Any additional evidence statements
|
||||
|
||||
@ -627,7 +627,10 @@ impl Connector {
|
||||
)
|
||||
}
|
||||
pub fn supports_file_storage_module(&self) -> bool {
|
||||
matches!(self, Self::Stripe)
|
||||
matches!(self, Self::Stripe | Self::Checkout)
|
||||
}
|
||||
pub fn requires_defend_dispute(&self) -> bool {
|
||||
matches!(self, Self::Checkout)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user