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
@@ -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,23 +14,19 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module MergeATSClient
17
- # # The DataPassthrough Object ### Description The `DataPassthrough` object is used to send information to an otherwise-unsupported third-party endpoint. ### Usage Example Create a `DataPassthrough` to get team hierarchies from your Rippling integration.
18
- class DataPassthrough
19
- attr_accessor :method
20
-
21
- attr_accessor :path
17
+ class DebugModelLogSummary
18
+ attr_accessor :url
22
19
 
23
- attr_accessor :data
20
+ attr_accessor :method
24
21
 
25
- attr_accessor :headers
22
+ attr_accessor :status_code
26
23
 
27
24
  # Attribute mapping from ruby-style variable name to JSON key.
28
25
  def self.attribute_map
29
26
  {
27
+ :'url' => :'url',
30
28
  :'method' => :'method',
31
- :'path' => :'path',
32
- :'data' => :'data',
33
- :'headers' => :'headers'
29
+ :'status_code' => :'status_code'
34
30
  }
35
31
  end
36
32
 
@@ -42,18 +38,15 @@ module MergeATSClient
42
38
  # Attribute type mapping.
43
39
  def self.openapi_types
44
40
  {
45
- :'method' => :'MethodEnum',
46
- :'path' => :'String',
47
- :'data' => :'Hash<String, AnyType>',
48
- :'headers' => :'Hash<String, AnyType>'
41
+ :'url' => :'String',
42
+ :'method' => :'String',
43
+ :'status_code' => :'Integer'
49
44
  }
50
45
  end
51
46
 
52
47
  # List of attributes with nullable: true
53
48
  def self.openapi_nullable
54
49
  Set.new([
55
- :'data',
56
- :'headers'
57
50
  ])
58
51
  end
59
52
 
@@ -61,35 +54,27 @@ module MergeATSClient
61
54
  # @param [Hash] attributes Model attributes in the form of hash
62
55
  def initialize(attributes = {})
63
56
  if (!attributes.is_a?(Hash))
64
- fail ArgumentError, "The input argument (attributes) must be a hash in `MergeATSClient::DataPassthrough` initialize method"
57
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MergeATSClient::DebugModelLogSummary` initialize method"
65
58
  end
66
59
 
67
60
  # check to see if the attribute exists and convert string to symbol for hash key
68
61
  attributes = attributes.each_with_object({}) { |(k, v), h|
69
62
  if (!self.class.attribute_map.key?(k.to_sym))
70
- fail ArgumentError, "`#{k}` is not a valid attribute in `MergeATSClient::DataPassthrough`. 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::DebugModelLogSummary`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
71
64
  end
72
65
  h[k.to_sym] = v
73
66
  }
74
67
 
75
- if attributes.key?(:'method')
76
- self.method = attributes[:'method']
77
- end
78
-
79
- if attributes.key?(:'path')
80
- self.path = attributes[:'path']
68
+ if attributes.key?(:'url')
69
+ self.url = attributes[:'url']
81
70
  end
82
71
 
83
- if attributes.key?(:'data')
84
- if (value = attributes[:'data']).is_a?(Hash)
85
- self.data = value
86
- end
72
+ if attributes.key?(:'method')
73
+ self.method = attributes[:'method']
87
74
  end
88
75
 
89
- if attributes.key?(:'headers')
90
- if (value = attributes[:'headers']).is_a?(Hash)
91
- self.headers = value
92
- end
76
+ if attributes.key?(:'status_code')
77
+ self.status_code = attributes[:'status_code']
93
78
  end
94
79
  end
95
80
 
@@ -97,12 +82,16 @@ module MergeATSClient
97
82
  # @return Array for valid properties with the reasons
98
83
  def list_invalid_properties
99
84
  invalid_properties = Array.new
85
+ if @url.nil?
86
+ invalid_properties.push('invalid value for "url", url cannot be nil.')
87
+ end
88
+
100
89
  if @method.nil?
101
90
  invalid_properties.push('invalid value for "method", method cannot be nil.')
