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
@@ -14,55 +14,31 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module MergeATSClient
17
- # # The ScheduledInterview Object ### Description The `ScheduledInterview` object is used to represent an interview ### Usage Example Fetch from the `LIST ScheduledInterviews` endpoint and filter by `interviewers` to show all office locations.
18
- class ScheduledInterviewRequest
19
- # The third-party API ID of the matching object.
20
- attr_accessor :remote_id
17
+ # # The MultipartFormField Object ### Description The `MultipartFormField` object is used to represent fields in an HTTP request using `multipart/form-data`. ### Usage Example Create a `MultipartFormField` to define a multipart form entry.
18
+ class MultipartFormFieldRequest
19
+ # The name of the form field
20
+ attr_accessor :name
21
21
 
22
- # The application being interviewed.
23
- attr_accessor :application
22
+ # The data for the form field.
23
+ attr_accessor :data
24
24
 
25
- # The stage of the interview.
26
- attr_accessor :job_interview_stage
25
+ # The encoding of the value of `data`. Defaults to `RAW` if not defined.
26
+ attr_accessor :encoding
27
27
 
28
- # The user organizing the interview.
29
- attr_accessor :organizer
28
+ # The file name of the form field, if the field is for a file.
29
+ attr_accessor :file_name
30
30
 
31
- # Array of `RemoteUser` IDs.
32
- attr_accessor :interviewers
33
-
34
- # The interview's location.
35
- attr_accessor :location
36
-
37
- # When the interview was started.
38
- attr_accessor :start_at
39
-
40
- # When the interview was ended.
41
- attr_accessor :end_at
42
-
43
- # When the third party's interview was created.
44
- attr_accessor :remote_created_at
45
-
46
- # When the third party's interview was updated.
47
- attr_accessor :remote_updated_at
48
-
49
- # The interview's status.
50
- attr_accessor :status
31
+ # The MIME type of the file, if the field is for a file.
32
+ attr_accessor :content_type
51
33
 
52
34
  # Attribute mapping from ruby-style variable name to JSON key.
53
35
  def self.attribute_map
54
36
  {
55
- :'remote_id' => :'remote_id',
56
- :'application' => :'application',
57
- :'job_interview_stage' => :'job_interview_stage',
58
- :'organizer' => :'organizer',
59
- :'interviewers' => :'interviewers',
60
- :'location' => :'location',
61
- :'start_at' => :'start_at',
62
- :'end_at' => :'end_at',
63
- :'remote_created_at' => :'remote_created_at',
64
- :'remote_updated_at' => :'remote_updated_at',
65
- :'status' => :'status'
37
+ :'name' => :'name',
38
+ :'data' => :'data',
39
+ :'encoding' => :'encoding',
40
+ :'file_name' => :'file_name',
41
+ :'content_type' => :'content_type'
66
42
  }
67
43
  end
68
44
 
@@ -74,33 +50,20 @@ module MergeATSClient
74
50
  # Attribute type mapping.
75
51
  def self.openapi_types
76
52
  {
77
- :'remote_id' => :'String',
78
- :'application' => :'String',
79
- :'job_interview_stage' => :'String',
80
- :'organizer' => :'String',
81
- :'interviewers' => :'Array<String>',
82
- :'location' => :'String',
83
- :'start_at' => :'Time',
84
- :'end_at' => :'Time',
85
- :'remote_created_at' => :'Time',
86
- :'remote_updated_at' => :'Time',
87
- :'status' => :'ScheduledInterviewStatusEnum'
53
+ :'name' => :'String',
54
+ :'data' => :'String',
55
+ :'encoding' => :'EncodingEnum',
56
+ :'file_name' => :'String',
57
+ :'content_type' => :'String'
88
58
  }
89
59
  end
90
60
 
91
61
  # List of attributes with nullable: true
92
62
  def self.openapi_nullable
93
63
  Set.new([
94
- :'remote_id',
95
- :'application',
96
- :'job_interview_stage',
97
- :'organizer',
98
- :'location',
99
- :'start_at',
100
- :'end_at',
101
- :'remote_created_at',
102
- :'remote_updated_at',
103
- :'status'
64
+ :'encoding',
65
+ :'file_name',
66
+ :'content_type'
104
67
  ])
