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
|
|
|
|
|
|
{
|
2024-03-29 11:18:10 -04:00
|
|
|
|
public static void AddBillingOperations(this IServiceCollection services)
|
2024-01-12 10:38:47 -05:00
|
|
|
|
{
|
2024-03-29 11:18:10 -04:00
|
|
|
|
// Queries
|
2024-04-24 16:29:04 -04:00
|
|
|
|
services.AddTransient<IOrganizationBillingQueries, OrganizationBillingQueries>();
|
2024-03-29 11:18:10 -04:00
|
|
|
|
services.AddTransient<IProviderBillingQueries, ProviderBillingQueries>();
|
|
|
|
|
|
services.AddTransient<ISubscriberQueries, SubscriberQueries>();
|
2024-02-09 11:58:37 -05:00
|
|
|
|
|
2024-03-29 11:18:10 -04:00
|
|
|
|
// Commands
|
|
|
|
|
|
services.AddTransient<IAssignSeatsToClientOrganizationCommand, AssignSeatsToClientOrganizationCommand>();
|
|
|
|
|
|
services.AddTransient<ICancelSubscriptionCommand, CancelSubscriptionCommand>();
|
2024-04-16 13:55:00 -04:00
|
|
|
|
services.AddTransient<ICreateCustomerCommand, CreateCustomerCommand>();
|
2024-03-29 11:18:10 -04:00
|
|
|
|
services.AddTransient<IRemovePaymentMethodCommand, RemovePaymentMethodCommand>();
|
2024-04-16 13:55:00 -04:00
|
|
|
|
services.AddTransient<IScaleSeatsCommand, ScaleSeatsCommand>();
|
2024-04-10 14:10:53 -04:00
|
|
|
|
services.AddTransient<IStartSubscriptionCommand, StartSubscriptionCommand>();
|
2024-02-09 11:58:37 -05:00
|
|
|
|
}
|
2024-01-12 10:38:47 -05:00
|
|
|
|
}
|