mirror of
https://github.com/bitwarden/server.git
synced 2025-05-24 21:11:04 -05:00

* Admin initiated sponsorships now use seats similarly to inviting an organization user * Updated f4e endpoint to not expect a user ID, and instead just send a boolean * Fixed failing tests * Updated OrganizationUserReadOccupiedSeatCountByOrganizationIdQuery to ensure both left and right sides are selecting the same columns
26 lines
610 B
C#
26 lines
610 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using Bit.Core.Enums;
|
|
using Bit.Core.Utilities;
|
|
|
|
namespace Bit.Api.Models.Request.Organizations;
|
|
|
|
public class OrganizationSponsorshipCreateRequestModel
|
|
{
|
|
[Required]
|
|
public PlanSponsorshipType PlanSponsorshipType { get; set; }
|
|
|
|
[Required]
|
|
[StringLength(256)]
|
|
[StrictEmailAddress]
|
|
public string SponsoredEmail { get; set; }
|
|
|
|
[StringLength(256)]
|
|
public string FriendlyName { get; set; }
|
|
|
|
public bool? IsAdminInitiated { get; set; }
|
|
|
|
[EncryptedString]
|
|
[EncryptedStringLength(512)]
|
|
public string Notes { get; set; }
|
|
}
|