/** * 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'; export class SubscriptionParameters { /** * The Consent status to be set as part of the subscribe call. Currently supports \"SUBSCRIBED\". */ 'consent': SubscriptionParameters.ConsentEnum | 'SUBSCRIBED'; /** * The timestamp of when the profile\'s consent was gathered. This should only be used when syncing over historical consent info to Klaviyo; if the `historical_import` flag is not included, providing any value for this field will raise an error. */ 'consentedAt'?: Date | null; static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "consent", "baseName": "consent", "type": "SubscriptionParameters.ConsentEnum" }, { "name": "consentedAt", "baseName": "consented_at", "type": "Date" } ]; static getAttributeTypeMap() { return SubscriptionParameters.attributeTypeMap; } } export namespace SubscriptionParameters { export enum ConsentEnum { Subscribed = 'SUBSCRIBED' } }