Profile

Controls the data that can be input into a map of profile attributes recognised by Klaviyo

Constructors

Link copied to clipboard
constructor(externalId: String? = null, email: String? = null, phoneNumber: String? = null, properties: Map<ProfileKey, Serializable>? = null)
constructor(properties: Map<ProfileKey, Serializable>?)

Properties

Link copied to clipboard
open override var anonymousId: String?
Link copied to clipboard

Return a profile object containing only non-identifier attributes

Link copied to clipboard
open override var email: String?
Link copied to clipboard
open override var externalId: String?
Link copied to clipboard
open override var phoneNumber: String?

Functions

Link copied to clipboard
open override fun copy(): Profile

Create a copy of this model object

Link copied to clipboard

open override fun merge(other: Profile?): Profile

Merges attributes from another object into this one

Link copied to clipboard
fun setEmail(email: String?): Profile
Link copied to clipboard
fun setExternalId(identifier: String?): Profile
Link copied to clipboard
fun setPhoneNumber(phoneNumber: String?): Profile
Link copied to clipboard
open override fun setProperty(key: ProfileKey, value: Serializable?): Profile

Adds a custom property to the map. Custom attributes can define any key name that isn't already reserved by Klaviyo

open override fun setProperty(key: String, value: Serializable?): Profile

Add a custom property to the map. Custom attributes can define any key name that isn't already reserved by Klaviyo