feat(connector): integrate netcetera connector with pre authentication flow (#4293)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Hrithikesh
2024-04-16 15:54:06 +05:30
committed by GitHub
parent 00340a3369
commit d4dbaadb06
31 changed files with 1074 additions and 16 deletions

View File

@ -157,7 +157,7 @@ pub enum Surcharge {
}
/// This struct lets us represent a semantic version type
#[derive(Debug, Clone, PartialEq, Eq, FromSqlRow, AsExpression)]
#[derive(Debug, Clone, PartialEq, Eq, FromSqlRow, AsExpression, Ord, PartialOrd)]
#[diesel(sql_type = Jsonb)]
#[derive(serde::Serialize, serde::Deserialize)]
pub struct SemanticVersion(#[serde(with = "Version")] Version);
@ -167,6 +167,10 @@ impl SemanticVersion {
pub fn get_major(&self) -> u64 {
self.0.major
}
/// Constructs new SemanticVersion instance
pub fn new(major: u64, minor: u64, patch: u64) -> Self {
Self(Version::new(major, minor, patch))
}
}
impl Display for SemanticVersion {