Skip to content

Commit

Permalink
Fix(connector): [BOA/CYBS] add cancelled status to refund response (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
AkshayaFoiger authored May 10, 2024
1 parent 24d1542 commit cf0e3da
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion crates/router/src/connector/bankofamerica/transformers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2598,7 +2598,9 @@ impl From<BankofamericaRefundStatus> for enums::RefundStatus {
BankofamericaRefundStatus::Succeeded | BankofamericaRefundStatus::Transmitted => {
Self::Success
}
BankofamericaRefundStatus::Failed | BankofamericaRefundStatus::Voided => Self::Failure,
BankofamericaRefundStatus::Cancelled
| BankofamericaRefundStatus::Failed
| BankofamericaRefundStatus::Voided => Self::Failure,
BankofamericaRefundStatus::Pending => Self::Pending,
}
}
Expand Down Expand Up @@ -2636,6 +2638,7 @@ pub enum BankofamericaRefundStatus {
Failed,
Pending,
Voided,
Cancelled,
}

#[derive(Debug, Deserialize, Serialize)]
Expand Down
5 changes: 4 additions & 1 deletion crates/router/src/connector/cybersource/transformers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2694,7 +2694,9 @@ impl From<CybersourceRefundStatus> for enums::RefundStatus {
CybersourceRefundStatus::Succeeded | CybersourceRefundStatus::Transmitted => {
Self::Success
}
CybersourceRefundStatus::Failed | CybersourceRefundStatus::Voided => Self::Failure,
CybersourceRefundStatus::Cancelled
| CybersourceRefundStatus::Failed
| CybersourceRefundStatus::Voided => Self::Failure,
CybersourceRefundStatus::Pending => Self::Pending,
}
}
Expand All @@ -2708,6 +2710,7 @@ pub enum CybersourceRefundStatus {
Failed,
Pending,
Voided,
Cancelled,
}

#[derive(Debug, Deserialize, Serialize)]
Expand Down

0 comments on commit cf0e3da

Please sign in to comment.