Skip to content

Commit

Permalink
fix(refunds): modify refund fields to process updating of refund_reas…
Browse files Browse the repository at this point in the history
…on (#1544)

Co-authored-by: Sanchith Hegde <[email protected]>
  • Loading branch information
kritikmodi and SanchithHegde authored Jul 16, 2023
1 parent 91f969a commit 9890570
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions crates/diesel_models/src/refund.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down
2 changes: 1 addition & 1 deletion crates/router/src/core/refunds.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 9890570

Please sign in to comment.