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:
13
src/Core/Models/Business/OrganizationChangePlan.cs
Normal file
13
src/Core/Models/Business/OrganizationChangePlan.cs
Normal 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; }
|
||||
}
|
||||
}
|
@ -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; }
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user