Files
bigcapital/packages/server/src/modules/BillPayments/BillPayments.module.ts
2025-05-26 17:04:53 +02:00

56 lines
2.5 KiB
TypeScript

import { Module } from '@nestjs/common';
import { BillPaymentsApplication } from './BillPaymentsApplication.service';
import { CreateBillPaymentService } from './commands/CreateBillPayment.service';
import { EditBillPayment } from './commands/EditBillPayment.service';
import { GetBillPayment } from './queries/GetBillPayment.service';
import { DeleteBillPayment } from './commands/DeleteBillPayment.service';
import { BillPaymentBillSync } from './commands/BillPaymentBillSync.service';
import { GetPaymentBills } from './queries/GetPaymentBills.service';
import { BillPaymentValidators } from './commands/BillPaymentValidators.service';
import { CommandBillPaymentDTOTransformer } from './commands/CommandBillPaymentDTOTransformer.service';
import { TenancyContext } from '../Tenancy/TenancyContext.service';
import { BranchTransactionDTOTransformer } from '../Branches/integrations/BranchTransactionDTOTransform';
import { BranchesSettingsService } from '../Branches/BranchesSettings';
import { BillPaymentsController } from './BillPayments.controller';
import { BillPaymentGLEntries } from './commands/BillPaymentGLEntries';
import { BillPaymentGLEntriesSubscriber } from './subscribers/BillPaymentGLEntriesSubscriber';
import { LedgerModule } from '../Ledger/Ledger.module';
import { AccountsModule } from '../Accounts/Accounts.module';
import { BillPaymentsExportable } from './queries/BillPaymentsExportable';
import { BillPaymentsImportable } from './commands/BillPaymentsImportable';
import { GetBillPaymentsService } from './queries/GetBillPayments.service';
import { DynamicListModule } from '../DynamicListing/DynamicList.module';
import { BillPaymentsPages } from './commands/BillPaymentsPages.service';
@Module({
imports: [LedgerModule, AccountsModule, DynamicListModule],
providers: [
BillPaymentsApplication,
CreateBillPaymentService,
EditBillPayment,
GetBillPayment,
DeleteBillPayment,
BillPaymentBillSync,
GetPaymentBills,
BillPaymentValidators,
CommandBillPaymentDTOTransformer,
BranchTransactionDTOTransformer,
BranchesSettingsService,
TenancyContext,
BillPaymentGLEntries,
BillPaymentGLEntriesSubscriber,
BillPaymentsExportable,
BillPaymentsImportable,
GetBillPaymentsService,
BillPaymentsPages,
],
exports: [
BillPaymentValidators,
CreateBillPaymentService,
BillPaymentsExportable,
BillPaymentsImportable,
],
controllers: [BillPaymentsController],
})
export class BillPaymentsModule {}