merge_ats_client 1.0.4 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (337) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +40 -18
  3. data/docs/AccountDetails.md +13 -7
  4. data/docs/AccountDetailsAndActions.md +6 -0
  5. data/docs/AccountDetailsAndActionsIntegration.md +1 -1
  6. data/docs/AccountDetailsApi.md +10 -7
  7. data/docs/AccountIntegration.md +4 -4
  8. data/docs/AccountTokenApi.md +2 -2
  9. data/docs/ActivitiesApi.md +11 -5
  10. data/docs/Activity.md +4 -2
  11. data/docs/Application.md +8 -6
  12. data/docs/ApplicationEndpointRequest.md +20 -0
  13. data/docs/ApplicationRequest.md +12 -6
  14. data/docs/ApplicationResponse.md +24 -0
  15. data/docs/ApplicationsApi.md +180 -18
  16. data/docs/Attachment.md +3 -1
  17. data/docs/AttachmentEndpointRequest.md +20 -0
  18. data/docs/AttachmentRequest.md +5 -1
  19. data/docs/AttachmentResponse.md +24 -0
  20. data/docs/AttachmentsApi.md +98 -16
  21. data/docs/AvailableActionsApi.md +2 -2
  22. data/docs/Candidate.md +3 -1
  23. data/docs/CandidateEndpointRequest.md +20 -0
  24. data/docs/CandidateRequest.md +7 -1
  25. data/docs/CandidateResponse.md +24 -0
  26. data/docs/CandidatesApi.md +168 -22
  27. data/docs/DataPassthroughRequest.md +6 -2
  28. data/docs/DebugModeLog.md +22 -0
  29. data/docs/DebugModelLogSummary.md +22 -0
  30. data/docs/Department.md +3 -1
  31. data/docs/DepartmentsApi.md +6 -4
  32. data/docs/EEOC.md +4 -2
  33. data/docs/EeocsApi.md +11 -5
  34. data/docs/EncodingEnum.md +15 -0
  35. data/docs/EndUserDetailsRequest.md +10 -6
  36. data/docs/ErrorValidationProblem.md +24 -0
  37. data/docs/ForceResyncApi.md +79 -0
  38. data/docs/GenerateKeyApi.md +2 -2
  39. data/docs/IgnoreCommonModel.md +20 -0
  40. data/docs/IgnoreCommonModelRequest.md +20 -0
  41. data/docs/InterviewsApi.md +11 -85
  42. data/docs/IssuesApi.md +18 -10
  43. data/docs/Job.md +7 -1
  44. data/docs/JobInterviewStage.md +4 -2
  45. data/docs/JobInterviewStagesApi.md +8 -6
  46. data/docs/JobsApi.md +13 -6
  47. data/docs/LinkToken.md +3 -1
  48. data/docs/LinkTokenApi.md +3 -3
  49. data/docs/LinkedAccountStatus.md +20 -0
  50. data/docs/LinkedAccountsApi.md +24 -22
  51. data/docs/MetaResponse.md +24 -0
  52. data/docs/MultipartFormFieldRequest.md +26 -0
  53. data/docs/Offer.md +5 -3
  54. data/docs/OffersApi.md +11 -5
  55. data/docs/Office.md +3 -1
  56. data/docs/OfficesApi.md +6 -4
  57. data/docs/PassthroughApi.md +2 -2
  58. data/docs/ReasonEnum.md +15 -0
  59. data/docs/RegenerateKeyApi.md +2 -2
  60. data/docs/RejectReason.md +3 -1
  61. data/docs/RejectReasonsApi.md +6 -4
  62. data/docs/RemoteResponse.md +5 -1
  63. data/docs/RemoteUser.md +3 -1
  64. data/docs/ResponseTypeEnum.md +15 -0
  65. data/docs/ScheduledInterview.md +6 -4
  66. data/docs/Scorecard.md +6 -4
  67. data/docs/ScorecardsApi.md +11 -85
  68. data/docs/SyncStatus.md +2 -2
  69. data/docs/SyncStatusApi.md +3 -75
  70. data/docs/Tag.md +3 -1
  71. data/docs/TagsApi.md +4 -2
  72. data/docs/UpdateApplicationStageRequest.md +20 -0
  73. data/docs/UsersApi.md +11 -85
  74. data/docs/ValidationProblemSource.md +18 -0
  75. data/docs/WarningValidationProblem.md +24 -0
  76. data/docs/WebhookReceiver.md +22 -0
  77. data/docs/WebhookReceiverRequest.md +22 -0
  78. data/docs/WebhookReceiversApi.md +153 -0
  79. data/lib/merge_ats_client/api/account_details_api.rb +10 -3
  80. data/lib/merge_ats_client/api/activities_api.rb +17 -0
  81. data/lib/merge_ats_client/api/applications_api.rb +164 -15
  82. data/lib/merge_ats_client/api/attachments_api.rb +108 -15
  83. data/lib/merge_ats_client/api/candidates_api.rb +156 -21
  84. data/lib/merge_ats_client/api/departments_api.rb +3 -0
  85. data/lib/merge_ats_client/api/eeocs_api.rb +17 -0
  86. data/lib/merge_ats_client/api/force_resync_api.rb +84 -0
  87. data/lib/merge_ats_client/api/interviews_api.rb +17 -76
  88. data/lib/merge_ats_client/api/issues_api.rb +22 -10
  89. data/lib/merge_ats_client/api/job_interview_stages_api.rb +5 -2
  90. data/lib/merge_ats_client/api/jobs_api.rb +20 -3
  91. data/lib/merge_ats_client/api/linked_accounts_api.rb +24 -21
  92. data/lib/merge_ats_client/api/offers_api.rb +17 -0
  93. data/lib/merge_ats_client/api/offices_api.rb +3 -0
  94. data/lib/merge_ats_client/api/reject_reasons_api.rb +3 -0
  95. data/lib/merge_ats_client/api/scorecards_api.rb +17 -76
  96. data/lib/merge_ats_client/api/sync_status_api.rb +4 -66
  97. data/lib/merge_ats_client/api/tags_api.rb +3 -0
  98. data/lib/merge_ats_client/api/users_api.rb +17 -76
  99. data/lib/merge_ats_client/api/webhook_receivers_api.rb +154 -0
  100. data/lib/merge_ats_client/configuration.rb +6 -4
  101. data/lib/merge_ats_client/models/access_role_enum.rb +17 -7
  102. data/lib/merge_ats_client/models/account_details.rb +33 -4
  103. data/lib/merge_ats_client/models/account_details_and_actions.rb +35 -1
  104. data/lib/merge_ats_client/models/account_details_and_actions_integration.rb +4 -2
  105. data/lib/merge_ats_client/models/account_details_and_actions_status_enum.rb +17 -7
  106. data/lib/merge_ats_client/models/account_integration.rb +2 -24
  107. data/lib/merge_ats_client/models/account_token.rb +1 -1
  108. data/lib/merge_ats_client/models/activity.rb +16 -7
  109. data/lib/merge_ats_client/models/activity_type_enum.rb +17 -7
  110. data/lib/merge_ats_client/models/application.rb +15 -11
  111. data/lib/merge_ats_client/models/application_endpoint_request.rb +237 -0
  112. data/lib/merge_ats_client/models/application_request.rb +56 -12
  113. data/lib/merge_ats_client/models/application_response.rb +266 -0
  114. data/lib/merge_ats_client/models/attachment.rb +15 -6
  115. data/lib/merge_ats_client/models/attachment_endpoint_request.rb +237 -0
  116. data/lib/merge_ats_client/models/attachment_request.rb +31 -7
  117. data/lib/merge_ats_client/models/attachment_response.rb +266 -0
  118. data/lib/merge_ats_client/models/attachment_type_enum.rb +17 -9
  119. data/lib/merge_ats_client/models/available_actions.rb +1 -1
  120. data/lib/merge_ats_client/models/candidate.rb +15 -6
  121. data/lib/merge_ats_client/models/{remote_key_for_regeneration.rb → candidate_endpoint_request.rb} +29 -16
  122. data/lib/merge_ats_client/models/candidate_request.rb +56 -7
  123. data/lib/merge_ats_client/models/candidate_response.rb +266 -0
  124. data/lib/merge_ats_client/models/categories_enum.rb +19 -7
  125. data/lib/merge_ats_client/models/category_enum.rb +19 -7
  126. data/lib/merge_ats_client/models/data_passthrough_request.rb +79 -7
  127. data/lib/merge_ats_client/models/debug_mode_log.rb +251 -0
  128. data/lib/merge_ats_client/models/{data_passthrough.rb → debug_model_log_summary.rb} +30 -41
  129. data/lib/merge_ats_client/models/department.rb +17 -7
  130. data/lib/merge_ats_client/models/disability_status_enum.rb +17 -7
  131. data/lib/merge_ats_client/models/eeoc.rb +16 -7
  132. data/lib/merge_ats_client/models/email_address.rb +2 -2
  133. data/lib/merge_ats_client/models/email_address_request.rb +2 -2
  134. data/lib/merge_ats_client/models/email_address_type_enum.rb +17 -7
  135. data/lib/merge_ats_client/models/encoding_enum.rb +46 -0
  136. data/lib/merge_ats_client/models/end_user_details_request.rb +163 -27
  137. data/lib/merge_ats_client/models/error_validation_problem.rb +260 -0
  138. data/lib/merge_ats_client/models/gender_enum.rb +17 -7
  139. data/lib/merge_ats_client/models/generate_remote_key_request.rb +20 -1
  140. data/lib/merge_ats_client/models/ignore_common_model.rb +247 -0
  141. data/lib/merge_ats_client/models/ignore_common_model_request.rb +256 -0
  142. data/lib/merge_ats_client/models/issue.rb +2 -2
  143. data/lib/merge_ats_client/models/issue_status_enum.rb +17 -7
  144. data/lib/merge_ats_client/models/job.rb +39 -6
  145. data/lib/merge_ats_client/models/job_interview_stage.rb +17 -7
  146. data/lib/merge_ats_client/models/job_status_enum.rb +17 -7
  147. data/lib/merge_ats_client/models/link_token.rb +14 -5
  148. data/lib/merge_ats_client/models/linked_account_status.rb +237 -0
  149. data/lib/merge_ats_client/models/{scorecard_request.rb → meta_response.rb} +45 -70
  150. data/lib/merge_ats_client/models/method_enum.rb +17 -7
  151. data/lib/merge_ats_client/models/model_operation.rb +1 -1
  152. data/lib/merge_ats_client/models/{scheduled_interview_request.rb → multipart_form_field_request.rb} +115 -106
  153. data/lib/merge_ats_client/models/offer.rb +16 -8
  154. data/lib/merge_ats_client/models/offer_status_enum.rb +17 -7
  155. data/lib/merge_ats_client/models/office.rb +17 -7
  156. data/lib/merge_ats_client/models/overall_recommendation_enum.rb +17 -7
  157. data/lib/merge_ats_client/models/paginated_activity_list.rb +1 -1
  158. data/lib/merge_ats_client/models/paginated_application_list.rb +1 -1
  159. data/lib/merge_ats_client/models/paginated_attachment_list.rb +1 -1
  160. data/lib/merge_ats_client/models/paginated_candidate_list.rb +1 -1
  161. data/lib/merge_ats_client/models/paginated_department_list.rb +1 -1
  162. data/lib/merge_ats_client/models/paginated_eeoc_list.rb +1 -1
  163. data/lib/merge_ats_client/models/paginated_issue_list.rb +1 -1
  164. data/lib/merge_ats_client/models/paginated_job_interview_stage_list.rb +1 -1
  165. data/lib/merge_ats_client/models/paginated_job_list.rb +1 -1
  166. data/lib/merge_ats_client/models/paginated_offer_list.rb +1 -1
  167. data/lib/merge_ats_client/models/paginated_office_list.rb +1 -1
  168. data/lib/merge_ats_client/models/paginated_reject_reason_list.rb +1 -1
  169. data/lib/merge_ats_client/models/paginated_remote_user_list.rb +1 -1
  170. data/lib/merge_ats_client/models/paginated_scheduled_interview_list.rb +1 -1
  171. data/lib/merge_ats_client/models/paginated_scorecard_list.rb +1 -1
  172. data/lib/merge_ats_client/models/paginated_sync_status_list.rb +1 -1
  173. data/lib/merge_ats_client/models/paginated_tag_list.rb +1 -1
  174. data/lib/merge_ats_client/models/phone_number.rb +2 -2
  175. data/lib/merge_ats_client/models/phone_number_request.rb +2 -2
  176. data/lib/merge_ats_client/models/phone_number_type_enum.rb +17 -7
  177. data/lib/merge_ats_client/models/race_enum.rb +17 -7
  178. data/lib/merge_ats_client/models/reason_enum.rb +46 -0
  179. data/lib/merge_ats_client/models/reject_reason.rb +17 -7
  180. data/lib/merge_ats_client/models/remote_data.rb +1 -1
  181. data/lib/merge_ats_client/models/remote_key.rb +1 -1
  182. data/lib/merge_ats_client/models/remote_key_for_regeneration_request.rb +20 -1
  183. data/lib/merge_ats_client/models/remote_response.rb +24 -10
  184. data/lib/merge_ats_client/models/remote_user.rb +17 -7
  185. data/lib/merge_ats_client/models/request_format_enum.rb +18 -7
  186. data/lib/merge_ats_client/models/response_type_enum.rb +45 -0
  187. data/lib/merge_ats_client/models/scheduled_interview.rb +16 -9
  188. data/lib/merge_ats_client/models/scheduled_interview_status_enum.rb +17 -7
  189. data/lib/merge_ats_client/models/scorecard.rb +16 -9
  190. data/lib/merge_ats_client/models/sync_status.rb +1 -11
  191. data/lib/merge_ats_client/models/sync_status_status_enum.rb +19 -9
  192. data/lib/merge_ats_client/models/tag.rb +17 -7
  193. data/lib/merge_ats_client/models/update_application_stage_request.rb +244 -0
  194. data/lib/merge_ats_client/models/url.rb +2 -2
  195. data/lib/merge_ats_client/models/url_request.rb +2 -2
  196. data/lib/merge_ats_client/models/url_type_enum.rb +18 -7
  197. data/lib/merge_ats_client/models/{remote_data_request.rb → validation_problem_source.rb} +14 -25
  198. data/lib/merge_ats_client/models/veteran_status_enum.rb +17 -7
  199. data/lib/merge_ats_client/models/visibility_enum.rb +17 -7
  200. data/lib/merge_ats_client/models/warning_validation_problem.rb +260 -0
  201. data/lib/merge_ats_client/models/webhook_receiver.rb +246 -0
  202. data/lib/merge_ats_client/models/{end_user_details.rb → webhook_receiver_request.rb} +60 -69
  203. data/lib/merge_ats_client/version.rb +1 -1
  204. data/lib/merge_ats_client.rb +24 -4
  205. data/spec/api/account_details_api_spec.rb +1 -0
  206. data/spec/api/account_token_api_spec.rb +1 -1
  207. data/spec/api/activities_api_spec.rb +6 -1
  208. data/spec/api/applications_api_spec.rb +46 -1
  209. data/spec/api/attachments_api_spec.rb +33 -1
  210. data/spec/api/available_actions_api_spec.rb +1 -1
  211. data/spec/api/candidates_api_spec.rb +44 -1
  212. data/spec/api/departments_api_spec.rb +4 -1
  213. data/spec/api/eeocs_api_spec.rb +6 -1
  214. data/spec/api/force_resync_api_spec.rb +46 -0
  215. data/spec/api/interviews_api_spec.rb +6 -1
  216. data/spec/api/issues_api_spec.rb +9 -5
  217. data/spec/api/job_interview_stages_api_spec.rb +4 -1
  218. data/spec/api/jobs_api_spec.rb +8 -1
  219. data/spec/api/link_token_api_spec.rb +2 -2
  220. data/spec/api/linked_accounts_api_spec.rb +11 -10
  221. data/spec/api/offers_api_spec.rb +6 -1
  222. data/spec/api/offices_api_spec.rb +4 -1
  223. data/spec/api/passthrough_api_spec.rb +2 -2
  224. data/spec/api/regenerate_key_api_spec.rb +3 -5
  225. data/spec/api/reject_reasons_api_spec.rb +4 -1
  226. data/spec/api/scorecards_api_spec.rb +6 -1
  227. data/spec/api/sync_status_api_spec.rb +8 -5
  228. data/spec/api/tags_api_spec.rb +3 -1
  229. data/spec/api/users_api_spec.rb +7 -1
  230. data/spec/api/webhook_receivers_api_spec.rb +58 -0
  231. data/spec/models/access_role_enum_spec.rb +1 -1
  232. data/spec/models/account_details_and_actions_spec.rb +18 -0
  233. data/spec/models/account_details_spec.rb +18 -0
  234. data/spec/models/account_integration_spec.rb +7 -1
  235. data/spec/models/account_token_spec.rb +7 -1
  236. data/spec/models/activity_spec.rb +13 -1
  237. data/spec/models/activity_type_enum_spec.rb +1 -1
  238. data/spec/models/application_endpoint_request_spec.rb +40 -0
  239. data/spec/models/application_request_spec.rb +25 -1
  240. data/spec/models/{end_user_details_spec.rb → application_response_spec.rb} +11 -15
  241. data/spec/models/application_spec.rb +19 -7
  242. data/spec/models/attachment_endpoint_request_spec.rb +40 -0
  243. data/spec/models/attachment_request_spec.rb +12 -0
  244. data/spec/models/attachment_response_spec.rb +52 -0
  245. data/spec/models/attachment_spec.rb +25 -1
  246. data/spec/models/available_actions_spec.rb +1 -1
  247. data/spec/models/candidate_endpoint_request_spec.rb +40 -0
  248. data/spec/models/candidate_request_spec.rb +37 -1
  249. data/spec/models/{data_passthrough_spec.rb → candidate_response_spec.rb} +11 -11
  250. data/spec/models/candidate_spec.rb +19 -1
  251. data/spec/models/data_passthrough_request_spec.rb +19 -1
  252. data/spec/models/debug_mode_log_spec.rb +46 -0
  253. data/spec/models/debug_model_log_summary_spec.rb +46 -0
  254. data/spec/models/department_spec.rb +13 -1
  255. data/spec/models/disability_status_enum_spec.rb +1 -1
  256. data/spec/models/eeoc_spec.rb +13 -1
  257. data/spec/models/email_address_request_spec.rb +1 -1
  258. data/spec/models/email_address_spec.rb +1 -1
  259. data/spec/models/email_address_type_enum_spec.rb +1 -1
  260. data/spec/models/encoding_enum_spec.rb +28 -0
  261. data/spec/models/end_user_details_request_spec.rb +19 -5
  262. data/spec/models/error_validation_problem_spec.rb +52 -0
  263. data/spec/models/gender_enum_spec.rb +1 -1
  264. data/spec/models/ignore_common_model_request_spec.rb +40 -0
  265. data/spec/models/ignore_common_model_spec.rb +40 -0
  266. data/spec/models/job_interview_stage_spec.rb +13 -1
  267. data/spec/models/job_spec.rb +37 -1
  268. data/spec/models/job_status_enum_spec.rb +1 -1
  269. data/spec/models/link_token_spec.rb +7 -1
  270. data/spec/models/linked_account_status_spec.rb +40 -0
  271. data/spec/models/meta_response_spec.rb +52 -0
  272. data/spec/models/method_enum_spec.rb +1 -1
  273. data/spec/models/model_operation_spec.rb +13 -1
  274. data/spec/models/{remote_user_request_spec.rb → multipart_form_field_request_spec.rb} +11 -23
  275. data/spec/models/offer_spec.rb +13 -1
  276. data/spec/models/offer_status_enum_spec.rb +1 -1
  277. data/spec/models/office_spec.rb +13 -1
  278. data/spec/models/overall_recommendation_enum_spec.rb +1 -1
  279. data/spec/models/paginated_activity_list_spec.rb +1 -1
  280. data/spec/models/paginated_application_list_spec.rb +1 -1
  281. data/spec/models/paginated_attachment_list_spec.rb +1 -1
  282. data/spec/models/paginated_candidate_list_spec.rb +1 -1
  283. data/spec/models/paginated_department_list_spec.rb +1 -1
  284. data/spec/models/paginated_eeoc_list_spec.rb +1 -1
  285. data/spec/models/paginated_job_interview_stage_list_spec.rb +1 -1
  286. data/spec/models/paginated_job_list_spec.rb +1 -1
  287. data/spec/models/paginated_offer_list_spec.rb +1 -1
  288. data/spec/models/paginated_office_list_spec.rb +1 -1
  289. data/spec/models/paginated_reject_reason_list_spec.rb +1 -1
  290. data/spec/models/paginated_remote_user_list_spec.rb +1 -1
  291. data/spec/models/paginated_scheduled_interview_list_spec.rb +1 -1
  292. data/spec/models/paginated_scorecard_list_spec.rb +1 -1
  293. data/spec/models/paginated_tag_list_spec.rb +1 -1
  294. data/spec/models/phone_number_request_spec.rb +1 -1
  295. data/spec/models/phone_number_spec.rb +1 -1
  296. data/spec/models/phone_number_type_enum_spec.rb +1 -1
  297. data/spec/models/race_enum_spec.rb +1 -1
  298. data/spec/models/reason_enum_spec.rb +28 -0
  299. data/spec/models/reject_reason_spec.rb +13 -1
  300. data/spec/models/remote_data_spec.rb +1 -1
  301. data/spec/models/remote_key_for_regeneration_request_spec.rb +1 -1
  302. data/spec/models/remote_key_spec.rb +1 -1
  303. data/spec/models/remote_response_spec.rb +13 -1
  304. data/spec/models/remote_user_spec.rb +13 -1
  305. data/spec/models/response_type_enum_spec.rb +28 -0
  306. data/spec/models/scheduled_interview_spec.rb +13 -1
  307. data/spec/models/scheduled_interview_status_enum_spec.rb +1 -1
  308. data/spec/models/scorecard_spec.rb +13 -1
  309. data/spec/models/sync_status_spec.rb +1 -1
  310. data/spec/models/tag_spec.rb +13 -1
  311. data/spec/models/update_application_stage_request_spec.rb +40 -0
  312. data/spec/models/url_request_spec.rb +1 -1
  313. data/spec/models/url_spec.rb +1 -1
  314. data/spec/models/url_type_enum_spec.rb +1 -1
  315. data/spec/models/{remote_key_for_regeneration_spec.rb → validation_problem_source_spec.rb} +8 -8
  316. data/spec/models/veteran_status_enum_spec.rb +1 -1
  317. data/spec/models/visibility_enum_spec.rb +1 -1
  318. data/spec/models/warning_validation_problem_spec.rb +52 -0
  319. data/spec/models/webhook_receiver_request_spec.rb +46 -0
  320. data/spec/models/webhook_receiver_spec.rb +46 -0
  321. metadata +186 -123
  322. data/config.json +0 -2
  323. data/docs/DataPassthrough.md +0 -24
  324. data/docs/EndUserDetails.md +0 -24
  325. data/docs/PatchedApplicationRequest.md +0 -34
  326. data/docs/RemoteKeyForRegeneration.md +0 -18
  327. data/docs/RemoteUserRequest.md +0 -30
  328. data/docs/ScheduledInterviewRequest.md +0 -38
  329. data/docs/ScorecardRequest.md +0 -30
  330. data/lib/merge_ats_client/models/patched_application_request.rb +0 -309
  331. data/lib/merge_ats_client/models/remote_user_request.rb +0 -302
  332. data/merge_ats_client-1.0.3.gem +0 -0
  333. data/spec/models/patched_application_request_spec.rb +0 -82
  334. data/spec/models/scheduled_interview_request_spec.rb +0 -94
  335. data/spec/models/scorecard_request_spec.rb +0 -70
  336. data/test_ats.rb +0 -22
  337. data/test_signature.rb +0 -32
