mirror of
https://github.com/bitwarden/server.git
synced 2025-07-01 08:02:49 -05:00
[AC-2744] Add provider portal pricing for consolidated billing (#4210)
* Expanded Teams and Enterprise plan with provider seat data * Updated provider setup process with new plan information * Updated provider subscription retrieval and update with new plan information * Updated client invoice report with new plan information * Fixed tests * Fix broken test
This commit is contained in:
@ -231,7 +231,7 @@ public class ProviderEventServiceTests
|
||||
options.PlanName == "Teams (Monthly)" &&
|
||||
options.AssignedSeats == 50 &&
|
||||
options.UsedSeats == 30 &&
|
||||
options.Total == options.AssignedSeats * teamsPlan.PasswordManager.SeatPrice * 0.65M));
|
||||
options.Total == options.AssignedSeats * teamsPlan.PasswordManager.ProviderPortalSeatPrice * 0.65M));
|
||||
|
||||
await _providerInvoiceItemRepository.Received(1).CreateAsync(Arg.Is<ProviderInvoiceItem>(
|
||||
options =>
|
||||
@ -242,7 +242,7 @@ public class ProviderEventServiceTests
|
||||
options.PlanName == "Enterprise (Monthly)" &&
|
||||
options.AssignedSeats == 50 &&
|
||||
options.UsedSeats == 30 &&
|
||||
options.Total == options.AssignedSeats * enterprisePlan.PasswordManager.SeatPrice * 0.65M));
|
||||
options.Total == options.AssignedSeats * enterprisePlan.PasswordManager.ProviderPortalSeatPrice * 0.65M));
|
||||
|
||||
await _providerInvoiceItemRepository.Received(1).CreateAsync(Arg.Is<ProviderInvoiceItem>(
|
||||
options =>
|
||||
@ -253,7 +253,7 @@ public class ProviderEventServiceTests
|
||||
options.PlanName == "Teams (Monthly)" &&
|
||||
options.AssignedSeats == 50 &&
|
||||
options.UsedSeats == 0 &&
|
||||
options.Total == options.AssignedSeats * teamsPlan.PasswordManager.SeatPrice * 0.65M));
|
||||
options.Total == options.AssignedSeats * teamsPlan.PasswordManager.ProviderPortalSeatPrice * 0.65M));
|
||||
|
||||
await _providerInvoiceItemRepository.Received(1).CreateAsync(Arg.Is<ProviderInvoiceItem>(
|
||||
options =>
|
||||
@ -264,7 +264,7 @@ public class ProviderEventServiceTests
|
||||
options.PlanName == "Enterprise (Monthly)" &&
|
||||
options.AssignedSeats == 50 &&
|
||||
options.UsedSeats == 0 &&
|
||||
options.Total == options.AssignedSeats * enterprisePlan.PasswordManager.SeatPrice * 0.65M));
|
||||
options.Total == options.AssignedSeats * enterprisePlan.PasswordManager.ProviderPortalSeatPrice * 0.65M));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
Reference in New Issue
Block a user