merge_ats_client 1.0.4 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (311) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +37 -17
  3. data/docs/AccountDetails.md +11 -7
  4. data/docs/AccountDetailsAndActions.md +4 -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 +6 -4
  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 +98 -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 +93 -15
  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 +3 -1
  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 +6 -4
  34. data/docs/EncodingEnum.md +15 -0
  35. data/docs/EndUserDetailsRequest.md +5 -3
  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 +6 -84
  42. data/docs/IssuesApi.md +18 -10
  43. data/docs/Job.md +5 -1
  44. data/docs/JobInterviewStage.md +4 -2
  45. data/docs/JobInterviewStagesApi.md +8 -6
  46. data/docs/JobsApi.md +8 -5
  47. data/docs/LinkTokenApi.md +3 -3
  48. data/docs/LinkedAccountStatus.md +20 -0
  49. data/docs/LinkedAccountsApi.md +22 -22
  50. data/docs/MetaResponse.md +24 -0
  51. data/docs/MultipartFormFieldRequest.md +26 -0
  52. data/docs/Offer.md +5 -3
  53. data/docs/OffersApi.md +6 -4
  54. data/docs/Office.md +3 -1
  55. data/docs/OfficesApi.md +6 -4
  56. data/docs/PassthroughApi.md +2 -2
  57. data/docs/ReasonEnum.md +15 -0
  58. data/docs/RegenerateKeyApi.md +2 -2
  59. data/docs/RejectReason.md +3 -1
  60. data/docs/RejectReasonsApi.md +6 -4
  61. data/docs/RemoteUser.md +3 -1
  62. data/docs/ScheduledInterview.md +6 -4
  63. data/docs/Scorecard.md +6 -4
  64. data/docs/ScorecardsApi.md +6 -84
  65. data/docs/SyncStatusApi.md +3 -75
  66. data/docs/Tag.md +3 -1
  67. data/docs/TagsApi.md +4 -2
  68. data/docs/UsersApi.md +6 -84
  69. data/docs/ValidationProblemSource.md +18 -0
  70. data/docs/WarningValidationProblem.md +24 -0
  71. data/docs/WebhookReceiver.md +22 -0
  72. data/docs/WebhookReceiverRequest.md +22 -0
  73. data/docs/WebhookReceiversApi.md +153 -0
  74. data/lib/merge_ats_client/api/account_details_api.rb +10 -3
  75. data/lib/merge_ats_client/api/activities_api.rb +3 -0
  76. data/lib/merge_ats_client/api/applications_api.rb +86 -15
  77. data/lib/merge_ats_client/api/attachments_api.rb +94 -15
  78. data/lib/merge_ats_client/api/candidates_api.rb +156 -21
  79. data/lib/merge_ats_client/api/departments_api.rb +3 -0
  80. data/lib/merge_ats_client/api/eeocs_api.rb +3 -0
  81. data/lib/merge_ats_client/api/force_resync_api.rb +84 -0
  82. data/lib/merge_ats_client/api/interviews_api.rb +3 -76
  83. data/lib/merge_ats_client/api/issues_api.rb +22 -10
  84. data/lib/merge_ats_client/api/job_interview_stages_api.rb +5 -2
  85. data/lib/merge_ats_client/api/jobs_api.rb +6 -3
  86. data/lib/merge_ats_client/api/linked_accounts_api.rb +21 -21
  87. data/lib/merge_ats_client/api/offers_api.rb +3 -0
  88. data/lib/merge_ats_client/api/offices_api.rb +3 -0
  89. data/lib/merge_ats_client/api/reject_reasons_api.rb +3 -0
  90. data/lib/merge_ats_client/api/scorecards_api.rb +3 -76
  91. data/lib/merge_ats_client/api/sync_status_api.rb +4 -66
  92. data/lib/merge_ats_client/api/tags_api.rb +3 -0
  93. data/lib/merge_ats_client/api/users_api.rb +3 -76
  94. data/lib/merge_ats_client/api/webhook_receivers_api.rb +154 -0
  95. data/lib/merge_ats_client/configuration.rb +6 -4
  96. data/lib/merge_ats_client/models/account_details.rb +22 -4
  97. data/lib/merge_ats_client/models/account_details_and_actions.rb +24 -1
  98. data/lib/merge_ats_client/models/account_details_and_actions_integration.rb +4 -2
  99. data/lib/merge_ats_client/models/account_integration.rb +2 -24
  100. data/lib/merge_ats_client/models/account_token.rb +1 -1
  101. data/lib/merge_ats_client/models/activity.rb +16 -7
  102. data/lib/merge_ats_client/models/application.rb +15 -11
  103. data/lib/merge_ats_client/models/application_endpoint_request.rb +237 -0
  104. data/lib/merge_ats_client/models/application_request.rb +56 -12
  105. data/lib/merge_ats_client/models/application_response.rb +266 -0
  106. data/lib/merge_ats_client/models/attachment.rb +15 -6
  107. data/lib/merge_ats_client/models/attachment_endpoint_request.rb +237 -0
  108. data/lib/merge_ats_client/models/attachment_request.rb +31 -7
  109. data/lib/merge_ats_client/models/attachment_response.rb +266 -0
  110. data/lib/merge_ats_client/models/attachment_type_enum.rb +0 -2
  111. data/lib/merge_ats_client/models/available_actions.rb +1 -1
  112. data/lib/merge_ats_client/models/candidate.rb +15 -6
  113. data/lib/merge_ats_client/models/candidate_endpoint_request.rb +237 -0
  114. data/lib/merge_ats_client/models/candidate_request.rb +56 -7
  115. data/lib/merge_ats_client/models/candidate_response.rb +266 -0
  116. data/lib/merge_ats_client/models/categories_enum.rb +2 -0
  117. data/lib/merge_ats_client/models/category_enum.rb +2 -0
  118. data/lib/merge_ats_client/models/data_passthrough_request.rb +67 -4
  119. data/lib/merge_ats_client/models/debug_mode_log.rb +251 -0
  120. data/lib/merge_ats_client/models/{data_passthrough.rb → debug_model_log_summary.rb} +30 -41
  121. data/lib/merge_ats_client/models/department.rb +17 -7
  122. data/lib/merge_ats_client/models/eeoc.rb +16 -7
  123. data/lib/merge_ats_client/models/email_address.rb +2 -2
  124. data/lib/merge_ats_client/models/email_address_request.rb +2 -2
  125. data/lib/merge_ats_client/models/encoding_enum.rb +35 -0
  126. data/lib/merge_ats_client/models/end_user_details_request.rb +147 -28
  127. data/lib/merge_ats_client/models/error_validation_problem.rb +260 -0
  128. data/lib/merge_ats_client/models/generate_remote_key_request.rb +20 -1
  129. data/lib/merge_ats_client/models/{remote_user_request.rb → ignore_common_model.rb} +30 -85
  130. data/lib/merge_ats_client/models/ignore_common_model_request.rb +256 -0
  131. data/lib/merge_ats_client/models/issue.rb +1 -1
  132. data/lib/merge_ats_client/models/job.rb +28 -6
  133. data/lib/merge_ats_client/models/job_interview_stage.rb +16 -7
  134. data/lib/merge_ats_client/models/link_token.rb +1 -1
  135. data/lib/merge_ats_client/models/linked_account_status.rb +237 -0
  136. data/lib/merge_ats_client/models/{scorecard_request.rb → meta_response.rb} +45 -70
  137. data/lib/merge_ats_client/models/model_operation.rb +1 -1
  138. data/lib/merge_ats_client/models/{scheduled_interview_request.rb → multipart_form_field_request.rb} +115 -106
  139. data/lib/merge_ats_client/models/offer.rb +16 -8
  140. data/lib/merge_ats_client/models/office.rb +17 -7
  141. data/lib/merge_ats_client/models/paginated_activity_list.rb +1 -1
  142. data/lib/merge_ats_client/models/paginated_application_list.rb +1 -1
  143. data/lib/merge_ats_client/models/paginated_attachment_list.rb +1 -1
  144. data/lib/merge_ats_client/models/paginated_candidate_list.rb +1 -1
  145. data/lib/merge_ats_client/models/paginated_department_list.rb +1 -1
  146. data/lib/merge_ats_client/models/paginated_eeoc_list.rb +1 -1
  147. data/lib/merge_ats_client/models/paginated_issue_list.rb +1 -1
  148. data/lib/merge_ats_client/models/paginated_job_interview_stage_list.rb +1 -1
  149. data/lib/merge_ats_client/models/paginated_job_list.rb +1 -1
  150. data/lib/merge_ats_client/models/paginated_offer_list.rb +1 -1
  151. data/lib/merge_ats_client/models/paginated_office_list.rb +1 -1
  152. data/lib/merge_ats_client/models/paginated_reject_reason_list.rb +1 -1
  153. data/lib/merge_ats_client/models/paginated_remote_user_list.rb +1 -1
  154. data/lib/merge_ats_client/models/paginated_scheduled_interview_list.rb +1 -1
  155. data/lib/merge_ats_client/models/paginated_scorecard_list.rb +1 -1
  156. data/lib/merge_ats_client/models/paginated_sync_status_list.rb +1 -1
  157. data/lib/merge_ats_client/models/paginated_tag_list.rb +1 -1
  158. data/lib/merge_ats_client/models/phone_number.rb +2 -2
  159. data/lib/merge_ats_client/models/phone_number_request.rb +2 -2
  160. data/lib/merge_ats_client/models/reason_enum.rb +36 -0
  161. data/lib/merge_ats_client/models/reject_reason.rb +17 -7
  162. data/lib/merge_ats_client/models/remote_data.rb +1 -1
  163. data/lib/merge_ats_client/models/remote_data_request.rb +20 -1
  164. data/lib/merge_ats_client/models/remote_key.rb +1 -1
  165. data/lib/merge_ats_client/models/remote_key_for_regeneration_request.rb +20 -1
  166. data/lib/merge_ats_client/models/remote_response.rb +1 -1
  167. data/lib/merge_ats_client/models/remote_user.rb +17 -7
  168. data/lib/merge_ats_client/models/request_format_enum.rb +1 -0
  169. data/lib/merge_ats_client/models/scheduled_interview.rb +16 -9
  170. data/lib/merge_ats_client/models/scorecard.rb +16 -9
  171. data/lib/merge_ats_client/models/sync_status.rb +1 -1
  172. data/lib/merge_ats_client/models/sync_status_status_enum.rb +1 -2
  173. data/lib/merge_ats_client/models/tag.rb +17 -7
  174. data/lib/merge_ats_client/models/url.rb +2 -2
  175. data/lib/merge_ats_client/models/url_request.rb +2 -2
  176. data/lib/merge_ats_client/models/{remote_key_for_regeneration.rb → validation_problem_source.rb} +15 -16
  177. data/lib/merge_ats_client/models/warning_validation_problem.rb +260 -0
  178. data/lib/merge_ats_client/models/webhook_receiver.rb +246 -0
  179. data/lib/merge_ats_client/models/{end_user_details.rb → webhook_receiver_request.rb} +60 -69
  180. data/lib/merge_ats_client/version.rb +1 -1
  181. data/lib/merge_ats_client.rb +22 -3
  182. data/spec/api/account_details_api_spec.rb +1 -0
  183. data/spec/api/account_token_api_spec.rb +1 -1
  184. data/spec/api/activities_api_spec.rb +4 -1
  185. data/spec/api/applications_api_spec.rb +31 -1
  186. data/spec/api/attachments_api_spec.rb +31 -1
  187. data/spec/api/available_actions_api_spec.rb +1 -1
  188. data/spec/api/candidates_api_spec.rb +44 -1
  189. data/spec/api/departments_api_spec.rb +4 -1
  190. data/spec/api/eeocs_api_spec.rb +4 -1
  191. data/spec/api/force_resync_api_spec.rb +46 -0
  192. data/spec/api/interviews_api_spec.rb +4 -1
  193. data/spec/api/issues_api_spec.rb +9 -5
  194. data/spec/api/job_interview_stages_api_spec.rb +4 -1
  195. data/spec/api/jobs_api_spec.rb +6 -1
  196. data/spec/api/link_token_api_spec.rb +2 -2
  197. data/spec/api/linked_accounts_api_spec.rb +10 -10
  198. data/spec/api/offers_api_spec.rb +4 -1
  199. data/spec/api/offices_api_spec.rb +4 -1
  200. data/spec/api/passthrough_api_spec.rb +2 -2
  201. data/spec/api/regenerate_key_api_spec.rb +3 -5
  202. data/spec/api/reject_reasons_api_spec.rb +4 -1
  203. data/spec/api/scorecards_api_spec.rb +4 -1
  204. data/spec/api/sync_status_api_spec.rb +8 -5
  205. data/spec/api/tags_api_spec.rb +3 -1
  206. data/spec/api/users_api_spec.rb +5 -1
  207. data/spec/api/webhook_receivers_api_spec.rb +58 -0
  208. data/spec/models/access_role_enum_spec.rb +1 -1
  209. data/spec/models/account_details_and_actions_spec.rb +12 -0
  210. data/spec/models/account_details_spec.rb +12 -0
  211. data/spec/models/account_integration_spec.rb +7 -1
  212. data/spec/models/account_token_spec.rb +7 -1
  213. data/spec/models/activity_spec.rb +13 -1
  214. data/spec/models/activity_type_enum_spec.rb +1 -1
  215. data/spec/models/application_endpoint_request_spec.rb +40 -0
  216. data/spec/models/application_request_spec.rb +25 -1
  217. data/spec/models/{end_user_details_spec.rb → application_response_spec.rb} +11 -15
  218. data/spec/models/application_spec.rb +19 -7
  219. data/spec/models/attachment_endpoint_request_spec.rb +40 -0
  220. data/spec/models/attachment_request_spec.rb +12 -0
  221. data/spec/models/attachment_response_spec.rb +52 -0
  222. data/spec/models/attachment_spec.rb +25 -1
  223. data/spec/models/available_actions_spec.rb +1 -1
  224. data/spec/models/candidate_endpoint_request_spec.rb +40 -0
  225. data/spec/models/candidate_request_spec.rb +37 -1
  226. data/spec/models/{data_passthrough_spec.rb → candidate_response_spec.rb} +11 -11
  227. data/spec/models/candidate_spec.rb +19 -1
  228. data/spec/models/data_passthrough_request_spec.rb +13 -1
  229. data/spec/models/debug_mode_log_spec.rb +46 -0
  230. data/spec/models/debug_model_log_summary_spec.rb +46 -0
  231. data/spec/models/department_spec.rb +13 -1
  232. data/spec/models/disability_status_enum_spec.rb +1 -1
  233. data/spec/models/eeoc_spec.rb +13 -1
  234. data/spec/models/email_address_request_spec.rb +1 -1
  235. data/spec/models/email_address_spec.rb +1 -1
  236. data/spec/models/email_address_type_enum_spec.rb +1 -1
  237. data/spec/models/encoding_enum_spec.rb +28 -0
  238. data/spec/models/end_user_details_request_spec.rb +13 -5
  239. data/spec/models/error_validation_problem_spec.rb +52 -0
  240. data/spec/models/gender_enum_spec.rb +1 -1
  241. data/spec/models/ignore_common_model_request_spec.rb +40 -0
  242. data/spec/models/ignore_common_model_spec.rb +40 -0
  243. data/spec/models/job_interview_stage_spec.rb +13 -1
  244. data/spec/models/job_spec.rb +31 -1
  245. data/spec/models/job_status_enum_spec.rb +1 -1
  246. data/spec/models/link_token_spec.rb +1 -1
  247. data/spec/models/linked_account_status_spec.rb +40 -0
  248. data/spec/models/meta_response_spec.rb +52 -0
  249. data/spec/models/method_enum_spec.rb +1 -1
  250. data/spec/models/model_operation_spec.rb +13 -1
  251. data/spec/models/{remote_user_request_spec.rb → multipart_form_field_request_spec.rb} +11 -23
  252. data/spec/models/offer_spec.rb +13 -1
  253. data/spec/models/offer_status_enum_spec.rb +1 -1
  254. data/spec/models/office_spec.rb +13 -1
  255. data/spec/models/overall_recommendation_enum_spec.rb +1 -1
  256. data/spec/models/paginated_activity_list_spec.rb +1 -1
  257. data/spec/models/paginated_application_list_spec.rb +1 -1
  258. data/spec/models/paginated_attachment_list_spec.rb +1 -1
  259. data/spec/models/paginated_candidate_list_spec.rb +1 -1
  260. data/spec/models/paginated_department_list_spec.rb +1 -1
  261. data/spec/models/paginated_eeoc_list_spec.rb +1 -1
  262. data/spec/models/paginated_job_interview_stage_list_spec.rb +1 -1
  263. data/spec/models/paginated_job_list_spec.rb +1 -1
  264. data/spec/models/paginated_offer_list_spec.rb +1 -1
  265. data/spec/models/paginated_office_list_spec.rb +1 -1
  266. data/spec/models/paginated_reject_reason_list_spec.rb +1 -1
  267. data/spec/models/paginated_remote_user_list_spec.rb +1 -1
  268. data/spec/models/paginated_scheduled_interview_list_spec.rb +1 -1
  269. data/spec/models/paginated_scorecard_list_spec.rb +1 -1
  270. data/spec/models/paginated_tag_list_spec.rb +1 -1
  271. data/spec/models/phone_number_request_spec.rb +1 -1
  272. data/spec/models/phone_number_spec.rb +1 -1
  273. data/spec/models/phone_number_type_enum_spec.rb +1 -1
  274. data/spec/models/race_enum_spec.rb +1 -1
  275. data/spec/models/reason_enum_spec.rb +28 -0
  276. data/spec/models/reject_reason_spec.rb +13 -1
  277. data/spec/models/remote_data_spec.rb +1 -1
  278. data/spec/models/remote_key_for_regeneration_request_spec.rb +1 -1
  279. data/spec/models/remote_key_spec.rb +1 -1
  280. data/spec/models/remote_response_spec.rb +1 -1
  281. data/spec/models/remote_user_spec.rb +13 -1
  282. data/spec/models/scheduled_interview_spec.rb +13 -1
  283. data/spec/models/scheduled_interview_status_enum_spec.rb +1 -1
  284. data/spec/models/scorecard_spec.rb +13 -1
  285. data/spec/models/sync_status_spec.rb +1 -1
  286. data/spec/models/tag_spec.rb +13 -1
  287. data/spec/models/url_request_spec.rb +1 -1
  288. data/spec/models/url_spec.rb +1 -1
  289. data/spec/models/url_type_enum_spec.rb +1 -1
  290. data/spec/models/{remote_key_for_regeneration_spec.rb → validation_problem_source_spec.rb} +8 -8
  291. data/spec/models/veteran_status_enum_spec.rb +1 -1
  292. data/spec/models/visibility_enum_spec.rb +1 -1
  293. data/spec/models/warning_validation_problem_spec.rb +52 -0
  294. data/spec/models/webhook_receiver_request_spec.rb +46 -0
  295. data/spec/models/webhook_receiver_spec.rb +46 -0
  296. metadata +179 -123
  297. data/config.json +0 -2
  298. data/docs/DataPassthrough.md +0 -24
  299. data/docs/EndUserDetails.md +0 -24
  300. data/docs/PatchedApplicationRequest.md +0 -34
  301. data/docs/RemoteKeyForRegeneration.md +0 -18
  302. data/docs/RemoteUserRequest.md +0 -30
  303. data/docs/ScheduledInterviewRequest.md +0 -38
  304. data/docs/ScorecardRequest.md +0 -30
  305. data/lib/merge_ats_client/models/patched_application_request.rb +0 -309
  306. data/merge_ats_client-1.0.3.gem +0 -0
  307. data/spec/models/patched_application_request_spec.rb +0 -82
  308. data/spec/models/scheduled_interview_request_spec.rb +0 -94
  309. data/spec/models/scorecard_request_spec.rb +0 -70
  310. data/test_ats.rb +0 -22
  311. data/test_signature.rb +0 -32
