merge_hris_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 (318) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +59 -19
  3. data/docs/AccountDetails.md +30 -0
  4. data/docs/AccountDetailsAndActions.md +32 -0
  5. data/docs/AccountDetailsAndActionsIntegration.md +32 -0
  6. data/docs/AccountDetailsAndActionsStatusEnum.md +15 -0
  7. data/docs/AccountDetailsApi.md +76 -0
  8. data/docs/AccountIntegration.md +4 -4
  9. data/docs/AccountTokenApi.md +2 -2
  10. data/docs/AccountTypeEnum.md +15 -0
  11. data/docs/AvailableActionsApi.md +2 -2
  12. data/docs/BankInfo.md +34 -0
  13. data/docs/BankInfoApi.md +189 -0
  14. data/docs/Benefit.md +2 -2
  15. data/docs/BenefitsApi.md +6 -82
  16. data/docs/CategoriesEnum.md +15 -0
  17. data/docs/{StateEnum.md → CategoryEnum.md} +2 -2
  18. data/docs/CompaniesApi.md +6 -4
  19. data/docs/DataPassthroughRequest.md +7 -3
  20. data/docs/DebugModeLog.md +22 -0
  21. data/docs/DebugModelLogSummary.md +22 -0
  22. data/docs/Deduction.md +2 -2
  23. data/docs/DeductionsApi.md +179 -0
  24. data/docs/DeleteAccountApi.md +3 -2
  25. data/docs/Earning.md +3 -3
  26. data/docs/EarningTypeEnum.md +15 -0
  27. data/docs/Employee.md +20 -14
  28. data/docs/EmployeeEndpointRequest.md +18 -0
  29. data/docs/EmployeePayrollRun.md +5 -5
  30. data/docs/EmployeePayrollRunsApi.md +17 -7
  31. data/docs/EmployeeRequest.md +21 -13
  32. data/docs/EmployeeResponse.md +24 -0
  33. data/docs/EmployeesApi.md +101 -17
  34. data/docs/Employment.md +3 -1
  35. data/docs/EmploymentsApi.md +12 -82
  36. data/docs/EncodingEnum.md +15 -0
  37. data/docs/EndUserDetailsRequest.md +4 -2
  38. data/docs/ErrorValidationProblem.md +24 -0
  39. data/docs/ForceResyncApi.md +79 -0
  40. data/docs/GenerateKeyApi.md +2 -2
  41. data/docs/Group.md +28 -0
  42. data/docs/GroupTypeEnum.md +15 -0
  43. data/docs/GroupsApi.md +177 -0
  44. data/docs/IgnoreCommonModel.md +20 -0
  45. data/docs/IgnoreCommonModelRequest.md +20 -0
  46. data/docs/IssuesApi.md +16 -14
  47. data/docs/LinkTokenApi.md +3 -3
  48. data/docs/LinkedAccountsApi.md +103 -0
  49. data/docs/Location.md +4 -0
  50. data/docs/LocationTypeEnum.md +15 -0
  51. data/docs/LocationsApi.md +6 -4
  52. data/docs/MultipartFormFieldRequest.md +26 -0
  53. data/docs/PaginatedAccountDetailsAndActionsList.md +22 -0
  54. data/docs/PaginatedBankInfoList.md +22 -0
  55. data/docs/PaginatedDeductionList.md +22 -0
  56. data/docs/PaginatedGroupList.md +22 -0
  57. data/docs/PaginatedIssueList.md +2 -2
  58. data/docs/PaginatedPayGroupList.md +22 -0
  59. data/docs/PaginatedSyncStatusList.md +2 -2
  60. data/docs/PassthroughApi.md +2 -2
  61. data/docs/PayGroup.md +24 -0
  62. data/docs/PayGroupsApi.md +177 -0
  63. data/docs/PayrollRun.md +3 -3
  64. data/docs/PayrollRunsApi.md +17 -5
  65. data/docs/PolicyTypeEnum.md +15 -0
  66. data/docs/{NullEnum.md → ReasonEnum.md} +2 -2
  67. data/docs/RegenerateKeyApi.md +2 -2
  68. data/docs/RequestFormatEnum.md +15 -0
  69. data/docs/SyncStatusApi.md +3 -75
  70. data/docs/Tax.md +2 -2
  71. data/docs/Team.md +1 -1
  72. data/docs/TeamsApi.md +12 -6
  73. data/docs/TimeOff.md +5 -5
  74. data/docs/TimeOffApi.md +92 -6
  75. data/docs/TimeOffBalance.md +5 -3
  76. data/docs/{TimeOffBalanceApi.md → TimeOffBalancesApi.md} +26 -22
  77. data/docs/TimeOffEndpointRequest.md +18 -0
  78. data/docs/TimeOffRequest.md +36 -0
  79. data/docs/TimeOffResponse.md +24 -0
  80. data/docs/ValidationProblemSource.md +18 -0
  81. data/docs/WarningValidationProblem.md +24 -0
  82. data/lib/merge_hris_client/api/account_details_api.rb +77 -0
  83. data/lib/merge_hris_client/api/bank_info_api.rb +217 -0
  84. data/lib/merge_hris_client/api/benefits_api.rb +3 -69
  85. data/lib/merge_hris_client/api/companies_api.rb +3 -0
  86. data/lib/merge_hris_client/api/deductions_api.rb +185 -0
  87. data/lib/merge_hris_client/api/employee_payroll_runs_api.rb +17 -2
  88. data/lib/merge_hris_client/api/employees_api.rb +103 -15
  89. data/lib/merge_hris_client/api/employments_api.rb +24 -69
  90. data/lib/merge_hris_client/api/force_resync_api.rb +84 -0
  91. data/lib/merge_hris_client/api/groups_api.rb +182 -0
  92. data/lib/merge_hris_client/api/issues_api.rb +10 -10
  93. data/lib/merge_hris_client/api/linked_accounts_api.rb +117 -0
  94. data/lib/merge_hris_client/api/locations_api.rb +3 -0
  95. data/lib/merge_hris_client/api/pay_groups_api.rb +182 -0
  96. data/lib/merge_hris_client/api/payroll_runs_api.rb +22 -0
  97. data/lib/merge_hris_client/api/sync_status_api.rb +4 -66
  98. data/lib/merge_hris_client/api/teams_api.rb +17 -0
  99. data/lib/merge_hris_client/api/time_off_api.rb +95 -2
  100. data/lib/merge_hris_client/api/time_off_balances_api.rb +206 -0
  101. data/lib/merge_hris_client/configuration.rb +6 -4
  102. data/lib/merge_hris_client/models/account_details.rb +273 -0
  103. data/lib/merge_hris_client/models/account_details_and_actions.rb +302 -0
  104. data/lib/merge_hris_client/models/account_details_and_actions_integration.rb +310 -0
  105. data/lib/merge_hris_client/models/account_details_and_actions_status_enum.rb +37 -0
  106. data/lib/merge_hris_client/models/account_integration.rb +6 -28
  107. data/lib/merge_hris_client/models/account_token.rb +1 -1
  108. data/lib/merge_hris_client/models/account_type_enum.rb +36 -0
  109. data/lib/merge_hris_client/models/available_actions.rb +1 -1
  110. data/lib/merge_hris_client/models/bank_info.rb +322 -0
  111. data/lib/merge_hris_client/models/benefit.rb +2 -3
  112. data/lib/merge_hris_client/models/categories_enum.rb +37 -0
  113. data/lib/merge_hris_client/models/category_enum.rb +37 -0
  114. data/lib/merge_hris_client/models/company.rb +1 -1
  115. data/lib/merge_hris_client/models/country_enum.rb +1 -0
  116. data/lib/merge_hris_client/models/data_passthrough_request.rb +79 -9
  117. data/lib/merge_hris_client/models/debug_mode_log.rb +251 -0
  118. data/lib/merge_hris_client/models/debug_model_log_summary.rb +251 -0
  119. data/lib/merge_hris_client/models/deduction.rb +1 -2
  120. data/lib/merge_hris_client/models/earning.rb +4 -8
  121. data/lib/merge_hris_client/models/earning_type_enum.rb +38 -0
  122. data/lib/merge_hris_client/models/employee.rb +43 -14
  123. data/lib/merge_hris_client/models/employee_endpoint_request.rb +223 -0
  124. data/lib/merge_hris_client/models/employee_payroll_run.rb +1 -3
  125. data/lib/merge_hris_client/models/employee_request.rb +55 -14
  126. data/lib/merge_hris_client/models/employee_response.rb +266 -0
  127. data/lib/merge_hris_client/models/employment.rb +12 -2
  128. data/lib/merge_hris_client/models/employment_status_enum.rb +1 -1
  129. data/lib/merge_hris_client/models/employment_type_enum.rb +1 -1
  130. data/lib/merge_hris_client/models/encoding_enum.rb +36 -0
  131. data/lib/merge_hris_client/models/end_user_details_request.rb +113 -28
  132. data/lib/merge_hris_client/models/error_validation_problem.rb +260 -0
  133. data/lib/merge_hris_client/models/ethnicity_enum.rb +1 -1
  134. data/lib/merge_hris_client/models/flsa_status_enum.rb +1 -1
  135. data/lib/merge_hris_client/models/gender_enum.rb +1 -1
  136. data/lib/merge_hris_client/models/generate_remote_key_request.rb +20 -1
  137. data/lib/merge_hris_client/models/{benefit_request.rb → group.rb} +48 -49
  138. data/lib/merge_hris_client/models/group_type_enum.rb +38 -0
  139. data/lib/merge_hris_client/models/ignore_common_model.rb +247 -0
  140. data/lib/merge_hris_client/models/ignore_common_model_request.rb +256 -0
  141. data/lib/merge_hris_client/models/issue.rb +1 -1
  142. data/lib/merge_hris_client/models/issue_status_enum.rb +1 -1
  143. data/lib/merge_hris_client/models/link_token.rb +1 -1
  144. data/lib/merge_hris_client/models/location.rb +24 -2
  145. data/lib/merge_hris_client/models/location_type_enum.rb +36 -0
  146. data/lib/merge_hris_client/models/marital_status_enum.rb +2 -2
  147. data/lib/merge_hris_client/models/method_enum.rb +1 -1
  148. data/lib/merge_hris_client/models/model_operation.rb +1 -1
  149. data/lib/merge_hris_client/models/multipart_form_field_request.rb +341 -0
  150. data/lib/merge_hris_client/models/paginated_account_details_and_actions_list.rb +240 -0
  151. data/lib/merge_hris_client/models/paginated_bank_info_list.rb +240 -0
  152. data/lib/merge_hris_client/models/paginated_benefit_list.rb +1 -1
  153. data/lib/merge_hris_client/models/paginated_company_list.rb +1 -1
  154. data/lib/merge_hris_client/models/paginated_deduction_list.rb +240 -0
  155. data/lib/merge_hris_client/models/paginated_employee_list.rb +1 -1
  156. data/lib/merge_hris_client/models/paginated_employee_payroll_run_list.rb +1 -1
  157. data/lib/merge_hris_client/models/paginated_employment_list.rb +1 -1
  158. data/lib/merge_hris_client/models/paginated_group_list.rb +240 -0
  159. data/lib/merge_hris_client/models/paginated_issue_list.rb +1 -1
  160. data/lib/merge_hris_client/models/paginated_location_list.rb +1 -1
  161. data/lib/merge_hris_client/models/paginated_pay_group_list.rb +240 -0
  162. data/lib/merge_hris_client/models/paginated_payroll_run_list.rb +1 -1
  163. data/lib/merge_hris_client/models/paginated_sync_status_list.rb +1 -1
  164. data/lib/merge_hris_client/models/paginated_team_list.rb +1 -1
  165. data/lib/merge_hris_client/models/paginated_time_off_balance_list.rb +1 -1
  166. data/lib/merge_hris_client/models/paginated_time_off_list.rb +1 -1
  167. data/lib/merge_hris_client/models/pay_currency_enum.rb +1 -1
  168. data/lib/merge_hris_client/models/pay_frequency_enum.rb +1 -2
  169. data/lib/merge_hris_client/models/pay_group.rb +253 -0
  170. data/lib/merge_hris_client/models/pay_period_enum.rb +1 -1
  171. data/lib/merge_hris_client/models/payroll_run.rb +1 -1
  172. data/lib/merge_hris_client/models/policy_type_enum.rb +40 -0
  173. data/lib/merge_hris_client/models/reason_enum.rb +37 -0
  174. data/lib/merge_hris_client/models/remote_data.rb +1 -1
  175. data/lib/merge_hris_client/models/remote_data_request.rb +20 -1
  176. data/lib/merge_hris_client/models/remote_key.rb +1 -1
  177. data/lib/merge_hris_client/models/remote_key_for_regeneration_request.rb +20 -1
  178. data/lib/merge_hris_client/models/remote_response.rb +1 -1
  179. data/lib/merge_hris_client/models/request_format_enum.rb +37 -0
  180. data/lib/merge_hris_client/models/request_type_enum.rb +3 -1
  181. data/lib/merge_hris_client/models/run_state_enum.rb +1 -1
  182. data/lib/merge_hris_client/models/run_type_enum.rb +1 -11
  183. data/lib/merge_hris_client/models/sync_status.rb +1 -1
  184. data/lib/merge_hris_client/models/sync_status_status_enum.rb +3 -2
  185. data/lib/merge_hris_client/models/tax.rb +3 -7
  186. data/lib/merge_hris_client/models/team.rb +1 -2
  187. data/lib/merge_hris_client/models/time_off.rb +1 -3
  188. data/lib/merge_hris_client/models/time_off_balance.rb +15 -5
  189. data/lib/merge_hris_client/models/time_off_endpoint_request.rb +223 -0
  190. data/lib/merge_hris_client/models/{employment_request.rb → time_off_request.rb} +79 -70
  191. data/lib/merge_hris_client/models/time_off_response.rb +266 -0
  192. data/lib/merge_hris_client/models/time_off_status_enum.rb +1 -1
  193. data/lib/merge_hris_client/models/units_enum.rb +1 -1
  194. data/lib/merge_hris_client/models/validation_problem_source.rb +223 -0
  195. data/lib/merge_hris_client/models/warning_validation_problem.rb +260 -0
  196. data/lib/merge_hris_client/version.rb +1 -1
  197. data/lib/merge_hris_client.rb +43 -5
  198. data/pull_request_template.md +3 -1
  199. data/spec/api/account_details_api_spec.rb +45 -0
  200. data/spec/api/account_token_api_spec.rb +1 -1
  201. data/spec/api/available_actions_api_spec.rb +1 -1
  202. data/spec/api/bank_info_api_spec.rb +74 -0
  203. data/spec/api/benefits_api_spec.rb +4 -1
  204. data/spec/api/companies_api_spec.rb +4 -1
  205. data/spec/api/deductions_api_spec.rb +69 -0
  206. data/spec/api/employee_payroll_runs_api_spec.rb +9 -2
  207. data/spec/api/employees_api_spec.rb +35 -1
  208. data/spec/api/employments_api_spec.rb +7 -1
  209. data/spec/api/force_resync_api_spec.rb +46 -0
  210. data/spec/api/groups_api_spec.rb +68 -0
  211. data/spec/api/issues_api_spec.rb +5 -5
  212. data/spec/api/link_token_api_spec.rb +2 -2
  213. data/spec/api/linked_accounts_api_spec.rb +57 -0
  214. data/spec/api/locations_api_spec.rb +4 -1
  215. data/spec/api/passthrough_api_spec.rb +2 -3
  216. data/spec/api/pay_groups_api_spec.rb +68 -0
  217. data/spec/api/payroll_runs_api_spec.rb +9 -1
  218. data/spec/api/regenerate_key_api_spec.rb +2 -2
  219. data/spec/api/sync_status_api_spec.rb +2 -13
  220. data/spec/api/teams_api_spec.rb +7 -1
  221. data/spec/api/time_off_api_spec.rb +21 -2
  222. data/spec/api/{time_off_balance_api_spec.rb → time_off_balances_api_spec.rb} +13 -11
  223. data/spec/models/account_details_and_actions_integration_spec.rb +76 -0
  224. data/spec/models/account_details_and_actions_spec.rb +76 -0
  225. data/spec/models/account_details_and_actions_status_enum_spec.rb +28 -0
  226. data/spec/models/account_details_spec.rb +70 -0
  227. data/spec/models/account_integration_spec.rb +7 -1
  228. data/spec/models/account_token_spec.rb +7 -1
  229. data/spec/models/account_type_enum_spec.rb +28 -0
  230. data/spec/models/available_actions_spec.rb +13 -1
  231. data/spec/models/{employment_request_spec.rb → bank_info_spec.rb} +15 -15
  232. data/spec/models/benefit_plan_type_enum_spec.rb +1 -1
  233. data/spec/models/benefit_spec.rb +7 -1
  234. data/spec/models/categories_enum_spec.rb +28 -0
  235. data/spec/models/category_enum_spec.rb +28 -0
  236. data/spec/models/company_spec.rb +7 -1
  237. data/spec/models/country_enum_spec.rb +1 -1
  238. data/spec/models/data_passthrough_request_spec.rb +13 -1
  239. data/spec/models/debug_mode_log_spec.rb +46 -0
  240. data/spec/models/debug_model_log_summary_spec.rb +46 -0
  241. data/spec/models/deduction_spec.rb +7 -1
  242. data/spec/models/earning_spec.rb +7 -1
  243. data/spec/models/earning_type_enum_spec.rb +28 -0
  244. data/spec/models/{remote_key_for_regeneration_spec.rb → employee_endpoint_request_spec.rb} +8 -8
  245. data/spec/models/employee_payroll_run_spec.rb +7 -1
  246. data/spec/models/employee_request_spec.rb +30 -0
  247. data/spec/models/{end_user_details_spec.rb → employee_response_spec.rb} +11 -15
  248. data/spec/models/employee_spec.rb +37 -1
  249. data/spec/models/employment_spec.rb +13 -1
  250. data/spec/models/employment_status_enum_spec.rb +1 -1
  251. data/spec/models/employment_type_enum_spec.rb +1 -1
  252. data/spec/models/encoding_enum_spec.rb +28 -0
  253. data/spec/models/end_user_details_request_spec.rb +13 -5
  254. data/spec/models/error_validation_problem_spec.rb +52 -0
  255. data/spec/models/ethnicity_enum_spec.rb +1 -1
  256. data/spec/models/flsa_status_enum_spec.rb +1 -1
  257. data/spec/models/gender_enum_spec.rb +1 -1
  258. data/spec/models/{benefit_request_spec.rb → group_spec.rb} +12 -12
  259. data/spec/models/group_type_enum_spec.rb +28 -0
  260. data/spec/models/ignore_common_model_request_spec.rb +40 -0
  261. data/spec/models/ignore_common_model_spec.rb +40 -0
  262. data/spec/models/link_token_spec.rb +1 -1
  263. data/spec/models/location_spec.rb +19 -1
  264. data/spec/models/location_type_enum_spec.rb +28 -0
  265. data/spec/models/marital_status_enum_spec.rb +1 -1
  266. data/spec/models/method_enum_spec.rb +1 -1
  267. data/spec/models/model_operation_spec.rb +13 -1
  268. data/spec/models/multipart_form_field_request_spec.rb +58 -0
  269. data/spec/models/paginated_account_details_and_actions_list_spec.rb +46 -0
  270. data/spec/models/paginated_bank_info_list_spec.rb +46 -0
  271. data/spec/models/paginated_benefit_list_spec.rb +1 -1
  272. data/spec/models/paginated_company_list_spec.rb +1 -1
  273. data/spec/models/paginated_deduction_list_spec.rb +46 -0
  274. data/spec/models/paginated_employee_list_spec.rb +1 -1
  275. data/spec/models/paginated_employee_payroll_run_list_spec.rb +1 -1
  276. data/spec/models/paginated_employment_list_spec.rb +1 -1
  277. data/spec/models/paginated_group_list_spec.rb +46 -0
  278. data/spec/models/paginated_location_list_spec.rb +1 -1
  279. data/spec/models/paginated_pay_group_list_spec.rb +46 -0
  280. data/spec/models/paginated_payroll_run_list_spec.rb +1 -1
  281. data/spec/models/paginated_team_list_spec.rb +1 -1
  282. data/spec/models/paginated_time_off_list_spec.rb +1 -1
  283. data/spec/models/pay_currency_enum_spec.rb +1 -1
  284. data/spec/models/pay_frequency_enum_spec.rb +1 -1
  285. data/spec/models/{data_passthrough_spec.rb → pay_group_spec.rb} +11 -11
  286. data/spec/models/pay_period_enum_spec.rb +1 -1
  287. data/spec/models/payroll_run_spec.rb +7 -1
  288. data/spec/models/policy_type_enum_spec.rb +28 -0
  289. data/spec/models/{state_enum_spec.rb → reason_enum_spec.rb} +7 -7
  290. data/spec/models/remote_data_spec.rb +1 -1
  291. data/spec/models/remote_key_for_regeneration_request_spec.rb +1 -1
  292. data/spec/models/remote_key_spec.rb +1 -1
  293. data/spec/models/remote_response_spec.rb +1 -1
  294. data/spec/models/request_format_enum_spec.rb +28 -0
  295. data/spec/models/request_type_enum_spec.rb +1 -1
  296. data/spec/models/run_state_enum_spec.rb +1 -1
  297. data/spec/models/run_type_enum_spec.rb +1 -1
  298. data/spec/models/tax_spec.rb +7 -1
  299. data/spec/models/team_spec.rb +13 -1
  300. data/spec/models/time_off_balance_spec.rb +6 -0
  301. data/spec/models/time_off_endpoint_request_spec.rb +34 -0
  302. data/spec/models/time_off_request_spec.rb +88 -0
  303. data/spec/models/time_off_response_spec.rb +52 -0
  304. data/spec/models/time_off_spec.rb +19 -1
  305. data/spec/models/time_off_status_enum_spec.rb +1 -1
  306. data/spec/models/type_enum_spec.rb +1 -1
  307. data/spec/models/units_enum_spec.rb +1 -1
  308. data/spec/models/validation_problem_source_spec.rb +34 -0
  309. data/spec/models/warning_validation_problem_spec.rb +52 -0
  310. data/test_ruby.rb +11 -14
  311. metadata +175 -29
  312. data/docs/BenefitRequest.md +0 -28
  313. data/docs/DataPassthrough.md +0 -24
  314. data/docs/EmploymentRequest.md +0 -34
  315. data/docs/EndUserDetails.md +0 -24
  316. data/docs/RemoteKeyForRegeneration.md +0 -18
  317. data/merge_hris_client-1.0.0.gem +0 -0
  318. data/merge_hris_client-1.0.1.gem +0 -0
