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,246 @@
1
+ =begin
2
+ #Merge ATS API
3
+
4
+ #The unified API for building rich integrations with multiple Applicant Tracking System platforms.
5
+
6
+ The version of the OpenAPI document: 1.0
7
+ Contact: hello@merge.dev
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.1.1
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module MergeATSClient
17
+ class WebhookReceiver
18
+ attr_accessor :event
19
+
20
+ attr_accessor :is_active
21
+
22
+ attr_accessor :key
23
+
24
+ # Attribute mapping from ruby-style variable name to JSON key.
25
+ def self.attribute_map
26
+ {
27
+ :'event' => :'event',
28
+ :'is_active' => :'is_active',
29
+ :'key' => :'key'
30
+ }
31
+ end
32
+
33
+ # Returns all the JSON keys this model knows about
34
+ def self.acceptable_attributes
35
+ attribute_map.values
36
+ end
37
+
38
+ # Attribute type mapping.
39
+ def self.openapi_types
40
+ {
41
+ :'event' => :'String',
42
+ :'is_active' => :'Boolean',
43
+ :'key' => :'String'
44
+ }
45
+ end
46
+
47
+ # List of attributes with nullable: true
48
+ def self.openapi_nullable
49
+ Set.new([
50
+ ])
51
+ end
52
+
53
+ # Initializes the object
54
+ # @param [Hash] attributes Model attributes in the form of hash
55
+ def initialize(attributes = {})
56
+ if (!attributes.is_a?(Hash))
57
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MergeATSClient::WebhookReceiver` initialize method"
58
+ end
59
+
60
+ # check to see if the attribute exists and convert string to symbol for hash key
61
+ attributes = attributes.each_with_object({}) { |(k, v), h|
62
+ if (!self.class.attribute_map.key?(k.to_sym))
63
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MergeATSClient::WebhookReceiver`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
64
+ end
65
+ h[k.to_sym] = v
66
+ }
67
+
68
+ if attributes.key?(:'event')
69
+ self.event = attributes[:'event']
70
+ end
71
+
72
+ if attributes.key?(:'is_active')
73
+ self.is_active = attributes[:'is_active']
74
+ end
75
+
76
+ if attributes.key?(:'key')
77
+ self.key = attributes[:'key']
78
+ end
79
+ end
80
+
81
+ # Show invalid properties with the reasons. Usually used together with valid?
82
+ # @return Array for valid properties with the reasons
83
+ def list_invalid_properties
84
+ invalid_properties = Array.new
85
+ if @event.nil?
86
+ invalid_properties.push('invalid value for "event", event cannot be nil.')
87
+ end
88
+
89
+ if @is_active.nil?
90
+ invalid_properties.push('invalid value for "is_active", is_active cannot be nil.')
91
+ end
92
+
93
+ invalid_properties
94
+ end
95
+
96
+ # Check to see if the all the properties in the model are valid
97
+ # @return true if the model is valid
98
+ def valid?
99
+ return false if @event.nil?
100
+ return false if @is_active.nil?
101
+ true
102
+ end
103
+
104
+ # Checks equality by comparing each attribute.
105
+ # @param [Object] Object to be compared
106
+ def ==(o)
107
+ return true if self.equal?(o)
108
+ self.class == o.class &&
109
+ event == o.event &&
110
+ is_active == o.is_active &&
111
+ key == o.key
112
+ end
113
+
114
+ # @see the `==` method
115
+ # @param [Object] Object to be compared
116
+ def eql?(o)
117
+ self == o
118
+ end
119
+
120
+ # Calculates hash code according to all attributes.
121
+ # @return [Integer] Hash code
122
+ def hash
123
+ [event, is_active, key].hash
124
+ end
125
+
126
+ # Builds the object from hash
127
+ # @param [Hash] attributes Model attributes in the form of hash
128
+ # @return [Object] Returns the model itself
129
+ def self.build_from_hash(attributes)
130
+ new.build_from_hash(attributes)
131
+ end
132
+
133
+ # Builds the object from hash
134
+ # @param [Hash] attributes Model attributes in the form of hash
135
+ # @return [Object] Returns the model itself
136
+ def build_from_hash(attributes)
137
+ return nil unless attributes.is_a?(Hash)
138
+ self.class.openapi_types.each_pair do |key, type|
139
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
140
+ self.send("#{key}=", nil)
141
+ elsif type =~ /\AArray<(.*)>/i
142
+ # check to ensure the input is an array given that the attribute
143
+ # is documented as an array but the input is not
144
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
145
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
146
+ end
147
+ elsif !attributes[self.class.attribute_map[key]].nil?
148
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
149
+ end
150
+ end
151
+
152
+ self
153
+ end
154
+
155
+ # Deserializes the data based on type
156
+ # @param string type Data type
157
+ # @param string value Value to be deserialized
158
+ # @return [Object] Deserialized data
159
+ def _deserialize(type, value)
160
+ case type.to_sym
161
+ when :Time
162
+ Time.parse(value)
163
+ when :Date
164
+ Date.parse(value)
165
+ when :String
166
+ value
167
+ when :Integer
168
+ value.to_i
169
+ when :Float
170
+ value.to_f
171
+ when :Boolean
172
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
173
+ true
174
+ else
175
+ false
176
+ end
177
+ when :Object
178
+ # generic object (usually a Hash), return directly
179
+ value
180
+ when /\AArray<(?<inner_type>.+)>\z/
181
+ inner_type = Regexp.last_match[:inner_type]
182
+ value.map { |v| _deserialize(inner_type, v) }
183
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
184
+ k_type = Regexp.last_match[:k_type]
185
+ v_type = Regexp.last_match[:v_type]
186
+ {}.tap do |hash|
187
+ value.each do |k, v|
188
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
189
+ end
190
+ end
191
+ else # model
192
+ # models (e.g. Pet) or oneOf
193
+ klass = MergeATSClient.const_get(type)
194
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
195
+ end
196
+ end
197
+
198
+ # Returns the string representation of the object
199
+ # @return [String] String presentation of the object
200
+ def to_s
201
+ to_hash.to_s
202
+ end
203
+
204
+ # to_body is an alias to to_hash (backward compatibility)
205
+ # @return [Hash] Returns the object in the form of hash
206
+ def to_body
207
+ to_hash
208
+ end
209
+
210
+ # Returns the object in the form of hash
211
+ # @return [Hash] Returns the object in the form of hash
212
+ def to_hash
213
+ hash = {}
214
+ self.class.attribute_map.each_pair do |attr, param|
215
+ value = self.send(attr)
216
+ if value.nil?
217
+ is_nullable = self.class.openapi_nullable.include?(attr)
218
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
219
+ end
220
+
221
+ hash[param] = _to_hash(value)
222
+ end
223
+ hash
224
+ end
225
+
226
+ # Outputs non-array value in the form of hash
227
+ # For object, use to_hash. Otherwise, just return the value
228
+ # @param [Object] value Any valid value
229
+ # @return [Hash] Returns the value in the form of hash
230
+ def _to_hash(value)
231
+ if value.is_a?(Array)
232
+ value.compact.map { |v| _to_hash(v) }
233
+ elsif value.is_a?(Hash)
234
+ {}.tap do |hash|
235
+ value.each { |k, v| hash[k] = _to_hash(v) }
236
+ end
237
+ elsif value.respond_to? :to_hash
238
+ value.to_hash
239
+ else
240
+ value
241
+ end
242
+ end
243
+
244
+ end
245
+
246
+ end
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0
7
7
  Contact: hello@merge.dev
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.0
9
+ OpenAPI Generator version: 5.1.1
10
10
 
