mirror of
https://github.com/bitwarden/server.git
synced 2026-02-17 06:13:12 +08:00
* Add new endpoint for creating client organizations in consolidated billing * Create empty org and then assign seats for code re-use * Fixes made from debugging client side * few more small fixes * Vincent's feedback
18 lines
695 B
C#
18 lines
695 B
C#
using Bit.Core.AdminConsole.Entities;
|
|
using Bit.Core.AdminConsole.Entities.Provider;
|
|
|
|
namespace Bit.Core.Billing.Commands;
|
|
|
|
public interface ICreateCustomerCommand
|
|
{
|
|
/// <summary>
|
|
/// Create a Stripe <see cref="Stripe.Customer"/> for the provided client <paramref name="organization"/> utilizing
|
|
/// the address and tax information of its <paramref name="provider"/>.
|
|
/// </summary>
|
|
/// <param name="provider">The MSP that owns the client organization.</param>
|
|
/// <param name="organization">The client organization to create a Stripe <see cref="Stripe.Customer"/> for.</param>
|
|
Task CreateCustomer(
|
|
Provider provider,
|
|
Organization organization);
|
|
}
|