Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
refactor(api_models): remove unused mapping of attempt status to intent status (#1127)
Abhishek Marrivagu45ccc410eacd
diff --git a/crates/api_models/src/enums.rs b/crates/api_models/src/enums.rsindex e75693c95e..ae13a34d10 100644--- a/crates/api_models/src/enums.rs+++ b/crates/api_models/src/enums.rs@@ -850,39 +850,6 @@ pub enum CardNetwork {Maestro,}-impl From<AttemptStatus> for IntentStatus {- fn from(s: AttemptStatus) -> Self {- match s {- AttemptStatus::Charged | AttemptStatus::AutoRefunded => Self::Succeeded,-- AttemptStatus::ConfirmationAwaited => Self::RequiresConfirmation,- AttemptStatus::PaymentMethodAwaited => Self::RequiresPaymentMethod,-- AttemptStatus::Authorized => Self::RequiresCapture,- AttemptStatus::AuthenticationPending | AttemptStatus::DeviceDataCollectionPending => {- Self::RequiresCustomerAction- }- AttemptStatus::Unresolved => Self::RequiresMerchantAction,- AttemptStatus::PartialCharged- | AttemptStatus::Started- | AttemptStatus::AuthenticationSuccessful- | AttemptStatus::Authorizing- | AttemptStatus::CodInitiated- | AttemptStatus::VoidInitiated- | AttemptStatus::CaptureInitiated- | AttemptStatus::Pending => Self::Processing,-- AttemptStatus::AuthenticationFailed- | AttemptStatus::AuthorizationFailed- | AttemptStatus::VoidFailed- | AttemptStatus::RouterDeclined- | AttemptStatus::CaptureFailed- | AttemptStatus::Failure => Self::Failed,- AttemptStatus::Voided => Self::Cancelled,- }- }-}-#[derive(Clone,Default,