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(refunds): modify refund fields to process updating of refund_reason (#1544)
Kritik Modi9890570274e3
diff --git a/crates/diesel_models/src/refund.rs b/crates/diesel_models/src/refund.rsindex b0b1f03f20..595d54ea7f 100644--- a/crates/diesel_models/src/refund.rs+++ b/crates/diesel_models/src/refund.rs@@ -190,6 +190,7 @@ impl RefundUpdate {refund_error_code: pa_update.refund_error_code.or(source.refund_error_code),refund_arn: pa_update.refund_arn.or(source.refund_arn),metadata: pa_update.metadata.or(source.metadata),+ refund_reason: pa_update.refund_reason.or(source.refund_reason),..source}}diff --git a/crates/router/src/core/refunds.rs b/crates/router/src/core/refunds.rsindex d4ee45dce4..b0dc979b7c 100644--- a/crates/router/src/core/refunds.rs+++ b/crates/router/src/core/refunds.rs@@ -700,7 +700,7 @@ impl ForeignFrom<storage::Refund> for api::RefundResponse {refund_id: refund.refund_id,amount: refund.refund_amount,currency: refund.currency.to_string(),- reason: refund.description,+ reason: refund.refund_reason,status: refund.refund_status.foreign_into(),metadata: refund.metadata,error_message: refund.refund_error_message,