mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 01:27:31 +08:00
fix(router): fix refund error code diesel field ordering (#458)
This commit is contained in:
@ -25,7 +25,6 @@ pub struct Refund {
|
|||||||
pub refund_status: storage_enums::RefundStatus,
|
pub refund_status: storage_enums::RefundStatus,
|
||||||
pub sent_to_gateway: bool,
|
pub sent_to_gateway: bool,
|
||||||
pub refund_error_message: Option<String>,
|
pub refund_error_message: Option<String>,
|
||||||
pub refund_error_code: Option<String>,
|
|
||||||
pub metadata: Option<serde_json::Value>,
|
pub metadata: Option<serde_json::Value>,
|
||||||
pub refund_arn: Option<String>,
|
pub refund_arn: Option<String>,
|
||||||
pub created_at: PrimitiveDateTime,
|
pub created_at: PrimitiveDateTime,
|
||||||
@ -33,6 +32,7 @@ pub struct Refund {
|
|||||||
pub description: Option<String>,
|
pub description: Option<String>,
|
||||||
pub attempt_id: String,
|
pub attempt_id: String,
|
||||||
pub refund_reason: Option<String>,
|
pub refund_reason: Option<String>,
|
||||||
|
pub refund_error_code: Option<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(
|
#[derive(
|
||||||
@ -104,10 +104,10 @@ pub struct RefundUpdateInternal {
|
|||||||
refund_status: Option<storage_enums::RefundStatus>,
|
refund_status: Option<storage_enums::RefundStatus>,
|
||||||
sent_to_gateway: Option<bool>,
|
sent_to_gateway: Option<bool>,
|
||||||
refund_error_message: Option<String>,
|
refund_error_message: Option<String>,
|
||||||
refund_error_code: Option<String>,
|
|
||||||
refund_arn: Option<String>,
|
refund_arn: Option<String>,
|
||||||
metadata: Option<serde_json::Value>,
|
metadata: Option<serde_json::Value>,
|
||||||
refund_reason: Option<String>,
|
refund_reason: Option<String>,
|
||||||
|
refund_error_code: Option<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl From<RefundUpdate> for RefundUpdateInternal {
|
impl From<RefundUpdate> for RefundUpdateInternal {
|
||||||
|
|||||||
@ -322,7 +322,6 @@ diesel::table! {
|
|||||||
refund_status -> RefundStatus,
|
refund_status -> RefundStatus,
|
||||||
sent_to_gateway -> Bool,
|
sent_to_gateway -> Bool,
|
||||||
refund_error_message -> Nullable<Text>,
|
refund_error_message -> Nullable<Text>,
|
||||||
refund_error_code -> Nullable<Varchar>,
|
|
||||||
metadata -> Nullable<Json>,
|
metadata -> Nullable<Json>,
|
||||||
refund_arn -> Nullable<Varchar>,
|
refund_arn -> Nullable<Varchar>,
|
||||||
created_at -> Timestamp,
|
created_at -> Timestamp,
|
||||||
@ -330,6 +329,7 @@ diesel::table! {
|
|||||||
description -> Nullable<Varchar>,
|
description -> Nullable<Varchar>,
|
||||||
attempt_id -> Varchar,
|
attempt_id -> Varchar,
|
||||||
refund_reason -> Nullable<Varchar>,
|
refund_reason -> Nullable<Varchar>,
|
||||||
|
refund_error_code -> Nullable<Text>,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user