mirror of
https://github.com/bitwarden/server.git
synced 2024-11-21 12:05:42 +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,
|
||||
InvoiceId = invoice.Id,
|
||||
InvoiceNumber = invoice.Number,
|
||||
ClientId = client.Id,
|
||||
ClientId = client.OrganizationId,
|
||||
ClientName = client.OrganizationName,
|
||||
PlanName = client.Plan,
|
||||
AssignedSeats = client.Seats ?? 0,
|
||||
|
@ -169,10 +169,14 @@ public class ProviderEventServiceTests
|
||||
|
||||
_stripeFacade.GetSubscription(subscriptionId).Returns(subscription);
|
||||
|
||||
var client1Id = Guid.NewGuid();
|
||||
var client2Id = Guid.NewGuid();
|
||||
|
||||
var clients = new List<ProviderOrganizationOrganizationDetails>
|
||||
{
|
||||
new ()
|
||||
{
|
||||
OrganizationId = client1Id,
|
||||
OrganizationName = "Client 1",
|
||||
Plan = "Teams (Monthly)",
|
||||
Seats = 50,
|
||||
@ -181,6 +185,7 @@ public class ProviderEventServiceTests
|
||||
},
|
||||
new ()
|
||||
{
|
||||
OrganizationId = client2Id,
|
||||
OrganizationName = "Client 2",
|
||||
Plan = "Enterprise (Monthly)",
|
||||
Seats = 50,
|
||||
@ -228,6 +233,7 @@ public class ProviderEventServiceTests
|
||||
options.InvoiceId == invoice.Id &&
|
||||
options.InvoiceNumber == invoice.Number &&
|
||||
options.ClientName == "Client 1" &&
|
||||
options.ClientId == client1Id &&
|
||||
options.PlanName == "Teams (Monthly)" &&
|
||||
options.AssignedSeats == 50 &&
|
||||
options.UsedSeats == 30 &&
|
||||
@ -239,6 +245,7 @@ public class ProviderEventServiceTests
|
||||
options.InvoiceId == invoice.Id &&
|
||||
options.InvoiceNumber == invoice.Number &&
|
||||
options.ClientName == "Client 2" &&
|
||||
options.ClientId == client2Id &&
|
||||
options.PlanName == "Enterprise (Monthly)" &&
|
||||
options.AssignedSeats == 50 &&
|
||||
options.UsedSeats == 30 &&
|
||||
|
Loading…
Reference in New Issue
Block a user