Skip to content

Files

Latest commit

author
Elasticemail
Nov 10, 2021
e87729e · Nov 10, 2021

History

History
38 lines (32 loc) · 1.39 KB

Contact.md

File metadata and controls

38 lines (32 loc) · 1.39 KB

ElasticEmail::Contact

Properties

Name Type Description Notes
email String Proper email address. [optional]
status ContactStatus [optional][default to 'Transactional']
first_name String First name. [optional]
last_name String Last name. [optional]
custom_fields Hash<String, String> A key-value collection of custom contact fields which can be used in the system. [optional]
consent ConsentData [optional]
source ContactSource [optional][default to 'DeliveryApi']
date_added Time Date of creation in YYYY-MM-DDThh:ii:ss format [optional]
date_updated Time Last change date [optional]
status_change_date Time Date of last status change. [optional]
activity ContactActivity [optional]

Example

require 'ElasticEmail'

instance = ElasticEmail::Contact.new(
  email: mail@example.com,
  status: null,
  first_name: Fred,
  last_name: Flintstone,
  custom_fields: {&quot;city&quot;:&quot;New York&quot;,&quot;age&quot;:&quot;34&quot;},
  consent: null,
  source: null,
  date_added: null,
  date_updated: null,
  status_change_date: null,
  activity: null
)