mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 20:23:43 +08:00
feat(users): add support for tenant level users (#6708)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -115,6 +115,21 @@ pub struct CreateInternalUserRequest {
|
||||
pub password: Secret<String>,
|
||||
}
|
||||
|
||||
#[derive(serde::Deserialize, Debug, serde::Serialize)]
|
||||
pub struct CreateTenantUserRequest {
|
||||
pub name: Secret<String>,
|
||||
pub email: pii::Email,
|
||||
pub password: Secret<String>,
|
||||
}
|
||||
|
||||
#[derive(Debug, serde::Deserialize, serde::Serialize, Clone)]
|
||||
pub struct UserOrgMerchantCreateRequest {
|
||||
pub organization_name: Secret<String>,
|
||||
pub organization_details: Option<pii::SecretSerdeValue>,
|
||||
pub metadata: Option<pii::SecretSerdeValue>,
|
||||
pub merchant_name: Secret<String>,
|
||||
}
|
||||
|
||||
#[derive(Debug, serde::Deserialize, serde::Serialize)]
|
||||
pub struct UserMerchantCreate {
|
||||
pub company_name: String,
|
||||
|
||||
Reference in New Issue
Block a user