import { Module } from "@nestjs/common";
import { PaymentService } from "./payment.service";
import { HttpModule } from "@nestjs/axios";
import { PaymentController } from "./payment.controller";
import { ConfigModule } from "@nestjs/config";
import { PaymentRepository } from "./payment.repository";
import { WebhookController } from "./webhooks/webhook.controller";
import { TelebirrWebhookService } from "./webhooks/providers/telebirr.service";
import { TelebirrProvider } from "@edr/payment-providers";

@Module({
    imports: [HttpModule, ConfigModule],
    providers: [PaymentRepository, PaymentService, TelebirrWebhookService, TelebirrProvider],
    controllers: [PaymentController, WebhookController],
    exports: [PaymentService]
})
export class PaymentModule { }