@@ -0,0 +1,154 @@
1
+ =begin
2
+ #Merge ATS API
3
+
4
+ #The unified API for building rich integrations with multiple Applicant Tracking System platforms.
5
+
6
+ The version of the OpenAPI document: 1.0
7
+ Contact: hello@merge.dev
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.1.1
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module MergeATSClient
16
+ class WebhookReceiversApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Creates a `WebhookReceiver` object with the given values.
23
+ # @param x_account_token [String] Token identifying the end user.
24
+ # @param webhook_receiver_request [WebhookReceiverRequest]
25
+ # @param [Hash] opts the optional parameters
26
+ # @return [WebhookReceiver]
27
+ def webhook_receivers_create(x_account_token, webhook_receiver_request, opts = {})
28
+ data, _status_code, _headers = webhook_receivers_create_with_http_info(x_account_token, webhook_receiver_request, opts)
29
+ data
30
+ end
31
+
32
+ # Creates a `WebhookReceiver` object with the given values.
33
+ # @param x_account_token [String] Token identifying the end user.
34
+ # @param webhook_receiver_request [WebhookReceiverRequest]
35
+ # @param [Hash] opts the optional parameters
36
+ # @return [Array<(WebhookReceiver, Integer, Hash)>] WebhookReceiver data, response status code and response headers
37
+ def webhook_receivers_create_with_http_info(x_account_token, webhook_receiver_request, opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: WebhookReceiversApi.webhook_receivers_create ...'
40
+ end
41
+ # verify the required parameter 'x_account_token' is set
42
+ if @api_client.config.client_side_validation && x_account_token.nil?
43
+ fail ArgumentError, "Missing the required parameter 'x_account_token' when calling WebhookReceiversApi.webhook_receivers_create"
44
+ end
45
+ # verify the required parameter 'webhook_receiver_request' is set
46
+ if @api_client.config.client_side_validation && webhook_receiver_request.nil?
47
+ fail ArgumentError, "Missing the required parameter 'webhook_receiver_request' when calling WebhookReceiversApi.webhook_receivers_create"
48
+ end
49
+ # resource path
50
+ local_var_path = '/webhook-receivers'
51
+
52
+ # query parameters
53
+ query_params = opts[:query_params] || {}
54
+
55
+ # header parameters
56
+ header_params = opts[:header_params] || {}
57
+ # HTTP header 'Accept' (if needed)
58
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
59
+ # HTTP header 'Content-Type'
60
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
61
+ header_params[:'X-Account-Token'] = x_account_token
62
+
63
+ # form parameters
64
+ form_params = opts[:form_params] || {}
65
+
66
+ # http body (model)
67
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(webhook_receiver_request)
68
+
69
+ # return_type
70
+ return_type = opts[:debug_return_type] || 'WebhookReceiver'
71
+
72
+ # auth_names
73
+ auth_names = opts[:debug_auth_names] || ['tokenAuth']
74
+
75
+ new_options = opts.merge(
76
+ :operation => :"WebhookReceiversApi.webhook_receivers_create",
77
+ :header_params => header_params,
78
+ :query_params => query_params,
79
+ :form_params => form_params,
80
+ :body => post_body,
81
+ :auth_names => auth_names,
82
+ :return_type => return_type
83
+ )
84
+
85
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
86
+ if @api_client.config.debugging
87
+ @api_client.config.logger.debug "API called: WebhookReceiversApi#webhook_receivers_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
88
+ end
89
+ return data, status_code, headers
90
+ end
91
+
92
+ # Returns a list of `WebhookReceiver` objects.
93
+ # @param x_account_token [String] Token identifying the end user.
94
+ # @param [Hash] opts the optional parameters
95
+ # @return [Array<WebhookReceiver>]
96
+ def webhook_receivers_list(x_account_token, opts = {})
97
+ data, _status_code, _headers = webhook_receivers_list_with_http_info(x_account_token, opts)
98
+ data
99
+ end
100
+
101
+ # Returns a list of &#x60;WebhookReceiver&#x60; objects.
102
+ # @param x_account_token [String] Token identifying the end user.
103
+ # @param [Hash] opts the optional parameters
104
+ # @return [Array<(Array<WebhookReceiver>, Integer, Hash)>] Array<WebhookReceiver> data, response status code and response headers
105
+ def webhook_receivers_list_with_http_info(x_account_token, opts = {})
106
+ if @api_client.config.debugging
107
+ @api_client.config.logger.debug 'Calling API: WebhookReceiversApi.webhook_receivers_list ...'
108
+ end
109
+ # verify the required parameter 'x_account_token' is set
110
+ if @api_client.config.client_side_validation && x_account_token.nil?
111
+ fail ArgumentError, "Missing the required parameter 'x_account_token' when calling WebhookReceiversApi.webhook_receivers_list"
112
+ end
113
+ # resource path
114
+ local_var_path = '/webhook-receivers'
115
+
116
+ # query parameters
117
+ query_params = opts[:query_params] || {}
118
+
119
+ # header parameters
120
+ header_params = opts[:header_params] || {}
121
+ # HTTP header 'Accept' (if needed)
122
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
123
+ header_params[:'X-Account-Token'] = x_account_token
124
+
125
+ # form parameters
126
+ form_params = opts[:form_params] || {}
127
+
128
+ # http body (model)
129
+ post_body = opts[:debug_body]
130
+
131
+ # return_type
132
+ return_type = opts[:debug_return_type] || 'Array<WebhookReceiver>'
133
+
134
+ # auth_names
135
+ auth_names = opts[:debug_auth_names] || ['tokenAuth']
136
+
137
+ new_options = opts.merge(
138
+ :operation => :"WebhookReceiversApi.webhook_receivers_list",
139
+ :header_params => header_params,
140
+ :query_params => query_params,
141
+ :form_params => form_params,
142
+ :body => post_body,
143
+ :auth_names => auth_names,
144
+ :return_type => return_type
145
+ )
146
+
147
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
148
+ if @api_client.config.debugging
149
+ @api_client.config.logger.debug "API called: WebhookReceiversApi#webhook_receivers_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
150
+ end
151
+ return data, status_code, headers
152
+ end
153
+ end
154
+ end
@@ -197,11 +197,13 @@ module MergeATSClient
197
197
 
198
198
  # Gets API key (with prefix if set).
199
199
  # @param [String] param_name the parameter name of API key auth
200
- def api_key_with_prefix(param_name)
200
+ def api_key_with_prefix(param_name, param_alias = nil)
201
+ key = @api_key[param_name]
202
+ key = @api_key.fetch(param_alias, key) unless param_alias.nil?
201
203
  if @api_key_prefix[param_name]
202
- "#{@api_key_prefix[param_name]} #{@api_key[param_name]}"
204
+ "#{@api_key_prefix[param_name]} #{key}"
203
205
  else
204
- @api_key[param_name]
206
+ key
205
207
  end
206
208
  end
207
209
 
@@ -218,7 +220,7 @@ module MergeATSClient
218
220
  type: 'api_key',
219
221
  in: 'header',
220
222
  key: 'Authorization',
221
- value: api_key_with_prefix('Authorization')
223
+ value: api_key_with_prefix('tokenAuth')
222
224
  },
