mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 19:46:48 +08:00
feat(dynamic_routing): integration of elimination routing for core flows (#6816)
Co-authored-by: Aprabhat19 <amishaprabhat@gmail.com> Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Co-authored-by: Amisha Prabhat <55580080+Aprabhat19@users.noreply.github.com> Co-authored-by: Chethan Rao <70657455+Chethan-rao@users.noreply.github.com>
This commit is contained in:
@ -7795,6 +7795,17 @@ pub enum ErrorCategory {
|
||||
ProcessorDeclineIncorrectData,
|
||||
}
|
||||
|
||||
impl ErrorCategory {
|
||||
pub fn should_perform_elimination_routing(self) -> bool {
|
||||
match self {
|
||||
Self::ProcessorDowntime | Self::ProcessorDeclineUnauthorized => true,
|
||||
Self::IssueWithPaymentMethod
|
||||
| Self::ProcessorDeclineIncorrectData
|
||||
| Self::FrmDecline => false,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(
|
||||
Clone,
|
||||
Debug,
|
||||
|
||||
Reference in New Issue
Block a user