mirror of
https://github.com/bitwarden/server.git
synced 2025-07-05 10:02:47 -05:00
[AC-2965] Use OrganizationBillingService to purchase org when FF is on (#4737)
* Add PurchaseSubscription to OrganizationBillingService and call from OrganizationService.SignUpAsync when FF is on * Run dotnet format * Missed billing service DI for SCIM which uses the OrganizationService
This commit is contained in:
27
src/Core/Billing/Models/OrganizationSubscriptionPurchase.cs
Normal file
27
src/Core/Billing/Models/OrganizationSubscriptionPurchase.cs
Normal file
@ -0,0 +1,27 @@
|
||||
using Bit.Core.Billing.Enums;
|
||||
|
||||
namespace Bit.Core.Billing.Models;
|
||||
|
||||
public record OrganizationSubscriptionPurchase(
|
||||
OrganizationSubscriptionPurchaseMetadata Metadata,
|
||||
OrganizationPasswordManagerSubscriptionPurchase PasswordManagerSubscription,
|
||||
TokenizedPaymentSource PaymentSource,
|
||||
PlanType PlanType,
|
||||
OrganizationSecretsManagerSubscriptionPurchase SecretsManagerSubscription,
|
||||
TaxInformation TaxInformation);
|
||||
|
||||
public record OrganizationPasswordManagerSubscriptionPurchase(
|
||||
int Storage,
|
||||
bool PremiumAccess,
|
||||
int Seats);
|
||||
|
||||
public record OrganizationSecretsManagerSubscriptionPurchase(
|
||||
int Seats,
|
||||
int ServiceAccounts);
|
||||
|
||||
public record OrganizationSubscriptionPurchaseMetadata(
|
||||
bool FromProvider,
|
||||
bool FromSecretsManagerStandalone)
|
||||
{
|
||||
public static OrganizationSubscriptionPurchaseMetadata Default => new(false, false);
|
||||
}
|
Reference in New Issue
Block a user