mirror of
https://github.com/bitwarden/server.git
synced 2025-04-12 00:28:11 -05:00

* Remove gRPC and convert PricingClient to HttpClient wrapper * Add PlanType.GetProductTier extension Many instances of StaticStore use are just to get the ProductTierType of a PlanType, but this can be derived from the PlanType itself without having to fetch the entire plan. * Remove invocations of the StaticStore in non-Test code * Deprecate StaticStore entry points * Run dotnet format * Matt's feedback * Run dotnet format * Rui's feedback * Run dotnet format * Replacements since approval * Run dotnet format
28 lines
986 B
C#
28 lines
986 B
C#
namespace Bit.Core.Billing.Pricing.Models;
|
|
|
|
#nullable enable
|
|
|
|
public class PlanDTO
|
|
{
|
|
public string LookupKey { get; set; } = null!;
|
|
public string Name { get; set; } = null!;
|
|
public string Tier { get; set; } = null!;
|
|
public string? Cadence { get; set; }
|
|
public int? LegacyYear { get; set; }
|
|
public bool Available { get; set; }
|
|
public FeatureDTO[] Features { get; set; } = null!;
|
|
public PurchasableDTO Seats { get; set; } = null!;
|
|
public ScalableDTO? ManagedSeats { get; set; }
|
|
public ScalableDTO? Storage { get; set; }
|
|
public SecretsManagerPurchasablesDTO? SecretsManager { get; set; }
|
|
public int? TrialPeriodDays { get; set; }
|
|
public string[] CanUpgradeTo { get; set; } = null!;
|
|
public Dictionary<string, string> AdditionalData { get; set; } = null!;
|
|
}
|
|
|
|
public class SecretsManagerPurchasablesDTO
|
|
{
|
|
public FreeOrScalableDTO Seats { get; set; } = null!;
|
|
public FreeOrScalableDTO ServiceAccounts { get; set; } = null!;
|
|
}
|