crelate_client 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (331) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +7 -0
  3. data/Gemfile.lock +69 -0
  4. data/README.md +267 -0
  5. data/Rakefile +8 -0
  6. data/crelate_client-1.0.0.gem +0 -0
  7. data/crelate_client.gemspec +45 -0
  8. data/docs/AssignedTo.md +11 -0
  9. data/docs/AssignedToRequest.md +9 -0
  10. data/docs/BoardParameters.md +9 -0
  11. data/docs/BroadcastMessage.md +15 -0
  12. data/docs/BroadcastMessageCreateRequest.md +9 -0
  13. data/docs/CompaniesApi.md +921 -0
  14. data/docs/Company.md +11 -0
  15. data/docs/ComplianceSettingsPayload.md +8 -0
  16. data/docs/ConsentRequestPayload.md +9 -0
  17. data/docs/ContactsApi.md +1246 -0
  18. data/docs/CrelateAction.md +14 -0
  19. data/docs/CrelateActionPayload.md +10 -0
  20. data/docs/CrelateDetails.md +10 -0
  21. data/docs/CustomFormCompletedForm.md +11 -0
  22. data/docs/CustomFormDefinition.md +16 -0
  23. data/docs/CustomFormDefinitionEntities.md +9 -0
  24. data/docs/CustomFormFormDefinitionUsage.md +10 -0
  25. data/docs/CustomFormFormDefintionUsageJobs.md +9 -0
  26. data/docs/CustomFormFormFieldUsage.md +11 -0
  27. data/docs/CustomFormFormFieldUsageFormDefinition.md +10 -0
  28. data/docs/CustomFormLayoutSection.md +9 -0
  29. data/docs/CustomFormSaveResponse.md +12 -0
  30. data/docs/DocumentCollection.md +10 -0
  31. data/docs/DocumentItem.md +22 -0
  32. data/docs/DomainApi.md +198 -0
  33. data/docs/EmailAttachment.md +9 -0
  34. data/docs/EntityDocumentOptions.md +8 -0
  35. data/docs/EntityLookup.md +15 -0
  36. data/docs/ExtIntegrationResponseInterviewResponse.md +11 -0
  37. data/docs/ExtReferralRequest.md +12 -0
  38. data/docs/ExtResumeCandidate.md +21 -0
  39. data/docs/ExtResumeCareerBuilderValidateCredentialsResponse.md +9 -0
  40. data/docs/ExtResumeOrgState.md +27 -0
  41. data/docs/ExtResumePackagePricing.md +11 -0
  42. data/docs/ExtResumePackageUpdateRequest.md +9 -0
  43. data/docs/ExtResumeSearchResponse.md +9 -0
  44. data/docs/ExtResumeViewResponse.md +30 -0
  45. data/docs/FusebillStateItem.md +9 -0
  46. data/docs/GetDocumentListOptions.md +10 -0
  47. data/docs/InterviewRequest.md +9 -0
  48. data/docs/InterviewRequestDetails.md +15 -0
  49. data/docs/InterviewResponse.md +18 -0
  50. data/docs/JobPostRequest.md +9 -0
  51. data/docs/JobPostingsApi.md +378 -0
  52. data/docs/JobResponse.md +15 -0
  53. data/docs/JobsApi.md +1197 -0
  54. data/docs/MultiEntityLookup.md +8 -0
  55. data/docs/NotesApi.md +215 -0
  56. data/docs/OrgAuditLogEvent.md +22 -0
  57. data/docs/PostPurchaseRequest.md +12 -0
  58. data/docs/PublicApiAttachmentResponse.md +19 -0
  59. data/docs/PublicApiAttachmentResponseList.md +9 -0
  60. data/docs/PublicApiDocumentType.md +10 -0
  61. data/docs/PublicApiGetAccountResponse.md +85 -0
  62. data/docs/PublicApiGetAccountResponseList.md +9 -0
  63. data/docs/PublicApiGetContactJob.md +13 -0
  64. data/docs/PublicApiGetContactResponse.md +151 -0
  65. data/docs/PublicApiGetContactResponseList.md +9 -0
  66. data/docs/PublicApiGetJobContact.md +13 -0
  67. data/docs/PublicApiGetJobListResponse.md +9 -0
  68. data/docs/PublicApiGetJobPostingListResponse.md +9 -0
  69. data/docs/PublicApiGetJobPostingResponse.md +29 -0
  70. data/docs/PublicApiGetJobPostingSearchResponse.md +8 -0
  71. data/docs/PublicApiGetJobPostingSearchResult.md +18 -0
  72. data/docs/PublicApiGetJobResponse.md +127 -0
  73. data/docs/PublicApiGetNoteResponse.md +21 -0
  74. data/docs/PublicApiGetTaskResponse.md +23 -0
  75. data/docs/PublicApiIdResponse.md +8 -0
  76. data/docs/PublicApiPlacementResponse.md +32 -0
  77. data/docs/PublicApiPlacementResponseList.md +9 -0
  78. data/docs/PublicApiRecordOwner.md +10 -0
  79. data/docs/PublicApiSaveAccountRequest.md +74 -0
  80. data/docs/PublicApiSaveAttachmentRequest.md +13 -0
  81. data/docs/PublicApiSaveContactRequest.md +139 -0
  82. data/docs/PublicApiSaveJobApplicationRequest.md +13 -0
  83. data/docs/PublicApiSaveJobPostingRequest.md +19 -0
  84. data/docs/PublicApiSaveJobRequest.md +95 -0
  85. data/docs/PublicApiSaveJobRequestJobType.md +9 -0
  86. data/docs/PublicApiSaveNoteRequest.md +11 -0
  87. data/docs/PublicApiSaveTaskRequest.md +13 -0
  88. data/docs/PublicApiSaveWorkflowItemStatusRequest.md +9 -0
  89. data/docs/PublicApiTagCategory.md +9 -0
  90. data/docs/PublicApiWorkflowStatus.md +12 -0
  91. data/docs/PublicApiWorkflowType.md +9 -0
  92. data/docs/Question.md +13 -0
  93. data/docs/QuestionSetResponse.md +12 -0
  94. data/docs/SaveExtCredentialResponse.md +10 -0
  95. data/docs/SearchContact.md +11 -0
  96. data/docs/SendEmailResponse.md +13 -0
  97. data/docs/SendSubmittalDetail.md +11 -0
  98. data/docs/ShareLink.md +13 -0
  99. data/docs/SignupInformation.md +19 -0
  100. data/docs/SmsPlivoMessageReceivedRequest.md +15 -0
  101. data/docs/SmsPlivoMessageStatusReceivedRequest.md +17 -0
  102. data/docs/SmsPlivoVoiceAnswerRequest.md +13 -0
  103. data/docs/SmsPlivoVoiceHangupRequest.md +19 -0
  104. data/docs/SparkHireResponseInfoInterviewResponse.md +11 -0
  105. data/docs/SparkHireResponseInfoJobResponse.md +11 -0
  106. data/docs/SparkHireResponseInfoQuestionSetResponse.md +11 -0
  107. data/docs/TasksApi.md +215 -0
  108. data/docs/UserResponse.md +12 -0
  109. data/docs/WayupData.md +15 -0
  110. data/docs/WebhookDeleteResponse.md +8 -0
  111. data/docs/ZipApplyData.md +15 -0
  112. data/git_push.sh +55 -0
  113. data/lib/.DS_Store +0 -0
  114. data/lib/crelate_client/.DS_Store +0 -0
  115. data/lib/crelate_client/api/companies_api.rb +1151 -0
  116. data/lib/crelate_client/api/contacts_api.rb +1552 -0
  117. data/lib/crelate_client/api/domain_api.rb +239 -0
  118. data/lib/crelate_client/api/job_postings_api.rb +467 -0
  119. data/lib/crelate_client/api/jobs_api.rb +1494 -0
  120. data/lib/crelate_client/api/notes_api.rb +273 -0
  121. data/lib/crelate_client/api/tasks_api.rb +273 -0
  122. data/lib/crelate_client/api_client.rb +388 -0
  123. data/lib/crelate_client/api_error.rb +38 -0
  124. data/lib/crelate_client/configuration.rb +202 -0
  125. data/lib/crelate_client/models/assigned_to.rb +215 -0
  126. data/lib/crelate_client/models/assigned_to_request.rb +197 -0
  127. data/lib/crelate_client/models/board_parameters.rb +199 -0
  128. data/lib/crelate_client/models/broadcast_message.rb +284 -0
  129. data/lib/crelate_client/models/broadcast_message_create_request.rb +197 -0
  130. data/lib/crelate_client/models/company.rb +215 -0
  131. data/lib/crelate_client/models/compliance_settings_payload.rb +188 -0
  132. data/lib/crelate_client/models/consent_request_payload.rb +197 -0
  133. data/lib/crelate_client/models/crelate_action.rb +279 -0
  134. data/lib/crelate_client/models/crelate_action_payload.rb +210 -0
  135. data/lib/crelate_client/models/crelate_details.rb +206 -0
  136. data/lib/crelate_client/models/custom_form_completed_form.rb +221 -0
  137. data/lib/crelate_client/models/custom_form_definition.rb +264 -0
  138. data/lib/crelate_client/models/custom_form_definition_entities.rb +201 -0
  139. data/lib/crelate_client/models/custom_form_form_definition_usage.rb +210 -0
  140. data/lib/crelate_client/models/custom_form_form_defintion_usage_jobs.rb +197 -0
  141. data/lib/crelate_client/models/custom_form_form_field_usage.rb +221 -0
  142. data/lib/crelate_client/models/custom_form_form_field_usage_form_definition.rb +206 -0
  143. data/lib/crelate_client/models/custom_form_layout_section.rb +199 -0
  144. data/lib/crelate_client/models/custom_form_save_response.rb +259 -0
  145. data/lib/crelate_client/models/document_collection.rb +212 -0
  146. data/lib/crelate_client/models/document_item.rb +316 -0
  147. data/lib/crelate_client/models/email_attachment.rb +213 -0
  148. data/lib/crelate_client/models/entity_document_options.rb +188 -0
  149. data/lib/crelate_client/models/entity_lookup.rb +286 -0
  150. data/lib/crelate_client/models/ext_integration_response_interview_response.rb +217 -0
  151. data/lib/crelate_client/models/ext_referral_request.rb +224 -0
  152. data/lib/crelate_client/models/ext_resume_candidate.rb +342 -0
  153. data/lib/crelate_client/models/ext_resume_career_builder_validate_credentials_response.rb +197 -0
  154. data/lib/crelate_client/models/ext_resume_org_state.rb +404 -0
  155. data/lib/crelate_client/models/ext_resume_package_pricing.rb +215 -0
  156. data/lib/crelate_client/models/ext_resume_package_update_request.rb +230 -0
  157. data/lib/crelate_client/models/ext_resume_search_response.rb +199 -0
  158. data/lib/crelate_client/models/ext_resume_view_response.rb +421 -0
  159. data/lib/crelate_client/models/fusebill_state_item.rb +197 -0
  160. data/lib/crelate_client/models/get_document_list_options.rb +231 -0
  161. data/lib/crelate_client/models/interview_request.rb +199 -0
  162. data/lib/crelate_client/models/interview_request_details.rb +255 -0
  163. data/lib/crelate_client/models/interview_response.rb +311 -0
  164. data/lib/crelate_client/models/job_post_request.rb +197 -0
  165. data/lib/crelate_client/models/job_response.rb +251 -0
  166. data/lib/crelate_client/models/multi_entity_lookup.rb +190 -0
  167. data/lib/crelate_client/models/org_audit_log_event.rb +314 -0
  168. data/lib/crelate_client/models/post_purchase_request.rb +224 -0
  169. data/lib/crelate_client/models/public_api_attachment_response.rb +287 -0
  170. data/lib/crelate_client/models/public_api_attachment_response_list.rb +199 -0
  171. data/lib/crelate_client/models/public_api_document_type.rb +208 -0
  172. data/lib/crelate_client/models/public_api_get_account_response.rb +889 -0
  173. data/lib/crelate_client/models/public_api_get_account_response_list.rb +199 -0
  174. data/lib/crelate_client/models/public_api_get_contact_job.rb +233 -0
  175. data/lib/crelate_client/models/public_api_get_contact_response.rb +1485 -0
  176. data/lib/crelate_client/models/public_api_get_contact_response_list.rb +199 -0
  177. data/lib/crelate_client/models/public_api_get_job_contact.rb +233 -0
  178. data/lib/crelate_client/models/public_api_get_job_list_response.rb +199 -0
  179. data/lib/crelate_client/models/public_api_get_job_posting_list_response.rb +199 -0
  180. data/lib/crelate_client/models/public_api_get_job_posting_response.rb +379 -0
  181. data/lib/crelate_client/models/public_api_get_job_posting_search_response.rb +190 -0
  182. data/lib/crelate_client/models/public_api_get_job_posting_search_result.rb +278 -0
  183. data/lib/crelate_client/models/public_api_get_job_response.rb +1267 -0
  184. data/lib/crelate_client/models/public_api_get_note_response.rb +307 -0
  185. data/lib/crelate_client/models/public_api_get_task_response.rb +325 -0
  186. data/lib/crelate_client/models/public_api_id_response.rb +188 -0
  187. data/lib/crelate_client/models/public_api_placement_response.rb +404 -0
  188. data/lib/crelate_client/models/public_api_placement_response_list.rb +199 -0
  189. data/lib/crelate_client/models/public_api_record_owner.rb +206 -0
  190. data/lib/crelate_client/models/public_api_save_account_request.rb +786 -0
  191. data/lib/crelate_client/models/public_api_save_attachment_request.rb +233 -0
  192. data/lib/crelate_client/models/public_api_save_contact_request.rb +1373 -0
  193. data/lib/crelate_client/models/public_api_save_job_application_request.rb +233 -0
  194. data/lib/crelate_client/models/public_api_save_job_posting_request.rb +287 -0
  195. data/lib/crelate_client/models/public_api_save_job_request.rb +975 -0
  196. data/lib/crelate_client/models/public_api_save_job_request_job_type.rb +197 -0
  197. data/lib/crelate_client/models/public_api_save_note_request.rb +215 -0
  198. data/lib/crelate_client/models/public_api_save_task_request.rb +233 -0
  199. data/lib/crelate_client/models/public_api_save_workflow_item_status_request.rb +197 -0
  200. data/lib/crelate_client/models/public_api_tag_category.rb +197 -0
  201. data/lib/crelate_client/models/public_api_workflow_status.rb +224 -0
  202. data/lib/crelate_client/models/public_api_workflow_type.rb +197 -0
  203. data/lib/crelate_client/models/question.rb +233 -0
  204. data/lib/crelate_client/models/question_set_response.rb +226 -0
  205. data/lib/crelate_client/models/save_ext_credential_response.rb +206 -0
  206. data/lib/crelate_client/models/search_contact.rb +215 -0
  207. data/lib/crelate_client/models/send_email_response.rb +235 -0
  208. data/lib/crelate_client/models/send_submittal_detail.rb +217 -0
  209. data/lib/crelate_client/models/share_link.rb +266 -0
  210. data/lib/crelate_client/models/signup_information.rb +287 -0
  211. data/lib/crelate_client/models/sms_plivo_message_received_request.rb +251 -0
  212. data/lib/crelate_client/models/sms_plivo_message_status_received_request.rb +269 -0
  213. data/lib/crelate_client/models/sms_plivo_voice_answer_request.rb +233 -0
  214. data/lib/crelate_client/models/sms_plivo_voice_hangup_request.rb +287 -0
  215. data/lib/crelate_client/models/spark_hire_response_info_interview_response.rb +215 -0
  216. data/lib/crelate_client/models/spark_hire_response_info_job_response.rb +215 -0
  217. data/lib/crelate_client/models/spark_hire_response_info_question_set_response.rb +215 -0
  218. data/lib/crelate_client/models/user_response.rb +224 -0
  219. data/lib/crelate_client/models/wayup_data.rb +267 -0
  220. data/lib/crelate_client/models/webhook_delete_response.rb +188 -0
  221. data/lib/crelate_client/models/zip_apply_data.rb +267 -0
  222. data/lib/crelate_client/version.rb +15 -0
  223. data/lib/crelate_client.rb +143 -0
  224. data/spec/api/companies_api_spec.rb +273 -0
  225. data/spec/api/contacts_api_spec.rb +358 -0
  226. data/spec/api/domain_api_spec.rb +83 -0
  227. data/spec/api/job_postings_api_spec.rb +131 -0
  228. data/spec/api/jobs_api_spec.rb +346 -0
  229. data/spec/api/notes_api_spec.rb +88 -0
  230. data/spec/api/tasks_api_spec.rb +88 -0
  231. data/spec/api_client_spec.rb +226 -0
  232. data/spec/configuration_spec.rb +42 -0
  233. data/spec/models/assigned_to_request_spec.rb +48 -0
  234. data/spec/models/assigned_to_spec.rb +60 -0
  235. data/spec/models/board_parameters_spec.rb +48 -0
  236. data/spec/models/broadcast_message_create_request_spec.rb +48 -0
  237. data/spec/models/broadcast_message_spec.rb +88 -0
  238. data/spec/models/company_spec.rb +60 -0
  239. data/spec/models/compliance_settings_payload_spec.rb +42 -0
  240. data/spec/models/consent_request_payload_spec.rb +48 -0
  241. data/spec/models/crelate_action_payload_spec.rb +54 -0
  242. data/spec/models/crelate_action_spec.rb +82 -0
  243. data/spec/models/crelate_details_spec.rb +54 -0
  244. data/spec/models/custom_form_completed_form_spec.rb +60 -0
  245. data/spec/models/custom_form_definition_entities_spec.rb +48 -0
  246. data/spec/models/custom_form_definition_spec.rb +90 -0
  247. data/spec/models/custom_form_form_definition_usage_spec.rb +54 -0
  248. data/spec/models/custom_form_form_defintion_usage_jobs_spec.rb +48 -0
  249. data/spec/models/custom_form_form_field_usage_form_definition_spec.rb +54 -0
  250. data/spec/models/custom_form_form_field_usage_spec.rb +60 -0
  251. data/spec/models/custom_form_layout_section_spec.rb +48 -0
  252. data/spec/models/custom_form_save_response_spec.rb +70 -0
  253. data/spec/models/document_collection_spec.rb +54 -0
  254. data/spec/models/document_item_spec.rb +126 -0
  255. data/spec/models/email_attachment_spec.rb +48 -0
  256. data/spec/models/entity_document_options_spec.rb +42 -0
  257. data/spec/models/entity_lookup_spec.rb +88 -0
  258. data/spec/models/ext_integration_response_interview_response_spec.rb +60 -0
  259. data/spec/models/ext_referral_request_spec.rb +66 -0
  260. data/spec/models/ext_resume_candidate_spec.rb +124 -0
  261. data/spec/models/ext_resume_career_builder_validate_credentials_response_spec.rb +48 -0
  262. data/spec/models/ext_resume_org_state_spec.rb +164 -0
  263. data/spec/models/ext_resume_package_pricing_spec.rb +60 -0
  264. data/spec/models/ext_resume_package_update_request_spec.rb +52 -0
  265. data/spec/models/ext_resume_search_response_spec.rb +48 -0
  266. data/spec/models/ext_resume_view_response_spec.rb +178 -0
  267. data/spec/models/fusebill_state_item_spec.rb +48 -0
  268. data/spec/models/get_document_list_options_spec.rb +58 -0
  269. data/spec/models/interview_request_details_spec.rb +84 -0
  270. data/spec/models/interview_request_spec.rb +48 -0
  271. data/spec/models/interview_response_spec.rb +106 -0
  272. data/spec/models/job_post_request_spec.rb +48 -0
  273. data/spec/models/job_response_spec.rb +84 -0
  274. data/spec/models/multi_entity_lookup_spec.rb +42 -0
  275. data/spec/models/org_audit_log_event_spec.rb +126 -0
  276. data/spec/models/post_purchase_request_spec.rb +66 -0
  277. data/spec/models/public_api_attachment_response_list_spec.rb +48 -0
  278. data/spec/models/public_api_attachment_response_spec.rb +108 -0
  279. data/spec/models/public_api_document_type_spec.rb +54 -0
  280. data/spec/models/public_api_get_account_response_list_spec.rb +48 -0
  281. data/spec/models/public_api_get_account_response_spec.rb +504 -0
  282. data/spec/models/public_api_get_contact_job_spec.rb +72 -0
  283. data/spec/models/public_api_get_contact_response_list_spec.rb +48 -0
  284. data/spec/models/public_api_get_contact_response_spec.rb +900 -0
  285. data/spec/models/public_api_get_job_contact_spec.rb +72 -0
  286. data/spec/models/public_api_get_job_list_response_spec.rb +48 -0
  287. data/spec/models/public_api_get_job_posting_list_response_spec.rb +48 -0
  288. data/spec/models/public_api_get_job_posting_response_spec.rb +168 -0
  289. data/spec/models/public_api_get_job_posting_search_response_spec.rb +42 -0
  290. data/spec/models/public_api_get_job_posting_search_result_spec.rb +102 -0
  291. data/spec/models/public_api_get_job_response_spec.rb +756 -0
  292. data/spec/models/public_api_get_note_response_spec.rb +120 -0
  293. data/spec/models/public_api_get_task_response_spec.rb +132 -0
  294. data/spec/models/public_api_id_response_spec.rb +42 -0
  295. data/spec/models/public_api_placement_response_list_spec.rb +48 -0
  296. data/spec/models/public_api_placement_response_spec.rb +186 -0
  297. data/spec/models/public_api_record_owner_spec.rb +54 -0
  298. data/spec/models/public_api_save_account_request_spec.rb +438 -0
  299. data/spec/models/public_api_save_attachment_request_spec.rb +72 -0
  300. data/spec/models/public_api_save_contact_request_spec.rb +828 -0
  301. data/spec/models/public_api_save_job_application_request_spec.rb +72 -0
  302. data/spec/models/public_api_save_job_posting_request_spec.rb +108 -0
  303. data/spec/models/public_api_save_job_request_job_type_spec.rb +48 -0
  304. data/spec/models/public_api_save_job_request_spec.rb +564 -0
  305. data/spec/models/public_api_save_note_request_spec.rb +60 -0
  306. data/spec/models/public_api_save_task_request_spec.rb +72 -0
  307. data/spec/models/public_api_save_workflow_item_status_request_spec.rb +48 -0
  308. data/spec/models/public_api_tag_category_spec.rb +48 -0
  309. data/spec/models/public_api_workflow_status_spec.rb +66 -0
  310. data/spec/models/public_api_workflow_type_spec.rb +48 -0
  311. data/spec/models/question_set_response_spec.rb +66 -0
  312. data/spec/models/question_spec.rb +72 -0
  313. data/spec/models/save_ext_credential_response_spec.rb +54 -0
  314. data/spec/models/search_contact_spec.rb +60 -0
  315. data/spec/models/send_email_response_spec.rb +72 -0
  316. data/spec/models/send_submittal_detail_spec.rb +60 -0
  317. data/spec/models/share_link_spec.rb +76 -0
  318. data/spec/models/signup_information_spec.rb +108 -0
  319. data/spec/models/sms_plivo_message_received_request_spec.rb +84 -0
  320. data/spec/models/sms_plivo_message_status_received_request_spec.rb +96 -0
  321. data/spec/models/sms_plivo_voice_answer_request_spec.rb +72 -0
  322. data/spec/models/sms_plivo_voice_hangup_request_spec.rb +108 -0
  323. data/spec/models/spark_hire_response_info_interview_response_spec.rb +60 -0
  324. data/spec/models/spark_hire_response_info_job_response_spec.rb +60 -0
  325. data/spec/models/spark_hire_response_info_question_set_response_spec.rb +60 -0
  326. data/spec/models/user_response_spec.rb +66 -0
  327. data/spec/models/wayup_data_spec.rb +84 -0
  328. data/spec/models/webhook_delete_response_spec.rb +42 -0
  329. data/spec/models/zip_apply_data_spec.rb +84 -0
  330. data/spec/spec_helper.rb +111 -0
  331. metadata +654 -0
