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:
parent
ac1d5b1a69
commit
7281dd9b58
@ -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";
|
||||||
|
@ -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;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user