UNPKG

asaaas

Version:

Unofficial Asaas Payment Gateway SDK

13 lines (12 loc) 632 B
import { IAsaasDeleteResponse } from '@/types/AsaasTypes'; import { ICreateWebhookParams, IListWebhooksResponse, IUpdateWebhookParams, IWebhookResponse } from '@/types/WebhookTypes'; import { AxiosInstance } from 'axios'; export declare class WebhooksAPI { private apiClient; constructor(apiClient: AxiosInstance); 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>; }