merge_hris_client 3.0.0 → 3.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (197) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +27 -8
  3. data/docs/AccountIntegration.md +6 -2
  4. data/docs/BankInfo.md +9 -5
  5. data/docs/BankInfoApi.md +15 -11
  6. data/docs/Benefit.md +8 -4
  7. data/docs/BenefitsApi.md +6 -6
  8. data/docs/CommonModelScopeData.md +20 -0
  9. data/docs/CommonModelScopes.md +20 -0
  10. data/docs/CommonModelScopesApi.md +157 -0
  11. data/docs/CommonModelScopesBodyRequest.md +22 -0
  12. data/docs/CommonModelScopesDisabledModels.md +26 -0
  13. data/docs/CommonModelScopesDisabledModelsEnabledActionsEnum.md +15 -0
  14. data/docs/CommonModelScopesPostInnerDeserializerRequest.md +22 -0
  15. data/docs/CommonModelScopesUpdateSerializer.md +18 -0
  16. data/docs/CompaniesApi.md +4 -4
  17. data/docs/Company.md +7 -3
  18. data/docs/ConditionSchema.md +30 -0
  19. data/docs/ConditionTypeEnum.md +15 -0
  20. data/docs/DataPassthroughRequest.md +1 -1
  21. data/docs/Deduction.md +11 -5
  22. data/docs/Earning.md +10 -2
  23. data/docs/Employee.md +19 -15
  24. data/docs/EmployeePayrollRun.md +11 -7
  25. data/docs/EmployeePayrollRunsApi.md +4 -4
  26. data/docs/EmployeeRequest.md +16 -18
  27. data/docs/EmployeesApi.md +31 -18
  28. data/docs/Employment.md +14 -10
  29. data/docs/EmploymentsApi.md +13 -9
  30. data/docs/EnabledActionsEnum.md +15 -0
  31. data/docs/EndUserDetailsRequest.md +5 -3
  32. data/docs/ForceResyncApi.md +1 -1
  33. data/docs/Group.md +8 -4
  34. data/docs/GroupsApi.md +15 -9
  35. data/docs/Issue.md +10 -8
  36. data/docs/IssuesApi.md +6 -6
  37. data/docs/LinkToken.md +1 -1
  38. data/docs/LinkedAccountCondition.md +28 -0
  39. data/docs/LinkedAccountConditionRequest.md +22 -0
  40. data/docs/LinkedAccountSelectiveSyncConfiguration.md +18 -0
  41. data/docs/LinkedAccountSelectiveSyncConfigurationListRequest.md +18 -0
  42. data/docs/LinkedAccountSelectiveSyncConfigurationRequest.md +18 -0
  43. data/docs/LinkedAccountsApi.md +2 -2
  44. data/docs/Location.md +9 -5
  45. data/docs/LocationsApi.md +13 -9
  46. data/docs/MetaResponse.md +2 -0
  47. data/docs/MultipartFormFieldRequest.md +1 -1
  48. data/docs/OperatorSchema.md +20 -0
  49. data/docs/PaginatedConditionSchemaList.md +22 -0
  50. data/docs/PayGroup.md +7 -3
  51. data/docs/PayGroupsApi.md +4 -4
  52. data/docs/PayrollRun.md +9 -5
  53. data/docs/PayrollRunsApi.md +14 -10
  54. data/docs/SelectiveSyncApi.md +233 -0
  55. data/docs/SelectiveSyncConfigurationsUsageEnum.md +15 -0
  56. data/docs/SyncStatus.md +5 -3
  57. data/docs/SyncStatusApi.md +11 -15
  58. data/docs/Tax.md +9 -1
  59. data/docs/Team.md +8 -4
  60. data/docs/TeamsApi.md +4 -4
  61. data/docs/TimeOff.md +13 -9
  62. data/docs/TimeOffApi.md +16 -12
  63. data/docs/TimeOffBalance.md +10 -6
  64. data/docs/TimeOffBalancesApi.md +15 -11
  65. data/docs/TimeOffRequest.md +11 -9
  66. data/lib/merge_hris_client/api/bank_info_api.rb +24 -10
  67. data/lib/merge_hris_client/api/benefits_api.rb +6 -6
  68. data/lib/merge_hris_client/api/common_model_scopes_api.rb +146 -0
  69. data/lib/merge_hris_client/api/companies_api.rb +4 -4
  70. data/lib/merge_hris_client/api/employee_payroll_runs_api.rb +4 -4
  71. data/lib/merge_hris_client/api/employees_api.rb +44 -17
  72. data/lib/merge_hris_client/api/employments_api.rb +22 -8
  73. data/lib/merge_hris_client/api/force_resync_api.rb +2 -2
  74. data/lib/merge_hris_client/api/groups_api.rb +25 -8
  75. data/lib/merge_hris_client/api/issues_api.rb +6 -6
  76. data/lib/merge_hris_client/api/linked_accounts_api.rb +3 -3
  77. data/lib/merge_hris_client/api/locations_api.rb +22 -8
  78. data/lib/merge_hris_client/api/pay_groups_api.rb +4 -4
  79. data/lib/merge_hris_client/api/payroll_runs_api.rb +24 -10
  80. data/lib/merge_hris_client/api/selective_sync_api.rb +225 -0
  81. data/lib/merge_hris_client/api/sync_status_api.rb +2 -2
  82. data/lib/merge_hris_client/api/teams_api.rb +4 -4
  83. data/lib/merge_hris_client/api/time_off_api.rb +26 -12
  84. data/lib/merge_hris_client/api/time_off_balances_api.rb +24 -10
  85. data/lib/merge_hris_client/models/account_integration.rb +30 -8
  86. data/lib/merge_hris_client/models/bank_info.rb +39 -16
  87. data/lib/merge_hris_client/models/benefit.rb +38 -15
  88. data/lib/merge_hris_client/models/categories_enum.rb +3 -1
  89. data/lib/merge_hris_client/models/category_enum.rb +3 -1
  90. data/lib/merge_hris_client/models/common_model_scope_data.rb +234 -0
  91. data/lib/merge_hris_client/models/common_model_scopes.rb +234 -0
  92. data/lib/merge_hris_client/models/common_model_scopes_body_request.rb +274 -0
  93. data/lib/merge_hris_client/models/common_model_scopes_disabled_models.rb +283 -0
  94. data/lib/merge_hris_client/models/common_model_scopes_disabled_models_enabled_actions_enum.rb +45 -0
  95. data/lib/merge_hris_client/models/common_model_scopes_post_inner_deserializer_request.rb +274 -0
  96. data/lib/merge_hris_client/models/common_model_scopes_update_serializer.rb +226 -0
  97. data/lib/merge_hris_client/models/company.rb +37 -15
  98. data/lib/merge_hris_client/models/condition_schema.rb +298 -0
  99. data/lib/merge_hris_client/models/condition_type_enum.rb +50 -0
  100. data/lib/merge_hris_client/models/data_passthrough_request.rb +1 -0
  101. data/lib/merge_hris_client/models/deduction.rb +50 -17
  102. data/lib/merge_hris_client/models/earning.rb +51 -6
  103. data/lib/merge_hris_client/models/employee.rb +51 -23
  104. data/lib/merge_hris_client/models/employee_payroll_run.rb +41 -17
  105. data/lib/merge_hris_client/models/employee_request.rb +34 -39
  106. data/lib/merge_hris_client/models/employment.rb +44 -20
  107. data/lib/merge_hris_client/models/enabled_actions_enum.rb +45 -0
  108. data/lib/merge_hris_client/models/end_user_details_request.rb +20 -7
  109. data/lib/merge_hris_client/models/group.rb +38 -16
  110. data/lib/merge_hris_client/models/group_type_enum.rb +2 -1
  111. data/lib/merge_hris_client/models/issue.rb +16 -4
  112. data/lib/merge_hris_client/models/link_token.rb +0 -5
  113. data/lib/merge_hris_client/models/linked_account_condition.rb +282 -0
  114. data/lib/merge_hris_client/models/linked_account_condition_request.rb +269 -0
  115. data/lib/merge_hris_client/models/linked_account_selective_sync_configuration.rb +221 -0
  116. data/lib/merge_hris_client/models/linked_account_selective_sync_configuration_list_request.rb +226 -0
  117. data/lib/merge_hris_client/models/linked_account_selective_sync_configuration_request.rb +226 -0
  118. data/lib/merge_hris_client/models/location.rb +39 -17
  119. data/lib/merge_hris_client/models/meta_response.rb +12 -1
  120. data/lib/merge_hris_client/models/multipart_form_field_request.rb +1 -1
  121. data/lib/merge_hris_client/models/operator_schema.rb +229 -0
  122. data/lib/merge_hris_client/models/paginated_condition_schema_list.rb +240 -0
  123. data/lib/merge_hris_client/models/pay_frequency_enum.rb +2 -1
  124. data/lib/merge_hris_client/models/pay_group.rb +37 -15
  125. data/lib/merge_hris_client/models/pay_period_enum.rb +2 -1
  126. data/lib/merge_hris_client/models/payroll_run.rb +39 -17
  127. data/lib/merge_hris_client/models/selective_sync_configurations_usage_enum.rb +45 -0
  128. data/lib/merge_hris_client/models/sync_status.rb +13 -4
  129. data/lib/merge_hris_client/models/sync_status_status_enum.rb +2 -1
  130. data/lib/merge_hris_client/models/tax.rb +50 -5
  131. data/lib/merge_hris_client/models/team.rb +38 -15
  132. data/lib/merge_hris_client/models/time_off.rb +43 -19
  133. data/lib/merge_hris_client/models/time_off_balance.rb +40 -17
  134. data/lib/merge_hris_client/models/time_off_request.rb +36 -21
  135. data/lib/merge_hris_client/version.rb +1 -1
  136. data/lib/merge_hris_client.rb +20 -3
  137. data/spec/api/bank_info_api_spec.rb +7 -5
  138. data/spec/api/benefits_api_spec.rb +3 -3
  139. data/spec/api/common_model_scopes_api_spec.rb +58 -0
  140. data/spec/api/companies_api_spec.rb +2 -2
  141. data/spec/api/employee_payroll_runs_api_spec.rb +2 -2
  142. data/spec/api/employees_api_spec.rb +13 -6
  143. data/spec/api/employments_api_spec.rb +6 -4
  144. data/spec/api/force_resync_api_spec.rb +1 -1
  145. data/spec/api/groups_api_spec.rb +7 -4
  146. data/spec/api/issues_api_spec.rb +3 -3
  147. data/spec/api/linked_accounts_api_spec.rb +1 -1
  148. data/spec/api/locations_api_spec.rb +6 -4
  149. data/spec/api/pay_groups_api_spec.rb +2 -2
  150. data/spec/api/payroll_runs_api_spec.rb +7 -5
  151. data/spec/api/selective_sync_api_spec.rb +72 -0
  152. data/spec/api/sync_status_api_spec.rb +1 -1
  153. data/spec/api/teams_api_spec.rb +2 -2
  154. data/spec/api/time_off_api_spec.rb +8 -6
  155. data/spec/api/time_off_balances_api_spec.rb +7 -5
  156. data/spec/models/account_integration_spec.rb +12 -0
  157. data/spec/models/bank_info_spec.rb +14 -2
  158. data/spec/models/benefit_spec.rb +14 -2
  159. data/spec/models/common_model_scope_data_spec.rb +40 -0
  160. data/spec/models/common_model_scopes_body_request_spec.rb +46 -0
  161. data/spec/models/common_model_scopes_disabled_models_enabled_actions_enum_spec.rb +28 -0
  162. data/spec/models/common_model_scopes_disabled_models_spec.rb +58 -0
  163. data/spec/models/common_model_scopes_post_inner_deserializer_request_spec.rb +46 -0
  164. data/spec/models/common_model_scopes_spec.rb +40 -0
  165. data/spec/models/common_model_scopes_update_serializer_spec.rb +34 -0
  166. data/spec/models/company_spec.rb +14 -2
  167. data/spec/models/condition_schema_spec.rb +70 -0
  168. data/spec/models/condition_type_enum_spec.rb +28 -0
  169. data/spec/models/deduction_spec.rb +20 -2
  170. data/spec/models/earning_spec.rb +24 -0
  171. data/spec/models/employee_payroll_run_spec.rb +14 -2
  172. data/spec/models/employee_request_spec.rb +5 -11
  173. data/spec/models/employee_spec.rb +15 -3
  174. data/spec/models/employment_spec.rb +14 -2
  175. data/spec/models/enabled_actions_enum_spec.rb +28 -0
  176. data/spec/models/end_user_details_request_spec.rb +6 -0
  177. data/spec/models/group_spec.rb +14 -2
  178. data/spec/models/issue_spec.rb +6 -0
  179. data/spec/models/linked_account_condition_request_spec.rb +46 -0
  180. data/spec/models/linked_account_condition_spec.rb +64 -0
  181. data/spec/models/linked_account_selective_sync_configuration_list_request_spec.rb +34 -0
  182. data/spec/models/linked_account_selective_sync_configuration_request_spec.rb +34 -0
  183. data/spec/models/linked_account_selective_sync_configuration_spec.rb +34 -0
  184. data/spec/models/location_spec.rb +14 -2
  185. data/spec/models/meta_response_spec.rb +6 -0
  186. data/spec/models/operator_schema_spec.rb +40 -0
  187. data/spec/models/paginated_condition_schema_list_spec.rb +46 -0
  188. data/spec/models/pay_group_spec.rb +14 -2
  189. data/spec/models/payroll_run_spec.rb +14 -2
  190. data/spec/models/selective_sync_configurations_usage_enum_spec.rb +28 -0
  191. data/spec/models/sync_status_spec.rb +6 -0
  192. data/spec/models/tax_spec.rb +24 -0
  193. data/spec/models/team_spec.rb +14 -2
  194. data/spec/models/time_off_balance_spec.rb +14 -2
  195. data/spec/models/time_off_request_spec.rb +12 -6
  196. data/spec/models/time_off_spec.rb +14 -2
  197. metadata +184 -104
