/** * 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 { EventCreateQueryV2ResourceObjectAttributesMetric } from './eventCreateQueryV2ResourceObjectAttributesMetric'; import { EventCreateQueryV2ResourceObjectAttributesProfile } from './eventCreateQueryV2ResourceObjectAttributesProfile'; export class EventCreateQueryV2ResourceObjectAttributes { /** * Properties of this event (must not exceed 400 properties). The size of the event payload must not exceed 5 MB, and each string cannot be larger than 100 KB. For a full list of data limits on event payloads, see [Limitations](https://developers.klaviyo.com/en/reference/events_api_overview#limitations). Note any top-level property that is not an object can be used to create segments. The `$extra` property records any non-segmentable values that can be referenced later, e.g., HTML templates are useful on a segment but are not used to create a segment. */ 'properties': object; /** * When this event occurred. By default, the time the request was received will be used. The time is truncated to the second. The time must be after the year 2000 and can only be up to 1 year in the future. */ 'time'?: Date | null; /** * A numeric, monetary value to associate with this event. For example, the dollar amount of a purchase. */ 'value'?: number | null; /** * The ISO 4217 currency code of the value associated with the event. */ 'valueCurrency'?: string | null; /** * A unique identifier for an event. If the unique_id is repeated for the same profile and metric, only the first processed event will be recorded. If this is not present, this will use the time to the second. Using the default, this limits only one event per profile per second. */ 'uniqueId'?: string | null; 'metric': EventCreateQueryV2ResourceObjectAttributesMetric; 'profile': EventCreateQueryV2ResourceObjectAttributesProfile; static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "properties", "baseName": "properties", "type": "object" }, { "name": "time", "baseName": "time", "type": "Date" }, { "name": "value", "baseName": "value", "type": "number" }, { "name": "valueCurrency", "baseName": "value_currency", "type": "string" }, { "name": "uniqueId", "baseName": "unique_id", "type": "string" }, { "name": "metric", "baseName": "metric", "type": "EventCreateQueryV2ResourceObjectAttributesMetric" }, { "name": "profile", "baseName": "profile", "type": "EventCreateQueryV2ResourceObjectAttributesProfile" } ]; static getAttributeTypeMap() { return EventCreateQueryV2ResourceObjectAttributes.attributeTypeMap; } }