1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-05 10:02:47 -05:00

Plan And Price Updates (#859)

* Expanded the Plan model to make plan & product data a bit more dynamic 
* Created a Product enum to track versioned instances of the same plan
* Created and API call and Response model for getting plan & product data from the server
This commit is contained in:
Addison Beck
2020-08-11 14:19:56 -04:00
committed by GitHub
parent 61b11e398b
commit c8220fdfa6
10 changed files with 541 additions and 153 deletions

View File

@ -6,21 +6,27 @@ namespace Bit.Core.Enums
{
[Display(Name = "Free")]
Free = 0,
[Display(Name = "Families")]
FamiliesAnnually = 1,
[Display(Name = "Teams (Monthly)")]
TeamsMonthly = 2,
[Display(Name = "Teams (Annually)")]
TeamsAnnually = 3,
[Display(Name = "Enterprise (Monthly)")]
EnterpriseMonthly = 4,
[Display(Name = "Enterprise (Annually)")]
EnterpriseAnnually = 5,
[Display(Name = "Families 2019")]
FamiliesAnnually2019 = 1,
[Display(Name = "Teams (Monthly) 2019")]
TeamsMonthly2019 = 2,
[Display(Name = "Teams (Annually) 2019")]
TeamsAnnually2019 = 3,
[Display(Name = "Enterprise (Monthly) 2019")]
EnterpriseMonthly2019 = 4,
[Display(Name = "Enterprise (Annually) 2019")]
EnterpriseAnnually2019 = 5,
[Display(Name = "Custom")]
Custom = 6,
[Display(Name = "PLACEHOLDER")]
SsoPlaceholderMonthly = 10,
[Display(Name = "PLACEHOLDER")]
SsoPlaceholderAnnually = 11,
[Display(Name = "Families")]
FamiliesAnnually = 7,
[Display(Name = "Teams (Monthly)")]
TeamsMonthly = 8,
[Display(Name = "Teams (Annually)")]
TeamsAnnually = 9,
[Display(Name = "Enterprise (Monthly)")]
EnterpriseMonthly = 10,
[Display(Name = "Enterprise (Annually)")]
EnterpriseAnnually= 11,
}
}

View File

@ -0,0 +1,17 @@
using System.ComponentModel.DataAnnotations;
namespace Bit.Core.Enums
{
public enum ProductType : byte
{
[Display(Name = "Free")]
Free = 0,
[Display(Name = "Families")]
Families = 1,
[Display(Name = "Teams")]
Teams = 2,
[Display(Name = "Enterprise")]
Enterprise = 3,
}
}