1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-06 18:42: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
};
}

View File

@ -23,7 +23,7 @@ namespace Bit.Core.Models.Api
BillingEmail = organization.BillingEmail;
Plan = organization.Plan;
PlanType = organization.PlanType;
MaxUsers = organization.MaxUsers;
Seats = organization.Seats;
}
public string Id { get; set; }
@ -32,7 +32,7 @@ namespace Bit.Core.Models.Api
public string BillingEmail { get; set; }
public string Plan { get; set; }
public Enums.PlanType PlanType { get; set; }
public short? MaxUsers { get; set; }
public short? Seats { get; set; }
}
public class OrganizationBillingResponseModel : OrganizationResponseModel