102
91
  end
103
92
 
104
- if @path.nil?
105
- invalid_properties.push('invalid value for "path", path cannot be nil.')
93
+ if @status_code.nil?
94
+ invalid_properties.push('invalid value for "status_code", status_code cannot be nil.')
106
95
  end
107
96
 
108
97
  invalid_properties
@@ -111,8 +100,9 @@ module MergeATSClient
111
100
  # Check to see if the all the properties in the model are valid
112
101
  # @return true if the model is valid
113
102
  def valid?
103
+ return false if @url.nil?
114
104
  return false if @method.nil?
115
- return false if @path.nil?
105
+ return false if @status_code.nil?
116
106
  true
117
107
  end
118
108
 
@@ -121,10 +111,9 @@ module MergeATSClient
121
111
  def ==(o)
122
112
  return true if self.equal?(o)
123
113
  self.class == o.class &&
114
+ url == o.url &&
124
115
  method == o.method &&
125
- path == o.path &&
126
- data == o.data &&
127
- headers == o.headers
116
+ status_code == o.status_code
128
117
  end
129
118
 
130
119
  # @see the `==` method
@@ -136,7 +125,7 @@ module MergeATSClient
136
125
  # Calculates hash code according to all attributes.
137
126
  # @return [Integer] Hash code
138
127
  def hash
139
- [method, path, data, headers].hash
128
+ [url, method, status_code].hash
140
129
  end
141
130
 
142
131
  # Builds the object from hash
@@ -179,7 +168,7 @@ module MergeATSClient
179
168
  when :Date
180
169
  Date.parse(value)
181
170
  when :String
182
- value.to_s
171
+ value
183
172
  when :Integer
184
173
  value.to_i
185
174
  when :Float
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module MergeATSClient
17
- # # The Department Object ### Description The `Department` object is used to represent a department within a company. ### Usage Example Fetch from the `LIST Departments` endpoint and view the departments within a company.
17
+ # # The Department Object ### Description The `Department` object is used to represent a department within a company. ### Usage Example Fetch from the `LIST Departments` endpoint and view the departments within a company.
18
18
  class Department
19
19
  attr_accessor :id
20
20
 
@@ -26,13 +26,17 @@ module MergeATSClient
26
26
 
27
27
  attr_accessor :remote_data
28
28
 
29
+ # Indicates whether or not this object has been deleted on the third-party.
30
+ attr_accessor :remote_was_deleted
31
+
29
32
  # Attribute mapping from ruby-style variable name to JSON key.
30
33
  def self.attribute_map
31
34
  {
32
35
  :'id' => :'id',
33
36
  :'remote_id' => :'remote_id',
34
37
  :'name' => :'name',
35
- :'remote_data' => :'remote_data'
38
+ :'remote_data' => :'remote_data',
39
+ :'remote_was_deleted' => :'remote_was_deleted'
36
40
  }
37
41
  end
38
42
 
@@ -47,7 +51,8 @@ module MergeATSClient
47
51
  :'id' => :'String',
48
52
  :'remote_id' => :'String',
49
53
  :'name' => :'String',
50
- :'remote_data' => :'Array<RemoteData>'
54
+ :'remote_data' => :'Array<RemoteData>',
55
+ :'remote_was_deleted' => :'Boolean'
51
56
  }
52
57
  end
53
58
 
@@ -56,7 +61,7 @@ module MergeATSClient
56
61
  Set.new([
57
62
  :'remote_id',
58
63
  :'name',
59
- :'remote_data'
64
+ :'remote_data',
60
65
  ])
61
66
  end
62
67
 
@@ -92,6 +97,10 @@ module MergeATSClient
92
97
  self.remote_data = value
93
98
  end
94
99
  end
100
+
101
+ if attributes.key?(:'remote_was_deleted')
102
+ self.remote_was_deleted = attributes[:'remote_was_deleted']
103
+ end
95
104
  end
96
105
 
