UNPKG

@signnow/api-client

Version:
46 lines (45 loc) 1.31 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SubscriptionPut = void 0; const constants_1 = require("../../../core/constants"); const constants_2 = require("../../../core/constants"); class SubscriptionPut { constructor(eventSubscriptionId, event, entityId, action, attributes) { this.eventSubscriptionId = eventSubscriptionId; this.event = event; this.entityId = entityId; this.action = action; this.attributes = attributes; this.queryParams = {}; } getPayload() { return { event_subscription_id: this.eventSubscriptionId, event: this.event, entity_id: this.entityId, action: this.action, attributes: this.attributes, }; } getMethod() { return constants_1.HttpMethod.PUT; } 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.SubscriptionPut = SubscriptionPut;