feat(api_models): add api_models for external 3ds authentication flow (#3858)

Co-authored-by: hrithikesh026 <hrithikesh.vm@juspay.in>
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Sai Harsha Vardhan
2024-03-05 13:19:05 +05:30
committed by GitHub
parent 03cfb735af
commit 0a43ceb14e
13 changed files with 601 additions and 8 deletions

View File

@ -150,6 +150,25 @@ impl Connector {
}
}
#[derive(
Clone,
Copy,
Debug,
Eq,
Hash,
PartialEq,
serde::Serialize,
serde::Deserialize,
strum::Display,
strum::EnumString,
ToSchema,
)]
#[serde(rename_all = "snake_case")]
#[strum(serialize_all = "snake_case")]
pub enum AuthenticationConnectors {
Threedsecureio,
}
#[cfg(feature = "payouts")]
#[derive(
Clone,
@ -552,3 +571,7 @@ pub enum PmAuthConnectors {
pub fn convert_pm_auth_connector(connector_name: &str) -> Option<PmAuthConnectors> {
PmAuthConnectors::from_str(connector_name).ok()
}
pub fn convert_authentication_connector(connector_name: &str) -> Option<AuthenticationConnectors> {
AuthenticationConnectors::from_str(connector_name).ok()
}