mirror of
https://github.com/bitwarden/server.git
synced 2026-02-01 06:33:17 +08:00
* Added offboarding survey response to cancellation when FF is on. * Removed service methods to prevent unnecessary upstream registrations * Forgot to actually remove the injected command in the services * Rui's feedback * Add missing summary * Missed [FromBody]
23 lines
739 B
C#
23 lines
739 B
C#
using Bit.Core.Billing.Commands;
|
|
using Bit.Core.Billing.Commands.Implementations;
|
|
using Bit.Core.Billing.Queries;
|
|
using Bit.Core.Billing.Queries.Implementations;
|
|
|
|
namespace Bit.Core.Billing.Extensions;
|
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
public static class ServiceCollectionExtensions
|
|
{
|
|
public static void AddBillingCommands(this IServiceCollection services)
|
|
{
|
|
services.AddSingleton<ICancelSubscriptionCommand, CancelSubscriptionCommand>();
|
|
services.AddSingleton<IRemovePaymentMethodCommand, RemovePaymentMethodCommand>();
|
|
}
|
|
|
|
public static void AddBillingQueries(this IServiceCollection services)
|
|
{
|
|
services.AddSingleton<IGetSubscriptionQuery, GetSubscriptionQuery>();
|
|
}
|
|
}
|