11
11
  =end
12
12
 
@@ -14,44 +14,19 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module MergeATSClient
17
- class EndUserDetails
18
- attr_accessor :end_user_email_address
17
+ class WebhookReceiverRequest
18
+ attr_accessor :event
19
19
 
20
- attr_accessor :end_user_organization_name
20
+ attr_accessor :is_active
21
21
 
22
- attr_accessor :end_user_origin_id
23
-
24
- attr_accessor :categories
25
-
26
- class EnumAttributeValidator
27
- attr_reader :datatype
28
- attr_reader :allowable_values
29
-
30
- def initialize(datatype, allowable_values)
31
- @allowable_values = allowable_values.map do |value|
32
- case datatype.to_s
33
- when /Integer/i
34
- value.to_i
35
- when /Float/i
36
- value.to_f
37
- else
38
- value
39
- end
40
- end
41
- end
42
-
43
- def valid?(value)
44
- !value || allowable_values.include?(value)
45
- end
46
- end
22
+ attr_accessor :key
47
23
 
48
24
  # Attribute mapping from ruby-style variable name to JSON key.
49
25
  def self.attribute_map
50
26
  {
51
- :'end_user_email_address' => :'end_user_email_address',
52
- :'end_user_organization_name' => :'end_user_organization_name',
53
- :'end_user_origin_id' => :'end_user_origin_id',
54
- :'categories' => :'categories'
27
+ :'event' => :'event',
28
+ :'is_active' => :'is_active',
29
+ :'key' => :'key'
55
30
  }
