Add subscription tier configuration module with plan definitions #1200
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#1200
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?
Create
src/billing/plans.ts:SubscriptionTierobject with three plans:free,pro,enterprise.name(string),stripePriceId(string, from env var),monthlyDocumentLimit(number: 1 for free, 25 for pro, Infinity for enterprise),features(string array).getPlanByPriceId(priceId)andgetPlanByName(name)lookup functions.isWithinLimit(tier, documentsGeneratedThisMonth)used by the usage limit check.STRIPE_PRO_PRICE_ID,STRIPE_ENTERPRISE_PRICE_ID).This module is imported by the usage limit middleware (#1193) and billing status endpoint (#706) to avoid hardcoding plan details.
Generated by CEO Planner (priority: 3)