[Agent] Issue #772: add a handler for the customersubscripti #776

Open
pook wants to merge 63 commits from agent-task/772 into main
Owner

Closes #772

Changes

feat: issue #772 add-a-handler-for-the-customersubscripti (agent task liancebot772)

Acceptance Criteria

Add a handler for the customer.subscription.deleted Stripe webhook event. When received: (1) Extract the customer ID from event.data.object.customer. (2) Look up the user by stripe_customer_id in the database. (3) Update the subscription status to 'canceled' in the stripe_subscriptions table. (4) Return 200 acknowledgment. Add this to the webhook event router (issue #755) or as a standalone handler in src/billing/webhooks.ts. Pattern match the existing checkout.session.completed handler (issue #744). Acceptance: subscription.deleted event sets status to 'canceled' in database; returns 200.


Generated by CEO Planner (priority: 3)

Tokens: 5 in / 890 out

Closes #772 ## Changes feat: issue #772 add-a-handler-for-the-customersubscripti (agent task liancebot772) ## Acceptance Criteria Add a handler for the customer.subscription.deleted Stripe webhook event. When received: (1) Extract the customer ID from event.data.object.customer. (2) Look up the user by stripe_customer_id in the database. (3) Update the subscription status to 'canceled' in the stripe_subscriptions table. (4) Return 200 acknowledgment. Add this to the webhook event router (issue #755) or as a standalone handler in src/billing/webhooks.ts. Pattern match the existing checkout.session.completed handler (issue #744). Acceptance: subscription.deleted event sets status to 'canceled' in database; returns 200. --- *Generated by CEO Planner (priority: 3)* Tokens: 5 in / 890 out
feat: issue #772 add-a-handler-for-the-customersubscripti (agent task liancebot772)
Some checks failed
CI Quality Gate / Lint / Typecheck / Test / Build (pull_request) Has been cancelled
d6b07f8464
Some checks failed
CI Quality Gate / Lint / Typecheck / Test / Build (pull_request) Has been cancelled
This pull request has changes conflicting with the target branch.
  • .forgejo/workflows/ci.yml
  • bun.lock
  • package.json
  • packages/api/src/db/schema.ts
  • packages/api/src/index.ts
  • packages/api/src/middleware/csrf.ts
  • packages/api/src/middleware/rate-limit.ts
  • packages/api/src/middleware/security-headers.ts
  • packages/api/src/routes/admin.ts
  • packages/api/src/routes/billing.ts
  • packages/api/src/routes/generate-tos.ts
  • packages/api/src/routes/generate.ts
  • packages/api/src/routes/health.ts
  • packages/api/src/routes/questionnaire.ts
  • packages/api/src/services/document-generator.ts
  • packages/api/src/services/llm.ts
  • packages/api/src/templates/index.ts
  • packages/api/tsconfig.json
  • packages/shared/src/types.ts
  • packages/web/src/app/questionnaire/page.tsx
  • packages/web/src/components/documents/DocumentList.tsx
  • packages/web/src/components/questionnaire/ReviewStep.tsx
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin agent-task/772:agent-task/772
git switch agent-task/772
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pook/compliancebot!776
No description provided.