import { OnModuleInit } from "@nestjs/common"; /** * StripeWebhookModule * * Handles Stripe webhook event reception, validation, persistence, and processing. * Uses BullMQ for asynchronous, reliable webhook processing with automatic retries. * * Key Features: * - Webhook signature verification via StripeWebhookService * - Idempotent event handling with StripeWebhookEvent persistence * - BullMQ-based async processing for non-blocking webhook responses * - Notification dispatch for payment failures and subscription changes * - Event routing to appropriate domain handlers (subscription, invoice, customer) * * Components: * - **Controller**: StripeWebhookController - receives and validates Stripe webhooks * - **Services**: * - StripeWebhookService: Signature verification and event parsing * - StripeWebhookNotificationService: Payment failure and subscription change notifications * - **Processor**: StripeWebhookProcessor (BullMQ worker) - async event processing * - **Repository**: StripeWebhookEventRepository - event persistence and status tracking * * Dependencies: * - StripeModule: For Stripe SDK client access * - StripeCustomerModule: For customer data in notifications * - StripeInvoiceModule: For invoice data in notifications * - StripeSubscriptionModule: For subscription sync operations * * All cross-module dependencies use forwardRef to handle circular imports. */ export declare class StripeWebhookModule implements OnModuleInit { onModuleInit(): void; } //# sourceMappingURL=stripe-webhook.module.d.ts.map