mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 12:15:40 +08:00
chore: add lints in workspace cargo config (#223)
This commit is contained in:
@ -501,13 +501,13 @@ pub enum Connector {
|
||||
impl From<AttemptStatus> for IntentStatus {
|
||||
fn from(s: AttemptStatus) -> Self {
|
||||
match s {
|
||||
AttemptStatus::Charged | AttemptStatus::AutoRefunded => IntentStatus::Succeeded,
|
||||
AttemptStatus::Charged | AttemptStatus::AutoRefunded => Self::Succeeded,
|
||||
|
||||
AttemptStatus::ConfirmationAwaited => IntentStatus::RequiresConfirmation,
|
||||
AttemptStatus::PaymentMethodAwaited => IntentStatus::RequiresPaymentMethod,
|
||||
AttemptStatus::ConfirmationAwaited => Self::RequiresConfirmation,
|
||||
AttemptStatus::PaymentMethodAwaited => Self::RequiresPaymentMethod,
|
||||
|
||||
AttemptStatus::Authorized => IntentStatus::RequiresCapture,
|
||||
AttemptStatus::AuthenticationPending => IntentStatus::RequiresCustomerAction,
|
||||
AttemptStatus::Authorized => Self::RequiresCapture,
|
||||
AttemptStatus::AuthenticationPending => Self::RequiresCustomerAction,
|
||||
|
||||
AttemptStatus::PartialCharged
|
||||
| AttemptStatus::Started
|
||||
@ -516,15 +516,15 @@ impl From<AttemptStatus> for IntentStatus {
|
||||
| AttemptStatus::CodInitiated
|
||||
| AttemptStatus::VoidInitiated
|
||||
| AttemptStatus::CaptureInitiated
|
||||
| AttemptStatus::Pending => IntentStatus::Processing,
|
||||
| AttemptStatus::Pending => Self::Processing,
|
||||
|
||||
AttemptStatus::AuthenticationFailed
|
||||
| AttemptStatus::AuthorizationFailed
|
||||
| AttemptStatus::VoidFailed
|
||||
| AttemptStatus::RouterDeclined
|
||||
| AttemptStatus::CaptureFailed
|
||||
| AttemptStatus::Failure => IntentStatus::Failed,
|
||||
AttemptStatus::Voided => IntentStatus::Cancelled,
|
||||
| AttemptStatus::Failure => Self::Failed,
|
||||
AttemptStatus::Voided => Self::Cancelled,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user