class CrelateClient::PublicApiSaveContactRequest

Attributes

address_business_city[RW]
address_business_country[RW]
address_business_is_primary[RW]
address_business_line1[RW]
address_business_state[RW]
address_business_zip_code[RW]
address_home_city[RW]
address_home_country[RW]
address_home_is_primary[RW]
address_home_line1[RW]
address_home_state[RW]
address_home_zip_code[RW]
address_other_city[RW]
address_other_country[RW]
address_other_is_primary[RW]
address_other_line1[RW]
address_other_state[RW]
address_other_zip_code[RW]
current_position_company_id[RW]
current_position_company_name[RW]
current_position_title[RW]
current_position_when_end[RW]
current_position_when_start[RW]
description[RW]
education_accreditation_id[RW]
education_accreditation_name[RW]
education_honors[RW]
education_institution_id[RW]
education_institution_name[RW]
education_when_end[RW]
education_when_start[RW]
email_address_other[RW]
email_address_other_is_primary[RW]
email_address_personal[RW]
email_address_personal_is_primary[RW]
email_address_work[RW]
email_address_work_is_primary[RW]
ethnicity_id[RW]
ethnicity_name[RW]
external_primary_key[RW]
first_name[RW]
gender_id[RW]
gender_name[RW]
key_date_anniversary[RW]
key_date_birthday[RW]
key_date_other[RW]
last_name[RW]
middle_name[RW]
nick_name[RW]
phone_number_fax[RW]
phone_number_fax_extension[RW]
phone_number_fax_is_primary[RW]
phone_number_home[RW]
phone_number_home_extension[RW]
phone_number_home_is_primary[RW]
phone_number_mobile[RW]
phone_number_mobile_extension[RW]
phone_number_mobile_is_primary[RW]
phone_number_other[RW]
phone_number_other_extension[RW]
phone_number_other_is_primary[RW]
phone_number_skype[RW]
phone_number_skype_extension[RW]
phone_number_skype_is_primary[RW]
phone_number_work_direct[RW]
phone_number_work_direct_extension[RW]
phone_number_work_direct_is_primary[RW]
phone_number_work_main[RW]
phone_number_work_main_extension[RW]
phone_number_work_main_is_primary[RW]
preferred_contact_method_type_id[RW]
preferred_contact_method_type_name[RW]
record_type[RW]
salary[RW]
salary_details[RW]
salutation_id[RW]
salutation_name[RW]
social_aim[RW]
social_aim_is_primary[RW]
social_face_time[RW]
social_face_time_is_primary[RW]
social_facebook_chat[RW]
social_facebook_chat_is_primary[RW]
social_google_talk[RW]
social_google_talk_is_primary[RW]
social_icq[RW]
social_icq_is_primary[RW]
social_other[RW]
social_other_is_primary[RW]
social_skype[RW]
social_skype_is_primary[RW]
social_twitter[RW]
social_twitter_is_primary[RW]
social_yahoo_msg[RW]
social_yahoo_msg_is_primary[RW]
source_id[RW]
source_name[RW]
suffix_id[RW]
suffix_name[RW]
tags[RW]
website_blog[RW]
website_blog_is_primary[RW]
website_business[RW]
website_business_is_primary[RW]
website_facebook[RW]
website_facebook_is_primary[RW]
website_linked_in[RW]
website_linked_in_is_primary[RW]
website_other[RW]
website_other_is_primary[RW]
website_personal[RW]
website_personal_is_primary[RW]

Public Class Methods

attribute_map() click to toggle source

Attribute mapping from ruby-style variable name to JSON key.

