merge_ats_client 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (297) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/README.md +208 -0
  4. data/Rakefile +10 -0
  5. data/config.json +2 -0
  6. data/docs/AccessRoleEnum.md +15 -0
  7. data/docs/AccountIntegration.md +28 -0
  8. data/docs/AccountToken.md +18 -0
  9. data/docs/AccountTokenApi.md +79 -0
  10. data/docs/ActivitiesApi.md +181 -0
  11. data/docs/Activity.md +34 -0
  12. data/docs/ActivityTypeEnum.md +15 -0
  13. data/docs/Application.md +38 -0
  14. data/docs/ApplicationRequest.md +34 -0
  15. data/docs/ApplicationsApi.md +351 -0
  16. data/docs/Attachment.md +28 -0
  17. data/docs/AttachmentsApi.md +177 -0
  18. data/docs/AvailableActions.md +22 -0
  19. data/docs/AvailableActionsApi.md +79 -0
  20. data/docs/Candidate.md +54 -0
  21. data/docs/CandidateRequest.md +46 -0
  22. data/docs/CandidatesApi.md +259 -0
  23. data/docs/DataPassthrough.md +24 -0
  24. data/docs/DataPassthroughRequest.md +26 -0
  25. data/docs/Department.md +24 -0
  26. data/docs/DepartmentsApi.md +175 -0
  27. data/docs/DisabilityStatusEnum.md +15 -0
  28. data/docs/EEOC.md +34 -0
  29. data/docs/EeocsApi.md +181 -0
  30. data/docs/EmailAddress.md +20 -0
  31. data/docs/EmailAddressRequest.md +20 -0
  32. data/docs/EmailAddressTypeEnum.md +15 -0
  33. data/docs/EndUserDetails.md +24 -0
  34. data/docs/EndUserDetailsRequest.md +26 -0
  35. data/docs/GenderEnum.md +15 -0
  36. data/docs/GenerateKeyApi.md +79 -0
  37. data/docs/GenerateRemoteKeyRequest.md +18 -0
  38. data/docs/InterviewsApi.md +185 -0
  39. data/docs/Job.md +40 -0
  40. data/docs/JobInterviewStage.md +26 -0
  41. data/docs/JobInterviewStagesApi.md +181 -0
  42. data/docs/JobStatusEnum.md +15 -0
  43. data/docs/JobsApi.md +179 -0
  44. data/docs/LinkToken.md +20 -0
  45. data/docs/LinkTokenApi.md +79 -0
  46. data/docs/MethodEnum.md +15 -0
  47. data/docs/ModelOperation.md +22 -0
  48. data/docs/Offer.md +36 -0
  49. data/docs/OfferStatusEnum.md +15 -0
  50. data/docs/OffersApi.md +183 -0
  51. data/docs/Office.md +26 -0
  52. data/docs/OfficesApi.md +175 -0
  53. data/docs/OverallRecommendationEnum.md +15 -0
  54. data/docs/PaginatedActivityList.md +22 -0
  55. data/docs/PaginatedApplicationList.md +22 -0
  56. data/docs/PaginatedAttachmentList.md +22 -0
  57. data/docs/PaginatedCandidateList.md +22 -0
  58. data/docs/PaginatedDepartmentList.md +22 -0
  59. data/docs/PaginatedEEOCList.md +22 -0
  60. data/docs/PaginatedJobInterviewStageList.md +22 -0
  61. data/docs/PaginatedJobList.md +22 -0
  62. data/docs/PaginatedOfferList.md +22 -0
  63. data/docs/PaginatedOfficeList.md +22 -0
  64. data/docs/PaginatedRejectReasonList.md +22 -0
  65. data/docs/PaginatedRemoteUserList.md +22 -0
  66. data/docs/PaginatedScheduledInterviewList.md +22 -0
  67. data/docs/PaginatedScorecardList.md +22 -0
  68. data/docs/PaginatedTagList.md +22 -0
  69. data/docs/PassthroughApi.md +81 -0
  70. data/docs/PatchedApplicationRequest.md +34 -0
  71. data/docs/PhoneNumber.md +20 -0
  72. data/docs/PhoneNumberRequest.md +20 -0
  73. data/docs/PhoneNumberTypeEnum.md +15 -0
  74. data/docs/RaceEnum.md +15 -0
  75. data/docs/RegenerateKeyApi.md +79 -0
  76. data/docs/RejectReason.md +24 -0
  77. data/docs/RejectReasonsApi.md +175 -0
  78. data/docs/RemoteData.md +20 -0
  79. data/docs/RemoteDataRequest.md +20 -0
  80. data/docs/RemoteKey.md +20 -0
  81. data/docs/RemoteKeyForRegeneration.md +18 -0
  82. data/docs/RemoteKeyForRegenerationRequest.md +18 -0
  83. data/docs/RemoteResponse.md +26 -0
  84. data/docs/RemoteUser.md +34 -0
  85. data/docs/ScheduledInterview.md +42 -0
  86. data/docs/ScheduledInterviewStatusEnum.md +15 -0
  87. data/docs/Scorecard.md +34 -0
  88. data/docs/ScorecardsApi.md +185 -0
  89. data/docs/SyncStatus.md +28 -0
  90. data/docs/SyncStatusApi.md +79 -0
  91. data/docs/Tag.md +22 -0
  92. data/docs/TagsApi.md +97 -0
  93. data/docs/Url.md +20 -0
  94. data/docs/UrlRequest.md +20 -0
  95. data/docs/UrlTypeEnum.md +15 -0
  96. data/docs/UsersApi.md +175 -0
  97. data/docs/VeteranStatusEnum.md +15 -0
  98. data/docs/VisibilityEnum.md +15 -0
  99. data/git_push.sh +58 -0
  100. data/lib/merge_ats_client.rb +131 -0
  101. data/lib/merge_ats_client/api/account_token_api.rb +83 -0
  102. data/lib/merge_ats_client/api/activities_api.rb +196 -0
  103. data/lib/merge_ats_client/api/applications_api.rb +366 -0
  104. data/lib/merge_ats_client/api/attachments_api.rb +182 -0
  105. data/lib/merge_ats_client/api/available_actions_api.rb +84 -0
  106. data/lib/merge_ats_client/api/candidates_api.rb +269 -0
  107. data/lib/merge_ats_client/api/departments_api.rb +179 -0
  108. data/lib/merge_ats_client/api/eeocs_api.rb +196 -0
  109. data/lib/merge_ats_client/api/generate_key_api.rb +85 -0
  110. data/lib/merge_ats_client/api/interviews_api.rb +202 -0
  111. data/lib/merge_ats_client/api/job_interview_stages_api.rb +196 -0
  112. data/lib/merge_ats_client/api/jobs_api.rb +193 -0
  113. data/lib/merge_ats_client/api/link_token_api.rb +85 -0
  114. data/lib/merge_ats_client/api/offers_api.rb +199 -0
  115. data/lib/merge_ats_client/api/offices_api.rb +179 -0
  116. data/lib/merge_ats_client/api/passthrough_api.rb +92 -0
  117. data/lib/merge_ats_client/api/regenerate_key_api.rb +85 -0
  118. data/lib/merge_ats_client/api/reject_reasons_api.rb +179 -0
  119. data/lib/merge_ats_client/api/scorecards_api.rb +202 -0
  120. data/lib/merge_ats_client/api/sync_status_api.rb +84 -0
  121. data/lib/merge_ats_client/api/tags_api.rb +108 -0
  122. data/lib/merge_ats_client/api/users_api.rb +179 -0
  123. data/lib/merge_ats_client/api_client.rb +390 -0
  124. data/lib/merge_ats_client/api_error.rb +57 -0
  125. data/lib/merge_ats_client/configuration.rb +279 -0
  126. data/lib/merge_ats_client/models/access_role_enum.rb +38 -0
  127. data/lib/merge_ats_client/models/account_integration.rb +325 -0
  128. data/lib/merge_ats_client/models/account_token.rb +223 -0
  129. data/lib/merge_ats_client/models/activity.rb +308 -0
  130. data/lib/merge_ats_client/models/activity_type_enum.rb +36 -0
  131. data/lib/merge_ats_client/models/application.rb +330 -0
  132. data/lib/merge_ats_client/models/application_request.rb +309 -0
  133. data/lib/merge_ats_client/models/attachment.rb +289 -0
  134. data/lib/merge_ats_client/models/available_actions.rb +249 -0
  135. data/lib/merge_ats_client/models/candidate.rb +420 -0
  136. data/lib/merge_ats_client/models/candidate_request.rb +377 -0
  137. data/lib/merge_ats_client/models/data_passthrough.rb +262 -0
  138. data/lib/merge_ats_client/models/data_passthrough_request.rb +271 -0
  139. data/lib/merge_ats_client/models/department.rb +253 -0
  140. data/lib/merge_ats_client/models/disability_status_enum.rb +36 -0
  141. data/lib/merge_ats_client/models/eeoc.rb +308 -0
  142. data/lib/merge_ats_client/models/email_address.rb +247 -0
  143. data/lib/merge_ats_client/models/email_address_request.rb +247 -0
  144. data/lib/merge_ats_client/models/email_address_type_enum.rb +36 -0
  145. data/lib/merge_ats_client/models/end_user_details.rb +289 -0
  146. data/lib/merge_ats_client/models/end_user_details_request.rb +298 -0
  147. data/lib/merge_ats_client/models/gender_enum.rb +38 -0
  148. data/lib/merge_ats_client/models/generate_remote_key_request.rb +224 -0
  149. data/lib/merge_ats_client/models/job.rb +341 -0
  150. data/lib/merge_ats_client/models/job_interview_stage.rb +264 -0
  151. data/lib/merge_ats_client/models/job_status_enum.rb +38 -0
  152. data/lib/merge_ats_client/models/link_token.rb +237 -0
  153. data/lib/merge_ats_client/models/method_enum.rb +40 -0
  154. data/lib/merge_ats_client/models/model_operation.rb +256 -0
  155. data/lib/merge_ats_client/models/offer.rb +319 -0
  156. data/lib/merge_ats_client/models/offer_status_enum.rb +42 -0
  157. data/lib/merge_ats_client/models/office.rb +264 -0
  158. data/lib/merge_ats_client/models/overall_recommendation_enum.rb +38 -0
  159. data/lib/merge_ats_client/models/paginated_activity_list.rb +240 -0
  160. data/lib/merge_ats_client/models/paginated_application_list.rb +240 -0
  161. data/lib/merge_ats_client/models/paginated_attachment_list.rb +240 -0
  162. data/lib/merge_ats_client/models/paginated_candidate_list.rb +240 -0
  163. data/lib/merge_ats_client/models/paginated_department_list.rb +240 -0
  164. data/lib/merge_ats_client/models/paginated_eeoc_list.rb +240 -0
  165. data/lib/merge_ats_client/models/paginated_job_interview_stage_list.rb +240 -0
  166. data/lib/merge_ats_client/models/paginated_job_list.rb +240 -0
  167. data/lib/merge_ats_client/models/paginated_offer_list.rb +240 -0
  168. data/lib/merge_ats_client/models/paginated_office_list.rb +240 -0
  169. data/lib/merge_ats_client/models/paginated_reject_reason_list.rb +240 -0
  170. data/lib/merge_ats_client/models/paginated_remote_user_list.rb +240 -0
  171. data/lib/merge_ats_client/models/paginated_scheduled_interview_list.rb +240 -0
  172. data/lib/merge_ats_client/models/paginated_scorecard_list.rb +240 -0
  173. data/lib/merge_ats_client/models/paginated_tag_list.rb +240 -0
  174. data/lib/merge_ats_client/models/patched_application_request.rb +309 -0
  175. data/lib/merge_ats_client/models/phone_number.rb +232 -0
  176. data/lib/merge_ats_client/models/phone_number_request.rb +232 -0
  177. data/lib/merge_ats_client/models/phone_number_type_enum.rb +38 -0
  178. data/lib/merge_ats_client/models/race_enum.rb +41 -0
  179. data/lib/merge_ats_client/models/reject_reason.rb +253 -0
  180. data/lib/merge_ats_client/models/remote_data.rb +234 -0
  181. data/lib/merge_ats_client/models/remote_data_request.rb +234 -0
  182. data/lib/merge_ats_client/models/remote_key.rb +238 -0
  183. data/lib/merge_ats_client/models/remote_key_for_regeneration.rb +224 -0
  184. data/lib/merge_ats_client/models/remote_key_for_regeneration_request.rb +224 -0
  185. data/lib/merge_ats_client/models/remote_response.rb +279 -0
  186. data/lib/merge_ats_client/models/remote_user.rb +323 -0
  187. data/lib/merge_ats_client/models/scheduled_interview.rb +352 -0
  188. data/lib/merge_ats_client/models/scheduled_interview_status_enum.rb +36 -0
  189. data/lib/merge_ats_client/models/scorecard.rb +308 -0
  190. data/lib/merge_ats_client/models/sync_status.rb +294 -0
  191. data/lib/merge_ats_client/models/tag.rb +244 -0
  192. data/lib/merge_ats_client/models/url.rb +247 -0
  193. data/lib/merge_ats_client/models/url_request.rb +247 -0
  194. data/lib/merge_ats_client/models/url_type_enum.rb +39 -0
  195. data/lib/merge_ats_client/models/veteran_status_enum.rb +36 -0
  196. data/lib/merge_ats_client/models/visibility_enum.rb +36 -0
  197. data/lib/merge_ats_client/version.rb +15 -0
  198. data/merge_ats_client-1.0.0.gem +0 -0
  199. data/merge_ats_client.gemspec +38 -0
  200. data/pull_request_template.md +22 -0
  201. data/spec/api/account_token_api_spec.rb +46 -0
  202. data/spec/api/activities_api_spec.rb +68 -0
  203. data/spec/api/applications_api_spec.rb +72 -0
  204. data/spec/api/attachments_api_spec.rb +66 -0
  205. data/spec/api/available_actions_api_spec.rb +46 -0
  206. data/spec/api/candidates_api_spec.rb +67 -0
  207. data/spec/api/departments_api_spec.rb +65 -0
  208. data/spec/api/eeocs_api_spec.rb +68 -0
  209. data/spec/api/interviews_api_spec.rb +70 -0
  210. data/spec/api/job_interview_stages_api_spec.rb +68 -0
  211. data/spec/api/jobs_api_spec.rb +67 -0
  212. data/spec/api/link_token_api_spec.rb +46 -0
  213. data/spec/api/offers_api_spec.rb +69 -0
  214. data/spec/api/offices_api_spec.rb +65 -0
  215. data/spec/api/passthrough_api_spec.rb +47 -0
  216. data/spec/api/regenerate_key_api_spec.rb +48 -0
  217. data/spec/api/reject_reasons_api_spec.rb +65 -0
  218. data/spec/api/scorecards_api_spec.rb +70 -0
  219. data/spec/api/sync_status_api_spec.rb +45 -0
  220. data/spec/api/tags_api_spec.rb +53 -0
  221. data/spec/api/users_api_spec.rb +65 -0
  222. data/spec/api_client_spec.rb +226 -0
  223. data/spec/configuration_spec.rb +42 -0
  224. data/spec/models/access_role_enum_spec.rb +28 -0
  225. data/spec/models/account_integration_spec.rb +58 -0
  226. data/spec/models/account_token_spec.rb +34 -0
  227. data/spec/models/activity_spec.rb +76 -0
  228. data/spec/models/activity_type_enum_spec.rb +28 -0
  229. data/spec/models/application_request_spec.rb +82 -0
  230. data/spec/models/application_spec.rb +94 -0
  231. data/spec/models/attachment_spec.rb +52 -0
  232. data/spec/models/available_actions_spec.rb +46 -0
  233. data/spec/models/candidate_request_spec.rb +118 -0
  234. data/spec/models/candidate_spec.rb +136 -0
  235. data/spec/models/data_passthrough_request_spec.rb +58 -0
  236. data/spec/models/data_passthrough_spec.rb +52 -0
  237. data/spec/models/department_spec.rb +46 -0
  238. data/spec/models/disability_status_enum_spec.rb +28 -0
  239. data/spec/models/eeoc_spec.rb +76 -0
  240. data/spec/models/email_address_request_spec.rb +40 -0
  241. data/spec/models/email_address_spec.rb +40 -0
  242. data/spec/models/email_address_type_enum_spec.rb +28 -0
  243. data/spec/models/end_user_details_request_spec.rb +56 -0
  244. data/spec/models/end_user_details_spec.rb +56 -0
  245. data/spec/models/gender_enum_spec.rb +28 -0
  246. data/spec/models/generate_remote_key_request_spec.rb +34 -0
  247. data/spec/models/job_interview_stage_spec.rb +52 -0
  248. data/spec/models/job_spec.rb +88 -0
  249. data/spec/models/job_status_enum_spec.rb +28 -0
  250. data/spec/models/link_token_spec.rb +40 -0
  251. data/spec/models/method_enum_spec.rb +28 -0
  252. data/spec/models/model_operation_spec.rb +40 -0
  253. data/spec/models/offer_spec.rb +82 -0
  254. data/spec/models/offer_status_enum_spec.rb +28 -0
  255. data/spec/models/office_spec.rb +52 -0
  256. data/spec/models/overall_recommendation_enum_spec.rb +28 -0
  257. data/spec/models/paginated_activity_list_spec.rb +46 -0
  258. data/spec/models/paginated_application_list_spec.rb +46 -0
  259. data/spec/models/paginated_attachment_list_spec.rb +46 -0
  260. data/spec/models/paginated_candidate_list_spec.rb +46 -0
  261. data/spec/models/paginated_department_list_spec.rb +46 -0
  262. data/spec/models/paginated_eeoc_list_spec.rb +46 -0
  263. data/spec/models/paginated_job_interview_stage_list_spec.rb +46 -0
  264. data/spec/models/paginated_job_list_spec.rb +46 -0
  265. data/spec/models/paginated_offer_list_spec.rb +46 -0
  266. data/spec/models/paginated_office_list_spec.rb +46 -0
  267. data/spec/models/paginated_reject_reason_list_spec.rb +46 -0
  268. data/spec/models/paginated_remote_user_list_spec.rb +46 -0
  269. data/spec/models/paginated_scheduled_interview_list_spec.rb +46 -0
  270. data/spec/models/paginated_scorecard_list_spec.rb +46 -0
  271. data/spec/models/paginated_tag_list_spec.rb +46 -0
  272. data/spec/models/patched_application_request_spec.rb +82 -0
  273. data/spec/models/phone_number_request_spec.rb +40 -0
  274. data/spec/models/phone_number_spec.rb +40 -0
  275. data/spec/models/phone_number_type_enum_spec.rb +28 -0
  276. data/spec/models/race_enum_spec.rb +28 -0
  277. data/spec/models/reject_reason_spec.rb +46 -0
  278. data/spec/models/remote_data_spec.rb +40 -0
  279. data/spec/models/remote_key_for_regeneration_request_spec.rb +34 -0
  280. data/spec/models/remote_key_for_regeneration_spec.rb +34 -0
  281. data/spec/models/remote_key_spec.rb +40 -0
  282. data/spec/models/remote_response_spec.rb +58 -0
  283. data/spec/models/remote_user_spec.rb +76 -0
  284. data/spec/models/scheduled_interview_spec.rb +100 -0
  285. data/spec/models/scheduled_interview_status_enum_spec.rb +28 -0
  286. data/spec/models/scorecard_spec.rb +76 -0
  287. data/spec/models/sync_status_spec.rb +64 -0
  288. data/spec/models/tag_spec.rb +40 -0
  289. data/spec/models/url_request_spec.rb +40 -0
  290. data/spec/models/url_spec.rb +40 -0
  291. data/spec/models/url_type_enum_spec.rb +28 -0
  292. data/spec/models/veteran_status_enum_spec.rb +28 -0
  293. data/spec/models/visibility_enum_spec.rb +28 -0
  294. data/spec/spec_helper.rb +111 -0
  295. data/test_ats.rb +22 -0
  296. data/test_signature.rb +32 -0
  297. metadata +473 -0
