/** * 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 { Audiences } from './audiences'; import { CampaignResponseObjectResourceAttributesSendOptions } from './campaignResponseObjectResourceAttributesSendOptions'; import { CampaignResponseObjectResourceAttributesSendStrategy } from './campaignResponseObjectResourceAttributesSendStrategy'; import { CampaignResponseObjectResourceAttributesTrackingOptions } from './campaignResponseObjectResourceAttributesTrackingOptions'; export class CampaignResponseObjectResourceAttributes { /** * The campaign name */ 'name': string; /** * The current status of the campaign */ 'status': CampaignResponseObjectResourceAttributes.StatusEnum | 'Adding Recipients' | 'Cancelled' | 'Cancelled: Account Disabled' | 'Cancelled: Billing Limit' | 'Cancelled: Internal Error' | 'Cancelled: Misconfigured' | 'Cancelled: No Recipients' | 'Cancelled: Smart Sending' | 'Draft' | 'Preparing to schedule' | 'Preparing to send' | 'Queued without Recipients' | 'Scheduled' | 'Sending' | 'Sending Segments' | 'Sent' | 'Unknown' | 'Variations Sent'; /** * Whether the campaign has been archived or not */ 'archived': boolean; 'audiences': Audiences; 'sendOptions': CampaignResponseObjectResourceAttributesSendOptions; 'trackingOptions'?: CampaignResponseObjectResourceAttributesTrackingOptions | null; 'sendStrategy': CampaignResponseObjectResourceAttributesSendStrategy; /** * The datetime when the campaign was created */ 'createdAt': Date; /** * The datetime when the campaign was scheduled for future sending */ 'scheduledAt'?: Date | null; /** * The datetime when the campaign was last updated by a user or the system */ 'updatedAt': Date; /** * The datetime when the campaign will be / was sent or None if not yet scheduled by a send_job. */ 'sendTime'?: Date | null; static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "name", "baseName": "name", "type": "string" }, { "name": "status", "baseName": "status", "type": "CampaignResponseObjectResourceAttributes.StatusEnum" }, { "name": "archived", "baseName": "archived", "type": "boolean" }, { "name": "audiences", "baseName": "audiences", "type": "Audiences" }, { "name": "sendOptions", "baseName": "send_options", "type": "CampaignResponseObjectResourceAttributesSendOptions" }, { "name": "trackingOptions", "baseName": "tracking_options", "type": "CampaignResponseObjectResourceAttributesTrackingOptions" }, { "name": "sendStrategy", "baseName": "send_strategy", "type": "CampaignResponseObjectResourceAttributesSendStrategy" }, { "name": "createdAt", "baseName": "created_at", "type": "Date" }, { "name": "scheduledAt", "baseName": "scheduled_at", "type": "Date" }, { "name": "updatedAt", "baseName": "updated_at", "type": "Date" }, { "name": "sendTime", "baseName": "send_time", "type": "Date" } ]; static getAttributeTypeMap() { return CampaignResponseObjectResourceAttributes.attributeTypeMap; } } export namespace CampaignResponseObjectResourceAttributes { export enum StatusEnum { AddingRecipients = 'Adding Recipients', Cancelled = 'Cancelled', CancelledAccountDisabled = 'Cancelled: Account Disabled', CancelledBillingLimit = 'Cancelled: Billing Limit', CancelledInternalError = 'Cancelled: Internal Error', CancelledMisconfigured = 'Cancelled: Misconfigured', CancelledNoRecipients = 'Cancelled: No Recipients', CancelledSmartSending = 'Cancelled: Smart Sending', Draft = 'Draft', PreparingToSchedule = 'Preparing to schedule', PreparingToSend = 'Preparing to send', QueuedWithoutRecipients = 'Queued without Recipients', Scheduled = 'Scheduled', Sending = 'Sending', SendingSegments = 'Sending Segments', Sent = 'Sent', Unknown = 'Unknown', VariationsSent = 'Variations Sent' } }