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,889 @@
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 PublicApiGetAccountResponse
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 :owners
35
+
36
+ attr_accessor :status_id
37
+
38
+ attr_accessor :status_name
39
+
40
+ attr_accessor :additional_contact_billing_first_name
41
+
42
+ attr_accessor :additional_contact_billing_id
43
+
44
+ attr_accessor :additional_contact_billing_is_primary
45
+
46
+ attr_accessor :additional_contact_billing_last_name
47
+
48
+ attr_accessor :additional_contact_other_first_name
49
+
50
+ attr_accessor :additional_contact_other_id
51
+
52
+ attr_accessor :additional_contact_other_is_primary
53
+
54
+ attr_accessor :additional_contact_other_last_name
55
+
56
+ attr_accessor :address_business_city
57
+
58
+ attr_accessor :address_business_country
59
+
60
+ attr_accessor :address_business_is_primary
61
+
62
+ attr_accessor :address_business_line1
63
+
64
+ attr_accessor :address_business_state
65
+
66
+ attr_accessor :address_business_zip_code
67
+
68
+ attr_accessor :address_headquarters_city
69
+
70
+ attr_accessor :address_headquarters_country
71
+
72
+ attr_accessor :address_headquarters_is_primary
73
+
74
+ attr_accessor :address_headquarters_line1
75
+
76
+ attr_accessor :address_headquarters_state
77
+
78
+ attr_accessor :address_headquarters_zip_code
79
+
80
+ attr_accessor :address_other_city
81
+
82
+ attr_accessor :address_other_country
83
+
84
+ attr_accessor :address_other_is_primary
85
+
86
+ attr_accessor :address_other_line1
87
+
88
+ attr_accessor :address_other_state
89
+
90
+ attr_accessor :address_other_zip_code
91
+
92
+ attr_accessor :description
93
+
94
+ attr_accessor :email_address_other
95
+
96
+ attr_accessor :email_address_other_is_primary
97
+
98
+ attr_accessor :email_address_sales
99
+
100
+ attr_accessor :email_address_sales_is_primary
101
+
102
+ attr_accessor :email_address_support
103
+
104
+ attr_accessor :email_address_support_is_primary
105
+
106
+ attr_accessor :external_primary_key
107
+
108
+ attr_accessor :name
109
+
110
+ attr_accessor :parent_account_id
111
+
112
+ attr_accessor :parent_account_name
113
+
114
+ attr_accessor :phone_number_fax
115
+
116
+ attr_accessor :phone_number_fax_extension
117
+
118
+ attr_accessor :phone_number_fax_is_primary
119
+
120
+ attr_accessor :phone_number_main
121
+
122
+ attr_accessor :phone_number_main_extension
123
+
124
+ attr_accessor :phone_number_main_is_primary
125
+
126
+ attr_accessor :phone_number_other
127
+
128
+ attr_accessor :phone_number_other_extension
129
+
130
+ attr_accessor :phone_number_other_is_primary
131
+
132
+ attr_accessor :phone_number_sales
133
+
134
+ attr_accessor :phone_number_sales_extension
135
+
136
+ attr_accessor :phone_number_sales_is_primary
137
+
138
+ attr_accessor :phone_number_skype
139
+
140
+ attr_accessor :phone_number_skype_extension
141
+
142
+ attr_accessor :phone_number_skype_is_primary
143
+
144
+ attr_accessor :phone_number_support
145
+
146
+ attr_accessor :phone_number_support_extension
147
+
148
+ attr_accessor :phone_number_support_is_primary
149
+
150
+ attr_accessor :record_type
151
+
152
+ attr_accessor :tags
153
+
154
+ attr_accessor :website_blog
155
+
156
+ attr_accessor :website_blog_is_primary
157
+
158
+ attr_accessor :website_business
159
+
160
+ attr_accessor :website_business_is_primary
161
+
162
+ attr_accessor :website_facebook
163
+
164
+ attr_accessor :website_facebook_is_primary
165
+
166
+ attr_accessor :website_linked_in
167
+
168
+ attr_accessor :website_linked_in_is_primary
169
+
170
+ attr_accessor :website_other
171
+
172
+ attr_accessor :website_other_is_primary
173
+
174
+
175
+ # Attribute mapping from ruby-style variable name to JSON key.
176
+ def self.attribute_map
177
+ {
178
+ :'attachments' => :'Attachments',
179
+ :'created_by_id' => :'CreatedBy_Id',
180
+ :'created_by_name' => :'CreatedBy_Name',
181
+ :'created_on' => :'CreatedOn',
182
+ :'id' => :'Id',
183
+ :'modified_by_id' => :'ModifiedBy_Id',
184
+ :'modified_by_name' => :'ModifiedBy_Name',
185
+ :'modified_on' => :'ModifiedOn',
186
+ :'owners' => :'Owners',
187
+ :'status_id' => :'Status_Id',
188
+ :'status_name' => :'Status_Name',
189
+ :'additional_contact_billing_first_name' => :'AdditionalContact_Billing_FirstName',
190
+ :'additional_contact_billing_id' => :'AdditionalContact_Billing_Id',
191
+ :'additional_contact_billing_is_primary' => :'AdditionalContact_Billing_IsPrimary',
192
+ :'additional_contact_billing_last_name' => :'AdditionalContact_Billing_LastName',
193
+ :'additional_contact_other_first_name' => :'AdditionalContact_Other_FirstName',
194
+ :'additional_contact_other_id' => :'AdditionalContact_Other_Id',
195
+ :'additional_contact_other_is_primary' => :'AdditionalContact_Other_IsPrimary',
196
+ :'additional_contact_other_last_name' => :'AdditionalContact_Other_LastName',
197
+ :'address_business_city' => :'Address_Business_City',
198
+ :'address_business_country' => :'Address_Business_Country',
199
+ :'address_business_is_primary' => :'Address_Business_IsPrimary',
200
+ :'address_business_line1' => :'Address_Business_Line1',
201
+ :'address_business_state' => :'Address_Business_State',
202
+ :'address_business_zip_code' => :'Address_Business_ZipCode',
203
+ :'address_headquarters_city' => :'Address_Headquarters_City',
204
+ :'address_headquarters_country' => :'Address_Headquarters_Country',
205
+ :'address_headquarters_is_primary' => :'Address_Headquarters_IsPrimary',
206
+ :'address_headquarters_line1' => :'Address_Headquarters_Line1',
207
+ :'address_headquarters_state' => :'Address_Headquarters_State',
208
+ :'address_headquarters_zip_code' => :'Address_Headquarters_ZipCode',
209
+ :'address_other_city' => :'Address_Other_City',
210
+ :'address_other_country' => :'Address_Other_Country',
211
+ :'address_other_is_primary' => :'Address_Other_IsPrimary',
212
+ :'address_other_line1' => :'Address_Other_Line1',
213
+ :'address_other_state' => :'Address_Other_State',
214
+ :'address_other_zip_code' => :'Address_Other_ZipCode',
215
+ :'description' => :'Description',
216
+ :'email_address_other' => :'EmailAddress_Other',
217
+ :'email_address_other_is_primary' => :'EmailAddress_Other_IsPrimary',
218
+ :'email_address_sales' => :'EmailAddress_Sales',
219
+ :'email_address_sales_is_primary' => :'EmailAddress_Sales_IsPrimary',
220
+ :'email_address_support' => :'EmailAddress_Support',
221
+ :'email_address_support_is_primary' => :'EmailAddress_Support_IsPrimary',
222
+ :'external_primary_key' => :'ExternalPrimaryKey',
223
+ :'name' => :'Name',
224
+ :'parent_account_id' => :'ParentAccount_Id',
225
+ :'parent_account_name' => :'ParentAccount_Name',
226
+ :'phone_number_fax' => :'PhoneNumber_Fax',
227
+ :'phone_number_fax_extension' => :'PhoneNumber_Fax_Extension',
228
+ :'phone_number_fax_is_primary' => :'PhoneNumber_Fax_IsPrimary',
229
+ :'phone_number_main' => :'PhoneNumber_Main',
230
+ :'phone_number_main_extension' => :'PhoneNumber_Main_Extension',
231
+ :'phone_number_main_is_primary' => :'PhoneNumber_Main_IsPrimary',
232
+ :'phone_number_other' => :'PhoneNumber_Other',
233
+ :'phone_number_other_extension' => :'PhoneNumber_Other_Extension',
234
+ :'phone_number_other_is_primary' => :'PhoneNumber_Other_IsPrimary',
235
+ :'phone_number_sales' => :'PhoneNumber_Sales',
236
+ :'phone_number_sales_extension' => :'PhoneNumber_Sales_Extension',
237
+ :'phone_number_sales_is_primary' => :'PhoneNumber_Sales_IsPrimary',
238
+ :'phone_number_skype' => :'PhoneNumber_Skype',
239
+ :'phone_number_skype_extension' => :'PhoneNumber_Skype_Extension',
240
+ :'phone_number_skype_is_primary' => :'PhoneNumber_Skype_IsPrimary',
241
+ :'phone_number_support' => :'PhoneNumber_Support',
242
+ :'phone_number_support_extension' => :'PhoneNumber_Support_Extension',
243
+ :'phone_number_support_is_primary' => :'PhoneNumber_Support_IsPrimary',
244
+ :'record_type' => :'RecordType',
245
+ :'tags' => :'Tags',
246
+ :'website_blog' => :'Website_Blog',
247
+ :'website_blog_is_primary' => :'Website_Blog_IsPrimary',
248
+ :'website_business' => :'Website_Business',
249
+ :'website_business_is_primary' => :'Website_Business_IsPrimary',
250
+ :'website_facebook' => :'Website_Facebook',
251
+ :'website_facebook_is_primary' => :'Website_Facebook_IsPrimary',
252
+ :'website_linked_in' => :'Website_LinkedIn',
253
+ :'website_linked_in_is_primary' => :'Website_LinkedIn_IsPrimary',
254
+ :'website_other' => :'Website_Other',
255
+ :'website_other_is_primary' => :'Website_Other_IsPrimary'
256
+ }
257
+ end
258
+
259
+ # Attribute type mapping.
260
+ def self.swagger_types
261
+ {
262
+ :'attachments' => :'Array<PublicApiAttachmentResponse>',
263
+ :'created_by_id' => :'String',
264
+ :'created_by_name' => :'String',
265
+ :'created_on' => :'DateTime',
266
+ :'id' => :'String',
267
+ :'modified_by_id' => :'String',
268
+ :'modified_by_name' => :'String',
269
+ :'modified_on' => :'DateTime',
270
+ :'owners' => :'Array<PublicApiRecordOwner>',
271
+ :'status_id' => :'String',
272
+ :'status_name' => :'String',
273
+ :'additional_contact_billing_first_name' => :'String',
274
+ :'additional_contact_billing_id' => :'String',
275
+ :'additional_contact_billing_is_primary' => :'BOOLEAN',
276
+ :'additional_contact_billing_last_name' => :'String',
277
+ :'additional_contact_other_first_name' => :'String',
278
+ :'additional_contact_other_id' => :'String',
279
+ :'additional_contact_other_is_primary' => :'BOOLEAN',
280
+ :'additional_contact_other_last_name' => :'String',
281
+ :'address_business_city' => :'String',
282
+ :'address_business_country' => :'String',
283
+ :'address_business_is_primary' => :'BOOLEAN',
284
+ :'address_business_line1' => :'String',
285
+ :'address_business_state' => :'String',
286
+ :'address_business_zip_code' => :'String',
287
+ :'address_headquarters_city' => :'String',
288
+ :'address_headquarters_country' => :'String',
289
+ :'address_headquarters_is_primary' => :'BOOLEAN',
290
+ :'address_headquarters_line1' => :'String',
291
+ :'address_headquarters_state' => :'String',
292
+ :'address_headquarters_zip_code' => :'String',
293
+ :'address_other_city' => :'String',
294
+ :'address_other_country' => :'String',
295
+ :'address_other_is_primary' => :'BOOLEAN',
296
+ :'address_other_line1' => :'String',
297
+ :'address_other_state' => :'String',
298
+ :'address_other_zip_code' => :'String',
299
+ :'description' => :'String',
300
+ :'email_address_other' => :'String',
301
+ :'email_address_other_is_primary' => :'BOOLEAN',
302
+ :'email_address_sales' => :'String',
303
+ :'email_address_sales_is_primary' => :'BOOLEAN',
304
+ :'email_address_support' => :'String',
305
+ :'email_address_support_is_primary' => :'BOOLEAN',
306
+ :'external_primary_key' => :'String',
307
+ :'name' => :'String',
308
+ :'parent_account_id' => :'String',
309
+ :'parent_account_name' => :'String',
310
+ :'phone_number_fax' => :'String',
311
+ :'phone_number_fax_extension' => :'String',
312
+ :'phone_number_fax_is_primary' => :'BOOLEAN',
313
+ :'phone_number_main' => :'String',
314
+ :'phone_number_main_extension' => :'String',
315
+ :'phone_number_main_is_primary' => :'BOOLEAN',
316
+ :'phone_number_other' => :'String',
317
+ :'phone_number_other_extension' => :'String',
318
+ :'phone_number_other_is_primary' => :'BOOLEAN',
319
+ :'phone_number_sales' => :'String',
320
+ :'phone_number_sales_extension' => :'String',
321
+ :'phone_number_sales_is_primary' => :'BOOLEAN',
322
+ :'phone_number_skype' => :'String',
323
+ :'phone_number_skype_extension' => :'String',
324
+ :'phone_number_skype_is_primary' => :'BOOLEAN',
325
+ :'phone_number_support' => :'String',
326
+ :'phone_number_support_extension' => :'String',
327
+ :'phone_number_support_is_primary' => :'BOOLEAN',
328
+ :'record_type' => :'Array<String>',
329
+ :'tags' => :'Hash<String, Array<String>>',
330
+ :'website_blog' => :'String',
331
+ :'website_blog_is_primary' => :'BOOLEAN',
332
+ :'website_business' => :'String',
333
+ :'website_business_is_primary' => :'BOOLEAN',
334
+ :'website_facebook' => :'String',
335
+ :'website_facebook_is_primary' => :'BOOLEAN',
336
+ :'website_linked_in' => :'String',
337
+ :'website_linked_in_is_primary' => :'BOOLEAN',
338
+ :'website_other' => :'String',
339
+ :'website_other_is_primary' => :'BOOLEAN'
340
+ }
341
+ end
342
+
343
+ # Initializes the object
344
+ # @param [Hash] attributes Model attributes in the form of hash
345
+ def initialize(attributes = {})
346
+ return unless attributes.is_a?(Hash)
347
+
348
+ # convert string to symbol for hash key
349
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
350
+
351
+ if attributes.has_key?(:'Attachments')
352
+ if (value = attributes[:'Attachments']).is_a?(Array)
353
+ self.attachments = value
354
+ end
355
+ end
356
+
357
+ if attributes.has_key?(:'CreatedBy_Id')
358
+ self.created_by_id = attributes[:'CreatedBy_Id']
359
+ end
360
+
361
+ if attributes.has_key?(:'CreatedBy_Name')
362
+ self.created_by_name = attributes[:'CreatedBy_Name']
363
+ end
364
+
365
+ if attributes.has_key?(:'CreatedOn')
366
+ self.created_on = attributes[:'CreatedOn']
367
+ end
368
+
369
+ if attributes.has_key?(:'Id')
370
+ self.id = attributes[:'Id']
371
+ end
372
+
373
+ if attributes.has_key?(:'ModifiedBy_Id')
374
+ self.modified_by_id = attributes[:'ModifiedBy_Id']
375
+ end
376
+
377
+ if attributes.has_key?(:'ModifiedBy_Name')
378
+ self.modified_by_name = attributes[:'ModifiedBy_Name']
379
+ end
380
+
381
+ if attributes.has_key?(:'ModifiedOn')
382
+ self.modified_on = attributes[:'ModifiedOn']
383
+ end
384
+
385
+ if attributes.has_key?(:'Owners')
386
+ if (value = attributes[:'Owners']).is_a?(Array)
387
+ self.owners = value
388
+ end
389
+ end
390
+
391
+ if attributes.has_key?(:'Status_Id')
392
+ self.status_id = attributes[:'Status_Id']
393
+ end
394
+
395
+ if attributes.has_key?(:'Status_Name')
396
+ self.status_name = attributes[:'Status_Name']
397
+ end
398
+
399
+ if attributes.has_key?(:'AdditionalContact_Billing_FirstName')
400
+ self.additional_contact_billing_first_name = attributes[:'AdditionalContact_Billing_FirstName']
401
+ end
402
+
403
+ if attributes.has_key?(:'AdditionalContact_Billing_Id')
404
+ self.additional_contact_billing_id = attributes[:'AdditionalContact_Billing_Id']
405
+ end
406
+
407
+ if attributes.has_key?(:'AdditionalContact_Billing_IsPrimary')
408
+ self.additional_contact_billing_is_primary = attributes[:'AdditionalContact_Billing_IsPrimary']
409
+ end
410
+
411
+ if attributes.has_key?(:'AdditionalContact_Billing_LastName')
412
+ self.additional_contact_billing_last_name = attributes[:'AdditionalContact_Billing_LastName']
413
+ end
414
+
415
+ if attributes.has_key?(:'AdditionalContact_Other_FirstName')
416
+ self.additional_contact_other_first_name = attributes[:'AdditionalContact_Other_FirstName']
417
+ end
418
+
419
+ if attributes.has_key?(:'AdditionalContact_Other_Id')
420
+ self.additional_contact_other_id = attributes[:'AdditionalContact_Other_Id']
421
+ end
422
+
423
+ if attributes.has_key?(:'AdditionalContact_Other_IsPrimary')
424
+ self.additional_contact_other_is_primary = attributes[:'AdditionalContact_Other_IsPrimary']
425
+ end
426
+
427
+ if attributes.has_key?(:'AdditionalContact_Other_LastName')
428
+ self.additional_contact_other_last_name = attributes[:'AdditionalContact_Other_LastName']
429
+ end
430
+
431
+ if attributes.has_key?(:'Address_Business_City')
432
+ self.address_business_city = attributes[:'Address_Business_City']
433
+ end
434
+
435
+ if attributes.has_key?(:'Address_Business_Country')
436
+ self.address_business_country = attributes[:'Address_Business_Country']
437
+ end
438
+
439
+ if attributes.has_key?(:'Address_Business_IsPrimary')
440
+ self.address_business_is_primary = attributes[:'Address_Business_IsPrimary']
441
+ end
442
+
443
+ if attributes.has_key?(:'Address_Business_Line1')
444
+ self.address_business_line1 = attributes[:'Address_Business_Line1']
445
+ end
446
+
447
+ if attributes.has_key?(:'Address_Business_State')
448
+ self.address_business_state = attributes[:'Address_Business_State']
449
+ end
450
+
451
+ if attributes.has_key?(:'Address_Business_ZipCode')
452
+ self.address_business_zip_code = attributes[:'Address_Business_ZipCode']
453
+ end
454
+
455
+ if attributes.has_key?(:'Address_Headquarters_City')
456
+ self.address_headquarters_city = attributes[:'Address_Headquarters_City']
457
+ end
458
+
459
+ if attributes.has_key?(:'Address_Headquarters_Country')
460
+ self.address_headquarters_country = attributes[:'Address_Headquarters_Country']
461
+ end
462
+
463
+ if attributes.has_key?(:'Address_Headquarters_IsPrimary')
464
+ self.address_headquarters_is_primary = attributes[:'Address_Headquarters_IsPrimary']
465
+ end
466
+
467
+ if attributes.has_key?(:'Address_Headquarters_Line1')
468
+ self.address_headquarters_line1 = attributes[:'Address_Headquarters_Line1']
469
+ end
470
+
471
+ if attributes.has_key?(:'Address_Headquarters_State')
472
+ self.address_headquarters_state = attributes[:'Address_Headquarters_State']
473
+ end
474
+
475
+ if attributes.has_key?(:'Address_Headquarters_ZipCode')
476
+ self.address_headquarters_zip_code = attributes[:'Address_Headquarters_ZipCode']
477
+ end
478
+
479
+ if attributes.has_key?(:'Address_Other_City')
480
+ self.address_other_city = attributes[:'Address_Other_City']
481
+ end
482
+
483
+ if attributes.has_key?(:'Address_Other_Country')
484
+ self.address_other_country = attributes[:'Address_Other_Country']
485
+ end
486
+
487
+ if attributes.has_key?(:'Address_Other_IsPrimary')
488
+ self.address_other_is_primary = attributes[:'Address_Other_IsPrimary']
489
+ end
490
+
491
+ if attributes.has_key?(:'Address_Other_Line1')
492
+ self.address_other_line1 = attributes[:'Address_Other_Line1']
493
+ end
494
+
495
+ if attributes.has_key?(:'Address_Other_State')
496
+ self.address_other_state = attributes[:'Address_Other_State']
497
+ end
498
+
499
+ if attributes.has_key?(:'Address_Other_ZipCode')
500
+ self.address_other_zip_code = attributes[:'Address_Other_ZipCode']
501
+ end
502
+
503
+ if attributes.has_key?(:'Description')
504
+ self.description = attributes[:'Description']
505
+ end
506
+
507
+ if attributes.has_key?(:'EmailAddress_Other')
508
+ self.email_address_other = attributes[:'EmailAddress_Other']
509
+ end
510
+
511
+ if attributes.has_key?(:'EmailAddress_Other_IsPrimary')
512
+ self.email_address_other_is_primary = attributes[:'EmailAddress_Other_IsPrimary']
513
+ end
514
+
515
+ if attributes.has_key?(:'EmailAddress_Sales')
516
+ self.email_address_sales = attributes[:'EmailAddress_Sales']
517
+ end
518
+
519
+ if attributes.has_key?(:'EmailAddress_Sales_IsPrimary')
520
+ self.email_address_sales_is_primary = attributes[:'EmailAddress_Sales_IsPrimary']
521
+ end
522
+
523
+ if attributes.has_key?(:'EmailAddress_Support')
524
+ self.email_address_support = attributes[:'EmailAddress_Support']
525
+ end
526
+
527
+ if attributes.has_key?(:'EmailAddress_Support_IsPrimary')
528
+ self.email_address_support_is_primary = attributes[:'EmailAddress_Support_IsPrimary']
529
+ end
530
+
531
+ if attributes.has_key?(:'ExternalPrimaryKey')
532
+ self.external_primary_key = attributes[:'ExternalPrimaryKey']
533
+ end
534
+
535
+ if attributes.has_key?(:'Name')
536
+ self.name = attributes[:'Name']
537
+ end
538
+
539
+ if attributes.has_key?(:'ParentAccount_Id')
540
+ self.parent_account_id = attributes[:'ParentAccount_Id']
541
+ end
542
+
543
+ if attributes.has_key?(:'ParentAccount_Name')
544
+ self.parent_account_name = attributes[:'ParentAccount_Name']
545
+ end
546
+
547
+ if attributes.has_key?(:'PhoneNumber_Fax')
548
+ self.phone_number_fax = attributes[:'PhoneNumber_Fax']
549
+ end
550
+
551
+ if attributes.has_key?(:'PhoneNumber_Fax_Extension')
552
+ self.phone_number_fax_extension = attributes[:'PhoneNumber_Fax_Extension']
553
+ end
554
+
555
+ if attributes.has_key?(:'PhoneNumber_Fax_IsPrimary')
556
+ self.phone_number_fax_is_primary = attributes[:'PhoneNumber_Fax_IsPrimary']
557
+ end
558
+
559
+ if attributes.has_key?(:'PhoneNumber_Main')
560
+ self.phone_number_main = attributes[:'PhoneNumber_Main']
561
+ end
562
+
563
+ if attributes.has_key?(:'PhoneNumber_Main_Extension')
564
+ self.phone_number_main_extension = attributes[:'PhoneNumber_Main_Extension']
565
+ end
566
+
567
+ if attributes.has_key?(:'PhoneNumber_Main_IsPrimary')
568
+ self.phone_number_main_is_primary = attributes[:'PhoneNumber_Main_IsPrimary']
569
+ end
570
+
571
+ if attributes.has_key?(:'PhoneNumber_Other')
572
+ self.phone_number_other = attributes[:'PhoneNumber_Other']
573
+ end
574
+
575
+ if attributes.has_key?(:'PhoneNumber_Other_Extension')
576
+ self.phone_number_other_extension = attributes[:'PhoneNumber_Other_Extension']
577
+ end
578
+
579
+ if attributes.has_key?(:'PhoneNumber_Other_IsPrimary')
580
+ self.phone_number_other_is_primary = attributes[:'PhoneNumber_Other_IsPrimary']
581
+ end
582
+
583
+ if attributes.has_key?(:'PhoneNumber_Sales')
584
+ self.phone_number_sales = attributes[:'PhoneNumber_Sales']
585
+ end
586
+
587
+ if attributes.has_key?(:'PhoneNumber_Sales_Extension')
588
+ self.phone_number_sales_extension = attributes[:'PhoneNumber_Sales_Extension']
589
+ end
590
+
591
+ if attributes.has_key?(:'PhoneNumber_Sales_IsPrimary')
592
+ self.phone_number_sales_is_primary = attributes[:'PhoneNumber_Sales_IsPrimary']
593
+ end
594
+
595
+ if attributes.has_key?(:'PhoneNumber_Skype')
596
+ self.phone_number_skype = attributes[:'PhoneNumber_Skype']
597
+ end
598
+
599
+ if attributes.has_key?(:'PhoneNumber_Skype_Extension')
600
+ self.phone_number_skype_extension = attributes[:'PhoneNumber_Skype_Extension']
601
+ end
602
+
603
+ if attributes.has_key?(:'PhoneNumber_Skype_IsPrimary')
604
+ self.phone_number_skype_is_primary = attributes[:'PhoneNumber_Skype_IsPrimary']
605
+ end
606
+
607
+ if attributes.has_key?(:'PhoneNumber_Support')
608
+ self.phone_number_support = attributes[:'PhoneNumber_Support']
609
+ end
610
+
611
+ if attributes.has_key?(:'PhoneNumber_Support_Extension')
612
+ self.phone_number_support_extension = attributes[:'PhoneNumber_Support_Extension']
613
+ end
614
+
615
+ if attributes.has_key?(:'PhoneNumber_Support_IsPrimary')
616
+ self.phone_number_support_is_primary = attributes[:'PhoneNumber_Support_IsPrimary']
617
+ end
618
+
619
+ if attributes.has_key?(:'RecordType')
620
+ if (value = attributes[:'RecordType']).is_a?(Array)
621
+ self.record_type = value
622
+ end
623
+ end
624
+
625
+ if attributes.has_key?(:'Tags')
626
+ if (value = attributes[:'Tags']).is_a?(Hash)
627
+ self.tags = value
628
+ end
629
+ end
630
+
631
+ if attributes.has_key?(:'Website_Blog')
632
+ self.website_blog = attributes[:'Website_Blog']
633
+ end
634
+
635
+ if attributes.has_key?(:'Website_Blog_IsPrimary')
636
+ self.website_blog_is_primary = attributes[:'Website_Blog_IsPrimary']
637
+ end
638
+
639
+ if attributes.has_key?(:'Website_Business')
640
+ self.website_business = attributes[:'Website_Business']
641
+ end
642
+
643
+ if attributes.has_key?(:'Website_Business_IsPrimary')
644
+ self.website_business_is_primary = attributes[:'Website_Business_IsPrimary']
645
+ end
646
+
647
+ if attributes.has_key?(:'Website_Facebook')
648
+ self.website_facebook = attributes[:'Website_Facebook']
649
+ end
650
+
651
+ if attributes.has_key?(:'Website_Facebook_IsPrimary')
652
+ self.website_facebook_is_primary = attributes[:'Website_Facebook_IsPrimary']
653
+ end
654
+
655
+ if attributes.has_key?(:'Website_LinkedIn')
656
+ self.website_linked_in = attributes[:'Website_LinkedIn']
657
+ end
658
+
659
+ if attributes.has_key?(:'Website_LinkedIn_IsPrimary')
660
+ self.website_linked_in_is_primary = attributes[:'Website_LinkedIn_IsPrimary']
661
+ end
662
+
663
+ if attributes.has_key?(:'Website_Other')
664
+ self.website_other = attributes[:'Website_Other']
665
+ end
666
+
667
+ if attributes.has_key?(:'Website_Other_IsPrimary')
668
+ self.website_other_is_primary = attributes[:'Website_Other_IsPrimary']
669
+ end
670
+
671
+ end
672
+
673
+ # Show invalid properties with the reasons. Usually used together with valid?
674
+ # @return Array for valid properties with the reasons
675
+ def list_invalid_properties
676
+ invalid_properties = Array.new
677
+ return invalid_properties
678
+ end
679
+
680
+ # Check to see if the all the properties in the model are valid
681
+ # @return true if the model is valid
682
+ def valid?
683
+ return true
684
+ end
685
+
686
+ # Checks equality by comparing each attribute.
687
+ # @param [Object] Object to be compared
688
+ def ==(o)
689
+ return true if self.equal?(o)
690
+ self.class == o.class &&
691
+ attachments == o.attachments &&
692
+ created_by_id == o.created_by_id &&
693
+ created_by_name == o.created_by_name &&
694
+ created_on == o.created_on &&
695
+ id == o.id &&
696
+ modified_by_id == o.modified_by_id &&
697
+ modified_by_name == o.modified_by_name &&
698
+ modified_on == o.modified_on &&
699
+ owners == o.owners &&
700
+ status_id == o.status_id &&
701
+ status_name == o.status_name &&
702
+ additional_contact_billing_first_name == o.additional_contact_billing_first_name &&
703
+ additional_contact_billing_id == o.additional_contact_billing_id &&
704
+ additional_contact_billing_is_primary == o.additional_contact_billing_is_primary &&
705
+ additional_contact_billing_last_name == o.additional_contact_billing_last_name &&
706
+ additional_contact_other_first_name == o.additional_contact_other_first_name &&
707
+ additional_contact_other_id == o.additional_contact_other_id &&
708
+ additional_contact_other_is_primary == o.additional_contact_other_is_primary &&
709
+ additional_contact_other_last_name == o.additional_contact_other_last_name &&
710
+ address_business_city == o.address_business_city &&
711
+ address_business_country == o.address_business_country &&
712
+ address_business_is_primary == o.address_business_is_primary &&
713
+ address_business_line1 == o.address_business_line1 &&
714
+ address_business_state == o.address_business_state &&
715
+ address_business_zip_code == o.address_business_zip_code &&
716
+ address_headquarters_city == o.address_headquarters_city &&
717
+ address_headquarters_country == o.address_headquarters_country &&
718
+ address_headquarters_is_primary == o.address_headquarters_is_primary &&
719
+ address_headquarters_line1 == o.address_headquarters_line1 &&
720
+ address_headquarters_state == o.address_headquarters_state &&
721
+ address_headquarters_zip_code == o.address_headquarters_zip_code &&
722
+ address_other_city == o.address_other_city &&
723
+ address_other_country == o.address_other_country &&
724
+ address_other_is_primary == o.address_other_is_primary &&
725
+ address_other_line1 == o.address_other_line1 &&
726
+ address_other_state == o.address_other_state &&
727
+ address_other_zip_code == o.address_other_zip_code &&
728
+ description == o.description &&
729
+ email_address_other == o.email_address_other &&
730
+ email_address_other_is_primary == o.email_address_other_is_primary &&
731
+ email_address_sales == o.email_address_sales &&
732
+ email_address_sales_is_primary == o.email_address_sales_is_primary &&
733
+ email_address_support == o.email_address_support &&
734
+ email_address_support_is_primary == o.email_address_support_is_primary &&
735
+ external_primary_key == o.external_primary_key &&
736
+ name == o.name &&
737
+ parent_account_id == o.parent_account_id &&
738
+ parent_account_name == o.parent_account_name &&
739
+ phone_number_fax == o.phone_number_fax &&
740
+ phone_number_fax_extension == o.phone_number_fax_extension &&
741
+ phone_number_fax_is_primary == o.phone_number_fax_is_primary &&
742
+ phone_number_main == o.phone_number_main &&
743
+ phone_number_main_extension == o.phone_number_main_extension &&
744
+ phone_number_main_is_primary == o.phone_number_main_is_primary &&
745
+ phone_number_other == o.phone_number_other &&
746
+ phone_number_other_extension == o.phone_number_other_extension &&
747
+ phone_number_other_is_primary == o.phone_number_other_is_primary &&
748
+ phone_number_sales == o.phone_number_sales &&
749
+ phone_number_sales_extension == o.phone_number_sales_extension &&
750
+ phone_number_sales_is_primary == o.phone_number_sales_is_primary &&
751
+ phone_number_skype == o.phone_number_skype &&
752
+ phone_number_skype_extension == o.phone_number_skype_extension &&
753
+ phone_number_skype_is_primary == o.phone_number_skype_is_primary &&
754
+ phone_number_support == o.phone_number_support &&
755
+ phone_number_support_extension == o.phone_number_support_extension &&
756
+ phone_number_support_is_primary == o.phone_number_support_is_primary &&
757
+ record_type == o.record_type &&
758
+ tags == o.tags &&
759
+ website_blog == o.website_blog &&
760
+ website_blog_is_primary == o.website_blog_is_primary &&
761
+ website_business == o.website_business &&
762
+ website_business_is_primary == o.website_business_is_primary &&
763
+ website_facebook == o.website_facebook &&
764
+ website_facebook_is_primary == o.website_facebook_is_primary &&
765
+ website_linked_in == o.website_linked_in &&
766
+ website_linked_in_is_primary == o.website_linked_in_is_primary &&
767
+ website_other == o.website_other &&
768
+ website_other_is_primary == o.website_other_is_primary
769
+ end
770
+
771
+ # @see the `==` method
772
+ # @param [Object] Object to be compared
773
+ def eql?(o)
774
+ self == o
775
+ end
776
+
777
+ # Calculates hash code according to all attributes.
778
+ # @return [Fixnum] Hash code
779
+ def hash
780
+ [attachments, created_by_id, created_by_name, created_on, id, modified_by_id, modified_by_name, modified_on, owners, status_id, status_name, additional_contact_billing_first_name, additional_contact_billing_id, additional_contact_billing_is_primary, additional_contact_billing_last_name, additional_contact_other_first_name, additional_contact_other_id, additional_contact_other_is_primary, additional_contact_other_last_name, address_business_city, address_business_country, address_business_is_primary, address_business_line1, address_business_state, address_business_zip_code, address_headquarters_city, address_headquarters_country, address_headquarters_is_primary, address_headquarters_line1, address_headquarters_state, address_headquarters_zip_code, address_other_city, address_other_country, address_other_is_primary, address_other_line1, address_other_state, address_other_zip_code, description, email_address_other, email_address_other_is_primary, email_address_sales, email_address_sales_is_primary, email_address_support, email_address_support_is_primary, external_primary_key, name, parent_account_id, parent_account_name, phone_number_fax, phone_number_fax_extension, phone_number_fax_is_primary, phone_number_main, phone_number_main_extension, phone_number_main_is_primary, phone_number_other, phone_number_other_extension, phone_number_other_is_primary, phone_number_sales, phone_number_sales_extension, phone_number_sales_is_primary, phone_number_skype, phone_number_skype_extension, phone_number_skype_is_primary, phone_number_support, phone_number_support_extension, phone_number_support_is_primary, record_type, 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].hash
781
+ end
782
+
783
+ # Builds the object from hash
784
+ # @param [Hash] attributes Model attributes in the form of hash
785
+ # @return [Object] Returns the model itself
786
+ def build_from_hash(attributes)
787
+ return nil unless attributes.is_a?(Hash)
788
+ self.class.swagger_types.each_pair do |key, type|
789
+ if type =~ /\AArray<(.*)>/i
790
+ # check to ensure the input is an array given that the the attribute
791
+ # is documented as an array but the input is not
792
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
793
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
794
+ end
795
+ elsif !attributes[self.class.attribute_map[key]].nil?
796
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
797
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
798
+ end
799
+
800
+ self
801
+ end
802
+
803
+ # Deserializes the data based on type
804
+ # @param string type Data type
805
+ # @param string value Value to be deserialized
806
+ # @return [Object] Deserialized data
807
+ def _deserialize(type, value)
808
+ case type.to_sym
809
+ when :DateTime
810
+ DateTime.parse(value)
811
+ when :Date
812
+ Date.parse(value)
813
+ when :String
814
+ value.to_s
815
+ when :Integer
816
+ value.to_i
817
+ when :Float
818
+ value.to_f
819
+ when :BOOLEAN
820
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
821
+ true
822
+ else
823
+ false
824
+ end
825
+ when :Object
826
+ # generic object (usually a Hash), return directly
827
+ value
828
+ when /\AArray<(?<inner_type>.+)>\z/
829
+ inner_type = Regexp.last_match[:inner_type]
830
+ value.map { |v| _deserialize(inner_type, v) }
831
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
832
+ k_type = Regexp.last_match[:k_type]
833
+ v_type = Regexp.last_match[:v_type]
834
+ {}.tap do |hash|
835
+ value.each do |k, v|
836
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
837
+ end
838
+ end
839
+ else # model
840
+ temp_model = CrelateClient.const_get(type).new
841
+ temp_model.build_from_hash(value)
842
+ end
843
+ end
844
+
845
+ # Returns the string representation of the object
846
+ # @return [String] String presentation of the object
847
+ def to_s
848
+ to_hash.to_s
849
+ end
850
+
851
+ # to_body is an alias to to_hash (backward compatibility)
852
+ # @return [Hash] Returns the object in the form of hash
853
+ def to_body
854
+ to_hash
855
+ end
856
+
857
+ # Returns the object in the form of hash
858
+ # @return [Hash] Returns the object in the form of hash
859
+ def to_hash
860
+ hash = {}
861
+ self.class.attribute_map.each_pair do |attr, param|
862
+ value = self.send(attr)
863
+ next if value.nil?
864
+ hash[param] = _to_hash(value)
865
+ end
866
+ hash
867
+ end
868
+
869
+ # Outputs non-array value in the form of hash
870
+ # For object, use to_hash. Otherwise, just return the value
871
+ # @param [Object] value Any valid value
872
+ # @return [Hash] Returns the value in the form of hash
873
+ def _to_hash(value)
874
+ if value.is_a?(Array)
875
+ value.compact.map{ |v| _to_hash(v) }
876
+ elsif value.is_a?(Hash)
877
+ {}.tap do |hash|
878
+ value.each { |k, v| hash[k] = _to_hash(v) }
879
+ end
880
+ elsif value.respond_to? :to_hash
881
+ value.to_hash
882
+ else
883
+ value
884
+ end
885
+ end
886
+
887
+ end
888
+
889
+ end