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,22 @@
1
+ # MergeATSClient::WebhookReceiverRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **event** | **String** | | |
8
+ | **is_active** | **Boolean** | | |
9
+ | **key** | **String** | | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'merge_ats_client'
15
+
16
+ instance = MergeATSClient::WebhookReceiverRequest.new(
17
+ event: null,
18
+ is_active: null,
19
+ key: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,153 @@
1
+ # MergeATSClient::WebhookReceiversApi
2
+
3
+ All URIs are relative to *https://api.merge.dev/api/ats/v1*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**webhook_receivers_create**](WebhookReceiversApi.md#webhook_receivers_create) | **POST** /webhook-receivers | |
8
+ | [**webhook_receivers_list**](WebhookReceiversApi.md#webhook_receivers_list) | **GET** /webhook-receivers | |
9
+
10
+
11
+ ## webhook_receivers_create
12
+
13
+ > <WebhookReceiver> webhook_receivers_create(x_account_token, webhook_receiver_request)
14
+
15
+
16
+
17
+ Creates a `WebhookReceiver` object with the given values.
18
+
19
+ ### Examples
20
+
21
+ ```ruby
22
+ require 'time'
23
+ require 'merge_ats_client'
24
+ # setup authorization
25
+ MergeATSClient.configure do |config|
26
+ # Configure API key authorization: tokenAuth
27
+ config.api_key['tokenAuth'] = 'YOUR API KEY'
28
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
29
+ # config.api_key_prefix['tokenAuth'] = 'Bearer'
30
+ end
31
+
32
+ api_instance = MergeATSClient::WebhookReceiversApi.new
33
+ x_account_token = 'x_account_token_example' # String | Token identifying the end user.
34
+ webhook_receiver_request = MergeATSClient::WebhookReceiverRequest.new({event: 'event_example', is_active: false}) # WebhookReceiverRequest |
35
+
36
+ begin
37
+
38
+ result = api_instance.webhook_receivers_create(x_account_token, webhook_receiver_request)
39
+ p result
40
+ rescue MergeATSClient::ApiError => e
41
+ puts "Error when calling WebhookReceiversApi->webhook_receivers_create: #{e}"
42
+ end
43
+ ```
44
+
45
+ #### Using the webhook_receivers_create_with_http_info variant
46
+
47
+ This returns an Array which contains the response data, status code and headers.
48
+
49
+ > <Array(<WebhookReceiver>, Integer, Hash)> webhook_receivers_create_with_http_info(x_account_token, webhook_receiver_request)
50
+
51
+ ```ruby
52
+ begin
53
+
54
+ data, status_code, headers = api_instance.webhook_receivers_create_with_http_info(x_account_token, webhook_receiver_request)
55
+ p status_code # => 2xx
56
+ p headers # => { ... }
57
+ p data # => <WebhookReceiver>
58
+ rescue MergeATSClient::ApiError => e
59
+ puts "Error when calling WebhookReceiversApi->webhook_receivers_create_with_http_info: #{e}"
60
+ end
61
+ ```
62
+
63
+ ### Parameters
64
+
65
+ | Name | Type | Description | Notes |
66
+ | ---- | ---- | ----------- | ----- |
67
+ | **x_account_token** | **String** | Token identifying the end user. | |
68
+ | **webhook_receiver_request** | [**WebhookReceiverRequest**](WebhookReceiverRequest.md) | | |
69
+
70
+ ### Return type
71
+
72
+ [**WebhookReceiver**](WebhookReceiver.md)
73
+
74
+ ### Authorization
75
+
76
+ [tokenAuth](../README.md#tokenAuth)
77
+
78
+ ### HTTP request headers
79
+
80
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
81
+ - **Accept**: application/json
82
+
83
+
84
+ ## webhook_receivers_list
85
+
86
+ > <Array<WebhookReceiver>> webhook_receivers_list(x_account_token)
87
+
88
+
89
+
90
+ Returns a list of `WebhookReceiver` objects.
91
+
92
+ ### Examples
93
+
94
+ ```ruby
95
+ require 'time'
96
+ require 'merge_ats_client'
97
+ # setup authorization
98
+ MergeATSClient.configure do |config|
99
+ # Configure API key authorization: tokenAuth
100
+ config.api_key['tokenAuth'] = 'YOUR API KEY'
101
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
102
+ # config.api_key_prefix['tokenAuth'] = 'Bearer'
103
+ end
104
+
105
+ api_instance = MergeATSClient::WebhookReceiversApi.new
106
+ x_account_token = 'x_account_token_example' # String | Token identifying the end user.
107
+
108
+ begin
109
+
110
+ result = api_instance.webhook_receivers_list(x_account_token)
111
+ p result
112
+ rescue MergeATSClient::ApiError => e
113
+ puts "Error when calling WebhookReceiversApi->webhook_receivers_list: #{e}"
114
+ end
115
+ ```
116
+
117
+ #### Using the webhook_receivers_list_with_http_info variant
118
+
119
+ This returns an Array which contains the response data, status code and headers.
120
+
121
+ > <Array(<Array<WebhookReceiver>>, Integer, Hash)> webhook_receivers_list_with_http_info(x_account_token)
122
+
123
+ ```ruby
124
+ begin
125
+
126
+ data, status_code, headers = api_instance.webhook_receivers_list_with_http_info(x_account_token)
127
+ p status_code # => 2xx
128
+ p headers # => { ... }
129
+ p data # => <Array<WebhookReceiver>>
130
+ rescue MergeATSClient::ApiError => e
131
+ puts "Error when calling WebhookReceiversApi->webhook_receivers_list_with_http_info: #{e}"
132
+ end
133
+ ```
134
+
135
+ ### Parameters
136
+
137
+ | Name | Type | Description | Notes |
138
+ | ---- | ---- | ----------- | ----- |
139
+ | **x_account_token** | **String** | Token identifying the end user. | |
140
+
141
+ ### Return type
142
+
143
+ [**Array&lt;WebhookReceiver&gt;**](WebhookReceiver.md)
144
+
145
+ ### Authorization
146
+
147
+ [tokenAuth](../README.md#tokenAuth)
148
+
149
+ ### HTTP request headers
150
+
151
+ - **Content-Type**: Not defined
152
+ - **Accept**: application/json
153
+
@@ -20,20 +20,26 @@ module MergeATSClient
20
20
  @api_client = api_client
21
21
  end
22
22
  # Get details for a linked account.
23
+ # @param x_account_token [String] Token identifying the end user.
23
24
  # @param [Hash] opts the optional parameters
24
25
  # @return [AccountDetails]
25
- def account_details_retrieve(opts = {})
26
- data, _status_code, _headers = account_details_retrieve_with_http_info(opts)
26
+ def account_details_retrieve(x_account_token, opts = {})
27
+ data, _status_code, _headers = account_details_retrieve_with_http_info(x_account_token, opts)
27
28
  data
28
29
  end
29
30
 
30
31
  # Get details for a linked account.
32
+ # @param x_account_token [String] Token identifying the end user.
31
33
  # @param [Hash] opts the optional parameters
32
34
  # @return [Array<(AccountDetails, Integer, Hash)>] AccountDetails data, response status code and response headers
33
- def account_details_retrieve_with_http_info(opts = {})
35
+ def account_details_retrieve_with_http_info(x_account_token, opts = {})
34
36
  if @api_client.config.debugging
35
37
  @api_client.config.logger.debug 'Calling API: AccountDetailsApi.account_details_retrieve ...'
36
38
  end
39
+ # verify the required parameter 'x_account_token' is set
40
+ if @api_client.config.client_side_validation && x_account_token.nil?
41
+ fail ArgumentError, "Missing the required parameter 'x_account_token' when calling AccountDetailsApi.account_details_retrieve"
42
+ end
37
43
  # resource path
38
44
  local_var_path = '/account-details'
39
45
 
@@ -44,6 +50,7 @@ module MergeATSClient
44
50
  header_params = opts[:header_params] || {}
45
51
  # HTTP header 'Accept' (if needed)
46
52
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
53
+ header_params[:'X-Account-Token'] = x_account_token
47
54
 
48
55
  # form parameters
49
56
  form_params = opts[:form_params] || {}
@@ -26,6 +26,7 @@ module MergeATSClient
26
26
  # @option opts [Time] :created_before If provided, will only return objects created before this datetime.
27
27
  # @option opts [String] :cursor The pagination cursor value.
28
28
  # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
29
+ # @option opts [Boolean] :include_deleted_data Whether to include data that was deleted in the third-party service.
29
30
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
30
31
  # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
31
32
  # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
@@ -45,6 +46,7 @@ module MergeATSClient
45
46
  # @option opts [Time] :created_before If provided, will only return objects created before this datetime.
46
47
  # @option opts [String] :cursor The pagination cursor value.
47
48
  # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
49
+ # @option opts [Boolean] :include_deleted_data Whether to include data that was deleted in the third-party service.
48
50
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
49
51
  # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
50
52
  # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
@@ -73,6 +75,7 @@ module MergeATSClient
73
75
  query_params[:'created_before'] = opts[:'created_before'] if !opts[:'created_before'].nil?
74
76
  query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
75
77
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
78
+ query_params[:'include_deleted_data'] = opts[:'include_deleted_data'] if !opts[:'include_deleted_data'].nil?
76
79
  query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
77
80
  query_params[:'modified_after'] = opts[:'modified_after'] if !opts[:'modified_after'].nil?
78
81
  query_params[:'modified_before'] = opts[:'modified_before'] if !opts[:'modified_before'].nil?
@@ -21,24 +21,24 @@ module MergeATSClient
21
21
  end
22
22
  # Creates an `Application` object with the given values.
23
23
  # @param x_account_token [String] Token identifying the end user.
24
- # @param remote_user_id [String] The ID of the RemoteUser deleting the resource. This can be found in the ID field (not remote_id) in the RemoteUser table.
24
+ # @param application_endpoint_request [ApplicationEndpointRequest]
25
25
  # @param [Hash] opts the optional parameters
26
+ # @option opts [Boolean] :is_debug_mode Whether to include debug fields (such as log file links) in the response.
26
27
  # @option opts [Boolean] :run_async Whether or not third-party updates should be run asynchronously.
27
- # @option opts [ApplicationRequest] :application_request
28
- # @return [Application]
29
- def applications_create(x_account_token, remote_user_id, opts = {})
30
- data, _status_code, _headers = applications_create_with_http_info(x_account_token, remote_user_id, opts)
28
+ # @return [ApplicationResponse]
29
+ def applications_create(x_account_token, application_endpoint_request, opts = {})
30
+ data, _status_code, _headers = applications_create_with_http_info(x_account_token, application_endpoint_request, opts)
31
31
  data
32
32
  end
33
33
 
34
34
  # Creates an &#x60;Application&#x60; object with the given values.
35
35
  # @param x_account_token [String] Token identifying the end user.
36
- # @param remote_user_id [String] The ID of the RemoteUser deleting the resource. This can be found in the ID field (not remote_id) in the RemoteUser table.
36
+ # @param application_endpoint_request [ApplicationEndpointRequest]
37
37
  # @param [Hash] opts the optional parameters
38
+ # @option opts [Boolean] :is_debug_mode Whether to include debug fields (such as log file links) in the response.
38
39
  # @option opts [Boolean] :run_async Whether or not third-party updates should be run asynchronously.
39
- # @option opts [ApplicationRequest] :application_request
40
- # @return [Array<(Application, Integer, Hash)>] Application data, response status code and response headers
41
- def applications_create_with_http_info(x_account_token, remote_user_id, opts = {})
40
+ # @return [Array<(ApplicationResponse, Integer, Hash)>] ApplicationResponse data, response status code and response headers
41
+ def applications_create_with_http_info(x_account_token, application_endpoint_request, opts = {})
42
42
  if @api_client.config.debugging
43
43
  @api_client.config.logger.debug 'Calling API: ApplicationsApi.applications_create ...'
44
44
  end
@@ -46,16 +46,16 @@ module MergeATSClient
46
46
  if @api_client.config.client_side_validation && x_account_token.nil?
47
47
  fail ArgumentError, "Missing the required parameter 'x_account_token' when calling ApplicationsApi.applications_create"
48
48
  end
49
- # verify the required parameter 'remote_user_id' is set
50
- if @api_client.config.client_side_validation && remote_user_id.nil?
51
- fail ArgumentError, "Missing the required parameter 'remote_user_id' when calling ApplicationsApi.applications_create"
49
+ # verify the required parameter 'application_endpoint_request' is set
50
+ if @api_client.config.client_side_validation && application_endpoint_request.nil?
51
+ fail ArgumentError, "Missing the required parameter 'application_endpoint_request' when calling ApplicationsApi.applications_create"
52
52
  end
53
53
  # resource path
54
54
  local_var_path = '/applications'
55
55
 
56
56
  # query parameters
57
57
  query_params = opts[:query_params] || {}
58
- query_params[:'remote_user_id'] = remote_user_id
58
+ query_params[:'is_debug_mode'] = opts[:'is_debug_mode'] if !opts[:'is_debug_mode'].nil?
59
59
  query_params[:'run_async'] = opts[:'run_async'] if !opts[:'run_async'].nil?
60
60
 
61
61
  # header parameters
@@ -70,10 +70,10 @@ module MergeATSClient
70
70
  form_params = opts[:form_params] || {}
71
71
 
72
72
  # http body (model)
73
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'application_request'])
73
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(application_endpoint_request)
74
74
 
75
75
  # return_type
76
- return_type = opts[:debug_return_type] || 'Application'
76
+ return_type = opts[:debug_return_type] || 'ApplicationResponse'
77
77
 
78
78
  # auth_names
79
79
  auth_names = opts[:debug_auth_names] || ['tokenAuth']
@@ -105,6 +105,7 @@ module MergeATSClient
105
105
  # @option opts [String] :current_stage_id If provided, will only return applications at this interview stage.
106
106
  # @option opts [String] :cursor The pagination cursor value.
107
107
  # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
108
+ # @option opts [Boolean] :include_deleted_data Whether to include data that was deleted in the third-party service.
108
109
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
109
110
  # @option opts [String] :job_id If provided, will only return applications for this job.
110
111
  # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
@@ -112,6 +113,7 @@ module MergeATSClient
112
113
  # @option opts [Integer] :page_size Number of results to return per page.
113
114
  # @option opts [String] :reject_reason_id If provided, will only return applications with this reject reason.
114
115
  # @option opts [String] :remote_id The API provider&#39;s ID for the given object.
116
+ # @option opts [String] :source If provided, will only return applications with this source.
115
117
  # @return [PaginatedApplicationList]
116
118
  def applications_list(x_account_token, opts = {})
117
119
  data, _status_code, _headers = applications_list_with_http_info(x_account_token, opts)
@@ -128,6 +130,7 @@ module MergeATSClient
128
130
  # @option opts [String] :current_stage_id If provided, will only return applications at this interview stage.
129
131
  # @option opts [String] :cursor The pagination cursor value.
130
132
  # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
133
+ # @option opts [Boolean] :include_deleted_data Whether to include data that was deleted in the third-party service.
131
134
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
132
135
  # @option opts [String] :job_id If provided, will only return applications for this job.
133
136
  # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
@@ -135,6 +138,7 @@ module MergeATSClient
135
138
  # @option opts [Integer] :page_size Number of results to return per page.
136
139
  # @option opts [String] :reject_reason_id If provided, will only return applications with this reject reason.
137
140
  # @option opts [String] :remote_id The API provider&#39;s ID for the given object.
141
+ # @option opts [String] :source If provided, will only return applications with this source.
138
142
  # @return [Array<(PaginatedApplicationList, Integer, Hash)>] PaginatedApplicationList data, response status code and response headers
139
143
  def applications_list_with_http_info(x_account_token, opts = {})
140
144
  if @api_client.config.debugging
@@ -160,6 +164,7 @@ module MergeATSClient
160
164
  query_params[:'current_stage_id'] = opts[:'current_stage_id'] if !opts[:'current_stage_id'].nil?
161
165
  query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
162
166
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
167
+ query_params[:'include_deleted_data'] = opts[:'include_deleted_data'] if !opts[:'include_deleted_data'].nil?
163
168
  query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
164
169
  query_params[:'job_id'] = opts[:'job_id'] if !opts[:'job_id'].nil?
165
170
  query_params[:'modified_after'] = opts[:'modified_after'] if !opts[:'modified_after'].nil?
@@ -167,6 +172,7 @@ module MergeATSClient
167
172
  query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
168
173
  query_params[:'reject_reason_id'] = opts[:'reject_reason_id'] if !opts[:'reject_reason_id'].nil?
169
174
  query_params[:'remote_id'] = opts[:'remote_id'] if !opts[:'remote_id'].nil?
175
+ query_params[:'source'] = opts[:'source'] if !opts[:'source'].nil?
170
176
 
171
177
  # header parameters
172
178
  header_params = opts[:header_params] || {}
@@ -203,6 +209,71 @@ module MergeATSClient
203
209
  return data, status_code, headers
204
210
  end
205
211
 
212
+ # Returns metadata for `Application` POSTs.
213
+ # @param x_account_token [String] Token identifying the end user.
214
+ # @param [Hash] opts the optional parameters
215
+ # @option opts [String] :application_remote_template_id The template ID associated with the nested application in the request.
216
+ # @return [MetaResponse]
217
+ def applications_meta_post_retrieve(x_account_token, opts = {})
218
+ data, _status_code, _headers = applications_meta_post_retrieve_with_http_info(x_account_token, opts)
219
+ data
220
+ end
221
+
222
+ # Returns metadata for &#x60;Application&#x60; POSTs.
223
+ # @param x_account_token [String] Token identifying the end user.
224
+ # @param [Hash] opts the optional parameters
225
+ # @option opts [String] :application_remote_template_id The template ID associated with the nested application in the request.
226
+ # @return [Array<(MetaResponse, Integer, Hash)>] MetaResponse data, response status code and response headers
227
+ def applications_meta_post_retrieve_with_http_info(x_account_token, opts = {})
228
+ if @api_client.config.debugging
229
+ @api_client.config.logger.debug 'Calling API: ApplicationsApi.applications_meta_post_retrieve ...'
230
+ end
231
+ # verify the required parameter 'x_account_token' is set
232
+ if @api_client.config.client_side_validation && x_account_token.nil?
233
+ fail ArgumentError, "Missing the required parameter 'x_account_token' when calling ApplicationsApi.applications_meta_post_retrieve"
234
+ end
235
+ # resource path
236
+ local_var_path = '/applications/meta/post'
237
+
238
+ # query parameters
239
+ query_params = opts[:query_params] || {}
240
+ query_params[:'application_remote_template_id'] = opts[:'application_remote_template_id'] if !opts[:'application_remote_template_id'].nil?
241
+
242
+ # header parameters
243
+ header_params = opts[:header_params] || {}
244
+ # HTTP header 'Accept' (if needed)
245
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
246
+ header_params[:'X-Account-Token'] = x_account_token
247
+
248
+ # form parameters
249
+ form_params = opts[:form_params] || {}
250
+
251
+ # http body (model)
252
+ post_body = opts[:debug_body]
253
+
254
+ # return_type
255
+ return_type = opts[:debug_return_type] || 'MetaResponse'
256
+
257
+ # auth_names
258
+ auth_names = opts[:debug_auth_names] || ['tokenAuth']
259
+
260
+ new_options = opts.merge(
261
+ :operation => :"ApplicationsApi.applications_meta_post_retrieve",
262
+ :header_params => header_params,
263
+ :query_params => query_params,
264
+ :form_params => form_params,
265
+ :body => post_body,
266
+ :auth_names => auth_names,
267
+ :return_type => return_type
268
+ )
269
+
270
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
271
+ if @api_client.config.debugging
272
+ @api_client.config.logger.debug "API called: ApplicationsApi#applications_meta_post_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
273
+ end
274
+ return data, status_code, headers
275
+ end
276
+
206
277
  # Returns an `Application` object with the given `id`.
207
278
  # @param x_account_token [String] Token identifying the end user.
208
279
  # @param id [String]
@@ -21,24 +21,24 @@ module MergeATSClient
21
21
  end
22
22
  # Creates an `Attachment` object with the given values.
23
23
  # @param x_account_token [String] Token identifying the end user.
24
- # @param remote_user_id [String] The ID of the RemoteUser deleting the resource. This can be found in the ID field (not remote_id) in the RemoteUser table.
24
+ # @param attachment_endpoint_request [AttachmentEndpointRequest]
25
25
  # @param [Hash] opts the optional parameters
26
+ # @option opts [Boolean] :is_debug_mode Whether to include debug fields (such as log file links) in the response.
26
27
  # @option opts [Boolean] :run_async Whether or not third-party updates should be run asynchronously.
27
- # @option opts [AttachmentRequest] :attachment_request
28
- # @return [Attachment]
29
- def attachments_create(x_account_token, remote_user_id, opts = {})
30
- data, _status_code, _headers = attachments_create_with_http_info(x_account_token, remote_user_id, opts)
28
+ # @return [AttachmentResponse]
29
+ def attachments_create(x_account_token, attachment_endpoint_request, opts = {})
30
+ data, _status_code, _headers = attachments_create_with_http_info(x_account_token, attachment_endpoint_request, opts)
31
31
  data
32
32
  end
33
33
 
34
34
  # Creates an &#x60;Attachment&#x60; object with the given values.
35
35
  # @param x_account_token [String] Token identifying the end user.
36
- # @param remote_user_id [String] The ID of the RemoteUser deleting the resource. This can be found in the ID field (not remote_id) in the RemoteUser table.
36
+ # @param attachment_endpoint_request [AttachmentEndpointRequest]
37
37
  # @param [Hash] opts the optional parameters
38
+ # @option opts [Boolean] :is_debug_mode Whether to include debug fields (such as log file links) in the response.
38
39
  # @option opts [Boolean] :run_async Whether or not third-party updates should be run asynchronously.
39
- # @option opts [AttachmentRequest] :attachment_request
40
- # @return [Array<(Attachment, Integer, Hash)>] Attachment data, response status code and response headers
41
- def attachments_create_with_http_info(x_account_token, remote_user_id, opts = {})
40
+ # @return [Array<(AttachmentResponse, Integer, Hash)>] AttachmentResponse data, response status code and response headers
41
+ def attachments_create_with_http_info(x_account_token, attachment_endpoint_request, opts = {})
42
42
  if @api_client.config.debugging
43
43
  @api_client.config.logger.debug 'Calling API: AttachmentsApi.attachments_create ...'
44
44
  end
@@ -46,16 +46,16 @@ module MergeATSClient
46
46
  if @api_client.config.client_side_validation && x_account_token.nil?
47
47
  fail ArgumentError, "Missing the required parameter 'x_account_token' when calling AttachmentsApi.attachments_create"
48
48
  end
49
- # verify the required parameter 'remote_user_id' is set
50
- if @api_client.config.client_side_validation && remote_user_id.nil?
51
- fail ArgumentError, "Missing the required parameter 'remote_user_id' when calling AttachmentsApi.attachments_create"
49
+ # verify the required parameter 'attachment_endpoint_request' is set
50
+ if @api_client.config.client_side_validation && attachment_endpoint_request.nil?
51
+ fail ArgumentError, "Missing the required parameter 'attachment_endpoint_request' when calling AttachmentsApi.attachments_create"
52
52
  end
53
53
  # resource path
54
54
  local_var_path = '/attachments'
55
55
 
56
56
  # query parameters
57
57
  query_params = opts[:query_params] || {}
58
- query_params[:'remote_user_id'] = remote_user_id
58
+ query_params[:'is_debug_mode'] = opts[:'is_debug_mode'] if !opts[:'is_debug_mode'].nil?
59
59
  query_params[:'run_async'] = opts[:'run_async'] if !opts[:'run_async'].nil?
60
60
 
61
61
  # header parameters
@@ -70,10 +70,10 @@ module MergeATSClient
70
70
  form_params = opts[:form_params] || {}
71
71
 
72
72
  # http body (model)
73
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'attachment_request'])
73
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(attachment_endpoint_request)
74
74
 
