/** * 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 { AbTestActionDataMainAction } from './abTestActionDataMainAction'; import { AutomaticWinnerSelectionSettings } from './automaticWinnerSelectionSettings'; export class AbTestActionDataCurrentExperiment { /** * Not allowed on create. */ 'id'?: string | null; 'name'?: string | null; 'variations': Array; 'allocations'?: object | null; 'started'?: Date | null; /** * The metric to use to determine the winner of the A/B test action. Note that this is different from the metrics used as a flow trigger. */ 'winnerMetric'?: AbTestActionDataCurrentExperiment.WinnerMetricEnum | 'submission' | 'unique-clicks' | 'unique-opens' | 'unique-placed-orders' | null; 'automaticWinnerSelectionSettings'?: AutomaticWinnerSelectionSettings; static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "id", "baseName": "id", "type": "string" }, { "name": "name", "baseName": "name", "type": "string" }, { "name": "variations", "baseName": "variations", "type": "Array" }, { "name": "allocations", "baseName": "allocations", "type": "object" }, { "name": "started", "baseName": "started", "type": "Date" }, { "name": "winnerMetric", "baseName": "winner_metric", "type": "AbTestActionDataCurrentExperiment.WinnerMetricEnum" }, { "name": "automaticWinnerSelectionSettings", "baseName": "automatic_winner_selection_settings", "type": "AutomaticWinnerSelectionSettings" } ]; static getAttributeTypeMap() { return AbTestActionDataCurrentExperiment.attributeTypeMap; } } export namespace AbTestActionDataCurrentExperiment { export enum WinnerMetricEnum { Submission = 'submission', UniqueClicks = 'unique-clicks', UniqueOpens = 'unique-opens', UniquePlacedOrders = 'unique-placed-orders' } }