56
31
  end
57
32
 
@@ -63,10 +38,9 @@ module MergeATSClient
63
38
  # Attribute type mapping.
64
39
  def self.openapi_types
65
40
  {
66
- :'end_user_email_address' => :'String',
67
- :'end_user_organization_name' => :'String',
68
- :'end_user_origin_id' => :'String',
69
- :'categories' => :'Array<String>'
41
+ :'event' => :'String',
42
+ :'is_active' => :'Boolean',
43
+ :'key' => :'String'
70
44
  }
71
45
  end
72
46
 
@@ -80,33 +54,27 @@ module MergeATSClient
80
54
  # @param [Hash] attributes Model attributes in the form of hash
81
55
  def initialize(attributes = {})
82
56
  if (!attributes.is_a?(Hash))
83
- fail ArgumentError, "The input argument (attributes) must be a hash in `MergeATSClient::EndUserDetails` initialize method"
57
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MergeATSClient::WebhookReceiverRequest` initialize method"
84
58
  end
85
59
 
86
60
  # check to see if the attribute exists and convert string to symbol for hash key
87
61
  attributes = attributes.each_with_object({}) { |(k, v), h|
88
62
  if (!self.class.attribute_map.key?(k.to_sym))
89
- fail ArgumentError, "`#{k}` is not a valid attribute in `MergeATSClient::EndUserDetails`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
63
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MergeATSClient::WebhookReceiverRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
90
64
  end
91
65
  h[k.to_sym] = v
92
66
  }
93
67
 
94
- if attributes.key?(:'end_user_email_address')
95
- self.end_user_email_address = attributes[:'end_user_email_address']
68
+ if attributes.key?(:'event')
69
+ self.event = attributes[:'event']
96
70
  end
97
71
 
98
- if attributes.key?(:'end_user_organization_name')
99
- self.end_user_organization_name = attributes[:'end_user_organization_name']
72
+ if attributes.key?(:'is_active')
73
+ self.is_active = attributes[:'is_active']
100
74
  end
101
75
 
102
- if attributes.key?(:'end_user_origin_id')
103
- self.end_user_origin_id = attributes[:'end_user_origin_id']
104
- end
105
-
106
- if attributes.key?(:'categories')
107
- if (value = attributes[:'categories']).is_a?(Array)
108
- self.categories = value
109
- end
76
+ if attributes.key?(:'key')
77
+ self.key = attributes[:'key']
110
78
  end
111
79
  end
112
80
 
@@ -114,20 +82,20 @@ module MergeATSClient
114
82
  # @return Array for valid properties with the reasons
115
83
  def list_invalid_properties
116
84
  invalid_properties = Array.new