105
68
  end
106
69
 
@@ -108,93 +71,139 @@ module MergeATSClient
108
71
  # @param [Hash] attributes Model attributes in the form of hash
109
72
  def initialize(attributes = {})
110
73
  if (!attributes.is_a?(Hash))
111
- fail ArgumentError, "The input argument (attributes) must be a hash in `MergeATSClient::ScheduledInterviewRequest` initialize method"
74
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MergeATSClient::MultipartFormFieldRequest` initialize method"
112
75
  end
113
76
 
114
77
  # check to see if the attribute exists and convert string to symbol for hash key
115
78
  attributes = attributes.each_with_object({}) { |(k, v), h|
116
79
  if (!self.class.attribute_map.key?(k.to_sym))
117
- fail ArgumentError, "`#{k}` is not a valid attribute in `MergeATSClient::ScheduledInterviewRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
80
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MergeATSClient::MultipartFormFieldRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
118
81
  end
119
82
  h[k.to_sym] = v
120
83
  }
121
84
 
122
- if attributes.key?(:'remote_id')
123
- self.remote_id = attributes[:'remote_id']
85
+ if attributes.key?(:'name')
86
+ self.name = attributes[:'name']
124
87
  end
125
88
 
126
- if attributes.key?(:'application')
127
- self.application = attributes[:'application']
89
+ if attributes.key?(:'data')
90
+ self.data = attributes[:'data']
128
91
  end
129
92
 
130
- if attributes.key?(:'job_interview_stage')
131
- self.job_interview_stage = attributes[:'job_interview_stage']
93
+ if attributes.key?(:'encoding')
94
+ self.encoding = attributes[:'encoding']
132
95
  end
133
96
 
134
- if attributes.key?(:'organizer')
135
- self.organizer = attributes[:'organizer']
97
+ if attributes.key?(:'file_name')
98
+ self.file_name = attributes[:'file_name']
136
99
  end
137
100
 
138
- if attributes.key?(:'interviewers')
139
- if (value = attributes[:'interviewers']).is_a?(Array)
140
- self.interviewers = value
141
- end
101
+ if attributes.key?(:'content_type')
102
+ self.content_type = attributes[:'content_type']
142
103
  end
104
+ end
143
105
 
144
- if attributes.key?(:'location')
145
- self.location = attributes[:'location']
106
+ # Show invalid properties with the reasons. Usually used together with valid?
107
+ # @return Array for valid properties with the reasons
108
+ def list_invalid_properties
109
+ invalid_properties = Array.new
110
+ if @name.nil?
111
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
146
112
  end
147
113
 
148
- if attributes.key?(:'start_at')
149
- self.start_at = attributes[:'start_at']
114
+ if @name.to_s.length < 1
115
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
150
116
  end
151
117
 
152
- if attributes.key?(:'end_at')
153
- self.end_at = attributes[:'end_at']
118
+ if @data.nil?
119
+ invalid_properties.push('invalid value for "data", data cannot be nil.')
154
120
  end
155
121
 
156
- if attributes.key?(:'remote_created_at')
157
- self.remote_created_at = attributes[:'remote_created_at']
122
+ if @data.to_s.length < 1
123
+ invalid_properties.push('invalid value for "data", the character length must be great than or equal to 1.')
158
124
  end
159
125
 
160
- if attributes.key?(:'remote_updated_at')
161
- self.remote_updated_at = attributes[:'remote_updated_at']
126
+ if !@file_name.nil? && @file_name.to_s.length < 1
127
+ invalid_properties.push('invalid value for "file_name", the character length must be great than or equal to 1.')
162
128
  end
163
129
 
164
- if attributes.key?(:'status')
165
- self.status = attributes[:'status']
130
+ if !@content_type.nil? && @content_type.to_s.length < 1
131
+ invalid_properties.push('invalid value for "content_type", the character length must be great than or equal to 1.')
166
132
  end
167
- end
168
133
 