97
106
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -115,7 +124,8 @@ module MergeATSClient
115
124
  id == o.id &&
116
125
  remote_id == o.remote_id &&
117
126
  name == o.name &&
118
- remote_data == o.remote_data
127
+ remote_data == o.remote_data &&
128
+ remote_was_deleted == o.remote_was_deleted
119
129
  end
120
130
 
121
131
  # @see the `==` method
@@ -127,7 +137,7 @@ module MergeATSClient
127
137
  # Calculates hash code according to all attributes.
128
138
  # @return [Integer] Hash code
129
139
  def hash
130
- [id, remote_id, name, remote_data].hash
140
+ [id, remote_id, name, remote_data, remote_was_deleted].hash
131
141
  end
132
142
 
133
143
  # Builds the object from hash
@@ -170,7 +180,7 @@ module MergeATSClient
170
180
  when :Date
171
181
  Date.parse(value)
172
182
  when :String
173
- value.to_s
183
+ value
174
184
  when :Integer
175
185
  value.to_i
176
186
  when :Float
@@ -14,14 +14,13 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module MergeATSClient
17
- # # The EEOC Object ### Description The `EEOC` object is used to represent the Equal Employment Opportunity Commission information for a candidate. ### Usage Example Fetch from the `LIST EEOCs` endpoint and filter by `candidate` to show all EEOC information for a candidate.
17
+ # # The EEOC Object ### Description The `EEOC` object is used to represent the Equal Employment Opportunity Commission information for a candidate. ### Usage Example Fetch from the `LIST EEOCs` endpoint and filter by `candidate` to show all EEOC information for a candidate.
18
18
  class EEOC
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 being represented.
25
24
  attr_accessor :candidate
26
25
 
27
26
  # When the information was submitted.
@@ -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
  :'gender' => :'gender',
53
55
  :'veteran_status' => :'veteran_status',
54
56
  :'disability_status' => :'disability_status',
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
  :'gender' => :'GenderEnum',
73
76
  :'veteran_status' => :'VeteranStatusEnum',
74
77
  :'disability_status' => :'DisabilityStatusEnum',
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
  :'gender',
87
91
  :'veteran_status',
88
92
  :'disability_status',
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
  gender == o.gender &&
171
179
  veteran_status == o.veteran_status &&
172
180
  disability_status == o.disability_status &&
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, candidate, submitted_at, race, gender, veteran_status, disability_status, remote_data].hash
194
+ [id, remote_id, candidate, submitted_at, race, gender, veteran_status, disability_status, remote_data, remote_was_deleted].hash
186
195
  end
187
196
 
188
197
  # Builds the object from hash
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module MergeATSClient
17
- # # The EmailAddress Object ### Description The `EmailAddress` object is used to represent a candidate's email address. ### Usage Example Fetch from the `GET Candidate` endpoint and view their email addresses.
17
+ # # The EmailAddress Object ### Description The `EmailAddress` object is used to represent a candidate's email address. ### Usage Example Fetch from the `GET Candidate` endpoint and view their email addresses.
18
18
  class EmailAddress
19
19
  # The email address.
20
20
  attr_accessor :value
@@ -164,7 +164,7 @@ module MergeATSClient
164
164
  when :Date
165
165
  Date.parse(value)
166
166
  when :String
167
- value.to_s
167
+ value
168
168
  when :Integer
169
169
  value.to_i
170
170
  when :Float
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module MergeATSClient
17
- # # The EmailAddress Object ### Description The `EmailAddress` object is used to represent a candidate's email address. ### Usage Example Fetch from the `GET Candidate` endpoint and view their email addresses.
17
+ # # The EmailAddress Object ### Description The `EmailAddress` object is used to represent a candidate's email address. ### Usage Example Fetch from the `GET Candidate` endpoint and view their email addresses.
18
18
  class EmailAddressRequest
19
19
  # The email address.
20
20
  attr_accessor :value
@@ -164,7 +164,7 @@ module MergeATSClient
164
164
  when :Date