117
- if @end_user_email_address.nil?
118
- invalid_properties.push('invalid value for "end_user_email_address", end_user_email_address cannot be nil.')
85
+ if @event.nil?
86
+ invalid_properties.push('invalid value for "event", event cannot be nil.')
119
87
  end
120
88
 
121
- if @end_user_organization_name.nil?
122
- invalid_properties.push('invalid value for "end_user_organization_name", end_user_organization_name cannot be nil.')
89
+ if @event.to_s.length < 1
90
+ invalid_properties.push('invalid value for "event", the character length must be great than or equal to 1.')
123
91
  end
124
92
 
125
- if @end_user_origin_id.nil?
126
- invalid_properties.push('invalid value for "end_user_origin_id", end_user_origin_id cannot be nil.')
93
+ if @is_active.nil?
94
+ invalid_properties.push('invalid value for "is_active", is_active cannot be nil.')
127
95
  end
128
96
 
129
- if @categories.nil?
130
- invalid_properties.push('invalid value for "categories", categories cannot be nil.')
97
+ if !@key.nil? && @key.to_s.length < 1
98
+ invalid_properties.push('invalid value for "key", the character length must be great than or equal to 1.')
131
99
  end
132
100
 
133
101
  invalid_properties
@@ -136,22 +104,45 @@ module MergeATSClient
136
104
  # Check to see if the all the properties in the model are valid
137
105
  # @return true if the model is valid
138
106
  def valid?
139
- return false if @end_user_email_address.nil?
140
- return false if @end_user_organization_name.nil?
141
- return false if @end_user_origin_id.nil?
142
- return false if @categories.nil?
107
+ return false if @event.nil?
108
+ return false if @event.to_s.length < 1
109
+ return false if @is_active.nil?
110
+ return false if !@key.nil? && @key.to_s.length < 1
143
111
  true
144
112
  end
145
113
 
114
+ # Custom attribute writer method with validation
115
+ # @param [Object] event Value to be assigned
116
+ def event=(event)
117
+ if event.nil?
118
+ fail ArgumentError, 'event cannot be nil'
119
+ end
120
+
121
+ if event.to_s.length < 1
122
+ fail ArgumentError, 'invalid value for "event", the character length must be great than or equal to 1.'
123
+ end
124
+
125
+ @event = event
126
+ end
127
+
128
+ # Custom attribute writer method with validation
129
+ # @param [Object] key Value to be assigned
130
+ def key=(key)
131
+ if !key.nil? && key.to_s.length < 1
132
+ fail ArgumentError, 'invalid value for "key", the character length must be great than or equal to 1.'
133
+ end
134
+
135
+ @key = key
136
+ end
137
+
146
138
  # Checks equality by comparing each attribute.
147
139
  # @param [Object] Object to be compared
148
140
  def ==(o)
149
141
  return true if self.equal?(o)
150
142
  self.class == o.class &&
151
- end_user_email_address == o.end_user_email_address &&
152
- end_user_organization_name == o.end_user_organization_name &&
153
- end_user_origin_id == o.end_user_origin_id &&
154
- categories == o.categories
143
+ event == o.event &&
144
+ is_active == o.is_active &&
145
+ key == o.key
155
146
  end
156
147
 
157
148
  # @see the `==` method
@@ -163,7 +154,7 @@ module MergeATSClient
163
154
  # Calculates hash code according to all attributes.
164
155
  # @return [Integer] Hash code
165
156
  def hash
166
- [end_user_email_address, end_user_organization_name, end_user_origin_id, categories].hash
157
+ [event, is_active, key].hash
167
158
  end
168
159
 
169
160
  # Builds the object from hash
@@ -206,7 +197,7 @@ module MergeATSClient
206
197
  when :Date
207
198
  Date.parse(value)
208
199
  when :String
209
- value.to_s
200
+ value
210
201
  when :Integer
211
202
  value.to_i
212
203
  when :Float