@@ -14,14 +14,12 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module MergeHRISClient
17
- # # The Employee Object ### Description The `Employee` object is used to represent an Employee for a company. ### Usage Example Fetch from the `LIST Employee` endpoint and filter by `ID` to show all employees.
17
+ # # The Employee Object ### Description The `Employee` object is used to represent any person who has been employed by a company. ### Usage Example Fetch from the `LIST Employee` endpoint and filter by `ID` to show all employees.
18
18
  class EmployeeRequest
19
- # The third-party API ID of the matching object.
20
- attr_accessor :remote_id
21
-
22
- # The employee'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.
19
+ # The employee's number that appears in the third-party integration's UI.
23
20
  attr_accessor :employee_number
24
21
 
22
+ # The ID of the employee's company.
25
23
  attr_accessor :company
26
24
 
27
25
  # The employee's first name.
@@ -50,26 +48,31 @@ module MergeHRISClient
50
48
  # Array of `Employment` IDs for this Employee.
51
49
  attr_accessor :employments
52
50
 
51
+ # The employee's home address.
53
52
  attr_accessor :home_location
54
53
 
54
+ # The employee's work address.
55
55
  attr_accessor :work_location
56
56
 
57
+ # The employee ID of the employee's manager.
57
58
  attr_accessor :manager
