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,188 @@
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 ComplianceSettingsPayload
18
+ attr_accessor :consent_message
19
+
20
+
21
+ # Attribute mapping from ruby-style variable name to JSON key.
22
+ def self.attribute_map
23
+ {
24
+ :'consent_message' => :'consentMessage'
25
+ }
26
+ end
27
+
28
+ # Attribute type mapping.
29
+ def self.swagger_types
30
+ {
31
+ :'consent_message' => :'String'
32
+ }
33
+ end
34
+
35
+ # Initializes the object
36
+ # @param [Hash] attributes Model attributes in the form of hash
37
+ def initialize(attributes = {})
38
+ return unless attributes.is_a?(Hash)
39
+
40
+ # convert string to symbol for hash key
41
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
42
+
43
+ if attributes.has_key?(:'consentMessage')
44
+ self.consent_message = attributes[:'consentMessage']
45
+ end
46
+
47
+ end
48
+
49
+ # Show invalid properties with the reasons. Usually used together with valid?
50
+ # @return Array for valid properties with the reasons
51
+ def list_invalid_properties
52
+ invalid_properties = Array.new
53
+ return invalid_properties
54
+ end
55
+
56
+ # Check to see if the all the properties in the model are valid
57
+ # @return true if the model is valid
58
+ def valid?
59
+ return true
60
+ end
61
+
62
+ # Checks equality by comparing each attribute.
63
+ # @param [Object] Object to be compared
64
+ def ==(o)
65
+ return true if self.equal?(o)
66
+ self.class == o.class &&
67
+ consent_message == o.consent_message
68
+ end
69
+
70
+ # @see the `==` method
71
+ # @param [Object] Object to be compared
72
+ def eql?(o)
73
+ self == o
74
+ end
75
+
76
+ # Calculates hash code according to all attributes.
77
+ # @return [Fixnum] Hash code
78
+ def hash
79
+ [consent_message].hash
80
+ end
81
+
82
+ # Builds the object from hash
83
+ # @param [Hash] attributes Model attributes in the form of hash
84
+ # @return [Object] Returns the model itself
85
+ def build_from_hash(attributes)
86
+ return nil unless attributes.is_a?(Hash)
87
+ self.class.swagger_types.each_pair do |key, type|
88
+ if type =~ /\AArray<(.*)>/i
89
+ # check to ensure the input is an array given that the the attribute
90
+ # is documented as an array but the input is not
91
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
92
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
93
+ end
94
+ elsif !attributes[self.class.attribute_map[key]].nil?
95
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
96
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
97
+ end
98
+
99
+ self
100
+ end
101
+
102
+ # Deserializes the data based on type
103
+ # @param string type Data type
104
+ # @param string value Value to be deserialized
105
+ # @return [Object] Deserialized data
106
+ def _deserialize(type, value)
107
+ case type.to_sym
108
+ when :DateTime
109
+ DateTime.parse(value)
110
+ when :Date
111
+ Date.parse(value)
112
+ when :String
113
+ value.to_s
114
+ when :Integer
115
+ value.to_i
116
+ when :Float
117
+ value.to_f
118
+ when :BOOLEAN
119
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
120
+ true
121
+ else
122
+ false
123
+ end
124
+ when :Object
125
+ # generic object (usually a Hash), return directly
126
+ value
127
+ when /\AArray<(?<inner_type>.+)>\z/
128
+ inner_type = Regexp.last_match[:inner_type]
129
+ value.map { |v| _deserialize(inner_type, v) }
130
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
131
+ k_type = Regexp.last_match[:k_type]
132
+ v_type = Regexp.last_match[:v_type]
133
+ {}.tap do |hash|
134
+ value.each do |k, v|
135
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
136
+ end
137
+ end
138
+ else # model
139
+ temp_model = CrelateClient.const_get(type).new
140
+ temp_model.build_from_hash(value)
141
+ end
142
+ end
143
+
144
+ # Returns the string representation of the object
145
+ # @return [String] String presentation of the object
146
+ def to_s
147
+ to_hash.to_s
148
+ end
149
+
150
+ # to_body is an alias to to_hash (backward compatibility)
151
+ # @return [Hash] Returns the object in the form of hash
152
+ def to_body
153
+ to_hash
154
+ end
155
+
156
+ # Returns the object in the form of hash
157
+ # @return [Hash] Returns the object in the form of hash
158
+ def to_hash
159
+ hash = {}
160
+ self.class.attribute_map.each_pair do |attr, param|
161
+ value = self.send(attr)
162
+ next if value.nil?
163
+ hash[param] = _to_hash(value)
164
+ end
165
+ hash
166
+ end
167
+
168
+ # Outputs non-array value in the form of hash
169
+ # For object, use to_hash. Otherwise, just return the value
170
+ # @param [Object] value Any valid value
171
+ # @return [Hash] Returns the value in the form of hash
172
+ def _to_hash(value)
173
+ if value.is_a?(Array)
174
+ value.compact.map{ |v| _to_hash(v) }
175
+ elsif value.is_a?(Hash)
176
+ {}.tap do |hash|
177
+ value.each { |k, v| hash[k] = _to_hash(v) }
178
+ end
179
+ elsif value.respond_to? :to_hash
180
+ value.to_hash
181
+ else
182
+ value
183
+ end
184
+ end
185
+
186
+ end
187
+
188
+ end
@@ -0,0 +1,197 @@
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 ConsentRequestPayload
18
+ attr_accessor :contact_id
19
+
20
+ attr_accessor :primary_email
21
+
22
+
23
+ # Attribute mapping from ruby-style variable name to JSON key.
24
+ def self.attribute_map
25
+ {
26
+ :'contact_id' => :'contactId',
27
+ :'primary_email' => :'primaryEmail'
28
+ }
29
+ end
30
+
31
+ # Attribute type mapping.
32
+ def self.swagger_types
33
+ {
34
+ :'contact_id' => :'String',
35
+ :'primary_email' => :'String'
36
+ }
37
+ end
38
+
39
+ # Initializes the object
40
+ # @param [Hash] attributes Model attributes in the form of hash
41
+ def initialize(attributes = {})
42
+ return unless attributes.is_a?(Hash)
43
+
44
+ # convert string to symbol for hash key
45
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
46
+
47
+ if attributes.has_key?(:'contactId')
48
+ self.contact_id = attributes[:'contactId']
49
+ end
50
+
51
+ if attributes.has_key?(:'primaryEmail')
52
+ self.primary_email = attributes[:'primaryEmail']
53
+ end
54
+
55
+ end
56
+
57
+ # Show invalid properties with the reasons. Usually used together with valid?
58
+ # @return Array for valid properties with the reasons
59
+ def list_invalid_properties
60
+ invalid_properties = Array.new
61
+ return invalid_properties
62
+ end
63
+
64
+ # Check to see if the all the properties in the model are valid
65
+ # @return true if the model is valid
66
+ def valid?
67
+ return true
68
+ end
69
+
70
+ # Checks equality by comparing each attribute.
71
+ # @param [Object] Object to be compared
72
+ def ==(o)
73
+ return true if self.equal?(o)
74
+ self.class == o.class &&
75
+ contact_id == o.contact_id &&
76
+ primary_email == o.primary_email
77
+ end
78
+
79
+ # @see the `==` method
80
+ # @param [Object] Object to be compared
81
+ def eql?(o)
82
+ self == o
83
+ end
84
+
85
+ # Calculates hash code according to all attributes.
86
+ # @return [Fixnum] Hash code
87
+ def hash
88
+ [contact_id, primary_email].hash
89
+ end
90
+
91
+ # Builds the object from hash
92
+ # @param [Hash] attributes Model attributes in the form of hash
93
+ # @return [Object] Returns the model itself
94
+ def build_from_hash(attributes)
95
+ return nil unless attributes.is_a?(Hash)
96
+ self.class.swagger_types.each_pair do |key, type|
97
+ if type =~ /\AArray<(.*)>/i
98
+ # check to ensure the input is an array given that the the attribute
99
+ # is documented as an array but the input is not
100
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
101
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
102
+ end
103
+ elsif !attributes[self.class.attribute_map[key]].nil?
104
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
105
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
106
+ end
107
+
108
+ self
109
+ end
110
+
111
+ # Deserializes the data based on type
112
+ # @param string type Data type
113
+ # @param string value Value to be deserialized
114
+ # @return [Object] Deserialized data
115
+ def _deserialize(type, value)
116
+ case type.to_sym
117
+ when :DateTime
118
+ DateTime.parse(value)
119
+ when :Date
120
+ Date.parse(value)
121
+ when :String
122
+ value.to_s
123
+ when :Integer
124
+ value.to_i
125
+ when :Float
126
+ value.to_f
127
+ when :BOOLEAN
128
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
129
+ true
130
+ else
131
+ false
132
+ end
133
+ when :Object
134
+ # generic object (usually a Hash), return directly
135
+ value
136
+ when /\AArray<(?<inner_type>.+)>\z/
137
+ inner_type = Regexp.last_match[:inner_type]
138
+ value.map { |v| _deserialize(inner_type, v) }
139
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
140
+ k_type = Regexp.last_match[:k_type]
141
+ v_type = Regexp.last_match[:v_type]
142
+ {}.tap do |hash|
143
+ value.each do |k, v|
144
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
145
+ end
146
+ end
147
+ else # model
148
+ temp_model = CrelateClient.const_get(type).new
149
+ temp_model.build_from_hash(value)
150
+ end
151
+ end
152
+
153
+ # Returns the string representation of the object
154
+ # @return [String] String presentation of the object
155
+ def to_s
156
+ to_hash.to_s
157
+ end
158
+
159
+ # to_body is an alias to to_hash (backward compatibility)
160
+ # @return [Hash] Returns the object in the form of hash
161
+ def to_body
162
+ to_hash
163
+ end
164
+
165
+ # Returns the object in the form of hash
166
+ # @return [Hash] Returns the object in the form of hash
167
+ def to_hash
168
+ hash = {}
169
+ self.class.attribute_map.each_pair do |attr, param|
170
+ value = self.send(attr)
171
+ next if value.nil?
172
+ hash[param] = _to_hash(value)
173
+ end
174
+ hash
175
+ end
176
+
177
+ # Outputs non-array value in the form of hash
178
+ # For object, use to_hash. Otherwise, just return the value
179
+ # @param [Object] value Any valid value
180
+ # @return [Hash] Returns the value in the form of hash
181
+ def _to_hash(value)
182
+ if value.is_a?(Array)
183
+ value.compact.map{ |v| _to_hash(v) }
184
+ elsif value.is_a?(Hash)
185
+ {}.tap do |hash|
186
+ value.each { |k, v| hash[k] = _to_hash(v) }
187
+ end
188
+ elsif value.respond_to? :to_hash
189
+ value.to_hash
190
+ else
191
+ value
192
+ end
193
+ end
194
+
195
+ end
196
+
197
+ end
@@ -0,0 +1,279 @@
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 CrelateAction
18
+ attr_accessor :action_type
19
+
20
+ attr_accessor :sql_statement
21
+
22
+ attr_accessor :sql_parameters
23
+
24
+ attr_accessor :entity
25
+
26
+ attr_accessor :is_temp_id
27
+
28
+ attr_accessor :skip_dupe_detection
29
+
30
+ attr_accessor :disable_auto_created_or_modified_fields
31
+
32
+ class EnumAttributeValidator
33
+ attr_reader :datatype
34
+ attr_reader :allowable_values
35
+
36
+ def initialize(datatype, allowable_values)
37
+ @allowable_values = allowable_values.map do |value|
38
+ case datatype.to_s
39
+ when /Integer/i
40
+ value.to_i
41
+ when /Float/i
42
+ value.to_f
43
+ else
44
+ value
45
+ end
46
+ end
47
+ end
48
+
49
+ def valid?(value)
50
+ !value || allowable_values.include?(value)
51
+ end
52
+ end
53
+
54
+ # Attribute mapping from ruby-style variable name to JSON key.
55
+ def self.attribute_map
56
+ {
57
+ :'action_type' => :'ActionType',
58
+ :'sql_statement' => :'SqlStatement',
59
+ :'sql_parameters' => :'SqlParameters',
60
+ :'entity' => :'Entity',
61
+ :'is_temp_id' => :'IsTempId',
62
+ :'skip_dupe_detection' => :'SkipDupeDetection',
63
+ :'disable_auto_created_or_modified_fields' => :'DisableAutoCreatedOrModifiedFields'
64
+ }
65
+ end
66
+
67
+ # Attribute type mapping.
68
+ def self.swagger_types
69
+ {
70
+ :'action_type' => :'Integer',
71
+ :'sql_statement' => :'String',
72
+ :'sql_parameters' => :'Hash<String, Object>',
73
+ :'entity' => :'Hash<String, Object>',
74
+ :'is_temp_id' => :'BOOLEAN',
75
+ :'skip_dupe_detection' => :'BOOLEAN',
76
+ :'disable_auto_created_or_modified_fields' => :'BOOLEAN'
77
+ }
78
+ end
79
+
80
+ # Initializes the object
81
+ # @param [Hash] attributes Model attributes in the form of hash
82
+ def initialize(attributes = {})
83
+ return unless attributes.is_a?(Hash)
84
+
85
+ # convert string to symbol for hash key
86
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
87
+
88
+ if attributes.has_key?(:'ActionType')
89
+ self.action_type = attributes[:'ActionType']
90
+ end
91
+
92
+ if attributes.has_key?(:'SqlStatement')
93
+ self.sql_statement = attributes[:'SqlStatement']
94
+ end
95
+
96
+ if attributes.has_key?(:'SqlParameters')
97
+ if (value = attributes[:'SqlParameters']).is_a?(Hash)
98
+ self.sql_parameters = value
99
+ end
100
+ end
101
+
102
+ if attributes.has_key?(:'Entity')
103
+ if (value = attributes[:'Entity']).is_a?(Hash)
104
+ self.entity = value
105
+ end
106
+ end
107
+
108
+ if attributes.has_key?(:'IsTempId')
109
+ self.is_temp_id = attributes[:'IsTempId']
110
+ end
111
+
112
+ if attributes.has_key?(:'SkipDupeDetection')
113
+ self.skip_dupe_detection = attributes[:'SkipDupeDetection']
114
+ end
115
+
116
+ if attributes.has_key?(:'DisableAutoCreatedOrModifiedFields')
117
+ self.disable_auto_created_or_modified_fields = attributes[:'DisableAutoCreatedOrModifiedFields']
118
+ end
119
+
120
+ end
121
+
122
+ # Show invalid properties with the reasons. Usually used together with valid?
123
+ # @return Array for valid properties with the reasons
124
+ def list_invalid_properties
125
+ invalid_properties = Array.new
126
+ return invalid_properties
127
+ end
128
+
129
+ # Check to see if the all the properties in the model are valid
130
+ # @return true if the model is valid
131
+ def valid?
132
+ action_type_validator = EnumAttributeValidator.new('Integer', ["0", "1", "2", "3"])
133
+ return false unless action_type_validator.valid?(@action_type)
134
+ return true
135
+ end
136
+
137
+ # Custom attribute writer method checking allowed values (enum).
138
+ # @param [Object] action_type Object to be assigned
139
+ def action_type=(action_type)
140
+ validator = EnumAttributeValidator.new('Integer', ["0", "1", "2", "3"])
141
+ unless validator.valid?(action_type)
142
+ fail ArgumentError, "invalid value for 'action_type', must be one of #{validator.allowable_values}."
143
+ end
144
+ @action_type = action_type
145
+ end
146
+
147
+ # Checks equality by comparing each attribute.
148
+ # @param [Object] Object to be compared
149
+ def ==(o)
150
+ return true if self.equal?(o)
151
+ self.class == o.class &&
152
+ action_type == o.action_type &&
153
+ sql_statement == o.sql_statement &&
154
+ sql_parameters == o.sql_parameters &&
155
+ entity == o.entity &&
156
+ is_temp_id == o.is_temp_id &&
157
+ skip_dupe_detection == o.skip_dupe_detection &&
158
+ disable_auto_created_or_modified_fields == o.disable_auto_created_or_modified_fields
159
+ end
160
+
161
+ # @see the `==` method
162
+ # @param [Object] Object to be compared
163
+ def eql?(o)
164
+ self == o
165
+ end
166
+
167
+ # Calculates hash code according to all attributes.
168
+ # @return [Fixnum] Hash code
169
+ def hash
170
+ [action_type, sql_statement, sql_parameters, entity, is_temp_id, skip_dupe_detection, disable_auto_created_or_modified_fields].hash
171
+ end
172
+
173
+ # Builds the object from hash
174
+ # @param [Hash] attributes Model attributes in the form of hash
175
+ # @return [Object] Returns the model itself
176
+ def build_from_hash(attributes)
177
+ return nil unless attributes.is_a?(Hash)
178
+ self.class.swagger_types.each_pair do |key, type|
179
+ if type =~ /\AArray<(.*)>/i
180
+ # check to ensure the input is an array given that the the attribute
181
+ # is documented as an array but the input is not
182
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
183
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
184
+ end
185
+ elsif !attributes[self.class.attribute_map[key]].nil?
186
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
187
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
188
+ end
189
+
190
+ self
191
+ end
192
+
193
+ # Deserializes the data based on type
194
+ # @param string type Data type
195
+ # @param string value Value to be deserialized
196
+ # @return [Object] Deserialized data
197
+ def _deserialize(type, value)
198
+ case type.to_sym
199
+ when :DateTime
200
+ DateTime.parse(value)
201
+ when :Date
202
+ Date.parse(value)
203
+ when :String
204
+ value.to_s
205
+ when :Integer
206
+ value.to_i
207
+ when :Float
208
+ value.to_f
209
+ when :BOOLEAN
210
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
211
+ true
212
+ else
213
+ false
214
+ end
215
+ when :Object
216
+ # generic object (usually a Hash), return directly
217
+ value
218
+ when /\AArray<(?<inner_type>.+)>\z/
219
+ inner_type = Regexp.last_match[:inner_type]
220
+ value.map { |v| _deserialize(inner_type, v) }
221
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
222
+ k_type = Regexp.last_match[:k_type]
223
+ v_type = Regexp.last_match[:v_type]
224
+ {}.tap do |hash|
225
+ value.each do |k, v|
226
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
227
+ end
228
+ end
229
+ else # model
230
+ temp_model = CrelateClient.const_get(type).new
231
+ temp_model.build_from_hash(value)
232
+ end
233
+ end
234
+
235
+ # Returns the string representation of the object
236
+ # @return [String] String presentation of the object
237
+ def to_s
238
+ to_hash.to_s
239
+ end
240
+
241
+ # to_body is an alias to to_hash (backward compatibility)
242
+ # @return [Hash] Returns the object in the form of hash
243
+ def to_body
244
+ to_hash
245
+ end
246
+
247
+ # Returns the object in the form of hash
248
+ # @return [Hash] Returns the object in the form of hash
249
+ def to_hash
250
+ hash = {}
251
+ self.class.attribute_map.each_pair do |attr, param|
252
+ value = self.send(attr)
253
+ next if value.nil?
254
+ hash[param] = _to_hash(value)
255
+ end
256
+ hash
257
+ end
258
+
259
+ # Outputs non-array value in the form of hash
260
+ # For object, use to_hash. Otherwise, just return the value
261
+ # @param [Object] value Any valid value
262
+ # @return [Hash] Returns the value in the form of hash
263
+ def _to_hash(value)
264
+ if value.is_a?(Array)
265
+ value.compact.map{ |v| _to_hash(v) }
266
+ elsif value.is_a?(Hash)
267
+ {}.tap do |hash|
268
+ value.each { |k, v| hash[k] = _to_hash(v) }
269
+ end
270
+ elsif value.respond_to? :to_hash
271
+ value.to_hash
272
+ else
273
+ value
274
+ end
275
+ end
276
+
277
+ end
278
+
279
+ end