@@ -11,5 +11,5 @@ OpenAPI Generator version: 5.1.1
11
11
  =end
12
12
 
13
13
  module MergeATSClient
14
- VERSION = '1.0.4'
14
+ VERSION = '2.0.0'
15
15
  end
@@ -27,33 +27,48 @@ require 'merge_ats_client/models/account_token'
27
27
  require 'merge_ats_client/models/activity'
28
28
  require 'merge_ats_client/models/activity_type_enum'
29
29
  require 'merge_ats_client/models/application'
30
+ require 'merge_ats_client/models/application_endpoint_request'
30
31
  require 'merge_ats_client/models/application_request'
32
+ require 'merge_ats_client/models/application_response'
31
33
  require 'merge_ats_client/models/attachment'
34
+ require 'merge_ats_client/models/attachment_endpoint_request'
32
35
  require 'merge_ats_client/models/attachment_request'
36
+ require 'merge_ats_client/models/attachment_response'
33
37
  require 'merge_ats_client/models/attachment_type_enum'
34
38
  require 'merge_ats_client/models/available_actions'
35
39
  require 'merge_ats_client/models/candidate'
40
+ require 'merge_ats_client/models/candidate_endpoint_request'
36
41
  require 'merge_ats_client/models/candidate_request'
42
+ require 'merge_ats_client/models/candidate_response'
37
43
  require 'merge_ats_client/models/categories_enum'
38
44
  require 'merge_ats_client/models/category_enum'
39
45
  require 'merge_ats_client/models/data_passthrough_request'
46
+ require 'merge_ats_client/models/debug_mode_log'
47
+ require 'merge_ats_client/models/debug_model_log_summary'
40
48
  require 'merge_ats_client/models/department'
41
49
  require 'merge_ats_client/models/disability_status_enum'
42
50
  require 'merge_ats_client/models/eeoc'
43
51
  require 'merge_ats_client/models/email_address'
44
52
  require 'merge_ats_client/models/email_address_request'
45
53
  require 'merge_ats_client/models/email_address_type_enum'
54
+ require 'merge_ats_client/models/encoding_enum'
46
55
  require 'merge_ats_client/models/end_user_details_request'
56
+ require 'merge_ats_client/models/error_validation_problem'
47
57
  require 'merge_ats_client/models/gender_enum'
48
58
  require 'merge_ats_client/models/generate_remote_key_request'
59
+ require 'merge_ats_client/models/ignore_common_model'
60
+ require 'merge_ats_client/models/ignore_common_model_request'
49
61
  require 'merge_ats_client/models/issue'
50
62
  require 'merge_ats_client/models/issue_status_enum'
51
63
  require 'merge_ats_client/models/job'
52
64
  require 'merge_ats_client/models/job_interview_stage'
53
65
  require 'merge_ats_client/models/job_status_enum'
54
66
  require 'merge_ats_client/models/link_token'
67
+ require 'merge_ats_client/models/linked_account_status'
68
+ require 'merge_ats_client/models/meta_response'
55
69
  require 'merge_ats_client/models/method_enum'
56
70
  require 'merge_ats_client/models/model_operation'
71
+ require 'merge_ats_client/models/multipart_form_field_request'
57
72
  require 'merge_ats_client/models/offer'
58
73
  require 'merge_ats_client/models/offer_status_enum'
59
74
  require 'merge_ats_client/models/office'
@@ -80,6 +95,7 @@ require 'merge_ats_client/models/phone_number'
80
95
  require 'merge_ats_client/models/phone_number_request'
81
96
  require 'merge_ats_client/models/phone_number_type_enum'
82
97
  require 'merge_ats_client/models/race_enum'
98
+ require 'merge_ats_client/models/reason_enum'
83
99
  require 'merge_ats_client/models/reject_reason'
84
100
  require 'merge_ats_client/models/remote_data'
85
101
  require 'merge_ats_client/models/remote_data_request'
@@ -87,21 +103,22 @@ require 'merge_ats_client/models/remote_key'
87
103
  require 'merge_ats_client/models/remote_key_for_regeneration_request'