# File lib/crelate_client/models/public_api_save_contact_request.rb, line 284
def self.attribute_map
  {
    :'address_business_city' => :'Address_Business_City',
    :'address_business_country' => :'Address_Business_Country',
    :'address_business_is_primary' => :'Address_Business_IsPrimary',
    :'address_business_line1' => :'Address_Business_Line1',
    :'address_business_state' => :'Address_Business_State',
    :'address_business_zip_code' => :'Address_Business_ZipCode',
    :'address_home_city' => :'Address_Home_City',
    :'address_home_country' => :'Address_Home_Country',
    :'address_home_is_primary' => :'Address_Home_IsPrimary',
    :'address_home_line1' => :'Address_Home_Line1',
    :'address_home_state' => :'Address_Home_State',
    :'address_home_zip_code' => :'Address_Home_ZipCode',
    :'address_other_city' => :'Address_Other_City',
    :'address_other_country' => :'Address_Other_Country',
    :'address_other_is_primary' => :'Address_Other_IsPrimary',
    :'address_other_line1' => :'Address_Other_Line1',
    :'address_other_state' => :'Address_Other_State',
    :'address_other_zip_code' => :'Address_Other_ZipCode',
    :'current_position_company_id' => :'CurrentPosition_Company_Id',
    :'current_position_company_name' => :'CurrentPosition_Company_Name',
    :'current_position_title' => :'CurrentPosition_Title',
    :'current_position_when_end' => :'CurrentPosition_WhenEnd',
    :'current_position_when_start' => :'CurrentPosition_WhenStart',
    :'description' => :'Description',
    :'education_accreditation_id' => :'Education_Accreditation_Id',
    :'education_accreditation_name' => :'Education_Accreditation_Name',
    :'education_honors' => :'Education_Honors',
    :'education_institution_id' => :'Education_Institution_Id',
    :'education_institution_name' => :'Education_Institution_Name',
    :'education_when_end' => :'Education_WhenEnd',
    :'education_when_start' => :'Education_WhenStart',
    :'email_address_other' => :'EmailAddress_Other',
    :'email_address_other_is_primary' => :'EmailAddress_Other_IsPrimary',
    :'email_address_personal' => :'EmailAddress_Personal',
    :'email_address_personal_is_primary' => :'EmailAddress_Personal_IsPrimary',
    :'email_address_work' => :'EmailAddress_Work',
    :'email_address_work_is_primary' => :'EmailAddress_Work_IsPrimary',
    :'ethnicity_id' => :'Ethnicity_Id',
    :'ethnicity_name' => :'Ethnicity_Name',
    :'external_primary_key' => :'ExternalPrimaryKey',
    :'first_name' => :'FirstName',
    :'gender_id' => :'Gender_Id',
    :'gender_name' => :'Gender_Name',
    :'key_date_anniversary' => :'KeyDate_Anniversary',
    :'key_date_birthday' => :'KeyDate_Birthday',
    :'key_date_other' => :'KeyDate_Other',
    :'last_name' => :'LastName',
    :'middle_name' => :'MiddleName',
    :'nick_name' => :'NickName',
    :'phone_number_fax' => :'PhoneNumber_Fax',
    :'phone_number_fax_extension' => :'PhoneNumber_Fax_Extension',
    :'phone_number_fax_is_primary' => :'PhoneNumber_Fax_IsPrimary',
    :'phone_number_home' => :'PhoneNumber_Home',
    :'phone_number_home_extension' => :'PhoneNumber_Home_Extension',
    :'phone_number_home_is_primary' => :'PhoneNumber_Home_IsPrimary',
    :'phone_number_mobile' => :'PhoneNumber_Mobile',
    :'phone_number_mobile_extension' => :'PhoneNumber_Mobile_Extension',
    :'phone_number_mobile_is_primary' => :'PhoneNumber_Mobile_IsPrimary',
    :'phone_number_other' => :'PhoneNumber_Other',
    :'phone_number_other_extension' => :'PhoneNumber_Other_Extension',
    :'phone_number_other_is_primary' => :'PhoneNumber_Other_IsPrimary',
    :'phone_number_skype' => :'PhoneNumber_Skype',
    :'phone_number_skype_extension' => :'PhoneNumber_Skype_Extension',
    :'phone_number_skype_is_primary' => :'PhoneNumber_Skype_IsPrimary',
    :'phone_number_work_direct' => :'PhoneNumber_WorkDirect',
    :'phone_number_work_direct_extension' => :'PhoneNumber_WorkDirect_Extension',
    :'phone_number_work_direct_is_primary' => :'PhoneNumber_WorkDirect_IsPrimary',
    :'phone_number_work_main' => :'PhoneNumber_WorkMain',
    :'phone_number_work_main_extension' => :'PhoneNumber_WorkMain_Extension',
    :'phone_number_work_main_is_primary' => :'PhoneNumber_WorkMain_IsPrimary',
    :'preferred_contact_method_type_id' => :'PreferredContactMethodType_Id',
    :'preferred_contact_method_type_name' => :'PreferredContactMethodType_Name',
    :'record_type' => :'RecordType',
    :'related_contact_assistant_first_name' => :'RelatedContact_Assistant_FirstName',
    :'related_contact_assistant_id' => :'RelatedContact_Assistant_Id',
    :'related_contact_assistant_is_primary' => :'RelatedContact_Assistant_IsPrimary',
    :'related_contact_assistant_last_name' => :'RelatedContact_Assistant_LastName',
    :'related_contact_client_first_name' => :'RelatedContact_Client_FirstName',
    :'related_contact_client_id' => :'RelatedContact_Client_Id',
    :'related_contact_client_is_primary' => :'RelatedContact_Client_IsPrimary',
    :'related_contact_client_last_name' => :'RelatedContact_Client_LastName',
    :'related_contact_other_first_name' => :'RelatedContact_Other_FirstName',
    :'related_contact_other_id' => :'RelatedContact_Other_Id',
    :'related_contact_other_is_primary' => :'RelatedContact_Other_IsPrimary',
    :'related_contact_other_last_name' => :'RelatedContact_Other_LastName',
    :'related_contact_referred_by_first_name' => :'RelatedContact_ReferredBy_FirstName',
    :'related_contact_referred_by_id' => :'RelatedContact_ReferredBy_Id',
    :'related_contact_referred_by_is_primary' => :'RelatedContact_ReferredBy_IsPrimary',
    :'related_contact_referred_by_last_name' => :'RelatedContact_ReferredBy_LastName',
    :'related_contact_spouse_first_name' => :'RelatedContact_Spouse_FirstName',
    :'related_contact_spouse_id' => :'RelatedContact_Spouse_Id',
    :'related_contact_spouse_is_primary' => :'RelatedContact_Spouse_IsPrimary',
    :'related_contact_spouse_last_name' => :'RelatedContact_Spouse_LastName',
    :'salary' => :'Salary',
    :'salary_details' => :'SalaryDetails',
    :'salutation_id' => :'Salutation_Id',
    :'salutation_name' => :'Salutation_Name',
    :'social_aim' => :'Social_AIM',
    :'social_aim_is_primary' => :'Social_AIM_IsPrimary',
    :'social_facebook_chat' => :'Social_FacebookChat',
    :'social_facebook_chat_is_primary' => :'Social_FacebookChat_IsPrimary',
    :'social_face_time' => :'Social_FaceTime',
    :'social_face_time_is_primary' => :'Social_FaceTime_IsPrimary',
    :'social_google_talk' => :'Social_GoogleTalk',
    :'social_google_talk_is_primary' => :'Social_GoogleTalk_IsPrimary',
    :'social_icq' => :'Social_ICQ',
    :'social_icq_is_primary' => :'Social_ICQ_IsPrimary',
    :'social_other' => :'Social_Other',
    :'social_other_is_primary' => :'Social_Other_IsPrimary',
    :'social_skype' => :'Social_Skype',
    :'social_skype_is_primary' => :'Social_Skype_IsPrimary',
    :'social_twitter' => :'Social_Twitter',
    :'social_twitter_is_primary' => :'Social_Twitter_IsPrimary',
    :'social_yahoo_msg' => :'Social_YahooMsg',
    :'social_yahoo_msg_is_primary' => :'Social_YahooMsg_IsPrimary',
    :'source_id' => :'Source_Id',
    :'source_name' => :'Source_Name',
    :'suffix_id' => :'Suffix_Id',
    :'suffix_name' => :'Suffix_Name',
    :'tags' => :'Tags',
    :'website_blog' => :'Website_Blog',
    :'website_blog_is_primary' => :'Website_Blog_IsPrimary',
    :'website_business' => :'Website_Business',
    :'website_business_is_primary' => :'Website_Business_IsPrimary',
    :'website_facebook' => :'Website_Facebook',
    :'website_facebook_is_primary' => :'Website_Facebook_IsPrimary',
    :'website_linked_in' => :'Website_LinkedIn',
    :'website_linked_in_is_primary' => :'Website_LinkedIn_IsPrimary',
    :'website_other' => :'Website_Other',
    :'website_other_is_primary' => :'Website_Other_IsPrimary',
    :'website_personal' => :'Website_Personal',
    :'website_personal_is_primary' => :'Website_Personal_IsPrimary'
  }
end
new(attributes = {}) click to toggle source

Initializes the object @param [Hash] attributes Model attributes in the form of hash

