merge_ats_client 1.0.2 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (355) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +53 -17
  3. data/docs/AccountDetails.md +34 -0
  4. data/docs/AccountDetailsAndActions.md +34 -0
  5. data/docs/AccountDetailsAndActionsIntegration.md +32 -0
  6. data/docs/AccountDetailsAndActionsStatusEnum.md +15 -0
  7. data/docs/AccountDetailsApi.md +79 -0
  8. data/docs/AccountIntegration.md +4 -4
  9. data/docs/AccountTokenApi.md +2 -2
  10. data/docs/ActivitiesApi.md +6 -4
  11. data/docs/Activity.md +7 -5
  12. data/docs/Application.md +12 -8
  13. data/docs/ApplicationEndpointRequest.md +20 -0
  14. data/docs/ApplicationRequest.md +16 -8
  15. data/docs/ApplicationResponse.md +24 -0
  16. data/docs/ApplicationsApi.md +98 -18
  17. data/docs/Attachment.md +3 -1
  18. data/docs/AttachmentEndpointRequest.md +20 -0
  19. data/docs/AttachmentRequest.md +5 -1
  20. data/docs/AttachmentResponse.md +24 -0
  21. data/docs/AttachmentsApi.md +93 -15
  22. data/docs/AvailableActionsApi.md +2 -2
  23. data/docs/Candidate.md +11 -7
  24. data/docs/CandidateEndpointRequest.md +20 -0
  25. data/docs/CandidateRequest.md +15 -7
  26. data/docs/CandidateResponse.md +24 -0
  27. data/docs/CandidatesApi.md +171 -17
  28. data/docs/CategoriesEnum.md +15 -0
  29. data/docs/CategoryEnum.md +15 -0
  30. data/docs/DataPassthroughRequest.md +8 -4
  31. data/docs/DebugModeLog.md +22 -0
  32. data/docs/DebugModelLogSummary.md +22 -0
  33. data/docs/DeleteAccountApi.md +78 -0
  34. data/docs/Department.md +3 -1
  35. data/docs/DepartmentsApi.md +6 -4
  36. data/docs/EEOC.md +5 -3
  37. data/docs/EeocsApi.md +6 -4
  38. data/docs/EmailAddress.md +1 -1
  39. data/docs/EmailAddressRequest.md +1 -1
  40. data/docs/EncodingEnum.md +15 -0
  41. data/docs/EndUserDetailsRequest.md +5 -3
  42. data/docs/ErrorValidationProblem.md +24 -0
  43. data/docs/ForceResyncApi.md +79 -0
  44. data/docs/GenerateKeyApi.md +2 -2
  45. data/docs/IgnoreCommonModel.md +20 -0
  46. data/docs/IgnoreCommonModelRequest.md +20 -0
  47. data/docs/InterviewsApi.md +6 -84
  48. data/docs/Issue.md +30 -0
  49. data/docs/IssueStatusEnum.md +15 -0
  50. data/docs/IssuesApi.md +177 -0
  51. data/docs/Job.md +13 -7
  52. data/docs/JobInterviewStage.md +4 -2
  53. data/docs/JobInterviewStagesApi.md +8 -6
  54. data/docs/JobsApi.md +9 -5
  55. data/docs/LinkTokenApi.md +3 -3
  56. data/docs/LinkedAccountStatus.md +20 -0
  57. data/docs/LinkedAccountsApi.md +103 -0
  58. data/docs/MetaResponse.md +24 -0
  59. data/docs/MultipartFormFieldRequest.md +26 -0
  60. data/docs/Offer.md +9 -7
  61. data/docs/OffersApi.md +6 -4
  62. data/docs/Office.md +3 -1
  63. data/docs/OfficesApi.md +6 -4
  64. data/docs/PaginatedAccountDetailsAndActionsList.md +22 -0
  65. data/docs/PaginatedIssueList.md +22 -0
  66. data/docs/PaginatedSyncStatusList.md +2 -2
  67. data/docs/PassthroughApi.md +2 -2
  68. data/docs/ReasonEnum.md +15 -0
  69. data/docs/RegenerateKeyApi.md +2 -2
  70. data/docs/RejectReason.md +3 -1
  71. data/docs/RejectReasonsApi.md +6 -4
  72. data/docs/RemoteUser.md +4 -2
  73. data/docs/RequestFormatEnum.md +15 -0
  74. data/docs/ScheduledInterview.md +11 -9
  75. data/docs/Scorecard.md +8 -6
  76. data/docs/ScorecardsApi.md +6 -84
  77. data/docs/SyncStatusApi.md +3 -75
  78. data/docs/Tag.md +3 -1
  79. data/docs/TagsApi.md +4 -2
  80. data/docs/UsersApi.md +7 -84
  81. data/docs/ValidationProblemSource.md +18 -0
  82. data/docs/WarningValidationProblem.md +24 -0
  83. data/docs/WebhookReceiver.md +22 -0
  84. data/docs/WebhookReceiverRequest.md +22 -0
  85. data/docs/WebhookReceiversApi.md +153 -0
  86. data/lib/merge_ats_client/api/account_details_api.rb +84 -0
  87. data/lib/merge_ats_client/api/account_token_api.rb +1 -1
  88. data/lib/merge_ats_client/api/activities_api.rb +4 -1
  89. data/lib/merge_ats_client/api/applications_api.rb +87 -16
  90. data/lib/merge_ats_client/api/attachments_api.rb +95 -16
  91. data/lib/merge_ats_client/api/available_actions_api.rb +1 -1
  92. data/lib/merge_ats_client/api/candidates_api.rb +163 -16
  93. data/lib/merge_ats_client/api/delete_account_api.rb +82 -0
  94. data/lib/merge_ats_client/api/departments_api.rb +4 -1
  95. data/lib/merge_ats_client/api/eeocs_api.rb +4 -1
  96. data/lib/merge_ats_client/api/force_resync_api.rb +84 -0
  97. data/lib/merge_ats_client/api/generate_key_api.rb +1 -1
  98. data/lib/merge_ats_client/api/interviews_api.rb +4 -77
  99. data/lib/merge_ats_client/api/issues_api.rb +181 -0
  100. data/lib/merge_ats_client/api/job_interview_stages_api.rb +6 -3
  101. data/lib/merge_ats_client/api/jobs_api.rb +10 -4
  102. data/lib/merge_ats_client/api/link_token_api.rb +1 -1
  103. data/lib/merge_ats_client/api/linked_accounts_api.rb +117 -0
  104. data/lib/merge_ats_client/api/offers_api.rb +4 -1
  105. data/lib/merge_ats_client/api/offices_api.rb +4 -1
  106. data/lib/merge_ats_client/api/passthrough_api.rb +1 -1
  107. data/lib/merge_ats_client/api/regenerate_key_api.rb +1 -1
  108. data/lib/merge_ats_client/api/reject_reasons_api.rb +4 -1
  109. data/lib/merge_ats_client/api/scorecards_api.rb +4 -77
  110. data/lib/merge_ats_client/api/sync_status_api.rb +5 -67
  111. data/lib/merge_ats_client/api/tags_api.rb +4 -1
  112. data/lib/merge_ats_client/api/users_api.rb +4 -77
  113. data/lib/merge_ats_client/api/webhook_receivers_api.rb +154 -0
  114. data/lib/merge_ats_client/api_client.rb +1 -1
  115. data/lib/merge_ats_client/api_error.rb +1 -1
  116. data/lib/merge_ats_client/configuration.rb +7 -5
  117. data/lib/merge_ats_client/models/access_role_enum.rb +1 -1
  118. data/lib/merge_ats_client/models/{end_user_details.rb → account_details.rb} +68 -66
  119. data/lib/merge_ats_client/models/{scheduled_interview_request.rb → account_details_and_actions.rb} +85 -100
  120. data/lib/merge_ats_client/models/account_details_and_actions_integration.rb +310 -0
  121. data/lib/merge_ats_client/models/account_details_and_actions_status_enum.rb +36 -0
  122. data/lib/merge_ats_client/models/account_integration.rb +7 -29
  123. data/lib/merge_ats_client/models/account_token.rb +2 -2
  124. data/lib/merge_ats_client/models/activity.rb +17 -8
  125. data/lib/merge_ats_client/models/activity_type_enum.rb +1 -1
  126. data/lib/merge_ats_client/models/application.rb +29 -12
  127. data/lib/merge_ats_client/models/application_endpoint_request.rb +237 -0
  128. data/lib/merge_ats_client/models/application_request.rb +70 -13
  129. data/lib/merge_ats_client/models/application_response.rb +266 -0
  130. data/lib/merge_ats_client/models/attachment.rb +16 -7
  131. data/lib/merge_ats_client/models/attachment_endpoint_request.rb +237 -0
  132. data/lib/merge_ats_client/models/attachment_request.rb +31 -7
  133. data/lib/merge_ats_client/models/attachment_response.rb +266 -0
  134. data/lib/merge_ats_client/models/attachment_type_enum.rb +0 -2
  135. data/lib/merge_ats_client/models/available_actions.rb +2 -2
  136. data/lib/merge_ats_client/models/candidate.rb +32 -7
  137. data/lib/merge_ats_client/models/candidate_endpoint_request.rb +237 -0
  138. data/lib/merge_ats_client/models/candidate_request.rb +72 -7
  139. data/lib/merge_ats_client/models/candidate_response.rb +266 -0
  140. data/lib/merge_ats_client/models/categories_enum.rb +38 -0
  141. data/lib/merge_ats_client/models/category_enum.rb +38 -0
  142. data/lib/merge_ats_client/models/data_passthrough_request.rb +81 -10
  143. data/lib/merge_ats_client/models/debug_mode_log.rb +251 -0
  144. data/lib/merge_ats_client/models/{data_passthrough.rb → debug_model_log_summary.rb} +30 -41
  145. data/lib/merge_ats_client/models/department.rb +18 -8
  146. data/lib/merge_ats_client/models/disability_status_enum.rb +1 -1
  147. data/lib/merge_ats_client/models/eeoc.rb +17 -8
  148. data/lib/merge_ats_client/models/email_address.rb +3 -3
  149. data/lib/merge_ats_client/models/email_address_request.rb +3 -3
  150. data/lib/merge_ats_client/models/email_address_type_enum.rb +1 -1
  151. data/lib/merge_ats_client/models/encoding_enum.rb +35 -0
  152. data/lib/merge_ats_client/models/end_user_details_request.rb +148 -29
  153. data/lib/merge_ats_client/models/error_validation_problem.rb +260 -0
  154. data/lib/merge_ats_client/models/gender_enum.rb +1 -1
  155. data/lib/merge_ats_client/models/generate_remote_key_request.rb +21 -2
  156. data/lib/merge_ats_client/models/{remote_user_request.rb → ignore_common_model.rb} +30 -85
  157. data/lib/merge_ats_client/models/ignore_common_model_request.rb +256 -0
  158. data/lib/merge_ats_client/models/{scorecard_request.rb → issue.rb} +56 -62
  159. data/lib/merge_ats_client/models/issue_status_enum.rb +35 -0
  160. data/lib/merge_ats_client/models/job.rb +43 -7
  161. data/lib/merge_ats_client/models/job_interview_stage.rb +17 -8
  162. data/lib/merge_ats_client/models/job_status_enum.rb +1 -1
  163. data/lib/merge_ats_client/models/link_token.rb +2 -2
  164. data/lib/merge_ats_client/models/linked_account_status.rb +237 -0
  165. data/lib/merge_ats_client/models/meta_response.rb +262 -0
  166. data/lib/merge_ats_client/models/method_enum.rb +1 -1
  167. data/lib/merge_ats_client/models/model_operation.rb +2 -2
  168. data/lib/merge_ats_client/models/{patched_application_request.rb → multipart_form_field_request.rb} +120 -88
  169. data/lib/merge_ats_client/models/offer.rb +17 -9
  170. data/lib/merge_ats_client/models/offer_status_enum.rb +1 -1
  171. data/lib/merge_ats_client/models/office.rb +18 -8
  172. data/lib/merge_ats_client/models/overall_recommendation_enum.rb +1 -1
  173. data/lib/merge_ats_client/models/paginated_account_details_and_actions_list.rb +240 -0
  174. data/lib/merge_ats_client/models/paginated_activity_list.rb +2 -2
  175. data/lib/merge_ats_client/models/paginated_application_list.rb +2 -2
  176. data/lib/merge_ats_client/models/paginated_attachment_list.rb +2 -2
  177. data/lib/merge_ats_client/models/paginated_candidate_list.rb +2 -2
  178. data/lib/merge_ats_client/models/paginated_department_list.rb +2 -2
  179. data/lib/merge_ats_client/models/paginated_eeoc_list.rb +2 -2
  180. data/lib/merge_ats_client/models/paginated_issue_list.rb +240 -0
  181. data/lib/merge_ats_client/models/paginated_job_interview_stage_list.rb +2 -2
  182. data/lib/merge_ats_client/models/paginated_job_list.rb +2 -2
  183. data/lib/merge_ats_client/models/paginated_offer_list.rb +2 -2
  184. data/lib/merge_ats_client/models/paginated_office_list.rb +2 -2
  185. data/lib/merge_ats_client/models/paginated_reject_reason_list.rb +2 -2
  186. data/lib/merge_ats_client/models/paginated_remote_user_list.rb +2 -2
  187. data/lib/merge_ats_client/models/paginated_scheduled_interview_list.rb +2 -2
  188. data/lib/merge_ats_client/models/paginated_scorecard_list.rb +2 -2
  189. data/lib/merge_ats_client/models/paginated_sync_status_list.rb +1 -1
  190. data/lib/merge_ats_client/models/paginated_tag_list.rb +2 -2
  191. data/lib/merge_ats_client/models/phone_number.rb +3 -3
  192. data/lib/merge_ats_client/models/phone_number_request.rb +3 -3
  193. data/lib/merge_ats_client/models/phone_number_type_enum.rb +1 -1
  194. data/lib/merge_ats_client/models/race_enum.rb +1 -1
  195. data/lib/merge_ats_client/models/reason_enum.rb +36 -0
  196. data/lib/merge_ats_client/models/reject_reason.rb +18 -8
  197. data/lib/merge_ats_client/models/remote_data.rb +2 -2
  198. data/lib/merge_ats_client/models/remote_data_request.rb +21 -2
  199. data/lib/merge_ats_client/models/remote_key.rb +2 -2
  200. data/lib/merge_ats_client/models/remote_key_for_regeneration_request.rb +21 -2
  201. data/lib/merge_ats_client/models/remote_response.rb +2 -2
  202. data/lib/merge_ats_client/models/remote_user.rb +18 -8
  203. data/lib/merge_ats_client/models/request_format_enum.rb +36 -0
  204. data/lib/merge_ats_client/models/scheduled_interview.rb +18 -10
  205. data/lib/merge_ats_client/models/scheduled_interview_status_enum.rb +1 -1
  206. data/lib/merge_ats_client/models/scorecard.rb +17 -10
  207. data/lib/merge_ats_client/models/sync_status.rb +2 -2
  208. data/lib/merge_ats_client/models/sync_status_status_enum.rb +2 -2
  209. data/lib/merge_ats_client/models/tag.rb +18 -8
  210. data/lib/merge_ats_client/models/url.rb +8 -8
  211. data/lib/merge_ats_client/models/url_request.rb +8 -8
  212. data/lib/merge_ats_client/models/url_type_enum.rb +1 -1
  213. data/lib/merge_ats_client/models/{remote_key_for_regeneration.rb → validation_problem_source.rb} +15 -16
  214. data/lib/merge_ats_client/models/veteran_status_enum.rb +1 -1
  215. data/lib/merge_ats_client/models/visibility_enum.rb +1 -1
  216. data/lib/merge_ats_client/models/warning_validation_problem.rb +260 -0
  217. data/lib/merge_ats_client/models/webhook_receiver.rb +246 -0
  218. data/lib/merge_ats_client/models/webhook_receiver_request.rb +280 -0
  219. data/lib/merge_ats_client/version.rb +1 -1
  220. data/lib/merge_ats_client.rb +38 -4
  221. data/merge_ats_client.gemspec +1 -1
  222. data/spec/api/account_details_api_spec.rb +46 -0
  223. data/spec/api/account_token_api_spec.rb +1 -1
  224. data/spec/api/activities_api_spec.rb +4 -1
  225. data/spec/api/applications_api_spec.rb +31 -1
  226. data/spec/api/attachments_api_spec.rb +31 -1
  227. data/spec/api/available_actions_api_spec.rb +1 -1
  228. data/spec/api/candidates_api_spec.rb +44 -1
  229. data/spec/api/departments_api_spec.rb +4 -1
  230. data/spec/api/eeocs_api_spec.rb +4 -1
  231. data/spec/api/force_resync_api_spec.rb +46 -0
  232. data/spec/api/interviews_api_spec.rb +4 -1
  233. data/spec/api/issues_api_spec.rb +9 -5
  234. data/spec/api/job_interview_stages_api_spec.rb +4 -1
  235. data/spec/api/jobs_api_spec.rb +6 -1
  236. data/spec/api/link_token_api_spec.rb +2 -2
  237. data/spec/api/linked_accounts_api_spec.rb +57 -0
  238. data/spec/api/offers_api_spec.rb +4 -1
  239. data/spec/api/offices_api_spec.rb +4 -1
  240. data/spec/api/passthrough_api_spec.rb +2 -2
  241. data/spec/api/regenerate_key_api_spec.rb +3 -5
  242. data/spec/api/reject_reasons_api_spec.rb +4 -1
  243. data/spec/api/scorecards_api_spec.rb +4 -1
  244. data/spec/api/sync_status_api_spec.rb +8 -5
  245. data/spec/api/tags_api_spec.rb +3 -1
  246. data/spec/api/users_api_spec.rb +5 -1
  247. data/spec/api/webhook_receivers_api_spec.rb +58 -0
  248. data/spec/api_client_spec.rb +1 -1
  249. data/spec/configuration_spec.rb +1 -1
  250. data/spec/models/access_role_enum_spec.rb +1 -1
  251. data/spec/models/{scorecard_request_spec.rb → account_details_and_actions_integration_spec.rb} +19 -13
  252. data/spec/models/{scheduled_interview_request_spec.rb → account_details_and_actions_spec.rb} +15 -27
  253. data/spec/models/account_details_and_actions_status_enum_spec.rb +28 -0
  254. data/spec/models/{patched_application_request_spec.rb → account_details_spec.rb} +16 -16
  255. data/spec/models/account_integration_spec.rb +7 -1
  256. data/spec/models/account_token_spec.rb +7 -1
  257. data/spec/models/activity_spec.rb +13 -1
  258. data/spec/models/activity_type_enum_spec.rb +1 -1
  259. data/spec/models/application_endpoint_request_spec.rb +40 -0
  260. data/spec/models/application_request_spec.rb +25 -1
  261. data/spec/models/{end_user_details_spec.rb → application_response_spec.rb} +11 -15
  262. data/spec/models/application_spec.rb +19 -7
  263. data/spec/models/attachment_endpoint_request_spec.rb +40 -0
  264. data/spec/models/attachment_request_spec.rb +12 -0
  265. data/spec/models/attachment_response_spec.rb +52 -0
  266. data/spec/models/attachment_spec.rb +25 -1
  267. data/spec/models/available_actions_spec.rb +1 -1
  268. data/spec/models/candidate_endpoint_request_spec.rb +40 -0
  269. data/spec/models/candidate_request_spec.rb +37 -1
  270. data/spec/models/{data_passthrough_spec.rb → candidate_response_spec.rb} +11 -11
  271. data/spec/models/candidate_spec.rb +19 -1
  272. data/spec/models/categories_enum_spec.rb +28 -0
  273. data/spec/models/category_enum_spec.rb +28 -0
  274. data/spec/models/data_passthrough_request_spec.rb +13 -1
  275. data/spec/models/debug_mode_log_spec.rb +46 -0
  276. data/spec/models/debug_model_log_summary_spec.rb +46 -0
  277. data/spec/models/department_spec.rb +13 -1
  278. data/spec/models/disability_status_enum_spec.rb +1 -1
  279. data/spec/models/eeoc_spec.rb +13 -1
  280. data/spec/models/email_address_request_spec.rb +1 -1
  281. data/spec/models/email_address_spec.rb +1 -1
  282. data/spec/models/email_address_type_enum_spec.rb +1 -1
  283. data/spec/models/encoding_enum_spec.rb +28 -0
  284. data/spec/models/end_user_details_request_spec.rb +13 -5
  285. data/spec/models/error_validation_problem_spec.rb +52 -0
  286. data/spec/models/gender_enum_spec.rb +1 -1
  287. data/spec/models/ignore_common_model_request_spec.rb +40 -0
  288. data/spec/models/ignore_common_model_spec.rb +40 -0
  289. data/spec/models/job_interview_stage_spec.rb +13 -1
  290. data/spec/models/job_spec.rb +31 -1
  291. data/spec/models/job_status_enum_spec.rb +1 -1
  292. data/spec/models/link_token_spec.rb +1 -1
  293. data/spec/models/linked_account_status_spec.rb +40 -0
  294. data/spec/models/meta_response_spec.rb +52 -0
  295. data/spec/models/method_enum_spec.rb +1 -1
  296. data/spec/models/model_operation_spec.rb +13 -1
  297. data/spec/models/{remote_user_request_spec.rb → multipart_form_field_request_spec.rb} +11 -23
  298. data/spec/models/offer_spec.rb +13 -1
  299. data/spec/models/offer_status_enum_spec.rb +1 -1
  300. data/spec/models/office_spec.rb +13 -1
  301. data/spec/models/overall_recommendation_enum_spec.rb +1 -1
  302. data/spec/models/paginated_account_details_and_actions_list_spec.rb +46 -0
  303. data/spec/models/paginated_activity_list_spec.rb +1 -1
  304. data/spec/models/paginated_application_list_spec.rb +1 -1
  305. data/spec/models/paginated_attachment_list_spec.rb +1 -1
  306. data/spec/models/paginated_candidate_list_spec.rb +1 -1
  307. data/spec/models/paginated_department_list_spec.rb +1 -1
  308. data/spec/models/paginated_eeoc_list_spec.rb +1 -1
  309. data/spec/models/paginated_job_interview_stage_list_spec.rb +1 -1
  310. data/spec/models/paginated_job_list_spec.rb +1 -1
  311. data/spec/models/paginated_offer_list_spec.rb +1 -1
  312. data/spec/models/paginated_office_list_spec.rb +1 -1
  313. data/spec/models/paginated_reject_reason_list_spec.rb +1 -1
  314. data/spec/models/paginated_remote_user_list_spec.rb +1 -1
  315. data/spec/models/paginated_scheduled_interview_list_spec.rb +1 -1
  316. data/spec/models/paginated_scorecard_list_spec.rb +1 -1
  317. data/spec/models/paginated_tag_list_spec.rb +1 -1
  318. data/spec/models/phone_number_request_spec.rb +1 -1
  319. data/spec/models/phone_number_spec.rb +1 -1
  320. data/spec/models/phone_number_type_enum_spec.rb +1 -1
  321. data/spec/models/race_enum_spec.rb +1 -1
  322. data/spec/models/reason_enum_spec.rb +28 -0
  323. data/spec/models/reject_reason_spec.rb +13 -1
  324. data/spec/models/remote_data_spec.rb +1 -1
  325. data/spec/models/remote_key_for_regeneration_request_spec.rb +1 -1
  326. data/spec/models/remote_key_spec.rb +1 -1
  327. data/spec/models/remote_response_spec.rb +1 -1
  328. data/spec/models/remote_user_spec.rb +13 -1
  329. data/spec/models/request_format_enum_spec.rb +28 -0
  330. data/spec/models/scheduled_interview_spec.rb +13 -1
  331. data/spec/models/scheduled_interview_status_enum_spec.rb +1 -1
  332. data/spec/models/scorecard_spec.rb +13 -1
  333. data/spec/models/sync_status_spec.rb +1 -1
  334. data/spec/models/tag_spec.rb +13 -1
  335. data/spec/models/url_request_spec.rb +1 -1
  336. data/spec/models/url_spec.rb +1 -1
  337. data/spec/models/url_type_enum_spec.rb +1 -1
  338. data/spec/models/{remote_key_for_regeneration_spec.rb → validation_problem_source_spec.rb} +8 -8
  339. data/spec/models/veteran_status_enum_spec.rb +1 -1
  340. data/spec/models/visibility_enum_spec.rb +1 -1
  341. data/spec/models/warning_validation_problem_spec.rb +52 -0
  342. data/spec/models/webhook_receiver_request_spec.rb +46 -0
  343. data/spec/models/webhook_receiver_spec.rb +46 -0
  344. data/spec/spec_helper.rb +1 -1
  345. metadata +220 -113
  346. data/config.json +0 -2
  347. data/docs/DataPassthrough.md +0 -24
  348. data/docs/EndUserDetails.md +0 -24
  349. data/docs/PatchedApplicationRequest.md +0 -34
  350. data/docs/RemoteKeyForRegeneration.md +0 -18
  351. data/docs/RemoteUserRequest.md +0 -30
  352. data/docs/ScheduledInterviewRequest.md +0 -38
  353. data/docs/ScorecardRequest.md +0 -30
  354. data/test_ats.rb +0 -22
  355. 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,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module MergeATSClient
