mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 09:38:33 +08:00
refactor(core): move authentication data fields to authentication table (#4093)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Co-authored-by: sai-harsha-vardhan <harsha111hero@gmail.com> Co-authored-by: Sai Harsha Vardhan <56996463+sai-harsha-vardhan@users.noreply.github.com>
This commit is contained in:
@ -2363,6 +2363,47 @@ pub enum RoleScope {
|
||||
Organization,
|
||||
}
|
||||
|
||||
#[derive(
|
||||
Clone,
|
||||
Default,
|
||||
Debug,
|
||||
serde::Serialize,
|
||||
serde::Deserialize,
|
||||
Eq,
|
||||
PartialEq,
|
||||
ToSchema,
|
||||
strum::Display,
|
||||
strum::EnumString,
|
||||
)]
|
||||
#[router_derive::diesel_enum(storage_type = "text")]
|
||||
pub enum TransactionStatus {
|
||||
/// Authentication/ Account Verification Successful
|
||||
#[serde(rename = "Y")]
|
||||
Success,
|
||||
/// Not Authenticated /Account Not Verified; Transaction denied
|
||||
#[default]
|
||||
#[serde(rename = "N")]
|
||||
Failure,
|
||||
/// Authentication/ Account Verification Could Not Be Performed; Technical or other problem, as indicated in Authentication Response(ARes) or Result Request (RReq)
|
||||
#[serde(rename = "U")]
|
||||
VerificationNotPerformed,
|
||||
/// Attempts Processing Performed; Not Authenticated/Verified , but a proof of attempted authentication/verification is provided
|
||||
#[serde(rename = "A")]
|
||||
NotVerified,
|
||||
/// Authentication/ Account Verification Rejected; Issuer is rejecting authentication/verification and request that authorisation not be attempted.
|
||||
#[serde(rename = "R")]
|
||||
Rejected,
|
||||
/// Challenge Required; Additional authentication is required using the Challenge Request (CReq) / Challenge Response (CRes)
|
||||
#[serde(rename = "C")]
|
||||
ChallengeRequired,
|
||||
/// Challenge Required; Decoupled Authentication confirmed.
|
||||
#[serde(rename = "D")]
|
||||
ChallengeRequiredDecoupledAuthentication,
|
||||
/// Informational Only; 3DS Requestor challenge preference acknowledged.
|
||||
#[serde(rename = "I")]
|
||||
InformationOnly,
|
||||
}
|
||||
|
||||
#[derive(
|
||||
Clone,
|
||||
Copy,
|
||||
|
||||
Reference in New Issue
Block a user