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
@@ -0,0 +1,24 @@
1
+ # MergeHRISClient::TimeOffResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **model** | [**TimeOff**](TimeOff.md) | | |
8
+ | **warnings** | [**Array<WarningValidationProblem>**](WarningValidationProblem.md) | | |
9
+ | **errors** | [**Array<ErrorValidationProblem>**](ErrorValidationProblem.md) | | |
10
+ | **logs** | [**Array<DebugModeLog>**](DebugModeLog.md) | | [optional] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'merge_hris_client'
16
+
17
+ instance = MergeHRISClient::TimeOffResponse.new(
18
+ model: null,
19
+ warnings: null,
20
+ errors: null,
21
+ logs: null
22
+ )
23
+ ```
24
+
@@ -0,0 +1,18 @@
1
+ # MergeHRISClient::ValidationProblemSource
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **pointer** | **String** | | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'merge_hris_client'
13
+
14
+ instance = MergeHRISClient::ValidationProblemSource.new(
15
+ pointer: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,24 @@
1
+ # MergeHRISClient::WarningValidationProblem
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **source** | [**ValidationProblemSource**](ValidationProblemSource.md) | | [optional] |
8
+ | **title** | **String** | | |
9
+ | **detail** | **String** | | |
10
+ | **problem_type** | **String** | | |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'merge_hris_client'
16
+
17
+ instance = MergeHRISClient::WarningValidationProblem.new(
18
+ source: null,
19
+ title: Unrecognized Field,
20
+ detail: An unrecognized field, age, was passed in with request data.,
21
+ problem_type: UNRECOGNIZED_FIELD
22
+ )
23
+ ```
24
+
@@ -0,0 +1,77 @@
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 AccountDetailsApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Get details for a linked account.
23
+ # @param [Hash] opts the optional parameters
24
+ # @return [AccountDetails]
25
+ def account_details_retrieve(opts = {})
26
+ data, _status_code, _headers = account_details_retrieve_with_http_info(opts)
27
+ data
28
+ end
29
+
30
+ # Get details for a linked account.
31
+ # @param [Hash] opts the optional parameters
32
+ # @return [Array<(AccountDetails, Integer, Hash)>] AccountDetails data, response status code and response headers
33
+ def account_details_retrieve_with_http_info(opts = {})
34
+ if @api_client.config.debugging
35
+ @api_client.config.logger.debug 'Calling API: AccountDetailsApi.account_details_retrieve ...'
36
+ end
37
+ # resource path
38
+ local_var_path = '/account-details'
39
+
40
+ # query parameters
41
+ query_params = opts[:query_params] || {}
42
+
43
+ # header parameters
44
+ header_params = opts[:header_params] || {}
45
+ # HTTP header 'Accept' (if needed)
46
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
47
+
48
+ # form parameters
49
+ form_params = opts[:form_params] || {}
50
+
51
+ # http body (model)
52
+ post_body = opts[:debug_body]
53
+
54
+ # return_type
55
+ return_type = opts[:debug_return_type] || 'AccountDetails'
56
+
57
+ # auth_names
58
+ auth_names = opts[:debug_auth_names] || ['tokenAuth']
59
+
60
+ new_options = opts.merge(
61
+ :operation => :"AccountDetailsApi.account_details_retrieve",
62
+ :header_params => header_params,
63
+ :query_params => query_params,
64
+ :form_params => form_params,
65
+ :body => post_body,
66
+ :auth_names => auth_names,
67
+ :return_type => return_type
68
+ )
69
+
70
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
71
+ if @api_client.config.debugging
72
+ @api_client.config.logger.debug "API called: AccountDetailsApi#account_details_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
73
+ end
74
+ return data, status_code, headers
75
+ end
76
+ end
77
+ end
@@ -0,0 +1,217 @@
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 BankInfoApi
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 `BankInfo` objects.
23
+ # @param x_account_token [String] Token identifying the end user.
24
+ # @param [Hash] opts the optional parameters
25
+ # @option opts [String] :account_type If provided, will only return BankInfo&#39;s with this account type. Options: (&#39;SAVINGS&#39;, &#39;CHECKING&#39;)
26
+ # @option opts [String] :bank_name If provided, will only return BankInfo&#39;s with this bank name.
27
+ # @option opts [Time] :created_after If provided, will only return objects created after this datetime.
28
+ # @option opts [Time] :created_before If provided, will only return objects created before this datetime.
29
+ # @option opts [String] :cursor The pagination cursor value.
30
+ # @option opts [String] :employee_id If provided, will only return bank accounts for this employee.
31
+ # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
32
+ # @option opts [Boolean] :include_deleted_data Whether to include data that was deleted in the third-party service.
33
+ # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
34
+ # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
35
+ # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
36
+ # @option opts [String] :order_by Overrides the default ordering for this endpoint.
37
+ # @option opts [Integer] :page_size Number of results to return per page.
38
+ # @option opts [String] :remote_id The API provider&#39;s ID for the given object.
39
+ # @return [PaginatedBankInfoList]
40
+ def bank_info_list(x_account_token, opts = {})
41
+ data, _status_code, _headers = bank_info_list_with_http_info(x_account_token, opts)
42
+ data
43
+ end
44
+
45
+ # Returns a list of &#x60;BankInfo&#x60; objects.
46
+ # @param x_account_token [String] Token identifying the end user.
47
+ # @param [Hash] opts the optional parameters
48
+ # @option opts [String] :account_type If provided, will only return BankInfo&#39;s with this account type. Options: (&#39;SAVINGS&#39;, &#39;CHECKING&#39;)
49
+ # @option opts [String] :bank_name If provided, will only return BankInfo&#39;s with this bank name.
50
+ # @option opts [Time] :created_after If provided, will only return objects created after this datetime.
51
+ # @option opts [Time] :created_before If provided, will only return objects created before this datetime.
52
+ # @option opts [String] :cursor The pagination cursor value.
53
+ # @option opts [String] :employee_id If provided, will only return bank accounts for this employee.
54
+ # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
55
+ # @option opts [Boolean] :include_deleted_data Whether to include data that was deleted in the third-party service.
56
+ # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
57
+ # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
58
+ # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
59
+ # @option opts [String] :order_by Overrides the default ordering for this endpoint.
60
+ # @option opts [Integer] :page_size Number of results to return per page.
61
+ # @option opts [String] :remote_id The API provider&#39;s ID for the given object.
62
+ # @return [Array<(PaginatedBankInfoList, Integer, Hash)>] PaginatedBankInfoList data, response status code and response headers
63
+ def bank_info_list_with_http_info(x_account_token, opts = {})
64
+ if @api_client.config.debugging
65
+ @api_client.config.logger.debug 'Calling API: BankInfoApi.bank_info_list ...'
66
+ end
67
+ # verify the required parameter 'x_account_token' is set
68
+ if @api_client.config.client_side_validation && x_account_token.nil?
69
+ fail ArgumentError, "Missing the required parameter 'x_account_token' when calling BankInfoApi.bank_info_list"
70
+ end
71
+ allowable_values = ["CHECKING", "SAVINGS"]
72
+ if @api_client.config.client_side_validation && opts[:'account_type'] && !allowable_values.include?(opts[:'account_type'])
73
+ fail ArgumentError, "invalid value for \"account_type\", must be one of #{allowable_values}"
74
+ end
75
+ allowable_values = ["employee"]
76
+ if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
77
+ fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
78
+ end
79
+ allowable_values = ["-remote_created_at", "remote_created_at"]
80
+ if @api_client.config.client_side_validation && opts[:'order_by'] && !allowable_values.include?(opts[:'order_by'])
81
+ fail ArgumentError, "invalid value for \"order_by\", must be one of #{allowable_values}"
82
+ end
83
+ # resource path
84
+ local_var_path = '/bank-info'
85
+
86
+ # query parameters
87
+ query_params = opts[:query_params] || {}
88
+ query_params[:'account_type'] = opts[:'account_type'] if !opts[:'account_type'].nil?
89
+ query_params[:'bank_name'] = opts[:'bank_name'] if !opts[:'bank_name'].nil?
90
+ query_params[:'created_after'] = opts[:'created_after'] if !opts[:'created_after'].nil?
91
+ query_params[:'created_before'] = opts[:'created_before'] if !opts[:'created_before'].nil?
92
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
93
+ query_params[:'employee'] = opts[:'employee'] if !opts[:'employee'].nil?
94
+ query_params[:'employee_id'] = opts[:'employee_id'] if !opts[:'employee_id'].nil?
95
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
96
+ query_params[:'include_deleted_data'] = opts[:'include_deleted_data'] if !opts[:'include_deleted_data'].nil?
97
+ query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
98
+ query_params[:'modified_after'] = opts[:'modified_after'] if !opts[:'modified_after'].nil?
99
+ query_params[:'modified_before'] = opts[:'modified_before'] if !opts[:'modified_before'].nil?
100
+ query_params[:'order_by'] = opts[:'order_by'] if !opts[:'order_by'].nil?
101
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
102
+ query_params[:'remote_id'] = opts[:'remote_id'] if !opts[:'remote_id'].nil?
103
+
104
+ # header parameters
105
+ header_params = opts[:header_params] || {}
106
+ # HTTP header 'Accept' (if needed)
107
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
108
+ header_params[:'X-Account-Token'] = x_account_token
109
+
110
+ # form parameters
111
+ form_params = opts[:form_params] || {}
112
+
113
+ # http body (model)
114
+ post_body = opts[:debug_body]
115
+
116
+ # return_type
117
+ return_type = opts[:debug_return_type] || 'PaginatedBankInfoList'
118
+
119
+ # auth_names
120
+ auth_names = opts[:debug_auth_names] || ['tokenAuth']
121
+
122
+ new_options = opts.merge(
123
+ :operation => :"BankInfoApi.bank_info_list",
124
+ :header_params => header_params,
125
+ :query_params => query_params,
126
+ :form_params => form_params,
127
+ :body => post_body,
128
+ :auth_names => auth_names,
129
+ :return_type => return_type
130
+ )
131
+
132
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
133
+ if @api_client.config.debugging
134
+ @api_client.config.logger.debug "API called: BankInfoApi#bank_info_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
135
+ end
136
+ return data, status_code, headers
137
+ end
138
+
139
+ # Returns a `BankInfo` object with the given `id`.
140
+ # @param x_account_token [String] Token identifying the end user.
141
+ # @param id [String]
142
+ # @param [Hash] opts the optional parameters
143
+ # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
144
+ # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
145
+ # @return [BankInfo]
146
+ def bank_info_retrieve(x_account_token, id, opts = {})
147
+ data, _status_code, _headers = bank_info_retrieve_with_http_info(x_account_token, id, opts)
148
+ data
149
+ end
150
+
151
+ # Returns a &#x60;BankInfo&#x60; object with the given &#x60;id&#x60;.
152
+ # @param x_account_token [String] Token identifying the end user.
153
+ # @param id [String]
154
+ # @param [Hash] opts the optional parameters
155
+ # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
156
+ # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
157
+ # @return [Array<(BankInfo, Integer, Hash)>] BankInfo data, response status code and response headers
158
+ def bank_info_retrieve_with_http_info(x_account_token, id, opts = {})
159
+ if @api_client.config.debugging
160
+ @api_client.config.logger.debug 'Calling API: BankInfoApi.bank_info_retrieve ...'
161
+ end
162
+ # verify the required parameter 'x_account_token' is set
163
+ if @api_client.config.client_side_validation && x_account_token.nil?
164
+ fail ArgumentError, "Missing the required parameter 'x_account_token' when calling BankInfoApi.bank_info_retrieve"
165
+ end
166
+ # verify the required parameter 'id' is set
167
+ if @api_client.config.client_side_validation && id.nil?
168
+ fail ArgumentError, "Missing the required parameter 'id' when calling BankInfoApi.bank_info_retrieve"
169
+ end
170
+ allowable_values = ["employee"]
171
+ if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
172
+ fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
173
+ end
174
+ # resource path
175
+ local_var_path = '/bank-info/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
176
+
177
+ # query parameters
178
+ query_params = opts[:query_params] || {}
179
+ query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
180
+ query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
181
+
182
+ # header parameters
183
+ header_params = opts[:header_params] || {}
184
+ # HTTP header 'Accept' (if needed)
185
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
186
+ header_params[:'X-Account-Token'] = x_account_token
187
+
188
+ # form parameters
189
+ form_params = opts[:form_params] || {}
190
+
191
+ # http body (model)
192
+ post_body = opts[:debug_body]
193
+
194
+ # return_type
195
+ return_type = opts[:debug_return_type] || 'BankInfo'
196
+
197
+ # auth_names
198
+ auth_names = opts[:debug_auth_names] || ['tokenAuth']
199
+
200
+ new_options = opts.merge(
201
+ :operation => :"BankInfoApi.bank_info_retrieve",
202
+ :header_params => header_params,
203
+ :query_params => query_params,
204
+ :form_params => form_params,
205
+ :body => post_body,
206
+ :auth_names => auth_names,
207
+ :return_type => return_type
208
+ )
209
+
210
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
211
+ if @api_client.config.debugging
212
+ @api_client.config.logger.debug "API called: BankInfoApi#bank_info_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
213
+ end
214
+ return data, status_code, headers
215
+ end
216
+ end
217
+ end
@@ -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 a `Benefit` 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 [BenefitRequest] :benefit_request
27
- # @return [Benefit]
28
- def benefits_create(x_account_token, opts = {})
29
- data, _status_code, _headers = benefits_create_with_http_info(x_account_token, opts)
30
- data
31
- end
32
-
33
- # Creates a &#x60;Benefit&#x60; 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 [BenefitRequest] :benefit_request
38
- # @return [Array<(Benefit, Integer, Hash)>] Benefit data, response status code and response headers
39
- def benefits_create_with_http_info(x_account_token, opts = {})
40
- if @api_client.config.debugging
41
- @api_client.config.logger.debug 'Calling API: BenefitsApi.benefits_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 BenefitsApi.benefits_create"
46
- end
47
- # resource path
48
- local_var_path = '/benefits'
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[:'benefit_request'])
67
-
68
- # return_type
69
- return_type = opts[:debug_return_type] || 'Benefit'
70
-
71
- # auth_names
72
- auth_names = opts[:debug_auth_names] || ['tokenAuth']
73
-
74
- new_options = opts.merge(
75
- :operation => :"BenefitsApi.benefits_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: BenefitsApi#benefits_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 `Benefit` objects.
92
23
  # @param x_account_token [String] Token identifying the end user.
93
24
  # @param [Hash] opts the optional parameters
@@ -96,6 +27,7 @@ module MergeHRISClient
96
27
  # @option opts [String] :cursor The pagination cursor value.
97
28
  # @option opts [String] :employee_id If provided, will only return time off for this employee.
98
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.
99
31
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
100
32
  # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
101
33
  # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
@@ -115,6 +47,7 @@ module MergeHRISClient
115
47
  # @option opts [String] :cursor The pagination cursor value.
116
48
  # @option opts [String] :employee_id If provided, will only return time off for this employee.
117
49
  # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
50
+ # @option opts [Boolean] :include_deleted_data Whether to include data that was deleted in the third-party service.
118
51
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
119
52
  # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
120
53
  # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
@@ -143,6 +76,7 @@ module MergeHRISClient
143
76
  query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
144
77
  query_params[:'employee_id'] = opts[:'employee_id'] if !opts[:'employee_id'].nil?
145
78
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
79
+ query_params[:'include_deleted_data'] = opts[:'include_deleted_data'] if !opts[:'include_deleted_data'].nil?
146
80
  query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
147
81
  query_params[:'modified_after'] = opts[:'modified_after'] if !opts[:'modified_after'].nil?
148
82
  query_params[:'modified_before'] = opts[:'modified_before'] if !opts[:'modified_before'].nil?
@@ -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?