169
- # Show invalid properties with the reasons. Usually used together with valid?
170
- # @return Array for valid properties with the reasons
171
- def list_invalid_properties
172
- invalid_properties = Array.new
173
134
  invalid_properties
174
135
  end
175
136
 
176
137
  # Check to see if the all the properties in the model are valid
177
138
  # @return true if the model is valid
178
139
  def valid?
140
+ return false if @name.nil?
141
+ return false if @name.to_s.length < 1
142
+ return false if @data.nil?
143
+ return false if @data.to_s.length < 1
144
+ return false if !@file_name.nil? && @file_name.to_s.length < 1
145
+ return false if !@content_type.nil? && @content_type.to_s.length < 1
179
146
  true
180
147
  end
181
148
 
149
+ # Custom attribute writer method with validation
150
+ # @param [Object] name Value to be assigned
151
+ def name=(name)
152
+ if name.nil?
153
+ fail ArgumentError, 'name cannot be nil'
154
+ end
155
+
156
+ if name.to_s.length < 1
157
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
158
+ end
159
+
160
+ @name = name
161
+ end
162
+
163
+ # Custom attribute writer method with validation
164
+ # @param [Object] data Value to be assigned
165
+ def data=(data)
166
+ if data.nil?
167
+ fail ArgumentError, 'data cannot be nil'
168
+ end
169
+
170
+ if data.to_s.length < 1
171
+ fail ArgumentError, 'invalid value for "data", the character length must be great than or equal to 1.'
172
+ end
173
+
174
+ @data = data
175
+ end
176
+
177
+ # Custom attribute writer method with validation
178
+ # @param [Object] file_name Value to be assigned
179
+ def file_name=(file_name)
180
+ if !file_name.nil? && file_name.to_s.length < 1
181
+ fail ArgumentError, 'invalid value for "file_name", the character length must be great than or equal to 1.'
182
+ end
183
+
184
+ @file_name = file_name
185
+ end
186
+
187
+ # Custom attribute writer method with validation
188
+ # @param [Object] content_type Value to be assigned
189
+ def content_type=(content_type)
190
+ if !content_type.nil? && content_type.to_s.length < 1
191
+ fail ArgumentError, 'invalid value for "content_type", the character length must be great than or equal to 1.'
192
+ end
193
+
194
+ @content_type = content_type
195
+ end
196
+
182
197
  # Checks equality by comparing each attribute.
183
198
  # @param [Object] Object to be compared
184
199
  def ==(o)
185
200
  return true if self.equal?(o)
186
201
  self.class == o.class &&
187
- remote_id == o.remote_id &&
188
- application == o.application &&
189
- job_interview_stage == o.job_interview_stage &&
190
- organizer == o.organizer &&
191
- interviewers == o.interviewers &&
192
- location == o.location &&
193
- start_at == o.start_at &&
194
- end_at == o.end_at &&
195
- remote_created_at == o.remote_created_at &&
196
- remote_updated_at == o.remote_updated_at &&
197
- status == o.status
202
+ name == o.name &&
203
+ data == o.data &&
204
+ encoding == o.encoding &&
205
+ file_name == o.file_name &&
206
+ content_type == o.content_type
198
207
  end
199
208
 
200
209
  # @see the `==` method
@@ -206,7 +215,7 @@ module MergeATSClient
206
215
  # Calculates hash code according to all attributes.
207
216
  # @return [Integer] Hash code
208
217
  def hash
209
- [remote_id, application, job_interview_stage, organizer, interviewers, location, start_at, end_at, remote_created_at, remote_updated_at, status].hash
218
+ [name, data, encoding, file_name, content_type].hash
210
219
  end
211
220
 
212
221
  # Builds the object from hash
@@ -249,7 +258,7 @@ module MergeATSClient
249
258
  when :Date
250
259
  Date.parse(value)
251
260
  when :String
252
- value.to_s
261
+ value
253
262
  when :Integer
254
263
  value.to_i
255
264
  when :Float
