35235fe0fc
Store explicit hourly/monthly/yearly rates in pricing_rates and addon_rates, compute deploy costs without cycle conversion, and simplify admin UI and wallet payment to cycle-only. Co-authored-by: Cursor <cursoragent@cursor.com>
33 lines
1.2 KiB
TypeScript
33 lines
1.2 KiB
TypeScript
import { Module, forwardRef } from '@nestjs/common';
|
|
import { TypeOrmModule } from '@nestjs/typeorm';
|
|
import { BillingService } from './billing.service';
|
|
import { BillingController } from './billing.controller';
|
|
import { PricingCatalogService } from './pricing-catalog.service';
|
|
import { PricingRate } from './entities/pricing-rate.entity';
|
|
import { AddonRate } from './entities/addon-rate.entity';
|
|
import { Wallet } from './entities/wallet.entity';
|
|
import { WalletTransaction } from './entities/wallet-transaction.entity';
|
|
import { ResourceCredit } from './entities/resource-credit.entity';
|
|
import { LifecycleModule } from '../lifecycle/lifecycle.module';
|
|
import { ApplicationsModule } from '../applications/applications.module';
|
|
import { KubernetesModule } from '../kubernetes/kubernetes.module';
|
|
|
|
@Module({
|
|
imports: [
|
|
TypeOrmModule.forFeature([
|
|
PricingRate,
|
|
AddonRate,
|
|
Wallet,
|
|
WalletTransaction,
|
|
ResourceCredit,
|
|
]),
|
|
forwardRef(() => LifecycleModule),
|
|
forwardRef(() => ApplicationsModule),
|
|
forwardRef(() => KubernetesModule),
|
|
],
|
|
controllers: [BillingController],
|
|
providers: [BillingService, PricingCatalogService],
|
|
exports: [BillingService, PricingCatalogService],
|
|
})
|
|
export class BillingModule {}
|