From e91add3037be5fe5e01a8ce638237e45b4318e5c Mon Sep 17 00:00:00 2001 From: Sampras Lopes Date: Fri, 5 Jul 2024 13:57:10 +0530 Subject: [PATCH] fix(refunds): Add aliases on refund status for backwards compatibility with drainer --- crates/common_enums/src/enums.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/crates/common_enums/src/enums.rs b/crates/common_enums/src/enums.rs index 36cc0bcb11c9..87b436ca9225 100644 --- a/crates/common_enums/src/enums.rs +++ b/crates/common_enums/src/enums.rs @@ -1574,11 +1574,16 @@ pub enum PaymentType { #[strum(serialize_all = "snake_case")] #[serde(rename_all = "snake_case")] pub enum RefundStatus { + #[serde(alias = "Failure")] Failure, + #[serde(alias = "ManualReview")] ManualReview, #[default] + #[serde(alias = "Pending")] Pending, + #[serde(alias = "Success")] Success, + #[serde(alias = "TransactionFailure")] TransactionFailure, }