You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Aha, interesting, I assumed that it would create a new Stripe CostCenter. If not, this sounds like a good follow-up issue. 💡
This was by design at that time, because the Stripe Invoice webhook is what triggers a spending limit reset and the CostCenter was meant to remain the same. Nothing stops us from creating a new CostCenter, but it should happen in response to the Stripe invoice, rather than when the billing period "ends" in our system.
Describe the behaviour you'd like
When a Stripe CostCenter reaches the end of its billing cycle, and Stripe issues + finalizes an invoice, we should also update the CostCenter's billing cycle dates:
Update Stripe CostCenter billingCycleStart on Stripe webhook
Update Stripe CostCenter nextBillingTime on Stripe webhook