Skip to content

Latest commit

 

History

History
46 lines (40 loc) · 2.61 KB

File metadata and controls

46 lines (40 loc) · 2.61 KB

MergeCRMClient::Contact

Properties

Name Type Description Notes
first_name String The contact's first name. [optional]
last_name String The contact's last name. [optional]
account String The contact's account. [optional]
addresses Array<Address> [optional]
email_addresses Array<EmailAddress> [optional]
phone_numbers Array<PhoneNumber> [optional]
last_activity_at Time When the contact's last activity occurred. [optional]
remote_created_at Time When the third party's contact was created. [optional]
remote_was_deleted Boolean [optional][readonly]
id String [optional][readonly]
remote_id String The third-party API ID of the matching object. [optional]
modified_at Time This is the datetime that this object was last updated by Merge [optional][readonly]
field_mappings Hash<String, AnyType> [optional][readonly]
remote_data Array<RemoteData> [optional][readonly]
remote_fields Array<RemoteField> [optional][readonly]

Example

require 'merge_crm_client'

instance = MergeCRMClient::Contact.new(
  first_name: Gil,
  last_name: Feig,
  account: 0958cbc6-6040-430a-848e-aafacbadf4ae,
  addresses: [{&quot;street_1&quot;:&quot;50 Bowling Green Dr&quot;,&quot;street_2&quot;:&quot;Golden Gate Park&quot;,&quot;city&quot;:&quot;San Francisco&quot;,&quot;state&quot;:&quot;CA&quot;,&quot;postal_code&quot;:&quot;94122&quot;,&quot;country&quot;:&quot;US&quot;,&quot;address_type&quot;:&quot;Shipping&quot;}],
  email_addresses: [{&quot;email_address&quot;:&quot;hello@merge.dev&quot;,&quot;email_address_type&quot;:&quot;Work&quot;}],
  phone_numbers: [{&quot;phone_number&quot;:&quot;+13785579223&quot;,&quot;phone_number_type&quot;:&quot;Mobile&quot;}],
  last_activity_at: 2022-02-10T00:00Z,
  remote_created_at: 2021-11-10T00:00Z,
  remote_was_deleted: null,
  id: null,
  remote_id: 19202938,
  modified_at: 2021-10-16T00:00Z,
  field_mappings: {&quot;organization_defined_targets&quot;:{&quot;custom_key&quot;:&quot;custom_value&quot;},&quot;linked_account_defined_targets&quot;:{&quot;custom_key&quot;:&quot;custom_value&quot;}},
  remote_data: [{&quot;path&quot;:&quot;/contacts&quot;,&quot;data&quot;:[&quot;Varies by platform&quot;]}],
  remote_fields: null
)