mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 05:40:31 +00:00
24 lines
888 B
TypeScript
24 lines
888 B
TypeScript
import { Module } from '@nestjs/common';
|
|
import { CreateInvoiceCheckoutSession } from './CreateInvoiceCheckoutSession';
|
|
import { GetPaymentLinkInvoicePdf } from './GetPaymentLinkInvoicePdf';
|
|
import { PaymentLinksApplication } from './PaymentLinksApplication';
|
|
import { PaymentLinksController } from './PaymentLinks.controller';
|
|
import { InjectSystemModel } from '../System/SystemModels/SystemModels.module';
|
|
import { PaymentLink } from './models/PaymentLink';
|
|
import { StripePaymentModule } from '../StripePayment/StripePayment.module';
|
|
|
|
const models = [InjectSystemModel(PaymentLink)];
|
|
|
|
@Module({
|
|
imports: [StripePaymentModule],
|
|
providers: [
|
|
...models,
|
|
CreateInvoiceCheckoutSession,
|
|
GetPaymentLinkInvoicePdf,
|
|
PaymentLinksApplication,
|
|
],
|
|
controllers: [PaymentLinksController],
|
|
exports: [...models, PaymentLinksApplication],
|
|
})
|
|
export class PaymentLinksModule {}
|