-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Expand file tree
/
Copy pathOrganizationInvitesInfo.cs
More file actions
49 lines (41 loc) · 1.65 KB
/
OrganizationInvitesInfo.cs
File metadata and controls
49 lines (41 loc) · 1.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
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,
string inviterEmail = null
)
{
OrganizationName = org.DisplayName();
OrgSsoIdentifier = org.Identifier;
PlanType = org.PlanType;
IsFreeOrg = org.PlanType == PlanType.Free;
InitOrganization = initOrganization;
OrgSsoEnabled = orgSsoEnabled;
OrgSsoLoginRequiredPolicyEnabled = orgSsoLoginRequiredPolicyEnabled;
OrgUserTokenPairs = orgUserTokenPairs;
OrgUserHasExistingUserDict = orgUserHasExistingUserDict;
InviterEmail = inviterEmail;
}
public string OrganizationName { get; }
public PlanType PlanType { 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; }
public string InviterEmail { get; }
}