mirror of
https://github.com/bitwarden/server
synced 2025-12-20 10:13:39 +00:00
* Updated check that determines whether org has payment method to include bank account when determining how to set trial_settings * Run dotnet format
25 lines
1.0 KiB
C#
25 lines
1.0 KiB
C#
using Bit.Core.Billing.Payment.Clients;
|
|
using Bit.Core.Billing.Payment.Commands;
|
|
using Bit.Core.Billing.Payment.Queries;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
namespace Bit.Core.Billing.Payment;
|
|
|
|
public static class Registrations
|
|
{
|
|
public static void AddPaymentOperations(this IServiceCollection services)
|
|
{
|
|
// Commands
|
|
services.AddTransient<IBitPayClient, BitPayClient>();
|
|
services.AddTransient<ICreateBitPayInvoiceForCreditCommand, CreateBitPayInvoiceForCreditCommand>();
|
|
services.AddTransient<IUpdateBillingAddressCommand, UpdateBillingAddressCommand>();
|
|
services.AddTransient<IUpdatePaymentMethodCommand, UpdatePaymentMethodCommand>();
|
|
|
|
// Queries
|
|
services.AddTransient<IGetBillingAddressQuery, GetBillingAddressQuery>();
|
|
services.AddTransient<IGetCreditQuery, GetCreditQuery>();
|
|
services.AddTransient<IGetPaymentMethodQuery, GetPaymentMethodQuery>();
|
|
services.AddTransient<IHasPaymentMethodQuery, HasPaymentMethodQuery>();
|
|
}
|
|
}
|