223
225
  }
224
226
  end
@@ -19,6 +19,8 @@ module MergeATSClient
19
19
 
20
20
  attr_accessor :integration
21
21
 
22
+ attr_accessor :integration_slug
23
+
22
24
  attr_accessor :category
23
25
 
24
26
  attr_accessor :end_user_origin_id
@@ -29,16 +31,20 @@ module MergeATSClient
29
31
 
30
32
  attr_accessor :status
31
33
 
34
+ attr_accessor :webhook_listener_url
35
+
32
36
  # Attribute mapping from ruby-style variable name to JSON key.
33
37
  def self.attribute_map
34
38
  {
35
39
  :'id' => :'id',
36
40
  :'integration' => :'integration',
41
+ :'integration_slug' => :'integration_slug',
37
42
  :'category' => :'category',
38
43
  :'end_user_origin_id' => :'end_user_origin_id',
39
44
  :'end_user_organization_name' => :'end_user_organization_name',
40
45
  :'end_user_email_address' => :'end_user_email_address',
41
- :'status' => :'status'
46
+ :'status' => :'status',
47
+ :'webhook_listener_url' => :'webhook_listener_url'
42
48
  }
43
49
  end
44
50
 
@@ -52,11 +58,13 @@ module MergeATSClient
52
58
  {
53
59
  :'id' => :'String',
54
60
  :'integration' => :'String',
61
+ :'integration_slug' => :'String',
55
62
  :'category' => :'CategoryEnum',
56
63
  :'end_user_origin_id' => :'String',
57
64
  :'end_user_organization_name' => :'String',
58
65
  :'end_user_email_address' => :'String',
59
- :'status' => :'String'
66
+ :'status' => :'String',
67
+ :'webhook_listener_url' => :'String'
60
68
  }
