mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 11:24:45 +08:00
feat(router): add support for multiple partial capture (#1721)
Co-authored-by: hrithikeshvm <vmhrithikesh@gmail.com> Co-authored-by: Arun Raj M <jarnura47@gmail.com>
This commit is contained in:
@ -85,6 +85,34 @@ pub enum AuthenticationType {
|
||||
NoThreeDs,
|
||||
}
|
||||
|
||||
#[derive(
|
||||
Clone,
|
||||
Copy,
|
||||
Debug,
|
||||
Default,
|
||||
Eq,
|
||||
PartialEq,
|
||||
serde::Deserialize,
|
||||
serde::Serialize,
|
||||
strum::Display,
|
||||
strum::EnumString,
|
||||
Hash,
|
||||
)]
|
||||
#[router_derive::diesel_enum(storage_type = "pg_enum")]
|
||||
#[serde(rename_all = "snake_case")]
|
||||
#[strum(serialize_all = "snake_case")]
|
||||
pub enum CaptureStatus {
|
||||
// Capture request initiated
|
||||
#[default]
|
||||
Started,
|
||||
// Capture request was successful
|
||||
Charged,
|
||||
// Capture is pending at connector side
|
||||
Pending,
|
||||
// Capture request failed
|
||||
Failed,
|
||||
}
|
||||
|
||||
#[derive(
|
||||
Clone,
|
||||
Copy,
|
||||
@ -756,6 +784,7 @@ pub enum IntentStatus {
|
||||
#[default]
|
||||
RequiresConfirmation,
|
||||
RequiresCapture,
|
||||
PartiallyCaptured,
|
||||
}
|
||||
|
||||
#[derive(
|
||||
|
||||
Reference in New Issue
Block a user