mirror of
https://github.com/bitwarden/server
synced 2025-12-15 15:53:59 +00:00
* 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
28 lines
871 B
C#
28 lines
871 B
C#
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);
|
|
}
|