/** * 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 WhatsappConversationalChannel { /** * The consent status for the channel. */ 'consent': string; /** * The timestamp when consent was recorded or updated for the channel, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm). */ 'consentTimestamp'?: Date | null; /** * The timestamp when the channel was last modified, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm). */ 'lastUpdated'?: Date | null; /** * The timestamp when the channel was created, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm). */ 'createdTimestamp'?: Date | null; /** * Channel-specific metadata containing additional information about the permission. */ 'metadata'?: object | null; /** * Whether the profile can receive messages on this channel. */ 'canReceive': boolean; /** * Optional expiration date for the permission, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm). */ 'validUntil'?: Date | null; /** * Phone number to which the consent was granted for. */ 'phoneNumber': string; static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "consent", "baseName": "consent", "type": "string" }, { "name": "consentTimestamp", "baseName": "consent_timestamp", "type": "Date" }, { "name": "lastUpdated", "baseName": "last_updated", "type": "Date" }, { "name": "createdTimestamp", "baseName": "created_timestamp", "type": "Date" }, { "name": "metadata", "baseName": "metadata", "type": "object" }, { "name": "canReceive", "baseName": "can_receive", "type": "boolean" }, { "name": "validUntil", "baseName": "valid_until", "type": "Date" }, { "name": "phoneNumber", "baseName": "phone_number", "type": "string" } ]; static getAttributeTypeMap() { return WhatsappConversationalChannel.attributeTypeMap; } }