UNPKG

@zenvia/sdk

Version:

This SDK for [Node.js](https://nodejs.org/) was created based on the [Zenvia](https://www.zenvia.com/) [API](https://zenvia.github.io/zenvia-openapi-spec/).

24 lines 789 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Subscription = void 0; /** * Implementation of base subscription. */ class Subscription { /** * Returns a new `Subscription` that is used to create a new subscription. * * @param eventType Event type. An [[EventType]] object. * @param webhook An [[IWebhook]] object. * @param criteria An [[ICriteria]] object. * @param status Status of subscription. An [[SubscriptionStatus]] object. */ constructor(eventType, webhook, criteria, status = 'ACTIVE') { this.eventType = eventType; this.webhook = webhook; this.criteria = criteria; this.status = status; } } exports.Subscription = Subscription; //# sourceMappingURL=base.js.map