@@ -19,75 +19,6 @@ module MergeHRISClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- # Creates an `Employment` object with the given values.
23
- # @param x_account_token [String] Token identifying the end user.
24
- # @param [Hash] opts the optional parameters
25
- # @option opts [Boolean] :run_async Whether or not third-party updates should be run asynchronously.
26
- # @option opts [EmploymentRequest] :employment_request
27
- # @return [Employment]
28
- def employments_create(x_account_token, opts = {})
29
- data, _status_code, _headers = employments_create_with_http_info(x_account_token, opts)
30
- data
31
- end
32
-
33
- # Creates an `Employment` object with the given values.
34
- # @param x_account_token [String] Token identifying the end user.
35
- # @param [Hash] opts the optional parameters
36
- # @option opts [Boolean] :run_async Whether or not third-party updates should be run asynchronously.
37
- # @option opts [EmploymentRequest] :employment_request
38
- # @return [Array<(Employment, Integer, Hash)>] Employment data, response status code and response headers
39
- def employments_create_with_http_info(x_account_token, opts = {})
40
- if @api_client.config.debugging
41
- @api_client.config.logger.debug 'Calling API: EmploymentsApi.employments_create ...'
42
- end
43
- # verify the required parameter 'x_account_token' is set
44
- if @api_client.config.client_side_validation && x_account_token.nil?
45
- fail ArgumentError, "Missing the required parameter 'x_account_token' when calling EmploymentsApi.employments_create"
46
- end
47
- # resource path
48
- local_var_path = '/employments'
49
-
50
- # query parameters
51
- query_params = opts[:query_params] || {}
52
- query_params[:'run_async'] = opts[:'run_async'] if !opts[:'run_async'].nil?
53
-
54
- # header parameters
55
- header_params = opts[:header_params] || {}
56
- # HTTP header 'Accept' (if needed)
57
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
58
- # HTTP header 'Content-Type'
59
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
60
- header_params[:'X-Account-Token'] = x_account_token
61
-
62
- # form parameters
63
- form_params = opts[:form_params] || {}
64
-
65
- # http body (model)
66
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'employment_request'])
67
-
68
- # return_type
69
- return_type = opts[:debug_return_type] || 'Employment'
70
-
71
- # auth_names
72
- auth_names = opts[:debug_auth_names] || ['tokenAuth']
73
-
74
- new_options = opts.merge(
75
- :operation => :"EmploymentsApi.employments_create",
76
- :header_params => header_params,
77
- :query_params => query_params,
78
- :form_params => form_params,
79
- :body => post_body,
80
- :auth_names => auth_names,
81
- :return_type => return_type
82
- )
83
-
84
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
85
- if @api_client.config.debugging
86
- @api_client.config.logger.debug "API called: EmploymentsApi#employments_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
87
- end
88
- return data, status_code, headers
89
- end
90
-
91
22
  # Returns a list of `Employment` objects.
