Skip to content

Commit cfe818e

Browse files
Milestone 2b Update (#6515)
* feat(billing): add feature flag * feat(billing): implement feature flag * fix(billing): update logic * fix(billing): revert spacing
1 parent ca0d5bf commit cfe818e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/Core/Billing/Pricing/PricingClient.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,9 @@ public async Task<List<PremiumPlan>> ListPremiumPlans()
123123
return [CurrentPremiumPlan];
124124
}
125125

126-
var response = await httpClient.GetAsync("plans/premium");
126+
var milestone2Feature = featureService.IsEnabled(FeatureFlagKeys.PM23341_Milestone_2);
127+
128+
var response = await httpClient.GetAsync($"plans/premium?milestone2={milestone2Feature}");
127129

128130
if (response.IsSuccessStatusCode)
129131
{

src/Core/Constants.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ public static class FeatureFlagKeys
187187
public const string PM23713_PremiumBadgeOpensNewPremiumUpgradeDialog = "pm-23713-premium-badge-opens-new-premium-upgrade-dialog";
188188
public const string PremiumUpgradeNewDesign = "pm-24033-updat-premium-subscription-page";
189189
public const string PM26793_FetchPremiumPriceFromPricingService = "pm-26793-fetch-premium-price-from-pricing-service";
190+
public const string PM23341_Milestone_2 = "pm-23341-milestone-2";
190191

191192
/* Key Management Team */
192193
public const string ReturnErrorOnExistingKeypair = "return-error-on-existing-keypair";

0 commit comments

Comments
 (0)