# File lib/crelate_client/models/public_api_save_contact_request.rb, line 561
def initialize(attributes = {})
  return unless attributes.is_a?(Hash)

  # convert string to symbol for hash key
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}

  if attributes.has_key?(:'Address_Business_City')
    self.address_business_city = attributes[:'Address_Business_City']
  end

  if attributes.has_key?(:'Address_Business_Country')
    self.address_business_country = attributes[:'Address_Business_Country']
  end

  if attributes.has_key?(:'Address_Business_IsPrimary')
    self.address_business_is_primary = attributes[:'Address_Business_IsPrimary']
  end

  if attributes.has_key?(:'Address_Business_Line1')
    self.address_business_line1 = attributes[:'Address_Business_Line1']
  end

  if attributes.has_key?(:'Address_Business_State')
    self.address_business_state = attributes[:'Address_Business_State']
  end

  if attributes.has_key?(:'Address_Business_ZipCode')
    self.address_business_zip_code = attributes[:'Address_Business_ZipCode']
  end

  if attributes.has_key?(:'Address_Home_City')
    self.address_home_city = attributes[:'Address_Home_City']
  end

  if attributes.has_key?(:'Address_Home_Country')
    self.address_home_country = attributes[:'Address_Home_Country']
  end

  if attributes.has_key?(:'Address_Home_IsPrimary')
    self.address_home_is_primary = attributes[:'Address_Home_IsPrimary']
  end

  if attributes.has_key?(:'Address_Home_Line1')
    self.address_home_line1 = attributes[:'Address_Home_Line1']
  end

  if attributes.has_key?(:'Address_Home_State')
    self.address_home_state = attributes[:'Address_Home_State']
  end

  if attributes.has_key?(:'Address_Home_ZipCode')
    self.address_home_zip_code = attributes[:'Address_Home_ZipCode']
  end

  if attributes.has_key?(:'Address_Other_City')
    self.address_other_city = attributes[:'Address_Other_City']
  end

  if attributes.has_key?(:'Address_Other_Country')
    self.address_other_country = attributes[:'Address_Other_Country']
  end

  if attributes.has_key?(:'Address_Other_IsPrimary')
    self.address_other_is_primary = attributes[:'Address_Other_IsPrimary']
  end

  if attributes.has_key?(:'Address_Other_Line1')
    self.address_other_line1 = attributes[:'Address_Other_Line1']
  end

  if attributes.has_key?(:'Address_Other_State')
    self.address_other_state = attributes[:'Address_Other_State']
  end

  if attributes.has_key?(:'Address_Other_ZipCode')
    self.address_other_zip_code = attributes[:'Address_Other_ZipCode']
  end

  if attributes.has_key?(:'CurrentPosition_Company_Id')
    self.current_position_company_id = attributes[:'CurrentPosition_Company_Id']
  end

  if attributes.has_key?(:'CurrentPosition_Company_Name')
    self.current_position_company_name = attributes[:'CurrentPosition_Company_Name']
  end

  if attributes.has_key?(:'CurrentPosition_Title')
    self.current_position_title = attributes[:'CurrentPosition_Title']
  end

  if attributes.has_key?(:'CurrentPosition_WhenEnd')
    self.current_position_when_end = attributes[:'CurrentPosition_WhenEnd']
  end

  if attributes.has_key?(:'CurrentPosition_WhenStart')
    self.current_position_when_start = attributes[:'CurrentPosition_WhenStart']
  end

  if attributes.has_key?(:'Description')
    self.description = attributes[:'Description']
  end

  if attributes.has_key?(:'Education_Accreditation_Id')
    self.education_accreditation_id = attributes[:'Education_Accreditation_Id']
  end

  if attributes.has_key?(:'Education_Accreditation_Name')
    self.education_accreditation_name = attributes[:'Education_Accreditation_Name']
  end

  if attributes.has_key?(:'Education_Honors')
    if (value = attributes[:'Education_Honors']).is_a?(Array)
      self.education_honors = value
    end
  end

  if attributes.has_key?(:'Education_Institution_Id')
    self.education_institution_id = attributes[:'Education_Institution_Id']
  end

  if attributes.has_key?(:'Education_Institution_Name')
    self.education_institution_name = attributes[:'Education_Institution_Name']
  end

  if attributes.has_key?(:'Education_WhenEnd')
    self.education_when_end = attributes[:'Education_WhenEnd']
  end

  if attributes.has_key?(:'Education_WhenStart')
    self.education_when_start = attributes[:'Education_WhenStart']
  end

  if attributes.has_key?(:'EmailAddress_Other')
    self.email_address_other = attributes[:'EmailAddress_Other']
  end

  if attributes.has_key?(:'EmailAddress_Other_IsPrimary')
    self.email_address_other_is_primary = attributes[:'EmailAddress_Other_IsPrimary']
  end

  if attributes.has_key?(:'EmailAddress_Personal')
    self.email_address_personal = attributes[:'EmailAddress_Personal']
  end

  if attributes.has_key?(:'EmailAddress_Personal_IsPrimary')
    self.email_address_personal_is_primary = attributes[:'EmailAddress_Personal_IsPrimary']
  end

  if attributes.has_key?(:'EmailAddress_Work')
    self.email_address_work = attributes[:'EmailAddress_Work']
  end

  if attributes.has_key?(:'EmailAddress_Work_IsPrimary')
    self.email_address_work_is_primary = attributes[:'EmailAddress_Work_IsPrimary']
  end

  if attributes.has_key?(:'Ethnicity_Id')
    self.ethnicity_id = attributes[:'Ethnicity_Id']
  end

  if attributes.has_key?(:'Ethnicity_Name')
    self.ethnicity_name = attributes[:'Ethnicity_Name']
  end

  if attributes.has_key?(:'ExternalPrimaryKey')
    self.external_primary_key = attributes[:'ExternalPrimaryKey']
  end

  if attributes.has_key?(:'FirstName')
    self.first_name = attributes[:'FirstName']
  end

  if attributes.has_key?(:'Gender_Id')
    self.gender_id = attributes[:'Gender_Id']
  end

  if attributes.has_key?(:'Gender_Name')
    self.gender_name = attributes[:'Gender_Name']
  end

  if attributes.has_key?(:'KeyDate_Anniversary')
    self.key_date_anniversary = attributes[:'KeyDate_Anniversary']
  end

  if attributes.has_key?(:'KeyDate_Birthday')
    self.key_date_birthday = attributes[:'KeyDate_Birthday']
  end

  if attributes.has_key?(:'KeyDate_Other')
    self.key_date_other = attributes[:'KeyDate_Other']
  end

  if attributes.has_key?(:'LastName')
    self.last_name = attributes[:'LastName']
  end

  if attributes.has_key?(:'MiddleName')
    self.middle_name = attributes[:'MiddleName']
  end

  if attributes.has_key?(:'NickName')
    self.nick_name = attributes[:'NickName']
  end

  if attributes.has_key?(:'PhoneNumber_Fax')
    self.phone_number_fax = attributes[:'PhoneNumber_Fax']
  end

  if attributes.has_key?(:'PhoneNumber_Fax_Extension')
    self.phone_number_fax_extension = attributes[:'PhoneNumber_Fax_Extension']
  end

  if attributes.has_key?(:'PhoneNumber_Fax_IsPrimary')
    self.phone_number_fax_is_primary = attributes[:'PhoneNumber_Fax_IsPrimary']
  end

  if attributes.has_key?(:'PhoneNumber_Home')
    self.phone_number_home = attributes[:'PhoneNumber_Home']
  end

  if attributes.has_key?(:'PhoneNumber_Home_Extension')
    self.phone_number_home_extension = attributes[:'PhoneNumber_Home_Extension']
  end

  if attributes.has_key?(:'PhoneNumber_Home_IsPrimary')
    self.phone_number_home_is_primary = attributes[:'PhoneNumber_Home_IsPrimary']
  end

  if attributes.has_key?(:'PhoneNumber_Mobile')
    self.phone_number_mobile = attributes[:'PhoneNumber_Mobile']
  end

  if attributes.has_key?(:'PhoneNumber_Mobile_Extension')
    self.phone_number_mobile_extension = attributes[:'PhoneNumber_Mobile_Extension']
  end

  if attributes.has_key?(:'PhoneNumber_Mobile_IsPrimary')
    self.phone_number_mobile_is_primary = attributes[:'PhoneNumber_Mobile_IsPrimary']
  end

  if attributes.has_key?(:'PhoneNumber_Other')
    self.phone_number_other = attributes[:'PhoneNumber_Other']
  end

  if attributes.has_key?(:'PhoneNumber_Other_Extension')
    self.phone_number_other_extension = attributes[:'PhoneNumber_Other_Extension']
  end

  if attributes.has_key?(:'PhoneNumber_Other_IsPrimary')
    self.phone_number_other_is_primary = attributes[:'PhoneNumber_Other_IsPrimary']
  end

  if attributes.has_key?(:'PhoneNumber_Skype')
    self.phone_number_skype = attributes[:'PhoneNumber_Skype']
  end

  if attributes.has_key?(:'PhoneNumber_Skype_Extension')
    self.phone_number_skype_extension = attributes[:'PhoneNumber_Skype_Extension']
  end

  if attributes.has_key?(:'PhoneNumber_Skype_IsPrimary')
    self.phone_number_skype_is_primary = attributes[:'PhoneNumber_Skype_IsPrimary']
  end

  if attributes.has_key?(:'PhoneNumber_WorkDirect')
    self.phone_number_work_direct = attributes[:'PhoneNumber_WorkDirect']
  end

  if attributes.has_key?(:'PhoneNumber_WorkDirect_Extension')
    self.phone_number_work_direct_extension = attributes[:'PhoneNumber_WorkDirect_Extension']
  end

  if attributes.has_key?(:'PhoneNumber_WorkDirect_IsPrimary')
    self.phone_number_work_direct_is_primary = attributes[:'PhoneNumber_WorkDirect_IsPrimary']
  end

  if attributes.has_key?(:'PhoneNumber_WorkMain')
    self.phone_number_work_main = attributes[:'PhoneNumber_WorkMain']
  end

  if attributes.has_key?(:'PhoneNumber_WorkMain_Extension')
    self.phone_number_work_main_extension = attributes[:'PhoneNumber_WorkMain_Extension']
  end

  if attributes.has_key?(:'PhoneNumber_WorkMain_IsPrimary')
    self.phone_number_work_main_is_primary = attributes[:'PhoneNumber_WorkMain_IsPrimary']
  end

  if attributes.has_key?(:'PreferredContactMethodType_Id')
    self.preferred_contact_method_type_id = attributes[:'PreferredContactMethodType_Id']
  end

  if attributes.has_key?(:'PreferredContactMethodType_Name')
    self.preferred_contact_method_type_name = attributes[:'PreferredContactMethodType_Name']
  end

  if attributes.has_key?(:'RecordType')
    if (value = attributes[:'RecordType']).is_a?(Array)
      self.record_type = value
    end
  end

  if attributes.has_key?(:'RelatedContact_Assistant_FirstName')
    self.related_contact_assistant_first_name = attributes[:'RelatedContact_Assistant_FirstName']
  end

  if attributes.has_key?(:'RelatedContact_Assistant_Id')
    self.related_contact_assistant_id = attributes[:'RelatedContact_Assistant_Id']
  end

  if attributes.has_key?(:'RelatedContact_Assistant_IsPrimary')
    self.related_contact_assistant_is_primary = attributes[:'RelatedContact_Assistant_IsPrimary']
  end

  if attributes.has_key?(:'RelatedContact_Assistant_LastName')
    self.related_contact_assistant_last_name = attributes[:'RelatedContact_Assistant_LastName']
  end

  if attributes.has_key?(:'RelatedContact_Client_FirstName')
    self.related_contact_client_first_name = attributes[:'RelatedContact_Client_FirstName']
  end

  if attributes.has_key?(:'RelatedContact_Client_Id')
    self.related_contact_client_id = attributes[:'RelatedContact_Client_Id']
  end

  if attributes.has_key?(:'RelatedContact_Client_IsPrimary')
    self.related_contact_client_is_primary = attributes[:'RelatedContact_Client_IsPrimary']
  end

  if attributes.has_key?(:'RelatedContact_Client_LastName')
    self.related_contact_client_last_name = attributes[:'RelatedContact_Client_LastName']
  end

  if attributes.has_key?(:'RelatedContact_Other_FirstName')
    self.related_contact_other_first_name = attributes[:'RelatedContact_Other_FirstName']
  end

  if attributes.has_key?(:'RelatedContact_Other_Id')
    self.related_contact_other_id = attributes[:'RelatedContact_Other_Id']
  end

  if attributes.has_key?(:'RelatedContact_Other_IsPrimary')
    self.related_contact_other_is_primary = attributes[:'RelatedContact_Other_IsPrimary']
  end

  if attributes.has_key?(:'RelatedContact_Other_LastName')
    self.related_contact_other_last_name = attributes[:'RelatedContact_Other_LastName']
  end

  if attributes.has_key?(:'RelatedContact_ReferredBy_FirstName')
    self.related_contact_referred_by_first_name = attributes[:'RelatedContact_ReferredBy_FirstName']
  end

  if attributes.has_key?(:'RelatedContact_ReferredBy_Id')
    self.related_contact_referred_by_id = attributes[:'RelatedContact_ReferredBy_Id']
  end

  if attributes.has_key?(:'RelatedContact_ReferredBy_IsPrimary')
    self.related_contact_referred_by_is_primary = attributes[:'RelatedContact_ReferredBy_IsPrimary']
  end

  if attributes.has_key?(:'RelatedContact_ReferredBy_LastName')
    self.related_contact_referred_by_last_name = attributes[:'RelatedContact_ReferredBy_LastName']
  end

  if attributes.has_key?(:'RelatedContact_Spouse_FirstName')
    self.related_contact_spouse_first_name = attributes[:'RelatedContact_Spouse_FirstName']
  end

  if attributes.has_key?(:'RelatedContact_Spouse_Id')
    self.related_contact_spouse_id = attributes[:'RelatedContact_Spouse_Id']
  end

  if attributes.has_key?(:'RelatedContact_Spouse_IsPrimary')
    self.related_contact_spouse_is_primary = attributes[:'RelatedContact_Spouse_IsPrimary']
  end

  if attributes.has_key?(:'RelatedContact_Spouse_LastName')
    self.related_contact_spouse_last_name = attributes[:'RelatedContact_Spouse_LastName']
  end

  if attributes.has_key?(:'Salary')
    self.salary = attributes[:'Salary']
  end

  if attributes.has_key?(:'SalaryDetails')
    self.salary_details = attributes[:'SalaryDetails']
  end

  if attributes.has_key?(:'Salutation_Id')
    self.salutation_id = attributes[:'Salutation_Id']
  end

  if attributes.has_key?(:'Salutation_Name')
    self.salutation_name = attributes[:'Salutation_Name']
  end

  if attributes.has_key?(:'Social_AIM')
    self.social_aim = attributes[:'Social_AIM']
  end

  if attributes.has_key?(:'Social_AIM_IsPrimary')
    self.social_aim_is_primary = attributes[:'Social_AIM_IsPrimary']
  end

  if attributes.has_key?(:'Social_FacebookChat')
    self.social_facebook_chat = attributes[:'Social_FacebookChat']
  end

  if attributes.has_key?(:'Social_FacebookChat_IsPrimary')
    self.social_facebook_chat_is_primary = attributes[:'Social_FacebookChat_IsPrimary']
  end

  if attributes.has_key?(:'Social_FaceTime')
    self.social_face_time = attributes[:'Social_FaceTime']
  end

  if attributes.has_key?(:'Social_FaceTime_IsPrimary')
    self.social_face_time_is_primary = attributes[:'Social_FaceTime_IsPrimary']
  end

  if attributes.has_key?(:'Social_GoogleTalk')
    self.social_google_talk = attributes[:'Social_GoogleTalk']
  end

  if attributes.has_key?(:'Social_GoogleTalk_IsPrimary')
    self.social_google_talk_is_primary = attributes[:'Social_GoogleTalk_IsPrimary']
  end

  if attributes.has_key?(:'Social_ICQ')
    self.social_icq = attributes[:'Social_ICQ']
  end

  if attributes.has_key?(:'Social_ICQ_IsPrimary')
    self.social_icq_is_primary = attributes[:'Social_ICQ_IsPrimary']
  end

  if attributes.has_key?(:'Social_Other')
    self.social_other = attributes[:'Social_Other']
  end

  if attributes.has_key?(:'Social_Other_IsPrimary')
    self.social_other_is_primary = attributes[:'Social_Other_IsPrimary']
  end

  if attributes.has_key?(:'Social_Skype')
    self.social_skype = attributes[:'Social_Skype']
  end

  if attributes.has_key?(:'Social_Skype_IsPrimary')
    self.social_skype_is_primary = attributes[:'Social_Skype_IsPrimary']
  end

  if attributes.has_key?(:'Social_Twitter')
    self.social_twitter = attributes[:'Social_Twitter']
  end

  if attributes.has_key?(:'Social_Twitter_IsPrimary')
    self.social_twitter_is_primary = attributes[:'Social_Twitter_IsPrimary']
  end

  if attributes.has_key?(:'Social_YahooMsg')
    self.social_yahoo_msg = attributes[:'Social_YahooMsg']
  end

  if attributes.has_key?(:'Social_YahooMsg_IsPrimary')
    self.social_yahoo_msg_is_primary = attributes[:'Social_YahooMsg_IsPrimary']
  end

  if attributes.has_key?(:'Source_Id')
    self.source_id = attributes[:'Source_Id']
  end

  if attributes.has_key?(:'Source_Name')
    self.source_name = attributes[:'Source_Name']
  end

  if attributes.has_key?(:'Suffix_Id')
    self.suffix_id = attributes[:'Suffix_Id']
  end

  if attributes.has_key?(:'Suffix_Name')
    self.suffix_name = attributes[:'Suffix_Name']
  end

  if attributes.has_key?(:'Tags')
    if (value = attributes[:'Tags']).is_a?(Hash)
      self.tags = value
    end
  end

  if attributes.has_key?(:'Website_Blog')
    self.website_blog = attributes[:'Website_Blog']
  end

  if attributes.has_key?(:'Website_Blog_IsPrimary')
    self.website_blog_is_primary = attributes[:'Website_Blog_IsPrimary']
  end

  if attributes.has_key?(:'Website_Business')
    self.website_business = attributes[:'Website_Business']
  end

  if attributes.has_key?(:'Website_Business_IsPrimary')
    self.website_business_is_primary = attributes[:'Website_Business_IsPrimary']
  end

  if attributes.has_key?(:'Website_Facebook')
    self.website_facebook = attributes[:'Website_Facebook']
  end

  if attributes.has_key?(:'Website_Facebook_IsPrimary')
    self.website_facebook_is_primary = attributes[:'Website_Facebook_IsPrimary']
  end

  if attributes.has_key?(:'Website_LinkedIn')
    self.website_linked_in = attributes[:'Website_LinkedIn']
  end

  if attributes.has_key?(:'Website_LinkedIn_IsPrimary')
    self.website_linked_in_is_primary = attributes[:'Website_LinkedIn_IsPrimary']
  end

  if attributes.has_key?(:'Website_Other')
    self.website_other = attributes[:'Website_Other']
  end

  if attributes.has_key?(:'Website_Other_IsPrimary')
    self.website_other_is_primary = attributes[:'Website_Other_IsPrimary']
  end

  if attributes.has_key?(:'Website_Personal')
    self.website_personal = attributes[:'Website_Personal']
  end

  if attributes.has_key?(:'Website_Personal_IsPrimary')
    self.website_personal_is_primary = attributes[:'Website_Personal_IsPrimary']
  end

