1
0
mirror of https://github.com/bitwarden/server.git synced 2025-06-30 23:52:50 -05:00

Billing updates

- Break monthly and annual plans into two.
- Add upgrade and adjust additional users
This commit is contained in:
Kyle Spearrin
2017-04-10 09:36:21 -04:00
parent 52dcd6d6ab
commit bb0555a6d9
5 changed files with 255 additions and 36 deletions

View File

@ -0,0 +1,13 @@
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; }
}
}

View File

@ -1,25 +1,20 @@
using Bit.Core.Enums;
using System;
namespace Bit.Core.Models.StaticStore
{
public class Plan
{
public string Name { get; set; }
public string StripeAnnualPlanId { get; set; }
public string StripeAnnualUserPlanId { get; set; }
public string StripeMonthlyPlanId { get; set; }
public string StripeMonthlyUserPlanId { get; set; }
public string StripePlanId { get; set; }
public string StripeUserPlanId { get; set; }
public PlanType Type { get; set; }
public short BaseUsers { get; set; }
public bool CanBuyAdditionalUsers { get; set; }
public short? MaxAdditionalUsers { get; set; }
public bool CanMonthly { get; set; }
public decimal BaseMonthlyPrice { get; set; }
public decimal UserMonthlyPrice { get; set; }
public decimal BaseAnnualPrice { get; set; }
public decimal UserAnnualPrice { get; set; }
public decimal BasePrice { get; set; }
public decimal UserPrice { get; set; }
public short? MaxSubvaults { get; set; }
public int UpgradeSortOrder { get; set; }
public bool Disabled { get; set; }
}
}