archetecture security fix
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
||||
type WebhookProcessInput<T> = {
|
||||
provider: string;
|
||||
providerEventId: string;
|
||||
eventType: string;
|
||||
rawBody: string | Buffer;
|
||||
handle: () => Promise<T>;
|
||||
};
|
||||
export declare function processWebhookOnce<T>({ provider, providerEventId, eventType, rawBody, handle, }: WebhookProcessInput<T>): Promise<{
|
||||
duplicate: boolean;
|
||||
result?: T;
|
||||
}>;
|
||||
export declare function getWebhookEventId(provider: 'amanpay' | 'paypal', payload: any): string;
|
||||
export {};
|
||||
//# sourceMappingURL=webhookIdempotency.d.ts.map
|
||||
Reference in New Issue
Block a user