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/).

26 lines (25 loc) 1.1 kB
import { ITemplate, IComponents } from '../../types'; /** * Implementation of base templates. */ export declare abstract class Template implements ITemplate { name: string; locale: string; channel: string; category: string; senderId: string; notificationEmail: string; components: IComponents; /** * Returns a new `Template` that is used to create a new template. * * @param name The name to identifier the template. * @param locale The language and locale. * @param channel The channel who template will be used. * @param category The category used to identifier in WhatsApp. * @param senderId This is the identifier of sender for this template. The sender shoud be created with a credential. * @param notificationEmail Mail list (comma-separated) to send notifications about the message template approving process. * @param components An [[IComponents]] object. */ constructor(name: string, locale: string, channel: string, category: string, senderId: string, notificationEmail: string, components: IComponents); }