165
165
  Date.parse(value)
166
166
  when :String
167
- value.to_s
167
+ value
168
168
  when :Integer
169
169
  value.to_i
170
170
  when :Float
@@ -0,0 +1,35 @@
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 EncodingEnum
18
+ RAW = "RAW".freeze
19
+ BASE64 = "BASE64".freeze
20
+
21
+ # Builds the enum from string
22
+ # @param [String] The enum value in the form of the string
23
+ # @return [String] The enum value
24
+ def self.build_from_hash(value)
25
+ new.build_from_hash(value)
26
+ end
27
+
28
+ # Builds the enum from string
29
+ # @param [String] The enum value in the form of the string
30
+ # @return [String] The enum value
31
+ def build_from_hash(value)
32
+ value
33
+ end
34
+ end
35
+ end
@@ -23,29 +23,11 @@ module MergeATSClient
23
23
 
24
24
  attr_accessor :categories
25
25
 
26
+ # The slug of a specific pre-selected integration for this linking flow token, for examples of slugs see https://www.merge.dev/docs/basics/integration-metadata
26
27
  attr_accessor :integration
27
28
 
28
- class EnumAttributeValidator
29
- attr_reader :datatype
30
- attr_reader :allowable_values
31
-
32
- def initialize(datatype, allowable_values)
33
- @allowable_values = allowable_values.map do |value|
34
- case datatype.to_s
35
- when /Integer/i
36
- value.to_i
37
- when /Float/i
38
- value.to_f
39
- else
40
- value
41
- end
42
- end
43
- end
44
-
45
- def valid?(value)
46
- !value || allowable_values.include?(value)
47
- end
48
- end
29
+ # An integer number of minutes between [30, 720] for how long this token is valid. Defaults to 30
30
+ attr_accessor :link_expiry_mins
49
31
 
50
32
  # Attribute mapping from ruby-style variable name to JSON key.
51
33
  def self.attribute_map
@@ -54,7 +36,8 @@ module MergeATSClient
54
36
  :'end_user_organization_name' => :'end_user_organization_name',
55
37
  :'end_user_origin_id' => :'end_user_origin_id',
56
38
  :'categories' => :'categories',
57
- :'integration' => :'integration'
39
+ :'integration' => :'integration',
40
+ :'link_expiry_mins' => :'link_expiry_mins'
58
41
  }
59
42
  end
60
43
 
@@ -69,15 +52,16 @@ module MergeATSClient
69
52
  :'end_user_email_address' => :'String',
70
53
  :'end_user_organization_name' => :'String',
71
54
  :'end_user_origin_id' => :'String',
72
- :'categories' => :'Array<String>',
73
- :'integration' => :'String'
55
+ :'categories' => :'Array<CategoriesEnum>',
56
+ :'integration' => :'String',
57
+ :'link_expiry_mins' => :'Integer'
74
58
  }
75
59
  end
76
60
 
77
61
  # List of attributes with nullable: true
78
62
  def self.openapi_nullable
79
63
  Set.new([
80
- :'integration'
64
+ :'integration',
81
65
  ])
82
66
  end
83
67
 
@@ -117,6 +101,12 @@ module MergeATSClient
117
101
  if attributes.key?(:'integration')
118
102
  self.integration = attributes[:'integration']
119
103
  end
104
+
105
+ if attributes.key?(:'link_expiry_mins')
106
+ self.link_expiry_mins = attributes[:'link_expiry_mins']
107
+ else
108
+ self.link_expiry_mins = 30
109
+ end
120
110
  end
121
111
 
122
112
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -127,14 +117,54 @@ module MergeATSClient
127
117
  invalid_properties.push('invalid value for "end_user_email_address", end_user_email_address cannot be nil.')
128
118
  end
129
119
 
120
+ if @end_user_email_address.to_s.length > 100
121
+ invalid_properties.push('invalid value for "end_user_email_address", the character length must be smaller than or equal to 100.')
122
+ end
123
+
124
+ if @end_user_email_address.to_s.length < 1
125
+ invalid_properties.push('invalid value for "end_user_email_address", the character length must be great than or equal to 1.')
126
+ end
127
+
130
128
  if @end_user_organization_name.nil?
