1
0
mirror of https://github.com/bitwarden/server synced 2025-12-16 00:03:54 +00:00

[PM-13470] Allow creating clients for Multi-organization enterprise (#4977)

This commit is contained in:
Jonas Hendrickx
2024-11-06 09:44:16 +01:00
committed by GitHub
parent dae493db72
commit 982d1bc558
5 changed files with 32 additions and 18 deletions

View File

@@ -1,4 +1,5 @@
using Bit.Core.Billing.Entities;
using Bit.Core.Billing.Enums;
using Bit.Core.Billing.Models;
using Bit.Core.Utilities;
using Stripe;
@@ -35,6 +36,8 @@ public record ProviderSubscriptionResponse(
var cadence = plan.IsAnnual ? _annualCadence : _monthlyCadence;
return new ProviderPlanResponse(
plan.Name,
plan.Type,
plan.ProductTier,
configuredProviderPlan.SeatMinimum,
configuredProviderPlan.PurchasedSeats,
configuredProviderPlan.AssignedSeats,
@@ -59,6 +62,8 @@ public record ProviderSubscriptionResponse(
public record ProviderPlanResponse(
string PlanName,
PlanType Type,
ProductTierType ProductTier,
int SeatMinimum,
int PurchasedSeats,
int AssignedSeats,