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] |
require 'ElasticEmail'
instance = ElasticEmail::Contact.new(
email: mail@example.com,
status: null,
first_name: Fred,
last_name: Flintstone,
custom_fields: {"city":"New York","age":"34"},
consent: null,
source: null,
date_added: null,
date_updated: null,
status_change_date: null,
activity: null
)