92
23
  # @param x_account_token [String] Token identifying the end user.
93
24
  # @param [Hash] opts the optional parameters
@@ -95,9 +26,12 @@ module MergeHRISClient
95
26
  # @option opts [Time] :created_before If provided, will only return objects created before this datetime.
96
27
  # @option opts [String] :cursor The pagination cursor value.
97
28
  # @option opts [String] :employee_id If provided, will only return employments for this employee.
29
+ # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
30
+ # @option opts [Boolean] :include_deleted_data Whether to include data that was deleted in the third-party service.
98
31
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
99
32
  # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
100
33
  # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
34
+ # @option opts [String] :order_by Overrides the default ordering for this endpoint.
101
35
  # @option opts [Integer] :page_size Number of results to return per page.
102
36
  # @option opts [String] :remote_id The API provider&#39;s ID for the given object.
103
37
  # @return [PaginatedEmploymentList]
@@ -113,9 +47,12 @@ module MergeHRISClient
113
47
  # @option opts [Time] :created_before If provided, will only return objects created before this datetime.
114
48
  # @option opts [String] :cursor The pagination cursor value.
115
49
  # @option opts [String] :employee_id If provided, will only return employments for this employee.
50
+ # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
51
+ # @option opts [Boolean] :include_deleted_data Whether to include data that was deleted in the third-party service.
116
52
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
117
53
  # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
