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:
@ -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
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user