75
75
  # return_type
76
- return_type = opts[:debug_return_type] || 'Attachment'
76
+ return_type = opts[:debug_return_type] || 'AttachmentResponse'
77
77
 
78
78
  # auth_names
79
79
  auth_names = opts[:debug_auth_names] || ['tokenAuth']
@@ -102,6 +102,8 @@ module MergeATSClient
102
102
  # @option opts [Time] :created_after If provided, will only return objects created after this datetime.
103
103
  # @option opts [Time] :created_before If provided, will only return objects created before this datetime.
104
104
  # @option opts [String] :cursor The pagination cursor value.
105
+ # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
106
+ # @option opts [Boolean] :include_deleted_data Whether to include data that was deleted in the third-party service.
105
107
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
106
108
  # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
107
109
  # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
@@ -120,6 +122,8 @@ module MergeATSClient
120
122
  # @option opts [Time] :created_after If provided, will only return objects created after this datetime.
121
123
  # @option opts [Time] :created_before If provided, will only return objects created before this datetime.
122
124
  # @option opts [String] :cursor The pagination cursor value.
125
+ # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
126
+ # @option opts [Boolean] :include_deleted_data Whether to include data that was deleted in the third-party service.
123
127
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
124
128
  # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
125
129
  # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
@@ -134,6 +138,10 @@ module MergeATSClient
134
138
  if @api_client.config.client_side_validation && x_account_token.nil?
