mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 04:04:55 +08:00
refactor: attempt and intent status (#210)
This commit is contained in:
committed by
GitHub
parent
c9276a30d7
commit
279961e169
@ -15,9 +15,9 @@
|
||||
pub enum AttemptStatus {
|
||||
Started,
|
||||
AuthenticationFailed,
|
||||
JuspayDeclined,
|
||||
PendingVbv,
|
||||
VbvSuccessful,
|
||||
RouterDeclined,
|
||||
AuthenticationPending,
|
||||
AuthenticationSuccessful,
|
||||
Authorized,
|
||||
AuthorizationFailed,
|
||||
Charged,
|
||||
@ -506,11 +506,11 @@ impl From<AttemptStatus> for IntentStatus {
|
||||
AttemptStatus::PaymentMethodAwaited => IntentStatus::RequiresPaymentMethod,
|
||||
|
||||
AttemptStatus::Authorized => IntentStatus::RequiresCapture,
|
||||
AttemptStatus::PendingVbv => IntentStatus::RequiresCustomerAction,
|
||||
AttemptStatus::AuthenticationPending => IntentStatus::RequiresCustomerAction,
|
||||
|
||||
AttemptStatus::PartialCharged
|
||||
| AttemptStatus::Started
|
||||
| AttemptStatus::VbvSuccessful
|
||||
| AttemptStatus::AuthenticationSuccessful
|
||||
| AttemptStatus::Authorizing
|
||||
| AttemptStatus::CodInitiated
|
||||
| AttemptStatus::VoidInitiated
|
||||
@ -520,7 +520,7 @@ impl From<AttemptStatus> for IntentStatus {
|
||||
AttemptStatus::AuthenticationFailed
|
||||
| AttemptStatus::AuthorizationFailed
|
||||
| AttemptStatus::VoidFailed
|
||||
| AttemptStatus::JuspayDeclined
|
||||
| AttemptStatus::RouterDeclined
|
||||
| AttemptStatus::CaptureFailed
|
||||
| AttemptStatus::Failure => IntentStatus::Failed,
|
||||
AttemptStatus::Voided => IntentStatus::Cancelled,
|
||||
|
||||
Reference in New Issue
Block a user