refactor(business_profile): use concrete types for JSON fields (#5531)

This commit is contained in:
Sanchith Hegde
2024-08-07 13:57:35 +05:30
committed by GitHub
parent 52cada015e
commit a8ba21c1d1
18 changed files with 751 additions and 606 deletions

View File

@ -303,36 +303,6 @@ 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,
Netcetera,
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,