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:
Prajjwal Kumar
2025-04-22 12:36:42 +05:30
committed by GitHub
parent 50cbe20ee1
commit 82bc46166b
7 changed files with 464 additions and 130 deletions

View File

@ -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,