twenty/packages/twenty-server
martmull 05c206073d
38 add billing webhook endpoint (#4158)
* Add self billing feature flag

* Add two core tables for billing

* Remove useless imports

* Remove graphql decorators

* Rename subscriptionProduct table

* WIP: Add stripe config

* Add controller to get product prices

* Add billing service

* Remove unecessary package

* Simplify stripe service

* Code review returns

* Use nestjs param

* Rename subscription to basePlan

* Rename env variable

* Add checkout endpoint

* Remove resolver

* Merge controllers

* Fix security issue

* Handle missing url error

* Add workspaceId in checkout metadata

* Add BILLING_STRIPE_WEBHOOK_SECRET env variable

* WIP: add webhook endpoint

* Fix body parser

* Create Billing Subscription on payment success

* Set subscriptionStatus active on webhook

* Add useful log

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
2024-02-24 17:30:32 +01:00
..
@types feat: migration can be applied on a specific schema & some enhancements (#2998) 2023-12-21 19:15:05 +01:00
patches Update scripts and documentation to use nx and new monorepo architecture (#2912) 2023-12-11 10:54:57 +01:00
scripts chore: make twenty-server nest command scripts depend on twenty-email… (#4055) 2024-02-20 14:35:09 +01:00
src 38 add billing webhook endpoint (#4158) 2024-02-24 17:30:32 +01:00
test Remove flag relation select (#3588) 2024-01-23 09:59:00 +01:00
.env.example fix: impact too many records (#3993) 2024-02-16 11:17:37 +01:00
.env.test fix: impact too many records (#3993) 2024-02-16 11:17:37 +01:00
.eslintrc.js Migrate to a monorepo structure (#2909) 2023-12-10 18:10:54 +01:00
.gitignore feat: workspace:health nullable fix (#3882) 2024-02-08 18:22:29 +01:00
.prettierignore Migrate to a monorepo structure (#2909) 2023-12-10 18:10:54 +01:00
.prettierrc Migrate to a monorepo structure (#2909) 2023-12-10 18:10:54 +01:00
jest.config.ts Migrate to a monorepo structure (#2909) 2023-12-10 18:10:54 +01:00
nest-cli.json Migrate to a monorepo structure (#2909) 2023-12-10 18:10:54 +01:00
package.json chore: make twenty-server nest command scripts depend on twenty-email… (#4055) 2024-02-20 14:35:09 +01:00
project.json chore: make twenty-server nest command scripts depend on twenty-email… (#4055) 2024-02-20 14:35:09 +01:00
tsconfig.build.json chore: set up twenty-emails config so build isn't needed in development (#3619) 2024-01-29 06:17:12 -03:00
tsconfig.json chore: make twenty-server nest command scripts depend on twenty-email… (#4055) 2024-02-20 14:35:09 +01:00