Align Stripe plan changes to first-of-month proration anchors#2274
Conversation
|
|
Co-authored-by: niemyjski <1020579+niemyjski@users.noreply.github.com>
Co-authored-by: niemyjski <1020579+niemyjski@users.noreply.github.com>
|
Follow-up reviewer-feedback and thermo-nuclear audit completed at head
Verdict: code and CI are ready. The sole remaining external merge blocker is the pending Copilot contributor CLA. |
# Conflicts: # tests/Exceptionless.Tests/Api/Endpoints/OrganizationEndpointTests.cs
|
Final follow-up at head
Code and CI are ready. The PR remains draft/mergeable; the only active blocking status is the external Copilot contributor CLA. |
This issue tracks billing modernization for plan upgrades, including Stripe-based usage/billing consistency and month-aligned plan transitions. This PR addresses the proration/alignment slice by ensuring plan changes are created/updated with explicit monthly billing anchor behavior in Stripe.
Plan-change subscription behavior
OrganizationController.ChangePlanAsyncto set Stripe proration explicitly on plan changes:ProrationBehavior = "create_prorations"Month-aligned billing anchor
BillingCycleAnchorConfigfor subscription creation paths to align billing to the first day of month at00:00:00.Controller cleanup
Focused coverage updates
OrganizationControllerTestsassertions to validate:ProrationBehavioris set tocreate_prorations1, time00:00:00