merge_ats_client 1.0.2 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (355) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +53 -17
  3. data/docs/AccountDetails.md +34 -0
  4. data/docs/AccountDetailsAndActions.md +34 -0
  5. data/docs/AccountDetailsAndActionsIntegration.md +32 -0
  6. data/docs/AccountDetailsAndActionsStatusEnum.md +15 -0
  7. data/docs/AccountDetailsApi.md +79 -0
  8. data/docs/AccountIntegration.md +4 -4
  9. data/docs/AccountTokenApi.md +2 -2
  10. data/docs/ActivitiesApi.md +6 -4
  11. data/docs/Activity.md +7 -5
  12. data/docs/Application.md +12 -8
  13. data/docs/ApplicationEndpointRequest.md +20 -0
  14. data/docs/ApplicationRequest.md +16 -8
  15. data/docs/ApplicationResponse.md +24 -0
  16. data/docs/ApplicationsApi.md +98 -18
  17. data/docs/Attachment.md +3 -1
  18. data/docs/AttachmentEndpointRequest.md +20 -0
  19. data/docs/AttachmentRequest.md +5 -1
  20. data/docs/AttachmentResponse.md +24 -0
  21. data/docs/AttachmentsApi.md +93 -15
  22. data/docs/AvailableActionsApi.md +2 -2
  23. data/docs/Candidate.md +11 -7
  24. data/docs/CandidateEndpointRequest.md +20 -0
  25. data/docs/CandidateRequest.md +15 -7
  26. data/docs/CandidateResponse.md +24 -0
  27. data/docs/CandidatesApi.md +171 -17
  28. data/docs/CategoriesEnum.md +15 -0
  29. data/docs/CategoryEnum.md +15 -0
  30. data/docs/DataPassthroughRequest.md +8 -4
  31. data/docs/DebugModeLog.md +22 -0
  32. data/docs/DebugModelLogSummary.md +22 -0
  33. data/docs/DeleteAccountApi.md +78 -0
  34. data/docs/Department.md +3 -1
  35. data/docs/DepartmentsApi.md +6 -4
  36. data/docs/EEOC.md +5 -3
  37. data/docs/EeocsApi.md +6 -4
  38. data/docs/EmailAddress.md +1 -1
  39. data/docs/EmailAddressRequest.md +1 -1
  40. data/docs/EncodingEnum.md +15 -0
  41. data/docs/EndUserDetailsRequest.md +5 -3
  42. data/docs/ErrorValidationProblem.md +24 -0
  43. data/docs/ForceResyncApi.md +79 -0
  44. data/docs/GenerateKeyApi.md +2 -2
  45. data/docs/IgnoreCommonModel.md +20 -0
  46. data/docs/IgnoreCommonModelRequest.md +20 -0
  47. data/docs/InterviewsApi.md +6 -84
  48. data/docs/Issue.md +30 -0
  49. data/docs/IssueStatusEnum.md +15 -0
  50. data/docs/IssuesApi.md +177 -0
  51. data/docs/Job.md +13 -7
  52. data/docs/JobInterviewStage.md +4 -2
  53. data/docs/JobInterviewStagesApi.md +8 -6
  54. data/docs/JobsApi.md +9 -5
  55. data/docs/LinkTokenApi.md +3 -3
  56. data/docs/LinkedAccountStatus.md +20 -0
  57. data/docs/LinkedAccountsApi.md +103 -0
  58. data/docs/MetaResponse.md +24 -0
  59. data/docs/MultipartFormFieldRequest.md +26 -0
  60. data/docs/Offer.md +9 -7
  61. data/docs/OffersApi.md +6 -4
  62. data/docs/Office.md +3 -1
  63. data/docs/OfficesApi.md +6 -4
  64. data/docs/PaginatedAccountDetailsAndActionsList.md +22 -0
  65. data/docs/PaginatedIssueList.md +22 -0
  66. data/docs/PaginatedSyncStatusList.md +2 -2
  67. data/docs/PassthroughApi.md +2 -2
  68. data/docs/ReasonEnum.md +15 -0
  69. data/docs/RegenerateKeyApi.md +2 -2
  70. data/docs/RejectReason.md +3 -1
  71. data/docs/RejectReasonsApi.md +6 -4
  72. data/docs/RemoteUser.md +4 -2
  73. data/docs/RequestFormatEnum.md +15 -0
  74. data/docs/ScheduledInterview.md +11 -9
  75. data/docs/Scorecard.md +8 -6
  76. data/docs/ScorecardsApi.md +6 -84
  77. data/docs/SyncStatusApi.md +3 -75
  78. data/docs/Tag.md +3 -1
  79. data/docs/TagsApi.md +4 -2
  80. data/docs/UsersApi.md +7 -84
  81. data/docs/ValidationProblemSource.md +18 -0
  82. data/docs/WarningValidationProblem.md +24 -0
  83. data/docs/WebhookReceiver.md +22 -0
  84. data/docs/WebhookReceiverRequest.md +22 -0
  85. data/docs/WebhookReceiversApi.md +153 -0
  86. data/lib/merge_ats_client/api/account_details_api.rb +84 -0
  87. data/lib/merge_ats_client/api/account_token_api.rb +1 -1
  88. data/lib/merge_ats_client/api/activities_api.rb +4 -1
  89. data/lib/merge_ats_client/api/applications_api.rb +87 -16
  90. data/lib/merge_ats_client/api/attachments_api.rb +95 -16
  91. data/lib/merge_ats_client/api/available_actions_api.rb +1 -1
  92. data/lib/merge_ats_client/api/candidates_api.rb +163 -16
  93. data/lib/merge_ats_client/api/delete_account_api.rb +82 -0
  94. data/lib/merge_ats_client/api/departments_api.rb +4 -1
  95. data/lib/merge_ats_client/api/eeocs_api.rb +4 -1
  96. data/lib/merge_ats_client/api/force_resync_api.rb +84 -0
  97. data/lib/merge_ats_client/api/generate_key_api.rb +1 -1
  98. data/lib/merge_ats_client/api/interviews_api.rb +4 -77
  99. data/lib/merge_ats_client/api/issues_api.rb +181 -0
  100. data/lib/merge_ats_client/api/job_interview_stages_api.rb +6 -3
  101. data/lib/merge_ats_client/api/jobs_api.rb +10 -4
  102. data/lib/merge_ats_client/api/link_token_api.rb +1 -1
  103. data/lib/merge_ats_client/api/linked_accounts_api.rb +117 -0
  104. data/lib/merge_ats_client/api/offers_api.rb +4 -1
  105. data/lib/merge_ats_client/api/offices_api.rb +4 -1
  106. data/lib/merge_ats_client/api/passthrough_api.rb +1 -1
  107. data/lib/merge_ats_client/api/regenerate_key_api.rb +1 -1
  108. data/lib/merge_ats_client/api/reject_reasons_api.rb +4 -1
  109. data/lib/merge_ats_client/api/scorecards_api.rb +4 -77
  110. data/lib/merge_ats_client/api/sync_status_api.rb +5 -67
  111. data/lib/merge_ats_client/api/tags_api.rb +4 -1
  112. data/lib/merge_ats_client/api/users_api.rb +4 -77
  113. data/lib/merge_ats_client/api/webhook_receivers_api.rb +154 -0
  114. data/lib/merge_ats_client/api_client.rb +1 -1
  115. data/lib/merge_ats_client/api_error.rb +1 -1
  116. data/lib/merge_ats_client/configuration.rb +7 -5
  117. data/lib/merge_ats_client/models/access_role_enum.rb +1 -1
  118. data/lib/merge_ats_client/models/{end_user_details.rb → account_details.rb} +68 -66
  119. data/lib/merge_ats_client/models/{scheduled_interview_request.rb → account_details_and_actions.rb} +85 -100
  120. data/lib/merge_ats_client/models/account_details_and_actions_integration.rb +310 -0
  121. data/lib/merge_ats_client/models/account_details_and_actions_status_enum.rb +36 -0
  122. data/lib/merge_ats_client/models/account_integration.rb +7 -29
  123. data/lib/merge_ats_client/models/account_token.rb +2 -2
  124. data/lib/merge_ats_client/models/activity.rb +17 -8
  125. data/lib/merge_ats_client/models/activity_type_enum.rb +1 -1
  126. data/lib/merge_ats_client/models/application.rb +29 -12
  127. data/lib/merge_ats_client/models/application_endpoint_request.rb +237 -0
  128. data/lib/merge_ats_client/models/application_request.rb +70 -13
  129. data/lib/merge_ats_client/models/application_response.rb +266 -0
  130. data/lib/merge_ats_client/models/attachment.rb +16 -7
  131. data/lib/merge_ats_client/models/attachment_endpoint_request.rb +237 -0
  132. data/lib/merge_ats_client/models/attachment_request.rb +31 -7
  133. data/lib/merge_ats_client/models/attachment_response.rb +266 -0
  134. data/lib/merge_ats_client/models/attachment_type_enum.rb +0 -2
  135. data/lib/merge_ats_client/models/available_actions.rb +2 -2
  136. data/lib/merge_ats_client/models/candidate.rb +32 -7
  137. data/lib/merge_ats_client/models/candidate_endpoint_request.rb +237 -0
  138. data/lib/merge_ats_client/models/candidate_request.rb +72 -7
  139. data/lib/merge_ats_client/models/candidate_response.rb +266 -0
  140. data/lib/merge_ats_client/models/categories_enum.rb +38 -0
  141. data/lib/merge_ats_client/models/category_enum.rb +38 -0
  142. data/lib/merge_ats_client/models/data_passthrough_request.rb +81 -10
  143. data/lib/merge_ats_client/models/debug_mode_log.rb +251 -0
  144. data/lib/merge_ats_client/models/{data_passthrough.rb → debug_model_log_summary.rb} +30 -41
  145. data/lib/merge_ats_client/models/department.rb +18 -8
  146. data/lib/merge_ats_client/models/disability_status_enum.rb +1 -1
  147. data/lib/merge_ats_client/models/eeoc.rb +17 -8
  148. data/lib/merge_ats_client/models/email_address.rb +3 -3
  149. data/lib/merge_ats_client/models/email_address_request.rb +3 -3
  150. data/lib/merge_ats_client/models/email_address_type_enum.rb +1 -1
  151. data/lib/merge_ats_client/models/encoding_enum.rb +35 -0
  152. data/lib/merge_ats_client/models/end_user_details_request.rb +148 -29
  153. data/lib/merge_ats_client/models/error_validation_problem.rb +260 -0
  154. data/lib/merge_ats_client/models/gender_enum.rb +1 -1
  155. data/lib/merge_ats_client/models/generate_remote_key_request.rb +21 -2
  156. data/lib/merge_ats_client/models/{remote_user_request.rb → ignore_common_model.rb} +30 -85
  157. data/lib/merge_ats_client/models/ignore_common_model_request.rb +256 -0
  158. data/lib/merge_ats_client/models/{scorecard_request.rb → issue.rb} +56 -62
  159. data/lib/merge_ats_client/models/issue_status_enum.rb +35 -0
  160. data/lib/merge_ats_client/models/job.rb +43 -7
  161. data/lib/merge_ats_client/models/job_interview_stage.rb +17 -8
  162. data/lib/merge_ats_client/models/job_status_enum.rb +1 -1
  163. data/lib/merge_ats_client/models/link_token.rb +2 -2
  164. data/lib/merge_ats_client/models/linked_account_status.rb +237 -0
  165. data/lib/merge_ats_client/models/meta_response.rb +262 -0
  166. data/lib/merge_ats_client/models/method_enum.rb +1 -1
  167. data/lib/merge_ats_client/models/model_operation.rb +2 -2
  168. data/lib/merge_ats_client/models/{patched_application_request.rb → multipart_form_field_request.rb} +120 -88
  169. data/lib/merge_ats_client/models/offer.rb +17 -9
  170. data/lib/merge_ats_client/models/offer_status_enum.rb +1 -1
  171. data/lib/merge_ats_client/models/office.rb +18 -8
  172. data/lib/merge_ats_client/models/overall_recommendation_enum.rb +1 -1
  173. data/lib/merge_ats_client/models/paginated_account_details_and_actions_list.rb +240 -0
  174. data/lib/merge_ats_client/models/paginated_activity_list.rb +2 -2
  175. data/lib/merge_ats_client/models/paginated_application_list.rb +2 -2
  176. data/lib/merge_ats_client/models/paginated_attachment_list.rb +2 -2
  177. data/lib/merge_ats_client/models/paginated_candidate_list.rb +2 -2
  178. data/lib/merge_ats_client/models/paginated_department_list.rb +2 -2
  179. data/lib/merge_ats_client/models/paginated_eeoc_list.rb +2 -2
  180. data/lib/merge_ats_client/models/paginated_issue_list.rb +240 -0
  181. data/lib/merge_ats_client/models/paginated_job_interview_stage_list.rb +2 -2
  182. data/lib/merge_ats_client/models/paginated_job_list.rb +2 -2
  183. data/lib/merge_ats_client/models/paginated_offer_list.rb +2 -2
  184. data/lib/merge_ats_client/models/paginated_office_list.rb +2 -2
  185. data/lib/merge_ats_client/models/paginated_reject_reason_list.rb +2 -2
  186. data/lib/merge_ats_client/models/paginated_remote_user_list.rb +2 -2
  187. data/lib/merge_ats_client/models/paginated_scheduled_interview_list.rb +2 -2
  188. data/lib/merge_ats_client/models/paginated_scorecard_list.rb +2 -2
  189. data/lib/merge_ats_client/models/paginated_sync_status_list.rb +1 -1
  190. data/lib/merge_ats_client/models/paginated_tag_list.rb +2 -2
  191. data/lib/merge_ats_client/models/phone_number.rb +3 -3
  192. data/lib/merge_ats_client/models/phone_number_request.rb +3 -3
  193. data/lib/merge_ats_client/models/phone_number_type_enum.rb +1 -1
  194. data/lib/merge_ats_client/models/race_enum.rb +1 -1
  195. data/lib/merge_ats_client/models/reason_enum.rb +36 -0
  196. data/lib/merge_ats_client/models/reject_reason.rb +18 -8
  197. data/lib/merge_ats_client/models/remote_data.rb +2 -2
  198. data/lib/merge_ats_client/models/remote_data_request.rb +21 -2
  199. data/lib/merge_ats_client/models/remote_key.rb +2 -2
  200. data/lib/merge_ats_client/models/remote_key_for_regeneration_request.rb +21 -2
  201. data/lib/merge_ats_client/models/remote_response.rb +2 -2
  202. data/lib/merge_ats_client/models/remote_user.rb +18 -8
  203. data/lib/merge_ats_client/models/request_format_enum.rb +36 -0
  204. data/lib/merge_ats_client/models/scheduled_interview.rb +18 -10
  205. data/lib/merge_ats_client/models/scheduled_interview_status_enum.rb +1 -1
  206. data/lib/merge_ats_client/models/scorecard.rb +17 -10
  207. data/lib/merge_ats_client/models/sync_status.rb +2 -2
  208. data/lib/merge_ats_client/models/sync_status_status_enum.rb +2 -2
  209. data/lib/merge_ats_client/models/tag.rb +18 -8
  210. data/lib/merge_ats_client/models/url.rb +8 -8
  211. data/lib/merge_ats_client/models/url_request.rb +8 -8
  212. data/lib/merge_ats_client/models/url_type_enum.rb +1 -1
  213. data/lib/merge_ats_client/models/{remote_key_for_regeneration.rb → validation_problem_source.rb} +15 -16
  214. data/lib/merge_ats_client/models/veteran_status_enum.rb +1 -1
  215. data/lib/merge_ats_client/models/visibility_enum.rb +1 -1
  216. data/lib/merge_ats_client/models/warning_validation_problem.rb +260 -0
  217. data/lib/merge_ats_client/models/webhook_receiver.rb +246 -0
  218. data/lib/merge_ats_client/models/webhook_receiver_request.rb +280 -0
  219. data/lib/merge_ats_client/version.rb +1 -1
  220. data/lib/merge_ats_client.rb +38 -4
  221. data/merge_ats_client.gemspec +1 -1
  222. data/spec/api/account_details_api_spec.rb +46 -0
  223. data/spec/api/account_token_api_spec.rb +1 -1
  224. data/spec/api/activities_api_spec.rb +4 -1
  225. data/spec/api/applications_api_spec.rb +31 -1
  226. data/spec/api/attachments_api_spec.rb +31 -1
  227. data/spec/api/available_actions_api_spec.rb +1 -1
  228. data/spec/api/candidates_api_spec.rb +44 -1
  229. data/spec/api/departments_api_spec.rb +4 -1
  230. data/spec/api/eeocs_api_spec.rb +4 -1
  231. data/spec/api/force_resync_api_spec.rb +46 -0
  232. data/spec/api/interviews_api_spec.rb +4 -1
  233. data/spec/api/issues_api_spec.rb +9 -5
  234. data/spec/api/job_interview_stages_api_spec.rb +4 -1
  235. data/spec/api/jobs_api_spec.rb +6 -1
  236. data/spec/api/link_token_api_spec.rb +2 -2
  237. data/spec/api/linked_accounts_api_spec.rb +57 -0
  238. data/spec/api/offers_api_spec.rb +4 -1
  239. data/spec/api/offices_api_spec.rb +4 -1
  240. data/spec/api/passthrough_api_spec.rb +2 -2
  241. data/spec/api/regenerate_key_api_spec.rb +3 -5
  242. data/spec/api/reject_reasons_api_spec.rb +4 -1
  243. data/spec/api/scorecards_api_spec.rb +4 -1
  244. data/spec/api/sync_status_api_spec.rb +8 -5
  245. data/spec/api/tags_api_spec.rb +3 -1
  246. data/spec/api/users_api_spec.rb +5 -1
  247. data/spec/api/webhook_receivers_api_spec.rb +58 -0
  248. data/spec/api_client_spec.rb +1 -1
  249. data/spec/configuration_spec.rb +1 -1
  250. data/spec/models/access_role_enum_spec.rb +1 -1
  251. data/spec/models/{scorecard_request_spec.rb → account_details_and_actions_integration_spec.rb} +19 -13
  252. data/spec/models/{scheduled_interview_request_spec.rb → account_details_and_actions_spec.rb} +15 -27
  253. data/spec/models/account_details_and_actions_status_enum_spec.rb +28 -0
  254. data/spec/models/{patched_application_request_spec.rb → account_details_spec.rb} +16 -16
  255. data/spec/models/account_integration_spec.rb +7 -1
  256. data/spec/models/account_token_spec.rb +7 -1
  257. data/spec/models/activity_spec.rb +13 -1
  258. data/spec/models/activity_type_enum_spec.rb +1 -1
  259. data/spec/models/application_endpoint_request_spec.rb +40 -0
  260. data/spec/models/application_request_spec.rb +25 -1
  261. data/spec/models/{end_user_details_spec.rb → application_response_spec.rb} +11 -15
  262. data/spec/models/application_spec.rb +19 -7
  263. data/spec/models/attachment_endpoint_request_spec.rb +40 -0
  264. data/spec/models/attachment_request_spec.rb +12 -0
  265. data/spec/models/attachment_response_spec.rb +52 -0
  266. data/spec/models/attachment_spec.rb +25 -1
  267. data/spec/models/available_actions_spec.rb +1 -1
  268. data/spec/models/candidate_endpoint_request_spec.rb +40 -0
  269. data/spec/models/candidate_request_spec.rb +37 -1
  270. data/spec/models/{data_passthrough_spec.rb → candidate_response_spec.rb} +11 -11
  271. data/spec/models/candidate_spec.rb +19 -1
  272. data/spec/models/categories_enum_spec.rb +28 -0
  273. data/spec/models/category_enum_spec.rb +28 -0
  274. data/spec/models/data_passthrough_request_spec.rb +13 -1
  275. data/spec/models/debug_mode_log_spec.rb +46 -0
  276. data/spec/models/debug_model_log_summary_spec.rb +46 -0
  277. data/spec/models/department_spec.rb +13 -1
  278. data/spec/models/disability_status_enum_spec.rb +1 -1
  279. data/spec/models/eeoc_spec.rb +13 -1
  280. data/spec/models/email_address_request_spec.rb +1 -1
  281. data/spec/models/email_address_spec.rb +1 -1
  282. data/spec/models/email_address_type_enum_spec.rb +1 -1
  283. data/spec/models/encoding_enum_spec.rb +28 -0
  284. data/spec/models/end_user_details_request_spec.rb +13 -5
  285. data/spec/models/error_validation_problem_spec.rb +52 -0
  286. data/spec/models/gender_enum_spec.rb +1 -1
  287. data/spec/models/ignore_common_model_request_spec.rb +40 -0
  288. data/spec/models/ignore_common_model_spec.rb +40 -0
  289. data/spec/models/job_interview_stage_spec.rb +13 -1
  290. data/spec/models/job_spec.rb +31 -1
  291. data/spec/models/job_status_enum_spec.rb +1 -1
  292. data/spec/models/link_token_spec.rb +1 -1
  293. data/spec/models/linked_account_status_spec.rb +40 -0
  294. data/spec/models/meta_response_spec.rb +52 -0
  295. data/spec/models/method_enum_spec.rb +1 -1
  296. data/spec/models/model_operation_spec.rb +13 -1
  297. data/spec/models/{remote_user_request_spec.rb → multipart_form_field_request_spec.rb} +11 -23
  298. data/spec/models/offer_spec.rb +13 -1
  299. data/spec/models/offer_status_enum_spec.rb +1 -1
  300. data/spec/models/office_spec.rb +13 -1
  301. data/spec/models/overall_recommendation_enum_spec.rb +1 -1
  302. data/spec/models/paginated_account_details_and_actions_list_spec.rb +46 -0
  303. data/spec/models/paginated_activity_list_spec.rb +1 -1
  304. data/spec/models/paginated_application_list_spec.rb +1 -1
  305. data/spec/models/paginated_attachment_list_spec.rb +1 -1
  306. data/spec/models/paginated_candidate_list_spec.rb +1 -1
  307. data/spec/models/paginated_department_list_spec.rb +1 -1
  308. data/spec/models/paginated_eeoc_list_spec.rb +1 -1
  309. data/spec/models/paginated_job_interview_stage_list_spec.rb +1 -1
  310. data/spec/models/paginated_job_list_spec.rb +1 -1
  311. data/spec/models/paginated_offer_list_spec.rb +1 -1
  312. data/spec/models/paginated_office_list_spec.rb +1 -1
  313. data/spec/models/paginated_reject_reason_list_spec.rb +1 -1
  314. data/spec/models/paginated_remote_user_list_spec.rb +1 -1
  315. data/spec/models/paginated_scheduled_interview_list_spec.rb +1 -1
  316. data/spec/models/paginated_scorecard_list_spec.rb +1 -1
  317. data/spec/models/paginated_tag_list_spec.rb +1 -1
  318. data/spec/models/phone_number_request_spec.rb +1 -1
  319. data/spec/models/phone_number_spec.rb +1 -1
  320. data/spec/models/phone_number_type_enum_spec.rb +1 -1
  321. data/spec/models/race_enum_spec.rb +1 -1
  322. data/spec/models/reason_enum_spec.rb +28 -0
  323. data/spec/models/reject_reason_spec.rb +13 -1
  324. data/spec/models/remote_data_spec.rb +1 -1
  325. data/spec/models/remote_key_for_regeneration_request_spec.rb +1 -1
  326. data/spec/models/remote_key_spec.rb +1 -1
  327. data/spec/models/remote_response_spec.rb +1 -1
  328. data/spec/models/remote_user_spec.rb +13 -1
  329. data/spec/models/request_format_enum_spec.rb +28 -0
  330. data/spec/models/scheduled_interview_spec.rb +13 -1
  331. data/spec/models/scheduled_interview_status_enum_spec.rb +1 -1
  332. data/spec/models/scorecard_spec.rb +13 -1
  333. data/spec/models/sync_status_spec.rb +1 -1
  334. data/spec/models/tag_spec.rb +13 -1
  335. data/spec/models/url_request_spec.rb +1 -1
  336. data/spec/models/url_spec.rb +1 -1
  337. data/spec/models/url_type_enum_spec.rb +1 -1
  338. data/spec/models/{remote_key_for_regeneration_spec.rb → validation_problem_source_spec.rb} +8 -8
  339. data/spec/models/veteran_status_enum_spec.rb +1 -1
  340. data/spec/models/visibility_enum_spec.rb +1 -1
  341. data/spec/models/warning_validation_problem_spec.rb +52 -0
  342. data/spec/models/webhook_receiver_request_spec.rb +46 -0
  343. data/spec/models/webhook_receiver_spec.rb +46 -0
  344. data/spec/spec_helper.rb +1 -1
  345. metadata +220 -113
  346. data/config.json +0 -2
  347. data/docs/DataPassthrough.md +0 -24
  348. data/docs/EndUserDetails.md +0 -24
  349. data/docs/PatchedApplicationRequest.md +0 -34
  350. data/docs/RemoteKeyForRegeneration.md +0 -18
  351. data/docs/RemoteUserRequest.md +0 -30
  352. data/docs/ScheduledInterviewRequest.md +0 -38
  353. data/docs/ScorecardRequest.md +0 -30
  354. data/test_ats.rb +0 -22
  355. data/test_signature.rb +0 -32
