merge_hris_client 3.0.0 → 3.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (232) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +33 -9
  3. data/docs/AccountIntegration.md +6 -2
  4. data/docs/AsyncPassthroughApi.md +155 -0
  5. data/docs/AsyncPassthroughReciept.md +18 -0
  6. data/docs/BankInfo.md +9 -5
  7. data/docs/BankInfoApi.md +17 -13
  8. data/docs/Benefit.md +15 -5
  9. data/docs/BenefitPlanTypeEnum.md +15 -0
  10. data/docs/BenefitsApi.md +6 -6
  11. data/docs/CommonModelScopeData.md +20 -0
  12. data/docs/CommonModelScopes.md +20 -0
  13. data/docs/CommonModelScopesApi.md +157 -0
  14. data/docs/CommonModelScopesBodyRequest.md +22 -0
  15. data/docs/CommonModelScopesDisabledModels.md +26 -0
  16. data/docs/CommonModelScopesDisabledModelsEnabledActionsEnum.md +15 -0
  17. data/docs/CommonModelScopesPostInnerDeserializerRequest.md +22 -0
  18. data/docs/CommonModelScopesUpdateSerializer.md +18 -0
  19. data/docs/CompaniesApi.md +4 -4
  20. data/docs/Company.md +7 -3
  21. data/docs/ConditionSchema.md +30 -0
  22. data/docs/ConditionTypeEnum.md +15 -0
  23. data/docs/DataPassthroughRequest.md +1 -1
  24. data/docs/Deduction.md +11 -5
  25. data/docs/DeleteAccountApi.md +9 -9
  26. data/docs/Dependent.md +50 -0
  27. data/docs/DependentsApi.md +181 -0
  28. data/docs/Earning.md +10 -2
  29. data/docs/Employee.md +19 -15
  30. data/docs/EmployeePayrollRun.md +11 -7
  31. data/docs/EmployeePayrollRunsApi.md +4 -4
  32. data/docs/EmployeeRequest.md +16 -18
  33. data/docs/EmployeesApi.md +31 -18
  34. data/docs/EmployerBenefit.md +36 -0
  35. data/docs/EmployerBenefitsApi.md +177 -0
  36. data/docs/Employment.md +14 -10
  37. data/docs/EmploymentsApi.md +15 -11
  38. data/docs/EnabledActionsEnum.md +15 -0
  39. data/docs/EndUserDetailsRequest.md +6 -4
  40. data/docs/ForceResyncApi.md +1 -1
  41. data/docs/Group.md +8 -4
  42. data/docs/GroupsApi.md +15 -9
  43. data/docs/Issue.md +10 -8
  44. data/docs/IssuesApi.md +6 -6
  45. data/docs/LinkToken.md +1 -1
  46. data/docs/LinkedAccountCondition.md +28 -0
  47. data/docs/LinkedAccountConditionRequest.md +22 -0
  48. data/docs/LinkedAccountSelectiveSyncConfiguration.md +18 -0
  49. data/docs/LinkedAccountSelectiveSyncConfigurationListRequest.md +18 -0
  50. data/docs/LinkedAccountSelectiveSyncConfigurationRequest.md +18 -0
  51. data/docs/LinkedAccountsApi.md +2 -2
  52. data/docs/Location.md +10 -6
  53. data/docs/LocationsApi.md +13 -9
  54. data/docs/MetaResponse.md +2 -0
  55. data/docs/MultipartFormFieldRequest.md +1 -1
  56. data/docs/OperatorSchema.md +20 -0
  57. data/docs/PaginatedConditionSchemaList.md +22 -0
  58. data/docs/PaginatedDependentList.md +22 -0
  59. data/docs/PaginatedEmployerBenefitList.md +22 -0
  60. data/docs/PayGroup.md +7 -3
  61. data/docs/PayGroupsApi.md +4 -4
  62. data/docs/PayrollRun.md +9 -5
  63. data/docs/PayrollRunsApi.md +14 -10
  64. data/docs/RelationshipEnum.md +15 -0
  65. data/docs/RemoteData.md +1 -1
  66. data/docs/SelectiveSyncApi.md +233 -0
  67. data/docs/SelectiveSyncConfigurationsUsageEnum.md +15 -0
  68. data/docs/SyncStatus.md +5 -3
  69. data/docs/SyncStatusApi.md +1 -1
  70. data/docs/Tax.md +9 -1
  71. data/docs/Team.md +8 -4
  72. data/docs/TeamsApi.md +4 -4
  73. data/docs/TimeOff.md +13 -9
  74. data/docs/TimeOffApi.md +16 -12
  75. data/docs/TimeOffBalance.md +10 -6
  76. data/docs/TimeOffBalancesApi.md +15 -11
  77. data/docs/TimeOffRequest.md +11 -9
  78. data/lib/merge_hris_client/api/async_passthrough_api.rb +160 -0
  79. data/lib/merge_hris_client/api/bank_info_api.rb +26 -12
  80. data/lib/merge_hris_client/api/benefits_api.rb +6 -6
  81. data/lib/merge_hris_client/api/common_model_scopes_api.rb +146 -0
  82. data/lib/merge_hris_client/api/companies_api.rb +4 -4
  83. data/lib/merge_hris_client/api/delete_account_api.rb +7 -7
  84. data/lib/merge_hris_client/api/dependents_api.rb +188 -0
  85. data/lib/merge_hris_client/api/employee_payroll_runs_api.rb +4 -4
  86. data/lib/merge_hris_client/api/employees_api.rb +44 -17
  87. data/lib/merge_hris_client/api/employer_benefits_api.rb +182 -0
  88. data/lib/merge_hris_client/api/employments_api.rb +24 -10
  89. data/lib/merge_hris_client/api/force_resync_api.rb +2 -2
  90. data/lib/merge_hris_client/api/groups_api.rb +25 -8
  91. data/lib/merge_hris_client/api/issues_api.rb +6 -6
  92. data/lib/merge_hris_client/api/linked_accounts_api.rb +3 -3
  93. data/lib/merge_hris_client/api/locations_api.rb +22 -8
  94. data/lib/merge_hris_client/api/pay_groups_api.rb +4 -4
  95. data/lib/merge_hris_client/api/payroll_runs_api.rb +24 -10
  96. data/lib/merge_hris_client/api/selective_sync_api.rb +225 -0
  97. data/lib/merge_hris_client/api/sync_status_api.rb +2 -2
  98. data/lib/merge_hris_client/api/teams_api.rb +4 -4
  99. data/lib/merge_hris_client/api/time_off_api.rb +26 -12
  100. data/lib/merge_hris_client/api/time_off_balances_api.rb +24 -10
  101. data/lib/merge_hris_client/models/account_integration.rb +30 -8
  102. data/lib/merge_hris_client/models/async_passthrough_reciept.rb +223 -0
  103. data/lib/merge_hris_client/models/bank_info.rb +39 -16
  104. data/lib/merge_hris_client/models/benefit.rb +70 -14
  105. data/lib/merge_hris_client/models/benefit_plan_type_enum.rb +48 -0
  106. data/lib/merge_hris_client/models/categories_enum.rb +3 -1
  107. data/lib/merge_hris_client/models/category_enum.rb +3 -1
  108. data/lib/merge_hris_client/models/common_model_scope_data.rb +234 -0
  109. data/lib/merge_hris_client/models/common_model_scopes.rb +234 -0
  110. data/lib/merge_hris_client/models/common_model_scopes_body_request.rb +274 -0
  111. data/lib/merge_hris_client/models/common_model_scopes_disabled_models.rb +283 -0
  112. data/lib/merge_hris_client/models/common_model_scopes_disabled_models_enabled_actions_enum.rb +45 -0
  113. data/lib/merge_hris_client/models/common_model_scopes_post_inner_deserializer_request.rb +274 -0
  114. data/lib/merge_hris_client/models/common_model_scopes_update_serializer.rb +226 -0
  115. data/lib/merge_hris_client/models/company.rb +37 -15
  116. data/lib/merge_hris_client/models/condition_schema.rb +298 -0
  117. data/lib/merge_hris_client/models/condition_type_enum.rb +50 -0
  118. data/lib/merge_hris_client/models/data_passthrough_request.rb +1 -0
  119. data/lib/merge_hris_client/models/deduction.rb +50 -17
  120. data/lib/merge_hris_client/models/dependent.rb +470 -0
  121. data/lib/merge_hris_client/models/earning.rb +51 -6
  122. data/lib/merge_hris_client/models/employee.rb +51 -23
  123. data/lib/merge_hris_client/models/employee_payroll_run.rb +41 -17
  124. data/lib/merge_hris_client/models/employee_request.rb +34 -39
  125. data/lib/merge_hris_client/models/employer_benefit.rb +363 -0
  126. data/lib/merge_hris_client/models/employment.rb +44 -20
  127. data/lib/merge_hris_client/models/enabled_actions_enum.rb +45 -0
  128. data/lib/merge_hris_client/models/end_user_details_request.rb +21 -8
  129. data/lib/merge_hris_client/models/group.rb +38 -16
  130. data/lib/merge_hris_client/models/group_type_enum.rb +2 -1
  131. data/lib/merge_hris_client/models/issue.rb +16 -4
  132. data/lib/merge_hris_client/models/link_token.rb +0 -5
  133. data/lib/merge_hris_client/models/linked_account_condition.rb +282 -0
  134. data/lib/merge_hris_client/models/linked_account_condition_request.rb +269 -0
  135. data/lib/merge_hris_client/models/linked_account_selective_sync_configuration.rb +221 -0
  136. data/lib/merge_hris_client/models/linked_account_selective_sync_configuration_list_request.rb +226 -0
  137. data/lib/merge_hris_client/models/linked_account_selective_sync_configuration_request.rb +226 -0
  138. data/lib/merge_hris_client/models/location.rb +39 -17
  139. data/lib/merge_hris_client/models/meta_response.rb +12 -1
  140. data/lib/merge_hris_client/models/multipart_form_field_request.rb +1 -1
  141. data/lib/merge_hris_client/models/operator_schema.rb +229 -0
  142. data/lib/merge_hris_client/models/paginated_condition_schema_list.rb +240 -0
  143. data/lib/merge_hris_client/models/paginated_dependent_list.rb +240 -0
  144. data/lib/merge_hris_client/models/paginated_employer_benefit_list.rb +240 -0
  145. data/lib/merge_hris_client/models/pay_frequency_enum.rb +2 -1
  146. data/lib/merge_hris_client/models/pay_group.rb +37 -15
  147. data/lib/merge_hris_client/models/pay_period_enum.rb +2 -1
  148. data/lib/merge_hris_client/models/payroll_run.rb +39 -17
  149. data/lib/merge_hris_client/models/relationship_enum.rb +46 -0
  150. data/lib/merge_hris_client/models/remote_data.rb +3 -4
  151. data/lib/merge_hris_client/models/selective_sync_configurations_usage_enum.rb +45 -0
  152. data/lib/merge_hris_client/models/sync_status.rb +13 -4
  153. data/lib/merge_hris_client/models/sync_status_status_enum.rb +2 -1
  154. data/lib/merge_hris_client/models/tax.rb +50 -5
  155. data/lib/merge_hris_client/models/team.rb +38 -15
  156. data/lib/merge_hris_client/models/time_off.rb +43 -19
  157. data/lib/merge_hris_client/models/time_off_balance.rb +40 -17
  158. data/lib/merge_hris_client/models/time_off_request.rb +36 -21
  159. data/lib/merge_hris_client/version.rb +1 -1
  160. data/lib/merge_hris_client.rb +31 -0
  161. data/spec/api/async_passthrough_api_spec.rb +59 -0
  162. data/spec/api/bank_info_api_spec.rb +8 -6
  163. data/spec/api/benefits_api_spec.rb +3 -3
  164. data/spec/api/common_model_scopes_api_spec.rb +58 -0
  165. data/spec/api/companies_api_spec.rb +2 -2
  166. data/spec/api/delete_account_api_spec.rb +2 -2
  167. data/spec/api/dependents_api_spec.rb +70 -0
  168. data/spec/api/employee_payroll_runs_api_spec.rb +2 -2
  169. data/spec/api/employees_api_spec.rb +13 -6
  170. data/spec/api/employer_benefits_api_spec.rb +68 -0
  171. data/spec/api/employments_api_spec.rb +7 -5
  172. data/spec/api/force_resync_api_spec.rb +1 -1
  173. data/spec/api/groups_api_spec.rb +7 -4
  174. data/spec/api/issues_api_spec.rb +3 -3
  175. data/spec/api/linked_accounts_api_spec.rb +1 -1
  176. data/spec/api/locations_api_spec.rb +6 -4
  177. data/spec/api/pay_groups_api_spec.rb +2 -2
  178. data/spec/api/payroll_runs_api_spec.rb +7 -5
  179. data/spec/api/selective_sync_api_spec.rb +72 -0
  180. data/spec/api/sync_status_api_spec.rb +1 -1
  181. data/spec/api/teams_api_spec.rb +2 -2
  182. data/spec/api/time_off_api_spec.rb +8 -6
  183. data/spec/api/time_off_balances_api_spec.rb +7 -5
  184. data/spec/models/account_integration_spec.rb +12 -0
  185. data/spec/models/async_passthrough_reciept_spec.rb +34 -0
  186. data/spec/models/bank_info_spec.rb +14 -2
  187. data/spec/models/benefit_plan_type_enum_spec.rb +28 -0
  188. data/spec/models/benefit_spec.rb +31 -1
  189. data/spec/models/common_model_scope_data_spec.rb +40 -0
  190. data/spec/models/common_model_scopes_body_request_spec.rb +46 -0
  191. data/spec/models/common_model_scopes_disabled_models_enabled_actions_enum_spec.rb +28 -0
  192. data/spec/models/common_model_scopes_disabled_models_spec.rb +58 -0
  193. data/spec/models/common_model_scopes_post_inner_deserializer_request_spec.rb +46 -0
  194. data/spec/models/common_model_scopes_spec.rb +40 -0
  195. data/spec/models/common_model_scopes_update_serializer_spec.rb +34 -0
  196. data/spec/models/company_spec.rb +14 -2
  197. data/spec/models/condition_schema_spec.rb +70 -0
  198. data/spec/models/condition_type_enum_spec.rb +28 -0
  199. data/spec/models/deduction_spec.rb +20 -2
  200. data/spec/models/dependent_spec.rb +130 -0
  201. data/spec/models/earning_spec.rb +24 -0
  202. data/spec/models/employee_payroll_run_spec.rb +14 -2
  203. data/spec/models/employee_request_spec.rb +5 -11
  204. data/spec/models/employee_spec.rb +15 -3
  205. data/spec/models/employer_benefit_spec.rb +88 -0
  206. data/spec/models/employment_spec.rb +14 -2
  207. data/spec/models/enabled_actions_enum_spec.rb +28 -0
  208. data/spec/models/end_user_details_request_spec.rb +6 -0
  209. data/spec/models/group_spec.rb +14 -2
  210. data/spec/models/issue_spec.rb +6 -0
  211. data/spec/models/linked_account_condition_request_spec.rb +46 -0
  212. data/spec/models/linked_account_condition_spec.rb +64 -0
  213. data/spec/models/linked_account_selective_sync_configuration_list_request_spec.rb +34 -0
  214. data/spec/models/linked_account_selective_sync_configuration_request_spec.rb +34 -0
  215. data/spec/models/linked_account_selective_sync_configuration_spec.rb +34 -0
  216. data/spec/models/location_spec.rb +14 -2
  217. data/spec/models/meta_response_spec.rb +6 -0
  218. data/spec/models/operator_schema_spec.rb +40 -0
  219. data/spec/models/paginated_condition_schema_list_spec.rb +46 -0
  220. data/spec/models/paginated_dependent_list_spec.rb +46 -0
  221. data/spec/models/paginated_employer_benefit_list_spec.rb +46 -0
  222. data/spec/models/pay_group_spec.rb +14 -2
  223. data/spec/models/payroll_run_spec.rb +14 -2
  224. data/spec/models/relationship_enum_spec.rb +28 -0
  225. data/spec/models/selective_sync_configurations_usage_enum_spec.rb +28 -0
  226. data/spec/models/sync_status_spec.rb +6 -0
  227. data/spec/models/tax_spec.rb +24 -0
  228. data/spec/models/team_spec.rb +14 -2
  229. data/spec/models/time_off_balance_spec.rb +14 -2
  230. data/spec/models/time_off_request_spec.rb +12 -6
  231. data/spec/models/time_off_spec.rb +14 -2
  232. metadata +225 -105
