import { Module } from '@nestjs/common'
import { MongooseModule } from '@nestjs/mongoose'
import { VirtualPaymentController } from './virtual-payment.controller'
import { VirtualPaymentService } from './virtual-payment.service'
import { User, UserSchema } from '../user/user.schema'
import { PaymentOrder, PaymentOrderSchema } from '../payment/payment-order.schema'
import { PricingModule } from '../schemas/pricing.module'
import { UserModule } from '../user/user.module'

@Module({
  imports: [
    MongooseModule.forFeature([
      { name: User.name, schema: UserSchema },
      { name: PaymentOrder.name, schema: PaymentOrderSchema },
    ]),
    PricingModule,
    UserModule,
  ],
  controllers: [VirtualPaymentController],
  providers: [VirtualPaymentService],
})
export class VirtualPaymentModule {}
