import { WebhookEventType } from "./enums"; import { PayOrderEvent } from "./events"; export interface WebhookEndpoint { id: string; organization_id: string; active: boolean; url: string; webhook_secret: string; subscription_events: WebhookEventType[]; created_at: Date; } export interface WebhookEvent { id: string; endpoint: WebhookEndpoint; payload: PayOrderEvent; webhook_id: string; status: WebhookEventType; deliveries: WebhookDelivery[]; created_at: Date; } export interface WebhookDelivery { id: string; event_id: string; http_status: number; body: string | null; created_at: Date; }