mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 09:38:33 +08:00
fix(refunds): Add aliases on refund status for backwards compatibility (#5216)
This commit is contained in:
@ -1574,11 +1574,16 @@ pub enum PaymentType {
|
|||||||
#[strum(serialize_all = "snake_case")]
|
#[strum(serialize_all = "snake_case")]
|
||||||
#[serde(rename_all = "snake_case")]
|
#[serde(rename_all = "snake_case")]
|
||||||
pub enum RefundStatus {
|
pub enum RefundStatus {
|
||||||
|
#[serde(alias = "Failure")]
|
||||||
Failure,
|
Failure,
|
||||||
|
#[serde(alias = "ManualReview")]
|
||||||
ManualReview,
|
ManualReview,
|
||||||
#[default]
|
#[default]
|
||||||
|
#[serde(alias = "Pending")]
|
||||||
Pending,
|
Pending,
|
||||||
|
#[serde(alias = "Success")]
|
||||||
Success,
|
Success,
|
||||||
|
#[serde(alias = "TransactionFailure")]
|
||||||
TransactionFailure,
|
TransactionFailure,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user