fix(router): fix refund error code diesel field ordering (#458)

This commit is contained in:
ItsMeShashank
2023-01-23 12:12:55 +05:30
committed by GitHub
parent 9fe8ebcf3c
commit 073ffb18bd
2 changed files with 3 additions and 3 deletions

View File

@ -25,7 +25,6 @@ pub struct Refund {
pub refund_status: storage_enums::RefundStatus,
pub sent_to_gateway: bool,
pub refund_error_message: Option<String>,
pub refund_error_code: Option<String>,
pub metadata: Option<serde_json::Value>,
pub refund_arn: Option<String>,
pub created_at: PrimitiveDateTime,
@ -33,6 +32,7 @@ pub struct Refund {
pub description: Option<String>,
pub attempt_id: String,
pub refund_reason: Option<String>,
pub refund_error_code: Option<String>,
}
#[derive(
@ -104,10 +104,10 @@ pub struct RefundUpdateInternal {
refund_status: Option<storage_enums::RefundStatus>,
sent_to_gateway: Option<bool>,
refund_error_message: Option<String>,
refund_error_code: Option<String>,
refund_arn: Option<String>,
metadata: Option<serde_json::Value>,
refund_reason: Option<String>,
refund_error_code: Option<String>,
}
impl From<RefundUpdate> for RefundUpdateInternal {

View File

@ -322,7 +322,6 @@ diesel::table! {
refund_status -> RefundStatus,
sent_to_gateway -> Bool,
refund_error_message -> Nullable<Text>,
refund_error_code -> Nullable<Varchar>,
metadata -> Nullable<Json>,
refund_arn -> Nullable<Varchar>,
created_at -> Timestamp,
@ -330,6 +329,7 @@ diesel::table! {
description -> Nullable<Varchar>,
attempt_id -> Varchar,
refund_reason -> Nullable<Varchar>,
refund_error_code -> Nullable<Text>,
}
}