UNPKG

@lob/lob-typescript-sdk

Version:
92 lines (91 loc) 2.94 kB
/** * Lob * The Lob API is organized around REST. Our API is designed to have predictable, resource-oriented URLs and uses HTTP response codes to indicate any API errors. <p> Looking for our [previous documentation](https://lob.github.io/legacy-docs/)? * * The version of the OpenAPI document: 1.3.0 * Contact: lob-openapi@lob.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { TemplateVersion } from "./template-version"; /** * * @export * @class Template */ export declare class Template { constructor(input?: any); /** * An internal description that identifies this resource. Must be no longer than 255 characters. * @type {string} * @memberof Template */ "description"?: string | null; /** * Unique identifier prefixed with `tmpl_`. ID of a saved [HTML template](#section/HTML-Templates). * @type {string} * @memberof Template */ private "_id"; get id(): string; set id(newValue: string); /** * An array of all non-deleted [version objects](#tag/Template-Versions) associated with the template. * @type {Array<TemplateVersion>} * @memberof Template */ "versions": Array<TemplateVersion>; /** * * @type {TemplateVersion} * @memberof Template */ "published_version": TemplateVersion; /** * Value is resource type. * @type {string} * @memberof Template */ "object"?: TemplateObjectEnum; /** * Use metadata to store custom information for tagging and labeling back to your internal systems. Must be an object with up to 20 key-value pairs. Keys must be at most 40 characters and values must be at most 500 characters. Neither can contain the characters `\"` and `\\`. i.e. \'{\"customer_id\" : \"NEWYORK2015\"}\' Nested objects are not supported. See [Metadata](#section/Metadata) for more information. * @type {{ [key: string]: string; }} * @memberof Template */ "metadata"?: { [key: string]: string; }; /** * A timestamp in ISO 8601 format of the date the resource was created. * @type {string} * @memberof Template */ "date_created"?: string; /** * A timestamp in ISO 8601 format of the date the resource was last modified. * @type {string} * @memberof Template */ "date_modified"?: string; /** * Only returned if the resource has been successfully deleted. * @type {boolean} * @memberof Template */ "deleted"?: boolean; toJSON(): {}; } /** * @export * @enum {string} */ export declare enum TemplateObjectEnum { Template = "template" } /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */