mirror of
https://github.com/bitwarden/server
synced 2025-12-16 08:13:33 +00:00
* Add PremiumUserSale * Add PremiumUserBillingService * Integrate into UserService behind FF * Update invoice.created handler to bill newly created PayPal customers * Run dotnet format
20 lines
726 B
C#
20 lines
726 B
C#
using Bit.Core.Billing.Caches;
|
|
using Bit.Core.Billing.Caches.Implementations;
|
|
using Bit.Core.Billing.Services;
|
|
using Bit.Core.Billing.Services.Implementations;
|
|
|
|
namespace Bit.Core.Billing.Extensions;
|
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
public static class ServiceCollectionExtensions
|
|
{
|
|
public static void AddBillingOperations(this IServiceCollection services)
|
|
{
|
|
services.AddTransient<IOrganizationBillingService, OrganizationBillingService>();
|
|
services.AddTransient<IPremiumUserBillingService, PremiumUserBillingService>();
|
|
services.AddTransient<ISetupIntentCache, SetupIntentDistributedCache>();
|
|
services.AddTransient<ISubscriberService, SubscriberService>();
|
|
}
|
|
}
|