1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-03 17:12:49 -05:00

separate plans for month vs annual. users => seats

This commit is contained in:
Kyle Spearrin
2017-04-10 10:44:27 -04:00
parent bb0555a6d9
commit 5705f4f736
12 changed files with 82 additions and 93 deletions

View File

@ -21,8 +21,7 @@ namespace Bit.Core.Models.Api
public string Key { get; set; }
public string PaymentToken { get; set; }
[Range(0, double.MaxValue)]
public short AdditionalUsers { get; set; }
public bool Monthly { get; set; }
public short AdditionalSeats { get; set; }
public virtual OrganizationSignup ToOrganizationSignup(User user)
{
@ -33,10 +32,9 @@ namespace Bit.Core.Models.Api
Name = Name,
Plan = PlanType,
PaymentToken = PaymentToken,
AdditionalUsers = AdditionalUsers,
AdditionalSeats = AdditionalSeats,
BillingEmail = BillingEmail,
BusinessName = BusinessName,
Monthly = Monthly
BusinessName = BusinessName
};
}