mirror of
https://github.com/bitwarden/server
synced 2026-01-02 16:43:25 +00:00
* Remove feature flag and move StaticStore plans to MockPlans for tests * Remove old plan models / move sponsored plans out of StaticStore * Run dotnet format * Add pricing URI to Development appsettings for local development and integration tests * Updated Api Integration tests to get current plan type * Run dotnet format * Fix failing tests
51 lines
1.4 KiB
C#
51 lines
1.4 KiB
C#
using Bit.Core.Billing.Enums;
|
|
using Bit.Core.Models.StaticStore;
|
|
|
|
namespace Bit.Core.Test.Billing.Mocks.Plans;
|
|
|
|
public record Families2019Plan : Plan
|
|
{
|
|
public Families2019Plan()
|
|
{
|
|
Type = PlanType.FamiliesAnnually2019;
|
|
ProductTier = ProductTierType.Families;
|
|
Name = "Families 2019";
|
|
IsAnnual = true;
|
|
NameLocalizationKey = "planNameFamilies";
|
|
DescriptionLocalizationKey = "planDescFamilies";
|
|
|
|
TrialPeriodDays = 7;
|
|
|
|
HasSelfHost = true;
|
|
HasTotp = true;
|
|
|
|
UpgradeSortOrder = 1;
|
|
DisplaySortOrder = 1;
|
|
LegacyYear = 2020;
|
|
|
|
PasswordManager = new Families2019PasswordManagerFeatures();
|
|
}
|
|
|
|
private record Families2019PasswordManagerFeatures : PasswordManagerPlanFeatures
|
|
{
|
|
public Families2019PasswordManagerFeatures()
|
|
{
|
|
BaseSeats = 5;
|
|
BaseStorageGb = 1;
|
|
MaxSeats = 5;
|
|
|
|
HasAdditionalStorageOption = true;
|
|
HasPremiumAccessOption = true;
|
|
|
|
StripePlanId = "personal-org-annually";
|
|
StripeStoragePlanId = "personal-storage-gb-annually";
|
|
StripePremiumAccessPlanId = "personal-org-premium-access-annually";
|
|
BasePrice = 12;
|
|
AdditionalStoragePricePerGb = 4;
|
|
PremiumAccessOptionPrice = 40;
|
|
|
|
AllowSeatAutoscale = false;
|
|
}
|
|
}
|
|
}
|