@@ -14,17 +14,15 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module MergeATSClient
17
- # # The Offer Object ### Description The `Offer` object is used to represent an offer for an application. ### Usage Example Fetch from the `LIST Offers` endpoint and filter by `ID` to show all offers.
17
+ # # The Offer Object ### Description The `Offer` object is used to represent an offer for an application. ### Usage Example Fetch from the `LIST Offers` endpoint and filter by `ID` to show all offers.
18
18
  class Offer
19
19
  attr_accessor :id
20
20
 
21
21
  # The third-party API ID of the matching object.
22
22
  attr_accessor :remote_id
23
23
 
24
- # The application who is receiving the offer.
25
24
  attr_accessor :application
26
25
 
27
- # The user who created the offer.
28
26
  attr_accessor :creator
29
27
 
30
28
  # When the third party's offer was created.
@@ -44,6 +42,9 @@ module MergeATSClient
44
42
 
45
43
  attr_accessor :remote_data
46
44
 
45
+ # Indicates whether or not this object has been deleted by third party webhooks.
46
+ attr_accessor :remote_was_deleted
47
+
47
48
  # Attribute mapping from ruby-style variable name to JSON key.
48
49
  def self.attribute_map
49
50
  {
@@ -56,7 +57,8 @@ module MergeATSClient
56
57
  :'sent_at' => :'sent_at',
57
58
  :'start_date' => :'start_date',
58
59
  :'status' => :'status',
59
- :'remote_data' => :'remote_data'
60
+ :'remote_data' => :'remote_data',
61
+ :'remote_was_deleted' => :'remote_was_deleted'
60
62
  }
61
63
  end
62
64
 
@@ -77,7 +79,8 @@ module MergeATSClient
77
79
  :'sent_at' => :'Time',
78
80
  :'start_date' => :'Time',
79
81
  :'status' => :'OfferStatusEnum',
80
- :'remote_data' => :'Array<RemoteData>'
82
+ :'remote_data' => :'Array<RemoteData>',
83
+ :'remote_was_deleted' => :'Boolean'
81
84
  }
82
85
  end
83
86
 
@@ -92,7 +95,7 @@ module MergeATSClient
92
95
  :'sent_at',
93
96
  :'start_date',
94
97
  :'status',
95
- :'remote_data'
98
+ :'remote_data',
96
99
  ])
97
100
  end
98
101
 
@@ -152,6 +155,10 @@ module MergeATSClient
152
155
  self.remote_data = value
153
156
  end
154
157
  end
158
+
159
+ if attributes.key?(:'remote_was_deleted')
160
+ self.remote_was_deleted = attributes[:'remote_was_deleted']
161
+ end
155
162
  end
156
163
 
157
164
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -181,7 +188,8 @@ module MergeATSClient
181
188
  sent_at == o.sent_at &&
182
189
  start_date == o.start_date &&
183
190
  status == o.status &&
184
- remote_data == o.remote_data
191
+ remote_data == o.remote_data &&
192
+ remote_was_deleted == o.remote_was_deleted
185
193
  end
186
194
 
187
195
  # @see the `==` method
@@ -193,7 +201,7 @@ module MergeATSClient
193
201
  # Calculates hash code according to all attributes.
194
202
  # @return [Integer] Hash code
195
203
  def hash
196
- [id, remote_id, application, creator, remote_created_at, closed_at, sent_at, start_date, status, remote_data].hash
204
+ [id, remote_id, application, creator, remote_created_at, closed_at, sent_at, start_date, status, remote_data, remote_was_deleted].hash
197
205
  end
198
206
 
199
207
  # Builds the object from hash
@@ -25,18 +25,28 @@ module MergeATSClient
25
25
  SIGNED = "SIGNED".freeze
26
26
  DEPRECATED = "DEPRECATED".freeze
27
27
 
28
- # Builds the enum from string
29
- # @param [String] The enum value in the form of the string
30
- # @return [String] The enum value
31
- def self.build_from_hash(value)
32
- new.build_from_hash(value)
33
- end
28
+ MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
29
+
30
+ attr_accessor :value
31
+ attr_accessor :raw_value
34
32
 
35
33
  # Builds the enum from string
