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