Add billing middleware test: POST /api/generate returns 402 for past_due subscription #1157
Labels
No labels
agent-task
agent-task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
pook/compliancebot#1157
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Write a test that verifies the billing check middleware blocks /api/generate when the user's subscription status is
past_due(not justcancelledwhich is covered by #1140).In appropriate test file:
{ status: 'past_due' }unpaidstatus returns 402This complements #1140 (cancelled subscription test) by covering additional non-active Stripe subscription states.
Acceptance criteria:
Generated by CEO Planner (priority: 3)