mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 17:19:15 +08:00
feat(pm_auth): pm_auth service migration (#3047)
Co-authored-by: Sarthak Soni <76486416+Sarthak1799@users.noreply.github.com> Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Co-authored-by: Sarthak Soni <sarthak.soni@juspay.in>
This commit is contained in:
@ -1,3 +1,5 @@
|
||||
use std::str::FromStr;
|
||||
|
||||
pub use common_enums::*;
|
||||
use utoipa::ToSchema;
|
||||
|
||||
@ -500,3 +502,26 @@ pub enum LockerChoice {
|
||||
Basilisk,
|
||||
Tartarus,
|
||||
}
|
||||
|
||||
#[derive(
|
||||
Clone,
|
||||
Copy,
|
||||
Debug,
|
||||
Eq,
|
||||
PartialEq,
|
||||
serde::Serialize,
|
||||
serde::Deserialize,
|
||||
strum::Display,
|
||||
strum::EnumString,
|
||||
frunk::LabelledGeneric,
|
||||
ToSchema,
|
||||
)]
|
||||
#[serde(rename_all = "snake_case")]
|
||||
#[strum(serialize_all = "snake_case")]
|
||||
pub enum PmAuthConnectors {
|
||||
Plaid,
|
||||
}
|
||||
|
||||
pub fn convert_pm_auth_connector(connector_name: &str) -> Option<PmAuthConnectors> {
|
||||
PmAuthConnectors::from_str(connector_name).ok()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user