1
0
mirror of https://github.com/bitwarden/server synced 2025-12-10 21:33:41 +00:00

Add XML documentation to Premium in OrganizationUserUserDetails and User classes

This commit is contained in:
Rui Tome
2025-12-04 17:15:04 +00:00
parent 377ae31a99
commit 683a6cb1ee
2 changed files with 8 additions and 0 deletions

View File

@@ -20,6 +20,10 @@ public class OrganizationUserUserDetails : IExternal, ITwoFactorProvidersUser, I
public string Email { get; set; }
public string AvatarColor { get; set; }
public string TwoFactorProviders { get; set; }
/// <summary>
/// User's personal premium subscription status. Does not reflect organization premium access.
/// Null when the organization user is in Invited status (UserId is null).
/// </summary>
public bool? Premium { get; set; }
public OrganizationUserStatusType Status { get; set; }
public OrganizationUserType Type { get; set; }

View File

@@ -69,6 +69,10 @@ public class User : ITableObject<Guid>, IStorableSubscriber, IRevisable, ITwoFac
/// The security state is a signed object attesting to the version of the user's account.
/// </summary>
public string? SecurityState { get; set; }
/// <summary>
/// Indicates whether the user has a personal premium subscription.
/// Does not include premium access from organizations.
/// </summary>
public bool Premium { get; set; }
public DateTime? PremiumExpirationDate { get; set; }
public DateTime? RenewalReminderDate { get; set; }