mirror of
https://github.com/bitwarden/server.git
synced 2026-02-08 09:53:14 +08:00
* Renamed ProductType to ProductTierType * Renamed Product properties to ProductTier * Moved ProductTierType to Bit.Core.Billing.Enums namespace from Bit.Core.Enums * Moved PlanType enum to Bit.Core.Billing.Enums * Moved StaticStore to Bit.Core.Billing.Models.StaticStore namespace * Added ProductType enum * dotnet format
42 lines
1.4 KiB
C#
42 lines
1.4 KiB
C#
using Bit.Core.AdminConsole.Entities;
|
|
using Bit.Core.Auth.Models.Business;
|
|
using Bit.Core.Billing.Enums;
|
|
using Bit.Core.Entities;
|
|
|
|
namespace Bit.Core.Models.Mail;
|
|
public class OrganizationInvitesInfo
|
|
{
|
|
public OrganizationInvitesInfo(
|
|
Organization org,
|
|
bool orgSsoEnabled,
|
|
bool orgSsoLoginRequiredPolicyEnabled,
|
|
IEnumerable<(OrganizationUser orgUser, ExpiringToken token)> orgUserTokenPairs,
|
|
Dictionary<Guid, bool> orgUserHasExistingUserDict,
|
|
bool initOrganization = false
|
|
)
|
|
{
|
|
OrganizationName = org.DisplayName();
|
|
OrgSsoIdentifier = org.Identifier;
|
|
|
|
IsFreeOrg = org.PlanType == PlanType.Free;
|
|
InitOrganization = initOrganization;
|
|
|
|
OrgSsoEnabled = orgSsoEnabled;
|
|
OrgSsoLoginRequiredPolicyEnabled = orgSsoLoginRequiredPolicyEnabled;
|
|
|
|
OrgUserTokenPairs = orgUserTokenPairs;
|
|
OrgUserHasExistingUserDict = orgUserHasExistingUserDict;
|
|
}
|
|
|
|
public string OrganizationName { get; }
|
|
public bool IsFreeOrg { get; }
|
|
public bool InitOrganization { get; } = false;
|
|
public bool OrgSsoEnabled { get; }
|
|
public string OrgSsoIdentifier { get; }
|
|
public bool OrgSsoLoginRequiredPolicyEnabled { get; }
|
|
|
|
public IEnumerable<(OrganizationUser OrgUser, ExpiringToken Token)> OrgUserTokenPairs { get; }
|
|
public Dictionary<Guid, bool> OrgUserHasExistingUserDict { get; }
|
|
|
|
}
|