end
swagger_types() click to toggle source

Attribute type mapping.

# File lib/crelate_client/models/public_api_save_contact_request.rb, line 422
def self.swagger_types
  {
    :'address_business_city' => :'String',
    :'address_business_country' => :'String',
    :'address_business_is_primary' => :'BOOLEAN',
    :'address_business_line1' => :'String',
    :'address_business_state' => :'String',
    :'address_business_zip_code' => :'String',
    :'address_home_city' => :'String',
    :'address_home_country' => :'String',
    :'address_home_is_primary' => :'BOOLEAN',
    :'address_home_line1' => :'String',
    :'address_home_state' => :'String',
    :'address_home_zip_code' => :'String',
    :'address_other_city' => :'String',
    :'address_other_country' => :'String',
    :'address_other_is_primary' => :'BOOLEAN',
    :'address_other_line1' => :'String',
    :'address_other_state' => :'String',
    :'address_other_zip_code' => :'String',
    :'current_position_company_id' => :'String',
    :'current_position_company_name' => :'String',
    :'current_position_title' => :'String',
    :'current_position_when_end' => :'DateTime',
    :'current_position_when_start' => :'DateTime',
    :'description' => :'String',
    :'education_accreditation_id' => :'String',
    :'education_accreditation_name' => :'String',
    :'education_honors' => :'Array<String>',
    :'education_institution_id' => :'String',
    :'education_institution_name' => :'String',
    :'education_when_end' => :'DateTime',
    :'education_when_start' => :'DateTime',
    :'email_address_other' => :'String',
    :'email_address_other_is_primary' => :'BOOLEAN',
    :'email_address_personal' => :'String',
    :'email_address_personal_is_primary' => :'BOOLEAN',
    :'email_address_work' => :'String',
    :'email_address_work_is_primary' => :'BOOLEAN',
    :'ethnicity_id' => :'String',
    :'ethnicity_name' => :'String',
    :'external_primary_key' => :'String',
    :'first_name' => :'String',
    :'gender_id' => :'String',
    :'gender_name' => :'String',
    :'key_date_anniversary' => :'DateTime',
    :'key_date_birthday' => :'DateTime',
    :'key_date_other' => :'DateTime',
    :'last_name' => :'String',
    :'middle_name' => :'String',
    :'nick_name' => :'String',
    :'phone_number_fax' => :'String',
    :'phone_number_fax_extension' => :'String',
    :'phone_number_fax_is_primary' => :'BOOLEAN',
    :'phone_number_home' => :'String',
    :'phone_number_home_extension' => :'String',
    :'phone_number_home_is_primary' => :'BOOLEAN',
    :'phone_number_mobile' => :'String',
    :'phone_number_mobile_extension' => :'String',
    :'phone_number_mobile_is_primary' => :'BOOLEAN',
    :'phone_number_other' => :'String',
    :'phone_number_other_extension' => :'String',
    :'phone_number_other_is_primary' => :'BOOLEAN',
    :'phone_number_skype' => :'String',
    :'phone_number_skype_extension' => :'String',
    :'phone_number_skype_is_primary' => :'BOOLEAN',
    :'phone_number_work_direct' => :'String',
    :'phone_number_work_direct_extension' => :'String',
    :'phone_number_work_direct_is_primary' => :'BOOLEAN',
    :'phone_number_work_main' => :'String',
    :'phone_number_work_main_extension' => :'String',
    :'phone_number_work_main_is_primary' => :'BOOLEAN',
    :'preferred_contact_method_type_id' => :'String',
    :'preferred_contact_method_type_name' => :'String',
    :'record_type' => :'Array<String>',
    :'related_contact_assistant_first_name' => :'String',
    :'related_contact_assistant_id' => :'String',
    :'related_contact_assistant_is_primary' => :'BOOLEAN',
    :'related_contact_assistant_last_name' => :'String',
    :'related_contact_client_first_name' => :'String',
    :'related_contact_client_id' => :'String',
    :'related_contact_client_is_primary' => :'BOOLEAN',
    :'related_contact_client_last_name' => :'String',
    :'related_contact_other_first_name' => :'String',
    :'related_contact_other_id' => :'String',
    :'related_contact_other_is_primary' => :'BOOLEAN',
    :'related_contact_other_last_name' => :'String',
    :'related_contact_referred_by_first_name' => :'String',
    :'related_contact_referred_by_id' => :'String',
    :'related_contact_referred_by_is_primary' => :'BOOLEAN',
    :'related_contact_referred_by_last_name' => :'String',
    :'related_contact_spouse_first_name' => :'String',
    :'related_contact_spouse_id' => :'String',
    :'related_contact_spouse_is_primary' => :'BOOLEAN',
    :'related_contact_spouse_last_name' => :'String',
    :'salary' => :'Float',
    :'salary_details' => :'String',
    :'salutation_id' => :'String',
    :'salutation_name' => :'String',
    :'social_aim' => :'String',
    :'social_aim_is_primary' => :'BOOLEAN',
    :'social_facebook_chat' => :'String',
    :'social_facebook_chat_is_primary' => :'BOOLEAN',
    :'social_face_time' => :'String',
    :'social_face_time_is_primary' => :'BOOLEAN',
    :'social_google_talk' => :'String',
    :'social_google_talk_is_primary' => :'BOOLEAN',
    :'social_icq' => :'String',
    :'social_icq_is_primary' => :'BOOLEAN',
    :'social_other' => :'String',
    :'social_other_is_primary' => :'BOOLEAN',
    :'social_skype' => :'String',
    :'social_skype_is_primary' => :'BOOLEAN',
    :'social_twitter' => :'String',
    :'social_twitter_is_primary' => :'BOOLEAN',
    :'social_yahoo_msg' => :'String',
    :'social_yahoo_msg_is_primary' => :'BOOLEAN',
    :'source_id' => :'String',
    :'source_name' => :'String',
    :'suffix_id' => :'String',
    :'suffix_name' => :'String',
    :'tags' => :'Hash<String, Array<String>>',
    :'website_blog' => :'String',
    :'website_blog_is_primary' => :'BOOLEAN',
    :'website_business' => :'String',
    :'website_business_is_primary' => :'BOOLEAN',
    :'website_facebook' => :'String',
    :'website_facebook_is_primary' => :'BOOLEAN',
    :'website_linked_in' => :'String',
    :'website_linked_in_is_primary' => :'BOOLEAN',
    :'website_other' => :'String',
    :'website_other_is_primary' => :'BOOLEAN',
    :'website_personal' => :'String',
    :'website_personal_is_primary' => :'BOOLEAN'
  }