118
54
  # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
55
+ # @option opts [String] :order_by Overrides the default ordering for this endpoint.
119
56
  # @option opts [Integer] :page_size Number of results to return per page.
120
57
  # @option opts [String] :remote_id The API provider&#39;s ID for the given object.
121
58
  # @return [Array<(PaginatedEmploymentList, Integer, Hash)>] PaginatedEmploymentList data, response status code and response headers
@@ -127,6 +64,14 @@ module MergeHRISClient
127
64
  if @api_client.config.client_side_validation && x_account_token.nil?
128
65
  fail ArgumentError, "Missing the required parameter 'x_account_token' when calling EmploymentsApi.employments_list"
129
66
  end
67
+ allowable_values = ["employee"]
68
+ if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
69
+ fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
70
+ end
71
+ allowable_values = ["-effective_date", "effective_date"]
72
+ if @api_client.config.client_side_validation && opts[:'order_by'] && !allowable_values.include?(opts[:'order_by'])
73
+ fail ArgumentError, "invalid value for \"order_by\", must be one of #{allowable_values}"
74
+ end
130
75
  # resource path
131
76
  local_var_path = '/employments'
132
77
 
@@ -136,9 +81,12 @@ module MergeHRISClient
136
81
  query_params[:'created_before'] = opts[:'created_before'] if !opts[:'created_before'].nil?
