mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-01 19:42:27 +08:00
refactor(business_profile): use concrete types for JSON fields (#5531)
This commit is contained in:
@ -2517,6 +2517,36 @@ pub enum ReconStatus {
|
||||
Disabled,
|
||||
}
|
||||
|
||||
#[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,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(
|
||||
Clone,
|
||||
Debug,
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
pub mod enums;
|
||||
pub use enums::*;
|
||||
pub mod transformers;
|
||||
|
||||
pub use enums::*;
|
||||
pub use transformers::*;
|
||||
|
||||
Reference in New Issue
Block a user