@@ -0,0 +1,1485 @@
1
+ =begin
2
+ #Crelate API Reference
3
+
4
+ #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5
+
6
+ OpenAPI spec version: v1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.3.1
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module CrelateClient
16
+
17
+ class PublicApiGetContactResponse
18
+ attr_accessor :attachments
19
+
20
+ attr_accessor :created_by_id
21
+
22
+ attr_accessor :created_by_name
23
+
24
+ attr_accessor :created_on
25
+
26
+ attr_accessor :id
27
+
28
+ attr_accessor :modified_by_id
29
+
30
+ attr_accessor :modified_by_name
31
+
32
+ attr_accessor :modified_on
33
+
34
+ attr_accessor :name
35
+
36
+ attr_accessor :owners
37
+
38
+ attr_accessor :status_id
39
+
40
+ attr_accessor :status_name
41
+
42
+ attr_accessor :address_business_city
43
+
44
+ attr_accessor :address_business_country
45
+
46
+ attr_accessor :address_business_is_primary
47
+
48
+ attr_accessor :address_business_line1
49
+
50
+ attr_accessor :address_business_state
51
+
52
+ attr_accessor :address_business_zip_code
53
+
54
+ attr_accessor :address_home_city
55
+
56
+ attr_accessor :address_home_country
57
+
58
+ attr_accessor :address_home_is_primary
59
+
60
+ attr_accessor :address_home_line1
61
+
62
+ attr_accessor :address_home_state
63
+
64
+ attr_accessor :address_home_zip_code
65
+
66
+ attr_accessor :address_other_city
67
+
68
+ attr_accessor :address_other_country
69
+
70
+ attr_accessor :address_other_is_primary
71
+
72
+ attr_accessor :address_other_line1
73
+
74
+ attr_accessor :address_other_state
75
+
76
+ attr_accessor :address_other_zip_code
77
+
78
+ attr_accessor :current_position_company_id
79
+
80
+ attr_accessor :current_position_company_name
81
+
82
+ attr_accessor :current_position_title
83
+
84
+ attr_accessor :current_position_when_end
85
+
86
+ attr_accessor :current_position_when_start
87
+
88
+ attr_accessor :description
89
+
90
+ attr_accessor :education_accreditation_id
91
+
92
+ attr_accessor :education_accreditation_name
93
+
94
+ attr_accessor :education_honors
95
+
96
+ attr_accessor :education_institution_id
97
+
98
+ attr_accessor :education_institution_name
99
+
100
+ attr_accessor :education_when_end
101
+
102
+ attr_accessor :education_when_start
103
+
104
+ attr_accessor :email_address_other
105
+
106
+ attr_accessor :email_address_other_is_primary
107
+
108
+ attr_accessor :email_address_personal
109
+
110
+ attr_accessor :email_address_personal_is_primary
111
+
112
+ attr_accessor :email_address_work
113
+
114
+ attr_accessor :email_address_work_is_primary
115
+
116
+ attr_accessor :ethnicity_id
117
+
118
+ attr_accessor :ethnicity_name
119
+
120
+ attr_accessor :external_primary_key
121
+
122
+ attr_accessor :first_name
123
+
124
+ attr_accessor :gender_id
125
+
126
+ attr_accessor :gender_name
127
+
128
+ attr_accessor :key_date_anniversary
129
+
130
+ attr_accessor :key_date_birthday
131
+
132
+ attr_accessor :key_date_other
133
+
134
+ attr_accessor :last_name
135
+
136
+ attr_accessor :middle_name
137
+
138
+ attr_accessor :nick_name
139
+
140
+ attr_accessor :phone_number_fax
141
+
142
+ attr_accessor :phone_number_fax_extension
143
+
144
+ attr_accessor :phone_number_fax_is_primary
145
+
146
+ attr_accessor :phone_number_home
147
+
148
+ attr_accessor :phone_number_home_extension
149
+
150
+ attr_accessor :phone_number_home_is_primary
151
+
152
+ attr_accessor :phone_number_mobile
153
+
154
+ attr_accessor :phone_number_mobile_extension
155
+
156
+ attr_accessor :phone_number_mobile_is_primary
157
+
158
+ attr_accessor :phone_number_other
159
+
160
+ attr_accessor :phone_number_other_extension
161
+
162
+ attr_accessor :phone_number_other_is_primary
163
+
164
+ attr_accessor :phone_number_skype
165
+
166
+ attr_accessor :phone_number_skype_extension
167
+
168
+ attr_accessor :phone_number_skype_is_primary
169
+
170
+ attr_accessor :phone_number_work_direct
171
+
172
+ attr_accessor :phone_number_work_direct_extension
173
+
174
+ attr_accessor :phone_number_work_direct_is_primary
175
+
176
+ attr_accessor :phone_number_work_main
177
+
178
+ attr_accessor :phone_number_work_main_extension
179
+
180
+ attr_accessor :phone_number_work_main_is_primary
181
+
182
+ attr_accessor :preferred_contact_method_type_id
183
+
184
+ attr_accessor :preferred_contact_method_type_name
185
+
186
+ attr_accessor :record_type
187
+
188
+ attr_accessor :related_contact_assistant_first_name
189
+
190
+ attr_accessor :related_contact_assistant_id
191
+
192
+ attr_accessor :related_contact_assistant_is_primary
193
+
194
+ attr_accessor :related_contact_assistant_last_name
195
+
196
+ attr_accessor :related_contact_client_first_name
197
+
198
+ attr_accessor :related_contact_client_id
199
+
200
+ attr_accessor :related_contact_client_is_primary
201
+
202
+ attr_accessor :related_contact_client_last_name
203
+
204
+ attr_accessor :related_contact_other_first_name
205
+
206
+ attr_accessor :related_contact_other_id
207
+
208
+ attr_accessor :related_contact_other_is_primary
209
+
210
+ attr_accessor :related_contact_other_last_name
211
+
212
+ attr_accessor :related_contact_referred_by_first_name
213
+
214
+ attr_accessor :related_contact_referred_by_id
215
+
216
+ attr_accessor :related_contact_referred_by_is_primary
217
+
218
+ attr_accessor :related_contact_referred_by_last_name
219
+
220
+ attr_accessor :related_contact_spouse_first_name
221
+
222
+ attr_accessor :related_contact_spouse_id
223
+
224
+ attr_accessor :related_contact_spouse_is_primary
225
+
226
+ attr_accessor :related_contact_spouse_last_name
227
+
228
+ attr_accessor :salary
229
+
230
+ attr_accessor :salary_details
231
+
232
+ attr_accessor :salutation_id
233
+
234
+ attr_accessor :salutation_name
235
+
236
+ attr_accessor :social_aim
237
+
238
+ attr_accessor :social_aim_is_primary
239
+
240
+ attr_accessor :social_facebook_chat
241
+
242
+ attr_accessor :social_facebook_chat_is_primary
243
+
244
+ attr_accessor :social_face_time
245
+
246
+ attr_accessor :social_face_time_is_primary
247
+
248
+ attr_accessor :social_google_talk
249
+
250
+ attr_accessor :social_google_talk_is_primary
251
+
252
+ attr_accessor :social_icq
253
+
254
+ attr_accessor :social_icq_is_primary
255
+
256
+ attr_accessor :social_other
257
+
258
+ attr_accessor :social_other_is_primary
259
+
260
+ attr_accessor :social_skype
261
+
262
+ attr_accessor :social_skype_is_primary
263
+
264
+ attr_accessor :social_twitter
265
+
266
+ attr_accessor :social_twitter_is_primary
267
+
268
+ attr_accessor :social_yahoo_msg
269
+
270
+ attr_accessor :social_yahoo_msg_is_primary
271
+
272
+ attr_accessor :source_id
273
+
274
+ attr_accessor :source_name
275
+
276
+ attr_accessor :suffix_id
277
+
278
+ attr_accessor :suffix_name
279
+
280
+ attr_accessor :tags
281
+
282
+ attr_accessor :website_blog
283
+
284
+ attr_accessor :website_blog_is_primary
285
+
286
+ attr_accessor :website_business
287
+
288
+ attr_accessor :website_business_is_primary
289
+
290
+ attr_accessor :website_facebook
291
+
292
+ attr_accessor :website_facebook_is_primary
293
+
294
+ attr_accessor :website_linked_in
295
+
296
+ attr_accessor :website_linked_in_is_primary
297
+
298
+ attr_accessor :website_other
299
+
300
+ attr_accessor :website_other_is_primary
301
+
302
+ attr_accessor :website_personal
303
+
304
+ attr_accessor :website_personal_is_primary
305
+
306
+
307
+ # Attribute mapping from ruby-style variable name to JSON key.
308
+ def self.attribute_map
309
+ {
310
+ :'attachments' => :'Attachments',
311
+ :'created_by_id' => :'CreatedBy_Id',
312
+ :'created_by_name' => :'CreatedBy_Name',
313
+ :'created_on' => :'CreatedOn',
314
+ :'id' => :'Id',
315
+ :'modified_by_id' => :'ModifiedBy_Id',
316
+ :'modified_by_name' => :'ModifiedBy_Name',
317
+ :'modified_on' => :'ModifiedOn',
318
+ :'name' => :'Name',
319
+ :'owners' => :'Owners',
320
+ :'status_id' => :'Status_Id',
321
+ :'status_name' => :'Status_Name',
322
+ :'address_business_city' => :'Address_Business_City',
323
+ :'address_business_country' => :'Address_Business_Country',
324
+ :'address_business_is_primary' => :'Address_Business_IsPrimary',
325
+ :'address_business_line1' => :'Address_Business_Line1',
326
+ :'address_business_state' => :'Address_Business_State',
327
+ :'address_business_zip_code' => :'Address_Business_ZipCode',
328
+ :'address_home_city' => :'Address_Home_City',
329
+ :'address_home_country' => :'Address_Home_Country',
330
+ :'address_home_is_primary' => :'Address_Home_IsPrimary',
331
+ :'address_home_line1' => :'Address_Home_Line1',
332
+ :'address_home_state' => :'Address_Home_State',
333
+ :'address_home_zip_code' => :'Address_Home_ZipCode',
334
+ :'address_other_city' => :'Address_Other_City',
335
+ :'address_other_country' => :'Address_Other_Country',
336
+ :'address_other_is_primary' => :'Address_Other_IsPrimary',
337
+ :'address_other_line1' => :'Address_Other_Line1',
338
+ :'address_other_state' => :'Address_Other_State',
339
+ :'address_other_zip_code' => :'Address_Other_ZipCode',
340
+ :'current_position_company_id' => :'CurrentPosition_Company_Id',
341
+ :'current_position_company_name' => :'CurrentPosition_Company_Name',
342
+ :'current_position_title' => :'CurrentPosition_Title',
343
+ :'current_position_when_end' => :'CurrentPosition_WhenEnd',
344
+ :'current_position_when_start' => :'CurrentPosition_WhenStart',
345
+ :'description' => :'Description',
346
+ :'education_accreditation_id' => :'Education_Accreditation_Id',
347
+ :'education_accreditation_name' => :'Education_Accreditation_Name',
348
+ :'education_honors' => :'Education_Honors',
349
+ :'education_institution_id' => :'Education_Institution_Id',
350
+ :'education_institution_name' => :'Education_Institution_Name',
351
+ :'education_when_end' => :'Education_WhenEnd',
352
+ :'education_when_start' => :'Education_WhenStart',
353
+ :'email_address_other' => :'EmailAddress_Other',
354
+ :'email_address_other_is_primary' => :'EmailAddress_Other_IsPrimary',
355
+ :'email_address_personal' => :'EmailAddress_Personal',
356
+ :'email_address_personal_is_primary' => :'EmailAddress_Personal_IsPrimary',
357
+ :'email_address_work' => :'EmailAddress_Work',
358
+ :'email_address_work_is_primary' => :'EmailAddress_Work_IsPrimary',
359
+ :'ethnicity_id' => :'Ethnicity_Id',
360
+ :'ethnicity_name' => :'Ethnicity_Name',
361
+ :'external_primary_key' => :'ExternalPrimaryKey',
362
+ :'first_name' => :'FirstName',
363
+ :'gender_id' => :'Gender_Id',
364
+ :'gender_name' => :'Gender_Name',
365
+ :'key_date_anniversary' => :'KeyDate_Anniversary',
366
+ :'key_date_birthday' => :'KeyDate_Birthday',
367
+ :'key_date_other' => :'KeyDate_Other',
368
+ :'last_name' => :'LastName',
369
+ :'middle_name' => :'MiddleName',
370
+ :'nick_name' => :'NickName',
371
+ :'phone_number_fax' => :'PhoneNumber_Fax',
372
+ :'phone_number_fax_extension' => :'PhoneNumber_Fax_Extension',
373
+ :'phone_number_fax_is_primary' => :'PhoneNumber_Fax_IsPrimary',
374
+ :'phone_number_home' => :'PhoneNumber_Home',
375
+ :'phone_number_home_extension' => :'PhoneNumber_Home_Extension',
376
+ :'phone_number_home_is_primary' => :'PhoneNumber_Home_IsPrimary',
377
+ :'phone_number_mobile' => :'PhoneNumber_Mobile',
378
+ :'phone_number_mobile_extension' => :'PhoneNumber_Mobile_Extension',
379
+ :'phone_number_mobile_is_primary' => :'PhoneNumber_Mobile_IsPrimary',
380
+ :'phone_number_other' => :'PhoneNumber_Other',
381
+ :'phone_number_other_extension' => :'PhoneNumber_Other_Extension',
382
+ :'phone_number_other_is_primary' => :'PhoneNumber_Other_IsPrimary',
383
+ :'phone_number_skype' => :'PhoneNumber_Skype',
384
+ :'phone_number_skype_extension' => :'PhoneNumber_Skype_Extension',
385
+ :'phone_number_skype_is_primary' => :'PhoneNumber_Skype_IsPrimary',
386
+ :'phone_number_work_direct' => :'PhoneNumber_WorkDirect',
387
+ :'phone_number_work_direct_extension' => :'PhoneNumber_WorkDirect_Extension',
388
+ :'phone_number_work_direct_is_primary' => :'PhoneNumber_WorkDirect_IsPrimary',
389
+ :'phone_number_work_main' => :'PhoneNumber_WorkMain',
390
+ :'phone_number_work_main_extension' => :'PhoneNumber_WorkMain_Extension',
391
+ :'phone_number_work_main_is_primary' => :'PhoneNumber_WorkMain_IsPrimary',
392
+ :'preferred_contact_method_type_id' => :'PreferredContactMethodType_Id',
393
+ :'preferred_contact_method_type_name' => :'PreferredContactMethodType_Name',
394
+ :'record_type' => :'RecordType',
395
+ :'related_contact_assistant_first_name' => :'RelatedContact_Assistant_FirstName',
396
+ :'related_contact_assistant_id' => :'RelatedContact_Assistant_Id',
397
+ :'related_contact_assistant_is_primary' => :'RelatedContact_Assistant_IsPrimary',
398
+ :'related_contact_assistant_last_name' => :'RelatedContact_Assistant_LastName',
399
+ :'related_contact_client_first_name' => :'RelatedContact_Client_FirstName',
400
+ :'related_contact_client_id' => :'RelatedContact_Client_Id',
401
+ :'related_contact_client_is_primary' => :'RelatedContact_Client_IsPrimary',
402
+ :'related_contact_client_last_name' => :'RelatedContact_Client_LastName',
403
+ :'related_contact_other_first_name' => :'RelatedContact_Other_FirstName',
404
+ :'related_contact_other_id' => :'RelatedContact_Other_Id',
405
+ :'related_contact_other_is_primary' => :'RelatedContact_Other_IsPrimary',
406
+ :'related_contact_other_last_name' => :'RelatedContact_Other_LastName',
407
+ :'related_contact_referred_by_first_name' => :'RelatedContact_ReferredBy_FirstName',
408
+ :'related_contact_referred_by_id' => :'RelatedContact_ReferredBy_Id',
409
+ :'related_contact_referred_by_is_primary' => :'RelatedContact_ReferredBy_IsPrimary',
410
+ :'related_contact_referred_by_last_name' => :'RelatedContact_ReferredBy_LastName',
411
+ :'related_contact_spouse_first_name' => :'RelatedContact_Spouse_FirstName',
412
+ :'related_contact_spouse_id' => :'RelatedContact_Spouse_Id',
413
+ :'related_contact_spouse_is_primary' => :'RelatedContact_Spouse_IsPrimary',
414
+ :'related_contact_spouse_last_name' => :'RelatedContact_Spouse_LastName',
415
+ :'salary' => :'Salary',
416
+ :'salary_details' => :'SalaryDetails',
417
+ :'salutation_id' => :'Salutation_Id',
418
+ :'salutation_name' => :'Salutation_Name',
419
+ :'social_aim' => :'Social_AIM',
420
+ :'social_aim_is_primary' => :'Social_AIM_IsPrimary',
421
+ :'social_facebook_chat' => :'Social_FacebookChat',
422
+ :'social_facebook_chat_is_primary' => :'Social_FacebookChat_IsPrimary',
423
+ :'social_face_time' => :'Social_FaceTime',
424
+ :'social_face_time_is_primary' => :'Social_FaceTime_IsPrimary',
425
+ :'social_google_talk' => :'Social_GoogleTalk',
426
+ :'social_google_talk_is_primary' => :'Social_GoogleTalk_IsPrimary',
427
+ :'social_icq' => :'Social_ICQ',
428
+ :'social_icq_is_primary' => :'Social_ICQ_IsPrimary',
429
+ :'social_other' => :'Social_Other',
430
+ :'social_other_is_primary' => :'Social_Other_IsPrimary',
431
+ :'social_skype' => :'Social_Skype',
432
+ :'social_skype_is_primary' => :'Social_Skype_IsPrimary',
433
+ :'social_twitter' => :'Social_Twitter',
434
+ :'social_twitter_is_primary' => :'Social_Twitter_IsPrimary',
435
+ :'social_yahoo_msg' => :'Social_YahooMsg',
436
+ :'social_yahoo_msg_is_primary' => :'Social_YahooMsg_IsPrimary',
437
+ :'source_id' => :'Source_Id',
438
+ :'source_name' => :'Source_Name',
439
+ :'suffix_id' => :'Suffix_Id',
440
+ :'suffix_name' => :'Suffix_Name',
441
+ :'tags' => :'Tags',
442
+ :'website_blog' => :'Website_Blog',
443
+ :'website_blog_is_primary' => :'Website_Blog_IsPrimary',
444
+ :'website_business' => :'Website_Business',
445
+ :'website_business_is_primary' => :'Website_Business_IsPrimary',
446
+ :'website_facebook' => :'Website_Facebook',
447
+ :'website_facebook_is_primary' => :'Website_Facebook_IsPrimary',
448
+ :'website_linked_in' => :'Website_LinkedIn',
449
+ :'website_linked_in_is_primary' => :'Website_LinkedIn_IsPrimary',
450
+ :'website_other' => :'Website_Other',
451
+ :'website_other_is_primary' => :'Website_Other_IsPrimary',
452
+ :'website_personal' => :'Website_Personal',
453
+ :'website_personal_is_primary' => :'Website_Personal_IsPrimary'
454
+ }
455
+ end
456
+
457
+ # Attribute type mapping.
458
+ def self.swagger_types
459
+ {
460
+ :'attachments' => :'Array<PublicApiAttachmentResponse>',
461
+ :'created_by_id' => :'String',
462
+ :'created_by_name' => :'String',
463
+ :'created_on' => :'DateTime',
464
+ :'id' => :'String',
465
+ :'modified_by_id' => :'String',
466
+ :'modified_by_name' => :'String',
467
+ :'modified_on' => :'DateTime',
468
+ :'name' => :'String',
469
+ :'owners' => :'Array<PublicApiRecordOwner>',
470
+ :'status_id' => :'String',
471
+ :'status_name' => :'String',
472
+ :'address_business_city' => :'String',
473
+ :'address_business_country' => :'String',
474
+ :'address_business_is_primary' => :'BOOLEAN',
475
+ :'address_business_line1' => :'String',
476
+ :'address_business_state' => :'String',
477
+ :'address_business_zip_code' => :'String',
478
+ :'address_home_city' => :'String',
479
+ :'address_home_country' => :'String',
480
+ :'address_home_is_primary' => :'BOOLEAN',
481
+ :'address_home_line1' => :'String',
482
+ :'address_home_state' => :'String',
483
+ :'address_home_zip_code' => :'String',
484
+ :'address_other_city' => :'String',
485
+ :'address_other_country' => :'String',
486
+ :'address_other_is_primary' => :'BOOLEAN',
487
+ :'address_other_line1' => :'String',
488
+ :'address_other_state' => :'String',
489
+ :'address_other_zip_code' => :'String',
490
+ :'current_position_company_id' => :'String',
491
+ :'current_position_company_name' => :'String',
492
+ :'current_position_title' => :'String',
493
+ :'current_position_when_end' => :'DateTime',
494
+ :'current_position_when_start' => :'DateTime',
495
+ :'description' => :'String',
496
+ :'education_accreditation_id' => :'String',
497
+ :'education_accreditation_name' => :'String',
498
+ :'education_honors' => :'Array<String>',
499
+ :'education_institution_id' => :'String',
500
+ :'education_institution_name' => :'String',
501
+ :'education_when_end' => :'DateTime',
502
+ :'education_when_start' => :'DateTime',
503
+ :'email_address_other' => :'String',
504
+ :'email_address_other_is_primary' => :'BOOLEAN',
505
+ :'email_address_personal' => :'String',
506
+ :'email_address_personal_is_primary' => :'BOOLEAN',
507
+ :'email_address_work' => :'String',
508
+ :'email_address_work_is_primary' => :'BOOLEAN',
509
+ :'ethnicity_id' => :'String',
510
+ :'ethnicity_name' => :'String',
511
+ :'external_primary_key' => :'String',
512
+ :'first_name' => :'String',
513
+ :'gender_id' => :'String',
514
+ :'gender_name' => :'String',
515
+ :'key_date_anniversary' => :'DateTime',
516
+ :'key_date_birthday' => :'DateTime',
517
+ :'key_date_other' => :'DateTime',
518
+ :'last_name' => :'String',
519
+ :'middle_name' => :'String',
520
+ :'nick_name' => :'String',
521
+ :'phone_number_fax' => :'String',
522
+ :'phone_number_fax_extension' => :'String',
523
+ :'phone_number_fax_is_primary' => :'BOOLEAN',
524
+ :'phone_number_home' => :'String',
525
+ :'phone_number_home_extension' => :'String',
526
+ :'phone_number_home_is_primary' => :'BOOLEAN',
527
+ :'phone_number_mobile' => :'String',
528
+ :'phone_number_mobile_extension' => :'String',
529
+ :'phone_number_mobile_is_primary' => :'BOOLEAN',
530
+ :'phone_number_other' => :'String',
531
+ :'phone_number_other_extension' => :'String',
532
+ :'phone_number_other_is_primary' => :'BOOLEAN',
533
+ :'phone_number_skype' => :'String',
534
+ :'phone_number_skype_extension' => :'String',
535
+ :'phone_number_skype_is_primary' => :'BOOLEAN',
536
+ :'phone_number_work_direct' => :'String',
537
+ :'phone_number_work_direct_extension' => :'String',
538
+ :'phone_number_work_direct_is_primary' => :'BOOLEAN',
539
+ :'phone_number_work_main' => :'String',
540
+ :'phone_number_work_main_extension' => :'String',
541
+ :'phone_number_work_main_is_primary' => :'BOOLEAN',
542
+ :'preferred_contact_method_type_id' => :'String',
543
+ :'preferred_contact_method_type_name' => :'String',
544
+ :'record_type' => :'Array<String>',
545
+ :'related_contact_assistant_first_name' => :'String',
546
+ :'related_contact_assistant_id' => :'String',
547
+ :'related_contact_assistant_is_primary' => :'BOOLEAN',
548
+ :'related_contact_assistant_last_name' => :'String',
549
+ :'related_contact_client_first_name' => :'String',
550
+ :'related_contact_client_id' => :'String',
551
+ :'related_contact_client_is_primary' => :'BOOLEAN',
552
+ :'related_contact_client_last_name' => :'String',
553
+ :'related_contact_other_first_name' => :'String',
554
+ :'related_contact_other_id' => :'String',
555
+ :'related_contact_other_is_primary' => :'BOOLEAN',
556
+ :'related_contact_other_last_name' => :'String',
557
+ :'related_contact_referred_by_first_name' => :'String',
558
+ :'related_contact_referred_by_id' => :'String',
559
+ :'related_contact_referred_by_is_primary' => :'BOOLEAN',
560
+ :'related_contact_referred_by_last_name' => :'String',
561
+ :'related_contact_spouse_first_name' => :'String',
562
+ :'related_contact_spouse_id' => :'String',
563
+ :'related_contact_spouse_is_primary' => :'BOOLEAN',
564
+ :'related_contact_spouse_last_name' => :'String',
565
+ :'salary' => :'Float',
566
+ :'salary_details' => :'String',
567
+ :'salutation_id' => :'String',
568
+ :'salutation_name' => :'String',
569
+ :'social_aim' => :'String',
570
+ :'social_aim_is_primary' => :'BOOLEAN',
571
+ :'social_facebook_chat' => :'String',
572
+ :'social_facebook_chat_is_primary' => :'BOOLEAN',
573
+ :'social_face_time' => :'String',
574
+ :'social_face_time_is_primary' => :'BOOLEAN',
575
+ :'social_google_talk' => :'String',
576
+ :'social_google_talk_is_primary' => :'BOOLEAN',
577
+ :'social_icq' => :'String',
578
+ :'social_icq_is_primary' => :'BOOLEAN',
579
+ :'social_other' => :'String',
580
+ :'social_other_is_primary' => :'BOOLEAN',
581
+ :'social_skype' => :'String',
582
+ :'social_skype_is_primary' => :'BOOLEAN',
583
+ :'social_twitter' => :'String',
584
+ :'social_twitter_is_primary' => :'BOOLEAN',
585
+ :'social_yahoo_msg' => :'String',
586
+ :'social_yahoo_msg_is_primary' => :'BOOLEAN',
587
+ :'source_id' => :'String',
588
+ :'source_name' => :'String',
589
+ :'suffix_id' => :'String',
590
+ :'suffix_name' => :'String',
591
+ :'tags' => :'Hash<String, Array<String>>',
592
+ :'website_blog' => :'String',
593
+ :'website_blog_is_primary' => :'BOOLEAN',
594
+ :'website_business' => :'String',
595
+ :'website_business_is_primary' => :'BOOLEAN',
596
+ :'website_facebook' => :'String',
597
+ :'website_facebook_is_primary' => :'BOOLEAN',
598
+ :'website_linked_in' => :'String',
599
+ :'website_linked_in_is_primary' => :'BOOLEAN',
600
+ :'website_other' => :'String',
601
+ :'website_other_is_primary' => :'BOOLEAN',
602
+ :'website_personal' => :'String',
603
+ :'website_personal_is_primary' => :'BOOLEAN'
604
+ }
605
+ end
606
+
607
+ # Initializes the object
608
+ # @param [Hash] attributes Model attributes in the form of hash
609
+ def initialize(attributes = {})
610
+ return unless attributes.is_a?(Hash)
611
+
612
+ # convert string to symbol for hash key
613
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
614
+
615
+ if attributes.has_key?(:'Attachments')
616
+ if (value = attributes[:'Attachments']).is_a?(Array)
617
+ self.attachments = value
618
+ end
619
+ end
620
+
621
+ if attributes.has_key?(:'CreatedBy_Id')
622
+ self.created_by_id = attributes[:'CreatedBy_Id']
623
+ end
624
+
625
+ if attributes.has_key?(:'CreatedBy_Name')
626
+ self.created_by_name = attributes[:'CreatedBy_Name']
627
+ end
628
+
629
+ if attributes.has_key?(:'CreatedOn')
630
+ self.created_on = attributes[:'CreatedOn']
631
+ end
632
+
633
+ if attributes.has_key?(:'Id')
634
+ self.id = attributes[:'Id']
635
+ end
636
+
637
+ if attributes.has_key?(:'ModifiedBy_Id')
638
+ self.modified_by_id = attributes[:'ModifiedBy_Id']
639
+ end
640
+
641
+ if attributes.has_key?(:'ModifiedBy_Name')
642
+ self.modified_by_name = attributes[:'ModifiedBy_Name']
643
+ end
644
+
645
+ if attributes.has_key?(:'ModifiedOn')
646
+ self.modified_on = attributes[:'ModifiedOn']
647
+ end
648
+
649
+ if attributes.has_key?(:'Name')
650
+ self.name = attributes[:'Name']
651
+ end
652
+
653
+ if attributes.has_key?(:'Owners')
654
+ if (value = attributes[:'Owners']).is_a?(Array)
655
+ self.owners = value
656
+ end
657
+ end
658
+
659
+ if attributes.has_key?(:'Status_Id')
660
+ self.status_id = attributes[:'Status_Id']
661
+ end
662
+
663
+ if attributes.has_key?(:'Status_Name')
664
+ self.status_name = attributes[:'Status_Name']
665
+ end
666
+
667
+ if attributes.has_key?(:'Address_Business_City')
668
+ self.address_business_city = attributes[:'Address_Business_City']
669
+ end
670
+
671
+ if attributes.has_key?(:'Address_Business_Country')
672
+ self.address_business_country = attributes[:'Address_Business_Country']
673
+ end
674
+
675
+ if attributes.has_key?(:'Address_Business_IsPrimary')
676
+ self.address_business_is_primary = attributes[:'Address_Business_IsPrimary']
677
+ end
678
+
679
+ if attributes.has_key?(:'Address_Business_Line1')
680
+ self.address_business_line1 = attributes[:'Address_Business_Line1']
681
+ end
682
+
683
+ if attributes.has_key?(:'Address_Business_State')
684
+ self.address_business_state = attributes[:'Address_Business_State']
685
+ end
686
+
687
+ if attributes.has_key?(:'Address_Business_ZipCode')
688
+ self.address_business_zip_code = attributes[:'Address_Business_ZipCode']
689
+ end
690
+
691
+ if attributes.has_key?(:'Address_Home_City')
692
+ self.address_home_city = attributes[:'Address_Home_City']
693
+ end
694
+
695
+ if attributes.has_key?(:'Address_Home_Country')
696
+ self.address_home_country = attributes[:'Address_Home_Country']
697
+ end
698
+
699
+ if attributes.has_key?(:'Address_Home_IsPrimary')
700
+ self.address_home_is_primary = attributes[:'Address_Home_IsPrimary']
701
+ end
702
+
703
+ if attributes.has_key?(:'Address_Home_Line1')
704
+ self.address_home_line1 = attributes[:'Address_Home_Line1']
705
+ end
706
+
707
+ if attributes.has_key?(:'Address_Home_State')
708
+ self.address_home_state = attributes[:'Address_Home_State']
709
+ end
710
+
711
+ if attributes.has_key?(:'Address_Home_ZipCode')
712
+ self.address_home_zip_code = attributes[:'Address_Home_ZipCode']
713
+ end
714
+
715
+ if attributes.has_key?(:'Address_Other_City')
716
+ self.address_other_city = attributes[:'Address_Other_City']
717
+ end
718
+
719
+ if attributes.has_key?(:'Address_Other_Country')
720
+ self.address_other_country = attributes[:'Address_Other_Country']
721
+ end
722
+
723
+ if attributes.has_key?(:'Address_Other_IsPrimary')
724
+ self.address_other_is_primary = attributes[:'Address_Other_IsPrimary']
725
+ end
726
+
727
+ if attributes.has_key?(:'Address_Other_Line1')
728
+ self.address_other_line1 = attributes[:'Address_Other_Line1']
729
+ end
730
+
731
+ if attributes.has_key?(:'Address_Other_State')
732
+ self.address_other_state = attributes[:'Address_Other_State']
733
+ end
734
+
735
+ if attributes.has_key?(:'Address_Other_ZipCode')
736
+ self.address_other_zip_code = attributes[:'Address_Other_ZipCode']
737
+ end
738
+
739
+ if attributes.has_key?(:'CurrentPosition_Company_Id')
740
+ self.current_position_company_id = attributes[:'CurrentPosition_Company_Id']
741
+ end
742
+
743
+ if attributes.has_key?(:'CurrentPosition_Company_Name')
744
+ self.current_position_company_name = attributes[:'CurrentPosition_Company_Name']
745
+ end
746
+
747
+ if attributes.has_key?(:'CurrentPosition_Title')
748
+ self.current_position_title = attributes[:'CurrentPosition_Title']
749
+ end
750
+
751
+ if attributes.has_key?(:'CurrentPosition_WhenEnd')
752
+ self.current_position_when_end = attributes[:'CurrentPosition_WhenEnd']
753
+ end
754
+
755
+ if attributes.has_key?(:'CurrentPosition_WhenStart')
756
+ self.current_position_when_start = attributes[:'CurrentPosition_WhenStart']
757
+ end
758
+
759
+ if attributes.has_key?(:'Description')
760
+ self.description = attributes[:'Description']
761
+ end
762
+
763
+ if attributes.has_key?(:'Education_Accreditation_Id')
764
+ self.education_accreditation_id = attributes[:'Education_Accreditation_Id']
765
+ end
766
+
767
+ if attributes.has_key?(:'Education_Accreditation_Name')
768
+ self.education_accreditation_name = attributes[:'Education_Accreditation_Name']
769
+ end
770
+
771
+ if attributes.has_key?(:'Education_Honors')
772
+ if (value = attributes[:'Education_Honors']).is_a?(Array)
773
+ self.education_honors = value
774
+ end
775
+ end
776
+
777
+ if attributes.has_key?(:'Education_Institution_Id')
778
+ self.education_institution_id = attributes[:'Education_Institution_Id']
779
+ end
780
+
781
+ if attributes.has_key?(:'Education_Institution_Name')
782
+ self.education_institution_name = attributes[:'Education_Institution_Name']
783
+ end
784
+
785
+ if attributes.has_key?(:'Education_WhenEnd')
786
+ self.education_when_end = attributes[:'Education_WhenEnd']
787
+ end
788
+
789
+ if attributes.has_key?(:'Education_WhenStart')
790
+ self.education_when_start = attributes[:'Education_WhenStart']
791
+ end
792
+
793
+ if attributes.has_key?(:'EmailAddress_Other')
794
+ self.email_address_other = attributes[:'EmailAddress_Other']
795
+ end
796
+
797
+ if attributes.has_key?(:'EmailAddress_Other_IsPrimary')
798
+ self.email_address_other_is_primary = attributes[:'EmailAddress_Other_IsPrimary']
799
+ end
800
+
801
+ if attributes.has_key?(:'EmailAddress_Personal')
802
+ self.email_address_personal = attributes[:'EmailAddress_Personal']
803
+ end
804
+
805
+ if attributes.has_key?(:'EmailAddress_Personal_IsPrimary')
806
+ self.email_address_personal_is_primary = attributes[:'EmailAddress_Personal_IsPrimary']
807
+ end
808
+
809
+ if attributes.has_key?(:'EmailAddress_Work')
810
+ self.email_address_work = attributes[:'EmailAddress_Work']
811
+ end
812
+
813
+ if attributes.has_key?(:'EmailAddress_Work_IsPrimary')
814
+ self.email_address_work_is_primary = attributes[:'EmailAddress_Work_IsPrimary']
815
+ end
816
+
817
+ if attributes.has_key?(:'Ethnicity_Id')
818
+ self.ethnicity_id = attributes[:'Ethnicity_Id']
819
+ end
820
+
821
+ if attributes.has_key?(:'Ethnicity_Name')
822
+ self.ethnicity_name = attributes[:'Ethnicity_Name']
823
+ end
824
+
825
+ if attributes.has_key?(:'ExternalPrimaryKey')
826
+ self.external_primary_key = attributes[:'ExternalPrimaryKey']
827
+ end
828
+
829
+ if attributes.has_key?(:'FirstName')
830
+ self.first_name = attributes[:'FirstName']
831
+ end
832
+
833
+ if attributes.has_key?(:'Gender_Id')
834
+ self.gender_id = attributes[:'Gender_Id']
835
+ end
836
+
837
+ if attributes.has_key?(:'Gender_Name')
838
+ self.gender_name = attributes[:'Gender_Name']
839
+ end
840
+
841
+ if attributes.has_key?(:'KeyDate_Anniversary')
842
+ self.key_date_anniversary = attributes[:'KeyDate_Anniversary']
843
+ end
844
+
845
+ if attributes.has_key?(:'KeyDate_Birthday')
846
+ self.key_date_birthday = attributes[:'KeyDate_Birthday']
847
+ end
848
+
849
+ if attributes.has_key?(:'KeyDate_Other')
850
+ self.key_date_other = attributes[:'KeyDate_Other']
851
+ end
852
+
853
+ if attributes.has_key?(:'LastName')
854
+ self.last_name = attributes[:'LastName']
855
+ end
856
+
857
+ if attributes.has_key?(:'MiddleName')
858
+ self.middle_name = attributes[:'MiddleName']
859
+ end
860
+
861
+ if attributes.has_key?(:'NickName')
862
+ self.nick_name = attributes[:'NickName']
863
+ end
864
+
865
+ if attributes.has_key?(:'PhoneNumber_Fax')
866
+ self.phone_number_fax = attributes[:'PhoneNumber_Fax']
867
+ end
868
+
869
+ if attributes.has_key?(:'PhoneNumber_Fax_Extension')
870
+ self.phone_number_fax_extension = attributes[:'PhoneNumber_Fax_Extension']
871
+ end
872
+
873
+ if attributes.has_key?(:'PhoneNumber_Fax_IsPrimary')
874
+ self.phone_number_fax_is_primary = attributes[:'PhoneNumber_Fax_IsPrimary']
875
+ end
876
+
877
+ if attributes.has_key?(:'PhoneNumber_Home')
878
+ self.phone_number_home = attributes[:'PhoneNumber_Home']
879
+ end
880
+
881
+ if attributes.has_key?(:'PhoneNumber_Home_Extension')
882
+ self.phone_number_home_extension = attributes[:'PhoneNumber_Home_Extension']
883
+ end
884
+
885
+ if attributes.has_key?(:'PhoneNumber_Home_IsPrimary')
886
+ self.phone_number_home_is_primary = attributes[:'PhoneNumber_Home_IsPrimary']
887
+ end
888
+
889
+ if attributes.has_key?(:'PhoneNumber_Mobile')
890
+ self.phone_number_mobile = attributes[:'PhoneNumber_Mobile']
891
+ end
892
+
893
+ if attributes.has_key?(:'PhoneNumber_Mobile_Extension')
894
+ self.phone_number_mobile_extension = attributes[:'PhoneNumber_Mobile_Extension']
895
+ end
896
+
897
+ if attributes.has_key?(:'PhoneNumber_Mobile_IsPrimary')
898
+ self.phone_number_mobile_is_primary = attributes[:'PhoneNumber_Mobile_IsPrimary']
899
+ end
900
+
901
+ if attributes.has_key?(:'PhoneNumber_Other')
902
+ self.phone_number_other = attributes[:'PhoneNumber_Other']
903
+ end
904
+
905
+ if attributes.has_key?(:'PhoneNumber_Other_Extension')
906
+ self.phone_number_other_extension = attributes[:'PhoneNumber_Other_Extension']
907
+ end
908
+
909
+ if attributes.has_key?(:'PhoneNumber_Other_IsPrimary')
910
+ self.phone_number_other_is_primary = attributes[:'PhoneNumber_Other_IsPrimary']
911
+ end
912
+
913
+ if attributes.has_key?(:'PhoneNumber_Skype')
914
+ self.phone_number_skype = attributes[:'PhoneNumber_Skype']
915
+ end
916
+
917
+ if attributes.has_key?(:'PhoneNumber_Skype_Extension')
918
+ self.phone_number_skype_extension = attributes[:'PhoneNumber_Skype_Extension']
919
+ end
920
+
921
+ if attributes.has_key?(:'PhoneNumber_Skype_IsPrimary')
922
+ self.phone_number_skype_is_primary = attributes[:'PhoneNumber_Skype_IsPrimary']
923
+ end
924
+
925
+ if attributes.has_key?(:'PhoneNumber_WorkDirect')
926
+ self.phone_number_work_direct = attributes[:'PhoneNumber_WorkDirect']
927
+ end
928
+
929
+ if attributes.has_key?(:'PhoneNumber_WorkDirect_Extension')
930
+ self.phone_number_work_direct_extension = attributes[:'PhoneNumber_WorkDirect_Extension']
931
+ end
932
+
933
+ if attributes.has_key?(:'PhoneNumber_WorkDirect_IsPrimary')
934
+ self.phone_number_work_direct_is_primary = attributes[:'PhoneNumber_WorkDirect_IsPrimary']
935
+ end
936
+
937
+ if attributes.has_key?(:'PhoneNumber_WorkMain')
938
+ self.phone_number_work_main = attributes[:'PhoneNumber_WorkMain']
939
+ end
940
+
941
+ if attributes.has_key?(:'PhoneNumber_WorkMain_Extension')
942
+ self.phone_number_work_main_extension = attributes[:'PhoneNumber_WorkMain_Extension']
943
+ end
944
+
945
+ if attributes.has_key?(:'PhoneNumber_WorkMain_IsPrimary')
946
+ self.phone_number_work_main_is_primary = attributes[:'PhoneNumber_WorkMain_IsPrimary']
947
+ end
948
+
949
+ if attributes.has_key?(:'PreferredContactMethodType_Id')
950
+ self.preferred_contact_method_type_id = attributes[:'PreferredContactMethodType_Id']
951
+ end
952
+
953
+ if attributes.has_key?(:'PreferredContactMethodType_Name')
954
+ self.preferred_contact_method_type_name = attributes[:'PreferredContactMethodType_Name']
955
+ end
956
+
957
+ if attributes.has_key?(:'RecordType')
958
+ if (value = attributes[:'RecordType']).is_a?(Array)
959
+ self.record_type = value
960
+ end
961
+ end
962
+
963
+ if attributes.has_key?(:'RelatedContact_Assistant_FirstName')
964
+ self.related_contact_assistant_first_name = attributes[:'RelatedContact_Assistant_FirstName']
965
+ end
966
+
967
+ if attributes.has_key?(:'RelatedContact_Assistant_Id')
968
+ self.related_contact_assistant_id = attributes[:'RelatedContact_Assistant_Id']
969
+ end
970
+
971
+ if attributes.has_key?(:'RelatedContact_Assistant_IsPrimary')
972
+ self.related_contact_assistant_is_primary = attributes[:'RelatedContact_Assistant_IsPrimary']
973
+ end
974
+
975
+ if attributes.has_key?(:'RelatedContact_Assistant_LastName')
976
+ self.related_contact_assistant_last_name = attributes[:'RelatedContact_Assistant_LastName']
977
+ end
978
+
979
+ if attributes.has_key?(:'RelatedContact_Client_FirstName')
980
+ self.related_contact_client_first_name = attributes[:'RelatedContact_Client_FirstName']
981
+ end
982
+
983
+ if attributes.has_key?(:'RelatedContact_Client_Id')
984
+ self.related_contact_client_id = attributes[:'RelatedContact_Client_Id']
985
+ end
986
+
987
+ if attributes.has_key?(:'RelatedContact_Client_IsPrimary')
988
+ self.related_contact_client_is_primary = attributes[:'RelatedContact_Client_IsPrimary']
989
+ end
990
+
991
+ if attributes.has_key?(:'RelatedContact_Client_LastName')
992
+ self.related_contact_client_last_name = attributes[:'RelatedContact_Client_LastName']
993
+ end
994
+
995
+ if attributes.has_key?(:'RelatedContact_Other_FirstName')
996
+ self.related_contact_other_first_name = attributes[:'RelatedContact_Other_FirstName']
997
+ end
998
+
999
+ if attributes.has_key?(:'RelatedContact_Other_Id')
1000
+ self.related_contact_other_id = attributes[:'RelatedContact_Other_Id']
1001
+ end
1002
+
1003
+ if attributes.has_key?(:'RelatedContact_Other_IsPrimary')
1004
+ self.related_contact_other_is_primary = attributes[:'RelatedContact_Other_IsPrimary']
1005
+ end
1006
+
1007
+ if attributes.has_key?(:'RelatedContact_Other_LastName')
1008
+ self.related_contact_other_last_name = attributes[:'RelatedContact_Other_LastName']
1009
+ end
1010
+
1011
+ if attributes.has_key?(:'RelatedContact_ReferredBy_FirstName')
1012
+ self.related_contact_referred_by_first_name = attributes[:'RelatedContact_ReferredBy_FirstName']
1013
+ end
1014
+
1015
+ if attributes.has_key?(:'RelatedContact_ReferredBy_Id')
1016
+ self.related_contact_referred_by_id = attributes[:'RelatedContact_ReferredBy_Id']
1017
+ end
1018
+
1019
+ if attributes.has_key?(:'RelatedContact_ReferredBy_IsPrimary')
1020
+ self.related_contact_referred_by_is_primary = attributes[:'RelatedContact_ReferredBy_IsPrimary']
1021
+ end
1022
+
1023
+ if attributes.has_key?(:'RelatedContact_ReferredBy_LastName')
1024
+ self.related_contact_referred_by_last_name = attributes[:'RelatedContact_ReferredBy_LastName']
1025
+ end
1026
+
1027
+ if attributes.has_key?(:'RelatedContact_Spouse_FirstName')
1028
+ self.related_contact_spouse_first_name = attributes[:'RelatedContact_Spouse_FirstName']
1029
+ end
1030
+
1031
+ if attributes.has_key?(:'RelatedContact_Spouse_Id')
1032
+ self.related_contact_spouse_id = attributes[:'RelatedContact_Spouse_Id']
1033
+ end
1034
+
1035
+ if attributes.has_key?(:'RelatedContact_Spouse_IsPrimary')
1036
+ self.related_contact_spouse_is_primary = attributes[:'RelatedContact_Spouse_IsPrimary']
1037
+ end
1038
+
1039
+ if attributes.has_key?(:'RelatedContact_Spouse_LastName')
1040
+ self.related_contact_spouse_last_name = attributes[:'RelatedContact_Spouse_LastName']
1041
+ end
1042
+
1043
+ if attributes.has_key?(:'Salary')
1044
+ self.salary = attributes[:'Salary']
1045
+ end
1046
+
1047
+ if attributes.has_key?(:'SalaryDetails')
1048
+ self.salary_details = attributes[:'SalaryDetails']
1049
+ end
1050
+
1051
+ if attributes.has_key?(:'Salutation_Id')
1052
+ self.salutation_id = attributes[:'Salutation_Id']
1053
+ end
1054
+
1055
+ if attributes.has_key?(:'Salutation_Name')
1056
+ self.salutation_name = attributes[:'Salutation_Name']
1057
+ end
1058
+
1059
+ if attributes.has_key?(:'Social_AIM')
1060
+ self.social_aim = attributes[:'Social_AIM']
1061
+ end
1062
+
1063
+ if attributes.has_key?(:'Social_AIM_IsPrimary')
1064
+ self.social_aim_is_primary = attributes[:'Social_AIM_IsPrimary']
1065
+ end
1066
+
1067
+ if attributes.has_key?(:'Social_FacebookChat')
1068
+ self.social_facebook_chat = attributes[:'Social_FacebookChat']
1069
+ end
1070
+
1071
+ if attributes.has_key?(:'Social_FacebookChat_IsPrimary')
1072
+ self.social_facebook_chat_is_primary = attributes[:'Social_FacebookChat_IsPrimary']
1073
+ end
1074
+
1075
+ if attributes.has_key?(:'Social_FaceTime')
1076
+ self.social_face_time = attributes[:'Social_FaceTime']
1077
+ end
1078
+
1079
+ if attributes.has_key?(:'Social_FaceTime_IsPrimary')
1080
+ self.social_face_time_is_primary = attributes[:'Social_FaceTime_IsPrimary']
1081
+ end
1082
+
1083
+ if attributes.has_key?(:'Social_GoogleTalk')
1084
+ self.social_google_talk = attributes[:'Social_GoogleTalk']
1085
+ end
1086
+
1087
+ if attributes.has_key?(:'Social_GoogleTalk_IsPrimary')
1088
+ self.social_google_talk_is_primary = attributes[:'Social_GoogleTalk_IsPrimary']
1089
+ end
1090
+
1091
+ if attributes.has_key?(:'Social_ICQ')
1092
+ self.social_icq = attributes[:'Social_ICQ']
1093
+ end
1094
+
1095
+ if attributes.has_key?(:'Social_ICQ_IsPrimary')
1096
+ self.social_icq_is_primary = attributes[:'Social_ICQ_IsPrimary']
1097
+ end
1098
+
1099
+ if attributes.has_key?(:'Social_Other')
1100
+ self.social_other = attributes[:'Social_Other']
1101
+ end
1102
+
1103
+ if attributes.has_key?(:'Social_Other_IsPrimary')
1104
+ self.social_other_is_primary = attributes[:'Social_Other_IsPrimary']
1105
+ end
1106
+
1107
+ if attributes.has_key?(:'Social_Skype')
1108
+ self.social_skype = attributes[:'Social_Skype']
1109
+ end
1110
+
1111
+ if attributes.has_key?(:'Social_Skype_IsPrimary')
1112
+ self.social_skype_is_primary = attributes[:'Social_Skype_IsPrimary']
1113
+ end
1114
+
1115
+ if attributes.has_key?(:'Social_Twitter')
1116
+ self.social_twitter = attributes[:'Social_Twitter']
1117
+ end
1118
+
1119
+ if attributes.has_key?(:'Social_Twitter_IsPrimary')
1120
+ self.social_twitter_is_primary = attributes[:'Social_Twitter_IsPrimary']
1121
+ end
1122
+
1123
+ if attributes.has_key?(:'Social_YahooMsg')
1124
+ self.social_yahoo_msg = attributes[:'Social_YahooMsg']
1125
+ end
1126
+
1127
+ if attributes.has_key?(:'Social_YahooMsg_IsPrimary')
1128
+ self.social_yahoo_msg_is_primary = attributes[:'Social_YahooMsg_IsPrimary']
1129
+ end
1130
+
1131
+ if attributes.has_key?(:'Source_Id')
1132
+ self.source_id = attributes[:'Source_Id']
1133
+ end
1134
+
1135
+ if attributes.has_key?(:'Source_Name')
1136
+ self.source_name = attributes[:'Source_Name']
1137
+ end
1138
+
1139
+ if attributes.has_key?(:'Suffix_Id')
1140
+ self.suffix_id = attributes[:'Suffix_Id']
1141
+ end
1142
+
1143
+ if attributes.has_key?(:'Suffix_Name')
1144
+ self.suffix_name = attributes[:'Suffix_Name']
1145
+ end
1146
+
1147
+ if attributes.has_key?(:'Tags')
1148
+ if (value = attributes[:'Tags']).is_a?(Hash)
1149
+ self.tags = value
1150
+ end
1151
+ end
1152
+
1153
+ if attributes.has_key?(:'Website_Blog')
1154
+ self.website_blog = attributes[:'Website_Blog']
1155
+ end
1156
+
1157
+ if attributes.has_key?(:'Website_Blog_IsPrimary')
1158
+ self.website_blog_is_primary = attributes[:'Website_Blog_IsPrimary']
1159
+ end
1160
+
1161
+ if attributes.has_key?(:'Website_Business')
1162
+ self.website_business = attributes[:'Website_Business']
1163
+ end
1164
+
1165
+ if attributes.has_key?(:'Website_Business_IsPrimary')
1166
+ self.website_business_is_primary = attributes[:'Website_Business_IsPrimary']
1167
+ end
1168
+
1169
+ if attributes.has_key?(:'Website_Facebook')
1170
+ self.website_facebook = attributes[:'Website_Facebook']
1171
+ end
1172
+
1173
+ if attributes.has_key?(:'Website_Facebook_IsPrimary')
1174
+ self.website_facebook_is_primary = attributes[:'Website_Facebook_IsPrimary']
1175
+ end
1176
+
1177
+ if attributes.has_key?(:'Website_LinkedIn')
1178
+ self.website_linked_in = attributes[:'Website_LinkedIn']
1179
+ end
1180
+
1181
+ if attributes.has_key?(:'Website_LinkedIn_IsPrimary')
1182
+ self.website_linked_in_is_primary = attributes[:'Website_LinkedIn_IsPrimary']
1183
+ end
1184
+
1185
+ if attributes.has_key?(:'Website_Other')
1186
+ self.website_other = attributes[:'Website_Other']
1187
+ end
1188
+
1189
+ if attributes.has_key?(:'Website_Other_IsPrimary')
1190
+ self.website_other_is_primary = attributes[:'Website_Other_IsPrimary']
1191
+ end
1192
+
1193
+ if attributes.has_key?(:'Website_Personal')
1194
+ self.website_personal = attributes[:'Website_Personal']
1195
+ end
1196
+
1197
+ if attributes.has_key?(:'Website_Personal_IsPrimary')
1198
+ self.website_personal_is_primary = attributes[:'Website_Personal_IsPrimary']
1199
+ end
1200
+
1201
+ end
1202
+
1203
+ # Show invalid properties with the reasons. Usually used together with valid?
1204
+ # @return Array for valid properties with the reasons
1205
+ def list_invalid_properties
1206
+ invalid_properties = Array.new
1207
+ return invalid_properties
1208
+ end
1209
+
1210
+ # Check to see if the all the properties in the model are valid
1211
+ # @return true if the model is valid
1212
+ def valid?
1213
+ return true
1214
+ end
1215
+
1216
+ # Checks equality by comparing each attribute.
1217
+ # @param [Object] Object to be compared
1218
+ def ==(o)
1219
+ return true if self.equal?(o)
1220
+ self.class == o.class &&
1221
+ attachments == o.attachments &&
1222
+ created_by_id == o.created_by_id &&
1223
+ created_by_name == o.created_by_name &&
1224
+ created_on == o.created_on &&
1225
+ id == o.id &&
1226
+ modified_by_id == o.modified_by_id &&
1227
+ modified_by_name == o.modified_by_name &&
1228
+ modified_on == o.modified_on &&
1229
+ name == o.name &&
1230
+ owners == o.owners &&
1231
+ status_id == o.status_id &&
1232
+ status_name == o.status_name &&
1233
+ address_business_city == o.address_business_city &&
1234
+ address_business_country == o.address_business_country &&
1235
+ address_business_is_primary == o.address_business_is_primary &&
1236
+ address_business_line1 == o.address_business_line1 &&
1237
+ address_business_state == o.address_business_state &&
1238
+ address_business_zip_code == o.address_business_zip_code &&
1239
+ address_home_city == o.address_home_city &&
1240
+ address_home_country == o.address_home_country &&
1241
+ address_home_is_primary == o.address_home_is_primary &&
1242
+ address_home_line1 == o.address_home_line1 &&
1243
+ address_home_state == o.address_home_state &&
1244
+ address_home_zip_code == o.address_home_zip_code &&
1245
+ address_other_city == o.address_other_city &&
1246
+ address_other_country == o.address_other_country &&
1247
+ address_other_is_primary == o.address_other_is_primary &&
1248
+ address_other_line1 == o.address_other_line1 &&
1249
+ address_other_state == o.address_other_state &&
1250
+ address_other_zip_code == o.address_other_zip_code &&
1251
+ current_position_company_id == o.current_position_company_id &&
1252
+ current_position_company_name == o.current_position_company_name &&
1253
+ current_position_title == o.current_position_title &&
1254
+ current_position_when_end == o.current_position_when_end &&
1255
+ current_position_when_start == o.current_position_when_start &&
1256
+ description == o.description &&
1257
+ education_accreditation_id == o.education_accreditation_id &&
1258
+ education_accreditation_name == o.education_accreditation_name &&
1259
+ education_honors == o.education_honors &&
1260
+ education_institution_id == o.education_institution_id &&
1261
+ education_institution_name == o.education_institution_name &&
1262
+ education_when_end == o.education_when_end &&
1263
+ education_when_start == o.education_when_start &&
1264
+ email_address_other == o.email_address_other &&
1265
+ email_address_other_is_primary == o.email_address_other_is_primary &&
1266
+ email_address_personal == o.email_address_personal &&
1267
+ email_address_personal_is_primary == o.email_address_personal_is_primary &&
1268
+ email_address_work == o.email_address_work &&
1269
+ email_address_work_is_primary == o.email_address_work_is_primary &&
1270
+ ethnicity_id == o.ethnicity_id &&
1271
+ ethnicity_name == o.ethnicity_name &&
1272
+ external_primary_key == o.external_primary_key &&
1273
+ first_name == o.first_name &&
1274
+ gender_id == o.gender_id &&
1275
+ gender_name == o.gender_name &&
1276
+ key_date_anniversary == o.key_date_anniversary &&
1277
+ key_date_birthday == o.key_date_birthday &&
1278
+ key_date_other == o.key_date_other &&
1279
+ last_name == o.last_name &&
1280
+ middle_name == o.middle_name &&
1281
+ nick_name == o.nick_name &&
1282
+ phone_number_fax == o.phone_number_fax &&
1283
+ phone_number_fax_extension == o.phone_number_fax_extension &&
1284
+ phone_number_fax_is_primary == o.phone_number_fax_is_primary &&
1285
+ phone_number_home == o.phone_number_home &&
1286
+ phone_number_home_extension == o.phone_number_home_extension &&
1287
+ phone_number_home_is_primary == o.phone_number_home_is_primary &&
1288
+ phone_number_mobile == o.phone_number_mobile &&
1289
+ phone_number_mobile_extension == o.phone_number_mobile_extension &&
1290
+ phone_number_mobile_is_primary == o.phone_number_mobile_is_primary &&
1291
+ phone_number_other == o.phone_number_other &&
1292
+ phone_number_other_extension == o.phone_number_other_extension &&
1293
+ phone_number_other_is_primary == o.phone_number_other_is_primary &&
1294
+ phone_number_skype == o.phone_number_skype &&
1295
+ phone_number_skype_extension == o.phone_number_skype_extension &&
1296
+ phone_number_skype_is_primary == o.phone_number_skype_is_primary &&
1297
+ phone_number_work_direct == o.phone_number_work_direct &&
1298
+ phone_number_work_direct_extension == o.phone_number_work_direct_extension &&
1299
+ phone_number_work_direct_is_primary == o.phone_number_work_direct_is_primary &&
1300
+ phone_number_work_main == o.phone_number_work_main &&
1301
+ phone_number_work_main_extension == o.phone_number_work_main_extension &&
1302
+ phone_number_work_main_is_primary == o.phone_number_work_main_is_primary &&
1303
+ preferred_contact_method_type_id == o.preferred_contact_method_type_id &&
1304
+ preferred_contact_method_type_name == o.preferred_contact_method_type_name &&
1305
+ record_type == o.record_type &&
1306
+ related_contact_assistant_first_name == o.related_contact_assistant_first_name &&
1307
+ related_contact_assistant_id == o.related_contact_assistant_id &&
1308
+ related_contact_assistant_is_primary == o.related_contact_assistant_is_primary &&
1309
+ related_contact_assistant_last_name == o.related_contact_assistant_last_name &&
1310
+ related_contact_client_first_name == o.related_contact_client_first_name &&
1311
+ related_contact_client_id == o.related_contact_client_id &&
1312
+ related_contact_client_is_primary == o.related_contact_client_is_primary &&
1313
+ related_contact_client_last_name == o.related_contact_client_last_name &&
1314
+ related_contact_other_first_name == o.related_contact_other_first_name &&
1315
+ related_contact_other_id == o.related_contact_other_id &&
1316
+ related_contact_other_is_primary == o.related_contact_other_is_primary &&
1317
+ related_contact_other_last_name == o.related_contact_other_last_name &&
1318
+ related_contact_referred_by_first_name == o.related_contact_referred_by_first_name &&
1319
+ related_contact_referred_by_id == o.related_contact_referred_by_id &&
1320
+ related_contact_referred_by_is_primary == o.related_contact_referred_by_is_primary &&
1321
+ related_contact_referred_by_last_name == o.related_contact_referred_by_last_name &&
1322
+ related_contact_spouse_first_name == o.related_contact_spouse_first_name &&
1323
+ related_contact_spouse_id == o.related_contact_spouse_id &&
1324
+ related_contact_spouse_is_primary == o.related_contact_spouse_is_primary &&
1325
+ related_contact_spouse_last_name == o.related_contact_spouse_last_name &&
1326
+ salary == o.salary &&
1327
+ salary_details == o.salary_details &&
1328
+ salutation_id == o.salutation_id &&
1329
+ salutation_name == o.salutation_name &&
1330
+ social_aim == o.social_aim &&
1331
+ social_aim_is_primary == o.social_aim_is_primary &&
1332
+ social_facebook_chat == o.social_facebook_chat &&
1333
+ social_facebook_chat_is_primary == o.social_facebook_chat_is_primary &&
1334
+ social_face_time == o.social_face_time &&
1335
+ social_face_time_is_primary == o.social_face_time_is_primary &&
1336
+ social_google_talk == o.social_google_talk &&
1337
+ social_google_talk_is_primary == o.social_google_talk_is_primary &&
1338
+ social_icq == o.social_icq &&
1339
+ social_icq_is_primary == o.social_icq_is_primary &&
1340
+ social_other == o.social_other &&
1341
+ social_other_is_primary == o.social_other_is_primary &&
1342
+ social_skype == o.social_skype &&
1343
+ social_skype_is_primary == o.social_skype_is_primary &&
1344
+ social_twitter == o.social_twitter &&
1345
+ social_twitter_is_primary == o.social_twitter_is_primary &&
1346
+ social_yahoo_msg == o.social_yahoo_msg &&
1347
+ social_yahoo_msg_is_primary == o.social_yahoo_msg_is_primary &&
1348
+ source_id == o.source_id &&
1349
+ source_name == o.source_name &&
1350
+ suffix_id == o.suffix_id &&
1351
+ suffix_name == o.suffix_name &&
1352
+ tags == o.tags &&
1353
+ website_blog == o.website_blog &&
1354
+ website_blog_is_primary == o.website_blog_is_primary &&
1355
+ website_business == o.website_business &&
1356
+ website_business_is_primary == o.website_business_is_primary &&
1357
+ website_facebook == o.website_facebook &&
1358
+ website_facebook_is_primary == o.website_facebook_is_primary &&
1359
+ website_linked_in == o.website_linked_in &&
1360
+ website_linked_in_is_primary == o.website_linked_in_is_primary &&
1361
+ website_other == o.website_other &&
1362
+ website_other_is_primary == o.website_other_is_primary &&
1363
+ website_personal == o.website_personal &&
1364
+ website_personal_is_primary == o.website_personal_is_primary
1365
+ end
1366
+
1367
+ # @see the `==` method
1368
+ # @param [Object] Object to be compared
1369
+ def eql?(o)
1370
+ self == o
1371
+ end
1372
+
1373
+ # Calculates hash code according to all attributes.
1374
+ # @return [Fixnum] Hash code
1375
+ def hash
1376
+ [attachments, created_by_id, created_by_name, created_on, id, modified_by_id, modified_by_name, modified_on, name, owners, status_id, status_name, 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
1377
+ end
1378
+
1379
+ # Builds the object from hash
1380
+ # @param [Hash] attributes Model attributes in the form of hash
1381
+ # @return [Object] Returns the model itself
1382
+ def build_from_hash(attributes)
1383
+ return nil unless attributes.is_a?(Hash)
1384
+ self.class.swagger_types.each_pair do |key, type|
1385
+ if type =~ /\AArray<(.*)>/i
1386
+ # check to ensure the input is an array given that the the attribute
1387
+ # is documented as an array but the input is not
1388
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
1389
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
1390
+ end
1391
+ elsif !attributes[self.class.attribute_map[key]].nil?
1392
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
1393
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
1394
+ end
1395
+
1396
+ self
1397
+ end
1398
+
1399
+ # Deserializes the data based on type
1400
+ # @param string type Data type
1401
+ # @param string value Value to be deserialized
1402
+ # @return [Object] Deserialized data
1403
+ def _deserialize(type, value)
1404
+ case type.to_sym
1405
+ when :DateTime
1406
+ DateTime.parse(value)
1407
+ when :Date
1408
+ Date.parse(value)
1409
+ when :String
1410
+ value.to_s
1411
+ when :Integer
1412
+ value.to_i
1413
+ when :Float
1414
+ value.to_f
1415
+ when :BOOLEAN
1416
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
1417
+ true
1418
+ else
1419
+ false
1420
+ end
1421
+ when :Object
1422
+ # generic object (usually a Hash), return directly
1423
+ value
1424
+ when /\AArray<(?<inner_type>.+)>\z/
1425
+ inner_type = Regexp.last_match[:inner_type]
1426
+ value.map { |v| _deserialize(inner_type, v) }
1427
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
1428
+ k_type = Regexp.last_match[:k_type]
1429
+ v_type = Regexp.last_match[:v_type]
1430
+ {}.tap do |hash|
1431
+ value.each do |k, v|
1432
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
1433
+ end
1434
+ end
1435
+ else # model
1436
+ temp_model = CrelateClient.const_get(type).new
1437
+ temp_model.build_from_hash(value)
1438
+ end
1439
+ end
1440
+
1441
+ # Returns the string representation of the object
1442
+ # @return [String] String presentation of the object
1443
+ def to_s
1444
+ to_hash.to_s
1445
+ end
1446
+
1447
+ # to_body is an alias to to_hash (backward compatibility)
1448
+ # @return [Hash] Returns the object in the form of hash
1449
+ def to_body
1450
+ to_hash
1451
+ end
1452
+
1453
+ # Returns the object in the form of hash
1454
+ # @return [Hash] Returns the object in the form of hash
1455
+ def to_hash
1456
+ hash = {}
1457
+ self.class.attribute_map.each_pair do |attr, param|
1458
+ value = self.send(attr)
1459
+ next if value.nil?
1460
+ hash[param] = _to_hash(value)
1461
+ end
1462
+ hash
1463
+ end
1464
+
1465
+ # Outputs non-array value in the form of hash
1466
+ # For object, use to_hash. Otherwise, just return the value
1467
+ # @param [Object] value Any valid value
1468
+ # @return [Hash] Returns the value in the form of hash
1469
+ def _to_hash(value)
1470
+ if value.is_a?(Array)
1471
+ value.compact.map{ |v| _to_hash(v) }
1472
+ elsif value.is_a?(Hash)
1473
+ {}.tap do |hash|
1474
+ value.each { |k, v| hash[k] = _to_hash(v) }
1475
+ end
1476
+ elsif value.respond_to? :to_hash
1477
+ value.to_hash
1478
+ else
1479
+ value
1480
+ end
1481
+ end
1482
+
1483
+ end
1484
+
1485
+ end