61
69
  end
62
70
 
@@ -90,6 +98,10 @@ module MergeATSClient
90
98
  self.integration = attributes[:'integration']
91
99
  end
92
100
 
101
+ if attributes.key?(:'integration_slug')
102
+ self.integration_slug = attributes[:'integration_slug']
103
+ end
104
+
93
105
  if attributes.key?(:'category')
94
106
  self.category = attributes[:'category']
95
107
  end
@@ -109,6 +121,10 @@ module MergeATSClient
109
121
  if attributes.key?(:'status')
110
122
  self.status = attributes[:'status']
111
123
  end
124
+
125
+ if attributes.key?(:'webhook_listener_url')
126
+ self.webhook_listener_url = attributes[:'webhook_listener_url']
127
+ end
112
128
  end
113
129
 
114
130
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -131,11 +147,13 @@ module MergeATSClient
131
147
  self.class == o.class &&
132
148
  id == o.id &&
133
149
  integration == o.integration &&
150
+ integration_slug == o.integration_slug &&
134
151
  category == o.category &&
135
152
  end_user_origin_id == o.end_user_origin_id &&
136
153
  end_user_organization_name == o.end_user_organization_name &&
137
154
  end_user_email_address == o.end_user_email_address &&
138
- status == o.status
155
+ status == o.status &&
156
+ webhook_listener_url == o.webhook_listener_url
139
157
  end