@@ -14,39 +14,16 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module MergeATSClient
17
- # # The RemoteUser Object ### Description The `RemoteUser` object is used to represent a third party user. ### Usage Example Fetch from the `LIST RemoteUsers` endpoint to show all users for a third party.
18
- class RemoteUserRequest
19
- # The third-party API ID of the matching object.
20
- attr_accessor :remote_id
17
+ class IgnoreCommonModel
18
+ attr_accessor :reason
21
19
 
22
- # The user's first name.
23
- attr_accessor :first_name
24
-
25
- # The user's last name.
26
- attr_accessor :last_name
27
-
28
- # The user's email.
29
- attr_accessor :email
30
-
31
- # Whether the user's account had been disabled.
32
- attr_accessor :disabled
33
-
34
- # When the third party's user was created.
35
- attr_accessor :remote_created_at
36
-
37
- # The user's role.
38
- attr_accessor :access_role
20
+ attr_accessor :message
39
21
 
40
22
  # Attribute mapping from ruby-style variable name to JSON key.
41
23
  def self.attribute_map
42
24
  {
43
- :'remote_id' => :'remote_id',
44
- :'first_name' => :'first_name',
45
- :'last_name' => :'last_name',
46
- :'email' => :'email',
47
- :'disabled' => :'disabled',
48
- :'remote_created_at' => :'remote_created_at',
49
- :'access_role' => :'access_role'
25
+ :'reason' => :'reason',
26
+ :'message' => :'message'
50
27
  }