58
59
 
60
+ # The employee's team.
59
61
  attr_accessor :team
60
62
 
63
+ # The employee's pay group
61
64
  attr_accessor :pay_group
62
65
 
63
66
  # The employee's social security number.
64
67
  attr_accessor :ssn
65
68
 
66
- # The employee's gender.
69
+ # The employee's gender. * `MALE` - MALE * `FEMALE` - FEMALE * `NON-BINARY` - NON-BINARY * `OTHER` - OTHER * `PREFER_NOT_TO_DISCLOSE` - PREFER_NOT_TO_DISCLOSE
67
70
  attr_accessor :gender
68
71
 
69
- # The employee's ethnicity.
72
+ # The employee's ethnicity. * `AMERICAN_INDIAN_OR_ALASKA_NATIVE` - AMERICAN_INDIAN_OR_ALASKA_NATIVE * `ASIAN_OR_INDIAN_SUBCONTINENT` - ASIAN_OR_INDIAN_SUBCONTINENT * `BLACK_OR_AFRICAN_AMERICAN` - BLACK_OR_AFRICAN_AMERICAN * `HISPANIC_OR_LATINO` - HISPANIC_OR_LATINO * `NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER` - NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER * `TWO_OR_MORE_RACES` - TWO_OR_MORE_RACES * `WHITE` - WHITE * `PREFER_NOT_TO_DISCLOSE` - PREFER_NOT_TO_DISCLOSE
70
73
  attr_accessor :ethnicity
71
74
 
72
- # The employee's marital status.
75
+ # The employee's filing status as related to marital status. * `SINGLE` - SINGLE * `MARRIED_FILING_JOINTLY` - MARRIED_FILING_JOINTLY * `MARRIED_FILING_SEPARATELY` - MARRIED_FILING_SEPARATELY * `HEAD_OF_HOUSEHOLD` - HEAD_OF_HOUSEHOLD * `QUALIFYING_WIDOW_OR_WIDOWER_WITH_DEPENDENT_CHILD` - QUALIFYING_WIDOW_OR_WIDOWER_WITH_DEPENDENT_CHILD
73
76
  attr_accessor :marital_status
74
77
 
75
78
  # The employee's date of birth.
@@ -78,13 +81,10 @@ module MergeHRISClient
78
81
  # 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're looking for the employee's start date, refer to the start_date field.
79
82
  attr_accessor :hire_date
80
83
 
81
- # The date that the employee started working. If an employee has multiple start dates from previous employments, this represents the most recent start date.
84
+ # The date that the employee started working. If an employee was rehired, the most recent start date will be returned.
82
85
  attr_accessor :start_date
83
86
 
84
- # When the third party's employee was created.
85
- attr_accessor :remote_created_at
86
-
87
- # The employment status of the employee.
87
+ # The employment status of the employee. * `ACTIVE` - ACTIVE * `PENDING` - PENDING * `INACTIVE` - INACTIVE
88
88
  attr_accessor :employment_status
89
89
 
90
90
  # The employee's termination date.
@@ -93,13 +93,13 @@ module MergeHRISClient
93
93
  # The URL of the employee's avatar image.
94
94
  attr_accessor :avatar
95
95
 
96
- # Custom fields configured for a given model.
97
- attr_accessor :custom_fields
96
+ attr_accessor :integration_params
97
+
98
+ attr_accessor :linked_account_params
98
99
 
99
100
  # Attribute mapping from ruby-style variable name to JSON key.
100
101
  def self.attribute_map
101
102
  {
102
- :'remote_id' => :'remote_id',
103
103
  :'employee_number' => :'employee_number',
104
104
  :'company' => :'company',
105
105
  :'first_name' => :'first_name',
@@ -123,11 +123,11 @@ module MergeHRISClient
123
123
  :'date_of_birth' => :'date_of_birth',
124
124
  :'hire_date' => :'hire_date',
125
125
  :'start_date' => :'start_date',
126
- :'remote_created_at' => :'remote_created_at',
127
126
  :'employment_status' => :'employment_status',
128
127
  :'termination_date' => :'termination_date',
129
128
  :'avatar' => :'avatar',
130
- :'custom_fields' => :'custom_fields'
129
+ :'integration_params' => :'integration_params',
130
+ :'linked_account_params' => :'linked_account_params'
131
131
  }
132
132
  end
133
133
 
@@ -139,7 +139,6 @@ module MergeHRISClient
139
139
  # Attribute type mapping.
140
140
  def self.openapi_types
141
141
  {
142
- :'remote_id' => :'String',
143
142
  :'employee_number' => :'String',
144
143
  :'company' => :'String',
145
144
  :'first_name' => :'String',
@@ -163,18 +162,17 @@ module MergeHRISClient
163
162
  :'date_of_birth' => :'Time',
164
163
  :'hire_date' => :'Time',
165
164
  :'start_date' => :'Time',
166
- :'remote_created_at' => :'Time',
167
165
  :'employment_status' => :'EmploymentStatusEnum',
168
166
  :'termination_date' => :'Time',
169
167
  :'avatar' => :'String',
170
- :'custom_fields' => :'Hash<String, Object>'
168
+ :'integration_params' => :'Hash<String, Object>',
169
+ :'linked_account_params' => :'Hash<String, Object>'
171
170
  }
172
171
  end
173
172
 
174
173
  # List of attributes with nullable: true
175
174
  def self.openapi_nullable
176
175
  Set.new([
177
- :'remote_id',
178
176
  :'employee_number',
179
177
  :'company',
180
178
  :'first_name',
@@ -196,11 +194,11 @@ module MergeHRISClient
196
194
  :'date_of_birth',
197
195
  :'hire_date',
198
196
  :'start_date',
199
- :'remote_created_at',
200
197
  :'employment_status',
201
198
  :'termination_date',
202
199
  :'avatar',
203
- :'custom_fields'
200
+ :'integration_params',
201
+ :'linked_account_params'
204
202
  ])
