Phase 14, part 4: what happens when it lapses

An hourly platform job: a trial over without a subscription goes to Free;
past due, the owner is told and every page has a banner; at 14 days
read-only; at 53 days everyone is warned; at 60 days the team is deleted
with 30 days to undo. Each email once. Undoing a deletion for not paying
gives a week more.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-25 13:27:03 -07:00
co-authored by Claude Opus 5.5
parent acdb44fcc9
commit aa0408fb14
8 changed files with 257 additions and 1 deletions
+14
View File
@@ -3272,6 +3272,20 @@ Checkout; both are off until set.
- Stripe's dashboard needs the endpoint `https://<domain>/billing/stripe`
with those events.
**Part 4 built 2026-11-26.**
- An hourly platform job (`platform:billing`, one copy at a time) looks at
every team's account, and emails each step once (`billing.warned`):
- a trial over without a subscription: the Free plan, and the owner told;
- past due: the owner told, and every page shows a banner (the owner's
with *Pay now*);
- 14 days: read-only (part 1), and the owner told;
- 53 days: everyone in the team told it goes in a week;
- 60 days: deleted as in Phase 13, part 8 (30 days to undo), and
everyone told.
- An owner undoing a deletion for not paying has a week more to pay, read
only, before it's deleted again. Paying (`invoice.paid`) clears it all.
- Each step goes in the team's audit log.
#### Order
```