51
28
  end
52
29
 
@@ -58,26 +35,14 @@ module MergeATSClient
58
35
  # Attribute type mapping.
59
36
  def self.openapi_types
60
37
  {
61
- :'remote_id' => :'String',
62
- :'first_name' => :'String',
63
- :'last_name' => :'String',
64
- :'email' => :'String',
65
- :'disabled' => :'Boolean',
66
- :'remote_created_at' => :'Time',
67
- :'access_role' => :'AccessRoleEnum'
38
+ :'reason' => :'ReasonEnum',
39
+ :'message' => :'String'
68
40
  }
69
41
  end
70
42
 
71
43
  # List of attributes with nullable: true
72
44
  def self.openapi_nullable
73
45
  Set.new([
74
- :'remote_id',
75
- :'first_name',
76
- :'last_name',
77
- :'email',
78
- :'disabled',
79
- :'remote_created_at',
80
- :'access_role'
81
46
  ])
82
47
  end
83
48
 
@@ -85,43 +50,23 @@ module MergeATSClient
85
50
  # @param [Hash] attributes Model attributes in the form of hash
86
51
  def initialize(attributes = {})
87
52
  if (!attributes.is_a?(Hash))
88
- fail ArgumentError, "The input argument (attributes) must be a hash in `MergeATSClient::RemoteUserRequest` initialize method"
53
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MergeATSClient::IgnoreCommonModel` initialize method"
89
54
  end
90
55
 
91
56
  # check to see if the attribute exists and convert string to symbol for hash key
92
57
  attributes = attributes.each_with_object({}) { |(k, v), h|
93
58
  if (!self.class.attribute_map.key?(k.to_sym))
94
- fail ArgumentError, "`#{k}` is not a valid attribute in `MergeATSClient::RemoteUserRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
59
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MergeATSClient::IgnoreCommonModel`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
95
60
  end
96
61
  h[k.to_sym] = v
97
62
  }
98
63
 
99
- if attributes.key?(:'remote_id')
100
- self.remote_id = attributes[:'remote_id']
101
- end
102
-
103
- if attributes.key?(:'first_name')
104
- self.first_name = attributes[:'first_name']
105
- end
106
-
107
- if attributes.key?(:'last_name')
108
- self.last_name = attributes[:'last_name']
64
+ if attributes.key?(:'reason')
65
+ self.reason = attributes[:'reason']
109
66
  end
110
67
 
111
- if attributes.key?(:'email')
112
- self.email = attributes[:'email']
113
- end
114
-
115
- if attributes.key?(:'disabled')
116
- self.disabled = attributes[:'disabled']
117
- end
118
-
119
- if attributes.key?(:'remote_created_at')
120
- self.remote_created_at = attributes[:'remote_created_at']
121
- end
122
-
123
- if attributes.key?(:'access_role')
124
- self.access_role = attributes[:'access_role']
68
+ if attributes.key?(:'message')
69
+ self.message = attributes[:'message']
125
70
  end
126
71
  end
127
72
 
@@ -129,8 +74,12 @@ module MergeATSClient
129
74
  # @return Array for valid properties with the reasons
130
75
  def list_invalid_properties
131
76
  invalid_properties = Array.new
132
- if !@email.nil? && @email.to_s.length > 254
133
- invalid_properties.push('invalid value for "email", the character length must be smaller than or equal to 254.')
77
+ if @reason.nil?
78
+ invalid_properties.push('invalid value for "reason", reason cannot be nil.')
79
+ end
80
+
81
+ if !@message.nil? && @message.to_s.length > 256
82
+ invalid_properties.push('invalid value for "message", the character length must be smaller than or equal to 256.')
134
83
  end
135
84
 
136
85
  invalid_properties
@@ -139,18 +88,19 @@ module MergeATSClient
139
88
  # Check to see if the all the properties in the model are valid
140
89
  # @return true if the model is valid
141
90
  def valid?
142
- return false if !@email.nil? && @email.to_s.length > 254
91
+ return false if @reason.nil?
92
+ return false if !@message.nil? && @message.to_s.length > 256
143
93
  true
144
94
  end
145
95
 
146
96
  # Custom attribute writer method with validation
147
- # @param [Object] email Value to be assigned
148
- def email=(email)
149
- if !email.nil? && email.to_s.length > 254
150
- fail ArgumentError, 'invalid value for "email", the character length must be smaller than or equal to 254.'
97
+ # @param [Object] message Value to be assigned
98
+ def message=(message)
99
+ if !message.nil? && message.to_s.length > 256
100
+ fail ArgumentError, 'invalid value for "message", the character length must be smaller than or equal to 256.'
151
101
  end
152
102
 
153
- @email = email
103
+ @message = message
154
104
  end
155
105
 
156
106
  # Checks equality by comparing each attribute.
@@ -158,13 +108,8 @@ module MergeATSClient
158
108
  def ==(o)
159
109
  return true if self.equal?(o)
160
110
  self.class == o.class &&
161
- remote_id == o.remote_id &&
162
- first_name == o.first_name &&
163
- last_name == o.last_name &&
164
- email == o.email &&
165
- disabled == o.disabled &&
166
- remote_created_at == o.remote_created_at &&
167
- access_role == o.access_role
111
+ reason == o.reason &&
112
+ message == o.message
168
113
  end
169
114
 
170
115
  # @see the `==` method
@@ -176,7 +121,7 @@ module MergeATSClient
176
121
  # Calculates hash code according to all attributes.
177
122
  # @return [Integer] Hash code
178
123
  def hash
179
- [remote_id, first_name, last_name, email, disabled, remote_created_at, access_role].hash
124
+ [reason, message].hash
180
125
  end
181
126
 
182
127
  # Builds the object from hash
@@ -219,7 +164,7 @@ module MergeATSClient
219
164
  when :Date
220
165
  Date.parse(value)
221
166
  when :String
222
- value.to_s
167
+ value
223
168
  when :Integer
224
169
  value.to_i
225
170
  when :Float
@@ -0,0 +1,256 @@
1
+ =begin
2
+ #Merge ATS API
3
+
4
+ #The unified API for building rich integrations with multiple Applicant Tracking System platforms.
5
+
6
+ The version of the OpenAPI document: 1.0
7
+ Contact: hello@merge.dev
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.1.1
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module MergeATSClient
17
+ class IgnoreCommonModelRequest
18
+ attr_accessor :reason
19
+
20
+ attr_accessor :message
21
+
22
+ # Attribute mapping from ruby-style variable name to JSON key.
23
+ def self.attribute_map
24
+ {
25
+ :'reason' => :'reason',
26
+ :'message' => :'message'
27
+ }
28
+ end
29
+
30
+ # Returns all the JSON keys this model knows about
31
+ def self.acceptable_attributes
32
+ attribute_map.values
33
+ end
34
+
35
+ # Attribute type mapping.
36
+ def self.openapi_types
37
+ {
38
+ :'reason' => :'ReasonEnum',
39
+ :'message' => :'String'
40
+ }
41
+ end
42
+
43
+ # List of attributes with nullable: true
44
+ def self.openapi_nullable
45
+ Set.new([
46
+ ])
47
+ end
48
+
49
+ # Initializes the object
50
+ # @param [Hash] attributes Model attributes in the form of hash
51
+ def initialize(attributes = {})
52
+ if (!attributes.is_a?(Hash))
53
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MergeATSClient::IgnoreCommonModelRequest` initialize method"
54
+ end
55
+
56
+ # check to see if the attribute exists and convert string to symbol for hash key
57
+ attributes = attributes.each_with_object({}) { |(k, v), h|
58
+ if (!self.class.attribute_map.key?(k.to_sym))
59
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MergeATSClient::IgnoreCommonModelRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
60
+ end
61
+ h[k.to_sym] = v
62
+ }
63
+
64
+ if attributes.key?(:'reason')
65
+ self.reason = attributes[:'reason']
66
+ end
67
+
68
+ if attributes.key?(:'message')
69
+ self.message = attributes[:'message']
70
+ end
71
+ end
72
+
73
+ # Show invalid properties with the reasons. Usually used together with valid?
74
+ # @return Array for valid properties with the reasons
75
+ def list_invalid_properties
76
+ invalid_properties = Array.new
77
+ if @reason.nil?
78
+ invalid_properties.push('invalid value for "reason", reason cannot be nil.')
79
+ end
80
+
81
+ if !@message.nil? && @message.to_s.length > 256
82
+ invalid_properties.push('invalid value for "message", the character length must be smaller than or equal to 256.')
83
+ end
84
+
85
+ if !@message.nil? && @message.to_s.length < 1
86
+ invalid_properties.push('invalid value for "message", the character length must be great than or equal to 1.')
87
+ end
88
+
89
+ invalid_properties
90
+ end
91
+
92
+ # Check to see if the all the properties in the model are valid
93
+ # @return true if the model is valid
94
+ def valid?
95
+ return false if @reason.nil?
96
+ return false if !@message.nil? && @message.to_s.length > 256
97
+ return false if !@message.nil? && @message.to_s.length < 1
98
+ true
99
+ end
100
+
101
+ # Custom attribute writer method with validation
102
+ # @param [Object] message Value to be assigned
103
+ def message=(message)
104
+ if !message.nil? && message.to_s.length > 256
105
+ fail ArgumentError, 'invalid value for "message", the character length must be smaller than or equal to 256.'
106
+ end
107
+
108
+ if !message.nil? && message.to_s.length < 1
109
+ fail ArgumentError, 'invalid value for "message", the character length must be great than or equal to 1.'
110
+ end
111
+
112
+ @message = message
113
+ end
114
+
115
+ # Checks equality by comparing each attribute.
116
+ # @param [Object] Object to be compared
117
+ def ==(o)
118
+ return true if self.equal?(o)
119
+ self.class == o.class &&
120
+ reason == o.reason &&
121
+ message == o.message
122
+ end
123
+
124
+ # @see the `==` method
125
+ # @param [Object] Object to be compared
126
+ def eql?(o)
127
+ self == o
128
+ end
129
+
130
+ # Calculates hash code according to all attributes.
131
+ # @return [Integer] Hash code
132
+ def hash
133
+ [reason, message].hash
134
+ end
135
+
136
+ # Builds the object from hash
137
+ # @param [Hash] attributes Model attributes in the form of hash
138
+ # @return [Object] Returns the model itself
139
+ def self.build_from_hash(attributes)
140
+ new.build_from_hash(attributes)
141
+ end
142
+
143
+ # Builds the object from hash
144
+ # @param [Hash] attributes Model attributes in the form of hash
145
+ # @return [Object] Returns the model itself
146
+ def build_from_hash(attributes)
147
+ return nil unless attributes.is_a?(Hash)
148
+ self.class.openapi_types.each_pair do |key, type|
149
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
150
+ self.send("#{key}=", nil)
151
+ elsif type =~ /\AArray<(.*)>/i
152
+ # check to ensure the input is an array given that the attribute
153
+ # is documented as an array but the input is not
154
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
155
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
156
+ end
157
+ elsif !attributes[self.class.attribute_map[key]].nil?
158
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
159
+ end
160
+ end
161
+
162
+ self
163
+ end
164
+
165
+ # Deserializes the data based on type
166
+ # @param string type Data type
167
+ # @param string value Value to be deserialized
168
+ # @return [Object] Deserialized data
169
+ def _deserialize(type, value)
170
+ case type.to_sym
171
+ when :Time
172
+ Time.parse(value)
173
+ when :Date
174
+ Date.parse(value)
175
+ when :String
176
+ value
177
+ when :Integer
178
+ value.to_i
179
+ when :Float
180
+ value.to_f
181
+ when :Boolean
182
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
183
+ true
184
+ else
185
+ false
186
+ end
187
+ when :Object
188
+ # generic object (usually a Hash), return directly
189
+ value
190
+ when /\AArray<(?<inner_type>.+)>\z/
191
+ inner_type = Regexp.last_match[:inner_type]
192
+ value.map { |v| _deserialize(inner_type, v) }
193
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
194
+ k_type = Regexp.last_match[:k_type]
195
+ v_type = Regexp.last_match[:v_type]
196
+ {}.tap do |hash|
197
+ value.each do |k, v|
198
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
199
+ end
200
+ end
201
+ else # model
202
+ # models (e.g. Pet) or oneOf
203
+ klass = MergeATSClient.const_get(type)
204
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
205
+ end
206
+ end
207
+
208
+ # Returns the string representation of the object
209
+ # @return [String] String presentation of the object
210
+ def to_s
211
+ to_hash.to_s
212
+ end
213
+
214
+ # to_body is an alias to to_hash (backward compatibility)
215
+ # @return [Hash] Returns the object in the form of hash
216
+ def to_body
217
+ to_hash
218
+ end
219
+
220
+ # Returns the object in the form of hash
221
+ # @return [Hash] Returns the object in the form of hash
222
+ def to_hash
223
+ hash = {}
224
+ self.class.attribute_map.each_pair do |attr, param|
225
+ value = self.send(attr)
226
+ if value.nil?
227
+ is_nullable = self.class.openapi_nullable.include?(attr)
228
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
229
+ end
230
+
231
+ hash[param] = _to_hash(value)
232
+ end
233
+ hash
234
+ end
235
+
236
+ # Outputs non-array value in the form of hash
237
+ # For object, use to_hash. Otherwise, just return the value
238
+ # @param [Object] value Any valid value
239
+ # @return [Hash] Returns the value in the form of hash
240
+ def _to_hash(value)
241
+ if value.is_a?(Array)
242
+ value.compact.map { |v| _to_hash(v) }
243
+ elsif value.is_a?(Hash)
244
+ {}.tap do |hash|
245
+ value.each { |k, v| hash[k] = _to_hash(v) }
246
+ end
247
+ elsif value.respond_to? :to_hash
248
+ value.to_hash
249
+ else
250
+ value
251
+ end
252
+ end
253
+
254
+ end
255
+
256
+ end
@@ -14,39 +14,31 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module MergeATSClient
17
- # # The Scorecard Object ### Description The `Scorecard` object is used to represent a Scorecard for an interview ### Usage Example Fetch from the `LIST Scorecards` endpoint and filter by `application` to show all scorecard for an applicant.
18
- class ScorecardRequest
19
- # The third-party API ID of the matching object.
20
- attr_accessor :remote_id
17
+ class Issue
18
+ attr_accessor :id
21
19
 