17
- # # The Attachment Object ### Description The `Attachment` object is used to represent a attachment for a candidate. ### Usage Example Fetch from the `LIST Attachments` endpoint and view attachments accessible by a company.
17
+ # # The Attachment Object ### Description The `Attachment` object is used to represent a attachment for a candidate. ### Usage Example Fetch from the `LIST Attachments` endpoint and view attachments accessible by a company.
18
18
  class Attachment
19
19
  attr_accessor :id
20
20
 
@@ -34,6 +34,8 @@ module MergeATSClient
34
34
 
35
35
  attr_accessor :remote_data
36
36
 
37
+ attr_accessor :remote_was_deleted
38
+
37
39
  # Attribute mapping from ruby-style variable name to JSON key.
38
40
  def self.attribute_map
39
41
  {
@@ -43,7 +45,8 @@ module MergeATSClient
43
45
  :'file_url' => :'file_url',
44
46
  :'candidate' => :'candidate',
45
47
  :'attachment_type' => :'attachment_type',
46
- :'remote_data' => :'remote_data'
48
+ :'remote_data' => :'remote_data',
49
+ :'remote_was_deleted' => :'remote_was_deleted'
47
50
  }
48
51
  end
49
52
 
@@ -61,7 +64,8 @@ module MergeATSClient
61
64
  :'file_url' => :'String',
