Johannes
8e30564103
refactor: simplify Stripe integration and rename enterprise to custom
...
BREAKING CHANGES:
- Remove SCALE plan from PROJECT_FEATURE_KEYS enum
- Rename PROJECT_FEATURE_KEYS.ENTERPRISE to PROJECT_FEATURE_KEYS.CUSTOM
- Update trial period from 30 to 15 days
- Remove invoice.finalized and subscription.created/updated webhook handlers
FEATURES:
- Hardcode billing limits instead of syncing from Stripe metadata
- Simplify checkout handler to always use hardcoded Startup plan limits
- Simplify subscription creation flow (single code path)
- Create database migration to rename existing enterprise plans to custom
REMOVED:
- subscription-created-or-updated.ts (125 lines of complex metadata parsing)
- invoice-finalized.ts (no longer needed)
FILES CHANGED:
- Remove SCALE plan from constants and billing limits
- Update type definitions to use custom instead of enterprise
- Simplify webhook handlers (4 → 2 handlers)
- Update all UI components to reference custom plan
- Create database migration for plan renaming
- Update all tests to reference custom instead of enterprise
IMPACT:
- Reduces Stripe integration complexity by ~80%
- Eliminates metadata sync failures
- Makes billing more predictable and maintainable
- Aligns code naming with UI (custom vs enterprise)
- Reduces trial period from 30 to 15 days
Refs: #simplify-stripe-integration
2025-10-20 18:55:22 +02:00
..
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2024-12-17 13:42:23 +00:00
2025-03-21 06:09:13 -07:00
2024-12-18 14:24:16 +00:00
2025-03-21 06:09:13 -07:00
2025-03-21 06:09:13 -07:00
2025-03-21 06:09:13 -07:00
2024-12-18 12:20:50 +00:00
2025-01-02 12:28:56 +00:00
2025-03-21 06:09:13 -07:00
2025-02-06 15:34:02 +00:00
2025-03-21 06:09:13 -07:00
2025-02-17 16:53:02 +00:00
2025-02-28 12:18:59 +00:00
2025-02-26 11:36:16 +00:00
2025-02-26 11:36:16 +00:00
2025-03-25 14:28:44 +00:00
2025-04-03 14:59:42 +02:00
2025-04-03 14:59:42 +02:00
2025-04-03 14:59:42 +02:00
2025-04-05 12:22:45 +02:00
2025-04-03 14:59:42 +02:00
2025-04-03 14:59:42 +02:00
2025-04-05 13:22:38 +02:00
2025-05-01 17:22:28 +00:00
2025-05-21 04:13:31 +00:00
2025-07-08 06:36:56 +00:00
2025-07-24 12:01:39 +00:00
2025-07-24 12:06:59 +00:00
2025-08-11 12:01:31 +00:00
2025-08-11 07:55:52 +00:00
2025-08-12 06:37:30 +00:00
2025-08-18 14:38:53 +00:00
2025-08-14 10:17:05 +00:00
2025-09-12 09:01:03 +00:00
2025-09-11 06:57:11 +00:00
2025-09-12 09:01:03 +00:00
2025-10-13 14:36:37 +00:00
2025-10-17 05:47:17 +00:00
2025-10-20 18:55:22 +02:00
2024-12-17 13:42:23 +00:00