22
- # The application being scored.
23
- attr_accessor :application
20
+ attr_accessor :status
24
21
 
25
- # The interview being scored.
26
- attr_accessor :interview
22
+ attr_accessor :error_description
27
23
 
28
- # The interviewer doing the scoring.
29
- attr_accessor :interviewer
24
+ attr_accessor :end_user
30
25
 
31
- # When the third party's scorecard was created.
32
- attr_accessor :remote_created_at
26
+ attr_accessor :first_incident_time
33
27
 
34
- # When the scorecard was submitted.
35
- attr_accessor :submitted_at
28
+ attr_accessor :last_incident_time
36
29
 
37
- # The inteviewer's recommendation.
38
- attr_accessor :overall_recommendation
30
+ attr_accessor :is_muted
39
31
 
40
32
  # Attribute mapping from ruby-style variable name to JSON key.
41
33
  def self.attribute_map
42
34
  {
43
- :'remote_id' => :'remote_id',
44
- :'application' => :'application',
45
- :'interview' => :'interview',
46
- :'interviewer' => :'interviewer',
47
- :'remote_created_at' => :'remote_created_at',
48
- :'submitted_at' => :'submitted_at',
49
- :'overall_recommendation' => :'overall_recommendation'
35
+ :'id' => :'id',
36
+ :'status' => :'status',
37
+ :'error_description' => :'error_description',
38
+ :'end_user' => :'end_user',
39
+ :'first_incident_time' => :'first_incident_time',
40
+ :'last_incident_time' => :'last_incident_time',
41
+ :'is_muted' => :'is_muted'
50
42
  }
