mirror of
https://github.com/stablyai/orca.git
synced 2026-11-17 03:15:01 +00:00
Stripe's portal on API 2025-09-30.clover cancels by setting cancel_at, not cancel_at_period_end, so billing never saw the cancellation: no 'Plan ends', no grant end. The mirror now stores cancel_at (migration 0009); cancel_at_period_end is the 'cancelling' flag for either form; grants end at cancel_at; entitlements carry cancelAt; the desktop's 'Plan ends' uses it. Test: two teams of one owner (separate customers), one cancels via cancel_at: its own plan shows ending on that date, the other is untouched; un-cancelling clears it.