-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(core): Add uas framework support (#6743)
Co-authored-by: sai-harsha-vardhan <[email protected]>
- Loading branch information
1 parent
cd20537
commit 9466ced
Showing
55 changed files
with
1,284 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 58 additions & 0 deletions
58
crates/hyperswitch_domain_models/src/router_request_types/unified_authentication_service.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
use masking::Secret; | ||
|
||
#[derive(Clone, serde::Deserialize, Debug, serde::Serialize)] | ||
pub struct UasPreAuthenticationRequestData { | ||
pub service_details: Option<ServiceDetails>, | ||
pub transaction_details: Option<TransactionDetails>, | ||
} | ||
|
||
#[derive(Clone, serde::Deserialize, Debug, serde::Serialize)] | ||
pub struct ServiceDetails { | ||
pub service_session_ids: Option<ServiceSessionIds>, | ||
} | ||
|
||
#[derive(Clone, serde::Deserialize, Debug, serde::Serialize)] | ||
pub struct ServiceSessionIds { | ||
pub correlation_id: Option<String>, | ||
pub merchant_transaction_id: Option<String>, | ||
pub x_src_flow_id: Option<String>, | ||
} | ||
|
||
#[derive(Debug, serde::Serialize, serde::Deserialize, Clone)] | ||
pub struct TransactionDetails { | ||
pub amount: common_utils::types::MinorUnit, | ||
pub currency: common_enums::Currency, | ||
} | ||
|
||
#[derive(Clone, Debug)] | ||
pub struct UasPostAuthenticationRequestData; | ||
|
||
#[derive(Debug, Clone)] | ||
pub enum UasAuthenticationResponseData { | ||
PreAuthentication {}, | ||
PostAuthentication { | ||
authentication_details: PostAuthenticationDetails, | ||
}, | ||
} | ||
|
||
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone)] | ||
pub struct PostAuthenticationDetails { | ||
pub eci: Option<String>, | ||
pub token_details: TokenDetails, | ||
pub dynamic_data_details: Option<DynamicData>, | ||
} | ||
|
||
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone)] | ||
pub struct TokenDetails { | ||
pub payment_token: cards::CardNumber, | ||
pub payment_account_reference: String, | ||
pub token_expiration_month: Secret<String>, | ||
pub token_expiration_year: Secret<String>, | ||
} | ||
|
||
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone)] | ||
pub struct DynamicData { | ||
pub dynamic_data_value: Option<Secret<String>>, | ||
pub dynamic_data_type: String, | ||
pub ds_trans_id: Option<String>, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.