36
34
  # @param [String] The enum value in the form of the string
37
35
  # @return [String] The enum value
38
36
  def build_from_hash(value)
39
- value
37
+ @raw_value = value
38
+ if ["DRAFT", "APPROVAL-SENT", "APPROVED", "SENT", "SENT-MANUALLY", "OPENED", "DENIED", "SIGNED", "DEPRECATED", ].include? value
39
+ @value = value
40
+ else
41
+ @value = MERGE_NONSTANDARD_VALUE
42
+ end
43
+
44
+ self
45
+ end
46
+
47
+ def self.build_from_hash(value)
48
+ IssueStatusEnum.new.build_from_hash(value)
40
49
  end
41
50
  end
51
+
42
52
  end
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module MergeATSClient
17
- # # The Office Object ### Description The `Office` object is used to represent an office within a company. ### Usage Example Fetch from the `LIST Offices` endpoint and view the offices within a company.
17
+ # # The Office Object ### Description The `Office` object is used to represent an office within a company. ### Usage Example Fetch from the `LIST Offices` endpoint and view the offices within a company.
18
18
  class Office
19
19
  attr_accessor :id
20
20
 
@@ -29,6 +29,9 @@ module MergeATSClient
29
29
 
30
30
  attr_accessor :remote_data
31
31
 
32
+ # Indicates whether or not this object has been deleted by third party webhooks.
33
+ attr_accessor :remote_was_deleted
34
+
32
35
  # Attribute mapping from ruby-style variable name to JSON key.
33
36
  def self.attribute_map
34
37
  {
@@ -36,7 +39,8 @@ module MergeATSClient
36
39
  :'remote_id' => :'remote_id',
37
40
  :'name' => :'name',
38
41
  :'location' => :'location',
39
- :'remote_data' => :'remote_data'
42
+ :'remote_data' => :'remote_data',
43
+ :'remote_was_deleted' => :'remote_was_deleted'
40
44
  }
41
45
  end
42
46
 
@@ -52,7 +56,8 @@ module MergeATSClient
52
56
  :'remote_id' => :'String',
53
57
  :'name' => :'String',
54
58
  :'location' => :'String',
55
- :'remote_data' => :'Array<RemoteData>'
59
+ :'remote_data' => :'Array<RemoteData>',
60
+ :'remote_was_deleted' => :'Boolean'
56
61
  }
57
62
  end
58
63
 
@@ -62,7 +67,7 @@ module MergeATSClient
62
67
  :'remote_id',
63
68
  :'name',
64
69
  :'location',
65
- :'remote_data'
70
+ :'remote_data',
66
71
  ])
67
72
  end
68
73
 
@@ -102,6 +107,10 @@ module MergeATSClient
102
107
  self.remote_data = value
103
108
  end
104
109
  end
110
+
111
+ if attributes.key?(:'remote_was_deleted')
112
+ self.remote_was_deleted = attributes[:'remote_was_deleted']
113
+ end
105
114
  end
106
115
 
107
116
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -126,7 +135,8 @@ module MergeATSClient
126
135
  remote_id == o.remote_id &&
127
136
  name == o.name &&
128
137
  location == o.location &&
129
- remote_data == o.remote_data
138
+ remote_data == o.remote_data &&
139
+ remote_was_deleted == o.remote_was_deleted
130
140
  end
131
141
 
132
142
  # @see the `==` method
@@ -138,7 +148,7 @@ module MergeATSClient
138
148
  # Calculates hash code according to all attributes.
139
149
  # @return [Integer] Hash code
140
150
  def hash
141
- [id, remote_id, name, location, remote_data].hash
151
+ [id, remote_id, name, location, remote_data, remote_was_deleted].hash
142
152
  end
143
153
 
144
154
  # Builds the object from hash
@@ -181,7 +191,7 @@ module MergeATSClient
181
191
  when :Date
182
192
  Date.parse(value)
183
193
  when :String
184
- value.to_s
194
+ value
185
195
  when :Integer
186
196
  value.to_i
187
197
  when :Float
