UNPKG

@sahabaplus/moyasar

Version:

A comprehensive TypeScript SDK for integrating with the Moyasar payment gateway

23 lines 621 B
export declare class WebhookValidation { /** * Validate webhook event type */ static isValidWebhookEvent(event: string): boolean; /** * Validate HTTP method */ static isValidHttpMethod(method: string): boolean; /** * Validate URL format */ static isValidUrl(url: string): boolean; /** * Validate required fields */ static validateRequired<T extends Record<string, any>>(obj: T, requiredFields: (keyof T)[]): string[]; /** * Sanitize webhook URL */ static sanitizeUrl(url: string): string; } //# sourceMappingURL=validation.d.ts.map