@@ -0,0 +1,181 @@
1
+ # MergeHRISClient::DependentsApi
2
+
3
+ All URIs are relative to *https://api.merge.dev/api/hris/v1*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**dependents_list**](DependentsApi.md#dependents_list) | **GET** /dependents | |
8
+ | [**dependents_retrieve**](DependentsApi.md#dependents_retrieve) | **GET** /dependents/{id} | |
9
+
10
+
11
+ ## dependents_list
12
+
13
+ > <PaginatedDependentList> dependents_list(x_account_token, opts)
14
+
15
+
16
+
17
+ Returns a list of `Dependent` objects.
18
+
19
+ ### Examples
20
+
21
+ ```ruby
22
+ require 'time'
23
+ require 'merge_hris_client'
24
+ # setup authorization
25
+ MergeHRISClient.configure do |config|
26
+ # Configure API key authorization: tokenAuth
27
+ config.api_key['tokenAuth'] = 'YOUR API KEY'
28
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
29
+ # config.api_key_prefix['tokenAuth'] = 'Bearer'
30
+ end
31
+
32
+ api_instance = MergeHRISClient::DependentsApi.new
33
+ x_account_token = 'x_account_token_example' # String | Token identifying the end user.
34
+ opts = {
35
+ created_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects created after this datetime.
36
+ created_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects created before this datetime.
37
+ cursor: 'cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw', # String | The pagination cursor value.
38
+ include_deleted_data: true, # Boolean | Whether to include data that was marked as deleted by third party webhooks.
39
+ include_remote_data: true, # Boolean | Whether to include the original data Merge fetched from the third-party to produce these models.
40
+ include_sensitive_fields: true, # Boolean | Whether to include sensitive fields (such as social security numbers) in the response.
41
+ modified_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, only objects synced by Merge after this date time will be returned.
42
+ modified_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, only objects synced by Merge before this date time will be returned.
43
+ page_size: 56, # Integer | Number of results to return per page.
44
+ remote_id: 'remote_id_example' # String | The API provider's ID for the given object.
45
+ }
46
+
47
+ begin
48
+
49
+ result = api_instance.dependents_list(x_account_token, opts)
50
+ p result
51
+ rescue MergeHRISClient::ApiError => e
52
+ puts "Error when calling DependentsApi->dependents_list: #{e}"
53
+ end
54
+ ```
55
+
56
+ #### Using the dependents_list_with_http_info variant
57
+
58
+ This returns an Array which contains the response data, status code and headers.
59
+
60
+ > <Array(<PaginatedDependentList>, Integer, Hash)> dependents_list_with_http_info(x_account_token, opts)
61
+
62
+ ```ruby
63
+ begin
64
+
65
+ data, status_code, headers = api_instance.dependents_list_with_http_info(x_account_token, opts)
66
+ p status_code # => 2xx
67
+ p headers # => { ... }
68
+ p data # => <PaginatedDependentList>
69
+ rescue MergeHRISClient::ApiError => e
70
+ puts "Error when calling DependentsApi->dependents_list_with_http_info: #{e}"
71
+ end
72
+ ```
73
+
74
+ ### Parameters
75
+
76
+ | Name | Type | Description | Notes |
77
+ | ---- | ---- | ----------- | ----- |
78
+ | **x_account_token** | **String** | Token identifying the end user. | |
79
+ | **created_after** | **Time** | If provided, will only return objects created after this datetime. | [optional] |
80
+ | **created_before** | **Time** | If provided, will only return objects created before this datetime. | [optional] |
81
+ | **cursor** | **String** | The pagination cursor value. | [optional] |
82
+ | **include_deleted_data** | **Boolean** | Whether to include data that was marked as deleted by third party webhooks. | [optional] |
83
+ | **include_remote_data** | **Boolean** | Whether to include the original data Merge fetched from the third-party to produce these models. | [optional] |
84
+ | **include_sensitive_fields** | **Boolean** | Whether to include sensitive fields (such as social security numbers) in the response. | [optional] |
85
+ | **modified_after** | **Time** | If provided, only objects synced by Merge after this date time will be returned. | [optional] |
86
+ | **modified_before** | **Time** | If provided, only objects synced by Merge before this date time will be returned. | [optional] |
87
+ | **page_size** | **Integer** | Number of results to return per page. | [optional] |
88
+ | **remote_id** | **String** | The API provider&#39;s ID for the given object. | [optional] |
89
+
90
+ ### Return type
91
+
92
+ [**PaginatedDependentList**](PaginatedDependentList.md)
93
+
94
+ ### Authorization
95
+
96
+ [tokenAuth](../README.md#tokenAuth)
97
+
98
+ ### HTTP request headers
99
+
100
+ - **Content-Type**: Not defined
101
+ - **Accept**: application/json
102
+
103
+
104
+ ## dependents_retrieve
105
+
106
+ > <Dependent> dependents_retrieve(x_account_token, id, opts)
107
+
108
+
109
+
110
+ Returns a `Dependent` object with the given `id`.
111
+
112
+ ### Examples
113
+
114
+ ```ruby
115
+ require 'time'
116
+ require 'merge_hris_client'
117
+ # setup authorization
118
+ MergeHRISClient.configure do |config|
119
+ # Configure API key authorization: tokenAuth
120
+ config.api_key['tokenAuth'] = 'YOUR API KEY'
121
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
122
+ # config.api_key_prefix['tokenAuth'] = 'Bearer'
123
+ end
124
+
125
+ api_instance = MergeHRISClient::DependentsApi.new
126
+ x_account_token = 'x_account_token_example' # String | Token identifying the end user.
127
+ id = TODO # String |
128
+ opts = {
129
+ include_remote_data: true, # Boolean | Whether to include the original data Merge fetched from the third-party to produce these models.
130
+ include_sensitive_fields: true # Boolean | Whether to include sensitive fields (such as social security numbers) in the response.
131
+ }
132
+
133
+ begin
134
+
135
+ result = api_instance.dependents_retrieve(x_account_token, id, opts)
136
+ p result
137
+ rescue MergeHRISClient::ApiError => e
138
+ puts "Error when calling DependentsApi->dependents_retrieve: #{e}"
139
+ end
140
+ ```
141
+
142
+ #### Using the dependents_retrieve_with_http_info variant
143
+
144
+ This returns an Array which contains the response data, status code and headers.
145
+
146
+ > <Array(<Dependent>, Integer, Hash)> dependents_retrieve_with_http_info(x_account_token, id, opts)
147
+
148
+ ```ruby
149
+ begin
150
+
151
+ data, status_code, headers = api_instance.dependents_retrieve_with_http_info(x_account_token, id, opts)
152
+ p status_code # => 2xx
153
+ p headers # => { ... }
154
+ p data # => <Dependent>
155
+ rescue MergeHRISClient::ApiError => e
156
+ puts "Error when calling DependentsApi->dependents_retrieve_with_http_info: #{e}"
157
+ end
158
+ ```
159
+
160
+ ### Parameters
161
+
162
+ | Name | Type | Description | Notes |
163
+ | ---- | ---- | ----------- | ----- |
164
+ | **x_account_token** | **String** | Token identifying the end user. | |
165
+ | **id** | [**String**](.md) | | |
166
+ | **include_remote_data** | **Boolean** | Whether to include the original data Merge fetched from the third-party to produce these models. | [optional] |
167
+ | **include_sensitive_fields** | **Boolean** | Whether to include sensitive fields (such as social security numbers) in the response. | [optional] |
168
+
169
+ ### Return type
170
+
171
+ [**Dependent**](Dependent.md)
172
+
173
+ ### Authorization
174
+
175
+ [tokenAuth](../README.md#tokenAuth)
176
+
177
+ ### HTTP request headers
178
+
179
+ - **Content-Type**: Not defined
180
+ - **Accept**: application/json
181
+
data/docs/Earning.md CHANGED
@@ -5,10 +5,14 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **id** | **String** | | [optional][readonly] |
8
+ | **remote_id** | **String** | The third-party API ID of the matching object. | [optional] |
8
9
  | **employee_payroll_run** | **String** | | [optional] |
9
10
  | **amount** | **Float** | The amount earned. | [optional] |
10
- | **type** | [**EarningTypeEnum**](EarningTypeEnum.md) | The type of earning. | [optional] |
11
+ | **type** | [**EarningTypeEnum**](EarningTypeEnum.md) | The type of earning. * &#x60;SALARY&#x60; - SALARY * &#x60;REIMBURSEMENT&#x60; - REIMBURSEMENT * &#x60;OVERTIME&#x60; - OVERTIME * &#x60;BONUS&#x60; - BONUS | [optional] |
11
12
  | **remote_was_deleted** | **Boolean** | Indicates whether or not this object has been deleted by third party webhooks. | [optional] |
13
+ | **modified_at** | **Time** | This is the datetime that this object was last updated by Merge | [optional][readonly] |
14
+ | **field_mappings** | [**Hash&lt;String, AnyType&gt;**](AnyType.md) | | [optional][readonly] |
15
+ | **remote_data** | [**Array&lt;RemoteData&gt;**](RemoteData.md) | | [optional][readonly] |
12
16
 
13
17
  ## Example
14
18
 
@@ -17,10 +21,14 @@ require 'merge_hris_client'
17
21
 
18
22
  instance = MergeHRISClient::Earning.new(
19
23
  id: babbced6-3a81-4775-8da2-490dc6385259,
24
+ remote_id: 52802,
20
25
  employee_payroll_run: 35347df1-95e7-46e2-93cc-66f1191edca5,
21
26
  amount: 1002.34,
22
27
  type: SALARY,
23
- remote_was_deleted: null
28
+ remote_was_deleted: null,
29
+ modified_at: 2021-10-16T00:00Z,
30
+ field_mappings: {&quot;organization_defined_targets&quot;:{&quot;custom_key&quot;:&quot;custom_value&quot;},&quot;linked_account_defined_targets&quot;:{&quot;custom_key&quot;:&quot;custom_value&quot;}},
31
+ remote_data: null
24
32
  )
25
33
  ```
26
34
 
data/docs/Employee.md CHANGED
@@ -6,8 +6,8 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **id** | **String** | | [optional][readonly] |
8
8
  | **remote_id** | **String** | The third-party API ID of the matching object. | [optional] |
9
- | **employee_number** | **String** | The employee&#39;s number that appears in the remote UI. Note: This is distinct from the remote_id field, which is a unique identifier for the employee set by the remote API, and is not exposed to the user. This value can also change in many API providers. | [optional] |
10
- | **company** | **String** | | [optional] |
9
+ | **employee_number** | **String** | The employee&#39;s number that appears in the third-party integration&#39;s UI. | [optional] |
10
+ | **company** | **String** | The ID of the employee&#39;s company. | [optional] |
11
11
  | **first_name** | **String** | The employee&#39;s first name. | [optional] |
12
12
  | **last_name** | **String** | The employee&#39;s last name. | [optional] |
13
13
  | **display_full_name** | **String** | The employee&#39;s full name, to use for display purposes. If a preferred first name is available, the full name will include the preferred first name. | [optional] |
@@ -17,25 +17,27 @@
17
17
  | **personal_email** | **String** | The employee&#39;s personal email. | [optional] |
18
18
  | **mobile_phone_number** | **String** | The employee&#39;s mobile phone number. | [optional] |
19
19
  | **employments** | **Array&lt;String&gt;** | Array of &#x60;Employment&#x60; IDs for this Employee. | [optional] |
20
- | **home_location** | **String** | | [optional] |
21
- | **work_location** | **String** | | [optional] |
22
- | **manager** | **String** | | [optional] |
23
- | **team** | **String** | | [optional] |
24
- | **pay_group** | **String** | | [optional] |
20
+ | **home_location** | **String** | The employee&#39;s home address. | [optional] |
21
+ | **work_location** | **String** | The employee&#39;s work address. | [optional] |
22
+ | **manager** | **String** | The employee ID of the employee&#39;s manager. | [optional] |
23
+ | **team** | **String** | The employee&#39;s team. | [optional] |
24
+ | **pay_group** | **String** | The employee&#39;s pay group | [optional] |
25
25
  | **ssn** | **String** | The employee&#39;s social security number. | [optional] |
26
- | **gender** | [**GenderEnum**](GenderEnum.md) | The employee&#39;s gender. | [optional] |
27
- | **ethnicity** | [**EthnicityEnum**](EthnicityEnum.md) | The employee&#39;s ethnicity. | [optional] |
28
- | **marital_status** | [**MaritalStatusEnum**](MaritalStatusEnum.md) | The employee&#39;s marital status. | [optional] |
26
+ | **gender** | [**GenderEnum**](GenderEnum.md) | The employee&#39;s gender. * &#x60;MALE&#x60; - MALE * &#x60;FEMALE&#x60; - FEMALE * &#x60;NON-BINARY&#x60; - NON-BINARY * &#x60;OTHER&#x60; - OTHER * &#x60;PREFER_NOT_TO_DISCLOSE&#x60; - PREFER_NOT_TO_DISCLOSE | [optional] |
27
+ | **ethnicity** | [**EthnicityEnum**](EthnicityEnum.md) | The employee&#39;s ethnicity. * &#x60;AMERICAN_INDIAN_OR_ALASKA_NATIVE&#x60; - AMERICAN_INDIAN_OR_ALASKA_NATIVE * &#x60;ASIAN_OR_INDIAN_SUBCONTINENT&#x60; - ASIAN_OR_INDIAN_SUBCONTINENT * &#x60;BLACK_OR_AFRICAN_AMERICAN&#x60; - BLACK_OR_AFRICAN_AMERICAN * &#x60;HISPANIC_OR_LATINO&#x60; - HISPANIC_OR_LATINO * &#x60;NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER&#x60; - NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER * &#x60;TWO_OR_MORE_RACES&#x60; - TWO_OR_MORE_RACES * &#x60;WHITE&#x60; - WHITE * &#x60;PREFER_NOT_TO_DISCLOSE&#x60; - PREFER_NOT_TO_DISCLOSE | [optional] |
28
+ | **marital_status** | [**MaritalStatusEnum**](MaritalStatusEnum.md) | The employee&#39;s filing status as related to marital status. * &#x60;SINGLE&#x60; - SINGLE * &#x60;MARRIED_FILING_JOINTLY&#x60; - MARRIED_FILING_JOINTLY * &#x60;MARRIED_FILING_SEPARATELY&#x60; - MARRIED_FILING_SEPARATELY * &#x60;HEAD_OF_HOUSEHOLD&#x60; - HEAD_OF_HOUSEHOLD * &#x60;QUALIFYING_WIDOW_OR_WIDOWER_WITH_DEPENDENT_CHILD&#x60; - QUALIFYING_WIDOW_OR_WIDOWER_WITH_DEPENDENT_CHILD | [optional] |
29
29
  | **date_of_birth** | **Time** | The employee&#39;s date of birth. | [optional] |
30
30
  | **hire_date** | **Time** | The date that the employee was hired, usually the day that an offer letter is signed. If an employee has multiple hire dates from previous employments, this represents the most recent hire date. Note: If you&#39;re looking for the employee&#39;s start date, refer to the start_date field. | [optional] |
31
- | **start_date** | **Time** | The date that the employee started working. If an employee has multiple start dates from previous employments, this represents the most recent start date. | [optional] |
31
+ | **start_date** | **Time** | The date that the employee started working. If an employee was rehired, the most recent start date will be returned. | [optional] |
32
32
  | **remote_created_at** | **Time** | When the third party&#39;s employee was created. | [optional] |
33
- | **employment_status** | [**EmploymentStatusEnum**](EmploymentStatusEnum.md) | The employment status of the employee. | [optional] |
33
+ | **employment_status** | [**EmploymentStatusEnum**](EmploymentStatusEnum.md) | The employment status of the employee. * &#x60;ACTIVE&#x60; - ACTIVE * &#x60;PENDING&#x60; - PENDING * &#x60;INACTIVE&#x60; - INACTIVE | [optional] |
34
34
  | **termination_date** | **Time** | The employee&#39;s termination date. | [optional] |
35
35
  | **avatar** | **String** | The URL of the employee&#39;s avatar image. | [optional] |
36
- | **remote_data** | [**Array&lt;RemoteData&gt;**](RemoteData.md) | | [optional][readonly] |
37
36
  | **custom_fields** | [**Hash&lt;String, AnyType&gt;**](AnyType.md) | Custom fields configured for a given model. | [optional] |
38
37
  | **remote_was_deleted** | **Boolean** | | [optional][readonly] |
38
+ | **modified_at** | **Time** | This is the datetime that this object was last updated by Merge | [optional][readonly] |
39
+ | **field_mappings** | [**Hash&lt;String, AnyType&gt;**](AnyType.md) | | [optional][readonly] |
40
+ | **remote_data** | [**Array&lt;RemoteData&gt;**](RemoteData.md) | | [optional][readonly] |
39
41
 
40
42
  ## Example
41
43
 
@@ -72,9 +74,11 @@ instance = MergeHRISClient::Employee.new(
72
74
  employment_status: INACTIVE,
73
75
  termination_date: 2021-10-12T00:00Z,
74
76
  avatar: http://alturl.com/h2h8m,
75
- remote_data: [{&quot;path&quot;:&quot;/people&quot;,&quot;data&quot;:[&quot;Varies by platform&quot;]}],
76
77
  custom_fields: null,
77
- remote_was_deleted: null
78
+ remote_was_deleted: null,
79
+ modified_at: 2021-10-16T00:00Z,
80
+ field_mappings: {&quot;organization_defined_targets&quot;:{&quot;custom_key&quot;:&quot;custom_value&quot;},&quot;linked_account_defined_targets&quot;:{&quot;custom_key&quot;:&quot;custom_value&quot;}},
81
+ remote_data: [{&quot;path&quot;:&quot;/people&quot;,&quot;data&quot;:[&quot;Varies by platform&quot;]}]
78
82
  )
79
83
  ```
80
84
 
@@ -6,18 +6,20 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **id** | **String** | | [optional][readonly] |
8
8
  | **remote_id** | **String** | The third-party API ID of the matching object. | [optional] |
9
- | **employee** | **String** | | [optional] |
10
- | **payroll_run** | **String** | | [optional] |
11
- | **gross_pay** | **Float** | The gross pay from the run. | [optional] |
12
- | **net_pay** | **Float** | The net pay from the run. | [optional] |
9
+ | **employee** | **String** | The employee whose payroll is being run. | [optional] |
10
+ | **payroll_run** | **String** | The payroll being run. | [optional] |
11
+ | **gross_pay** | **Float** | The total earnings throughout a given period for an employee before any deductions are made. | [optional] |
12
+ | **net_pay** | **Float** | The take-home pay throughout a given period for an employee after deductions are made. | [optional] |
13
13
  | **start_date** | **Time** | The day and time the payroll run started. | [optional] |
14
14
  | **end_date** | **Time** | The day and time the payroll run ended. | [optional] |
15
15
  | **check_date** | **Time** | The day and time the payroll run was checked. | [optional] |
16
16
  | **earnings** | [**Array&lt;Earning&gt;**](Earning.md) | | [optional][readonly] |
17
17
  | **deductions** | [**Array&lt;Deduction&gt;**](Deduction.md) | | [optional][readonly] |
18
18
  | **taxes** | [**Array&lt;Tax&gt;**](Tax.md) | | [optional][readonly] |
19
- | **remote_data** | [**Array&lt;RemoteData&gt;**](RemoteData.md) | | [optional][readonly] |
20
19
  | **remote_was_deleted** | **Boolean** | Indicates whether or not this object has been deleted by third party webhooks. | [optional][readonly] |
20
+ | **modified_at** | **Time** | This is the datetime that this object was last updated by Merge | [optional][readonly] |
21
+ | **field_mappings** | [**Hash&lt;String, AnyType&gt;**](AnyType.md) | | [optional][readonly] |
22
+ | **remote_data** | [**Array&lt;RemoteData&gt;**](RemoteData.md) | | [optional][readonly] |
21
23
 
22
24
  ## Example
23
25
 
@@ -37,8 +39,10 @@ instance = MergeHRISClient::EmployeePayrollRun.new(
37
39
  earnings: [{&quot;employee_payroll_run&quot;:&quot;35347df1-95e7-46e2-93cc-66f1191edca5&quot;,&quot;amount&quot;:1002.34,&quot;type&quot;:&quot;SALARY&quot;},{&quot;employee_payroll_run&quot;:&quot;35347df1-95e7-46e2-93cc-66f1191edca5&quot;,&quot;amount&quot;:8342.34,&quot;type&quot;:&quot;OVERTIME&quot;}],
38
40
  deductions: [{&quot;employee_payroll_run&quot;:&quot;35347df1-95e7-46e2-93cc-66f1191edca5&quot;,&quot;name&quot;:&quot;Social Security&quot;,&quot;employee_deduction&quot;:34.54,&quot;company_deduction&quot;:78.78}],
39
41
  taxes: [{&quot;employee_payroll_run&quot;:&quot;35347df1-95e7-46e2-93cc-66f1191edca5&quot;,&quot;name&quot;:&quot;California State Income Tax&quot;,&quot;amount&quot;:100.25,&quot;employer_tax&quot;:&quot;False&quot;}],
40
- remote_data: [{&quot;path&quot;:&quot;/employee-payroll&quot;,&quot;data&quot;:[&quot;Varies by platform&quot;]}],
41
- remote_was_deleted: null
42
+ remote_was_deleted: null,
43
+ modified_at: 2021-10-16T00:00Z,
44
+ field_mappings: {&quot;organization_defined_targets&quot;:{&quot;custom_key&quot;:&quot;custom_value&quot;},&quot;linked_account_defined_targets&quot;:{&quot;custom_key&quot;:&quot;custom_value&quot;}},
45
+ remote_data: [{&quot;path&quot;:&quot;/employee-payroll&quot;,&quot;data&quot;:[&quot;Varies by platform&quot;]}]
42
46
  )
43
47
  ```
44
48
 
@@ -41,8 +41,8 @@ opts = {
41
41
  expand: 'employee', # String | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
42
42
  include_deleted_data: true, # Boolean | Whether to include data that was marked as deleted by third party webhooks.
43
43
  include_remote_data: true, # Boolean | Whether to include the original data Merge fetched from the third-party to produce these models.
44
- modified_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects modified after this datetime.
45
- modified_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects modified before this datetime.
44
+ modified_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, only objects synced by Merge after this date time will be returned.
45
+ modified_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, only objects synced by Merge before this date time will be returned.
46
46
  page_size: 56, # Integer | Number of results to return per page.
47
47
  payroll_run_id: 'payroll_run_id_example', # String | If provided, will only return employee payroll runs for this employee.
48
48
  remote_id: 'remote_id_example', # String | The API provider's ID for the given object.
@@ -91,8 +91,8 @@ end
91
91
  | **expand** | **String** | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. | [optional] |
92
92
  | **include_deleted_data** | **Boolean** | Whether to include data that was marked as deleted by third party webhooks. | [optional] |
93
93
  | **include_remote_data** | **Boolean** | Whether to include the original data Merge fetched from the third-party to produce these models. | [optional] |
94
- | **modified_after** | **Time** | If provided, will only return objects modified after this datetime. | [optional] |
95
- | **modified_before** | **Time** | If provided, will only return objects modified before this datetime. | [optional] |
94
+ | **modified_after** | **Time** | If provided, only objects synced by Merge after this date time will be returned. | [optional] |
95
+ | **modified_before** | **Time** | If provided, only objects synced by Merge before this date time will be returned. | [optional] |
96
96
  | **page_size** | **Integer** | Number of results to return per page. | [optional] |
97
97
  | **payroll_run_id** | **String** | If provided, will only return employee payroll runs for this employee. | [optional] |
98
98
  | **remote_id** | **String** | The API provider&#39;s ID for the given object. | [optional] |
@@ -4,9 +4,8 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **remote_id** | **String** | The third-party API ID of the matching object. | [optional] |
8
- | **employee_number** | **String** | The employee&#39;s number that appears in the remote UI. Note: This is distinct from the remote_id field, which is a unique identifier for the employee set by the remote API, and is not exposed to the user. This value can also change in many API providers. | [optional] |
9
- | **company** | **String** | | [optional] |
7
+ | **employee_number** | **String** | The employee&#39;s number that appears in the third-party integration&#39;s UI. | [optional] |
8
+ | **company** | **String** | The ID of the employee&#39;s company. | [optional] |
10
9
  | **first_name** | **String** | The employee&#39;s first name. | [optional] |
11
10
  | **last_name** | **String** | The employee&#39;s last name. | [optional] |
12
11
  | **display_full_name** | **String** | The employee&#39;s full name, to use for display purposes. If a preferred first name is available, the full name will include the preferred first name. | [optional] |
@@ -16,23 +15,23 @@
16
15
  | **personal_email** | **String** | The employee&#39;s personal email. | [optional] |
17
16
  | **mobile_phone_number** | **String** | The employee&#39;s mobile phone number. | [optional] |
18
17
  | **employments** | **Array&lt;String&gt;** | Array of &#x60;Employment&#x60; IDs for this Employee. | [optional] |
19
- | **home_location** | **String** | | [optional] |
20
- | **work_location** | **String** | | [optional] |
21
- | **manager** | **String** | | [optional] |
22
- | **team** | **String** | | [optional] |
23
- | **pay_group** | **String** | | [optional] |
18
+ | **home_location** | **String** | The employee&#39;s home address. | [optional] |
19
+ | **work_location** | **String** | The employee&#39;s work address. | [optional] |
20
+ | **manager** | **String** | The employee ID of the employee&#39;s manager. | [optional] |
21
+ | **team** | **String** | The employee&#39;s team. | [optional] |
22
+ | **pay_group** | **String** | The employee&#39;s pay group | [optional] |
24
23
  | **ssn** | **String** | The employee&#39;s social security number. | [optional] |
25
- | **gender** | [**GenderEnum**](GenderEnum.md) | The employee&#39;s gender. | [optional] |
26
- | **ethnicity** | [**EthnicityEnum**](EthnicityEnum.md) | The employee&#39;s ethnicity. | [optional] |
27
- | **marital_status** | [**MaritalStatusEnum**](MaritalStatusEnum.md) | The employee&#39;s marital status. | [optional] |
24
+ | **gender** | [**GenderEnum**](GenderEnum.md) | The employee&#39;s gender. * &#x60;MALE&#x60; - MALE * &#x60;FEMALE&#x60; - FEMALE * &#x60;NON-BINARY&#x60; - NON-BINARY * &#x60;OTHER&#x60; - OTHER * &#x60;PREFER_NOT_TO_DISCLOSE&#x60; - PREFER_NOT_TO_DISCLOSE | [optional] |
25
+ | **ethnicity** | [**EthnicityEnum**](EthnicityEnum.md) | The employee&#39;s ethnicity. * &#x60;AMERICAN_INDIAN_OR_ALASKA_NATIVE&#x60; - AMERICAN_INDIAN_OR_ALASKA_NATIVE * &#x60;ASIAN_OR_INDIAN_SUBCONTINENT&#x60; - ASIAN_OR_INDIAN_SUBCONTINENT * &#x60;BLACK_OR_AFRICAN_AMERICAN&#x60; - BLACK_OR_AFRICAN_AMERICAN * &#x60;HISPANIC_OR_LATINO&#x60; - HISPANIC_OR_LATINO * &#x60;NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER&#x60; - NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER * &#x60;TWO_OR_MORE_RACES&#x60; - TWO_OR_MORE_RACES * &#x60;WHITE&#x60; - WHITE * &#x60;PREFER_NOT_TO_DISCLOSE&#x60; - PREFER_NOT_TO_DISCLOSE | [optional] |
26
+ | **marital_status** | [**MaritalStatusEnum**](MaritalStatusEnum.md) | The employee&#39;s filing status as related to marital status. * &#x60;SINGLE&#x60; - SINGLE * &#x60;MARRIED_FILING_JOINTLY&#x60; - MARRIED_FILING_JOINTLY * &#x60;MARRIED_FILING_SEPARATELY&#x60; - MARRIED_FILING_SEPARATELY * &#x60;HEAD_OF_HOUSEHOLD&#x60; - HEAD_OF_HOUSEHOLD * &#x60;QUALIFYING_WIDOW_OR_WIDOWER_WITH_DEPENDENT_CHILD&#x60; - QUALIFYING_WIDOW_OR_WIDOWER_WITH_DEPENDENT_CHILD | [optional] |
28
27
  | **date_of_birth** | **Time** | The employee&#39;s date of birth. | [optional] |
29
28
  | **hire_date** | **Time** | The date that the employee was hired, usually the day that an offer letter is signed. If an employee has multiple hire dates from previous employments, this represents the most recent hire date. Note: If you&#39;re looking for the employee&#39;s start date, refer to the start_date field. | [optional] |
30
- | **start_date** | **Time** | The date that the employee started working. If an employee has multiple start dates from previous employments, this represents the most recent start date. | [optional] |
31
- | **remote_created_at** | **Time** | When the third party&#39;s employee was created. | [optional] |
32
- | **employment_status** | [**EmploymentStatusEnum**](EmploymentStatusEnum.md) | The employment status of the employee. | [optional] |
29
+ | **start_date** | **Time** | The date that the employee started working. If an employee was rehired, the most recent start date will be returned. | [optional] |
30
+ | **employment_status** | [**EmploymentStatusEnum**](EmploymentStatusEnum.md) | The employment status of the employee. * &#x60;ACTIVE&#x60; - ACTIVE * &#x60;PENDING&#x60; - PENDING * &#x60;INACTIVE&#x60; - INACTIVE | [optional] |
33
31
  | **termination_date** | **Time** | The employee&#39;s termination date. | [optional] |
34
32
  | **avatar** | **String** | The URL of the employee&#39;s avatar image. | [optional] |
35
- | **custom_fields** | [**Hash&lt;String, AnyType&gt;**](AnyType.md) | Custom fields configured for a given model. | [optional] |
33
+ | **integration_params** | [**Hash&lt;String, AnyType&gt;**](AnyType.md) | | [optional] |
34
+ | **linked_account_params** | [**Hash&lt;String, AnyType&gt;**](AnyType.md) | | [optional] |
36
35
 
37
36
  ## Example
38
37
 
@@ -40,7 +39,6 @@
40
39
  require 'merge_hris_client'
41
40
 
42
41
  instance = MergeHRISClient::EmployeeRequest.new(
43
- remote_id: 19202938,
44
42
  employee_number: 2,
45
43
  company: 8d9fd929-436c-4fd4-a48b-0c61f68d6178,
46
44
  first_name: Greg,
@@ -64,11 +62,11 @@ instance = MergeHRISClient::EmployeeRequest.new(
64
62
  date_of_birth: 1990-11-10T00:00Z,
65
63
  hire_date: 2020-10-10T00:00Z,
66
64
  start_date: 2020-10-11T00:00Z,
67
- remote_created_at: 2020-10-11T00:00Z,
68
65
  employment_status: INACTIVE,
69
66
  termination_date: 2021-10-12T00:00Z,
70
67
  avatar: http://alturl.com/h2h8m,
71
- custom_fields: null
68
+ integration_params: {&quot;unique_integration_field&quot;:&quot;unique_integration_field_value&quot;},
69
+ linked_account_params: {&quot;unique_linked_account_field&quot;:&quot;unique_linked_account_field_value&quot;}
72
70
  )
73
71
  ```
74
72
 
data/docs/EmployeesApi.md CHANGED
@@ -92,7 +92,7 @@ end
92
92
 
93
93
  ## employees_ignore_create
94
94
 
95
- > <IgnoreCommonModel> employees_ignore_create(x_account_token, model_id, ignore_common_model_request)
95
+ > employees_ignore_create(x_account_token, model_id, ignore_common_model_request)
96
96
 
97
97
 
98
98
 
@@ -118,8 +118,7 @@ ignore_common_model_request = MergeHRISClient::IgnoreCommonModelRequest.new({rea
118
118
 
119
119
  begin
120
120
 
121
- result = api_instance.employees_ignore_create(x_account_token, model_id, ignore_common_model_request)
122
- p result
121
+ api_instance.employees_ignore_create(x_account_token, model_id, ignore_common_model_request)
123
122
  rescue MergeHRISClient::ApiError => e
124
123
  puts "Error when calling EmployeesApi->employees_ignore_create: #{e}"
125
124
  end
@@ -127,9 +126,9 @@ end
127
126
 
128
127
  #### Using the employees_ignore_create_with_http_info variant
129
128
 
130
- This returns an Array which contains the response data, status code and headers.
129
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
131
130
 
132
- > <Array(<IgnoreCommonModel>, Integer, Hash)> employees_ignore_create_with_http_info(x_account_token, model_id, ignore_common_model_request)
131
+ > <Array(nil, Integer, Hash)> employees_ignore_create_with_http_info(x_account_token, model_id, ignore_common_model_request)
133
132
 
134
133
  ```ruby
135
134
  begin
@@ -137,7 +136,7 @@ begin
137
136
  data, status_code, headers = api_instance.employees_ignore_create_with_http_info(x_account_token, model_id, ignore_common_model_request)
138
137
  p status_code # => 2xx
139
138
  p headers # => { ... }
140
- p data # => <IgnoreCommonModel>
139
+ p data # => nil
141
140
  rescue MergeHRISClient::ApiError => e
142
141
  puts "Error when calling EmployeesApi->employees_ignore_create_with_http_info: #{e}"
143
142
  end
@@ -153,7 +152,7 @@ end
153
152
 
154
153
  ### Return type
155
154
 
156
- [**IgnoreCommonModel**](IgnoreCommonModel.md)
155
+ nil (empty response body)
157
156
 
158
157
  ### Authorization
159
158
 
@@ -162,7 +161,7 @@ end
162
161
  ### HTTP request headers
163
162
 
164
163
  - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
165
- - **Accept**: application/json
164
+ - **Accept**: Not defined
166
165
 
167
166
 
168
167
  ## employees_list
@@ -194,22 +193,28 @@ opts = {
194
193
  created_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects created before this datetime.
195
194
  cursor: 'cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw', # String | The pagination cursor value.
196
195
  display_full_name: 'display_full_name_example', # String | If provided, will only return employees with this display name.
197
- employment_status: 'ACTIVE', # String | If provided, will only return employees with this employment status.
196
+ employment_status: 'ACTIVE', # String | If provided, will only return employees with this employment status. * `ACTIVE` - ACTIVE * `PENDING` - PENDING * `INACTIVE` - INACTIVE
198
197
  expand: 'company', # String | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
199
198
  first_name: 'first_name_example', # String | If provided, will only return employees with this first name.
199
+ groups: 'groups_example', # String | If provided, will only return employees matching the group ids; multiple groups can be separated by commas.
200
200
  include_deleted_data: true, # Boolean | Whether to include data that was marked as deleted by third party webhooks.
201
201
  include_remote_data: true, # Boolean | Whether to include the original data Merge fetched from the third-party to produce these models.
202
202
  include_sensitive_fields: true, # Boolean | Whether to include sensitive fields (such as social security numbers) in the response.
203
203
  last_name: 'last_name_example', # String | If provided, will only return employees with this last name.
204
204
  manager_id: 'manager_id_example', # String | If provided, will only return employees for this manager.
205
- modified_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects modified after this datetime.
206
- modified_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects modified before this datetime.
205
+ modified_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, only objects synced by Merge after this date time will be returned.
206
+ modified_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, only objects synced by Merge before this date time will be returned.
207
207
  page_size: 56, # Integer | Number of results to return per page.
208
208
  pay_group_id: 'pay_group_id_example', # String | If provided, will only return employees for this pay group
209
209
  personal_email: TODO, # String | If provided, will only return Employees with this personal email
210
- remote_fields: 'employment_status', # String | Which fields should be returned in non-normalized form.
210
+ remote_fields: 'employment_status', # String | Deprecated. Use show_enum_origins.
211
211
  remote_id: 'remote_id_example', # String | The API provider's ID for the given object.
212
+ show_enum_origins: 'employment_status', # String | Which fields should be returned in non-normalized form.
213
+ started_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return employees that started after this datetime.
214
+ started_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return employees that started before this datetime.
212
215
  team_id: 'team_id_example', # String | If provided, will only return employees for this team.
216
+ terminated_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return employees that were terminated after this datetime.
217
+ terminated_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return employees that were terminated before this datetime.
213
218
  work_email: TODO, # String | If provided, will only return Employees with this work email
214
219
  work_location_id: 'work_location_id_example' # String | If provided, will only return employees for this location.
215
220
  }
@@ -251,22 +256,28 @@ end
251
256
  | **created_before** | **Time** | If provided, will only return objects created before this datetime. | [optional] |
252
257
  | **cursor** | **String** | The pagination cursor value. | [optional] |
253
258
  | **display_full_name** | **String** | If provided, will only return employees with this display name. | [optional] |
254
- | **employment_status** | **String** | If provided, will only return employees with this employment status. | [optional] |
259
+ | **employment_status** | **String** | If provided, will only return employees with this employment status. * &#x60;ACTIVE&#x60; - ACTIVE * &#x60;PENDING&#x60; - PENDING * &#x60;INACTIVE&#x60; - INACTIVE | [optional] |
255
260
  | **expand** | **String** | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. | [optional] |
256
261
  | **first_name** | **String** | If provided, will only return employees with this first name. | [optional] |
262
+ | **groups** | **String** | If provided, will only return employees matching the group ids; multiple groups can be separated by commas. | [optional] |
257
263
  | **include_deleted_data** | **Boolean** | Whether to include data that was marked as deleted by third party webhooks. | [optional] |
258
264
  | **include_remote_data** | **Boolean** | Whether to include the original data Merge fetched from the third-party to produce these models. | [optional] |
259
265
  | **include_sensitive_fields** | **Boolean** | Whether to include sensitive fields (such as social security numbers) in the response. | [optional] |
260
266
  | **last_name** | **String** | If provided, will only return employees with this last name. | [optional] |
261
267
  | **manager_id** | **String** | If provided, will only return employees for this manager. | [optional] |
262
- | **modified_after** | **Time** | If provided, will only return objects modified after this datetime. | [optional] |
263
- | **modified_before** | **Time** | If provided, will only return objects modified before this datetime. | [optional] |
268
+ | **modified_after** | **Time** | If provided, only objects synced by Merge after this date time will be returned. | [optional] |
269
+ | **modified_before** | **Time** | If provided, only objects synced by Merge before this date time will be returned. | [optional] |
264
270
  | **page_size** | **Integer** | Number of results to return per page. | [optional] |
265
271
  | **pay_group_id** | **String** | If provided, will only return employees for this pay group | [optional] |
266
272
  | **personal_email** | [**String**](.md) | If provided, will only return Employees with this personal email | [optional] |
267
- | **remote_fields** | **String** | Which fields should be returned in non-normalized form. | [optional] |
273
+ | **remote_fields** | **String** | Deprecated. Use show_enum_origins. | [optional] |
268
274
  | **remote_id** | **String** | The API provider&#39;s ID for the given object. | [optional] |
275
+ | **show_enum_origins** | **String** | Which fields should be returned in non-normalized form. | [optional] |
276
+ | **started_after** | **Time** | If provided, will only return employees that started after this datetime. | [optional] |
277
+ | **started_before** | **Time** | If provided, will only return employees that started before this datetime. | [optional] |
269
278
  | **team_id** | **String** | If provided, will only return employees for this team. | [optional] |
279
+ | **terminated_after** | **Time** | If provided, will only return employees that were terminated after this datetime. | [optional] |
280
+ | **terminated_before** | **Time** | If provided, will only return employees that were terminated before this datetime. | [optional] |
270
281
  | **work_email** | [**String**](.md) | If provided, will only return Employees with this work email | [optional] |
271
282
  | **work_location_id** | **String** | If provided, will only return employees for this location. | [optional] |
272
283
 
@@ -383,7 +394,8 @@ opts = {
383
394
  expand: 'company', # String | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
384
395
  include_remote_data: true, # Boolean | Whether to include the original data Merge fetched from the third-party to produce these models.
385
396
  include_sensitive_fields: true, # Boolean | Whether to include sensitive fields (such as social security numbers) in the response.
386
- remote_fields: 'employment_status' # String | Which fields should be returned in non-normalized form.
397
+ remote_fields: 'employment_status', # String | Deprecated. Use show_enum_origins.
398
+ show_enum_origins: 'employment_status' # String | Which fields should be returned in non-normalized form.
387
399
  }
388
400
 
389
401
  begin
@@ -422,7 +434,8 @@ end
422
434
  | **expand** | **String** | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. | [optional] |
423
435
  | **include_remote_data** | **Boolean** | Whether to include the original data Merge fetched from the third-party to produce these models. | [optional] |
424
436
  | **include_sensitive_fields** | **Boolean** | Whether to include sensitive fields (such as social security numbers) in the response. | [optional] |
425
- | **remote_fields** | **String** | Which fields should be returned in non-normalized form. | [optional] |
437
+ | **remote_fields** | **String** | Deprecated. Use show_enum_origins. | [optional] |
438
+ | **show_enum_origins** | **String** | Which fields should be returned in non-normalized form. | [optional] |
426
439
 
427
440
  ### Return type
428
441
 
@@ -0,0 +1,36 @@
1
+ # MergeHRISClient::EmployerBenefit
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | | [optional][readonly] |
8
+ | **remote_id** | **String** | The third-party API ID of the matching object. | [optional] |
9
+ | **benefit_plan_type** | [**BenefitPlanTypeEnum**](BenefitPlanTypeEnum.md) | The type of benefit plan. * &#x60;MEDICAL&#x60; - MEDICAL * &#x60;HEALTH_SAVINGS&#x60; - HEALTH_SAVINGS * &#x60;INSURANCE&#x60; - INSURANCE * &#x60;RETIREMENT&#x60; - RETIREMENT * &#x60;OTHER&#x60; - OTHER | [optional] |
10
+ | **name** | **String** | The employer benefit&#39;s name - typically the carrier or network name. | [optional] |
11
+ | **description** | **String** | The employer benefit&#39;s description. | [optional] |
12
+ | **deduction_code** | **String** | The employer benefit&#39;s deduction code. | [optional] |
13
+ | **remote_was_deleted** | **Boolean** | Indicates whether or not this object has been deleted by third party webhooks. | [optional][readonly] |
14
+ | **modified_at** | **Time** | This is the datetime that this object was last updated by Merge | [optional][readonly] |
15
+ | **field_mappings** | [**Hash&lt;String, AnyType&gt;**](AnyType.md) | | [optional][readonly] |
16
+ | **remote_data** | **Array&lt;Hash&lt;String, AnyType&gt;&gt;** | | [optional] |
17
+
18
+ ## Example
19
+
20
+ ```ruby
21
+ require 'merge_hris_client'
22
+
23
+ instance = MergeHRISClient::EmployerBenefit.new(
24
+ id: null,
25
+ remote_id: 19202939,
26
+ benefit_plan_type: MEDICAL,
27
+ name: Kaiser Permanente Medical Plan,
28
+ description: HDHP Silver Plan,
29
+ deduction_code: COL,
30
+ remote_was_deleted: null,
31
+ modified_at: 2021-10-16T00:00Z,
32
+ field_mappings: {&quot;organization_defined_targets&quot;:{&quot;custom_key&quot;:&quot;custom_value&quot;},&quot;linked_account_defined_targets&quot;:{&quot;custom_key&quot;:&quot;custom_value&quot;}},
33
+ remote_data: null
34
+ )
35
+ ```
36
+