137
82
  query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
138
83
  query_params[:'employee_id'] = opts[:'employee_id'] if !opts[:'employee_id'].nil?
84
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
85
+ query_params[:'include_deleted_data'] = opts[:'include_deleted_data'] if !opts[:'include_deleted_data'].nil?
139
86
  query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
140
87
  query_params[:'modified_after'] = opts[:'modified_after'] if !opts[:'modified_after'].nil?
141
88
  query_params[:'modified_before'] = opts[:'modified_before'] if !opts[:'modified_before'].nil?
89
+ query_params[:'order_by'] = opts[:'order_by'] if !opts[:'order_by'].nil?
142
90
  query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
143
91
  query_params[:'remote_id'] = opts[:'remote_id'] if !opts[:'remote_id'].nil?
144
92
 
@@ -181,6 +129,7 @@ module MergeHRISClient
181
129
  # @param x_account_token [String] Token identifying the end user.
182
130
  # @param id [String]
183
131
  # @param [Hash] opts the optional parameters
132
+ # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
184
133
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
185
134
  # @return [Employment]
186
135
  def employments_retrieve(x_account_token, id, opts = {})
@@ -192,6 +141,7 @@ module MergeHRISClient
192
141
  # @param x_account_token [String] Token identifying the end user.
193
142
  # @param id [String]
194
143
  # @param [Hash] opts the optional parameters
144
+ # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
195
145
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
196
146
  # @return [Array<(Employment, Integer, Hash)>] Employment data, response status code and response headers
197
147
  def employments_retrieve_with_http_info(x_account_token, id, opts = {})
@@ -206,11 +156,16 @@ module MergeHRISClient
206
156
  if @api_client.config.client_side_validation && id.nil?
207
157
  fail ArgumentError, "Missing the required parameter 'id' when calling EmploymentsApi.employments_retrieve"
208
158
  end
159
+ allowable_values = ["employee"]
160
+ if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
161
+ fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
162
+ end
209
163
  # resource path
210
164
  local_var_path = '/employments/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
211
165
 
212
166
  # query parameters
213
167
  query_params = opts[:query_params] || {}
168
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
214
169
  query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
215
170
 
216
171
  # header parameters