@@ -0,0 +1,131 @@
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
+ # Common files
14
+ require 'merge_ats_client/api_client'
15
+ require 'merge_ats_client/api_error'
16
+ require 'merge_ats_client/version'
17
+ require 'merge_ats_client/configuration'
18
+
19
+ # Models
20
+ require 'merge_ats_client/models/access_role_enum'
21
+ require 'merge_ats_client/models/account_integration'
22
+ require 'merge_ats_client/models/account_token'
23
+ require 'merge_ats_client/models/activity'
24
+ require 'merge_ats_client/models/activity_type_enum'
25
+ require 'merge_ats_client/models/application'
26
+ require 'merge_ats_client/models/application_request'
27
+ require 'merge_ats_client/models/attachment'
28
+ require 'merge_ats_client/models/available_actions'
29
+ require 'merge_ats_client/models/candidate'
30
+ require 'merge_ats_client/models/data_passthrough'
31
+ require 'merge_ats_client/models/candidate_request'
32
+ require 'merge_ats_client/models/data_passthrough_request'
33
+ require 'merge_ats_client/models/department'
34
+ require 'merge_ats_client/models/disability_status_enum'
35
+ require 'merge_ats_client/models/eeoc'
36
+ require 'merge_ats_client/models/email_address'
37
+ require 'merge_ats_client/models/email_address_request'
38
+ require 'merge_ats_client/models/email_address_type_enum'
39
+ require 'merge_ats_client/models/end_user_details'
40
+ require 'merge_ats_client/models/end_user_details_request'
41
+ require 'merge_ats_client/models/gender_enum'
42
+ require 'merge_ats_client/models/generate_remote_key_request'
43
+ require 'merge_ats_client/models/job'
44
+ require 'merge_ats_client/models/job_interview_stage'
45
+ require 'merge_ats_client/models/job_status_enum'
46
+ require 'merge_ats_client/models/link_token'
47
+ require 'merge_ats_client/models/method_enum'
48
+ require 'merge_ats_client/models/model_operation'
49
+ require 'merge_ats_client/models/offer'
50
+ require 'merge_ats_client/models/offer_status_enum'
51
+ require 'merge_ats_client/models/office'
52
+ require 'merge_ats_client/models/overall_recommendation_enum'
53
+ require 'merge_ats_client/models/paginated_activity_list'
54
+ require 'merge_ats_client/models/paginated_application_list'
55
+ require 'merge_ats_client/models/paginated_attachment_list'
56
+ require 'merge_ats_client/models/paginated_candidate_list'
57
+ require 'merge_ats_client/models/paginated_department_list'
58
+ require 'merge_ats_client/models/paginated_eeoc_list'
59
+ require 'merge_ats_client/models/paginated_job_interview_stage_list'
60
+ require 'merge_ats_client/models/paginated_job_list'
61
+ require 'merge_ats_client/models/paginated_offer_list'
62
+ require 'merge_ats_client/models/paginated_office_list'
63
+ require 'merge_ats_client/models/paginated_reject_reason_list'
64
+ require 'merge_ats_client/models/paginated_remote_user_list'
65
+ require 'merge_ats_client/models/paginated_scheduled_interview_list'
66
+ require 'merge_ats_client/models/paginated_scorecard_list'
67
+ require 'merge_ats_client/models/paginated_tag_list'
68
+ require 'merge_ats_client/models/patched_application_request'
69
+ require 'merge_ats_client/models/phone_number'
70
+ require 'merge_ats_client/models/phone_number_request'
71
+ require 'merge_ats_client/models/phone_number_type_enum'
72
+ require 'merge_ats_client/models/race_enum'
73
+ require 'merge_ats_client/models/reject_reason'
74
+ require 'merge_ats_client/models/remote_data'
75
+ require 'merge_ats_client/models/remote_data_request'
76
+ require 'merge_ats_client/models/remote_key'
77
+ require 'merge_ats_client/models/remote_key_for_regeneration_request'
78
+ require 'merge_ats_client/models/remote_response'
79
+ require 'merge_ats_client/models/remote_user'
80
+ require 'merge_ats_client/models/scheduled_interview'
81
+ require 'merge_ats_client/models/scheduled_interview_status_enum'
82
+ require 'merge_ats_client/models/scorecard'
83
+ require 'merge_ats_client/models/sync_status'
84
+ require 'merge_ats_client/models/tag'
85
+ require 'merge_ats_client/models/url'
86
+ require 'merge_ats_client/models/url_request'
87
+ require 'merge_ats_client/models/url_type_enum'
88
+ require 'merge_ats_client/models/veteran_status_enum'
89
+ require 'merge_ats_client/models/visibility_enum'
90
+
91
+ # APIs
92
+ require 'merge_ats_client/api/account_token_api'
93
+ require 'merge_ats_client/api/activities_api'
94
+ require 'merge_ats_client/api/applications_api'
95
+ require 'merge_ats_client/api/attachments_api'
96
+ require 'merge_ats_client/api/available_actions_api'
97
+ require 'merge_ats_client/api/candidates_api'
98
+ require 'merge_ats_client/api/departments_api'
99
+ require 'merge_ats_client/api/eeocs_api'
100
+ require 'merge_ats_client/api/generate_key_api'
101
+ require 'merge_ats_client/api/interviews_api'
102
+ require 'merge_ats_client/api/job_interview_stages_api'
103
+ require 'merge_ats_client/api/jobs_api'
104
+ require 'merge_ats_client/api/link_token_api'
105
+ require 'merge_ats_client/api/offers_api'
106
+ require 'merge_ats_client/api/offices_api'
107
+ require 'merge_ats_client/api/passthrough_api'
108
+ require 'merge_ats_client/api/regenerate_key_api'
109
+ require 'merge_ats_client/api/reject_reasons_api'
110
+ require 'merge_ats_client/api/scorecards_api'
111
+ require 'merge_ats_client/api/sync_status_api'
112
+ require 'merge_ats_client/api/tags_api'
113
+ require 'merge_ats_client/api/users_api'
114
+
115
+ module MergeATSClient
116
+ class << self
117
+ # Customize default settings for the SDK using block.
118
+ # MergeATSClient.configure do |config|
119
+ # config.username = "xxx"
120
+ # config.password = "xxx"
121
+ # end
122
+ # If no block given, return the default Configuration object.
123
+ def configure
124
+ if block_given?
125
+ yield(Configuration.default)
126
+ else
127
+ Configuration.default
128
+ end
129
+ end
130
+ end
131
+ end
@@ -0,0 +1,83 @@
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 'cgi'
14
+
15
+ module MergeATSClient
16
+ class AccountTokenApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Returns the account token for the end user with the provided public token.
23
+ # @param public_token [String]
24
+ # @param [Hash] opts the optional parameters
25
+ # @return [AccountToken]
26
+ def account_token_retrieve(public_token, opts = {})
27
+ data, _status_code, _headers = account_token_retrieve_with_http_info(public_token, opts)
28
+ data
29
+ end
30
+
31
+ # Returns the account token for the end user with the provided public token.
32
+ # @param public_token [String]
33
+ # @param [Hash] opts the optional parameters
34
+ # @return [Array<(AccountToken, Integer, Hash)>] AccountToken data, response status code and response headers
35
+ def account_token_retrieve_with_http_info(public_token, opts = {})
36
+ if @api_client.config.debugging
37
+ @api_client.config.logger.debug 'Calling API: AccountTokenApi.account_token_retrieve ...'
38
+ end
39
+ # verify the required parameter 'public_token' is set
40
+ if @api_client.config.client_side_validation && public_token.nil?
41
+ fail ArgumentError, "Missing the required parameter 'public_token' when calling AccountTokenApi.account_token_retrieve"
42
+ end
43
+ # resource path
44
+ local_var_path = '/account-token/{public_token}'.sub('{' + 'public_token' + '}', CGI.escape(public_token.to_s))
45
+
46
+ # query parameters
47
+ query_params = opts[:query_params] || {}
48
+
49
+ # header parameters
50
+ header_params = opts[:header_params] || {}
51
+ # HTTP header 'Accept' (if needed)
52
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
53
+
54
+ # form parameters
55
+ form_params = opts[:form_params] || {}
56
+
57
+ # http body (model)
58
+ post_body = opts[:debug_body]
59
+
60
+ # return_type
61
+ return_type = opts[:debug_return_type] || 'AccountToken'
62
+
63
+ # auth_names
64
+ auth_names = opts[:debug_auth_names] || ['tokenAuth']
65
+
66
+ new_options = opts.merge(
67
+ :operation => :"AccountTokenApi.account_token_retrieve",
68
+ :header_params => header_params,
69
+ :query_params => query_params,
70
+ :form_params => form_params,
71
+ :body => post_body,
72
+ :auth_names => auth_names,
73
+ :return_type => return_type
74
+ )
75
+
76
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
77
+ if @api_client.config.debugging
78
+ @api_client.config.logger.debug "API called: AccountTokenApi#account_token_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
79
+ end
80
+ return data, status_code, headers
81
+ end
82
+ end
83
+ end
@@ -0,0 +1,196 @@
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 'cgi'
14
+
15
+ module MergeATSClient
16
+ class ActivitiesApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Returns a list of `Activity` objects.
23
+ # @param x_account_token [String] Token identifying the end user.
24
+ # @param [Hash] opts the optional parameters
25
+ # @option opts [Time] :created_after If provided, will only return objects created after this datetime.
26
+ # @option opts [Time] :created_before If provided, will only return objects created before this datetime.
27
+ # @option opts [String] :cursor The pagination cursor value.
28
+ # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
29
+ # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
30
+ # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
31
+ # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
32
+ # @option opts [Integer] :page_size Number of results to return per page.
33
+ # @option opts [String] :remote_id The API provider&#39;s ID for the given object.
34
+ # @option opts [String] :user_id If provided, will only return activities done by this user.
35
+ # @return [PaginatedActivityList]
36
+ def activities_list(x_account_token, opts = {})
37
+ data, _status_code, _headers = activities_list_with_http_info(x_account_token, opts)
38
+ data
39
+ end
40
+
41
+ # Returns a list of &#x60;Activity&#x60; objects.
42
+ # @param x_account_token [String] Token identifying the end user.
43
+ # @param [Hash] opts the optional parameters
44
+ # @option opts [Time] :created_after If provided, will only return objects created after this datetime.
45
+ # @option opts [Time] :created_before If provided, will only return objects created before this datetime.
46
+ # @option opts [String] :cursor The pagination cursor value.
47
+ # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
48
+ # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
49
+ # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
50
+ # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
51
+ # @option opts [Integer] :page_size Number of results to return per page.
52
+ # @option opts [String] :remote_id The API provider&#39;s ID for the given object.
53
+ # @option opts [String] :user_id If provided, will only return activities done by this user.
54
+ # @return [Array<(PaginatedActivityList, Integer, Hash)>] PaginatedActivityList data, response status code and response headers
55
+ def activities_list_with_http_info(x_account_token, opts = {})
56
+ if @api_client.config.debugging
57
+ @api_client.config.logger.debug 'Calling API: ActivitiesApi.activities_list ...'
58
+ end
59
+ # verify the required parameter 'x_account_token' is set
60
+ if @api_client.config.client_side_validation && x_account_token.nil?
61
+ fail ArgumentError, "Missing the required parameter 'x_account_token' when calling ActivitiesApi.activities_list"
62
+ end
63
+ allowable_values = ["user"]
64
+ if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
65
+ fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
66
+ end
67
+ # resource path
68
+ local_var_path = '/activities'
69
+
70
+ # query parameters
71
+ query_params = opts[:query_params] || {}
72
+ query_params[:'created_after'] = opts[:'created_after'] if !opts[:'created_after'].nil?
73
+ query_params[:'created_before'] = opts[:'created_before'] if !opts[:'created_before'].nil?
74
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
75
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
76
+ query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
77
+ query_params[:'modified_after'] = opts[:'modified_after'] if !opts[:'modified_after'].nil?
78
+ query_params[:'modified_before'] = opts[:'modified_before'] if !opts[:'modified_before'].nil?
79
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
80
+ query_params[:'remote_id'] = opts[:'remote_id'] if !opts[:'remote_id'].nil?
81
+ query_params[:'user_id'] = opts[:'user_id'] if !opts[:'user_id'].nil?
82
+
83
+ # header parameters
84
+ header_params = opts[:header_params] || {}
85
+ # HTTP header 'Accept' (if needed)
86
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
87
+ header_params[:'X-Account-Token'] = x_account_token
88
+
89
+ # form parameters
90
+ form_params = opts[:form_params] || {}
91
+
92
+ # http body (model)
93
+ post_body = opts[:debug_body]
94
+
95
+ # return_type
96
+ return_type = opts[:debug_return_type] || 'PaginatedActivityList'
97
+
98
+ # auth_names
99
+ auth_names = opts[:debug_auth_names] || ['tokenAuth']
100
+
101
+ new_options = opts.merge(
102
+ :operation => :"ActivitiesApi.activities_list",
103
+ :header_params => header_params,
104
+ :query_params => query_params,
105
+ :form_params => form_params,
106
+ :body => post_body,
107
+ :auth_names => auth_names,
108
+ :return_type => return_type
109
+ )
110
+
111
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
112
+ if @api_client.config.debugging
113
+ @api_client.config.logger.debug "API called: ActivitiesApi#activities_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
114
+ end
115
+ return data, status_code, headers
116
+ end
117
+
118
+ # Returns an `Activity` object with the given `id`.
119
+ # @param x_account_token [String] Token identifying the end user.
120
+ # @param id [String]
121
+ # @param [Hash] opts the optional parameters
122
+ # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
123
+ # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
124
+ # @return [Activity]
125
+ def activities_retrieve(x_account_token, id, opts = {})
126
+ data, _status_code, _headers = activities_retrieve_with_http_info(x_account_token, id, opts)
127
+ data
128
+ end
129
+
130
+ # Returns an &#x60;Activity&#x60; object with the given &#x60;id&#x60;.
131
+ # @param x_account_token [String] Token identifying the end user.
132
+ # @param id [String]
133
+ # @param [Hash] opts the optional parameters
134
+ # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
135
+ # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
136
+ # @return [Array<(Activity, Integer, Hash)>] Activity data, response status code and response headers
137
+ def activities_retrieve_with_http_info(x_account_token, id, opts = {})
138
+ if @api_client.config.debugging
139
+ @api_client.config.logger.debug 'Calling API: ActivitiesApi.activities_retrieve ...'
140
+ end
141
+ # verify the required parameter 'x_account_token' is set
142
+ if @api_client.config.client_side_validation && x_account_token.nil?
143
+ fail ArgumentError, "Missing the required parameter 'x_account_token' when calling ActivitiesApi.activities_retrieve"
144
+ end
145
+ # verify the required parameter 'id' is set
146
+ if @api_client.config.client_side_validation && id.nil?
147
+ fail ArgumentError, "Missing the required parameter 'id' when calling ActivitiesApi.activities_retrieve"
148
+ end
149
+ allowable_values = ["user"]
150
+ if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
151
+ fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
152
+ end
153
+ # resource path
154
+ local_var_path = '/activities/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
155
+
156
+ # query parameters
157
+ query_params = opts[:query_params] || {}
158
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
159
+ query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
160
+
161
+ # header parameters
162
+ header_params = opts[:header_params] || {}
163
+ # HTTP header 'Accept' (if needed)
164
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
165
+ header_params[:'X-Account-Token'] = x_account_token
166
+
167
+ # form parameters
168
+ form_params = opts[:form_params] || {}
169
+
170
+ # http body (model)
171
+ post_body = opts[:debug_body]
172
+
173
+ # return_type
174
+ return_type = opts[:debug_return_type] || 'Activity'
175
+
176
+ # auth_names
177
+ auth_names = opts[:debug_auth_names] || ['tokenAuth']
178
+
179
+ new_options = opts.merge(
180
+ :operation => :"ActivitiesApi.activities_retrieve",
181
+ :header_params => header_params,
182
+ :query_params => query_params,
183
+ :form_params => form_params,
184
+ :body => post_body,
185
+ :auth_names => auth_names,
186
+ :return_type => return_type
187
+ )
188
+
189
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
190
+ if @api_client.config.debugging
191
+ @api_client.config.logger.debug "API called: ActivitiesApi#activities_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
192
+ end
193
+ return data, status_code, headers
194
+ end
195
+ end
196
+ end
@@ -0,0 +1,366 @@
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 'cgi'
14
+
15
+ module MergeATSClient
16
+ class ApplicationsApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Creates an `Application` object with the given values.
23
+ # @param x_account_token [String] Token identifying the end user.
24
+ # @param remote_user_id [String] The ID of the RemoteUser deleting the resource. This can be found in the ID field (not remote_id) in the RemoteUser table.
25
+ # @param [Hash] opts the optional parameters
26
+ # @option opts [Boolean] :run_async Whether or not third-party updates should be run asynchronously.
27
+ # @option opts [ApplicationRequest] :application_request
28
+ # @return [Application]
29
+ def applications_create(x_account_token, remote_user_id, opts = {})
30
+ data, _status_code, _headers = applications_create_with_http_info(x_account_token, remote_user_id, opts)
31
+ data
32
+ end
33
+
34
+ # Creates an &#x60;Application&#x60; object with the given values.
35
+ # @param x_account_token [String] Token identifying the end user.
36
+ # @param remote_user_id [String] The ID of the RemoteUser deleting the resource. This can be found in the ID field (not remote_id) in the RemoteUser table.
37
+ # @param [Hash] opts the optional parameters
38
+ # @option opts [Boolean] :run_async Whether or not third-party updates should be run asynchronously.
39
+ # @option opts [ApplicationRequest] :application_request
40
+ # @return [Array<(Application, Integer, Hash)>] Application data, response status code and response headers
41
+ def applications_create_with_http_info(x_account_token, remote_user_id, opts = {})
42
+ if @api_client.config.debugging
43
+ @api_client.config.logger.debug 'Calling API: ApplicationsApi.applications_create ...'
44
+ end
45
+ # verify the required parameter 'x_account_token' is set
46
+ if @api_client.config.client_side_validation && x_account_token.nil?
47
+ fail ArgumentError, "Missing the required parameter 'x_account_token' when calling ApplicationsApi.applications_create"
48
+ end
49
+ # verify the required parameter 'remote_user_id' is set
50
+ if @api_client.config.client_side_validation && remote_user_id.nil?
51
+ fail ArgumentError, "Missing the required parameter 'remote_user_id' when calling ApplicationsApi.applications_create"
52
+ end
53
+ # resource path
54
+ local_var_path = '/applications'
55
+
56
+ # query parameters
57
+ query_params = opts[:query_params] || {}
58
+ query_params[:'remote_user_id'] = remote_user_id
59
+ query_params[:'run_async'] = opts[:'run_async'] if !opts[:'run_async'].nil?
60
+
61
+ # header parameters
62
+ header_params = opts[:header_params] || {}
63
+ # HTTP header 'Accept' (if needed)
64
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
65
+ # HTTP header 'Content-Type'
66
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
67
+ header_params[:'X-Account-Token'] = x_account_token
68
+
69
+ # form parameters
70
+ form_params = opts[:form_params] || {}
71
+
72
+ # http body (model)
73
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'application_request'])
74
+
75
+ # return_type
76
+ return_type = opts[:debug_return_type] || 'Application'
77
+
78
+ # auth_names
79
+ auth_names = opts[:debug_auth_names] || ['tokenAuth']
80
+
81
+ new_options = opts.merge(
82
+ :operation => :"ApplicationsApi.applications_create",
83
+ :header_params => header_params,
84
+ :query_params => query_params,
85
+ :form_params => form_params,
86
+ :body => post_body,
87
+ :auth_names => auth_names,
88
+ :return_type => return_type
89
+ )
90
+
91
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
92
+ if @api_client.config.debugging
93
+ @api_client.config.logger.debug "API called: ApplicationsApi#applications_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
94
+ end
95
+ return data, status_code, headers
96
+ end
97
+
98
+ # Returns a list of `Application` objects.
99
+ # @param x_account_token [String] Token identifying the end user.
100
+ # @param [Hash] opts the optional parameters
101
+ # @option opts [String] :candidate_id If provided, will only return applications for this candidate.
102
+ # @option opts [Time] :created_after If provided, will only return objects created after this datetime.
103
+ # @option opts [Time] :created_before If provided, will only return objects created before this datetime.
104
+ # @option opts [String] :credited_to_id If provided, will only return applications credited to this user.
105
+ # @option opts [String] :current_stage_id If provided, will only return applications at this interview stage.
106
+ # @option opts [String] :cursor The pagination cursor value.
107
+ # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
108
+ # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
109
+ # @option opts [String] :job_id If provided, will only return applications for this job.
110
+ # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
111
+ # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
112
+ # @option opts [Integer] :page_size Number of results to return per page.
113
+ # @option opts [String] :reject_reason_id If provided, will only return applications with this reject reason.
114
+ # @option opts [String] :remote_id The API provider&#39;s ID for the given object.
115
+ # @return [PaginatedApplicationList]
116
+ def applications_list(x_account_token, opts = {})
117
+ data, _status_code, _headers = applications_list_with_http_info(x_account_token, opts)
118
+ data
119
+ end
120
+
121
+ # Returns a list of &#x60;Application&#x60; objects.
122
+ # @param x_account_token [String] Token identifying the end user.
123
+ # @param [Hash] opts the optional parameters
124
+ # @option opts [String] :candidate_id If provided, will only return applications for this candidate.
125
+ # @option opts [Time] :created_after If provided, will only return objects created after this datetime.
126
+ # @option opts [Time] :created_before If provided, will only return objects created before this datetime.
127
+ # @option opts [String] :credited_to_id If provided, will only return applications credited to this user.
128
+ # @option opts [String] :current_stage_id If provided, will only return applications at this interview stage.
129
+ # @option opts [String] :cursor The pagination cursor value.
130
+ # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
131
+ # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
132
+ # @option opts [String] :job_id If provided, will only return applications for this job.
133
+ # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
134
+ # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
135
+ # @option opts [Integer] :page_size Number of results to return per page.
136
+ # @option opts [String] :reject_reason_id If provided, will only return applications with this reject reason.
137
+ # @option opts [String] :remote_id The API provider&#39;s ID for the given object.
138
+ # @return [Array<(PaginatedApplicationList, Integer, Hash)>] PaginatedApplicationList data, response status code and response headers
139
+ def applications_list_with_http_info(x_account_token, opts = {})
140
+ if @api_client.config.debugging
141
+ @api_client.config.logger.debug 'Calling API: ApplicationsApi.applications_list ...'
142
+ end
143
+ # verify the required parameter 'x_account_token' is set
144
+ if @api_client.config.client_side_validation && x_account_token.nil?
145
+ fail ArgumentError, "Missing the required parameter 'x_account_token' when calling ApplicationsApi.applications_list"
146
+ end
147
+ allowable_values = ["candidate", "candidate,credited_to", "candidate,credited_to,current_stage", "candidate,credited_to,current_stage,reject_reason", "candidate,credited_to,reject_reason", "candidate,current_stage", "candidate,current_stage,reject_reason", "candidate,job", "candidate,job,credited_to", "candidate,job,credited_to,current_stage", "candidate,job,credited_to,current_stage,reject_reason", "candidate,job,credited_to,reject_reason", "candidate,job,current_stage", "candidate,job,current_stage,reject_reason", "candidate,job,reject_reason", "candidate,reject_reason", "credited_to", "credited_to,current_stage", "credited_to,current_stage,reject_reason", "credited_to,reject_reason", "current_stage", "current_stage,reject_reason", "job", "job,credited_to", "job,credited_to,current_stage", "job,credited_to,current_stage,reject_reason", "job,credited_to,reject_reason", "job,current_stage", "job,current_stage,reject_reason", "job,reject_reason", "reject_reason"]
148
+ if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
149
+ fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
150
+ end
151
+ # resource path
152
+ local_var_path = '/applications'
153
+
154
+ # query parameters
155
+ query_params = opts[:query_params] || {}
156
+ query_params[:'candidate_id'] = opts[:'candidate_id'] if !opts[:'candidate_id'].nil?
157
+ query_params[:'created_after'] = opts[:'created_after'] if !opts[:'created_after'].nil?
158
+ query_params[:'created_before'] = opts[:'created_before'] if !opts[:'created_before'].nil?
159
+ query_params[:'credited_to_id'] = opts[:'credited_to_id'] if !opts[:'credited_to_id'].nil?
160
+ query_params[:'current_stage_id'] = opts[:'current_stage_id'] if !opts[:'current_stage_id'].nil?
161
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
162
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
163
+ query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
164
+ query_params[:'job_id'] = opts[:'job_id'] if !opts[:'job_id'].nil?
165
+ query_params[:'modified_after'] = opts[:'modified_after'] if !opts[:'modified_after'].nil?
166
+ query_params[:'modified_before'] = opts[:'modified_before'] if !opts[:'modified_before'].nil?
167
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
168
+ query_params[:'reject_reason_id'] = opts[:'reject_reason_id'] if !opts[:'reject_reason_id'].nil?
169
+ query_params[:'remote_id'] = opts[:'remote_id'] if !opts[:'remote_id'].nil?
170
+
171
+ # header parameters
172
+ header_params = opts[:header_params] || {}
173
+ # HTTP header 'Accept' (if needed)
174
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
175
+ header_params[:'X-Account-Token'] = x_account_token
176
+
177
+ # form parameters
178
+ form_params = opts[:form_params] || {}
179
+
180
+ # http body (model)
181
+ post_body = opts[:debug_body]
182
+
183
+ # return_type
184
+ return_type = opts[:debug_return_type] || 'PaginatedApplicationList'
185
+
186
+ # auth_names
187
+ auth_names = opts[:debug_auth_names] || ['tokenAuth']
188
+
189
+ new_options = opts.merge(
190
+ :operation => :"ApplicationsApi.applications_list",
191
+ :header_params => header_params,
192
+ :query_params => query_params,
193
+ :form_params => form_params,
194
+ :body => post_body,
195
+ :auth_names => auth_names,
196
+ :return_type => return_type
197
+ )
198
+
199
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
200
+ if @api_client.config.debugging
201
+ @api_client.config.logger.debug "API called: ApplicationsApi#applications_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
202
+ end
203
+ return data, status_code, headers
204
+ end
205
+
206
+ # Updates an `Application` object with the given `id`.
207
+ # @param x_account_token [String] Token identifying the end user.
208
+ # @param id [String]
209
+ # @param remote_user_id [String] The ID of the RemoteUser deleting the resource. This can be found in the ID field (not remote_id) in the RemoteUser table.
210
+ # @param [Hash] opts the optional parameters
211
+ # @option opts [Boolean] :run_async Whether or not third-party updates should be run asynchronously.
212
+ # @option opts [PatchedApplicationRequest] :patched_application_request
213
+ # @return [Application]
214
+ def applications_partial_update(x_account_token, id, remote_user_id, opts = {})
215
+ data, _status_code, _headers = applications_partial_update_with_http_info(x_account_token, id, remote_user_id, opts)
216
+ data
217
+ end
218
+
219
+ # Updates an &#x60;Application&#x60; object with the given &#x60;id&#x60;.
220
+ # @param x_account_token [String] Token identifying the end user.
221
+ # @param id [String]
222
+ # @param remote_user_id [String] The ID of the RemoteUser deleting the resource. This can be found in the ID field (not remote_id) in the RemoteUser table.
223
+ # @param [Hash] opts the optional parameters
224
+ # @option opts [Boolean] :run_async Whether or not third-party updates should be run asynchronously.
225
+ # @option opts [PatchedApplicationRequest] :patched_application_request
226
+ # @return [Array<(Application, Integer, Hash)>] Application data, response status code and response headers
227
+ def applications_partial_update_with_http_info(x_account_token, id, remote_user_id, opts = {})
228
+ if @api_client.config.debugging
229
+ @api_client.config.logger.debug 'Calling API: ApplicationsApi.applications_partial_update ...'
230
+ end
231
+ # verify the required parameter 'x_account_token' is set
232
+ if @api_client.config.client_side_validation && x_account_token.nil?
233
+ fail ArgumentError, "Missing the required parameter 'x_account_token' when calling ApplicationsApi.applications_partial_update"
234
+ end
235
+ # verify the required parameter 'id' is set
236
+ if @api_client.config.client_side_validation && id.nil?
237
+ fail ArgumentError, "Missing the required parameter 'id' when calling ApplicationsApi.applications_partial_update"
238
+ end
239
+ # verify the required parameter 'remote_user_id' is set
240
+ if @api_client.config.client_side_validation && remote_user_id.nil?
241
+ fail ArgumentError, "Missing the required parameter 'remote_user_id' when calling ApplicationsApi.applications_partial_update"
242
+ end
243
+ # resource path
244
+ local_var_path = '/applications/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
245
+
246
+ # query parameters
247
+ query_params = opts[:query_params] || {}
248
+ query_params[:'remote_user_id'] = remote_user_id
249
+ query_params[:'run_async'] = opts[:'run_async'] if !opts[:'run_async'].nil?
250
+
251
+ # header parameters
252
+ header_params = opts[:header_params] || {}
253
+ # HTTP header 'Accept' (if needed)
254
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
255
+ # HTTP header 'Content-Type'
256
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
257
+ header_params[:'X-Account-Token'] = x_account_token
258
+
259
+ # form parameters
260
+ form_params = opts[:form_params] || {}
261
+
262
+ # http body (model)
263
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'patched_application_request'])
264
+
265
+ # return_type
266
+ return_type = opts[:debug_return_type] || 'Application'
267
+
268
+ # auth_names
269
+ auth_names = opts[:debug_auth_names] || ['tokenAuth']
270
+
271
+ new_options = opts.merge(
272
+ :operation => :"ApplicationsApi.applications_partial_update",
273
+ :header_params => header_params,
274
+ :query_params => query_params,
275
+ :form_params => form_params,
276
+ :body => post_body,
277
+ :auth_names => auth_names,
278
+ :return_type => return_type
279
+ )
280
+
281
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
282
+ if @api_client.config.debugging
283
+ @api_client.config.logger.debug "API called: ApplicationsApi#applications_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
284
+ end
285
+ return data, status_code, headers
286
+ end
287
+
288
+ # Returns an `Application` object with the given `id`.
289
+ # @param x_account_token [String] Token identifying the end user.
290
+ # @param id [String]
291
+ # @param [Hash] opts the optional parameters
292
+ # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
293
+ # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
294
+ # @return [Application]
295
+ def applications_retrieve(x_account_token, id, opts = {})
296
+ data, _status_code, _headers = applications_retrieve_with_http_info(x_account_token, id, opts)
297
+ data
298
+ end
299
+
300
+ # Returns an &#x60;Application&#x60; object with the given &#x60;id&#x60;.
301
+ # @param x_account_token [String] Token identifying the end user.
302
+ # @param id [String]
303
+ # @param [Hash] opts the optional parameters
304
+ # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
305
+ # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
306
+ # @return [Array<(Application, Integer, Hash)>] Application data, response status code and response headers
307
+ def applications_retrieve_with_http_info(x_account_token, id, opts = {})
308
+ if @api_client.config.debugging
309
+ @api_client.config.logger.debug 'Calling API: ApplicationsApi.applications_retrieve ...'
310
+ end
311
+ # verify the required parameter 'x_account_token' is set
312
+ if @api_client.config.client_side_validation && x_account_token.nil?
313
+ fail ArgumentError, "Missing the required parameter 'x_account_token' when calling ApplicationsApi.applications_retrieve"
314
+ end
315
+ # verify the required parameter 'id' is set
316
+ if @api_client.config.client_side_validation && id.nil?
317
+ fail ArgumentError, "Missing the required parameter 'id' when calling ApplicationsApi.applications_retrieve"
318
+ end
319
+ allowable_values = ["candidate", "candidate,credited_to", "candidate,credited_to,current_stage", "candidate,credited_to,current_stage,reject_reason", "candidate,credited_to,reject_reason", "candidate,current_stage", "candidate,current_stage,reject_reason", "candidate,job", "candidate,job,credited_to", "candidate,job,credited_to,current_stage", "candidate,job,credited_to,current_stage,reject_reason", "candidate,job,credited_to,reject_reason", "candidate,job,current_stage", "candidate,job,current_stage,reject_reason", "candidate,job,reject_reason", "candidate,reject_reason", "credited_to", "credited_to,current_stage", "credited_to,current_stage,reject_reason", "credited_to,reject_reason", "current_stage", "current_stage,reject_reason", "job", "job,credited_to", "job,credited_to,current_stage", "job,credited_to,current_stage,reject_reason", "job,credited_to,reject_reason", "job,current_stage", "job,current_stage,reject_reason", "job,reject_reason", "reject_reason"]
320
+ if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
321
+ fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
322
+ end
323
+ # resource path
324
+ local_var_path = '/applications/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
325
+
326
+ # query parameters
327
+ query_params = opts[:query_params] || {}
328
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
329
+ query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
330
+
331
+ # header parameters
332
+ header_params = opts[:header_params] || {}
333
+ # HTTP header 'Accept' (if needed)
334
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
335
+ header_params[:'X-Account-Token'] = x_account_token
336
+
337
+ # form parameters
338
+ form_params = opts[:form_params] || {}
339
+
340
+ # http body (model)
341
+ post_body = opts[:debug_body]
342
+
343
+ # return_type
344
+ return_type = opts[:debug_return_type] || 'Application'
345
+
346
+ # auth_names
347
+ auth_names = opts[:debug_auth_names] || ['tokenAuth']
348
+
349
+ new_options = opts.merge(
350
+ :operation => :"ApplicationsApi.applications_retrieve",
351
+ :header_params => header_params,
352
+ :query_params => query_params,
353
+ :form_params => form_params,
354
+ :body => post_body,
355
+ :auth_names => auth_names,
356
+ :return_type => return_type
357
+ )
358
+
359
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
360
+ if @api_client.config.debugging
361
+ @api_client.config.logger.debug "API called: ApplicationsApi#applications_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
362
+ end
363
+ return data, status_code, headers
364
+ end
365
+ end
366
+ end