import { Global, Module } from "@nestjs/common"; import { TypeOrmModule } from "@nestjs/typeorm"; import { ManualPaymentSetting } from "./entities/manual-payment-setting.entity"; import { ManualPaymentSettingsController } from "./manual-payment-settings.controller"; import { ManualPaymentSettingsService } from "./manual-payment-settings.service"; /** * Global so billing can inject {@link ManualPaymentSettingsService} to gate * the manual-settlement worklist and confirmation endpoint without importing * this module (and without a cycle, since this module needs nothing back). */ @Global() @Module({ imports: [TypeOrmModule.forFeature([ManualPaymentSetting])], controllers: [ManualPaymentSettingsController], providers: [ManualPaymentSettingsService], exports: [ManualPaymentSettingsService], }) export class PaymentSettingsModule {}