11using System . Net ;
22using System . Net . Http . Json ;
3- using Bit . Core . Billing . Constants ;
43using Bit . Core . Billing . Enums ;
54using Bit . Core . Billing . Pricing . Organizations ;
65using Bit . Core . Exceptions ;
@@ -12,7 +11,6 @@ namespace Bit.Core.Billing.Pricing;
1211
1312using OrganizationPlan = Bit . Core . Models . StaticStore . Plan ;
1413using PremiumPlan = Premium . Plan ;
15- using Purchasable = Premium . Purchasable ;
1614
1715public class PricingClient (
1816 IFeatureService featureService ,
@@ -99,14 +97,6 @@ public async Task<List<PremiumPlan>> ListPremiumPlans()
9997 return [ ] ;
10098 }
10199
102- var fetchPremiumPriceFromPricingService =
103- featureService . IsEnabled ( FeatureFlagKeys . PM26793_FetchPremiumPriceFromPricingService ) ;
104-
105- if ( ! fetchPremiumPriceFromPricingService )
106- {
107- return [ CurrentPremiumPlan ] ;
108- }
109-
110100 var response = await httpClient . GetAsync ( "plans/premium" ) ;
111101
112102 if ( response . IsSuccessStatusCode )
@@ -163,13 +153,4 @@ private Plan PreProcessFamiliesPreMigrationPlan(Plan plan)
163153 plan . LookupKey = "families-2025" ;
164154 return plan ;
165155 }
166-
167- private static PremiumPlan CurrentPremiumPlan => new ( )
168- {
169- Name = "Premium" ,
170- Available = true ,
171- LegacyYear = null ,
172- Seat = new Purchasable { Price = 10M , StripePriceId = StripeConstants . Prices . PremiumAnnually } ,
173- Storage = new Purchasable { Price = 4M , StripePriceId = StripeConstants . Prices . StoragePlanPersonal , Provided = 1 }
174- } ;
175156}
0 commit comments