mirror of
https://github.com/bitwarden/server.git
synced 2024-11-22 12:15:36 +01:00
Used PO ID instead of Org ID on accident (#4500)
This commit is contained in:
parent
cf8ec4ed41
commit
a51e4c0a7c
@ -76,7 +76,7 @@ public class ProviderEventService(
|
|||||||
ProviderId = parsedProviderId,
|
ProviderId = parsedProviderId,
|
||||||
InvoiceId = invoice.Id,
|
InvoiceId = invoice.Id,
|
||||||
InvoiceNumber = invoice.Number,
|
InvoiceNumber = invoice.Number,
|
||||||
ClientId = client.Id,
|
ClientId = client.OrganizationId,
|
||||||
ClientName = client.OrganizationName,
|
ClientName = client.OrganizationName,
|
||||||
PlanName = client.Plan,
|
PlanName = client.Plan,
|
||||||
AssignedSeats = client.Seats ?? 0,
|
AssignedSeats = client.Seats ?? 0,
|
||||||
|
@ -169,10 +169,14 @@ public class ProviderEventServiceTests
|
|||||||
|
|
||||||
_stripeFacade.GetSubscription(subscriptionId).Returns(subscription);
|
_stripeFacade.GetSubscription(subscriptionId).Returns(subscription);
|
||||||
|
|
||||||
|
var client1Id = Guid.NewGuid();
|
||||||
|
var client2Id = Guid.NewGuid();
|
||||||
|
|
||||||
var clients = new List<ProviderOrganizationOrganizationDetails>
|
var clients = new List<ProviderOrganizationOrganizationDetails>
|
||||||
{
|
{
|
||||||
new ()
|
new ()
|
||||||
{
|
{
|
||||||
|
OrganizationId = client1Id,
|
||||||
OrganizationName = "Client 1",
|
OrganizationName = "Client 1",
|
||||||
Plan = "Teams (Monthly)",
|
Plan = "Teams (Monthly)",
|
||||||
Seats = 50,
|
Seats = 50,
|
||||||
@ -181,6 +185,7 @@ public class ProviderEventServiceTests
|
|||||||
},
|
},
|
||||||
new ()
|
new ()
|
||||||
{
|
{
|
||||||
|
OrganizationId = client2Id,
|
||||||
OrganizationName = "Client 2",
|
OrganizationName = "Client 2",
|
||||||
Plan = "Enterprise (Monthly)",
|
Plan = "Enterprise (Monthly)",
|
||||||
Seats = 50,
|
Seats = 50,
|
||||||
@ -228,6 +233,7 @@ public class ProviderEventServiceTests
|
|||||||
options.InvoiceId == invoice.Id &&
|
options.InvoiceId == invoice.Id &&
|
||||||
options.InvoiceNumber == invoice.Number &&
|
options.InvoiceNumber == invoice.Number &&
|
||||||
options.ClientName == "Client 1" &&
|
options.ClientName == "Client 1" &&
|
||||||
|
options.ClientId == client1Id &&
|
||||||
options.PlanName == "Teams (Monthly)" &&
|
options.PlanName == "Teams (Monthly)" &&
|
||||||
options.AssignedSeats == 50 &&
|
options.AssignedSeats == 50 &&
|
||||||
options.UsedSeats == 30 &&
|
options.UsedSeats == 30 &&
|
||||||
@ -239,6 +245,7 @@ public class ProviderEventServiceTests
|
|||||||
options.InvoiceId == invoice.Id &&
|
options.InvoiceId == invoice.Id &&
|
||||||
options.InvoiceNumber == invoice.Number &&
|
options.InvoiceNumber == invoice.Number &&
|
||||||
options.ClientName == "Client 2" &&
|
options.ClientName == "Client 2" &&
|
||||||
|
options.ClientId == client2Id &&
|
||||||
options.PlanName == "Enterprise (Monthly)" &&
|
options.PlanName == "Enterprise (Monthly)" &&
|
||||||
options.AssignedSeats == 50 &&
|
options.AssignedSeats == 50 &&
|
||||||
options.UsedSeats == 30 &&
|
options.UsedSeats == 30 &&
|
||||||
|
Loading…
Reference in New Issue
Block a user