1
0
mirror of https://github.com/bitwarden/server synced 2025-12-19 17:53:44 +00:00

storage in billing and org signup

This commit is contained in:
Kyle Spearrin
2017-07-11 10:25:00 -04:00
parent 879494274a
commit a8ff190fb5
8 changed files with 44 additions and 3 deletions

View File

@@ -23,6 +23,8 @@ namespace Bit.Core.Models.Api
public string PaymentToken { get; set; }
[Range(0, double.MaxValue)]
public short AdditionalSeats { get; set; }
[Range(0, 99)]
public short? AdditionalStorageGb { get; set; }
public virtual OrganizationSignup ToOrganizationSignup(User user)
{
@@ -34,6 +36,7 @@ namespace Bit.Core.Models.Api
Plan = PlanType,
PaymentToken = PaymentToken,
AdditionalSeats = AdditionalSeats,
AdditionalStorageGb = AdditionalStorageGb.GetValueOrDefault(0),
BillingEmail = BillingEmail,
BusinessName = BusinessName
};