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(connector): [Airwallex] Fix refunds (#1468)
Shankar Singh C1b2841be5997
diff --git a/crates/router/src/connector/airwallex/transformers.rs b/crates/router/src/connector/airwallex/transformers.rsindex 371fd19c60..13a4db9b24 100644--- a/crates/router/src/connector/airwallex/transformers.rs+++ b/crates/router/src/connector/airwallex/transformers.rs@@ -427,6 +427,7 @@ impl<F> TryFrom<&types::RefundsRouterData<F>> for AirwallexRefundRequest {// Type definition for Refund Response#[allow(dead_code)]#[derive(Debug, Serialize, Default, Deserialize, Clone)]+#[serde(rename_all = "SCREAMING_SNAKE_CASE")]pub enum RefundStatus {Succeeded,Failed,@@ -448,7 +449,7 @@ impl From<RefundStatus> for enums::RefundStatus {#[derive(Default, Debug, Clone, Serialize, Deserialize)]pub struct RefundResponse {//A unique number that tags a credit or debit card transaction when it goes from the merchant's bank through to the cardholder's bank.- acquirer_reference_number: String,+ acquirer_reference_number: Option<String>,amount: f32,//Unique identifier for the Refundid: String,