fix(billing): import PaymentGatewaysModule so BillingService can resolve the registry

الـAPI كان في حلقة سقوط: BillingService يحقن PaymentGatewayRegistry، لكنه
يعيش في PaymentGatewaysModule الذي يستورده PaymentsModule دون إعادة تصدير.
الاستيراد المباشر يجعل التبعية صريحة.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Hamza-Ayed
2026-07-18 19:32:39 +03:00
co-authored by Claude Opus 4.8
parent 5b101bca57
commit ba7c99a05b
@@ -8,12 +8,16 @@ import { SuperAdminBillingController } from './superadmin-billing.controller';
import { SuperAdminWebhookController } from './superadmin-webhook.controller';
import { PaymentsModule } from '../payments/payments.module';
import { StorageModule } from '../../common/storage/storage.module';
import { PaymentGatewaysModule } from '../../integrations/payments/payment-gateways.module';
@Module({
imports: [
TypeOrmModule.forFeature([TenantSubscription, SuperAdminPayment]),
PaymentsModule,
StorageModule,
// BillingService يحقن PaymentGatewayRegistry مباشرة — و PaymentsModule
// يستورد البوابات دون إعادة تصديرها، فالاستيراد هنا صريح لا متطفّل.
PaymentGatewaysModule,
],
controllers: [TenantBillingController, SuperAdminBillingController, SuperAdminWebhookController],
providers: [BillingService],