205
203
  end
206
204
 
@@ -219,10 +217,6 @@ module MergeHRISClient
219
217
  h[k.to_sym] = v
220
218
  }
221
219
 
222
- if attributes.key?(:'remote_id')
223
- self.remote_id = attributes[:'remote_id']
224
- end
225
-
226
220
  if attributes.key?(:'employee_number')
227
221
  self.employee_number = attributes[:'employee_number']
228
222
  end
@@ -319,10 +313,6 @@ module MergeHRISClient
319
313
  self.start_date = attributes[:'start_date']
320
314
  end
321
315
 
322
- if attributes.key?(:'remote_created_at')
323
- self.remote_created_at = attributes[:'remote_created_at']
324
- end
325
-
326
316
  if attributes.key?(:'employment_status')
327
317
  self.employment_status = attributes[:'employment_status']
328
318
  end
@@ -335,9 +325,15 @@ module MergeHRISClient
335
325
  self.avatar = attributes[:'avatar']
336
326
  end
337
327
 
338
- if attributes.key?(:'custom_fields')
339
- if (value = attributes[:'custom_fields']).is_a?(Hash)
340
- self.custom_fields = value
328
+ if attributes.key?(:'integration_params')
329
+ if (value = attributes[:'integration_params']).is_a?(Hash)
330
+ self.integration_params = value
331
+ end
332
+ end
333
+
334
+ if attributes.key?(:'linked_account_params')
335
+ if (value = attributes[:'linked_account_params']).is_a?(Hash)
336
+ self.linked_account_params = value
341
337
  end
342
338
  end
343
339
  end
@@ -420,7 +416,6 @@ module MergeHRISClient
420
416
  def ==(o)
421
417
  return true if self.equal?(o)
422
418
  self.class == o.class &&
423
- remote_id == o.remote_id &&
424
419
  employee_number == o.employee_number &&
425
420
  company == o.company &&
426
421
  first_name == o.first_name &&
@@ -444,11 +439,11 @@ module MergeHRISClient
444
439
  date_of_birth == o.date_of_birth &&
445
440
  hire_date == o.hire_date &&
446
441
  start_date == o.start_date &&
447
- remote_created_at == o.remote_created_at &&
448
442
  employment_status == o.employment_status &&
449
443
  termination_date == o.termination_date &&
450
444
  avatar == o.avatar &&
451
- custom_fields == o.custom_fields
445
+ integration_params == o.integration_params &&
446
+ linked_account_params == o.linked_account_params
452
447
  end
453
448
 
454
449
  # @see the `==` method
@@ -460,7 +455,7 @@ module MergeHRISClient
460
455
  # Calculates hash code according to all attributes.
461
456
  # @return [Integer] Hash code
462
457
  def hash
463
- [remote_id, employee_number, company, first_name, last_name, display_full_name, username, groups, work_email, personal_email, mobile_phone_number, employments, home_location, work_location, manager, team, pay_group, ssn, gender, ethnicity, marital_status, date_of_birth, hire_date, start_date, remote_created_at, employment_status, termination_date, avatar, custom_fields].hash
458
+ [employee_number, company, first_name, last_name, display_full_name, username, groups, work_email, personal_email, mobile_phone_number, employments, home_location, work_location, manager, team, pay_group, ssn, gender, ethnicity, marital_status, date_of_birth, hire_date, start_date, employment_status, termination_date, avatar, integration_params, linked_account_params].hash
464
459
  end
465
460
 
466
461
  # Builds the object from hash
@@ -14,13 +14,14 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module MergeHRISClient
17
- # # The Employment Object ### Description The `Employment` object is used to represent an employment position at a company. These are associated with the employee filling the role. Please note: Employment objects are constructed if the object does not exist in the remote system. ### Usage Example Fetch from the `LIST Employments` endpoint and filter by `ID` to show all employees.
17
+ # # The Employment Object ### Description The `Employment` object is used to represent a job position at a company. Please note: When there is a change in pay or title, integrations with historical data will create new Employment objects while integrations without historical data will update existing ones. ### Usage Example Fetch from the `LIST Employments` endpoint and filter by `ID` to show all employees.
18
18
  class Employment
19
19
  attr_accessor :id
20
20
 
21
21
  # The third-party API ID of the matching object.
22
22
  attr_accessor :remote_id
23
23
 
24
+ # The employee holding this position.
24
25
  attr_accessor :employee
25
26
 
26
27
  # The position's title.
@@ -29,31 +30,37 @@ module MergeHRISClient
29
30
  # The position's pay rate in dollars.
30
31
  attr_accessor :pay_rate
31
32
 
32
- # The time period this pay rate encompasses.
33
+ # The time period this pay rate encompasses. * `HOUR` - HOUR * `DAY` - DAY * `WEEK` - WEEK * `EVERY_TWO_WEEKS` - EVERY_TWO_WEEKS * `SEMIMONTHLY` - SEMIMONTHLY * `MONTH` - MONTH * `QUARTER` - QUARTER * `EVERY_SIX_MONTHS` - EVERY_SIX_MONTHS * `YEAR` - YEAR
33
34
  attr_accessor :pay_period
34
35
 
35
- # The position's pay frequency.
36
+ # The position's pay frequency. * `WEEKLY` - WEEKLY * `BIWEEKLY` - BIWEEKLY * `MONTHLY` - MONTHLY * `QUARTERLY` - QUARTERLY * `SEMIANNUALLY` - SEMIANNUALLY * `ANNUALLY` - ANNUALLY * `THIRTEEN-MONTHLY` - THIRTEEN-MONTHLY * `PRO_RATA` - PRO_RATA * `SEMIMONTHLY` - SEMIMONTHLY
36
37
  attr_accessor :pay_frequency
37
38
 
