mirror of
https://github.com/bitwarden/server
synced 2026-01-01 08:03:23 +00:00
* Add Gateway columns to Provider table * Add ProviderId column to Transaction table * Create ProviderPlan table * Matt's feedback * Rui's feedback * Fixed Gateway parameter on Provider
24 lines
547 B
C#
24 lines
547 B
C#
using Bit.Core.Entities;
|
|
using Bit.Core.Enums;
|
|
using Bit.Core.Utilities;
|
|
|
|
namespace Bit.Core.Billing.Entities;
|
|
|
|
public class ProviderPlan : ITableObject<Guid>
|
|
{
|
|
public Guid Id { get; set; }
|
|
public Guid ProviderId { get; set; }
|
|
public PlanType PlanType { get; set; }
|
|
public int? SeatMinimum { get; set; }
|
|
public int? PurchasedSeats { get; set; }
|
|
public int? AllocatedSeats { get; set; }
|
|
|
|
public void SetNewId()
|
|
{
|
|
if (Id == default)
|
|
{
|
|
Id = CoreHelpers.GenerateComb();
|
|
}
|
|
}
|
|
}
|