135
139
  fail ArgumentError, "Missing the required parameter 'x_account_token' when calling AttachmentsApi.attachments_list"
136
140
  end
141
+ allowable_values = ["candidate"]
142
+ if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
143
+ fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
144
+ end
137
145
  # resource path
138
146
  local_var_path = '/attachments'
139
147
 
@@ -143,6 +151,8 @@ module MergeATSClient
143
151
  query_params[:'created_after'] = opts[:'created_after'] if !opts[:'created_after'].nil?
144
152
  query_params[:'created_before'] = opts[:'created_before'] if !opts[:'created_before'].nil?
145
153
  query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
154
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
155
+ query_params[:'include_deleted_data'] = opts[:'include_deleted_data'] if !opts[:'include_deleted_data'].nil?
146
156
  query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
147
157
  query_params[:'modified_after'] = opts[:'modified_after'] if !opts[:'modified_after'].nil?
148
158
  query_params[:'modified_before'] = opts[:'modified_before'] if !opts[:'modified_before'].nil?
@@ -184,10 +194,73 @@ module MergeATSClient
184
194
  return data, status_code, headers
185
195
  end
186
196
 
197
+ # Returns metadata for `Attachment` POSTs.
198
+ # @param x_account_token [String] Token identifying the end user.
199
+ # @param [Hash] opts the optional parameters
200
+ # @return [MetaResponse]
201
+ def attachments_meta_post_retrieve(x_account_token, opts = {})
202
+ data, _status_code, _headers = attachments_meta_post_retrieve_with_http_info(x_account_token, opts)
203
+ data
204
+ end
205
+
206
+ # Returns metadata for &#x60;Attachment&#x60; POSTs.
207
+ # @param x_account_token [String] Token identifying the end user.
208
+ # @param [Hash] opts the optional parameters
209
+ # @return [Array<(MetaResponse, Integer, Hash)>] MetaResponse data, response status code and response headers
210
+ def attachments_meta_post_retrieve_with_http_info(x_account_token, opts = {})
211
+ if @api_client.config.debugging
212
+ @api_client.config.logger.debug 'Calling API: AttachmentsApi.attachments_meta_post_retrieve ...'
213
+ end
214
+ # verify the required parameter 'x_account_token' is set
215
+ if @api_client.config.client_side_validation && x_account_token.nil?
216
+ fail ArgumentError, "Missing the required parameter 'x_account_token' when calling AttachmentsApi.attachments_meta_post_retrieve"
217
+ end
218
+ # resource path
219
+ local_var_path = '/attachments/meta/post'
220
+
221
+ # query parameters
222
+ query_params = opts[:query_params] || {}
223
+
224
+ # header parameters
225
+ header_params = opts[:header_params] || {}
226
+ # HTTP header 'Accept' (if needed)
227
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
228
+ header_params[:'X-Account-Token'] = x_account_token
229
+
230
+ # form parameters
231
+ form_params = opts[:form_params] || {}
232
+
233
+ # http body (model)
234
+ post_body = opts[:debug_body]
235
+
236
+ # return_type
237
+ return_type = opts[:debug_return_type] || 'MetaResponse'
238
+
239
+ # auth_names
240
+ auth_names = opts[:debug_auth_names] || ['tokenAuth']
241
+
242
+ new_options = opts.merge(
243
+ :operation => :"AttachmentsApi.attachments_meta_post_retrieve",
244
+ :header_params => header_params,
245
+ :query_params => query_params,
246
+ :form_params => form_params,
247
+ :body => post_body,
248
+ :auth_names => auth_names,
249
+ :return_type => return_type
250
+ )
251
+
252
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
253
+ if @api_client.config.debugging
254
+ @api_client.config.logger.debug "API called: AttachmentsApi#attachments_meta_post_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
255
+ end
256
+ return data, status_code, headers
257
+ end
258
+
187
259
  # Returns an `Attachment` object with the given `id`.
