UNPKG

@signnow/api-client

Version:
38 lines (37 loc) 1.01 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SubscriptionDelete = void 0; const constants_1 = require("../../../core/constants"); const constants_2 = require("../../../core/constants"); class SubscriptionDelete { constructor(eventSubscriptionId) { this.eventSubscriptionId = eventSubscriptionId; this.queryParams = {}; } getPayload() { return { event_subscription_id: this.eventSubscriptionId, }; } getMethod() { return constants_1.HttpMethod.DELETE; } getUrl() { return '/api/v2/events/{event_subscription_id}'; } getAuthMethod() { return constants_2.HttpAuthType.BASIC; } getContentType() { return 'application/json'; } getQueryParams() { return this.queryParams; } getUriParams() { return { event_subscription_id: this.eventSubscriptionId, }; } } exports.SubscriptionDelete = SubscriptionDelete;