end

Public Instance Methods

==(o) click to toggle source

Checks equality by comparing each attribute. @param [Object] Object to be compared

# File lib/crelate_client/models/public_api_save_contact_request.rb, line 1118
def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      address_business_city == o.address_business_city &&
      address_business_country == o.address_business_country &&
      address_business_is_primary == o.address_business_is_primary &&
      address_business_line1 == o.address_business_line1 &&
      address_business_state == o.address_business_state &&
      address_business_zip_code == o.address_business_zip_code &&
      address_home_city == o.address_home_city &&
      address_home_country == o.address_home_country &&
      address_home_is_primary == o.address_home_is_primary &&
      address_home_line1 == o.address_home_line1 &&
      address_home_state == o.address_home_state &&
      address_home_zip_code == o.address_home_zip_code &&
      address_other_city == o.address_other_city &&
      address_other_country == o.address_other_country &&
      address_other_is_primary == o.address_other_is_primary &&
      address_other_line1 == o.address_other_line1 &&
      address_other_state == o.address_other_state &&
      address_other_zip_code == o.address_other_zip_code &&
      current_position_company_id == o.current_position_company_id &&
      current_position_company_name == o.current_position_company_name &&
      current_position_title == o.current_position_title &&
      current_position_when_end == o.current_position_when_end &&
      current_position_when_start == o.current_position_when_start &&
      description == o.description &&
      education_accreditation_id == o.education_accreditation_id &&
      education_accreditation_name == o.education_accreditation_name &&
      education_honors == o.education_honors &&
      education_institution_id == o.education_institution_id &&
      education_institution_name == o.education_institution_name &&
      education_when_end == o.education_when_end &&
      education_when_start == o.education_when_start &&
      email_address_other == o.email_address_other &&
      email_address_other_is_primary == o.email_address_other_is_primary &&
      email_address_personal == o.email_address_personal &&
      email_address_personal_is_primary == o.email_address_personal_is_primary &&
      email_address_work == o.email_address_work &&
      email_address_work_is_primary == o.email_address_work_is_primary &&
      ethnicity_id == o.ethnicity_id &&
      ethnicity_name == o.ethnicity_name &&
      external_primary_key == o.external_primary_key &&
      first_name == o.first_name &&
      gender_id == o.gender_id &&
      gender_name == o.gender_name &&
      key_date_anniversary == o.key_date_anniversary &&
      key_date_birthday == o.key_date_birthday &&
      key_date_other == o.key_date_other &&
      last_name == o.last_name &&
      middle_name == o.middle_name &&
      nick_name == o.nick_name &&
      phone_number_fax == o.phone_number_fax &&
      phone_number_fax_extension == o.phone_number_fax_extension &&
      phone_number_fax_is_primary == o.phone_number_fax_is_primary &&
      phone_number_home == o.phone_number_home &&
      phone_number_home_extension == o.phone_number_home_extension &&
      phone_number_home_is_primary == o.phone_number_home_is_primary &&
      phone_number_mobile == o.phone_number_mobile &&
      phone_number_mobile_extension == o.phone_number_mobile_extension &&
      phone_number_mobile_is_primary == o.phone_number_mobile_is_primary &&
      phone_number_other == o.phone_number_other &&
      phone_number_other_extension == o.phone_number_other_extension &&
      phone_number_other_is_primary == o.phone_number_other_is_primary &&
      phone_number_skype == o.phone_number_skype &&
      phone_number_skype_extension == o.phone_number_skype_extension &&
      phone_number_skype_is_primary == o.phone_number_skype_is_primary &&
      phone_number_work_direct == o.phone_number_work_direct &&
      phone_number_work_direct_extension == o.phone_number_work_direct_extension &&
      phone_number_work_direct_is_primary == o.phone_number_work_direct_is_primary &&
      phone_number_work_main == o.phone_number_work_main &&
      phone_number_work_main_extension == o.phone_number_work_main_extension &&
      phone_number_work_main_is_primary == o.phone_number_work_main_is_primary &&
      preferred_contact_method_type_id == o.preferred_contact_method_type_id &&
      preferred_contact_method_type_name == o.preferred_contact_method_type_name &&
      record_type == o.record_type &&
      related_contact_assistant_first_name == o.related_contact_assistant_first_name &&
      related_contact_assistant_id == o.related_contact_assistant_id &&
      related_contact_assistant_is_primary == o.related_contact_assistant_is_primary &&
      related_contact_assistant_last_name == o.related_contact_assistant_last_name &&
      related_contact_client_first_name == o.related_contact_client_first_name &&
      related_contact_client_id == o.related_contact_client_id &&
      related_contact_client_is_primary == o.related_contact_client_is_primary &&
      related_contact_client_last_name == o.related_contact_client_last_name &&
      related_contact_other_first_name == o.related_contact_other_first_name &&
      related_contact_other_id == o.related_contact_other_id &&
      related_contact_other_is_primary == o.related_contact_other_is_primary &&
      related_contact_other_last_name == o.related_contact_other_last_name &&
      related_contact_referred_by_first_name == o.related_contact_referred_by_first_name &&
      related_contact_referred_by_id == o.related_contact_referred_by_id &&
      related_contact_referred_by_is_primary == o.related_contact_referred_by_is_primary &&
      related_contact_referred_by_last_name == o.related_contact_referred_by_last_name &&
      related_contact_spouse_first_name == o.related_contact_spouse_first_name &&
      related_contact_spouse_id == o.related_contact_spouse_id &&
      related_contact_spouse_is_primary == o.related_contact_spouse_is_primary &&
      related_contact_spouse_last_name == o.related_contact_spouse_last_name &&
      salary == o.salary &&
      salary_details == o.salary_details &&
      salutation_id == o.salutation_id &&
      salutation_name == o.salutation_name &&
      social_aim == o.social_aim &&
      social_aim_is_primary == o.social_aim_is_primary &&
      social_facebook_chat == o.social_facebook_chat &&
      social_facebook_chat_is_primary == o.social_facebook_chat_is_primary &&
      social_face_time == o.social_face_time &&
      social_face_time_is_primary == o.social_face_time_is_primary &&
      social_google_talk == o.social_google_talk &&
      social_google_talk_is_primary == o.social_google_talk_is_primary &&
      social_icq == o.social_icq &&
      social_icq_is_primary == o.social_icq_is_primary &&
      social_other == o.social_other &&
      social_other_is_primary == o.social_other_is_primary &&
      social_skype == o.social_skype &&
      social_skype_is_primary == o.social_skype_is_primary &&
      social_twitter == o.social_twitter &&
      social_twitter_is_primary == o.social_twitter_is_primary &&
      social_yahoo_msg == o.social_yahoo_msg &&
      social_yahoo_msg_is_primary == o.social_yahoo_msg_is_primary &&
      source_id == o.source_id &&
      source_name == o.source_name &&
      suffix_id == o.suffix_id &&
      suffix_name == o.suffix_name &&
      tags == o.tags &&
      website_blog == o.website_blog &&
      website_blog_is_primary == o.website_blog_is_primary &&
      website_business == o.website_business &&
      website_business_is_primary == o.website_business_is_primary &&
      website_facebook == o.website_facebook &&
      website_facebook_is_primary == o.website_facebook_is_primary &&
      website_linked_in == o.website_linked_in &&
      website_linked_in_is_primary == o.website_linked_in_is_primary &&
      website_other == o.website_other &&
      website_other_is_primary == o.website_other_is_primary &&
      website_personal == o.website_personal &&
      website_personal_is_primary == o.website_personal_is_primary
