/** * Klaviyo API * The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. * * Contact: developers@klaviyo.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 { RequestFile } from './models'; import { TemplateDefinition } from './templateDefinition'; export class TemplateCreateHtmlOrDndQueryResourceObjectAttributes { /** * The name of the template */ 'name': string; /** * Restricted to CODE, USER_DRAGGABLE, or SYSTEM_DRAGGABLE */ 'editorType': string; /** * The HTML contents of the template. Required for CODE/USER_DRAGGABLE; not allowed for SYSTEM_DRAGGABLE. */ 'html'?: string | null; 'definition'?: TemplateDefinition; /** * The plaintext version of the template */ 'text'?: string | null; /** * The AMP version of the template. Requires AMP Email to be enabled to access in-app. Refer to the AMP Email setup guide at https://developers.klaviyo.com/en/docs/send_amp_emails_in_klaviyo Not allowed for SYSTEM_DRAGGABLE. */ 'amp'?: string | null; static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "name", "baseName": "name", "type": "string" }, { "name": "editorType", "baseName": "editor_type", "type": "string" }, { "name": "html", "baseName": "html", "type": "string" }, { "name": "definition", "baseName": "definition", "type": "TemplateDefinition" }, { "name": "text", "baseName": "text", "type": "string" }, { "name": "amp", "baseName": "amp", "type": "string" } ]; static getAttributeTypeMap() { return TemplateCreateHtmlOrDndQueryResourceObjectAttributes.attributeTypeMap; } }