38
- # The position's currency code.
39
+ # The position's currency code. * `XUA` - ADB Unit of Account * `AFN` - Afghan Afghani * `AFA` - Afghan Afghani (1927–2002) * `ALL` - Albanian Lek * `ALK` - Albanian Lek (1946–1965) * `DZD` - Algerian Dinar * `ADP` - Andorran Peseta * `AOA` - Angolan Kwanza * `AOK` - Angolan Kwanza (1977–1991) * `AON` - Angolan New Kwanza (1990–2000) * `AOR` - Angolan Readjusted Kwanza (1995–1999) * `ARA` - Argentine Austral * `ARS` - Argentine Peso * `ARM` - Argentine Peso (1881–1970) * `ARP` - Argentine Peso (1983–1985) * `ARL` - Argentine Peso Ley (1970–1983) * `AMD` - Armenian Dram * `AWG` - Aruban Florin * `AUD` - Australian Dollar * `ATS` - Austrian Schilling * `AZN` - Azerbaijani Manat * `AZM` - Azerbaijani Manat (1993–2006) * `BSD` - Bahamian Dollar * `BHD` - Bahraini Dinar * `BDT` - Bangladeshi Taka * `BBD` - Barbadian Dollar * `BYN` - Belarusian Ruble * `BYB` - Belarusian Ruble (1994–1999) * `BYR` - Belarusian Ruble (2000–2016) * `BEF` - Belgian Franc * `BEC` - Belgian Franc (convertible) * `BEL` - Belgian Franc (financial) * `BZD` - Belize Dollar * `BMD` - Bermudan Dollar * `BTN` - Bhutanese Ngultrum * `BOB` - Bolivian Boliviano * `BOL` - Bolivian Boliviano (1863–1963) * `BOV` - Bolivian Mvdol * `BOP` - Bolivian Peso * `BAM` - Bosnia-Herzegovina Convertible Mark * `BAD` - Bosnia-Herzegovina Dinar (1992–1994) * `BAN` - Bosnia-Herzegovina New Dinar (1994–1997) * `BWP` - Botswanan Pula * `BRC` - Brazilian Cruzado (1986–1989) * `BRZ` - Brazilian Cruzeiro (1942–1967) * `BRE` - Brazilian Cruzeiro (1990–1993) * `BRR` - Brazilian Cruzeiro (1993–1994) * `BRN` - Brazilian New Cruzado (1989–1990) * `BRB` - Brazilian New Cruzeiro (1967–1986) * `BRL` - Brazilian Real * `GBP` - British Pound * `BND` - Brunei Dollar * `BGL` - Bulgarian Hard Lev * `BGN` - Bulgarian Lev * `BGO` - Bulgarian Lev (1879–1952) * `BGM` - Bulgarian Socialist Lev * `BUK` - Burmese Kyat * `BIF` - Burundian Franc * `XPF` - CFP Franc * `KHR` - Cambodian Riel * `CAD` - Canadian Dollar * `CVE` - Cape Verdean Escudo * `KYD` - Cayman Islands Dollar * `XAF` - Central African CFA Franc * `CLE` - Chilean Escudo * `CLP` - Chilean Peso * `CLF` - Chilean Unit of Account (UF) * `CNX` - Chinese People’s Bank Dollar * `CNY` - Chinese Yuan * `CNH` - Chinese Yuan (offshore) * `COP` - Colombian Peso * `COU` - Colombian Real Value Unit * `KMF` - Comorian Franc * `CDF` - Congolese Franc * `CRC` - Costa Rican Colón * `HRD` - Croatian Dinar * `HRK` - Croatian Kuna * `CUC` - Cuban Convertible Peso * `CUP` - Cuban Peso * `CYP` - Cypriot Pound * `CZK` - Czech Koruna * `CSK` - Czechoslovak Hard Koruna * `DKK` - Danish Krone * `DJF` - Djiboutian Franc * `DOP` - Dominican Peso * `NLG` - Dutch Guilder * `XCD` - East Caribbean Dollar * `DDM` - East German Mark * `ECS` - Ecuadorian Sucre * `ECV` - Ecuadorian Unit of Constant Value * `EGP` - Egyptian Pound * `GQE` - Equatorial Guinean Ekwele * `ERN` - Eritrean Nakfa * `EEK` - Estonian Kroon * `ETB` - Ethiopian Birr * `EUR` - Euro * `XBA` - European Composite Unit * `XEU` - European Currency Unit * `XBB` - European Monetary Unit * `XBC` - European Unit of Account (XBC) * `XBD` - European Unit of Account (XBD) * `FKP` - Falkland Islands Pound * `FJD` - Fijian Dollar * `FIM` - Finnish Markka * `FRF` - French Franc * `XFO` - French Gold Franc * `XFU` - French UIC-Franc * `GMD` - Gambian Dalasi * `GEK` - Georgian Kupon Larit * `GEL` - Georgian Lari * `DEM` - German Mark * `GHS` - Ghanaian Cedi * `GHC` - Ghanaian Cedi (1979–2007) * `GIP` - Gibraltar Pound * `XAU` - Gold * `GRD` - Greek Drachma * `GTQ` - Guatemalan Quetzal * `GWP` - Guinea-Bissau Peso * `GNF` - Guinean Franc * `GNS` - Guinean Syli * `GYD` - Guyanaese Dollar * `HTG` - Haitian Gourde * `HNL` - Honduran Lempira * `HKD` - Hong Kong Dollar * `HUF` - Hungarian Forint * `IMP` - IMP * `ISK` - Icelandic Króna * `ISJ` - Icelandic Króna (1918–1981) * `INR` - Indian Rupee * `IDR` - Indonesian Rupiah * `IRR` - Iranian Rial * `IQD` - Iraqi Dinar * `IEP` - Irish Pound * `ILS` - Israeli New Shekel * `ILP` - Israeli Pound * `ILR` - Israeli Shekel (1980–1985) * `ITL` - Italian Lira * `JMD` - Jamaican Dollar * `JPY` - Japanese Yen * `JOD` - Jordanian Dinar * `KZT` - Kazakhstani Tenge * `KES` - Kenyan Shilling * `KWD` - Kuwaiti Dinar * `KGS` - Kyrgystani Som * `LAK` - Laotian Kip * `LVL` - Latvian Lats * `LVR` - Latvian Ruble * `LBP` - Lebanese Pound * `LSL` - Lesotho Loti * `LRD` - Liberian Dollar * `LYD` - Libyan Dinar * `LTL` - Lithuanian Litas * `LTT` - Lithuanian Talonas * `LUL` - Luxembourg Financial Franc * `LUC` - Luxembourgian Convertible Franc * `LUF` - Luxembourgian Franc * `MOP` - Macanese Pataca * `MKD` - Macedonian Denar * `MKN` - Macedonian Denar (1992–1993) * `MGA` - Malagasy Ariary * `MGF` - Malagasy Franc * `MWK` - Malawian Kwacha * `MYR` - Malaysian Ringgit * `MVR` - Maldivian Rufiyaa * `MVP` - Maldivian Rupee (1947–1981) * `MLF` - Malian Franc * `MTL` - Maltese Lira * `MTP` - Maltese Pound * `MRU` - Mauritanian Ouguiya * `MRO` - Mauritanian Ouguiya (1973–2017) * `MUR` - Mauritian Rupee * `MXV` - Mexican Investment Unit * `MXN` - Mexican Peso * `MXP` - Mexican Silver Peso (1861–1992) * `MDC` - Moldovan Cupon * `MDL` - Moldovan Leu * `MCF` - Monegasque Franc * `MNT` - Mongolian Tugrik * `MAD` - Moroccan Dirham * `MAF` - Moroccan Franc * `MZE` - Mozambican Escudo * `MZN` - Mozambican Metical * `MZM` - Mozambican Metical (1980–2006) * `MMK` - Myanmar Kyat * `NAD` - Namibian Dollar * `NPR` - Nepalese Rupee * `ANG` - Netherlands Antillean Guilder * `TWD` - New Taiwan Dollar * `NZD` - New Zealand Dollar * `NIO` - Nicaraguan Córdoba * `NIC` - Nicaraguan Córdoba (1988–1991) * `NGN` - Nigerian Naira * `KPW` - North Korean Won * `NOK` - Norwegian Krone * `OMR` - Omani Rial * `PKR` - Pakistani Rupee * `XPD` - Palladium * `PAB` - Panamanian Balboa * `PGK` - Papua New Guinean Kina * `PYG` - Paraguayan Guarani * `PEI` - Peruvian Inti * `PEN` - Peruvian Sol * `PES` - Peruvian Sol (1863–1965) * `PHP` - Philippine Peso * `XPT` - Platinum * `PLN` - Polish Zloty * `PLZ` - Polish Zloty (1950–1995) * `PTE` - Portuguese Escudo * `GWE` - Portuguese Guinea Escudo * `QAR` - Qatari Rial * `XRE` - RINET Funds * `RHD` - Rhodesian Dollar * `RON` - Romanian Leu * `ROL` - Romanian Leu (1952–2006) * `RUB` - Russian Ruble * `RUR` - Russian Ruble (1991–1998) * `RWF` - Rwandan Franc * `SVC` - Salvadoran Colón * `WST` - Samoan Tala * `SAR` - Saudi Riyal * `RSD` - Serbian Dinar * `CSD` - Serbian Dinar (2002–2006) * `SCR` - Seychellois Rupee * `SLL` - Sierra Leonean Leone * `XAG` - Silver * `SGD` - Singapore Dollar * `SKK` - Slovak Koruna * `SIT` - Slovenian Tolar * `SBD` - Solomon Islands Dollar * `SOS` - Somali Shilling * `ZAR` - South African Rand * `ZAL` - South African Rand (financial) * `KRH` - South Korean Hwan (1953–1962) * `KRW` - South Korean Won * `KRO` - South Korean Won (1945–1953) * `SSP` - South Sudanese Pound * `SUR` - Soviet Rouble * `ESP` - Spanish Peseta * `ESA` - Spanish Peseta (A account) * `ESB` - Spanish Peseta (convertible account) * `XDR` - Special Drawing Rights * `LKR` - Sri Lankan Rupee * `SHP` - St. Helena Pound * `XSU` - Sucre * `SDD` - Sudanese Dinar (1992–2007) * `SDG` - Sudanese Pound * `SDP` - Sudanese Pound (1957–1998) * `SRD` - Surinamese Dollar * `SRG` - Surinamese Guilder * `SZL` - Swazi Lilangeni * `SEK` - Swedish Krona * `CHF` - Swiss Franc * `SYP` - Syrian Pound * `STN` - São Tomé & Príncipe Dobra * `STD` - São Tomé & Príncipe Dobra (1977–2017) * `TVD` - TVD * `TJR` - Tajikistani Ruble * `TJS` - Tajikistani Somoni * `TZS` - Tanzanian Shilling * `XTS` - Testing Currency Code * `THB` - Thai Baht * `XXX` - The codes assigned for transactions where no currency is involved * `TPE` - Timorese Escudo * `TOP` - Tongan Paʻanga * `TTD` - Trinidad & Tobago Dollar * `TND` - Tunisian Dinar * `TRY` - Turkish Lira * `TRL` - Turkish Lira (1922–2005) * `TMT` - Turkmenistani Manat * `TMM` - Turkmenistani Manat (1993–2009) * `USD` - US Dollar * `USN` - US Dollar (Next day) * `USS` - US Dollar (Same day) * `UGX` - Ugandan Shilling * `UGS` - Ugandan Shilling (1966–1987) * `UAH` - Ukrainian Hryvnia * `UAK` - Ukrainian Karbovanets * `AED` - United Arab Emirates Dirham * `UYW` - Uruguayan Nominal Wage Index Unit * `UYU` - Uruguayan Peso * `UYP` - Uruguayan Peso (1975–1993) * `UYI` - Uruguayan Peso (Indexed Units) * `UZS` - Uzbekistani Som * `VUV` - Vanuatu Vatu * `VES` - Venezuelan Bolívar * `VEB` - Venezuelan Bolívar (1871–2008) * `VEF` - Venezuelan Bolívar (2008–2018) * `VND` - Vietnamese Dong * `VNN` - Vietnamese Dong (1978–1985) * `CHE` - WIR Euro * `CHW` - WIR Franc * `XOF` - West African CFA Franc * `YDD` - Yemeni Dinar * `YER` - Yemeni Rial * `YUN` - Yugoslavian Convertible Dinar (1990–1992) * `YUD` - Yugoslavian Hard Dinar (1966–1990) * `YUM` - Yugoslavian New Dinar (1994–2002) * `YUR` - Yugoslavian Reformed Dinar (1992–1993) * `ZWN` - ZWN * `ZRN` - Zairean New Zaire (1993–1998) * `ZRZ` - Zairean Zaire (1971–1993) * `ZMW` - Zambian Kwacha * `ZMK` - Zambian Kwacha (1968–2012) * `ZWD` - Zimbabwean Dollar (1980–2008) * `ZWR` - Zimbabwean Dollar (2008) * `ZWL` - Zimbabwean Dollar (2009)
39
40
  attr_accessor :pay_currency
