1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-05 05:00:19 -05:00

[PM-18163] Remove feature flag 'AC-1795_updated-subscription-status-section' (#5411)

This commit is contained in:
Jonas Hendrickx 2025-03-06 13:19:18 +01:00 committed by GitHub
parent ac1d5b1a69
commit 7281dd9b58
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 9 deletions

View File

@ -119,7 +119,6 @@ public static class FeatureFlagKeys
public const string UseTreeWalkerApiForPageDetailsCollection = "use-tree-walker-api-for-page-details-collection"; public const string UseTreeWalkerApiForPageDetailsCollection = "use-tree-walker-api-for-page-details-collection";
public const string DuoRedirect = "duo-redirect"; public const string DuoRedirect = "duo-redirect";
public const string AC2101UpdateTrialInitiationEmail = "AC-2101-update-trial-initiation-email"; public const string AC2101UpdateTrialInitiationEmail = "AC-2101-update-trial-initiation-email";
public const string AC1795_UpdatedSubscriptionStatusSection = "AC-1795_updated-subscription-status-section";
public const string EmailVerification = "email-verification"; public const string EmailVerification = "email-verification";
public const string EmailVerificationDisableTimingDelays = "email-verification-disable-timing-delays"; public const string EmailVerificationDisableTimingDelays = "email-verification-disable-timing-delays";
public const string ExtensionRefresh = "extension-refresh"; public const string ExtensionRefresh = "extension-refresh";

View File

@ -1609,15 +1609,12 @@ public class StripePaymentService : IPaymentService
{ {
subscriptionInfo.Subscription = new SubscriptionInfo.BillingSubscription(sub); subscriptionInfo.Subscription = new SubscriptionInfo.BillingSubscription(sub);
if (_featureService.IsEnabled(FeatureFlagKeys.AC1795_UpdatedSubscriptionStatusSection)) var (suspensionDate, unpaidPeriodEndDate) = await GetSuspensionDateAsync(sub);
{
var (suspensionDate, unpaidPeriodEndDate) = await GetSuspensionDateAsync(sub);
if (suspensionDate.HasValue && unpaidPeriodEndDate.HasValue) if (suspensionDate.HasValue && unpaidPeriodEndDate.HasValue)
{ {
subscriptionInfo.Subscription.SuspensionDate = suspensionDate; subscriptionInfo.Subscription.SuspensionDate = suspensionDate;
subscriptionInfo.Subscription.UnpaidPeriodEndDate = unpaidPeriodEndDate; subscriptionInfo.Subscription.UnpaidPeriodEndDate = unpaidPeriodEndDate;
}
} }
} }