/** * 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 { RichTextMargin } from './richTextMargin'; import { TextStyleV0FontFamily } from './textStyleV0FontFamily'; export class RichTextStyle { 'fontFamily'?: TextStyleV0FontFamily; 'fontSize'?: number = 16; /** * Font weight enumeration. */ 'fontWeight'?: RichTextStyle.FontWeightEnum | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | null = RichTextStyle.FontWeightEnum.NUMBER_400; 'textColor'?: string = '#000000'; 'fontStyle'?: string | null; 'textDecoration'?: string | null; 'lineSpacing'?: number = 1; 'characterSpacing'?: number | null = 0; /** * Horizontal alignment enumeration. */ 'alignment'?: RichTextStyle.AlignmentEnum | 'center' | 'left' | 'right' = RichTextStyle.AlignmentEnum.Left; 'margin'?: RichTextMargin; static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "fontFamily", "baseName": "font_family", "type": "TextStyleV0FontFamily" }, { "name": "fontSize", "baseName": "font_size", "type": "number" }, { "name": "fontWeight", "baseName": "font_weight", "type": "RichTextStyle.FontWeightEnum" }, { "name": "textColor", "baseName": "text_color", "type": "string" }, { "name": "fontStyle", "baseName": "font_style", "type": "string" }, { "name": "textDecoration", "baseName": "text_decoration", "type": "string" }, { "name": "lineSpacing", "baseName": "line_spacing", "type": "number" }, { "name": "characterSpacing", "baseName": "character_spacing", "type": "number" }, { "name": "alignment", "baseName": "alignment", "type": "RichTextStyle.AlignmentEnum" }, { "name": "margin", "baseName": "margin", "type": "RichTextMargin" } ]; static getAttributeTypeMap() { return RichTextStyle.attributeTypeMap; } } export namespace RichTextStyle { export enum FontWeightEnum { NUMBER_100 = 100, NUMBER_200 = 200, NUMBER_300 = 300, NUMBER_400 = 400, NUMBER_500 = 500, NUMBER_600 = 600, NUMBER_700 = 700, NUMBER_800 = 800, NUMBER_900 = 900 } export enum AlignmentEnum { Center = 'center', Left = 'left', Right = 'right' } }