@@ -0,0 +1,84 @@
1
+ =begin
2
+ #Merge HRIS API
3
+
4
+ #The unified API for building rich integrations with multiple HR Information System platforms.
5
+
6
+ The version of the OpenAPI document: 1.0
7
+ Contact: hello@merge.dev
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.1.1
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module MergeHRISClient
16
+ class ForceResyncApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Force re-sync of all models. This is only available for organizations on Merge's Grow and Expand plans.
23
+ # @param x_account_token [String] Token identifying the end user.
24
+ # @param [Hash] opts the optional parameters
25
+ # @return [SyncStatus]
26
+ def sync_status_resync_create(x_account_token, opts = {})
27
+ data, _status_code, _headers = sync_status_resync_create_with_http_info(x_account_token, opts)
28
+ data
29
+ end
30
+
31
+ # Force re-sync of all models. This is only available for organizations on Merge&#39;s Grow and Expand plans.
32
+ # @param x_account_token [String] Token identifying the end user.
33
+ # @param [Hash] opts the optional parameters
34
+ # @return [Array<(SyncStatus, Integer, Hash)>] SyncStatus data, response status code and response headers
35
+ def sync_status_resync_create_with_http_info(x_account_token, opts = {})
36
+ if @api_client.config.debugging
37
+ @api_client.config.logger.debug 'Calling API: ForceResyncApi.sync_status_resync_create ...'
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 ForceResyncApi.sync_status_resync_create"
42
+ end
43
+ # resource path
44
+ local_var_path = '/sync-status/resync'
45
+
46
+ # query parameters
47
+ query_params = opts[:query_params] || {}
48
+
49
+ # header parameters
50
+ header_params = opts[:header_params] || {}
51
+ # HTTP header 'Accept' (if needed)
52
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
53
+ header_params[:'X-Account-Token'] = x_account_token
54
+
55
+ # form parameters
56
+ form_params = opts[:form_params] || {}
57
+
58
+ # http body (model)
59
+ post_body = opts[:debug_body]
60
+
61
+ # return_type
62
+ return_type = opts[:debug_return_type] || 'SyncStatus'
63
+
64
+ # auth_names
65
+ auth_names = opts[:debug_auth_names] || ['tokenAuth']
66
+
67
+ new_options = opts.merge(
68
+ :operation => :"ForceResyncApi.sync_status_resync_create",
69
+ :header_params => header_params,
70
+ :query_params => query_params,
71
+ :form_params => form_params,
72
+ :body => post_body,
73
+ :auth_names => auth_names,
74
+ :return_type => return_type
75
+ )
76
+
77
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
78
+ if @api_client.config.debugging
79
+ @api_client.config.logger.debug "API called: ForceResyncApi#sync_status_resync_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
80
+ end
81
+ return data, status_code, headers
82
+ end
83
+ end
84
+ end
@@ -0,0 +1,182 @@
1
+ =begin
2
+ #Merge HRIS API
3
+
4
+ #The unified API for building rich integrations with multiple HR Information System platforms.
5
+
6
+ The version of the OpenAPI document: 1.0
7
+ Contact: hello@merge.dev
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.1.1
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module MergeHRISClient
16
+ class GroupsApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Returns a list of `Group` objects.
23
+ # @param x_account_token [String] Token identifying the end user.
24
+ # @param [Hash] opts the optional parameters
25
+ # @option opts [Time] :created_after If provided, will only return objects created after this datetime.
26
+ # @option opts [Time] :created_before If provided, will only return objects created before this datetime.
27
+ # @option opts [String] :cursor The pagination cursor value.
28
+ # @option opts [Boolean] :include_deleted_data Whether to include data that was deleted in the third-party service.
29
+ # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
30
+ # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
31
+ # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
32
+ # @option opts [Integer] :page_size Number of results to return per page.
33
+ # @option opts [String] :remote_id The API provider&#39;s ID for the given object.
34
+ # @return [PaginatedGroupList]
35
+ def groups_list(x_account_token, opts = {})
36
+ data, _status_code, _headers = groups_list_with_http_info(x_account_token, opts)
37
+ data
38
+ end
39
+
40
+ # Returns a list of &#x60;Group&#x60; objects.
41
+ # @param x_account_token [String] Token identifying the end user.
42
+ # @param [Hash] opts the optional parameters
43
+ # @option opts [Time] :created_after If provided, will only return objects created after this datetime.
44
+ # @option opts [Time] :created_before If provided, will only return objects created before this datetime.
45
+ # @option opts [String] :cursor The pagination cursor value.
46
+ # @option opts [Boolean] :include_deleted_data Whether to include data that was deleted in the third-party service.
47
+ # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
48
+ # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
49
+ # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
50
+ # @option opts [Integer] :page_size Number of results to return per page.
51
+ # @option opts [String] :remote_id The API provider&#39;s ID for the given object.
52
+ # @return [Array<(PaginatedGroupList, Integer, Hash)>] PaginatedGroupList data, response status code and response headers
53
+ def groups_list_with_http_info(x_account_token, opts = {})
54
+ if @api_client.config.debugging
55
+ @api_client.config.logger.debug 'Calling API: GroupsApi.groups_list ...'
56
+ end
57
+ # verify the required parameter 'x_account_token' is set
58
+ if @api_client.config.client_side_validation && x_account_token.nil?
59
+ fail ArgumentError, "Missing the required parameter 'x_account_token' when calling GroupsApi.groups_list"
60
+ end
61
+ # resource path
62
+ local_var_path = '/groups'
63
+
64
+ # query parameters
65
+ query_params = opts[:query_params] || {}
66
+ query_params[:'created_after'] = opts[:'created_after'] if !opts[:'created_after'].nil?
67
+ query_params[:'created_before'] = opts[:'created_before'] if !opts[:'created_before'].nil?
68
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
69
+ query_params[:'include_deleted_data'] = opts[:'include_deleted_data'] if !opts[:'include_deleted_data'].nil?
70
+ query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
71
+ query_params[:'modified_after'] = opts[:'modified_after'] if !opts[:'modified_after'].nil?
72
+ query_params[:'modified_before'] = opts[:'modified_before'] if !opts[:'modified_before'].nil?
73
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
74
+ query_params[:'remote_id'] = opts[:'remote_id'] if !opts[:'remote_id'].nil?
75
+
76
+ # header parameters
77
+ header_params = opts[:header_params] || {}
78
+ # HTTP header 'Accept' (if needed)
79
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
80
+ header_params[:'X-Account-Token'] = x_account_token
81
+
82
+ # form parameters
83
+ form_params = opts[:form_params] || {}
84
+
85
+ # http body (model)
86
+ post_body = opts[:debug_body]
87
+
88
+ # return_type
89
+ return_type = opts[:debug_return_type] || 'PaginatedGroupList'
90
+
91
+ # auth_names
92
+ auth_names = opts[:debug_auth_names] || ['tokenAuth']
93
+
94
+ new_options = opts.merge(
95
+ :operation => :"GroupsApi.groups_list",
96
+ :header_params => header_params,
97
+ :query_params => query_params,
98
+ :form_params => form_params,
99
+ :body => post_body,
100
+ :auth_names => auth_names,
101
+ :return_type => return_type
102
+ )
103
+
104
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
105
+ if @api_client.config.debugging
106
+ @api_client.config.logger.debug "API called: GroupsApi#groups_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
107
+ end
108
+ return data, status_code, headers
109
+ end
110
+
111
+ # Returns a `Group` object with the given `id`.
112
+ # @param x_account_token [String] Token identifying the end user.
113
+ # @param id [String]
114
+ # @param [Hash] opts the optional parameters
115
+ # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
116
+ # @return [Group]
117
+ def groups_retrieve(x_account_token, id, opts = {})
118
+ data, _status_code, _headers = groups_retrieve_with_http_info(x_account_token, id, opts)
119
+ data
120
+ end
121
+
122
+ # Returns a &#x60;Group&#x60; object with the given &#x60;id&#x60;.
123
+ # @param x_account_token [String] Token identifying the end user.
124
+ # @param id [String]
125
+ # @param [Hash] opts the optional parameters
126
+ # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
127
+ # @return [Array<(Group, Integer, Hash)>] Group data, response status code and response headers
128
+ def groups_retrieve_with_http_info(x_account_token, id, opts = {})
129
+ if @api_client.config.debugging
130
+ @api_client.config.logger.debug 'Calling API: GroupsApi.groups_retrieve ...'
131
+ end
132
+ # verify the required parameter 'x_account_token' is set
133
+ if @api_client.config.client_side_validation && x_account_token.nil?
134
+ fail ArgumentError, "Missing the required parameter 'x_account_token' when calling GroupsApi.groups_retrieve"
135
+ end
136
+ # verify the required parameter 'id' is set
137
+ if @api_client.config.client_side_validation && id.nil?
138
+ fail ArgumentError, "Missing the required parameter 'id' when calling GroupsApi.groups_retrieve"
139
+ end
140
+ # resource path
141
+ local_var_path = '/groups/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
142
+
143
+ # query parameters
144
+ query_params = opts[:query_params] || {}
145
+ query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
146
+
147
+ # header parameters
148
+ header_params = opts[:header_params] || {}
149
+ # HTTP header 'Accept' (if needed)
150
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
151
+ header_params[:'X-Account-Token'] = x_account_token
152
+
153
+ # form parameters
154
+ form_params = opts[:form_params] || {}
155
+
156
+ # http body (model)
157
+ post_body = opts[:debug_body]
158
+
159
+ # return_type
160
+ return_type = opts[:debug_return_type] || 'Group'
161
+
162
+ # auth_names
163
+ auth_names = opts[:debug_auth_names] || ['tokenAuth']
164
+
165
+ new_options = opts.merge(
166
+ :operation => :"GroupsApi.groups_retrieve",
167
+ :header_params => header_params,
168
+ :query_params => query_params,
169
+ :form_params => form_params,
170
+ :body => post_body,
171
+ :auth_names => auth_names,
172
+ :return_type => return_type
173
+ )
174
+
175
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
176
+ if @api_client.config.debugging
177
+ @api_client.config.logger.debug "API called: GroupsApi#groups_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
178
+ end
179
+ return data, status_code, headers
180
+ end
181
+ end
182
+ end
@@ -21,15 +21,15 @@ module MergeHRISClient
21
21
  end