end
_deserialize(type, value) click to toggle source

Deserializes the data based on type @param string type Data type @param string value Value to be deserialized @return [Object] Deserialized data

# File lib/crelate_client/models/public_api_save_contact_request.rb, line 1291
def _deserialize(type, value)
  case type.to_sym
  when :DateTime
    DateTime.parse(value)
  when :Date
    Date.parse(value)
  when :String
    value.to_s
  when :Integer
    value.to_i
  when :Float
    value.to_f
  when :BOOLEAN
    if value.to_s =~ /\A(true|t|yes|y|1)\z/i
      true
    else
      false
    end
  when :Object
    # generic object (usually a Hash), return directly
    value
  when /\AArray<(?<inner_type>.+)>\z/
    inner_type = Regexp.last_match[:inner_type]
    value.map { |v| _deserialize(inner_type, v) }
  when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
    k_type = Regexp.last_match[:k_type]
    v_type = Regexp.last_match[:v_type]
    {}.tap do |hash|
      value.each do |k, v|
        hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
      end
    end
  else # model
    temp_model = CrelateClient.const_get(type).new
    temp_model.build_from_hash(value)
  end
end
_to_hash(value) click to toggle source

Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value @param [Object] value Any valid value @return [Hash] Returns the value in the form of hash

# File lib/crelate_client/models/public_api_save_contact_request.rb, line 1357
def _to_hash(value)
  if value.is_a?(Array)
    value.compact.map{ |v| _to_hash(v) }
  elsif value.is_a?(Hash)
    {}.tap do |hash|
      value.each { |k, v| hash[k] = _to_hash(v) }
    end
  elsif value.respond_to? :to_hash
    value.to_hash
  else
    value
  end
