mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 11:24:45 +08:00
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:
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user