131
129
  invalid_properties.push('invalid value for "end_user_organization_name", end_user_organization_name cannot be nil.')
132
130
  end
133
131
 
132
+ if @end_user_organization_name.to_s.length > 100
133
+ invalid_properties.push('invalid value for "end_user_organization_name", the character length must be smaller than or equal to 100.')
134
+ end
135
+
136
+ if @end_user_organization_name.to_s.length < 1
137
+ invalid_properties.push('invalid value for "end_user_organization_name", the character length must be great than or equal to 1.')
138
+ end
139
+
134
140
  if @end_user_origin_id.nil?
135
141
  invalid_properties.push('invalid value for "end_user_origin_id", end_user_origin_id cannot be nil.')
136
142
  end
137
143
 
144
+ if @end_user_origin_id.to_s.length > 100
145
+ invalid_properties.push('invalid value for "end_user_origin_id", the character length must be smaller than or equal to 100.')
146
+ end
147
+
148
+ if @end_user_origin_id.to_s.length < 1
149
+ invalid_properties.push('invalid value for "end_user_origin_id", the character length must be great than or equal to 1.')
150
+ end
151
+
152
+ if @categories.nil?
153
+ invalid_properties.push('invalid value for "categories", categories cannot be nil.')
154
+ end
155
+
156
+ if !@integration.nil? && @integration.to_s.length < 1
157
+ invalid_properties.push('invalid value for "integration", the character length must be great than or equal to 1.')
158
+ end
159
+
160
+ if !@link_expiry_mins.nil? && @link_expiry_mins > 720
161
+ invalid_properties.push('invalid value for "link_expiry_mins", must be smaller than or equal to 720.')
162
+ end
163
+
164
+ if !@link_expiry_mins.nil? && @link_expiry_mins < 30
165
+ invalid_properties.push('invalid value for "link_expiry_mins", must be greater than or equal to 30.')
166
+ end
167
+
138
168
  invalid_properties
139
169
  end
140
170
 
@@ -142,11 +172,99 @@ module MergeATSClient
142
172
  # @return true if the model is valid
143
173
  def valid?
144
174
  return false if @end_user_email_address.nil?
175
+ return false if @end_user_email_address.to_s.length > 100
176
+ return false if @end_user_email_address.to_s.length < 1
145
177
  return false if @end_user_organization_name.nil?
178
+ return false if @end_user_organization_name.to_s.length > 100
179
+ return false if @end_user_organization_name.to_s.length < 1
146
180
  return false if @end_user_origin_id.nil?
181
+ return false if @end_user_origin_id.to_s.length > 100
182
+ return false if @end_user_origin_id.to_s.length < 1
183
+ return false if @categories.nil?
184
+ return false if !@integration.nil? && @integration.to_s.length < 1
185
+ return false if !@link_expiry_mins.nil? && @link_expiry_mins > 720
186
+ return false if !@link_expiry_mins.nil? && @link_expiry_mins < 30
147
187
  true
148
188
  end
149
189
 
