UNPKG

asaas

Version:

Unofficial Asaas Payment Gateway SDK

13 lines (12 loc) 696 B
import { APIOptions, IAsaasDeleteResponse } from '@/types/AsaasTypes'; import { ICreateWebhookParams, IListWebhooksResponse, IUpdateWebhookParams, IWebhookResponse } from '@/types/WebhookTypes'; import { AxiosInstance } from 'axios'; import { BaseAPI } from './BaseAPI'; export declare class WebhooksAPI extends BaseAPI { constructor(apiClient: AxiosInstance, options?: APIOptions); create(params?: ICreateWebhookParams): Promise<IWebhookResponse>; list(): Promise<IListWebhooksResponse>; getById(id: string): Promise<IWebhookResponse>; delete(id: string): Promise<IAsaasDeleteResponse>; updateById(id: string, params?: IUpdateWebhookParams): Promise<IWebhookResponse>; }