2025-08-21 15:24:40 +09:00
|
|
|
import { Module } from "@nestjs/common";
|
|
|
|
|
import { InvoicesController } from "./invoices.controller";
|
2025-09-17 18:43:43 +09:00
|
|
|
import { WhmcsModule } from "@bff/integrations/whmcs/whmcs.module";
|
|
|
|
|
import { MappingsModule } from "@bff/modules/id-mappings/mappings.module";
|
2025-09-25 15:54:54 +09:00
|
|
|
// New modular invoice services
|
|
|
|
|
import { InvoicesOrchestratorService } from "./services/invoices-orchestrator.service";
|
|
|
|
|
import { InvoiceRetrievalService } from "./services/invoice-retrieval.service";
|
|
|
|
|
import { InvoiceHealthService } from "./services/invoice-health.service";
|
2025-08-20 18:02:50 +09:00
|
|
|
|
2025-10-08 16:31:42 +09:00
|
|
|
/**
|
|
|
|
|
* Invoice Module
|
|
|
|
|
*
|
|
|
|
|
* Validation is now handled by Zod schemas via ZodValidationPipe in controller.
|
|
|
|
|
* No separate validator service needed.
|
|
|
|
|
*/
|
2025-08-20 18:02:50 +09:00
|
|
|
@Module({
|
|
|
|
|
imports: [WhmcsModule, MappingsModule],
|
|
|
|
|
controllers: [InvoicesController],
|
2025-09-25 15:54:54 +09:00
|
|
|
providers: [
|
|
|
|
|
InvoicesOrchestratorService,
|
|
|
|
|
InvoiceRetrievalService,
|
|
|
|
|
InvoiceHealthService,
|
|
|
|
|
],
|
2025-09-25 16:38:21 +09:00
|
|
|
exports: [InvoicesOrchestratorService],
|
2025-08-20 18:02:50 +09:00
|
|
|
})
|
|
|
|
|
export class InvoicesModule {}
|