40
41
 
42
+ # The employment's pay group
41
43
  attr_accessor :pay_group
42
44
 
43
- # The position's FLSA status.
45
+ # The position's FLSA status. * `EXEMPT` - EXEMPT * `SALARIED_NONEXEMPT` - SALARIED_NONEXEMPT * `NONEXEMPT` - NONEXEMPT * `OWNER` - OWNER
44
46
  attr_accessor :flsa_status
45
47
 
46
48
  # The position's effective date.
47
49
  attr_accessor :effective_date
48
50
 
49
- # The position's type of employment.
51
+ # The position's type of employment. * `FULL_TIME` - FULL_TIME * `PART_TIME` - PART_TIME * `INTERN` - INTERN * `CONTRACTOR` - CONTRACTOR * `FREELANCE` - FREELANCE
50
52
  attr_accessor :employment_type
51
53
 
52
- attr_accessor :remote_data
53
-
54
54
  # Indicates whether or not this object has been deleted by third party webhooks.
55
55
  attr_accessor :remote_was_deleted
56
56
 
57
+ attr_accessor :field_mappings
58
+
59
+ # This is the datetime that this object was last updated by Merge
60
+ attr_accessor :modified_at
61
+
62
+ attr_accessor :remote_data
63
+
57
64
  # Attribute mapping from ruby-style variable name to JSON key.
58
65
  def self.attribute_map
59
66
  {
@@ -69,8 +76,10 @@ module MergeHRISClient
69
76
  :'flsa_status' => :'flsa_status',
70
77
  :'effective_date' => :'effective_date',
71
78
  :'employment_type' => :'employment_type',
72
- :'remote_data' => :'remote_data',
73
- :'remote_was_deleted' => :'remote_was_deleted'
79
+ :'remote_was_deleted' => :'remote_was_deleted',
80
+ :'field_mappings' => :'field_mappings',
81
+ :'modified_at' => :'modified_at',
82
+ :'remote_data' => :'remote_data'
74
83
  }
75
84
  end
76
85
 
@@ -94,8 +103,10 @@ module MergeHRISClient
94
103
  :'flsa_status' => :'FlsaStatusEnum',
95
104
  :'effective_date' => :'Time',
