mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 09:38:33 +08:00
feat(users): Create Decision manager for User Flows (#4518)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
use common_enums::{PermissionGroup, RoleScope};
|
||||
use common_enums::{PermissionGroup, RoleScope, TokenPurpose};
|
||||
use common_utils::{crypto::OptionalEncryptableName, pii};
|
||||
use masking::Secret;
|
||||
|
||||
@ -213,3 +213,21 @@ pub struct UpdateUserAccountDetailsRequest {
|
||||
pub name: Option<Secret<String>>,
|
||||
pub preferred_merchant_id: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Debug, serde::Deserialize, serde::Serialize)]
|
||||
pub struct TokenOnlyQueryParam {
|
||||
pub token_only: Option<bool>,
|
||||
}
|
||||
|
||||
#[derive(Debug, serde::Deserialize, serde::Serialize)]
|
||||
pub struct TokenResponse {
|
||||
pub token: Secret<String>,
|
||||
pub token_type: TokenPurpose,
|
||||
}
|
||||
|
||||
#[derive(Debug, serde::Serialize)]
|
||||
#[serde(untagged)]
|
||||
pub enum SignInWithTokenResponse {
|
||||
Token(TokenResponse),
|
||||
SignInResponse(SignInResponse),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user