import { Module } from '@nestjs/common';
import { HttpModule } from '@nestjs/axios';
import { TypeOrmModule } from '@nestjs/typeorm';
import { PaymobService } from './services/paymob.service.js';
import { BinancePayService } from './services/binance-pay.service.js';
import { PaymentsController } from './controllers/payments.controller.js';
import { User } from '../users/entities/user.entity.js';
import { UsersModule } from '../users/users.module.js';

@Module({
  imports: [
    HttpModule,
    TypeOrmModule.forFeature([User]),
    UsersModule,
  ],
  providers: [PaymobService, BinancePayService],
  controllers: [PaymentsController],
  exports: [PaymobService, BinancePayService],
})
export class PaymentsModule {}
