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
fix(router): [Iatapay] add CLEARED refund status (#5231)
AkshayaFoigerd4813b99500d
diff --git a/crates/router/src/connector/iatapay/transformers.rs b/crates/router/src/connector/iatapay/transformers.rsindex 1d597a3dc8..71aeed0f7d 100644--- a/crates/router/src/connector/iatapay/transformers.rs+++ b/crates/router/src/connector/iatapay/transformers.rs@@ -462,6 +462,7 @@ pub enum RefundStatus {Initiated,Authorized,Settled,+ Cleared,Failed,}@@ -474,6 +475,7 @@ impl From<RefundStatus> for enums::RefundStatus {RefundStatus::Initiated => Self::Pending,RefundStatus::Authorized => Self::Pending,RefundStatus::Settled => Self::Success,+ RefundStatus::Cleared => Self::Success,}}}@@ -640,9 +642,9 @@ impl TryFrom<IatapayWebhookResponse> for api::IncomingWebhookEvent {| IatapayWebhookStatus::Unknown => Ok(Self::EventNotSupported),},IatapayWebhookResponse::IatapayRefundWebhookBody(wh_body) => match wh_body.status {- IatapayRefundWebhookStatus::Authorized | IatapayRefundWebhookStatus::Settled => {- Ok(Self::RefundSuccess)- }+ IatapayRefundWebhookStatus::Cleared+ | IatapayRefundWebhookStatus::Authorized+ | IatapayRefundWebhookStatus::Settled => Ok(Self::RefundSuccess),IatapayRefundWebhookStatus::Failed => Ok(Self::RefundFailure),IatapayRefundWebhookStatus::Created| IatapayRefundWebhookStatus::Locked@@ -678,6 +680,7 @@ pub enum IatapayRefundWebhookStatus {Authorized,Settled,Failed,+ Cleared,Locked,#[serde(other)]Unknown,