import Stripe from "stripe"; import { StripeService } from "../../stripe/services/stripe.service"; import { AppLoggingService } from "../../../core/logging/services/logging.service"; export interface WebhookEventData { id: string; type: string; livemode: boolean; created: Date; data: Stripe.Event.Data; apiVersion: string | null; } /** * StripeWebhookService * * Handles Stripe webhook event verification and parsing. Provides utilities to validate * webhook signatures, extract event data, and categorize events by type. */ export declare class StripeWebhookService { private readonly stripeService; private readonly logger; constructor(stripeService: StripeService, logger: AppLoggingService); /** * Construct and verify a Stripe webhook event */ constructEvent(payload: Buffer, signature: string): Stripe.Event; /** * Parse a Stripe event into a structured format */ parseEvent(event: Stripe.Event): WebhookEventData; /** * Extract the event object with proper typing */ getEventObject(event: Stripe.Event): T; /** * Check if event is subscription-related */ isSubscriptionEvent(eventType: string): boolean; /** * Check if event is invoice-related */ isInvoiceEvent(eventType: string): boolean; /** * Check if event is payment-related */ isPaymentEvent(eventType: string): boolean; /** * Check if event is customer-related (excluding subscriptions) */ isCustomerEvent(eventType: string): boolean; } //# sourceMappingURL=stripe-webhook.service.d.ts.map