mirror of
https://github.com/bitwarden/server.git
synced 2025-06-30 23:52:50 -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
|
||||
|
@ -1,13 +0,0 @@
|
||||
using Bit.Core.Enums;
|
||||
using System;
|
||||
|
||||
namespace Bit.Core.Models.Business
|
||||
{
|
||||
public class OrganizationChangePlan
|
||||
{
|
||||
public Guid OrganizationId { get; set; }
|
||||
public PlanType PlanType { get; set; }
|
||||
public short AdditionalUsers { get; set; }
|
||||
public bool Monthly { get; set; }
|
||||
}
|
||||
}
|
@ -11,8 +11,7 @@ namespace Bit.Core.Models.Business
|
||||
public User Owner { get; set; }
|
||||
public string OwnerKey { get; set; }
|
||||
public Enums.PlanType Plan { get; set; }
|
||||
public short AdditionalUsers { get; set; }
|
||||
public short AdditionalSeats { get; set; }
|
||||
public string PaymentToken { get; set; }
|
||||
public bool Monthly { get; set; }
|
||||
}
|
||||
}
|
||||
|
@ -6,13 +6,13 @@ namespace Bit.Core.Models.StaticStore
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public string StripePlanId { get; set; }
|
||||
public string StripeUserPlanId { get; set; }
|
||||
public string StripeSeatPlanId { get; set; }
|
||||
public PlanType Type { get; set; }
|
||||
public short BaseUsers { get; set; }
|
||||
public bool CanBuyAdditionalUsers { get; set; }
|
||||
public short? MaxAdditionalUsers { get; set; }
|
||||
public short BaseSeats { get; set; }
|
||||
public bool CanBuyAdditionalSeats { get; set; }
|
||||
public short? MaxAdditionalSeats { get; set; }
|
||||
public decimal BasePrice { get; set; }
|
||||
public decimal UserPrice { get; set; }
|
||||
public decimal SeatPrice { get; set; }
|
||||
public short? MaxSubvaults { get; set; }
|
||||
public int UpgradeSortOrder { get; set; }
|
||||
public bool Disabled { get; set; }
|
||||
|
@ -12,7 +12,7 @@ namespace Bit.Core.Models.Table
|
||||
public string BillingEmail { get; set; }
|
||||
public string Plan { get; set; }
|
||||
public PlanType PlanType { get; set; }
|
||||
public short? MaxUsers { get; set; }
|
||||
public short? Seats { get; set; }
|
||||
public short? MaxSubvaults { get; set; }
|
||||
public string StripeCustomerId { get; set; }
|
||||
public string StripeSubscriptionId { get; set; }
|
||||
|
Reference in New Issue
Block a user