2024-01-12 10:38:47 -05:00
|
|
|
|
using Bit.Core.Billing.Commands;
|
|
|
|
|
|
using Bit.Core.Billing.Commands.Implementations;
|
2024-02-09 11:58:37 -05:00
|
|
|
|
using Bit.Core.Billing.Queries;
|
|
|
|
|
|
using Bit.Core.Billing.Queries.Implementations;
|
2024-01-12 10:38:47 -05:00
|
|
|
|
|
|
|
|
|
|
namespace Bit.Core.Billing.Extensions;
|
|
|
|
|
|
|
|
|
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
|
|
|
|
|
|
|
|
public static class ServiceCollectionExtensions
|
|
|
|
|
|
{
|
|
|
|
|
|
public static void AddBillingCommands(this IServiceCollection services)
|
|
|
|
|
|
{
|
2024-02-09 11:58:37 -05:00
|
|
|
|
services.AddSingleton<ICancelSubscriptionCommand, CancelSubscriptionCommand>();
|
2024-01-12 10:38:47 -05:00
|
|
|
|
services.AddSingleton<IRemovePaymentMethodCommand, RemovePaymentMethodCommand>();
|
|
|
|
|
|
}
|
2024-02-09 11:58:37 -05:00
|
|
|
|
|
|
|
|
|
|
public static void AddBillingQueries(this IServiceCollection services)
|
|
|
|
|
|
{
|
2024-03-28 08:46:12 -04:00
|
|
|
|
services.AddSingleton<IProviderBillingQueries, ProviderBillingQueries>();
|
|
|
|
|
|
services.AddSingleton<ISubscriberQueries, SubscriberQueries>();
|
2024-02-09 11:58:37 -05:00
|
|
|
|
}
|
2024-01-12 10:38:47 -05:00
|
|
|
|
}
|