UNPKG

paypal-rest-api

Version:

A typescript module for integrating with PayPal REST APIs.

23 lines (22 loc) 1.08 kB
import { Model } from "../abstracts"; import { Client, RequestOptions } from "../client"; import { WebhookEventApi } from "./api"; import { IWebhookEvent, IWebhookSimulateRequestSchema } from "./types"; export declare class WebhookEventModel extends Model<IWebhookEvent> { model: IWebhookEvent; static api: WebhookEventApi; static parseHeaders(headers: any): { auth_algo: any; cert_url: any; transmission_id: any; transmission_sig: any; transmission_time: any; }; static get(id: string, options?: Partial<RequestOptions>): Promise<WebhookEventModel>; static list(options?: Partial<RequestOptions>): Promise<WebhookEventModel[]>; static verify(webhookid: string, headers: any, webhookEvent: string, options?: Partial<RequestOptions>): Promise<any>; static simulate(payload: IWebhookSimulateRequestSchema, options?: Partial<RequestOptions>): Promise<WebhookEventModel>; static init(client: Client): void; constructor(model: IWebhookEvent); resend(options?: Partial<RequestOptions>): Promise<void>; }