mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 12:06:56 +08:00
refactor(core): removed the processing status for payment_method_status (#4213)
This commit is contained in:
@ -1253,7 +1253,6 @@ pub enum PaymentMethodStatus {
|
||||
impl From<AttemptStatus> for PaymentMethodStatus {
|
||||
fn from(attempt_status: AttemptStatus) -> Self {
|
||||
match attempt_status {
|
||||
AttemptStatus::Charged | AttemptStatus::Authorized => Self::Active,
|
||||
AttemptStatus::Failure => Self::Inactive,
|
||||
AttemptStatus::Voided
|
||||
| AttemptStatus::Started
|
||||
@ -1275,7 +1274,9 @@ impl From<AttemptStatus> for PaymentMethodStatus {
|
||||
| AttemptStatus::PartialCharged
|
||||
| AttemptStatus::PartialChargedAndChargeable
|
||||
| AttemptStatus::ConfirmationAwaited
|
||||
| AttemptStatus::DeviceDataCollectionPending => Self::Processing,
|
||||
| AttemptStatus::DeviceDataCollectionPending
|
||||
| AttemptStatus::Charged
|
||||
| AttemptStatus::Authorized => Self::Active,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user