96
105
  :'employment_type' => :'EmploymentTypeEnum',
97
- :'remote_data' => :'Array<RemoteData>',
98
- :'remote_was_deleted' => :'Boolean'
106
+ :'remote_was_deleted' => :'Boolean',
107
+ :'field_mappings' => :'Hash<String, Object>',
108
+ :'modified_at' => :'Time',
109
+ :'remote_data' => :'Array<RemoteData>'
99
110
  }
100
111
  end
101
112
 
@@ -113,7 +124,8 @@ module MergeHRISClient
113
124
  :'flsa_status',
114
125
  :'effective_date',
115
126
  :'employment_type',
116
- :'remote_data',
127
+ :'field_mappings',
128
+ :'remote_data'
117
129
  ])
118
130
  end
119
131
 
@@ -180,15 +192,25 @@ module MergeHRISClient
180
192
  self.employment_type = attributes[:'employment_type']
181
193
  end
182
194
 
195
+ if attributes.key?(:'remote_was_deleted')
196
+ self.remote_was_deleted = attributes[:'remote_was_deleted']
197
+ end
198
+
199
+ if attributes.key?(:'field_mappings')
200
+ if (value = attributes[:'field_mappings']).is_a?(Hash)
201
+ self.field_mappings = value
202
+ end
203
+ end
204
+
205
+ if attributes.key?(:'modified_at')
206
+ self.modified_at = attributes[:'modified_at']
207
+ end
208
+
183
209
  if attributes.key?(:'remote_data')
184
210
  if (value = attributes[:'remote_data']).is_a?(Array)
185
211
  self.remote_data = value
186
212
  end
187
213
  end
188
-
189
- if attributes.key?(:'remote_was_deleted')
190
- self.remote_was_deleted = attributes[:'remote_was_deleted']
191
- end
192
214
  end
193
215
 
194
216
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -221,8 +243,10 @@ module MergeHRISClient
221
243
  flsa_status == o.flsa_status &&
222
244
  effective_date == o.effective_date &&
223
245
  employment_type == o.employment_type &&
224
- remote_data == o.remote_data &&
225
- remote_was_deleted == o.remote_was_deleted
246
+ remote_was_deleted == o.remote_was_deleted &&
247
+ field_mappings == o.field_mappings &&
248
+ modified_at == o.modified_at &&
249
+ remote_data == o.remote_data
226
250
  end
227
251
 
228
252
  # @see the `==` method
@@ -234,7 +258,7 @@ module MergeHRISClient
234
258
  # Calculates hash code according to all attributes.
235
259
  # @return [Integer] Hash code
236
260
  def hash
237
- [id, remote_id, employee, job_title, pay_rate, pay_period, pay_frequency, pay_currency, pay_group, flsa_status, effective_date, employment_type, remote_data, remote_was_deleted].hash
261
+ [id, remote_id, employee, job_title, pay_rate, pay_period, pay_frequency, pay_currency, pay_group, flsa_status, effective_date, employment_type, remote_was_deleted, field_mappings, modified_at, remote_data].hash
238
262
  end
239
263
 
240
264
  # Builds the object from hash
@@ -0,0 +1,45 @@
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 'date'
14
+ require 'time'
15
+
16
+ module MergeHRISClient
17
+ class EnabledActionsEnum
18
+ READ = "READ".freeze
19
+ WRITE = "WRITE".freeze
20
+
21
+ MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
22
+
23
+ attr_accessor :value
24
+ attr_accessor :raw_value
25
+
26
+ # Builds the enum from string
27
+ # @param [String] The enum value in the form of the string
28
+ # @return [String] The enum value
29
+ def build_from_hash(value)
30
+ @raw_value = value
31
+ if ["READ", "WRITE", ].include? value
32
+ @value = value
33
+ else
34
+ @value = MERGE_NONSTANDARD_VALUE
35
+ end
36
+
37
+ self
38
+ end
39
+
40
+ def self.build_from_hash(value)
41
+ EnabledActionsEnum.new.build_from_hash(value)
42
+ end
43
+ end
44
+
45
+ end
@@ -15,13 +15,13 @@ require 'time'
15
15
 
16
16
  module MergeHRISClient
17
17
  class EndUserDetailsRequest
18
- # Your end user's email address.
18
+ # Your end user's email address. This is purely for identification purposes - setting this value will not cause any emails to be sent.
19
19
  attr_accessor :end_user_email_address
20
20
 
21
21
  # Your end user's organization.
22
22
  attr_accessor :end_user_organization_name
23
23
 
24
- # Unique ID for your end user.
24
+ # This unique identifier typically represents the ID for your end user in your product's database. This value must be distinct from other Linked Accounts' unique identifiers.
25
25
  attr_accessor :end_user_origin_id
26
26
 
27
27
  # The integration categories to show in Merge Link.
@@ -36,6 +36,9 @@ module MergeHRISClient
36
36
  # Whether to generate a Magic Link URL. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/product/integrations,-fast.-say-hello-to-magic-link/.
37
37
  attr_accessor :should_create_magic_link_url
38
38
 
39
+ # An array of objects to specify the models and fields that will be disabled for a given Linked Account. Each object uses model_id, enabled_actions, and disabled_fields to specify the model, method, and fields that are scoped for a given Linked Account.
40
+ attr_accessor :common_models
41
+
39
42
  # Attribute mapping from ruby-style variable name to JSON key.
40
43
  def self.attribute_map
41
44
  {
@@ -45,7 +48,8 @@ module MergeHRISClient
45
48
  :'categories' => :'categories',
46
49
  :'integration' => :'integration',
47
50
  :'link_expiry_mins' => :'link_expiry_mins',
48
- :'should_create_magic_link_url' => :'should_create_magic_link_url'
51
+ :'should_create_magic_link_url' => :'should_create_magic_link_url',
52
+ :'common_models' => :'common_models'
49
53
  }
50
54
  end
51
55
 
@@ -63,7 +67,8 @@ module MergeHRISClient
63
67
  :'categories' => :'Array<CategoriesEnum>',
64
68
  :'integration' => :'String',
65
69
  :'link_expiry_mins' => :'Integer',
66
- :'should_create_magic_link_url' => :'Boolean'
70
+ :'should_create_magic_link_url' => :'Boolean',
71
+ :'common_models' => :'Array<CommonModelScopesBodyRequest>'
67
72
  }
68
73
  end
69
74
 
@@ -71,7 +76,8 @@ module MergeHRISClient
71
76
  def self.openapi_nullable
72
77
  Set.new([
73
78
  :'integration',
74
- :'should_create_magic_link_url'
79
+ :'should_create_magic_link_url',
80
+ :'common_models'
75
81
  ])
76
82
  end
77
83
 
@@ -123,6 +129,12 @@ module MergeHRISClient
123
129
  else
124
130
  self.should_create_magic_link_url = false
125
131
  end
132
+
133
+ if attributes.key?(:'common_models')
134
+ if (value = attributes[:'common_models']).is_a?(Array)
135
+ self.common_models = value
136
+ end
137
+ end
126
138
  end
127
139
 
