Files
orca/cloud/apps/billing/migrations
Neil edaa5ecd46 fix(billing): EP-9 a portal cancel (Stripe cancel_at) shows as the team's plan ending on that date
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.
2026-11-13 05:24:47 -08:00
..