46 add stripe product endpoint (#4133)

* 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
This commit is contained in:
martmull
2024-02-22 20:11:26 +01:00
committed by GitHub
parent ce7be4c48e
commit 679456e819
7 changed files with 143 additions and 2 deletions
@@ -1,6 +1,13 @@
import { Module } from '@nestjs/common';
import { ProductPriceController } from 'src/core/billing/controllers/product-price.controller';
import { EnvironmentModule } from 'src/integrations/environment/environment.module';
import { BillingService } from 'src/core/billing/billing.service';
import { StripeModule } from 'src/core/billing/stripe/stripe.module';
@Module({
imports: [],
imports: [StripeModule],
controllers: [ProductPriceController],
providers: [EnvironmentModule, BillingService],
})
export class BillingModule {}