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,975 @@
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 PublicApiSaveJobRequest
18
+ attr_accessor :actual_value
19
+
20
+ attr_accessor :additional_contact_client_first_name
21
+
22
+ attr_accessor :additional_contact_client_id
23
+
24
+ attr_accessor :additional_contact_client_is_primary
25
+
26
+ attr_accessor :additional_contact_client_last_name
27
+
28
+ attr_accessor :address_business_city
29
+
30
+ attr_accessor :address_business_country
31
+
32
+ attr_accessor :address_business_is_primary
33
+
34
+ attr_accessor :address_business_line1
35
+
36
+ attr_accessor :address_business_state
37
+
38
+ attr_accessor :address_business_zip_code
39
+
40
+ attr_accessor :address_other_city
41
+
42
+ attr_accessor :address_other_country
43
+
44
+ attr_accessor :address_other_is_primary
45
+
46
+ attr_accessor :address_other_line1
47
+
48
+ attr_accessor :address_other_state
49
+
50
+ attr_accessor :address_other_zip_code
51
+
52
+ attr_accessor :bill_rate
53
+
54
+ attr_accessor :bonus
55
+
56
+ attr_accessor :commission
57
+
58
+ attr_accessor :company_id
59
+
60
+ attr_accessor :company_name
61
+
62
+ attr_accessor :compensation
63
+
64
+ attr_accessor :compensation_details
65
+
66
+ attr_accessor :custom_field1
67
+
68
+ attr_accessor :custom_field10
69
+
70
+ attr_accessor :custom_field11
71
+
72
+ attr_accessor :custom_field12
73
+
74
+ attr_accessor :custom_field13
75
+
76
+ attr_accessor :custom_field14
77
+
78
+ attr_accessor :custom_field15
79
+
80
+ attr_accessor :custom_field16
81
+
82
+ attr_accessor :custom_field17
83
+
84
+ attr_accessor :custom_field18
85
+
86
+ attr_accessor :custom_field19
87
+
88
+ attr_accessor :custom_field2
89
+
90
+ attr_accessor :custom_field20
91
+
92
+ attr_accessor :custom_field21
93
+
94
+ attr_accessor :custom_field22
95
+
96
+ attr_accessor :custom_field23
97
+
98
+ attr_accessor :custom_field24
99
+
100
+ attr_accessor :custom_field25
101
+
102
+ attr_accessor :custom_field26
103
+
104
+ attr_accessor :custom_field27
105
+
106
+ attr_accessor :custom_field28
107
+
108
+ attr_accessor :custom_field29
109
+
110
+ attr_accessor :custom_field3
111
+
112
+ attr_accessor :custom_field30
113
+
114
+ attr_accessor :custom_field4
115
+
116
+ attr_accessor :custom_field5
117
+
118
+ attr_accessor :custom_field6
119
+
120
+ attr_accessor :custom_field7
121
+
122
+ attr_accessor :custom_field8
123
+
124
+ attr_accessor :custom_field9
125
+
126
+ attr_accessor :description
127
+
128
+ attr_accessor :discount
129
+
130
+ attr_accessor :estimated_close_date
131
+
132
+ attr_accessor :external_primary_key
133
+
134
+ attr_accessor :fee
135
+
136
+ attr_accessor :fee_percent
137
+
138
+ attr_accessor :hourly_rate
139
+
140
+ attr_accessor :is_lead
141
+
142
+ attr_accessor :is_on_hold
143
+
144
+ attr_accessor :job_title_id
145
+
146
+ attr_accessor :job_title_name
147
+
148
+ attr_accessor :job_types
149
+
150
+ attr_accessor :lead_source_id
151
+
152
+ attr_accessor :lead_source_name
153
+
154
+ attr_accessor :margin
155
+
156
+ attr_accessor :name
157
+
158
+ attr_accessor :number_of_openings
159
+
160
+ attr_accessor :opportunity_type_id
161
+
162
+ attr_accessor :opportunity_type_name
163
+
164
+ attr_accessor :parent_job_id
165
+
166
+ attr_accessor :parent_job_name
167
+
168
+ attr_accessor :pay_rate
169
+
170
+ attr_accessor :potential_value
171
+
172
+ attr_accessor :priority_id
173
+
174
+ attr_accessor :priority_name
175
+
176
+ attr_accessor :probability
177
+
178
+ attr_accessor :salary
179
+
180
+ attr_accessor :start_date
181
+
182
+ attr_accessor :tags
183
+
184
+ attr_accessor :total_hours
185
+
186
+ attr_accessor :website_description
187
+
188
+ attr_accessor :website_description_is_primary
189
+
190
+ attr_accessor :website_other
191
+
192
+ attr_accessor :website_other_is_primary
193
+
194
+
195
+ # Attribute mapping from ruby-style variable name to JSON key.
196
+ def self.attribute_map
197
+ {
198
+ :'actual_value' => :'ActualValue',
199
+ :'additional_contact_client_first_name' => :'AdditionalContact_Client_FirstName',
200
+ :'additional_contact_client_id' => :'AdditionalContact_Client_Id',
201
+ :'additional_contact_client_is_primary' => :'AdditionalContact_Client_IsPrimary',
202
+ :'additional_contact_client_last_name' => :'AdditionalContact_Client_LastName',
203
+ :'address_business_city' => :'Address_Business_City',
204
+ :'address_business_country' => :'Address_Business_Country',
205
+ :'address_business_is_primary' => :'Address_Business_IsPrimary',
206
+ :'address_business_line1' => :'Address_Business_Line1',
207
+ :'address_business_state' => :'Address_Business_State',
208
+ :'address_business_zip_code' => :'Address_Business_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
+ :'bill_rate' => :'BillRate',
216
+ :'bonus' => :'Bonus',
217
+ :'commission' => :'Commission',
218
+ :'company_id' => :'Company_Id',
219
+ :'company_name' => :'Company_Name',
220
+ :'compensation' => :'Compensation',
221
+ :'compensation_details' => :'CompensationDetails',
222
+ :'custom_field1' => :'CustomField1',
223
+ :'custom_field10' => :'CustomField10',
224
+ :'custom_field11' => :'CustomField11',
225
+ :'custom_field12' => :'CustomField12',
226
+ :'custom_field13' => :'CustomField13',
227
+ :'custom_field14' => :'CustomField14',
228
+ :'custom_field15' => :'CustomField15',
229
+ :'custom_field16' => :'CustomField16',
230
+ :'custom_field17' => :'CustomField17',
231
+ :'custom_field18' => :'CustomField18',
232
+ :'custom_field19' => :'CustomField19',
233
+ :'custom_field2' => :'CustomField2',
234
+ :'custom_field20' => :'CustomField20',
235
+ :'custom_field21' => :'CustomField21',
236
+ :'custom_field22' => :'CustomField22',
237
+ :'custom_field23' => :'CustomField23',
238
+ :'custom_field24' => :'CustomField24',
239
+ :'custom_field25' => :'CustomField25',
240
+ :'custom_field26' => :'CustomField26',
241
+ :'custom_field27' => :'CustomField27',
242
+ :'custom_field28' => :'CustomField28',
243
+ :'custom_field29' => :'CustomField29',
244
+ :'custom_field3' => :'CustomField3',
245
+ :'custom_field30' => :'CustomField30',
246
+ :'custom_field4' => :'CustomField4',
247
+ :'custom_field5' => :'CustomField5',
248
+ :'custom_field6' => :'CustomField6',
249
+ :'custom_field7' => :'CustomField7',
250
+ :'custom_field8' => :'CustomField8',
251
+ :'custom_field9' => :'CustomField9',
252
+ :'description' => :'Description',
253
+ :'discount' => :'Discount',
254
+ :'estimated_close_date' => :'EstimatedCloseDate',
255
+ :'external_primary_key' => :'ExternalPrimaryKey',
256
+ :'fee' => :'Fee',
257
+ :'fee_percent' => :'FeePercent',
258
+ :'hourly_rate' => :'HourlyRate',
259
+ :'is_lead' => :'IsLead',
260
+ :'is_on_hold' => :'IsOnHold',
261
+ :'job_title_id' => :'JobTitle_Id',
262
+ :'job_title_name' => :'JobTitle_Name',
263
+ :'job_types' => :'JobTypes',
264
+ :'lead_source_id' => :'LeadSource_Id',
265
+ :'lead_source_name' => :'LeadSource_Name',
266
+ :'margin' => :'Margin',
267
+ :'name' => :'Name',
268
+ :'number_of_openings' => :'NumberOfOpenings',
269
+ :'opportunity_type_id' => :'OpportunityType_Id',
270
+ :'opportunity_type_name' => :'OpportunityType_Name',
271
+ :'parent_job_id' => :'ParentJob_Id',
272
+ :'parent_job_name' => :'ParentJob_Name',
273
+ :'pay_rate' => :'PayRate',
274
+ :'potential_value' => :'PotentialValue',
275
+ :'priority_id' => :'Priority_Id',
276
+ :'priority_name' => :'Priority_Name',
277
+ :'probability' => :'Probability',
278
+ :'salary' => :'Salary',
279
+ :'start_date' => :'StartDate',
280
+ :'tags' => :'Tags',
281
+ :'total_hours' => :'TotalHours',
282
+ :'website_description' => :'Website_Description',
283
+ :'website_description_is_primary' => :'Website_Description_IsPrimary',
284
+ :'website_other' => :'Website_Other',
285
+ :'website_other_is_primary' => :'Website_Other_IsPrimary'
286
+ }
287
+ end
288
+
289
+ # Attribute type mapping.
290
+ def self.swagger_types
291
+ {
292
+ :'actual_value' => :'Float',
293
+ :'additional_contact_client_first_name' => :'String',
294
+ :'additional_contact_client_id' => :'String',
295
+ :'additional_contact_client_is_primary' => :'BOOLEAN',
296
+ :'additional_contact_client_last_name' => :'String',
297
+ :'address_business_city' => :'String',
298
+ :'address_business_country' => :'String',
299
+ :'address_business_is_primary' => :'BOOLEAN',
300
+ :'address_business_line1' => :'String',
301
+ :'address_business_state' => :'String',
302
+ :'address_business_zip_code' => :'String',
303
+ :'address_other_city' => :'String',
304
+ :'address_other_country' => :'String',
305
+ :'address_other_is_primary' => :'BOOLEAN',
306
+ :'address_other_line1' => :'String',
307
+ :'address_other_state' => :'String',
308
+ :'address_other_zip_code' => :'String',
309
+ :'bill_rate' => :'Float',
310
+ :'bonus' => :'Float',
311
+ :'commission' => :'Float',
312
+ :'company_id' => :'String',
313
+ :'company_name' => :'String',
314
+ :'compensation' => :'Float',
315
+ :'compensation_details' => :'String',
316
+ :'custom_field1' => :'String',
317
+ :'custom_field10' => :'String',
318
+ :'custom_field11' => :'Float',
319
+ :'custom_field12' => :'Float',
320
+ :'custom_field13' => :'Float',
321
+ :'custom_field14' => :'Float',
322
+ :'custom_field15' => :'Float',
323
+ :'custom_field16' => :'Float',
324
+ :'custom_field17' => :'Float',
325
+ :'custom_field18' => :'Float',
326
+ :'custom_field19' => :'Float',
327
+ :'custom_field2' => :'String',
328
+ :'custom_field20' => :'Float',
329
+ :'custom_field21' => :'DateTime',
330
+ :'custom_field22' => :'DateTime',
331
+ :'custom_field23' => :'DateTime',
332
+ :'custom_field24' => :'DateTime',
333
+ :'custom_field25' => :'DateTime',
334
+ :'custom_field26' => :'DateTime',
335
+ :'custom_field27' => :'DateTime',
336
+ :'custom_field28' => :'DateTime',
337
+ :'custom_field29' => :'DateTime',
338
+ :'custom_field3' => :'String',
339
+ :'custom_field30' => :'DateTime',
340
+ :'custom_field4' => :'String',
341
+ :'custom_field5' => :'String',
342
+ :'custom_field6' => :'String',
343
+ :'custom_field7' => :'String',
344
+ :'custom_field8' => :'String',
345
+ :'custom_field9' => :'String',
346
+ :'description' => :'String',
347
+ :'discount' => :'Float',
348
+ :'estimated_close_date' => :'DateTime',
349
+ :'external_primary_key' => :'String',
350
+ :'fee' => :'Float',
351
+ :'fee_percent' => :'Float',
352
+ :'hourly_rate' => :'Float',
353
+ :'is_lead' => :'BOOLEAN',
354
+ :'is_on_hold' => :'BOOLEAN',
355
+ :'job_title_id' => :'String',
356
+ :'job_title_name' => :'String',
357
+ :'job_types' => :'Array<PublicApiSaveJobRequestJobType>',
358
+ :'lead_source_id' => :'String',
359
+ :'lead_source_name' => :'String',
360
+ :'margin' => :'Float',
361
+ :'name' => :'String',
362
+ :'number_of_openings' => :'Integer',
363
+ :'opportunity_type_id' => :'String',
364
+ :'opportunity_type_name' => :'String',
365
+ :'parent_job_id' => :'String',
366
+ :'parent_job_name' => :'String',
367
+ :'pay_rate' => :'Float',
368
+ :'potential_value' => :'Float',
369
+ :'priority_id' => :'String',
370
+ :'priority_name' => :'String',
371
+ :'probability' => :'Float',
372
+ :'salary' => :'Float',
373
+ :'start_date' => :'DateTime',
374
+ :'tags' => :'Hash<String, Array<String>>',
375
+ :'total_hours' => :'Float',
376
+ :'website_description' => :'String',
377
+ :'website_description_is_primary' => :'BOOLEAN',
378
+ :'website_other' => :'String',
379
+ :'website_other_is_primary' => :'BOOLEAN'
380
+ }
381
+ end
382
+
383
+ # Initializes the object
384
+ # @param [Hash] attributes Model attributes in the form of hash
385
+ def initialize(attributes = {})
386
+ return unless attributes.is_a?(Hash)
387
+
388
+ # convert string to symbol for hash key
389
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
390
+
391
+ if attributes.has_key?(:'ActualValue')
392
+ self.actual_value = attributes[:'ActualValue']
393
+ end
394
+
395
+ if attributes.has_key?(:'AdditionalContact_Client_FirstName')
396
+ self.additional_contact_client_first_name = attributes[:'AdditionalContact_Client_FirstName']
397
+ end
398
+
399
+ if attributes.has_key?(:'AdditionalContact_Client_Id')
400
+ self.additional_contact_client_id = attributes[:'AdditionalContact_Client_Id']
401
+ end
402
+
403
+ if attributes.has_key?(:'AdditionalContact_Client_IsPrimary')
404
+ self.additional_contact_client_is_primary = attributes[:'AdditionalContact_Client_IsPrimary']
405
+ end
406
+
407
+ if attributes.has_key?(:'AdditionalContact_Client_LastName')
408
+ self.additional_contact_client_last_name = attributes[:'AdditionalContact_Client_LastName']
409
+ end
410
+
411
+ if attributes.has_key?(:'Address_Business_City')
412
+ self.address_business_city = attributes[:'Address_Business_City']
413
+ end
414
+
415
+ if attributes.has_key?(:'Address_Business_Country')
416
+ self.address_business_country = attributes[:'Address_Business_Country']
417
+ end
418
+
419
+ if attributes.has_key?(:'Address_Business_IsPrimary')
420
+ self.address_business_is_primary = attributes[:'Address_Business_IsPrimary']
421
+ end
422
+
423
+ if attributes.has_key?(:'Address_Business_Line1')
424
+ self.address_business_line1 = attributes[:'Address_Business_Line1']
425
+ end
426
+
427
+ if attributes.has_key?(:'Address_Business_State')
428
+ self.address_business_state = attributes[:'Address_Business_State']
429
+ end
430
+
431
+ if attributes.has_key?(:'Address_Business_ZipCode')
432
+ self.address_business_zip_code = attributes[:'Address_Business_ZipCode']
433
+ end
434
+
435
+ if attributes.has_key?(:'Address_Other_City')
436
+ self.address_other_city = attributes[:'Address_Other_City']
437
+ end
438
+
439
+ if attributes.has_key?(:'Address_Other_Country')
440
+ self.address_other_country = attributes[:'Address_Other_Country']
441
+ end
442
+
443
+ if attributes.has_key?(:'Address_Other_IsPrimary')
444
+ self.address_other_is_primary = attributes[:'Address_Other_IsPrimary']
445
+ end
446
+
447
+ if attributes.has_key?(:'Address_Other_Line1')
448
+ self.address_other_line1 = attributes[:'Address_Other_Line1']
449
+ end
450
+
451
+ if attributes.has_key?(:'Address_Other_State')
452
+ self.address_other_state = attributes[:'Address_Other_State']
453
+ end
454
+
455
+ if attributes.has_key?(:'Address_Other_ZipCode')
456
+ self.address_other_zip_code = attributes[:'Address_Other_ZipCode']
457
+ end
458
+
459
+ if attributes.has_key?(:'BillRate')
460
+ self.bill_rate = attributes[:'BillRate']
461
+ end
462
+
463
+ if attributes.has_key?(:'Bonus')
464
+ self.bonus = attributes[:'Bonus']
465
+ end
466
+
467
+ if attributes.has_key?(:'Commission')
468
+ self.commission = attributes[:'Commission']
469
+ end
470
+
471
+ if attributes.has_key?(:'Company_Id')
472
+ self.company_id = attributes[:'Company_Id']
473
+ end
474
+
475
+ if attributes.has_key?(:'Company_Name')
476
+ self.company_name = attributes[:'Company_Name']
477
+ end
478
+
479
+ if attributes.has_key?(:'Compensation')
480
+ self.compensation = attributes[:'Compensation']
481
+ end
482
+
483
+ if attributes.has_key?(:'CompensationDetails')
484
+ self.compensation_details = attributes[:'CompensationDetails']
485
+ end
486
+
487
+ if attributes.has_key?(:'CustomField1')
488
+ self.custom_field1 = attributes[:'CustomField1']
489
+ end
490
+
491
+ if attributes.has_key?(:'CustomField10')
492
+ self.custom_field10 = attributes[:'CustomField10']
493
+ end
494
+
495
+ if attributes.has_key?(:'CustomField11')
496
+ self.custom_field11 = attributes[:'CustomField11']
497
+ end
498
+
499
+ if attributes.has_key?(:'CustomField12')
500
+ self.custom_field12 = attributes[:'CustomField12']
501
+ end
502
+
503
+ if attributes.has_key?(:'CustomField13')
504
+ self.custom_field13 = attributes[:'CustomField13']
505
+ end
506
+
507
+ if attributes.has_key?(:'CustomField14')
508
+ self.custom_field14 = attributes[:'CustomField14']
509
+ end
510
+
511
+ if attributes.has_key?(:'CustomField15')
512
+ self.custom_field15 = attributes[:'CustomField15']
513
+ end
514
+
515
+ if attributes.has_key?(:'CustomField16')
516
+ self.custom_field16 = attributes[:'CustomField16']
517
+ end
518
+
519
+ if attributes.has_key?(:'CustomField17')
520
+ self.custom_field17 = attributes[:'CustomField17']
521
+ end
522
+
523
+ if attributes.has_key?(:'CustomField18')
524
+ self.custom_field18 = attributes[:'CustomField18']
525
+ end
526
+
527
+ if attributes.has_key?(:'CustomField19')
528
+ self.custom_field19 = attributes[:'CustomField19']
529
+ end
530
+
531
+ if attributes.has_key?(:'CustomField2')
532
+ self.custom_field2 = attributes[:'CustomField2']
533
+ end
534
+
535
+ if attributes.has_key?(:'CustomField20')
536
+ self.custom_field20 = attributes[:'CustomField20']
537
+ end
538
+
539
+ if attributes.has_key?(:'CustomField21')
540
+ self.custom_field21 = attributes[:'CustomField21']
541
+ end
542
+
543
+ if attributes.has_key?(:'CustomField22')
544
+ self.custom_field22 = attributes[:'CustomField22']
545
+ end
546
+
547
+ if attributes.has_key?(:'CustomField23')
548
+ self.custom_field23 = attributes[:'CustomField23']
549
+ end
550
+
551
+ if attributes.has_key?(:'CustomField24')
552
+ self.custom_field24 = attributes[:'CustomField24']
553
+ end
554
+
555
+ if attributes.has_key?(:'CustomField25')
556
+ self.custom_field25 = attributes[:'CustomField25']
557
+ end
558
+
559
+ if attributes.has_key?(:'CustomField26')
560
+ self.custom_field26 = attributes[:'CustomField26']
561
+ end
562
+
563
+ if attributes.has_key?(:'CustomField27')
564
+ self.custom_field27 = attributes[:'CustomField27']
565
+ end
566
+
567
+ if attributes.has_key?(:'CustomField28')
568
+ self.custom_field28 = attributes[:'CustomField28']
569
+ end
570
+
571
+ if attributes.has_key?(:'CustomField29')
572
+ self.custom_field29 = attributes[:'CustomField29']
573
+ end
574
+
575
+ if attributes.has_key?(:'CustomField3')
576
+ self.custom_field3 = attributes[:'CustomField3']
577
+ end
578
+
579
+ if attributes.has_key?(:'CustomField30')
580
+ self.custom_field30 = attributes[:'CustomField30']
581
+ end
582
+
583
+ if attributes.has_key?(:'CustomField4')
584
+ self.custom_field4 = attributes[:'CustomField4']
585
+ end
586
+
587
+ if attributes.has_key?(:'CustomField5')
588
+ self.custom_field5 = attributes[:'CustomField5']
589
+ end
590
+
591
+ if attributes.has_key?(:'CustomField6')
592
+ self.custom_field6 = attributes[:'CustomField6']
593
+ end
594
+
595
+ if attributes.has_key?(:'CustomField7')
596
+ self.custom_field7 = attributes[:'CustomField7']
597
+ end
598
+
599
+ if attributes.has_key?(:'CustomField8')
600
+ self.custom_field8 = attributes[:'CustomField8']
601
+ end
602
+
603
+ if attributes.has_key?(:'CustomField9')
604
+ self.custom_field9 = attributes[:'CustomField9']
605
+ end
606
+
607
+ if attributes.has_key?(:'Description')
608
+ self.description = attributes[:'Description']
609
+ end
610
+
611
+ if attributes.has_key?(:'Discount')
612
+ self.discount = attributes[:'Discount']
613
+ end
614
+
615
+ if attributes.has_key?(:'EstimatedCloseDate')
616
+ self.estimated_close_date = attributes[:'EstimatedCloseDate']
617
+ end
618
+
619
+ if attributes.has_key?(:'ExternalPrimaryKey')
620
+ self.external_primary_key = attributes[:'ExternalPrimaryKey']
621
+ end
622
+
623
+ if attributes.has_key?(:'Fee')
624
+ self.fee = attributes[:'Fee']
625
+ end
626
+
627
+ if attributes.has_key?(:'FeePercent')
628
+ self.fee_percent = attributes[:'FeePercent']
629
+ end
630
+
631
+ if attributes.has_key?(:'HourlyRate')
632
+ self.hourly_rate = attributes[:'HourlyRate']
633
+ end
634
+
635
+ if attributes.has_key?(:'IsLead')
636
+ self.is_lead = attributes[:'IsLead']
637
+ end
638
+
639
+ if attributes.has_key?(:'IsOnHold')
640
+ self.is_on_hold = attributes[:'IsOnHold']
641
+ end
642
+
643
+ if attributes.has_key?(:'JobTitle_Id')
644
+ self.job_title_id = attributes[:'JobTitle_Id']
645
+ end
646
+
647
+ if attributes.has_key?(:'JobTitle_Name')
648
+ self.job_title_name = attributes[:'JobTitle_Name']
649
+ end
650
+
651
+ if attributes.has_key?(:'JobTypes')
652
+ if (value = attributes[:'JobTypes']).is_a?(Array)
653
+ self.job_types = value
654
+ end
655
+ end
656
+
657
+ if attributes.has_key?(:'LeadSource_Id')
658
+ self.lead_source_id = attributes[:'LeadSource_Id']
659
+ end
660
+
661
+ if attributes.has_key?(:'LeadSource_Name')
662
+ self.lead_source_name = attributes[:'LeadSource_Name']
663
+ end
664
+
665
+ if attributes.has_key?(:'Margin')
666
+ self.margin = attributes[:'Margin']
667
+ end
668
+
669
+ if attributes.has_key?(:'Name')
670
+ self.name = attributes[:'Name']
671
+ end
672
+
673
+ if attributes.has_key?(:'NumberOfOpenings')
674
+ self.number_of_openings = attributes[:'NumberOfOpenings']
675
+ end
676
+
677
+ if attributes.has_key?(:'OpportunityType_Id')
678
+ self.opportunity_type_id = attributes[:'OpportunityType_Id']
679
+ end
680
+
681
+ if attributes.has_key?(:'OpportunityType_Name')
682
+ self.opportunity_type_name = attributes[:'OpportunityType_Name']
683
+ end
684
+
685
+ if attributes.has_key?(:'ParentJob_Id')
686
+ self.parent_job_id = attributes[:'ParentJob_Id']
687
+ end
688
+
689
+ if attributes.has_key?(:'ParentJob_Name')
690
+ self.parent_job_name = attributes[:'ParentJob_Name']
691
+ end
692
+
693
+ if attributes.has_key?(:'PayRate')
694
+ self.pay_rate = attributes[:'PayRate']
695
+ end
696
+
697
+ if attributes.has_key?(:'PotentialValue')
698
+ self.potential_value = attributes[:'PotentialValue']
699
+ end
700
+
701
+ if attributes.has_key?(:'Priority_Id')
702
+ self.priority_id = attributes[:'Priority_Id']
703
+ end
704
+
705
+ if attributes.has_key?(:'Priority_Name')
706
+ self.priority_name = attributes[:'Priority_Name']
707
+ end
708
+
709
+ if attributes.has_key?(:'Probability')
710
+ self.probability = attributes[:'Probability']
711
+ end
712
+
713
+ if attributes.has_key?(:'Salary')
714
+ self.salary = attributes[:'Salary']
715
+ end
716
+
717
+ if attributes.has_key?(:'StartDate')
718
+ self.start_date = attributes[:'StartDate']
719
+ end
720
+
721
+ if attributes.has_key?(:'Tags')
722
+ if (value = attributes[:'Tags']).is_a?(Hash)
723
+ self.tags = value
724
+ end
725
+ end
726
+
727
+ if attributes.has_key?(:'TotalHours')
728
+ self.total_hours = attributes[:'TotalHours']
729
+ end
730
+
731
+ if attributes.has_key?(:'Website_Description')
732
+ self.website_description = attributes[:'Website_Description']
733
+ end
734
+
735
+ if attributes.has_key?(:'Website_Description_IsPrimary')
736
+ self.website_description_is_primary = attributes[:'Website_Description_IsPrimary']
737
+ end
738
+
739
+ if attributes.has_key?(:'Website_Other')
740
+ self.website_other = attributes[:'Website_Other']
741
+ end
742
+
743
+ if attributes.has_key?(:'Website_Other_IsPrimary')
744
+ self.website_other_is_primary = attributes[:'Website_Other_IsPrimary']
745
+ end
746
+
747
+ end
748
+
749
+ # Show invalid properties with the reasons. Usually used together with valid?
750
+ # @return Array for valid properties with the reasons
751
+ def list_invalid_properties
752
+ invalid_properties = Array.new
753
+ return invalid_properties
754
+ end
755
+
756
+ # Check to see if the all the properties in the model are valid
757
+ # @return true if the model is valid
758
+ def valid?
759
+ return true
760
+ end
761
+
762
+ # Checks equality by comparing each attribute.
763
+ # @param [Object] Object to be compared
764
+ def ==(o)
765
+ return true if self.equal?(o)
766
+ self.class == o.class &&
767
+ actual_value == o.actual_value &&
768
+ additional_contact_client_first_name == o.additional_contact_client_first_name &&
769
+ additional_contact_client_id == o.additional_contact_client_id &&
770
+ additional_contact_client_is_primary == o.additional_contact_client_is_primary &&
771
+ additional_contact_client_last_name == o.additional_contact_client_last_name &&
772
+ address_business_city == o.address_business_city &&
773
+ address_business_country == o.address_business_country &&
774
+ address_business_is_primary == o.address_business_is_primary &&
775
+ address_business_line1 == o.address_business_line1 &&
776
+ address_business_state == o.address_business_state &&
777
+ address_business_zip_code == o.address_business_zip_code &&
778
+ address_other_city == o.address_other_city &&
779
+ address_other_country == o.address_other_country &&
780
+ address_other_is_primary == o.address_other_is_primary &&
781
+ address_other_line1 == o.address_other_line1 &&
782
+ address_other_state == o.address_other_state &&
783
+ address_other_zip_code == o.address_other_zip_code &&
784
+ bill_rate == o.bill_rate &&
785
+ bonus == o.bonus &&
786
+ commission == o.commission &&
787
+ company_id == o.company_id &&
788
+ company_name == o.company_name &&
789
+ compensation == o.compensation &&
790
+ compensation_details == o.compensation_details &&
791
+ custom_field1 == o.custom_field1 &&
792
+ custom_field10 == o.custom_field10 &&
793
+ custom_field11 == o.custom_field11 &&
794
+ custom_field12 == o.custom_field12 &&
795
+ custom_field13 == o.custom_field13 &&
796
+ custom_field14 == o.custom_field14 &&
797
+ custom_field15 == o.custom_field15 &&
798
+ custom_field16 == o.custom_field16 &&
799
+ custom_field17 == o.custom_field17 &&
800
+ custom_field18 == o.custom_field18 &&
801
+ custom_field19 == o.custom_field19 &&
802
+ custom_field2 == o.custom_field2 &&
803
+ custom_field20 == o.custom_field20 &&
804
+ custom_field21 == o.custom_field21 &&
805
+ custom_field22 == o.custom_field22 &&
806
+ custom_field23 == o.custom_field23 &&
807
+ custom_field24 == o.custom_field24 &&
808
+ custom_field25 == o.custom_field25 &&
809
+ custom_field26 == o.custom_field26 &&
810
+ custom_field27 == o.custom_field27 &&
811
+ custom_field28 == o.custom_field28 &&
812
+ custom_field29 == o.custom_field29 &&
813
+ custom_field3 == o.custom_field3 &&
814
+ custom_field30 == o.custom_field30 &&
815
+ custom_field4 == o.custom_field4 &&
816
+ custom_field5 == o.custom_field5 &&
817
+ custom_field6 == o.custom_field6 &&
818
+ custom_field7 == o.custom_field7 &&
819
+ custom_field8 == o.custom_field8 &&
820
+ custom_field9 == o.custom_field9 &&
821
+ description == o.description &&
822
+ discount == o.discount &&
823
+ estimated_close_date == o.estimated_close_date &&
824
+ external_primary_key == o.external_primary_key &&
825
+ fee == o.fee &&
826
+ fee_percent == o.fee_percent &&
827
+ hourly_rate == o.hourly_rate &&
828
+ is_lead == o.is_lead &&
829
+ is_on_hold == o.is_on_hold &&
830
+ job_title_id == o.job_title_id &&
831
+ job_title_name == o.job_title_name &&
832
+ job_types == o.job_types &&
833
+ lead_source_id == o.lead_source_id &&
834
+ lead_source_name == o.lead_source_name &&
835
+ margin == o.margin &&
836
+ name == o.name &&
837
+ number_of_openings == o.number_of_openings &&
838
+ opportunity_type_id == o.opportunity_type_id &&
839
+ opportunity_type_name == o.opportunity_type_name &&
840
+ parent_job_id == o.parent_job_id &&
841
+ parent_job_name == o.parent_job_name &&
842
+ pay_rate == o.pay_rate &&
843
+ potential_value == o.potential_value &&
844
+ priority_id == o.priority_id &&
845
+ priority_name == o.priority_name &&
846
+ probability == o.probability &&
847
+ salary == o.salary &&
848
+ start_date == o.start_date &&
849
+ tags == o.tags &&
850
+ total_hours == o.total_hours &&
851
+ website_description == o.website_description &&
852
+ website_description_is_primary == o.website_description_is_primary &&
853
+ website_other == o.website_other &&
854
+ website_other_is_primary == o.website_other_is_primary
855
+ end
856
+
857
+ # @see the `==` method
858
+ # @param [Object] Object to be compared
859
+ def eql?(o)
860
+ self == o
861
+ end
862
+
863
+ # Calculates hash code according to all attributes.
864
+ # @return [Fixnum] Hash code
865
+ def hash
866
+ [actual_value, additional_contact_client_first_name, additional_contact_client_id, additional_contact_client_is_primary, additional_contact_client_last_name, address_business_city, address_business_country, address_business_is_primary, address_business_line1, address_business_state, address_business_zip_code, address_other_city, address_other_country, address_other_is_primary, address_other_line1, address_other_state, address_other_zip_code, bill_rate, bonus, commission, company_id, company_name, compensation, compensation_details, custom_field1, custom_field10, custom_field11, custom_field12, custom_field13, custom_field14, custom_field15, custom_field16, custom_field17, custom_field18, custom_field19, custom_field2, custom_field20, custom_field21, custom_field22, custom_field23, custom_field24, custom_field25, custom_field26, custom_field27, custom_field28, custom_field29, custom_field3, custom_field30, custom_field4, custom_field5, custom_field6, custom_field7, custom_field8, custom_field9, description, discount, estimated_close_date, external_primary_key, fee, fee_percent, hourly_rate, is_lead, is_on_hold, job_title_id, job_title_name, job_types, lead_source_id, lead_source_name, margin, name, number_of_openings, opportunity_type_id, opportunity_type_name, parent_job_id, parent_job_name, pay_rate, potential_value, priority_id, priority_name, probability, salary, start_date, tags, total_hours, website_description, website_description_is_primary, website_other, website_other_is_primary].hash
867
+ end
868
+
869
+ # Builds the object from hash
870
+ # @param [Hash] attributes Model attributes in the form of hash
871
+ # @return [Object] Returns the model itself
872
+ def build_from_hash(attributes)
873
+ return nil unless attributes.is_a?(Hash)
874
+ self.class.swagger_types.each_pair do |key, type|
875
+ if type =~ /\AArray<(.*)>/i
876
+ # check to ensure the input is an array given that the the attribute
877
+ # is documented as an array but the input is not
878
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
879
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
880
+ end
881
+ elsif !attributes[self.class.attribute_map[key]].nil?
882
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
883
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
884
+ end
885
+
886
+ self
887
+ end
888
+
889
+ # Deserializes the data based on type
890
+ # @param string type Data type
891
+ # @param string value Value to be deserialized
892
+ # @return [Object] Deserialized data
893
+ def _deserialize(type, value)
894
+ case type.to_sym
895
+ when :DateTime
896
+ DateTime.parse(value)
897
+ when :Date
898
+ Date.parse(value)
899
+ when :String
900
+ value.to_s
901
+ when :Integer
902
+ value.to_i
903
+ when :Float
904
+ value.to_f
905
+ when :BOOLEAN
906
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
907
+ true
908
+ else
909
+ false
910
+ end
911
+ when :Object
912
+ # generic object (usually a Hash), return directly
913
+ value
914
+ when /\AArray<(?<inner_type>.+)>\z/
915
+ inner_type = Regexp.last_match[:inner_type]
916
+ value.map { |v| _deserialize(inner_type, v) }
917
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
918
+ k_type = Regexp.last_match[:k_type]
919
+ v_type = Regexp.last_match[:v_type]
920
+ {}.tap do |hash|
921
+ value.each do |k, v|
922
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
923
+ end
924
+ end
925
+ else # model
926
+ temp_model = CrelateClient.const_get(type).new
927
+ temp_model.build_from_hash(value)
928
+ end
929
+ end
930
+
931
+ # Returns the string representation of the object
932
+ # @return [String] String presentation of the object
933
+ def to_s
934
+ to_hash.to_s
935
+ end
936
+
937
+ # to_body is an alias to to_hash (backward compatibility)
938
+ # @return [Hash] Returns the object in the form of hash
939
+ def to_body
940
+ to_hash
941
+ end
942
+
943
+ # Returns the object in the form of hash
944
+ # @return [Hash] Returns the object in the form of hash
945
+ def to_hash
946
+ hash = {}
947
+ self.class.attribute_map.each_pair do |attr, param|
948
+ value = self.send(attr)
949
+ next if value.nil?
950
+ hash[param] = _to_hash(value)
951
+ end
952
+ hash
953
+ end
954
+
955
+ # Outputs non-array value in the form of hash
956
+ # For object, use to_hash. Otherwise, just return the value
957
+ # @param [Object] value Any valid value
958
+ # @return [Hash] Returns the value in the form of hash
959
+ def _to_hash(value)
960
+ if value.is_a?(Array)
961
+ value.compact.map{ |v| _to_hash(v) }
962
+ elsif value.is_a?(Hash)
963
+ {}.tap do |hash|
964
+ value.each { |k, v| hash[k] = _to_hash(v) }
965
+ end
966
+ elsif value.respond_to? :to_hash
967
+ value.to_hash
968
+ else
969
+ value
970
+ end
971
+ end
972
+
973
+ end
974
+
975
+ end