mirror of
https://github.com/bitwarden/server.git
synced 2025-07-03 00:52:49 -05:00
[AC-1910] Allocate seats to a provider organization (#3936)
* Add endpoint to update a provider organization's seats for consolidated billing. * Fixed failing tests
This commit is contained in:
@ -11,6 +11,7 @@ public class ProviderPlan : ITableObject<Guid>
|
||||
public PlanType PlanType { get; set; }
|
||||
public int? SeatMinimum { get; set; }
|
||||
public int? PurchasedSeats { get; set; }
|
||||
public int? AllocatedSeats { get; set; }
|
||||
|
||||
public void SetNewId()
|
||||
{
|
||||
@ -20,5 +21,5 @@ public class ProviderPlan : ITableObject<Guid>
|
||||
}
|
||||
}
|
||||
|
||||
public bool Configured => SeatMinimum.HasValue && PurchasedSeats.HasValue;
|
||||
public bool IsConfigured() => SeatMinimum.HasValue && PurchasedSeats.HasValue && AllocatedSeats.HasValue;
|
||||
}
|
||||
|
Reference in New Issue
Block a user