22
22
  # Gets issues.
23
23
  # @param [Hash] opts the optional parameters
24
- # @option opts [String] :account_token account_token
25
- # @option opts [Integer] :cursor The pagination cursor value.
24
+ # @option opts [String] :account_token
25
+ # @option opts [String] :cursor The pagination cursor value.
26
26
  # @option opts [String] :end_date If included, will only include issues whose most recent action occurred before this time
27
- # @option opts [String] :end_user_organization_name end_user_organization_name
27
+ # @option opts [String] :end_user_organization_name
28
28
  # @option opts [String] :include_muted If True, will include muted issues
29
- # @option opts [String] :integration_name integration_name
29
+ # @option opts [String] :integration_name
30
30
  # @option opts [Integer] :page_size Number of results to return per page.
31
31
  # @option opts [String] :start_date If included, will only include issues whose most recent action occurred after this time
32
- # @option opts [String] :status status
32
+ # @option opts [String] :status
33
33
  # @return [PaginatedIssueList]
34
34
  def issues_list(opts = {})
35
35
  data, _status_code, _headers = issues_list_with_http_info(opts)
@@ -38,15 +38,15 @@ module MergeHRISClient
38
38
 
39
39
  # Gets issues.
40
40
  # @param [Hash] opts the optional parameters
41
- # @option opts [String] :account_token account_token
42
- # @option opts [Integer] :cursor The pagination cursor value.
41
+ # @option opts [String] :account_token
42
+ # @option opts [String] :cursor The pagination cursor value.
43
43
  # @option opts [String] :end_date If included, will only include issues whose most recent action occurred before this time
44
- # @option opts [String] :end_user_organization_name end_user_organization_name
44
+ # @option opts [String] :end_user_organization_name
45
45
  # @option opts [String] :include_muted If True, will include muted issues
46
- # @option opts [String] :integration_name integration_name
46
+ # @option opts [String] :integration_name
47
47
  # @option opts [Integer] :page_size Number of results to return per page.
48
48
  # @option opts [String] :start_date If included, will only include issues whose most recent action occurred after this time
49
- # @option opts [String] :status status
49
+ # @option opts [String] :status
50
50
  # @return [Array<(PaginatedIssueList, Integer, Hash)>] PaginatedIssueList data, response status code and response headers
51
51
  def issues_list_with_http_info(opts = {})
52
52
  if @api_client.config.debugging