51
43
  end
52
44
 
@@ -58,26 +50,21 @@ module MergeATSClient
58
50
  # Attribute type mapping.
59
51
  def self.openapi_types
60
52
  {
61
- :'remote_id' => :'String',
62
- :'application' => :'String',
63
- :'interview' => :'String',
64
- :'interviewer' => :'String',
65
- :'remote_created_at' => :'Time',
66
- :'submitted_at' => :'Time',
67
- :'overall_recommendation' => :'OverallRecommendationEnum'
53
+ :'id' => :'String',
54
+ :'status' => :'IssueStatusEnum',
55
+ :'error_description' => :'String',
56
+ :'end_user' => :'Hash<String, AnyType>',
57
+ :'first_incident_time' => :'Time',
58
+ :'last_incident_time' => :'Time',
59
+ :'is_muted' => :'Boolean'
68
60
  }
69
61
  end
70
62
 
71
63
  # List of attributes with nullable: true
72
64
  def self.openapi_nullable
73
65
  Set.new([
74
- :'remote_id',
75
- :'application',
76
- :'interview',
77
- :'interviewer',
78
- :'remote_created_at',
79
- :'submitted_at',
80
- :'overall_recommendation'
66
+ :'first_incident_time',
67
+ :'last_incident_time',
81
68
  ])