190
+ # Custom attribute writer method with validation
191
+ # @param [Object] end_user_email_address Value to be assigned
192
+ def end_user_email_address=(end_user_email_address)
193
+ if end_user_email_address.nil?
194
+ fail ArgumentError, 'end_user_email_address cannot be nil'
195
+ end
196
+
197
+ if end_user_email_address.to_s.length > 100
198
+ fail ArgumentError, 'invalid value for "end_user_email_address", the character length must be smaller than or equal to 100.'
199
+ end
200
+
201
+ if end_user_email_address.to_s.length < 1
202
+ fail ArgumentError, 'invalid value for "end_user_email_address", the character length must be great than or equal to 1.'
203
+ end
204
+
205
+ @end_user_email_address = end_user_email_address
206
+ end
207
+
208
+ # Custom attribute writer method with validation
209
+ # @param [Object] end_user_organization_name Value to be assigned
210
+ def end_user_organization_name=(end_user_organization_name)
211
+ if end_user_organization_name.nil?
212
+ fail ArgumentError, 'end_user_organization_name cannot be nil'
213
+ end
214
+
215
+ if end_user_organization_name.to_s.length > 100
216
+ fail ArgumentError, 'invalid value for "end_user_organization_name", the character length must be smaller than or equal to 100.'
217
+ end
218
+
219
+ if end_user_organization_name.to_s.length < 1
220
+ fail ArgumentError, 'invalid value for "end_user_organization_name", the character length must be great than or equal to 1.'
221
+ end
222
+
223
+ @end_user_organization_name = end_user_organization_name
224
+ end
225
+
226
+ # Custom attribute writer method with validation
227
+ # @param [Object] end_user_origin_id Value to be assigned
228
+ def end_user_origin_id=(end_user_origin_id)
229
+ if end_user_origin_id.nil?
230
+ fail ArgumentError, 'end_user_origin_id cannot be nil'
231
+ end
232
+
233
+ if end_user_origin_id.to_s.length > 100
234
+ fail ArgumentError, 'invalid value for "end_user_origin_id", the character length must be smaller than or equal to 100.'
235
+ end
236
+
237
+ if end_user_origin_id.to_s.length < 1
238
+ fail ArgumentError, 'invalid value for "end_user_origin_id", the character length must be great than or equal to 1.'
239
+ end
240
+
241
+ @end_user_origin_id = end_user_origin_id
242
+ end
243
+
244
+ # Custom attribute writer method with validation
245
+ # @param [Object] integration Value to be assigned
246
+ def integration=(integration)
247
+ if !integration.nil? && integration.to_s.length < 1
248
+ fail ArgumentError, 'invalid value for "integration", the character length must be great than or equal to 1.'
249
+ end
250
+
251
+ @integration = integration
252
+ end
253
+
254
+ # Custom attribute writer method with validation
255
+ # @param [Object] link_expiry_mins Value to be assigned
256
+ def link_expiry_mins=(link_expiry_mins)
257
+ if !link_expiry_mins.nil? && link_expiry_mins > 720
258
+ fail ArgumentError, 'invalid value for "link_expiry_mins", must be smaller than or equal to 720.'
259
+ end
260
+
261
+ if !link_expiry_mins.nil? && link_expiry_mins < 30
262
+ fail ArgumentError, 'invalid value for "link_expiry_mins", must be greater than or equal to 30.'
263
+ end
264
+
265
+ @link_expiry_mins = link_expiry_mins
266
+ end
267
+
150
268
  # Checks equality by comparing each attribute.
151
269
  # @param [Object] Object to be compared
152
270
  def ==(o)
@@ -156,7 +274,8 @@ module MergeATSClient
156
274
  end_user_organization_name == o.end_user_organization_name &&
157
275
  end_user_origin_id == o.end_user_origin_id &&
158
276
  categories == o.categories &&
159
- integration == o.integration
277
+ integration == o.integration &&
278
+ link_expiry_mins == o.link_expiry_mins
160
279
  end
161
280
 
162
281
  # @see the `==` method
@@ -168,7 +287,7 @@ module MergeATSClient
168
287
  # Calculates hash code according to all attributes.
169
288
  # @return [Integer] Hash code
170
289
  def hash
171
- [end_user_email_address, end_user_organization_name, end_user_origin_id, categories, integration].hash
290
+ [end_user_email_address, end_user_organization_name, end_user_origin_id, categories, integration, link_expiry_mins].hash
172
291
  end
173
292
 
174
293
  # Builds the object from hash
@@ -211,7 +330,7 @@ module MergeATSClient
211
330
  when :Date
212
331
  Date.parse(value)
213
332
  when :String
214
- value.to_s
333
+ value
215
334
  when :Integer
216
335
  value.to_i
217
336
  when :Float