UNPKG

@lob/lob-typescript-sdk

Version:
125 lines (124 loc) 3.97 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 * as Models from "./index"; import { Campaign } from "./campaign"; /** * * @export * @class CreativeResponse */ export declare class CreativeResponse { constructor(input?: any); /** * Unique identifier prefixed with `crv_`. * @type {string} * @memberof CreativeResponse */ private "_id"?; get id(): string; set id(newValue: string); /** * An internal description that identifies this resource. Must be no longer than 255 characters. * @type {string} * @memberof CreativeResponse */ "description"?: string | null; /** * Must either be an address ID or an inline object with correct address parameters. * @type {any} * @memberof CreativeResponse */ "from"?: string | Models.AddressEditable | null; /** * Mailpiece type for the creative * @type {string} * @memberof CreativeResponse */ "resource_type"?: CreativeResponseResourceTypeEnum; /** * Either PostcardDetailsReturned or LetterDetailsReturned * @type {any} * @memberof CreativeResponse */ "details"?: Models.PostcardDetailsWritable | null; /** * 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 CreativeResponse */ "metadata"?: { [key: string]: string; }; /** * Preview URLs associated with a creative\'s artwork asset(s) if the creative uses HTML templates as assets. * @type {object} * @memberof CreativeResponse */ "template_preview_urls"?: object; /** * A list of template preview objects if the creative uses HTML template(s) as artwork asset(s). * @type {Array<object>} * @memberof CreativeResponse */ "template_previews"?: Array<object>; /** * Only returned if the resource has been successfully deleted. * @type {boolean} * @memberof CreativeResponse */ "deleted"?: boolean; /** * Array of campaigns associated with the creative ID * @type {Array<Campaign>} * @memberof CreativeResponse */ "campaigns"?: Array<Campaign>; /** * A timestamp in ISO 8601 format of the date the resource was created. * @type {string} * @memberof CreativeResponse */ "date_created"?: string; /** * A timestamp in ISO 8601 format of the date the resource was last modified. * @type {string} * @memberof CreativeResponse */ "date_modified"?: string; /** * Value is resource type. * @type {string} * @memberof CreativeResponse */ "object"?: CreativeResponseObjectEnum; toJSON(): {}; } /** * @export * @enum {string} */ export declare enum CreativeResponseResourceTypeEnum { Letter = "letter", Postcard = "postcard" } /** * @export * @enum {string} */ export declare enum CreativeResponseObjectEnum { Creative = "creative" } /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */