mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 00:49:42 +08:00
feat: add create retrieve and update api endpoints for organization resource (#5361)
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
use common_enums::{PermissionGroup, RoleScope, TokenPurpose};
|
||||
use common_utils::{crypto::OptionalEncryptableName, pii};
|
||||
use common_utils::{crypto::OptionalEncryptableName, id_type, pii};
|
||||
use masking::Secret;
|
||||
|
||||
use crate::user_role::UserStatus;
|
||||
@ -164,7 +164,7 @@ pub struct GetUserDetailsResponse {
|
||||
// This field is added for audit/debug reasons
|
||||
#[serde(skip_serializing)]
|
||||
pub user_id: String,
|
||||
pub org_id: String,
|
||||
pub org_id: id_type::OrganizationId,
|
||||
pub is_two_factor_auth_setup: bool,
|
||||
pub recovery_codes_left: Option<usize>,
|
||||
}
|
||||
@ -206,7 +206,7 @@ pub struct UserMerchantAccount {
|
||||
pub is_active: bool,
|
||||
pub role_id: String,
|
||||
pub role_name: String,
|
||||
pub org_id: String,
|
||||
pub org_id: id_type::OrganizationId,
|
||||
}
|
||||
|
||||
#[cfg(feature = "recon")]
|
||||
|
||||
Reference in New Issue
Block a user