mirror of
https://github.com/bitwarden/server.git
synced 2024-11-21 12:05:42 +01:00
Removed feature flag and unused endpoint (#4677)
This commit is contained in:
parent
f754317dd4
commit
b9d75326a7
@ -1,13 +0,0 @@
|
||||
using Bit.Core.AdminConsole.Entities;
|
||||
using Bit.Core.Models.Api;
|
||||
|
||||
namespace Bit.Api.AdminConsole.Models.Response.Organizations;
|
||||
|
||||
public class OrganizationBillingStatusResponseModel(
|
||||
Organization organization,
|
||||
bool risksSubscriptionFailure) : ResponseModel("organizationBillingStatus")
|
||||
{
|
||||
public Guid OrganizationId { get; } = organization.Id;
|
||||
public string OrganizationName { get; } = organization.Name;
|
||||
public bool RisksSubscriptionFailure { get; } = risksSubscriptionFailure;
|
||||
}
|
@ -45,21 +45,6 @@ public class OrganizationsController(
|
||||
ISubscriberService subscriberService)
|
||||
: Controller
|
||||
{
|
||||
[HttpGet("{id:guid}/billing-status")]
|
||||
public async Task<OrganizationBillingStatusResponseModel> GetBillingStatus(Guid id)
|
||||
{
|
||||
if (!await currentContext.EditPaymentMethods(id))
|
||||
{
|
||||
throw new NotFoundException();
|
||||
}
|
||||
|
||||
var organization = await organizationRepository.GetByIdAsync(id);
|
||||
|
||||
var risksSubscriptionFailure = await paymentService.RisksSubscriptionFailure(organization);
|
||||
|
||||
return new OrganizationBillingStatusResponseModel(organization, risksSubscriptionFailure);
|
||||
}
|
||||
|
||||
[HttpGet("{id:guid}/subscription")]
|
||||
public async Task<OrganizationSubscriptionResponseModel> GetSubscription(Guid id)
|
||||
{
|
||||
|
@ -108,7 +108,6 @@ public static class FeatureFlagKeys
|
||||
public const string KeyRotationImprovements = "key-rotation-improvements";
|
||||
public const string DuoRedirect = "duo-redirect";
|
||||
public const string PM5864DollarThreshold = "PM-5864-dollar-threshold";
|
||||
public const string ShowPaymentMethodWarningBanners = "show-payment-method-warning-banners";
|
||||
public const string AC2101UpdateTrialInitiationEmail = "AC-2101-update-trial-initiation-email";
|
||||
public const string EnableConsolidatedBilling = "enable-consolidated-billing";
|
||||
public const string AC1795_UpdatedSubscriptionStatusSection = "AC-1795_updated-subscription-status-section";
|
||||
|
Loading…
Reference in New Issue
Block a user