82
69
  end
83
70
 
@@ -85,43 +72,45 @@ module MergeATSClient
85
72
  # @param [Hash] attributes Model attributes in the form of hash
86
73
  def initialize(attributes = {})
87
74
  if (!attributes.is_a?(Hash))
88
- fail ArgumentError, "The input argument (attributes) must be a hash in `MergeATSClient::ScorecardRequest` initialize method"
75
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MergeATSClient::Issue` initialize method"
89
76
  end
90
77
 
91
78
  # check to see if the attribute exists and convert string to symbol for hash key
92
79
  attributes = attributes.each_with_object({}) { |(k, v), h|
93
80
  if (!self.class.attribute_map.key?(k.to_sym))
94
- fail ArgumentError, "`#{k}` is not a valid attribute in `MergeATSClient::ScorecardRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
81
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MergeATSClient::Issue`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
95
82
  end
96
83
  h[k.to_sym] = v
97
84
  }
98
85
 
99
- if attributes.key?(:'remote_id')
100
- self.remote_id = attributes[:'remote_id']
86
+ if attributes.key?(:'id')
87
+ self.id = attributes[:'id']
101
88
  end
102
89
 
103
- if attributes.key?(:'application')
104
- self.application = attributes[:'application']
90
+ if attributes.key?(:'status')
91
+ self.status = attributes[:'status']
105
92
  end
106
93
 
107
- if attributes.key?(:'interview')
108
- self.interview = attributes[:'interview']
94
+ if attributes.key?(:'error_description')
95
+ self.error_description = attributes[:'error_description']
109
96
  end
110
97
 
111
- if attributes.key?(:'interviewer')
112
- self.interviewer = attributes[:'interviewer']
98
+ if attributes.key?(:'end_user')
99
+ if (value = attributes[:'end_user']).is_a?(Hash)
100
+ self.end_user = value
101
+ end
113
102
  end
114
103
 
115
- if attributes.key?(:'remote_created_at')
116
- self.remote_created_at = attributes[:'remote_created_at']
104
+ if attributes.key?(:'first_incident_time')
105
+ self.first_incident_time = attributes[:'first_incident_time']
117
106
  end
118
107
 
119
- if attributes.key?(:'submitted_at')
120
- self.submitted_at = attributes[:'submitted_at']
108
+ if attributes.key?(:'last_incident_time')
109
+ self.last_incident_time = attributes[:'last_incident_time']
121
110
  end
122
111
 
123
- if attributes.key?(:'overall_recommendation')
124
- self.overall_recommendation = attributes[:'overall_recommendation']
112
+ if attributes.key?(:'is_muted')
113
+ self.is_muted = attributes[:'is_muted']
125
114
  end
126
115
  end
127
116
 
@@ -129,12 +118,17 @@ module MergeATSClient
129
118
  # @return Array for valid properties with the reasons
130
119
  def list_invalid_properties
131
120
  invalid_properties = Array.new
121
+ if @error_description.nil?
122
+ invalid_properties.push('invalid value for "error_description", error_description cannot be nil.')
123
+ end
124
+
132
125
  invalid_properties
133
126
  end
134
127
 
135
128
  # Check to see if the all the properties in the model are valid
136
129
  # @return true if the model is valid
137
130
  def valid?
131
+ return false if @error_description.nil?
138
132
  true
139
133
  end
140
134
 
@@ -143,13 +137,13 @@ module MergeATSClient
143
137
  def ==(o)
144
138
  return true if self.equal?(o)
145
139
  self.class == o.class &&
146
- remote_id == o.remote_id &&
147
- application == o.application &&
148
- interview == o.interview &&
149
- interviewer == o.interviewer &&
150
- remote_created_at == o.remote_created_at &&
151
- submitted_at == o.submitted_at &&
152
- overall_recommendation == o.overall_recommendation
140
+ id == o.id &&
141
+ status == o.status &&
142
+ error_description == o.error_description &&
143
+ end_user == o.end_user &&
144
+ first_incident_time == o.first_incident_time &&
145
+ last_incident_time == o.last_incident_time &&
146
+ is_muted == o.is_muted
153
147
  end
154
148
 
155
149
  # @see the `==` method
@@ -161,7 +155,7 @@ module MergeATSClient
161
155
  # Calculates hash code according to all attributes.
162
156
  # @return [Integer] Hash code
163
157
  def hash
164
- [remote_id, application, interview, interviewer, remote_created_at, submitted_at, overall_recommendation].hash
158
+ [id, status, error_description, end_user, first_incident_time, last_incident_time, is_muted].hash
165
159
  end
166
160
 
167
161
  # Builds the object from hash
@@ -204,7 +198,7 @@ module MergeATSClient
204
198
  when :Date
205
199
  Date.parse(value)
206
200
  when :String
207
- value.to_s
201
+ value
208
202
  when :Integer
209
203
  value.to_i
210
204
  when :Float