@@ -21,18 +21,28 @@ module MergeATSClient
21
21
  STRONG_YES = "STRONG_YES".freeze
22
22
  NO_DECISION = "NO_DECISION".freeze
23
23
 
24
- # Builds the enum from string
25
- # @param [String] The enum value in the form of the string
26
- # @return [String] The enum value
27
- def self.build_from_hash(value)
28
- new.build_from_hash(value)
29
- end
24
+ MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
25
+
26
+ attr_accessor :value
27
+ attr_accessor :raw_value
30
28
 
31
29
  # Builds the enum from string
32
30
  # @param [String] The enum value in the form of the string
33
31
  # @return [String] The enum value
34
32
  def build_from_hash(value)
35
- value
33
+ @raw_value = value
34
+ if ["DEFINITELY_NO", "NO", "YES", "STRONG_YES", "NO_DECISION", ].include? value
35
+ @value = value
36
+ else
37
+ @value = MERGE_NONSTANDARD_VALUE
38
+ end
39
+
40
+ self
41
+ end
42
+
43
+ def self.build_from_hash(value)
44
+ IssueStatusEnum.new.build_from_hash(value)
36
45
  end
37
46
  end
47
+
38
48
  end
@@ -157,7 +157,7 @@ module MergeATSClient
157
157
  when :Date
158
158
  Date.parse(value)
159
159
  when :String
160
- value.to_s
160
+ value
161
161
  when :Integer
162
162
  value.to_i
163
163
  when :Float
@@ -157,7 +157,7 @@ module MergeATSClient
157
157
  when :Date
158
158
  Date.parse(value)
159
159
  when :String
160
- value.to_s
160
+ value
161
161
  when :Integer
162
162
  value.to_i
163
163
  when :Float
@@ -157,7 +157,7 @@ module MergeATSClient
157
157
  when :Date
158
158
  Date.parse(value)
159
159
  when :String
160
- value.to_s
160
+ value
161
161
  when :Integer
162
162
  value.to_i
163
163
  when :Float
@@ -157,7 +157,7 @@ module MergeATSClient
157
157
  when :Date
158
158
  Date.parse(value)
159
159
  when :String
160
- value.to_s
160
+ value
161
161
  when :Integer
162
162
  value.to_i
163
163
  when :Float
@@ -157,7 +157,7 @@ module MergeATSClient
157
157
  when :Date
158
158
  Date.parse(value)
159
159
  when :String
160
- value.to_s
160
+ value
161
161
  when :Integer
162
162
  value.to_i
163
163
  when :Float
@@ -157,7 +157,7 @@ module MergeATSClient
157
157
  when :Date
158
158
  Date.parse(value)
159
159
  when :String
160
- value.to_s
160
+ value
161
161
  when :Integer
162
162
  value.to_i
163
163
  when :Float
@@ -157,7 +157,7 @@ module MergeATSClient
157
157
  when :Date
158
158
  Date.parse(value)
159
159
  when :String
160
- value.to_s
160
+ value
161
161
  when :Integer
162
162
  value.to_i
163
163
  when :Float
@@ -157,7 +157,7 @@ module MergeATSClient
157
157
  when :Date
158
158
  Date.parse(value)
159
159
  when :String
160
- value.to_s
160
+ value
161
161
  when :Integer
162
162
  value.to_i
163
163
  when :Float
@@ -157,7 +157,7 @@ module MergeATSClient
157
157
  when :Date
158
158
  Date.parse(value)
159
159
  when :String
160
- value.to_s
160
+ value
161
161
  when :Integer
162
162
  value.to_i
163
163
  when :Float
@@ -157,7 +157,7 @@ module MergeATSClient
157
157
  when :Date
158
158
  Date.parse(value)
159
159
  when :String
160
- value.to_s
160
+ value
161
161
  when :Integer
162
162
  value.to_i
163
163
  when :Float
@@ -157,7 +157,7 @@ module MergeATSClient
157
157
  when :Date
158
158
  Date.parse(value)
159
159
  when :String
160
- value.to_s
160
+ value
161
161
  when :Integer
162
162
  value.to_i
163
163
  when :Float