140
158
 
141
159
  # @see the `==` method
@@ -147,7 +165,7 @@ module MergeATSClient
147
165
  # Calculates hash code according to all attributes.
148
166
  # @return [Integer] Hash code
149
167
  def hash
150
- [id, integration, category, end_user_origin_id, end_user_organization_name, end_user_email_address, status].hash
168
+ [id, integration, integration_slug, category, end_user_origin_id, end_user_organization_name, end_user_email_address, status, webhook_listener_url].hash
151
169
  end
152
170
 
153
171
  # Builds the object from hash
@@ -22,12 +22,16 @@ module MergeATSClient
22
22
 
23
23
  attr_accessor :status
24
24
 
25
+ attr_accessor :status_detail
26
+
25
27
  attr_accessor :end_user_origin_id
26
28
 
27
29
  attr_accessor :end_user_organization_name
28
30
 
29
31
  attr_accessor :end_user_email_address
30
32
 
33
+ attr_accessor :webhook_listener_url
34
+
31
35
  attr_accessor :integration
32
36
 
33
37
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -36,9 +40,11 @@ module MergeATSClient
36
40
  :'id' => :'id',
37
41
  :'category' => :'category',
38
42
  :'status' => :'status',
43
+ :'status_detail' => :'status_detail',
39
44
  :'end_user_origin_id' => :'end_user_origin_id',