@@ -1,302 +0,0 @@
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
- # # 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
21
-
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
39
-
40
- # Attribute mapping from ruby-style variable name to JSON key.
41
- def self.attribute_map
42
- {
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'
50
- }
51
- end
52
-
53
- # Returns all the JSON keys this model knows about
54
- def self.acceptable_attributes
55
- attribute_map.values
56
- end
57
-
58
- # Attribute type mapping.
59
- def self.openapi_types
60
- {
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'
68
- }
69
- end
70
-
71
- # List of attributes with nullable: true
72
- def self.openapi_nullable
73
- Set.new([
74
- :'remote_id',
75
- :'first_name',
76
- :'last_name',
77
- :'email',
78
- :'disabled',
79
- :'remote_created_at',
80
- :'access_role'
81
- ])
82
- end
83
-
84
- # Initializes the object
85
- # @param [Hash] attributes Model attributes in the form of hash
86
- def initialize(attributes = {})
87
- if (!attributes.is_a?(Hash))
88
- fail ArgumentError, "The input argument (attributes) must be a hash in `MergeATSClient::RemoteUserRequest` initialize method"
89
- end
90
-
91
- # check to see if the attribute exists and convert string to symbol for hash key
92
- attributes = attributes.each_with_object({}) { |(k, v), h|
93
- 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
95
- end
96
- h[k.to_sym] = v
97
- }
98
-
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']
109
- end
110
-
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']
125
- end
126
- end
127
-
128
- # Show invalid properties with the reasons. Usually used together with valid?
129
- # @return Array for valid properties with the reasons
130
- def list_invalid_properties
131
- 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.')
134
- end
135
-
136
- invalid_properties
137
- end
138
-
139
- # Check to see if the all the properties in the model are valid
140
- # @return true if the model is valid
141
- def valid?
142
- return false if !@email.nil? && @email.to_s.length > 254
143
- true
144
- end
145
-
146
- # 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.'
151
- end
152
-
153
- @email = email
154
- end
155
-
156
- # Checks equality by comparing each attribute.
157
- # @param [Object] Object to be compared
158
- def ==(o)
159
- return true if self.equal?(o)
160
- 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
168
- end
169
-
170
- # @see the `==` method
171
- # @param [Object] Object to be compared
172
- def eql?(o)
173
- self == o
174
- end
175
-
176
- # Calculates hash code according to all attributes.
177
- # @return [Integer] Hash code
178
- def hash
179
- [remote_id, first_name, last_name, email, disabled, remote_created_at, access_role].hash
180
- end
181
-
182
- # Builds the object from hash
183
- # @param [Hash] attributes Model attributes in the form of hash
184
- # @return [Object] Returns the model itself
185
- def self.build_from_hash(attributes)
186
- new.build_from_hash(attributes)
187
- end
188
-
189
- # Builds the object from hash
190
- # @param [Hash] attributes Model attributes in the form of hash
191
- # @return [Object] Returns the model itself
192
- def build_from_hash(attributes)
193
- return nil unless attributes.is_a?(Hash)
194
- self.class.openapi_types.each_pair do |key, type|
195
- if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
196
- self.send("#{key}=", nil)
197
- elsif type =~ /\AArray<(.*)>/i
198
- # check to ensure the input is an array given that the attribute
199
- # is documented as an array but the input is not
200
- if attributes[self.class.attribute_map[key]].is_a?(Array)
201
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
202
- end
203
- elsif !attributes[self.class.attribute_map[key]].nil?
204
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
205
- end
206
- end
207
-
208
- self
209
- end
210
-
211
- # Deserializes the data based on type
212
- # @param string type Data type
213
- # @param string value Value to be deserialized
214
- # @return [Object] Deserialized data
215
- def _deserialize(type, value)
216
- case type.to_sym
217
- when :Time
218
- Time.parse(value)
219
- when :Date
220
- Date.parse(value)
221
- when :String
222
- value.to_s
223
- when :Integer
224
- value.to_i
225
- when :Float
226
- value.to_f
227
- when :Boolean
228
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
229
- true
230
- else
231
- false
232
- end
233
- when :Object
234
- # generic object (usually a Hash), return directly
235
- value
236
- when /\AArray<(?<inner_type>.+)>\z/
237
- inner_type = Regexp.last_match[:inner_type]
238
- value.map { |v| _deserialize(inner_type, v) }
239
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
240
- k_type = Regexp.last_match[:k_type]
241
- v_type = Regexp.last_match[:v_type]
242
- {}.tap do |hash|
243
- value.each do |k, v|
244
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
245
- end
246
- end
247
- else # model
248
- # models (e.g. Pet) or oneOf
249
- klass = MergeATSClient.const_get(type)
250
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
251
- end
252
- end
253
-
254
- # Returns the string representation of the object
255
- # @return [String] String presentation of the object
256
- def to_s
257
- to_hash.to_s
258
- end
259
-
260
- # to_body is an alias to to_hash (backward compatibility)
261
- # @return [Hash] Returns the object in the form of hash
262
- def to_body
263
- to_hash
264
- end
265
-
266
- # Returns the object in the form of hash
267
- # @return [Hash] Returns the object in the form of hash
268
- def to_hash
269
- hash = {}
270
- self.class.attribute_map.each_pair do |attr, param|
271
- value = self.send(attr)
272
- if value.nil?
273
- is_nullable = self.class.openapi_nullable.include?(attr)
274
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
275
- end
276
-
277
- hash[param] = _to_hash(value)
278
- end
279
- hash
280
- end
281
-
282
- # Outputs non-array value in the form of hash
283
- # For object, use to_hash. Otherwise, just return the value
284
- # @param [Object] value Any valid value
285
- # @return [Hash] Returns the value in the form of hash
286
- def _to_hash(value)
287
- if value.is_a?(Array)
288
- value.compact.map { |v| _to_hash(v) }
289
- elsif value.is_a?(Hash)
290
- {}.tap do |hash|
291
- value.each { |k, v| hash[k] = _to_hash(v) }
292
- end
293
- elsif value.respond_to? :to_hash
294
- value.to_hash
295
- else
296
- value
297
- end
298
- end
299
-
300
- end
301
-
302
- end
Binary file
@@ -1,82 +0,0 @@
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.0.0
10
-
11
- =end
12
-
13
- require 'spec_helper'
14
- require 'json'
15
- require 'date'
16
-
17
- # Unit tests for MergeATSClient::PatchedApplicationRequest
18
- # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
- # Please update as you see appropriate
20
- describe MergeATSClient::PatchedApplicationRequest do
21
- let(:instance) { MergeATSClient::PatchedApplicationRequest.new }
22
-
23
- describe 'test an instance of PatchedApplicationRequest' do
24
- it 'should create an instance of PatchedApplicationRequest' do
25
- expect(instance).to be_instance_of(MergeATSClient::PatchedApplicationRequest)
26
- end
27
- end
28
- describe 'test attribute "remote_id"' do
29
- it 'should work' do
30
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
31
- end
32
- end
33
-
34
- describe 'test attribute "candidate"' do
35
- it 'should work' do
36
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
37
- end
38
- end
39
-
40
- describe 'test attribute "job"' do
41
- it 'should work' do
42
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
43
- end
44
- end
45
-
46
- describe 'test attribute "applied_at"' do
47
- it 'should work' do
48
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
49
- end
50
- end
51
-
52
- describe 'test attribute "rejected_at"' do
53
- it 'should work' do
54
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
55
- end
56
- end
57
-
58
- describe 'test attribute "source"' do
59
- it 'should work' do
60
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
61
- end
62
- end
63
-
64
- describe 'test attribute "credited_to"' do
65
- it 'should work' do
66
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
67
- end
68
- end
69
-
70
- describe 'test attribute "current_stage"' do
71
- it 'should work' do
72
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
73
- end
74
- end
75
-
76
- describe 'test attribute "reject_reason"' do
77
- it 'should work' do
78
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
79
- end
80
- end
81
-
82
- end
@@ -1,94 +0,0 @@
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 'spec_helper'
14
- require 'json'
15
- require 'date'
16
-
17
- # Unit tests for MergeATSClient::ScheduledInterviewRequest
18
- # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
- # Please update as you see appropriate
20
- describe MergeATSClient::ScheduledInterviewRequest do
21
- let(:instance) { MergeATSClient::ScheduledInterviewRequest.new }
22
-
23
- describe 'test an instance of ScheduledInterviewRequest' do
24
- it 'should create an instance of ScheduledInterviewRequest' do
25
- expect(instance).to be_instance_of(MergeATSClient::ScheduledInterviewRequest)
26
- end
27
- end
28
- describe 'test attribute "remote_id"' do
29
- it 'should work' do
30
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
31
- end
32
- end
33
-
34
- describe 'test attribute "application"' do
35
- it 'should work' do
36
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
37
- end
38
- end
39
-
40
- describe 'test attribute "job_interview_stage"' do
41
- it 'should work' do
42
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
43
- end
44
- end
45
-
46
- describe 'test attribute "organizer"' do
47
- it 'should work' do
48
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
49
- end
50
- end
51
-
52
- describe 'test attribute "interviewers"' do
53
- it 'should work' do
54
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
55
- end
56
- end
57
-
58
- describe 'test attribute "location"' do
59
- it 'should work' do
60
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
61
- end
62
- end
63
-
64
- describe 'test attribute "start_at"' do
65
- it 'should work' do
66
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
67
- end
68
- end
69
-
70
- describe 'test attribute "end_at"' do
71
- it 'should work' do
72
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
73
- end
74
- end
75
-
76
- describe 'test attribute "remote_created_at"' do
77
- it 'should work' do
78
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
79
- end
80
- end
81
-
82
- describe 'test attribute "remote_updated_at"' do
83
- it 'should work' do
84
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
85
- end
86
- end
87
-
88
- describe 'test attribute "status"' do
89
- it 'should work' do
90
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
91
- end
92
- end
93
-
94
- end
@@ -1,70 +0,0 @@
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 'spec_helper'
14
- require 'json'
15
- require 'date'
16
-
17
- # Unit tests for MergeATSClient::ScorecardRequest
18
- # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
- # Please update as you see appropriate
20
- describe MergeATSClient::ScorecardRequest do
21
- let(:instance) { MergeATSClient::ScorecardRequest.new }
22
-
23
- describe 'test an instance of ScorecardRequest' do
24
- it 'should create an instance of ScorecardRequest' do
25
- expect(instance).to be_instance_of(MergeATSClient::ScorecardRequest)
26
- end
27
- end
28
- describe 'test attribute "remote_id"' do
29
- it 'should work' do
30
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
31
- end
32
- end
33
-
34
- describe 'test attribute "application"' do
35
- it 'should work' do
36
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
37
- end
38
- end
39
-
40
- describe 'test attribute "interview"' do
41
- it 'should work' do
42
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
43
- end
44
- end
45
-
46
- describe 'test attribute "interviewer"' do
47
- it 'should work' do
48
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
49
- end
50
- end
51
-
52
- describe 'test attribute "remote_created_at"' do
53
- it 'should work' do
54
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
55
- end
56
- end
57
-
58
- describe 'test attribute "submitted_at"' do
59
- it 'should work' do
60
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
61
- end
62
- end
63
-
64
- describe 'test attribute "overall_recommendation"' do
65
- it 'should work' do
66
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
67
- end
68
- end
69
-
70
- end
data/test_ats.rb DELETED
@@ -1,22 +0,0 @@
1
- require 'merge_ats_client'
2
-
3
- MergeATSClient.configure do |config|
4
- config.api_key["Authorization"] = "gCTNlqHbmF3z2mGRh92StFH2mtOwF50mtvvs4aX-0ntwI_AbGtrB1g"
5
- config.api_key_prefix['Authorization'] = 'Bearer'
6
- end
7
- x_account_token = "NBfCj-FLWuB7gkD9-lhmsuK7Et2bc04dnYMyAtVY0nX8PVCchrcjvg"
8
- expand = "applications,attachments"
9
- opts = {expand: expand}
10
- api_instance = MergeATSClient::CandidatesApi.new
11
- p = MergeATSClient::DataPassthroughRequest.new
12
- p.method = "GET"
13
- p.path = "/test"
14
- p.headers = {"a": "b"}
15
- begin
16
- result = p.candidates_list(x_account_token, opts)
17
- puts result.class
18
- puts result.results.first()
19
- puts result.results.first().attachments.first().class
20
- rescue MergeATSClient::ApiError => e
21
- puts "Exception when calling CandidatesApi->candidates_retrieve: #{e}"
22
- end
data/test_signature.rb DELETED
@@ -1,32 +0,0 @@
1
-
2
- require "base64"
3
- require 'openssl'
4
- require 'json'
5
-
6
- '''signature = "EXAMPLE_SIGNATURE"
7
- payload = {model: "a", pk: "b", fields: "c"}
8
- json_payload = payload.to_json
9
- puts json_payload
10
- hmax_2 = OpenSSL::HMAC.digest(OpenSSL::Digest.new('sha256'), signature, json_payload)
11
- puts "from SO: "
12
- puts hmax_2
13
-
14
- b64_encoded2 = Base64.encode64(hmax_2).strip!
15
- puts "decoded 2: "
16
- puts hmax_2'''
17
- # b64_encoded == request.env["X-Merge-Webhook-Signature"]
18
-
19
-
20
-
21
- '''
22
- require "base64"
23
- require "openssl"
24
- require "json"
25
-
26
- signature = "EXAMPLE_SIGNATURE"
27
- payload = request.raw_post
28
- hmac = OpenSSL::HMAC::hexdigest("sha256", signature, payload)
29
- b64_encoded = Base64.encode64(hmac)
30
-
31
- b64_encoded == request.env["X-Merge-Webhook-Signature"]
32
- '''