62
65
  :'candidate' => :'String',
63
66
  :'attachment_type' => :'AttachmentTypeEnum',
64
- :'remote_data' => :'Array<RemoteData>'
67
+ :'remote_data' => :'Array<RemoteData>',
68
+ :'remote_was_deleted' => :'Boolean'
65
69
  }
66
70
  end
67
71
 
@@ -73,7 +77,7 @@ module MergeATSClient
73
77
  :'file_url',
74
78
  :'candidate',
75
79
  :'attachment_type',
76
- :'remote_data'
80
+ :'remote_data',
77
81
  ])
78
82
  end
79
83
 
@@ -121,6 +125,10 @@ module MergeATSClient
121
125
  self.remote_data = value
122
126
  end
123
127
  end
128
+
129
+ if attributes.key?(:'remote_was_deleted')
130
+ self.remote_was_deleted = attributes[:'remote_was_deleted']
131
+ end
124
132
  end
125
133
 
126
134
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -162,7 +170,8 @@ module MergeATSClient
162
170
  file_url == o.file_url &&
163
171
  candidate == o.candidate &&
164
172
  attachment_type == o.attachment_type &&
165
- remote_data == o.remote_data
173
+ remote_data == o.remote_data &&
174
+ remote_was_deleted == o.remote_was_deleted
166
175
  end