128
140
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -292,7 +304,8 @@ module MergeHRISClient
292
304
  categories == o.categories &&
293
305
  integration == o.integration &&
294
306
  link_expiry_mins == o.link_expiry_mins &&
295
- should_create_magic_link_url == o.should_create_magic_link_url
307
+ should_create_magic_link_url == o.should_create_magic_link_url &&
308
+ common_models == o.common_models
296
309
  end
297
310
 
298
311
  # @see the `==` method
@@ -304,7 +317,7 @@ module MergeHRISClient
304
317
  # Calculates hash code according to all attributes.
305
318
  # @return [Integer] Hash code
306
319
  def hash
307
- [end_user_email_address, end_user_organization_name, end_user_origin_id, categories, integration, link_expiry_mins, should_create_magic_link_url].hash
320
+ [end_user_email_address, end_user_organization_name, end_user_origin_id, categories, integration, link_expiry_mins, should_create_magic_link_url, common_models].hash
308
321
  end
309
322
 
310
323
  # Builds the object from hash
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module MergeHRISClient
17
- # # The Group Object ### Description The `Group` object is used to represent Group information that employees belong to. This is often referenced with an Employee object. Please note: The teams object will fulfill most use cases. The Groups object is for power-users that want all types of groups at a company and the optionality of pulling multiple groups for an employee. ### Usage Example Fetch from the `LIST Employee` endpoint and expand groups to view an employee's groups.
17
+ # # The Group Object ### Description The `Group` object is used to represent any subset of employees, such as `PayGroup` or `Team`. Employees can be in multiple Groups. ### Usage Example Fetch from the `LIST Employee` endpoint and expand groups to view an employee's groups.
18
18
  class Group
19
19
  attr_accessor :id
20
20
 
@@ -27,14 +27,19 @@ module MergeHRISClient
27
27
  # The group name.
28
28
  attr_accessor :name
29
29
 
30
- # The group type
30
+ # The group type * `TEAM` - TEAM * `DEPARTMENT` - DEPARTMENT * `COST_CENTER` - COST_CENTER * `BUSINESS_UNIT` - BUSINESS_UNIT * `GROUP` - GROUP
31
31
  attr_accessor :type
32
32
 
33
- attr_accessor :remote_data
34
-
35
33
  # Indicates whether or not this object has been deleted by third party webhooks.
36
34
  attr_accessor :remote_was_deleted
37
35
 
36
+ attr_accessor :field_mappings
37
+
38
+ # This is the datetime that this object was last updated by Merge
39
+ attr_accessor :modified_at
40
+
41
+ attr_accessor :remote_data
42
+
38
43
  # Attribute mapping from ruby-style variable name to JSON key.
39
44
  def self.attribute_map
40
45
  {
@@ -43,8 +48,10 @@ module MergeHRISClient
43
48
  :'parent_group' => :'parent_group',
44
49
  :'name' => :'name',
45
50
  :'type' => :'type',
46
- :'remote_data' => :'remote_data',
47
- :'remote_was_deleted' => :'remote_was_deleted'
51
+ :'remote_was_deleted' => :'remote_was_deleted',
52
+ :'field_mappings' => :'field_mappings',
53
+ :'modified_at' => :'modified_at',
54
+ :'remote_data' => :'remote_data'
48
55
  }
49
56
  end
50
57
 
@@ -61,8 +68,10 @@ module MergeHRISClient
61
68
  :'parent_group' => :'String',
62
69
  :'name' => :'String',
63
70
  :'type' => :'GroupTypeEnum',
64
- :'remote_data' => :'Array<RemoteData>',
65
- :'remote_was_deleted' => :'Boolean'
71
+ :'remote_was_deleted' => :'Boolean',
72
+ :'field_mappings' => :'Hash<String, Object>',
73
+ :'modified_at' => :'Time',
74
+ :'remote_data' => :'Array<RemoteData>'
66
75
  }
67
76
  end
68
77
 
@@ -73,7 +82,8 @@ module MergeHRISClient
73
82
  :'parent_group',
74
83
  :'name',
75
84
  :'type',
76
- :'remote_data',
85
+ :'field_mappings',
86
+ :'remote_data'
77
87
  ])
78
88
  end
79
89
 
@@ -112,15 +122,25 @@ module MergeHRISClient
112
122
  self.type = attributes[:'type']
113
123
  end
114
124
 
125
+ if attributes.key?(:'remote_was_deleted')
126
+ self.remote_was_deleted = attributes[:'remote_was_deleted']
127
+ end
128
+
129
+ if attributes.key?(:'field_mappings')
130
+ if (value = attributes[:'field_mappings']).is_a?(Hash)
131
+ self.field_mappings = value
132
+ end
133
+ end
134
+
135
+ if attributes.key?(:'modified_at')
136
+ self.modified_at = attributes[:'modified_at']
137
+ end
138
+
115
139
  if attributes.key?(:'remote_data')
116
140
  if (value = attributes[:'remote_data']).is_a?(Array)
117
141
  self.remote_data = value
118
142
  end
119
143
  end
120
-
121
- if attributes.key?(:'remote_was_deleted')
122
- self.remote_was_deleted = attributes[:'remote_was_deleted']
123
- end
124
144
  end
125
145
 
126
146
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -146,8 +166,10 @@ module MergeHRISClient
146
166
  parent_group == o.parent_group &&
147
167
  name == o.name &&
148
168
  type == o.type &&
149
- remote_data == o.remote_data &&
150
- remote_was_deleted == o.remote_was_deleted
169
+ remote_was_deleted == o.remote_was_deleted &&
170
+ field_mappings == o.field_mappings &&
171
+ modified_at == o.modified_at &&
172
+ remote_data == o.remote_data
151
173
  end
152
174
 
153
175
  # @see the `==` method
@@ -159,7 +181,7 @@ module MergeHRISClient
159
181
  # Calculates hash code according to all attributes.
160
182
  # @return [Integer] Hash code
161
183
  def hash
162
- [id, remote_id, parent_group, name, type, remote_data, remote_was_deleted].hash
184
+ [id, remote_id, parent_group, name, type, remote_was_deleted, field_mappings, modified_at, remote_data].hash
163
185
  end
164
186
 
165
187
  # Builds the object from hash
@@ -19,6 +19,7 @@ module MergeHRISClient
19
19
  DEPARTMENT = "DEPARTMENT".freeze
20
20
  COST_CENTER = "COST_CENTER".freeze
21
21
  BUSINESS_UNIT = "BUSINESS_UNIT".freeze
22
+ GROUP = "GROUP".freeze
22
23
 
23
24
  MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
24
25
 
@@ -30,7 +31,7 @@ module MergeHRISClient
30
31
  # @return [String] The enum value
31
32
  def build_from_hash(value)
32
33
  @raw_value = value
33
- if ["TEAM", "DEPARTMENT", "COST_CENTER", "BUSINESS_UNIT", ].include? value
34
+ if ["TEAM", "DEPARTMENT", "COST_CENTER", "BUSINESS_UNIT", "GROUP", ].include? value
34
35
  @value = value
35
36
  else
36
37
  @value = MERGE_NONSTANDARD_VALUE