UNPKG

@venly/venly-core-sdk

Version:

Javascrip/Typescript SDK for Venly's Web3 Services

35 lines 1.51 kB
import { VyPromise } from '../core'; import { Any } from '../helpers/json'; import * as notifications from '../models/notifications/index'; import * as shared from '../models/shared/index'; import * as enums from '../models/enums/index'; import { VyApiBase } from './VyApiBase'; export declare abstract class VyNotificationsAPI_Gen { protected _apiBase: VyApiBase; protected _apiEndpoint: enums.VyApiEndpoint; constructor(_apiBase: VyApiBase); /** * This endpoint is used to create a webhook, to receive updates of your user's payments (_successful/cancelled_). * @param {VyNotificationWebhookRequest} reqParams - Request data for the operation * @returns {string} */ createWebhook(reqParams: notifications.VyNotificationWebhookRequest): VyPromise<String>; /** * This endpoint is used to get all of your webhooks. * @returns {VyWebhookDto[]} */ findAll(): VyPromise<shared.VyWebhookDto[]>; /** * * @param {string} webhookId - This is the ```ID``` of the webhook you want to update. * @param {VyNotificationWebhookRequest} reqParams - Request data for the operation * @returns {VyWebhookDto} */ update(webhookId: string, reqParams: notifications.VyNotificationWebhookRequest): VyPromise<shared.VyWebhookDto>; /** * * @param {string} webhookId - This is the ```ID``` of the webhook you want to delete. */ delete(webhookId: string): VyPromise<Any>; } //# sourceMappingURL=VyNotificationsAPI.generated.d.ts.map