mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 00:49:42 +08:00
feat(users): Add profile level invites (#5793)
This commit is contained in:
@ -51,9 +51,6 @@ pub struct AuthorizeResponse {
|
||||
//this field is added for audit/debug reasons
|
||||
#[serde(skip_serializing)]
|
||||
pub user_id: String,
|
||||
//this field is added for audit/debug reasons
|
||||
#[serde(skip_serializing)]
|
||||
pub merchant_id: id_type::MerchantId,
|
||||
}
|
||||
|
||||
#[derive(serde::Deserialize, Debug, serde::Serialize)]
|
||||
@ -209,7 +206,6 @@ pub struct VerifyTokenResponse {
|
||||
#[derive(Debug, serde::Deserialize, serde::Serialize)]
|
||||
pub struct UpdateUserAccountDetailsRequest {
|
||||
pub name: Option<Secret<String>>,
|
||||
pub preferred_merchant_id: Option<id_type::MerchantId>,
|
||||
}
|
||||
|
||||
#[derive(Debug, serde::Deserialize, serde::Serialize)]
|
||||
|
||||
@ -147,3 +147,12 @@ pub struct ListInvitationForUserResponse {
|
||||
pub entity_name: Option<Secret<String>>,
|
||||
pub role_id: String,
|
||||
}
|
||||
|
||||
pub type AcceptInvitationsV2Request = Vec<Entity>;
|
||||
pub type AcceptInvitationsPreAuthRequest = Vec<Entity>;
|
||||
|
||||
#[derive(Debug, serde::Deserialize, serde::Serialize)]
|
||||
pub struct Entity {
|
||||
pub entity_id: String,
|
||||
pub entity_type: common_enums::EntityType,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user