188
260
  # @param x_account_token [String] Token identifying the end user.
189
261
  # @param id [String]
190
262
  # @param [Hash] opts the optional parameters
263
+ # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
191
264
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
192
265
  # @return [Attachment]
193
266
  def attachments_retrieve(x_account_token, id, opts = {})
@@ -199,6 +272,7 @@ module MergeATSClient
199
272
  # @param x_account_token [String] Token identifying the end user.
200
273
  # @param id [String]
201
274
  # @param [Hash] opts the optional parameters
275
+ # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
202
276
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
203
277
  # @return [Array<(Attachment, Integer, Hash)>] Attachment data, response status code and response headers
204
278
  def attachments_retrieve_with_http_info(x_account_token, id, opts = {})
@@ -213,11 +287,16 @@ module MergeATSClient
213
287
  if @api_client.config.client_side_validation && id.nil?
214
288
  fail ArgumentError, "Missing the required parameter 'id' when calling AttachmentsApi.attachments_retrieve"
215
289
  end
290
+ allowable_values = ["candidate"]
291
+ if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
292
+ fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
293
+ end
216
294
  # resource path
217
295
  local_var_path = '/attachments/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
218
296
 
219
297
  # query parameters
220
298
  query_params = opts[:query_params] || {}
299
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
221
300
  query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
222
301
 
223
302
  # header parameters