88
104
  require 'merge_ats_client/models/remote_response'
89
105
  require 'merge_ats_client/models/remote_user'
90
- require 'merge_ats_client/models/remote_user_request'
91
106
  require 'merge_ats_client/models/request_format_enum'
92
107
  require 'merge_ats_client/models/scheduled_interview'
93
- require 'merge_ats_client/models/scheduled_interview_request'
94
108
  require 'merge_ats_client/models/scheduled_interview_status_enum'
95
109
  require 'merge_ats_client/models/scorecard'
96
- require 'merge_ats_client/models/scorecard_request'
97
110
  require 'merge_ats_client/models/sync_status'
98
111
  require 'merge_ats_client/models/sync_status_status_enum'
99
112
  require 'merge_ats_client/models/tag'
100
113
  require 'merge_ats_client/models/url'
101
114
  require 'merge_ats_client/models/url_request'
102
115
  require 'merge_ats_client/models/url_type_enum'
116
+ require 'merge_ats_client/models/validation_problem_source'
103
117
  require 'merge_ats_client/models/veteran_status_enum'
104
118
  require 'merge_ats_client/models/visibility_enum'
119
+ require 'merge_ats_client/models/warning_validation_problem'
120
+ require 'merge_ats_client/models/webhook_receiver'
121
+ require 'merge_ats_client/models/webhook_receiver_request'
105
122
 
106
123
  # APIs
107
124
  require 'merge_ats_client/api/account_details_api'
@@ -114,6 +131,7 @@ require 'merge_ats_client/api/candidates_api'
114
131
  require 'merge_ats_client/api/delete_account_api'
115
132
  require 'merge_ats_client/api/departments_api'
116
133
  require 'merge_ats_client/api/eeocs_api'
134
+ require 'merge_ats_client/api/force_resync_api'
117
135
  require 'merge_ats_client/api/generate_key_api'
118
136
  require 'merge_ats_client/api/interviews_api'
119
137
  require 'merge_ats_client/api/issues_api'
@@ -130,6 +148,7 @@ require 'merge_ats_client/api/scorecards_api'
130
148
  require 'merge_ats_client/api/sync_status_api'
131
149
  require 'merge_ats_client/api/tags_api'
132
150
  require 'merge_ats_client/api/users_api'
151
+ require 'merge_ats_client/api/webhook_receivers_api'
133
152
 
134
153
  module MergeATSClient
135
154
  class << self
@@ -34,6 +34,7 @@ describe 'AccountDetailsApi' do
34
34
 
35
35
  # unit tests for account_details_retrieve
36
36
  # Get details for a linked account.
37
+ # @param x_account_token Token identifying the end user.
37
38
  # @param [Hash] opts the optional parameters
38
39
  # @return [AccountDetails]
39
40
  describe 'account_details_retrieve test' do
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0
7
7
  Contact: hello@merge.dev
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.0
9
+ OpenAPI Generator version: 5.1.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0
7
7
  Contact: hello@merge.dev
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.0
9
+ OpenAPI Generator version: 5.1.1
10
10
 
11
11
  =end
12
12
 
@@ -40,6 +40,8 @@ describe 'ActivitiesApi' do
40
40
  # @option opts [Time] :created_before If provided, will only return objects created before this datetime.
41
41
  # @option opts [String] :cursor The pagination cursor value.
42
42
  # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
43
+ # @option opts [Boolean] :include_deleted_data Whether to include data that was deleted in the third-party service.
44
+ # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
43
45
  # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
44
46
  # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
45
47
  # @option opts [Integer] :page_size Number of results to return per page.
@@ -58,6 +60,7 @@ describe 'ActivitiesApi' do
58
60
  # @param id
59
61
  # @param [Hash] opts the optional parameters
60
62
  # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
63
+ # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
61
64
  # @return [Activity]
62
65
  describe 'activities_retrieve test' do
63
66
  it 'should work' do