feat(core): add support for connectors having separate version call for pre authentication (#4603)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Hrithikesh
2024-05-21 22:37:44 +05:30
committed by GitHub
parent fea2ea6d2c
commit 528d692a89
14 changed files with 121 additions and 17 deletions

View File

@ -273,6 +273,15 @@ pub enum AuthenticationConnectors {
Gpayments,
}
impl AuthenticationConnectors {
pub fn is_separate_version_call_required(&self) -> bool {
match self {
Self::Threedsecureio | Self::Netcetera => false,
Self::Gpayments => true,
}
}
}
#[cfg(feature = "payouts")]
#[derive(
Clone,