Copied!
  • var PHPFUI\ConstantContact\UUID $contact_id Unique ID for each contact resource
  • var string $first_name The first name of the contact.
  • var string $last_name The last name of the contact.
  • var string $job_title The job title of the contact.
  • var string $company_name The name of the company where the contact works.
  • var int $birthday_month The month value for the contact's birthday. Valid values are from 1 through 12. You must use this property with <code>birthday_month</code>.
  • var int $birthday_day The day value for the contact's birthday. Valid values are from 1 through 12. You must use this property with <code>birthday_day</code>.
  • var string $anniversary The anniversary date for the contact. For example, this value could be the date when the contact first became a customer of an organization in Constant Contact. Valid date formats are MM/DD/YYYY, M/D/YYYY, YYYY/MM/DD, YYYY/M/D, YYYY-MM-DD, YYYY-M-D,M-D-YYYY, or M-DD-YYYY.
  • var string $update_source Identifies who last updated the contact; valid values are Contact or Account
  • var string $create_source Describes who added the contact; valid values are <code>Contact</code> or <code>Account</code>. Your integration must accurately identify <code>create_source</code> for compliance reasons; value is set when contact is created.
  • var DateTime $created_at System generated date and time that the resource was created, in ISO-8601 format.
  • var DateTime $updated_at System generated date and time that the contact was last updated, in ISO-8601 format.
  • var PHPFUI\ConstantContact\Date $deleted_at For deleted contacts (<code>email_address</code> contains <code>opt_out_source</code> and <code>opt_out_date</code>), shows the date of deletion.
  • var PHPFUI\ConstantContact\Definition\ContactCustomField[] $custom_fields Array of up to 25 <code>custom_field</code> key value pairs.
  • var PHPFUI\ConstantContact\Definition\PhoneNumber[] $phone_numbers Array of phone_numbers subresources. A contact can have up to 2 phone numbers.
  • var PHPFUI\ConstantContact\Definition\StreetAddress[] $street_addresses Array of street_addresses subresources. A contact can have 1 street address.
  • var PHPFUI\ConstantContact\UUID[] $list_memberships Array of list_id's to which the contact is subscribed, up to a maximum of 50.
  • var PHPFUI\ConstantContact\UUID[] $taggings Array of tags (<code>tag_id</code>) assigned to the contact, up to a maximum of 50.
  • var PHPFUI\ConstantContact\Definition\Note[] $notes An array of up to 150 notes about the contact.
CloneableInstantiable
Methods
public PHPFUI\ConstantContact\Definition\Base::__construct(array $initialValues = [])
public PHPFUI\ConstantContact\Definition\Base::__get(string $field) : ?mixed
 

Unset fields will return null

public PHPFUI\ConstantContact\Definition\Base::__set(string $field, $value)
 
  • return mixed value being set to allow for assignment chaining
public PHPFUI\ConstantContact\Definition\Base::getData() : array
 
  • return array representation of data
public PHPFUI\ConstantContact\Definition\Base::getfields() : array
 
  • return array all the valid fields for the object. Index is field name and value is the type.
public PHPFUI\ConstantContact\Definition\Base::getJSON() : string
 
  • return string pretty print JSON
Properties
protected static array $fields = ['contact_id' => '\PHPFUI\ConstantContact\UUID', 'email_address' => '\PHPFUI\ConstantContact\Definition\EmailAddress', 'first_name' => 'string', 'last_name' => 'string', 'job_title' => 'string', 'company_name' => 'string', 'birthday_month' => 'int', 'birthday_day' => 'int', 'anniversary' => 'string', 'update_source' => ['Account', 'Contact'], 'create_source' => ['Account', 'Contact'], 'created_at' => 'DateTime', 'updated_at' => 'DateTime', 'deleted_at' => '\PHPFUI\ConstantContact\Date', 'custom_fields' => 'array<\PHPFUI\ConstantContact\Definition\ContactCustomField>', 'phone_numbers' => 'array<\PHPFUI\ConstantContact\Definition\PhoneNumber>', 'street_addresses' => 'array<\PHPFUI\ConstantContact\Definition\StreetAddress>', 'list_memberships' => 'array<\PHPFUI\ConstantContact\UUID>', 'taggings' => 'array<\PHPFUI\ConstantContact\UUID>', 'notes' => 'array<\PHPFUI\ConstantContact\Definition\Note>']
protected static array $maxLength = ['first_name' => 50, 'last_name' => 50, 'job_title' => 50, 'company_name' => 50, 'anniversary' => 10, 'custom_fields' => 25, 'phone_numbers' => 2, 'street_addresses' => 1, 'list_memberships' => 50, 'taggings' => 50, 'notes' => 150]
protected static array PHPFUI\ConstantContact\Definition\Base::$minLength
 
  • var array<string,int> minimum allowed values. Arrays are size, int and float are values, strings are length.
protected static array PHPFUI\ConstantContact\Definition\Base::$requiredFields
 
  • var string[] required fields.
Properties
protected static array $fields = ['contact_id' => '\PHPFUI\ConstantContact\UUID', 'email_address' => '\PHPFUI\ConstantContact\Definition\EmailAddress', 'first_name' => 'string', 'last_name' => 'string', 'job_title' => 'string', 'company_name' => 'string', 'birthday_month' => 'int', 'birthday_day' => 'int', 'anniversary' => 'string', 'update_source' => ['Account', 'Contact'], 'create_source' => ['Account', 'Contact'], 'created_at' => 'DateTime', 'updated_at' => 'DateTime', 'deleted_at' => '\PHPFUI\ConstantContact\Date', 'custom_fields' => 'array<\PHPFUI\ConstantContact\Definition\ContactCustomField>', 'phone_numbers' => 'array<\PHPFUI\ConstantContact\Definition\PhoneNumber>', 'street_addresses' => 'array<\PHPFUI\ConstantContact\Definition\StreetAddress>', 'list_memberships' => 'array<\PHPFUI\ConstantContact\UUID>', 'taggings' => 'array<\PHPFUI\ConstantContact\UUID>', 'notes' => 'array<\PHPFUI\ConstantContact\Definition\Note>']
protected static array $maxLength = ['first_name' => 50, 'last_name' => 50, 'job_title' => 50, 'company_name' => 50, 'anniversary' => 10, 'custom_fields' => 25, 'phone_numbers' => 2, 'street_addresses' => 1, 'list_memberships' => 50, 'taggings' => 50, 'notes' => 150]
protected static array PHPFUI\ConstantContact\Definition\Base::$minLength
 
  • var array<string,int> minimum allowed values. Arrays are size, int and float are values, strings are length.
protected static array PHPFUI\ConstantContact\Definition\Base::$requiredFields
 
  • var string[] required fields.
© 2022 Bruce Wells
Search Namespaces \ Classes
Configuration