[PM-11798] Remove `enable-consolidated-billing` feature flag (#5028)
* Remove flag from CreateProviderCommand
* Remove flag from OrganizationsController
* Consolidate provider extensions
* Remove flag from ProvidersController
* Remove flag from CreateMsp.cshtml
* Remove flag from Provider Edit.cshtml
Also ensured the editable Gateway fields show for Multi-organization enterprises
* Remove flag from OrganizationsController
* Remove flag from billing-owned provider controllers
* Remove flag from OrganizationService
* Remove flag from RemoveOrganizationFromProviderCommand
* Remove flag from ProviderService
* Remove flag
* Run dotnet format
* Fix failing tests
@ -21,35 +19,28 @@ public class CreateProviderCommand : ICreateProviderCommand
@@ -21,35 +19,28 @@ public class CreateProviderCommand : ICreateProviderCommand
@ -61,12 +52,7 @@ public class CreateProviderCommand : ICreateProviderCommand
@@ -61,12 +52,7 @@ public class CreateProviderCommand : ICreateProviderCommand
@ -77,12 +63,7 @@ public class CreateProviderCommand : ICreateProviderCommand
@@ -77,12 +63,7 @@ public class CreateProviderCommand : ICreateProviderCommand
thrownewBadRequestException("Invalid owner. Owner must be an existing Bitwarden user.");
@ -102,11 +100,8 @@ public class RemoveOrganizationFromProviderCommand : IRemoveOrganizationFromProv
@@ -102,11 +100,8 @@ public class RemoveOrganizationFromProviderCommand : IRemoveOrganizationFromProv
thrownewBadRequestException($"Managed Service Providers cannot manage organizations with the plan type {requestedType}. Only Teams (Monthly) and Enterprise (Monthly) are allowed.");
thrownewBadRequestException($"Multi-organization Enterprise Providers cannot manage organizations with the plan type {requestedType}. Only Enterprise (Monthly) and Enterprise (Annually) are allowed.");
}
break;
default:
thrownewBadRequestException($"Unsupported provider type {providerType}.");
thrownewBadRequestException($"Managed Service Providers cannot manage organizations with the plan type {requestedType}. Only Teams (Monthly) and Enterprise (Monthly) are allowed.");
thrownewBadRequestException($"Multi-organization Enterprise Providers cannot manage organizations with the plan type {requestedType}. Only Enterprise (Monthly) and Enterprise (Annually) are allowed.");
}
break;
default:
thrownewBadRequestException($"Unsupported provider type {providerType}.");
@ -444,13 +445,6 @@ public class OrganizationService : IOrganizationService
@@ -444,13 +445,6 @@ public class OrganizationService : IOrganizationService
@ -1443,10 +1437,7 @@ public class OrganizationService : IOrganizationService
@@ -1443,10 +1437,7 @@ public class OrganizationService : IOrganizationService