end
build_from_hash(attributes) click to toggle source

Builds the object from hash @param [Hash] attributes Model attributes in the form of hash @return [Object] Returns the model itself

# File lib/crelate_client/models/public_api_save_contact_request.rb, line 1270
def build_from_hash(attributes)
  return nil unless attributes.is_a?(Hash)
  self.class.swagger_types.each_pair do |key, type|
    if type =~ /\AArray<(.*)>/i
      # check to ensure the input is an array given that the the attribute
      # is documented as an array but the input is not
      if attributes[self.class.attribute_map[key]].is_a?(Array)
        self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
      end
    elsif !attributes[self.class.attribute_map[key]].nil?
      self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
    end # or else data not found in attributes(hash), not an issue as the data can be optional
  end

  self
end
eql?(o) click to toggle source

@see the `==` method @param [Object] Object to be compared

# File lib/crelate_client/models/public_api_save_contact_request.rb, line 1257
def eql?(o)
  self == o
end
hash() click to toggle source

Calculates hash code according to all attributes. @return [Fixnum] Hash code

# File lib/crelate_client/models/public_api_save_contact_request.rb, line 1263
def hash
  [address_business_city, address_business_country, address_business_is_primary, address_business_line1, address_business_state, address_business_zip_code, address_home_city, address_home_country, address_home_is_primary, address_home_line1, address_home_state, address_home_zip_code, address_other_city, address_other_country, address_other_is_primary, address_other_line1, address_other_state, address_other_zip_code, current_position_company_id, current_position_company_name, current_position_title, current_position_when_end, current_position_when_start, description, education_accreditation_id, education_accreditation_name, education_honors, education_institution_id, education_institution_name, education_when_end, education_when_start, email_address_other, email_address_other_is_primary, email_address_personal, email_address_personal_is_primary, email_address_work, email_address_work_is_primary, ethnicity_id, ethnicity_name, external_primary_key, first_name, gender_id, gender_name, key_date_anniversary, key_date_birthday, key_date_other, last_name, middle_name, nick_name, phone_number_fax, phone_number_fax_extension, phone_number_fax_is_primary, phone_number_home, phone_number_home_extension, phone_number_home_is_primary, phone_number_mobile, phone_number_mobile_extension, phone_number_mobile_is_primary, phone_number_other, phone_number_other_extension, phone_number_other_is_primary, phone_number_skype, phone_number_skype_extension, phone_number_skype_is_primary, phone_number_work_direct, phone_number_work_direct_extension, phone_number_work_direct_is_primary, phone_number_work_main, phone_number_work_main_extension, phone_number_work_main_is_primary, preferred_contact_method_type_id, preferred_contact_method_type_name, record_type, related_contact_assistant_first_name, related_contact_assistant_id, related_contact_assistant_is_primary, related_contact_assistant_last_name, related_contact_client_first_name, related_contact_client_id, related_contact_client_is_primary, related_contact_client_last_name, related_contact_other_first_name, related_contact_other_id, related_contact_other_is_primary, related_contact_other_last_name, related_contact_referred_by_first_name, related_contact_referred_by_id, related_contact_referred_by_is_primary, related_contact_referred_by_last_name, related_contact_spouse_first_name, related_contact_spouse_id, related_contact_spouse_is_primary, related_contact_spouse_last_name, salary, salary_details, salutation_id, salutation_name, social_aim, social_aim_is_primary, social_facebook_chat, social_facebook_chat_is_primary, social_face_time, social_face_time_is_primary, social_google_talk, social_google_talk_is_primary, social_icq, social_icq_is_primary, social_other, social_other_is_primary, social_skype, social_skype_is_primary, social_twitter, social_twitter_is_primary, social_yahoo_msg, social_yahoo_msg_is_primary, source_id, source_name, suffix_id, suffix_name, tags, website_blog, website_blog_is_primary, website_business, website_business_is_primary, website_facebook, website_facebook_is_primary, website_linked_in, website_linked_in_is_primary, website_other, website_other_is_primary, website_personal, website_personal_is_primary].hash
end
list_invalid_properties() click to toggle source

Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons

# File lib/crelate_client/models/public_api_save_contact_request.rb, line 1105
def list_invalid_properties
  invalid_properties = Array.new
  return invalid_properties
end
to_body() click to toggle source

to_body is an alias to to_hash (backward compatibility) @return [Hash] Returns the object in the form of hash

# File lib/crelate_client/models/public_api_save_contact_request.rb, line 1337
def to_body
  to_hash
end
to_hash() click to toggle source

Returns the object in the form of hash @return [Hash] Returns the object in the form of hash

# File lib/crelate_client/models/public_api_save_contact_request.rb, line 1343
def to_hash
  hash = {}
  self.class.attribute_map.each_pair do |attr, param|
    value = self.send(attr)
    next if value.nil?
    hash[param] = _to_hash(value)
  end
  hash
end
to_s() click to toggle source

Returns the string representation of the object @return [String] String presentation of the object

# File lib/crelate_client/models/public_api_save_contact_request.rb, line 1331
def to_s
  to_hash.to_s
end
valid?() click to toggle source

Check to see if the all the properties in the model are valid @return true if the model is valid

# File lib/crelate_client/models/public_api_save_contact_request.rb, line 1112
def valid?
  return true
end