@@ -0,0 +1,117 @@
1
+ =begin
2
+ #Merge HRIS API
3
+
4
+ #The unified API for building rich integrations with multiple HR Information System platforms.
5
+
6
+ The version of the OpenAPI document: 1.0
7
+ Contact: hello@merge.dev
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.1.1
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module MergeHRISClient
16
+ class LinkedAccountsApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # List linked accounts for your organization.
23
+ # @param [Hash] opts the optional parameters
24
+ # @option opts [String] :category
25
+ # @option opts [String] :cursor The pagination cursor value.
26
+ # @option opts [String] :end_user_email_address
27
+ # @option opts [String] :end_user_organization_name
28
+ # @option opts [String] :end_user_origin_id
29
+ # @option opts [String] :end_user_origin_ids Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once
30
+ # @option opts [String] :id
31
+ # @option opts [String] :ids Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once
32
+ # @option opts [String] :integration_name
33
+ # @option opts [String] :is_test_account If included, will only include test linked accounts. If not included, will only include non-test linked accounts
34
+ # @option opts [Integer] :page_size Number of results to return per page.
35
+ # @option opts [String] :status Filter by status. Options: &#x60;COMPLETE&#x60;, &#x60;INCOMPLETE&#x60;, &#x60;RELINK_NEEDED&#x60;
36
+ # @return [PaginatedAccountDetailsAndActionsList]
37
+ def linked_accounts_list(opts = {})
38
+ data, _status_code, _headers = linked_accounts_list_with_http_info(opts)
39
+ data
40
+ end
41
+
42
+ # List linked accounts for your organization.
43
+ # @param [Hash] opts the optional parameters
44
+ # @option opts [String] :category
45
+ # @option opts [String] :cursor The pagination cursor value.
46
+ # @option opts [String] :end_user_email_address
47
+ # @option opts [String] :end_user_organization_name
48
+ # @option opts [String] :end_user_origin_id
49
+ # @option opts [String] :end_user_origin_ids Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once
50
+ # @option opts [String] :id
51
+ # @option opts [String] :ids Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once
52
+ # @option opts [String] :integration_name
53
+ # @option opts [String] :is_test_account If included, will only include test linked accounts. If not included, will only include non-test linked accounts
54
+ # @option opts [Integer] :page_size Number of results to return per page.
55
+ # @option opts [String] :status Filter by status. Options: &#x60;COMPLETE&#x60;, &#x60;INCOMPLETE&#x60;, &#x60;RELINK_NEEDED&#x60;
56
+ # @return [Array<(PaginatedAccountDetailsAndActionsList, Integer, Hash)>] PaginatedAccountDetailsAndActionsList data, response status code and response headers
57
+ def linked_accounts_list_with_http_info(opts = {})
58
+ if @api_client.config.debugging
59
+ @api_client.config.logger.debug 'Calling API: LinkedAccountsApi.linked_accounts_list ...'
60
+ end
61
+ allowable_values = ["accounting", "ats", "hris"]
62
+ if @api_client.config.client_side_validation && opts[:'category'] && !allowable_values.include?(opts[:'category'])
63
+ fail ArgumentError, "invalid value for \"category\", must be one of #{allowable_values}"
64
+ end
65
+ # resource path
66
+ local_var_path = '/linked-accounts'
67
+
68
+ # query parameters
69
+ query_params = opts[:query_params] || {}
70
+ query_params[:'category'] = opts[:'category'] if !opts[:'category'].nil?
71
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
72
+ query_params[:'end_user_email_address'] = opts[:'end_user_email_address'] if !opts[:'end_user_email_address'].nil?
73
+ query_params[:'end_user_organization_name'] = opts[:'end_user_organization_name'] if !opts[:'end_user_organization_name'].nil?
74
+ query_params[:'end_user_origin_id'] = opts[:'end_user_origin_id'] if !opts[:'end_user_origin_id'].nil?
75
+ query_params[:'end_user_origin_ids'] = opts[:'end_user_origin_ids'] if !opts[:'end_user_origin_ids'].nil?
76
+ query_params[:'id'] = opts[:'id'] if !opts[:'id'].nil?
77
+ query_params[:'ids'] = opts[:'ids'] if !opts[:'ids'].nil?
78
+ query_params[:'integration_name'] = opts[:'integration_name'] if !opts[:'integration_name'].nil?
79
+ query_params[:'is_test_account'] = opts[:'is_test_account'] if !opts[:'is_test_account'].nil?
80
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
81
+ query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
82
+
83
+ # header parameters
84
+ header_params = opts[:header_params] || {}
85
+ # HTTP header 'Accept' (if needed)
86
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
87
+
88
+ # form parameters
89
+ form_params = opts[:form_params] || {}
90
+
91
+ # http body (model)
92
+ post_body = opts[:debug_body]
93
+
94
+ # return_type
95
+ return_type = opts[:debug_return_type] || 'PaginatedAccountDetailsAndActionsList'
96
+
97
+ # auth_names
98
+ auth_names = opts[:debug_auth_names] || ['tokenAuth']
99
+
100
+ new_options = opts.merge(
101
+ :operation => :"LinkedAccountsApi.linked_accounts_list",
102
+ :header_params => header_params,
103
+ :query_params => query_params,
104
+ :form_params => form_params,
105
+ :body => post_body,
106
+ :auth_names => auth_names,
107
+ :return_type => return_type
108
+ )
109
+
110
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
111
+ if @api_client.config.debugging
112
+ @api_client.config.logger.debug "API called: LinkedAccountsApi#linked_accounts_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
113
+ end
114
+ return data, status_code, headers
115
+ end
116
+ end
117
+ end
@@ -25,6 +25,7 @@ module MergeHRISClient
25
25
  # @option opts [Time] :created_after If provided, will only return objects created after this datetime.
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
+ # @option opts [Boolean] :include_deleted_data Whether to include data that was deleted in the third-party service.
28
29
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
29
30
  # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
30
31
  # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
@@ -42,6 +43,7 @@ module MergeHRISClient
42
43
  # @option opts [Time] :created_after If provided, will only return objects created after this datetime.
43
44
  # @option opts [Time] :created_before If provided, will only return objects created before this datetime.
44
45
  # @option opts [String] :cursor The pagination cursor value.
46
+ # @option opts [Boolean] :include_deleted_data Whether to include data that was deleted in the third-party service.
45
47
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
46
48
  # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
47
49
  # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
@@ -64,6 +66,7 @@ module MergeHRISClient
64
66
  query_params[:'created_after'] = opts[:'created_after'] if !opts[:'created_after'].nil?
65
67
  query_params[:'created_before'] = opts[:'created_before'] if !opts[:'created_before'].nil?
66
68
  query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
69
+ query_params[:'include_deleted_data'] = opts[:'include_deleted_data'] if !opts[:'include_deleted_data'].nil?
67
70
  query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
68
71
  query_params[:'modified_after'] = opts[:'modified_after'] if !opts[:'modified_after'].nil?
69
72
  query_params[:'modified_before'] = opts[:'modified_before'] if !opts[:'modified_before'].nil?