@lob/lob-typescript-sdk
Version:
Lob API wrapper
125 lines (124 loc) • 3.92 kB
TypeScript
/**
* 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 CampaignCreative
*/
export declare class CampaignCreative {
constructor(input?: any);
/**
* Unique identifier prefixed with `crv_`.
* @type {string}
* @memberof CampaignCreative
*/
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 CampaignCreative
*/
"description"?: string | null;
/**
* Must either be an address ID or an inline object with correct address parameters.
* @type {any}
* @memberof CampaignCreative
*/
"from"?: string | Models.AddressEditable | null;
/**
* Mailpiece type for the creative
* @type {string}
* @memberof CampaignCreative
*/
"resource_type"?: CampaignCreativeResourceTypeEnum;
/**
* Either PostcardDetailsReturned or LetterDetailsReturned
* @type {any}
* @memberof CampaignCreative
*/
"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 CampaignCreative
*/
"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 CampaignCreative
*/
"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 CampaignCreative
*/
"template_previews"?: Array<object>;
/**
* Only returned if the resource has been successfully deleted.
* @type {boolean}
* @memberof CampaignCreative
*/
"deleted"?: boolean;
/**
*
* @type {Array<Campaign>}
* @memberof CampaignCreative
*/
"campaigns"?: Array<Campaign>;
/**
* A timestamp in ISO 8601 format of the date the resource was created.
* @type {string}
* @memberof CampaignCreative
*/
"date_created"?: string;
/**
* A timestamp in ISO 8601 format of the date the resource was last modified.
* @type {string}
* @memberof CampaignCreative
*/
"date_modified"?: string;
/**
* Value is resource type.
* @type {string}
* @memberof CampaignCreative
*/
"object"?: CampaignCreativeObjectEnum;
toJSON(): {};
}
/**
* @export
* @enum {string}
*/
export declare enum CampaignCreativeResourceTypeEnum {
Letter = "letter",
Postcard = "postcard"
}
/**
* @export
* @enum {string}
*/
export declare enum CampaignCreativeObjectEnum {
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.
*/