40
45
  :'end_user_organization_name' => :'end_user_organization_name',
41
46
  :'end_user_email_address' => :'end_user_email_address',
47
+ :'webhook_listener_url' => :'webhook_listener_url',
42
48
  :'integration' => :'integration'
43
49
  }
44
50
  end
@@ -54,9 +60,11 @@ module MergeATSClient
54
60
  :'id' => :'String',
55
61
  :'category' => :'CategoryEnum',
56
62
  :'status' => :'AccountDetailsAndActionsStatusEnum',
63
+ :'status_detail' => :'String',
57
64
  :'end_user_origin_id' => :'String',
58
65
  :'end_user_organization_name' => :'String',
59
66
  :'end_user_email_address' => :'String',
67
+ :'webhook_listener_url' => :'String',
60
68
  :'integration' => :'AccountDetailsAndActionsIntegration'
61
69
  }
62
70
  end
@@ -94,6 +102,10 @@ module MergeATSClient
94
102
  self.status = attributes[:'status']
95
103
  end
96
104
 
105
+ if attributes.key?(:'status_detail')
106
+ self.status_detail = attributes[:'status_detail']
107
+ end
108
+
97
109
  if attributes.key?(:'end_user_origin_id')
98
110
  self.end_user_origin_id = attributes[:'end_user_origin_id']
99
111
  end
@@ -106,6 +118,10 @@ module MergeATSClient
106
118
  self.end_user_email_address = attributes[:'end_user_email_address']
107
119
  end
108
120
 
121
+ if attributes.key?(:'webhook_listener_url')
122
+ self.webhook_listener_url = attributes[:'webhook_listener_url']
123
+ end
124
+
109
125
  if attributes.key?(:'integration')
110
126
  self.integration = attributes[:'integration']
111
127
  end
@@ -131,6 +147,10 @@ module MergeATSClient
131
147
  invalid_properties.push('invalid value for "end_user_email_address", end_user_email_address cannot be nil.')
132
148
  end
133
149
 
