Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 960 Bytes

File metadata and controls

28 lines (22 loc) · 960 Bytes

ElasticEmail::ContactPayload

Properties

Name Type Description Notes
email String Proper email address.
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. Only already existing custom fields will be saved. [optional]
consent ConsentData [optional]

Example

require 'ElasticEmail'

instance = ElasticEmail::ContactPayload.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
)