/**
 * Stripe Module
 *
 * NestJS module for Stripe payment integration.
 */

import { Module } from '@nestjs/common';
import { ConfigModule } from '@nestjs/config';
import { StripeAdapter } from './stripe.adapter';
import { STRIPE_PORT } from '@domain/ports/out/stripe.port';

@Module({
  imports: [ConfigModule],
  providers: [
    StripeAdapter,
    {
      provide: STRIPE_PORT,
      useExisting: StripeAdapter,
    },
  ],
  exports: [STRIPE_PORT, StripeAdapter],
})
export class StripeModule {}
