/** * 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 { DeviceMetadata } from './deviceMetadata'; export class PushTokenResponseObjectResourceAttributes { /** * The time at which the token was created */ 'created': Date; /** * The push token */ 'token': string; /** * The enablement status of the push token */ 'enablementStatus': PushTokenResponseObjectResourceAttributes.EnablementStatusEnum | 'AUTHORIZED' | 'DENIED' | 'NOT_DETERMINED' | 'PROVISIONAL' | 'UNAUTHORIZED'; /** * The platform of the push token(\'ios\', \'android\') */ 'platform': PushTokenResponseObjectResourceAttributes.PlatformEnum | 'android' | 'ios'; /** * The vendor of the push token(\'APNs\', \'FCM\') */ 'vendor': string; /** * The background state of the push token */ 'background': string; /** * The date the push token was recorded */ 'recordedDate': string; 'metadata'?: DeviceMetadata; static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "created", "baseName": "created", "type": "Date" }, { "name": "token", "baseName": "token", "type": "string" }, { "name": "enablementStatus", "baseName": "enablement_status", "type": "PushTokenResponseObjectResourceAttributes.EnablementStatusEnum" }, { "name": "platform", "baseName": "platform", "type": "PushTokenResponseObjectResourceAttributes.PlatformEnum" }, { "name": "vendor", "baseName": "vendor", "type": "string" }, { "name": "background", "baseName": "background", "type": "string" }, { "name": "recordedDate", "baseName": "recorded_date", "type": "string" }, { "name": "metadata", "baseName": "metadata", "type": "DeviceMetadata" } ]; static getAttributeTypeMap() { return PushTokenResponseObjectResourceAttributes.attributeTypeMap; } } export namespace PushTokenResponseObjectResourceAttributes { export enum EnablementStatusEnum { Authorized = 'AUTHORIZED', Denied = 'DENIED', NotDetermined = 'NOT_DETERMINED', Provisional = 'PROVISIONAL', Unauthorized = 'UNAUTHORIZED' } export enum PlatformEnum { Android = 'android', Ios = 'ios' } }