150
+ if @webhook_listener_url.nil?
151
+ invalid_properties.push('invalid value for "webhook_listener_url", webhook_listener_url cannot be nil.')
152
+ end
153
+
134
154
  invalid_properties
135
155
  end
136
156
 
@@ -141,6 +161,7 @@ module MergeATSClient
141
161
  return false if @status.nil?
142
162
  return false if @end_user_organization_name.nil?
143
163
  return false if @end_user_email_address.nil?
164
+ return false if @webhook_listener_url.nil?
144
165
  true
145
166
  end
146
167
 
@@ -152,9 +173,11 @@ module MergeATSClient
152
173
  id == o.id &&
153
174
  category == o.category &&
154
175
  status == o.status &&
176
+ status_detail == o.status_detail &&
155
177
  end_user_origin_id == o.end_user_origin_id &&
156
178
  end_user_organization_name == o.end_user_organization_name &&
157
179
  end_user_email_address == o.end_user_email_address &&
180
+ webhook_listener_url == o.webhook_listener_url &&
158
181
  integration == o.integration
159
182
  end
160
183
 
@@ -167,7 +190,7 @@ module MergeATSClient
167
190
  # Calculates hash code according to all attributes.
168
191
  # @return [Integer] Hash code
169
192
  def hash
170
- [id, category, status, end_user_origin_id, end_user_organization_name, end_user_email_address, integration].hash
193
+ [id, category, status, status_detail, end_user_origin_id, end_user_organization_name, end_user_email_address, webhook_listener_url, integration].hash
171
194
  end
172
195
 
173
196
  # Builds the object from hash
@@ -54,7 +54,7 @@ module MergeATSClient
54
54
  def self.openapi_types
55
55
  {
56
56
  :'name' => :'String',
57
- :'categories' => :'CategoriesEnum',
57
+ :'categories' => :'Array<CategoriesEnum>',
58
58
  :'image' => :'String',
59
59
  :'square_image' => :'String',
60
60
  :'color' => :'String',
@@ -90,7 +90,9 @@ module MergeATSClient
90
90
  end
91
91
 
92
92
  if attributes.key?(:'categories')
93
- self.categories = attributes[:'categories']
93
+ if (value = attributes[:'categories']).is_a?(Array)
94
+ self.categories = value
95
+ end
94
96
  end
95
97
 
96
98
  if attributes.key?(:'image')
@@ -32,28 +32,6 @@ module MergeATSClient
32
32
 
33
33
  attr_accessor :slug
34
34
 
35
- class EnumAttributeValidator
36
- attr_reader :datatype
37
- attr_reader :allowable_values
38
-
39
- def initialize(datatype, allowable_values)
40
- @allowable_values = allowable_values.map do |value|
41
- case datatype.to_s
42
- when /Integer/i
43
- value.to_i
44
- when /Float/i
45
- value.to_f
46
- else
47
- value
48
- end
49
- end
50
- end
51
-
52
- def valid?(value)
53
- !value || allowable_values.include?(value)
54
- end
55
- end
56
-
57
35
  # Attribute mapping from ruby-style variable name to JSON key.
58
36
  def self.attribute_map
59
37
  {
@@ -75,7 +53,7 @@ module MergeATSClient
75
53
  def self.openapi_types
76
54
  {
77
55
  :'name' => :'String',
78
- :'categories' => :'Array<String>',
56
+ :'categories' => :'Array<CategoriesEnum>',
79
57
  :'image' => :'String',
80
58
  :'square_image' => :'String',
81
59
  :'color' => :'String',
@@ -242,7 +220,7 @@ module MergeATSClient
242
220
  when :Date
243
221
  Date.parse(value)
244
222
  when :String
245
- value.to_s
223
+ value
246
224
  when :Integer
247
225
  value.to_i
248
226
  when :Float
@@ -154,7 +154,7 @@ module MergeATSClient
154
154
  when :Date
155
155
  Date.parse(value)
156
156
  when :String
157
- value.to_s
157
+ value
158
158
  when :Integer
159
159
  value.to_i
160
160
  when :Float
@@ -14,14 +14,13 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module MergeATSClient
17
- # # The Activity Object ### Description The `Activity` object is used to represent an activity performed by a user. ### Usage Example Fetch from the `LIST Activities` endpoint and filter by `ID` to show all activities.
17
+ # # The Activity Object ### Description The `Activity` object is used to represent an activity performed by a user. ### Usage Example Fetch from the `LIST Activities` endpoint and filter by `ID` to show all activities.
18
18
  class Activity
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 user the performed the action.
25
24
  attr_accessor :user
26
25
 
27
26
  # When the third party's activity was created.
@@ -41,6 +40,9 @@ module MergeATSClient
41
40
 
42
41
  attr_accessor :remote_data
43
42
 
43
+ # Indicates whether or not this object has been deleted on the third-party.
44
+ attr_accessor :remote_was_deleted
45
+
44
46
  # Attribute mapping from ruby-style variable name to JSON key.
45
47
  def self.attribute_map
46
48
  {
@@ -52,7 +54,8 @@ module MergeATSClient
52
54
  :'subject' => :'subject',
53
55
  :'body' => :'body',
54
56
  :'visibility' => :'visibility',
55
- :'remote_data' => :'remote_data'
57
+ :'remote_data' => :'remote_data',
58
+ :'remote_was_deleted' => :'remote_was_deleted'
56
59
  }
57
60
  end
58
61
 
@@ -72,7 +75,8 @@ module MergeATSClient
72
75
  :'subject' => :'String',
73
76
  :'body' => :'String',
74
77
  :'visibility' => :'VisibilityEnum',
75
- :'remote_data' => :'Array<RemoteData>'
78
+ :'remote_data' => :'Array<RemoteData>',
79
+ :'remote_was_deleted' => :'Boolean'
76
80
  }
77
81
  end
78
82
 
@@ -86,7 +90,7 @@ module MergeATSClient
86
90
  :'subject',
87
91
  :'body',
88
92
  :'visibility',
89
- :'remote_data'
93
+ :'remote_data',
90
94
  ])
