Copied!
  • 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 string $create_source Describes who added the contact; valid values are Contact or Account. Your integration must accurately identify create_source for compliance reasons; value is set on POST, and is read-only going forward.
  • var int $birthday_month The month value for the contact's birthday. Valid values are from 1 through 12. The birthday_month property is required if you use birthday_day.
  • var int $birthday_day The day value for the contact's birthday. Valid values are from 1 through 31. The birthday_day property is required if you use birthday_month.
  • 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 PHPFUI\ConstantContact\Definition\ContactCustomField [] $custom_fields Array of up to 25 custom_field key value pairs.
  • var PHPFUI\ConstantContact\Definition\PhoneNumberPut [] $phone_numbers Array of up to 2 phone_numbers subresources.
  • var PHPFUI\ConstantContact\Definition\StreetAddressPut [] $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 being subscribed, up to a maximum of 50.
  • var PHPFUI\ConstantContact\UUID [] $taggings Array of tags (tag_id) assigned to the contact, up to a maximum of 50.
  • var PHPFUI\ConstantContact\Definition\Note [] $notes An array of notes about the contact.
Cloneable Instantiable
Methods
public PHPFUI\ConstantContact\Definition\Base :: __construct ( array $initialValues = [ ] )
public PHPFUI\ConstantContact\Definition\Base :: __get ( string $field )
 

Unset fields will return null

public PHPFUI\ConstantContact\Definition\Base :: __set ( string $field , $value )
public PHPFUI\ConstantContact\Definition\Base :: getData () : array
public PHPFUI\ConstantContact\Definition\Base :: getfields () : array
 

Return all the valid fields for the object. Index is field name and value is the type.

public PHPFUI\ConstantContact\Definition\Base :: getJSON () : string
Properties
protected static array $fields = [ 'email_address' => '\PHPFUI\ConstantContact\Definition\EmailAddressPost' , 'first_name' => 'string' , 'last_name' => 'string' , 'job_title' => 'string' , 'company_name' => 'string' , 'create_source' => [ 'Account' , 'Contact' ] , 'birthday_month' => 'int' , 'birthday_day' => 'int' , 'anniversary' => 'string' , 'custom_fields' => 'array<\PHPFUI\ConstantContact\Definition\ContactCustomField>' , 'phone_numbers' => 'array<\PHPFUI\ConstantContact\Definition\PhoneNumberPut>' , 'street_addresses' => 'array<\PHPFUI\ConstantContact\Definition\StreetAddressPut>' , '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 , 'list_memberships' => 50 , 'taggings' => 50 , 'notes' => 150 ]
protected static array PHPFUI\ConstantContact\Definition\Base :: $minLength
Properties
protected static array $fields = [ 'email_address' => '\PHPFUI\ConstantContact\Definition\EmailAddressPost' , 'first_name' => 'string' , 'last_name' => 'string' , 'job_title' => 'string' , 'company_name' => 'string' , 'create_source' => [ 'Account' , 'Contact' ] , 'birthday_month' => 'int' , 'birthday_day' => 'int' , 'anniversary' => 'string' , 'custom_fields' => 'array<\PHPFUI\ConstantContact\Definition\ContactCustomField>' , 'phone_numbers' => 'array<\PHPFUI\ConstantContact\Definition\PhoneNumberPut>' , 'street_addresses' => 'array<\PHPFUI\ConstantContact\Definition\StreetAddressPut>' , '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 , 'list_memberships' => 50 , 'taggings' => 50 , 'notes' => 150 ]
protected static array PHPFUI\ConstantContact\Definition\Base :: $minLength
© 2021 Bruce Wells
Search Namespaces \ Classes
Configuration