167
176
 
168
177
  # @see the `==` method
@@ -174,7 +183,7 @@ module MergeATSClient
174
183
  # Calculates hash code according to all attributes.
175
184
  # @return [Integer] Hash code
176
185
  def hash
177
- [id, remote_id, file_name, file_url, candidate, attachment_type, remote_data].hash
186
+ [id, remote_id, file_name, file_url, candidate, attachment_type, remote_data, remote_was_deleted].hash
178
187
  end
179
188
 
180
189
  # Builds the object from hash
@@ -0,0 +1,237 @@
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 AttachmentEndpointRequest
18
+ attr_accessor :model
19
+
20
+ attr_accessor :remote_user_id
21
+
22
+ # Attribute mapping from ruby-style variable name to JSON key.
23
+ def self.attribute_map
24
+ {
25
+ :'model' => :'model',
26
+ :'remote_user_id' => :'remote_user_id'
27
+ }
28
+ end
29
+
30
+ # Returns all the JSON keys this model knows about
31
+ def self.acceptable_attributes
32
+ attribute_map.values
33
+ end
34
+
35
+ # Attribute type mapping.
36
+ def self.openapi_types
37
+ {
38
+ :'model' => :'AttachmentRequest',
39
+ :'remote_user_id' => :'String'
40
+ }
41
+ end
42
+
43
+ # List of attributes with nullable: true
44
+ def self.openapi_nullable
45
+ Set.new([
46
+ ])
47
+ end
48
+
49
+ # Initializes the object
50
+ # @param [Hash] attributes Model attributes in the form of hash
51
+ def initialize(attributes = {})
52
+ if (!attributes.is_a?(Hash))
53
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MergeATSClient::AttachmentEndpointRequest` initialize method"
54
+ end
55
+
56
+ # check to see if the attribute exists and convert string to symbol for hash key
57
+ attributes = attributes.each_with_object({}) { |(k, v), h|
58
+ if (!self.class.attribute_map.key?(k.to_sym))
59
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MergeATSClient::AttachmentEndpointRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
60
+ end
61
+ h[k.to_sym] = v
62
+ }
63
+
64
+ if attributes.key?(:'model')
65
+ self.model = attributes[:'model']
66
+ end
67
+
68
+ if attributes.key?(:'remote_user_id')
69
+ self.remote_user_id = attributes[:'remote_user_id']
70
+ end
71
+ end
72
+
73
+ # Show invalid properties with the reasons. Usually used together with valid?
74
+ # @return Array for valid properties with the reasons
75
+ def list_invalid_properties
76
+ invalid_properties = Array.new
77
+ if @model.nil?
78
+ invalid_properties.push('invalid value for "model", model cannot be nil.')
79
+ end
80
+
81
+ if @remote_user_id.nil?
82
+ invalid_properties.push('invalid value for "remote_user_id", remote_user_id cannot be nil.')
83
+ end
84
+
85
+ invalid_properties
86
+ end
87
+
88
+ # Check to see if the all the properties in the model are valid
89
+ # @return true if the model is valid
90
+ def valid?
91
+ return false if @model.nil?
92
+ return false if @remote_user_id.nil?
93
+ true
94
+ end
95
+
96
+ # Checks equality by comparing each attribute.
97
+ # @param [Object] Object to be compared
98
+ def ==(o)
99
+ return true if self.equal?(o)
100
+ self.class == o.class &&
101
+ model == o.model &&
102
+ remote_user_id == o.remote_user_id
103
+ end
104
+
105
+ # @see the `==` method
106
+ # @param [Object] Object to be compared
107
+ def eql?(o)
108
+ self == o
109
+ end
110
+
111
+ # Calculates hash code according to all attributes.
112
+ # @return [Integer] Hash code
113
+ def hash
114
+ [model, remote_user_id].hash
115
+ end
116
+
117
+ # Builds the object from hash
118
+ # @param [Hash] attributes Model attributes in the form of hash
119
+ # @return [Object] Returns the model itself
120
+ def self.build_from_hash(attributes)
121
+ new.build_from_hash(attributes)
122
+ end
123
+
124
+ # Builds the object from hash
125
+ # @param [Hash] attributes Model attributes in the form of hash
126
+ # @return [Object] Returns the model itself
127
+ def build_from_hash(attributes)
128
+ return nil unless attributes.is_a?(Hash)
129
+ self.class.openapi_types.each_pair do |key, type|
130
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
131
+ self.send("#{key}=", nil)
132
+ elsif type =~ /\AArray<(.*)>/i
133
+ # check to ensure the input is an array given that the attribute
134
+ # is documented as an array but the input is not
135
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
136
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
137
+ end
138
+ elsif !attributes[self.class.attribute_map[key]].nil?
139
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
140
+ end
141
+ end
142
+
143
+ self
144
+ end
145
+
146
+ # Deserializes the data based on type
147
+ # @param string type Data type
148
+ # @param string value Value to be deserialized
149
+ # @return [Object] Deserialized data
150
+ def _deserialize(type, value)
151
+ case type.to_sym
152
+ when :Time
153
+ Time.parse(value)
154
+ when :Date
155
+ Date.parse(value)
156
+ when :String
157
+ value
158
+ when :Integer
159
+ value.to_i
160
+ when :Float
161
+ value.to_f
162
+ when :Boolean
163
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
164
+ true
165
+ else
166
+ false
167
+ end
168
+ when :Object
169
+ # generic object (usually a Hash), return directly
170
+ value
171
+ when /\AArray<(?<inner_type>.+)>\z/
172
+ inner_type = Regexp.last_match[:inner_type]
173
+ value.map { |v| _deserialize(inner_type, v) }
174
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
175
+ k_type = Regexp.last_match[:k_type]
176
+ v_type = Regexp.last_match[:v_type]
177
+ {}.tap do |hash|
178
+ value.each do |k, v|
179
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
180
+ end
181
+ end
182
+ else # model
183
+ # models (e.g. Pet) or oneOf
184
+ klass = MergeATSClient.const_get(type)
185
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
186
+ end
187
+ end
188
+
189
+ # Returns the string representation of the object
190
+ # @return [String] String presentation of the object
191
+ def to_s
192
+ to_hash.to_s
193
+ end
194
+
195
+ # to_body is an alias to to_hash (backward compatibility)
196
+ # @return [Hash] Returns the object in the form of hash
197
+ def to_body
198
+ to_hash
199
+ end
200
+
201
+ # Returns the object in the form of hash
202
+ # @return [Hash] Returns the object in the form of hash
203
+ def to_hash
204
+ hash = {}
205
+ self.class.attribute_map.each_pair do |attr, param|
206
+ value = self.send(attr)
207
+ if value.nil?
208
+ is_nullable = self.class.openapi_nullable.include?(attr)
209
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
210
+ end
211
+
212
+ hash[param] = _to_hash(value)
213
+ end
214
+ hash
215
+ end
216
+
217
+ # Outputs non-array value in the form of hash
218
+ # For object, use to_hash. Otherwise, just return the value
219
+ # @param [Object] value Any valid value
220
+ # @return [Hash] Returns the value in the form of hash
221
+ def _to_hash(value)
222
+ if value.is_a?(Array)
223
+ value.compact.map { |v| _to_hash(v) }
224
+ elsif value.is_a?(Hash)
225
+ {}.tap do |hash|
226
+ value.each { |k, v| hash[k] = _to_hash(v) }
227
+ end
228
+ elsif value.respond_to? :to_hash
229
+ value.to_hash
230
+ else
231
+ value
232
+ end
233
+ end
234
+
235
+ end
236
+
237
+ end
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module MergeATSClient
17
- # # The Attachment Object ### Description The `Attachment` object is used to represent a attachment for a candidate. ### Usage Example Fetch from the `LIST Attachments` endpoint and view attachments accessible by a company.
17
+ # # The Attachment Object ### Description The `Attachment` object is used to represent a attachment for a candidate. ### Usage Example Fetch from the `LIST Attachments` endpoint and view attachments accessible by a company.
18
18
  class AttachmentRequest
19
19
  # The third-party API ID of the matching object.
20
20
  attr_accessor :remote_id
@@ -30,6 +30,10 @@ module MergeATSClient
30
30
  # The attachment's type.
31
31
  attr_accessor :attachment_type
32
32
 
33
+ attr_accessor :integration_params
34
+
35
+ attr_accessor :linked_account_params
36
+
33
37
  # Attribute mapping from ruby-style variable name to JSON key.
34
38
  def self.attribute_map
35
39
  {
@@ -37,7 +41,9 @@ module MergeATSClient
37
41
  :'file_name' => :'file_name',
38
42
  :'file_url' => :'file_url',
39
43
  :'candidate' => :'candidate',
40
- :'attachment_type' => :'attachment_type'
44
+ :'attachment_type' => :'attachment_type',
45
+ :'integration_params' => :'integration_params',
46
+ :'linked_account_params' => :'linked_account_params'
41
47
  }
42
48
  end
43
49
 
@@ -53,7 +59,9 @@ module MergeATSClient
53
59
  :'file_name' => :'String',
54
60
  :'file_url' => :'String',
55
61
  :'candidate' => :'String',
56
- :'attachment_type' => :'AttachmentTypeEnum'
62
+ :'attachment_type' => :'AttachmentTypeEnum',
63
+ :'integration_params' => :'Hash<String, AnyType>',
64
+ :'linked_account_params' => :'Hash<String, AnyType>'
57
65
  }
58
66
  end
59
67
 
@@ -64,7 +72,9 @@ module MergeATSClient
64
72
  :'file_name',
65
73
  :'file_url',
66
74
  :'candidate',
67
- :'attachment_type'
75
+ :'attachment_type',
76
+ :'integration_params',
77
+ :'linked_account_params'
68
78
  ])
69
79
  end
70
80
 
@@ -102,6 +112,18 @@ module MergeATSClient
102
112
  if attributes.key?(:'attachment_type')
103
113
  self.attachment_type = attributes[:'attachment_type']
104
114
  end
115
+
116
+ if attributes.key?(:'integration_params')
117
+ if (value = attributes[:'integration_params']).is_a?(Hash)
118
+ self.integration_params = value
119
+ end
120
+ end
121
+
122
+ if attributes.key?(:'linked_account_params')
123
+ if (value = attributes[:'linked_account_params']).is_a?(Hash)
124
+ self.linked_account_params = value
125
+ end
126
+ end
105
127
  end
106
128
 
107
129
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -141,7 +163,9 @@ module MergeATSClient
141
163
  file_name == o.file_name &&
142
164
  file_url == o.file_url &&
143
165
  candidate == o.candidate &&
144
- attachment_type == o.attachment_type
166
+ attachment_type == o.attachment_type &&
167
+ integration_params == o.integration_params &&
168
+ linked_account_params == o.linked_account_params
145
169
  end
146
170
 
147
171
  # @see the `==` method
@@ -153,7 +177,7 @@ module MergeATSClient
153
177
  # Calculates hash code according to all attributes.
154
178
  # @return [Integer] Hash code
155
179
  def hash
156
- [remote_id, file_name, file_url, candidate, attachment_type].hash
180
+ [remote_id, file_name, file_url, candidate, attachment_type, integration_params, linked_account_params].hash
157
181
  end
158
182
 
159
183
  # Builds the object from hash
@@ -196,7 +220,7 @@ module MergeATSClient
196
220
  when :Date
197
221
  Date.parse(value)
198
222
  when :String
199
- value.to_s
223
+ value
200
224
  when :Integer
201
225
  value.to_i
202
226
  when :Float
@@ -0,0 +1,266 @@
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 AttachmentResponse
18
+ attr_accessor :model
19
+
20
+ attr_accessor :warnings
21
+
22
+ attr_accessor :errors
23
+
24
+ attr_accessor :logs
25
+
26
+ # Attribute mapping from ruby-style variable name to JSON key.
27
+ def self.attribute_map
28
+ {
29
+ :'model' => :'model',
30
+ :'warnings' => :'warnings',
31
+ :'errors' => :'errors',
32
+ :'logs' => :'logs'
33
+ }
34
+ end
35
+
36
+ # Returns all the JSON keys this model knows about
37
+ def self.acceptable_attributes
38
+ attribute_map.values
39
+ end
40
+
41
+ # Attribute type mapping.
42
+ def self.openapi_types
43
+ {
44
+ :'model' => :'Attachment',
45
+ :'warnings' => :'Array<WarningValidationProblem>',
46
+ :'errors' => :'Array<ErrorValidationProblem>',
47
+ :'logs' => :'Array<DebugModeLog>'
48
+ }
49
+ end
50
+
51
+ # List of attributes with nullable: true
52
+ def self.openapi_nullable
53
+ Set.new([
54
+ ])
55
+ end
56
+
57
+ # Initializes the object
58
+ # @param [Hash] attributes Model attributes in the form of hash
59
+ def initialize(attributes = {})
60
+ if (!attributes.is_a?(Hash))
61
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MergeATSClient::AttachmentResponse` initialize method"
62
+ end
63
+
64
+ # check to see if the attribute exists and convert string to symbol for hash key
65
+ attributes = attributes.each_with_object({}) { |(k, v), h|
66
+ if (!self.class.attribute_map.key?(k.to_sym))
67
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MergeATSClient::AttachmentResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
68
+ end
69
+ h[k.to_sym] = v
70
+ }
71
+
72
+ if attributes.key?(:'model')
73
+ self.model = attributes[:'model']
74
+ end
75
+
76
+ if attributes.key?(:'warnings')
77
+ if (value = attributes[:'warnings']).is_a?(Array)
78
+ self.warnings = value
79
+ end
80
+ end
81
+
82
+ if attributes.key?(:'errors')
83
+ if (value = attributes[:'errors']).is_a?(Array)
84
+ self.errors = value
85
+ end
86
+ end
87
+
88
+ if attributes.key?(:'logs')
89
+ if (value = attributes[:'logs']).is_a?(Array)
90
+ self.logs = value
91
+ end
92
+ end
93
+ end
94
+
95
+ # Show invalid properties with the reasons. Usually used together with valid?
96
+ # @return Array for valid properties with the reasons
97
+ def list_invalid_properties
98
+ invalid_properties = Array.new
99
+ if @model.nil?
100
+ invalid_properties.push('invalid value for "model", model cannot be nil.')
101
+ end
102
+
103
+ if @warnings.nil?
104
+ invalid_properties.push('invalid value for "warnings", warnings cannot be nil.')
105
+ end
106
+
107
+ if @errors.nil?
108
+ invalid_properties.push('invalid value for "errors", errors cannot be nil.')
109
+ end
110
+
111
+ invalid_properties
112
+ end
113
+
114
+ # Check to see if the all the properties in the model are valid
115
+ # @return true if the model is valid
116
+ def valid?
117
+ return false if @model.nil?
118
+ return false if @warnings.nil?
119
+ return false if @errors.nil?
120
+ true
121
+ end
122
+
123
+ # Checks equality by comparing each attribute.
124
+ # @param [Object] Object to be compared
125
+ def ==(o)
126
+ return true if self.equal?(o)
127
+ self.class == o.class &&
128
+ model == o.model &&
129
+ warnings == o.warnings &&
130
+ errors == o.errors &&
131
+ logs == o.logs
132
+ end
133
+
134
+ # @see the `==` method
135
+ # @param [Object] Object to be compared
136
+ def eql?(o)
137
+ self == o
138
+ end
139
+
140
+ # Calculates hash code according to all attributes.
141
+ # @return [Integer] Hash code
142
+ def hash
143
+ [model, warnings, errors, logs].hash
144
+ end
145
+
146
+ # Builds the object from hash
147
+ # @param [Hash] attributes Model attributes in the form of hash
148
+ # @return [Object] Returns the model itself
149
+ def self.build_from_hash(attributes)
150
+ new.build_from_hash(attributes)
151
+ end
152
+
153
+ # Builds the object from hash
154
+ # @param [Hash] attributes Model attributes in the form of hash
155
+ # @return [Object] Returns the model itself
156
+ def build_from_hash(attributes)
157
+ return nil unless attributes.is_a?(Hash)
158
+ self.class.openapi_types.each_pair do |key, type|
159
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
160
+ self.send("#{key}=", nil)
161
+ elsif type =~ /\AArray<(.*)>/i
162
+ # check to ensure the input is an array given that the attribute
163
+ # is documented as an array but the input is not
164
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
165
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
166
+ end
167
+ elsif !attributes[self.class.attribute_map[key]].nil?
168
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
169
+ end
170
+ end
171
+
172
+ self
173
+ end
174
+
175
+ # Deserializes the data based on type
176
+ # @param string type Data type
177
+ # @param string value Value to be deserialized
178
+ # @return [Object] Deserialized data
179
+ def _deserialize(type, value)
180
+ case type.to_sym
181
+ when :Time
182
+ Time.parse(value)
183
+ when :Date
184
+ Date.parse(value)
185
+ when :String
186
+ value
187
+ when :Integer
188
+ value.to_i
189
+ when :Float
190
+ value.to_f
191
+ when :Boolean
192
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
193
+ true
194
+ else
195
+ false
196
+ end
197
+ when :Object
198
+ # generic object (usually a Hash), return directly
199
+ value
200
+ when /\AArray<(?<inner_type>.+)>\z/
201
+ inner_type = Regexp.last_match[:inner_type]
202
+ value.map { |v| _deserialize(inner_type, v) }
203
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
204
+ k_type = Regexp.last_match[:k_type]
205
+ v_type = Regexp.last_match[:v_type]
206
+ {}.tap do |hash|
207
+ value.each do |k, v|
208
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
209
+ end
210
+ end
211
+ else # model
212
+ # models (e.g. Pet) or oneOf
213
+ klass = MergeATSClient.const_get(type)
214
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
215
+ end
216
+ end
217
+
218
+ # Returns the string representation of the object
219
+ # @return [String] String presentation of the object
220
+ def to_s
221
+ to_hash.to_s
222
+ end
223
+
224
+ # to_body is an alias to to_hash (backward compatibility)
225
+ # @return [Hash] Returns the object in the form of hash
226
+ def to_body
227
+ to_hash
228
+ end
229
+
230
+ # Returns the object in the form of hash
231
+ # @return [Hash] Returns the object in the form of hash
232
+ def to_hash
233
+ hash = {}
234
+ self.class.attribute_map.each_pair do |attr, param|
235
+ value = self.send(attr)
236
+ if value.nil?
237
+ is_nullable = self.class.openapi_nullable.include?(attr)
238
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
239
+ end
240
+
241
+ hash[param] = _to_hash(value)
242
+ end
243
+ hash
244
+ end
245
+
246
+ # Outputs non-array value in the form of hash
247
+ # For object, use to_hash. Otherwise, just return the value
248
+ # @param [Object] value Any valid value
249
+ # @return [Hash] Returns the value in the form of hash
250
+ def _to_hash(value)
251
+ if value.is_a?(Array)
252
+ value.compact.map { |v| _to_hash(v) }
253
+ elsif value.is_a?(Hash)
254
+ {}.tap do |hash|
255
+ value.each { |k, v| hash[k] = _to_hash(v) }
256
+ end
257
+ elsif value.respond_to? :to_hash
258
+ value.to_hash
259
+ else
260
+ value
261
+ end
262
+ end
263
+
264
+ end
265
+
266
+ end
@@ -31,8 +31,6 @@ module MergeATSClient
31
31
  # @param [String] The enum value in the form of the string
32
32
  # @return [String] The enum value
33
33
  def build_from_hash(value)
34
- constantValues = AttachmentTypeEnum.constants.select { |c| AttachmentTypeEnum::const_get(c) == value }
35
- raise "Invalid ENUM value #{value} for class #AttachmentTypeEnum" if constantValues.empty?
36
34
  value
37
35
  end
38
36
  end