UNPKG

paypal-rest-api

Version:

A typescript module for integrating with PayPal REST APIs.

16 lines (15 loc) 636 B
import * as joi from "joi"; import { Model } from "../abstracts"; import { Client, RequestOptions } from "../client"; import { WebhookApi } from "./api"; import { IWebhook } from "./types"; export declare class WebhookModel extends Model<IWebhook> { model: IWebhook; static api: WebhookApi; static schema: joi.ObjectSchema; static get(id: string, options?: Partial<RequestOptions>): Promise<WebhookModel>; static list(options?: Partial<RequestOptions>): Promise<WebhookModel[]>; static init(client: Client): void; constructor(model: IWebhook); events(options?: Partial<RequestOptions>): Promise<this>; }