Skip to content

Commit

Permalink
refactor(connector): [Authorizedotnet] fix refund status mapping (#7208)
Browse files Browse the repository at this point in the history
  • Loading branch information
swangi-kumari authored Feb 10, 2025
1 parent 76c3459 commit bfcaf00
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/router/src/connector/authorizedotnet/transformers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1361,11 +1361,12 @@ impl<F> TryFrom<&AuthorizedotnetRouterData<&types::RefundsRouterData<F>>> for Cr
impl From<AuthorizedotnetRefundStatus> for enums::RefundStatus {
fn from(item: AuthorizedotnetRefundStatus) -> Self {
match item {
AuthorizedotnetRefundStatus::Approved => Self::Success,
AuthorizedotnetRefundStatus::Declined | AuthorizedotnetRefundStatus::Error => {
Self::Failure
}
AuthorizedotnetRefundStatus::HeldForReview => Self::Pending,
AuthorizedotnetRefundStatus::Approved | AuthorizedotnetRefundStatus::HeldForReview => {
Self::Pending
}
}
}
}
Expand Down

0 comments on commit bfcaf00

Please sign in to comment.