In Core we produce the event OrganizationTrialStarted which then sets up the organization with the trial seats for a specified period after onboarding a user to create an organization.
There doesn't seem to be anything like this on the Admin service, so a new organization ends up with no seats, which is not true. We need to reflect this correctly here as well.
This is what we see:
This also needs to be corrected in production. We need to see the same number of seats in Admin as the logic in Core sees.
Purchasing Seats
When a purchase is done for seats, the Admin service should be notified by a public event from Core that Admin consumes and then produce whatever correct internal Admin event. It also means that we need to also be notified when cancellations are done.
Billing
When we get billing events from Mollie into Core, we also need to produce events that goes out publicly from Core and the Admin consumes to update. Admin should reflect billing and be able to see the billing history of an organization in the organization view.
In Core we produce the event
OrganizationTrialStartedwhich then sets up the organization with the trial seats for a specified period after onboarding a user to create an organization.There doesn't seem to be anything like this on the Admin service, so a new organization ends up with no seats, which is not true. We need to reflect this correctly here as well.
This is what we see:
This also needs to be corrected in production. We need to see the same number of seats in Admin as the logic in Core sees.
Purchasing Seats
When a purchase is done for seats, the Admin service should be notified by a public event from Core that Admin consumes and then produce whatever correct internal Admin event. It also means that we need to also be notified when cancellations are done.
Billing
When we get billing events from Mollie into Core, we also need to produce events that goes out publicly from Core and the Admin consumes to update. Admin should reflect billing and be able to see the billing history of an organization in the organization view.