/** * 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 { EmailMarketingListSuppression } from './emailMarketingListSuppression'; import { EmailMarketingSuppression } from './emailMarketingSuppression'; export class EmailMarketing { /** * Whether or not this profile has implicit consent to receive email marketing. True if it does profile does not have any global suppressions. */ 'canReceiveEmailMarketing': boolean; /** * The consent status for email marketing. */ 'consent': string; /** * The timestamp when consent was recorded or updated for email marketing, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm). */ 'consentTimestamp'?: Date | null; /** * The timestamp when a field on the email marketing object was last modified. */ 'lastUpdated'?: Date | null; /** * The method by which the profile was subscribed to email marketing. */ 'method'?: string | null; /** * Additional details about the method by which the profile was subscribed to email marketing. This may be empty if no details were provided. */ 'methodDetail'?: string | null = ''; /** * Additional detail provided by the caller when the profile was subscribed. This may be empty if no details were provided. */ 'customMethodDetail'?: string | null; /** * Whether the profile was subscribed to email marketing using a double opt-in. */ 'doubleOptin'?: boolean | null; /** * The global email marketing suppression for this profile. */ 'suppression'?: Array | null; /** * The list suppressions for this profile. */ 'listSuppressions'?: Array | null; static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "canReceiveEmailMarketing", "baseName": "can_receive_email_marketing", "type": "boolean" }, { "name": "consent", "baseName": "consent", "type": "string" }, { "name": "consentTimestamp", "baseName": "consent_timestamp", "type": "Date" }, { "name": "lastUpdated", "baseName": "last_updated", "type": "Date" }, { "name": "method", "baseName": "method", "type": "string" }, { "name": "methodDetail", "baseName": "method_detail", "type": "string" }, { "name": "customMethodDetail", "baseName": "custom_method_detail", "type": "string" }, { "name": "doubleOptin", "baseName": "double_optin", "type": "boolean" }, { "name": "suppression", "baseName": "suppression", "type": "Array" }, { "name": "listSuppressions", "baseName": "list_suppressions", "type": "Array" } ]; static getAttributeTypeMap() { return EmailMarketing.attributeTypeMap; } }