/** * 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 { BorderStyle } from './borderStyle'; import { ButtonDropShadowStyles } from './buttonDropShadowStyles'; import { ButtonStylesHeight } from './buttonStylesHeight'; import { Padding } from './padding'; import { TextStyleV0 } from './textStyleV0'; export class ButtonStyles { 'padding'?: Padding; 'backgroundColor'?: string | null; /** * Valid button block widths. */ 'width'?: ButtonStyles.WidthEnum | 'fill' | 'fit' = ButtonStyles.WidthEnum.Fill; 'height'?: ButtonStylesHeight; /** * Horizontal alignment enumeration. */ 'alignment'?: ButtonStyles.AlignmentEnum | 'center' | 'left' | 'right' = ButtonStyles.AlignmentEnum.Center; 'hoverBackgroundColor'?: string | null; 'hoverTextColor'?: string | null; 'borderStyles'?: BorderStyle; 'textStyles'?: TextStyleV0; 'color'?: string | null; 'dropShadow'?: ButtonDropShadowStyles; static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "padding", "baseName": "padding", "type": "Padding" }, { "name": "backgroundColor", "baseName": "background_color", "type": "string" }, { "name": "width", "baseName": "width", "type": "ButtonStyles.WidthEnum" }, { "name": "height", "baseName": "height", "type": "ButtonStylesHeight" }, { "name": "alignment", "baseName": "alignment", "type": "ButtonStyles.AlignmentEnum" }, { "name": "hoverBackgroundColor", "baseName": "hover_background_color", "type": "string" }, { "name": "hoverTextColor", "baseName": "hover_text_color", "type": "string" }, { "name": "borderStyles", "baseName": "border_styles", "type": "BorderStyle" }, { "name": "textStyles", "baseName": "text_styles", "type": "TextStyleV0" }, { "name": "color", "baseName": "color", "type": "string" }, { "name": "dropShadow", "baseName": "drop_shadow", "type": "ButtonDropShadowStyles" } ]; static getAttributeTypeMap() { return ButtonStyles.attributeTypeMap; } } export namespace ButtonStyles { export enum WidthEnum { Fill = 'fill', Fit = 'fit' } export enum AlignmentEnum { Center = 'center', Left = 'left', Right = 'right' } }