mirror of
https://github.com/bitwarden/server
synced 2025-12-06 00:03:34 +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
48 lines
1.2 KiB
C#
48 lines
1.2 KiB
C#
using Bit.Core.Billing.Enums;
|
|
using Bit.Core.Models.StaticStore;
|
|
|
|
namespace Bit.Core.Test.Billing.Mocks.Plans;
|
|
|
|
public record Families2025Plan : Plan
|
|
{
|
|
public Families2025Plan()
|
|
{
|
|
Type = PlanType.FamiliesAnnually2025;
|
|
ProductTier = ProductTierType.Families;
|
|
Name = "Families 2025";
|
|
IsAnnual = true;
|
|
NameLocalizationKey = "planNameFamilies";
|
|
DescriptionLocalizationKey = "planDescFamilies";
|
|
|
|
TrialPeriodDays = 7;
|
|
|
|
HasSelfHost = true;
|
|
HasTotp = true;
|
|
UsersGetPremium = true;
|
|
|
|
UpgradeSortOrder = 1;
|
|
DisplaySortOrder = 1;
|
|
|
|
PasswordManager = new Families2025PasswordManagerFeatures();
|
|
}
|
|
|
|
private record Families2025PasswordManagerFeatures : PasswordManagerPlanFeatures
|
|
{
|
|
public Families2025PasswordManagerFeatures()
|
|
{
|
|
BaseSeats = 6;
|
|
BaseStorageGb = 1;
|
|
MaxSeats = 6;
|
|
|
|
HasAdditionalStorageOption = true;
|
|
|
|
StripePlanId = "2020-families-org-annually";
|
|
StripeStoragePlanId = "personal-storage-gb-annually";
|
|
BasePrice = 40;
|
|
AdditionalStoragePricePerGb = 4;
|
|
|
|
AllowSeatAutoscale = false;
|
|
}
|
|
}
|
|
}
|