91
95
  end
92
96
 
@@ -142,6 +146,10 @@ module MergeATSClient
142
146
  self.remote_data = value
143
147
  end
144
148
  end
149
+
150
+ if attributes.key?(:'remote_was_deleted')
151
+ self.remote_was_deleted = attributes[:'remote_was_deleted']
152
+ end
145
153
  end
146
154
 
147
155
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -170,7 +178,8 @@ module MergeATSClient
170
178
  subject == o.subject &&
171
179
  body == o.body &&
172
180
  visibility == o.visibility &&
173
- remote_data == o.remote_data
181
+ remote_data == o.remote_data &&
182
+ remote_was_deleted == o.remote_was_deleted
174
183
  end
175
184
 
176
185
  # @see the `==` method
@@ -182,7 +191,7 @@ module MergeATSClient
182
191
  # Calculates hash code according to all attributes.
183
192
  # @return [Integer] Hash code
184
193
  def hash
185
- [id, remote_id, user, remote_created_at, activity_type, subject, body, visibility, remote_data].hash
194
+ [id, remote_id, user, remote_created_at, activity_type, subject, body, visibility, remote_data, remote_was_deleted].hash
186
195
  end
187
196
 
188
197
  # Builds the object from hash
@@ -14,17 +14,15 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module MergeATSClient
17
- # # The Application Object ### Description The `Application` object is used to represent an Application for a job position. ### Usage Example Fetch from the `LIST Applications` endpoint and filter by `ID` to show all applications.
17
+ # # The Application Object ### Description The `Application` object is used to represent an Application for a job position. This is separate from the Candidate object, although some systems may only allow a Candidate to have one Application. Please note: Application objects are constructed if the object does not exist in the remote system. ### Usage Example Fetch from the `LIST Applications` endpoint and filter by `ID` to show all applications.
18
18
  class Application
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 candidate applying.
25
24
  attr_accessor :candidate
26
25
 
27
- # The job being applied for.
28
26
  attr_accessor :job
29
27
 
30
28
  # When the application was submitted.
@@ -36,13 +34,10 @@ module MergeATSClient
36
34
  # The application's source.
37
35
  attr_accessor :source
38
36
 
39
- # The user credited for this application.
40
37
  attr_accessor :credited_to
41
38
 
42
- # The application's current stage.
43
39
  attr_accessor :current_stage
44
40
 
45
- # The application's reason for rejection.
46
41
  attr_accessor :reject_reason
47
42
 
48
43
  attr_accessor :remote_data
@@ -50,6 +45,8 @@ module MergeATSClient
50
45
  # Custom fields configured for a given model.
51
46
  attr_accessor :custom_fields
52
47
 
48
+ attr_accessor :remote_was_deleted
49
+
53
50
  # Attribute mapping from ruby-style variable name to JSON key.
54
51
  def self.attribute_map
55
52
  {
@@ -64,7 +61,8 @@ module MergeATSClient
64
61
  :'current_stage' => :'current_stage',
65
62
  :'reject_reason' => :'reject_reason',
66
63
  :'remote_data' => :'remote_data',
67
- :'custom_fields' => :'custom_fields'
64
+ :'custom_fields' => :'custom_fields',
65
+ :'remote_was_deleted' => :'remote_was_deleted'
68
66
  }
69
67
  end
70
68
 
@@ -87,7 +85,8 @@ module MergeATSClient
87
85
  :'current_stage' => :'String',
88
86
  :'reject_reason' => :'String',
89
87
  :'remote_data' => :'Array<RemoteData>',
90
- :'custom_fields' => :'Hash<String, Object>'
88
+ :'custom_fields' => :'Hash<String, AnyType>',
89
+ :'remote_was_deleted' => :'Boolean'
91
90
  }
92
91
  end
93
92
 
@@ -104,7 +103,7 @@ module MergeATSClient
104
103
  :'current_stage',
105
104
  :'reject_reason',
106
105
  :'remote_data',
107
- :'custom_fields'
106
+ :'custom_fields',
108
107
  ])
109
108
  end
110
109
 
@@ -174,6 +173,10 @@ module MergeATSClient
174
173
  self.custom_fields = value
175
174
  end
176
175
  end
176
+
177
+ if attributes.key?(:'remote_was_deleted')
178
+ self.remote_was_deleted = attributes[:'remote_was_deleted']
179
+ end
177
180
  end
178
181
 
179
182
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -205,7 +208,8 @@ module MergeATSClient
205
208
  current_stage == o.current_stage &&
206
209
  reject_reason == o.reject_reason &&
207
210
  remote_data == o.remote_data &&
208
- custom_fields == o.custom_fields
211
+ custom_fields == o.custom_fields &&
212
+ remote_was_deleted == o.remote_was_deleted
209
213
  end
210
214
 
211
215
  # @see the `==` method
@@ -217,7 +221,7 @@ module MergeATSClient
217
221
  # Calculates hash code according to all attributes.
218
222
  # @return [Integer] Hash code
219
223
  def hash
220
- [id, remote_id, candidate, job, applied_at, rejected_at, source, credited_to, current_stage, reject_reason, remote_data, custom_fields].hash
224
+ [id, remote_id, candidate, job, applied_at, rejected_at, source, credited_to, current_stage, reject_reason, remote_data, custom_fields, remote_was_deleted].hash
221
225
  end
222
226
 
223
227
  # Builds the object from hash