merge_hris_client 2.0.5 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +27 -8
- data/docs/AccountIntegration.md +6 -2
- data/docs/BankInfo.md +9 -5
- data/docs/BankInfoApi.md +15 -11
- data/docs/Benefit.md +8 -4
- data/docs/BenefitsApi.md +6 -6
- data/docs/CommonModelScopeData.md +20 -0
- data/docs/CommonModelScopes.md +20 -0
- data/docs/CommonModelScopesApi.md +157 -0
- data/docs/CommonModelScopesBodyRequest.md +22 -0
- data/docs/CommonModelScopesDisabledModels.md +26 -0
- data/docs/CommonModelScopesDisabledModelsEnabledActionsEnum.md +15 -0
- data/docs/CommonModelScopesPostInnerDeserializerRequest.md +22 -0
- data/docs/CommonModelScopesUpdateSerializer.md +18 -0
- data/docs/CompaniesApi.md +4 -4
- data/docs/Company.md +7 -3
- data/docs/ConditionSchema.md +30 -0
- data/docs/ConditionTypeEnum.md +15 -0
- data/docs/DataPassthroughRequest.md +1 -1
- data/docs/Deduction.md +11 -5
- data/docs/Earning.md +10 -2
- data/docs/Employee.md +19 -15
- data/docs/EmployeePayrollRun.md +11 -7
- data/docs/EmployeePayrollRunsApi.md +4 -4
- data/docs/EmployeeRequest.md +16 -18
- data/docs/EmployeesApi.md +31 -18
- data/docs/Employment.md +14 -10
- data/docs/EmploymentsApi.md +13 -9
- data/docs/EnabledActionsEnum.md +15 -0
- data/docs/EndUserDetailsRequest.md +5 -3
- data/docs/ForceResyncApi.md +1 -1
- data/docs/Group.md +8 -4
- data/docs/GroupsApi.md +15 -9
- data/docs/Issue.md +10 -8
- data/docs/IssuesApi.md +6 -6
- data/docs/LinkToken.md +1 -1
- data/docs/LinkedAccountCondition.md +28 -0
- data/docs/LinkedAccountConditionRequest.md +22 -0
- data/docs/LinkedAccountSelectiveSyncConfiguration.md +18 -0
- data/docs/LinkedAccountSelectiveSyncConfigurationListRequest.md +18 -0
- data/docs/LinkedAccountSelectiveSyncConfigurationRequest.md +18 -0
- data/docs/LinkedAccountsApi.md +2 -2
- data/docs/Location.md +9 -5
- data/docs/LocationsApi.md +13 -9
- data/docs/MetaResponse.md +2 -0
- data/docs/MultipartFormFieldRequest.md +1 -1
- data/docs/OperatorSchema.md +20 -0
- data/docs/PaginatedConditionSchemaList.md +22 -0
- data/docs/PayGroup.md +7 -3
- data/docs/PayGroupsApi.md +4 -4
- data/docs/PayrollRun.md +9 -5
- data/docs/PayrollRunsApi.md +14 -10
- data/docs/SelectiveSyncApi.md +233 -0
- data/docs/SelectiveSyncConfigurationsUsageEnum.md +15 -0
- data/docs/SyncStatus.md +5 -3
- data/docs/Tax.md +9 -1
- data/docs/Team.md +8 -4
- data/docs/TeamsApi.md +4 -4
- data/docs/TimeOff.md +13 -9
- data/docs/TimeOffApi.md +16 -12
- data/docs/TimeOffBalance.md +10 -6
- data/docs/TimeOffBalancesApi.md +15 -11
- data/docs/TimeOffRequest.md +11 -9
- data/lib/merge_hris_client/api/bank_info_api.rb +24 -10
- data/lib/merge_hris_client/api/benefits_api.rb +6 -6
- data/lib/merge_hris_client/api/common_model_scopes_api.rb +146 -0
- data/lib/merge_hris_client/api/companies_api.rb +4 -4
- data/lib/merge_hris_client/api/employee_payroll_runs_api.rb +4 -4
- data/lib/merge_hris_client/api/employees_api.rb +44 -17
- data/lib/merge_hris_client/api/employments_api.rb +22 -8
- data/lib/merge_hris_client/api/force_resync_api.rb +2 -2
- data/lib/merge_hris_client/api/groups_api.rb +25 -8
- data/lib/merge_hris_client/api/issues_api.rb +6 -6
- data/lib/merge_hris_client/api/linked_accounts_api.rb +3 -3
- data/lib/merge_hris_client/api/locations_api.rb +22 -8
- data/lib/merge_hris_client/api/pay_groups_api.rb +4 -4
- data/lib/merge_hris_client/api/payroll_runs_api.rb +24 -10
- data/lib/merge_hris_client/api/selective_sync_api.rb +225 -0
- data/lib/merge_hris_client/api/teams_api.rb +4 -4
- data/lib/merge_hris_client/api/time_off_api.rb +26 -12
- data/lib/merge_hris_client/api/time_off_balances_api.rb +24 -10
- data/lib/merge_hris_client/models/account_details_and_actions_status_enum.rb +1 -1
- data/lib/merge_hris_client/models/account_integration.rb +30 -8
- data/lib/merge_hris_client/models/account_type_enum.rb +1 -1
- data/lib/merge_hris_client/models/bank_info.rb +39 -16
- data/lib/merge_hris_client/models/benefit.rb +38 -15
- data/lib/merge_hris_client/models/categories_enum.rb +4 -2
- data/lib/merge_hris_client/models/category_enum.rb +4 -2
- data/lib/merge_hris_client/models/common_model_scope_data.rb +234 -0
- data/lib/merge_hris_client/models/common_model_scopes.rb +234 -0
- data/lib/merge_hris_client/models/common_model_scopes_body_request.rb +274 -0
- data/lib/merge_hris_client/models/common_model_scopes_disabled_models.rb +283 -0
- data/lib/merge_hris_client/models/common_model_scopes_disabled_models_enabled_actions_enum.rb +45 -0
- data/lib/merge_hris_client/models/common_model_scopes_post_inner_deserializer_request.rb +274 -0
- data/lib/merge_hris_client/models/common_model_scopes_update_serializer.rb +226 -0
- data/lib/merge_hris_client/models/company.rb +37 -15
- data/lib/merge_hris_client/models/condition_schema.rb +298 -0
- data/lib/merge_hris_client/models/condition_type_enum.rb +50 -0
- data/lib/merge_hris_client/models/country_enum.rb +1 -1
- data/lib/merge_hris_client/models/data_passthrough_request.rb +1 -0
- data/lib/merge_hris_client/models/deduction.rb +50 -17
- data/lib/merge_hris_client/models/earning.rb +51 -6
- data/lib/merge_hris_client/models/earning_type_enum.rb +1 -1
- data/lib/merge_hris_client/models/employee.rb +51 -23
- data/lib/merge_hris_client/models/employee_payroll_run.rb +41 -17
- data/lib/merge_hris_client/models/employee_request.rb +34 -39
- data/lib/merge_hris_client/models/employment.rb +44 -20
- data/lib/merge_hris_client/models/employment_status_enum.rb +1 -1
- data/lib/merge_hris_client/models/employment_type_enum.rb +1 -1
- data/lib/merge_hris_client/models/enabled_actions_enum.rb +45 -0
- data/lib/merge_hris_client/models/encoding_enum.rb +1 -1
- data/lib/merge_hris_client/models/end_user_details_request.rb +20 -7
- data/lib/merge_hris_client/models/ethnicity_enum.rb +1 -1
- data/lib/merge_hris_client/models/flsa_status_enum.rb +1 -1
- data/lib/merge_hris_client/models/gender_enum.rb +1 -1
- data/lib/merge_hris_client/models/group.rb +38 -16
- data/lib/merge_hris_client/models/group_type_enum.rb +3 -2
- data/lib/merge_hris_client/models/issue.rb +16 -4
- data/lib/merge_hris_client/models/link_token.rb +0 -5
- data/lib/merge_hris_client/models/linked_account_condition.rb +282 -0
- data/lib/merge_hris_client/models/linked_account_condition_request.rb +269 -0
- data/lib/merge_hris_client/models/linked_account_selective_sync_configuration.rb +221 -0
- data/lib/merge_hris_client/models/linked_account_selective_sync_configuration_list_request.rb +226 -0
- data/lib/merge_hris_client/models/linked_account_selective_sync_configuration_request.rb +226 -0
- data/lib/merge_hris_client/models/location.rb +39 -17
- data/lib/merge_hris_client/models/location_type_enum.rb +1 -1
- data/lib/merge_hris_client/models/marital_status_enum.rb +1 -1
- data/lib/merge_hris_client/models/meta_response.rb +12 -1
- data/lib/merge_hris_client/models/method_enum.rb +1 -1
- data/lib/merge_hris_client/models/multipart_form_field_request.rb +1 -1
- data/lib/merge_hris_client/models/operator_schema.rb +229 -0
- data/lib/merge_hris_client/models/paginated_condition_schema_list.rb +240 -0
- data/lib/merge_hris_client/models/pay_currency_enum.rb +1 -1
- data/lib/merge_hris_client/models/pay_frequency_enum.rb +3 -2
- data/lib/merge_hris_client/models/pay_group.rb +37 -15
- data/lib/merge_hris_client/models/pay_period_enum.rb +3 -2
- data/lib/merge_hris_client/models/payroll_run.rb +39 -17
- data/lib/merge_hris_client/models/policy_type_enum.rb +1 -1
- data/lib/merge_hris_client/models/reason_enum.rb +1 -1
- data/lib/merge_hris_client/models/request_format_enum.rb +1 -1
- data/lib/merge_hris_client/models/request_type_enum.rb +1 -1
- data/lib/merge_hris_client/models/response_type_enum.rb +1 -1
- data/lib/merge_hris_client/models/run_state_enum.rb +1 -1
- data/lib/merge_hris_client/models/run_type_enum.rb +1 -1
- data/lib/merge_hris_client/models/selective_sync_configurations_usage_enum.rb +45 -0
- data/lib/merge_hris_client/models/sync_status.rb +13 -4
- data/lib/merge_hris_client/models/sync_status_status_enum.rb +1 -1
- data/lib/merge_hris_client/models/tax.rb +50 -5
- data/lib/merge_hris_client/models/team.rb +38 -15
- data/lib/merge_hris_client/models/time_off.rb +43 -19
- data/lib/merge_hris_client/models/time_off_balance.rb +40 -17
- data/lib/merge_hris_client/models/time_off_request.rb +36 -21
- data/lib/merge_hris_client/models/time_off_status_enum.rb +1 -1
- data/lib/merge_hris_client/models/units_enum.rb +1 -1
- data/lib/merge_hris_client/version.rb +1 -1
- data/lib/merge_hris_client.rb +20 -3
- data/spec/api/bank_info_api_spec.rb +7 -5
- data/spec/api/benefits_api_spec.rb +3 -3
- data/spec/api/common_model_scopes_api_spec.rb +58 -0
- data/spec/api/companies_api_spec.rb +2 -2
- data/spec/api/employee_payroll_runs_api_spec.rb +2 -2
- data/spec/api/employees_api_spec.rb +13 -6
- data/spec/api/employments_api_spec.rb +6 -4
- data/spec/api/force_resync_api_spec.rb +1 -1
- data/spec/api/groups_api_spec.rb +7 -4
- data/spec/api/issues_api_spec.rb +3 -3
- data/spec/api/linked_accounts_api_spec.rb +1 -1
- data/spec/api/locations_api_spec.rb +6 -4
- data/spec/api/pay_groups_api_spec.rb +2 -2
- data/spec/api/payroll_runs_api_spec.rb +7 -5
- data/spec/api/selective_sync_api_spec.rb +72 -0
- data/spec/api/teams_api_spec.rb +2 -2
- data/spec/api/time_off_api_spec.rb +8 -6
- data/spec/api/time_off_balances_api_spec.rb +7 -5
- data/spec/models/account_integration_spec.rb +12 -0
- data/spec/models/bank_info_spec.rb +14 -2
- data/spec/models/benefit_spec.rb +14 -2
- data/spec/models/common_model_scope_data_spec.rb +40 -0
- data/spec/models/common_model_scopes_body_request_spec.rb +46 -0
- data/spec/models/common_model_scopes_disabled_models_enabled_actions_enum_spec.rb +28 -0
- data/spec/models/common_model_scopes_disabled_models_spec.rb +58 -0
- data/spec/models/common_model_scopes_post_inner_deserializer_request_spec.rb +46 -0
- data/spec/models/common_model_scopes_spec.rb +40 -0
- data/spec/models/common_model_scopes_update_serializer_spec.rb +34 -0
- data/spec/models/company_spec.rb +14 -2
- data/spec/models/condition_schema_spec.rb +70 -0
- data/spec/models/condition_type_enum_spec.rb +28 -0
- data/spec/models/deduction_spec.rb +20 -2
- data/spec/models/earning_spec.rb +24 -0
- data/spec/models/employee_payroll_run_spec.rb +14 -2
- data/spec/models/employee_request_spec.rb +5 -11
- data/spec/models/employee_spec.rb +15 -3
- data/spec/models/employment_spec.rb +14 -2
- data/spec/models/enabled_actions_enum_spec.rb +28 -0
- data/spec/models/end_user_details_request_spec.rb +6 -0
- data/spec/models/group_spec.rb +14 -2
- data/spec/models/issue_spec.rb +6 -0
- data/spec/models/linked_account_condition_request_spec.rb +46 -0
- data/spec/models/linked_account_condition_spec.rb +64 -0
- data/spec/models/linked_account_selective_sync_configuration_list_request_spec.rb +34 -0
- data/spec/models/linked_account_selective_sync_configuration_request_spec.rb +34 -0
- data/spec/models/linked_account_selective_sync_configuration_spec.rb +34 -0
- data/spec/models/location_spec.rb +14 -2
- data/spec/models/meta_response_spec.rb +6 -0
- data/spec/models/operator_schema_spec.rb +40 -0
- data/spec/models/paginated_condition_schema_list_spec.rb +46 -0
- data/spec/models/pay_group_spec.rb +14 -2
- data/spec/models/payroll_run_spec.rb +14 -2
- data/spec/models/selective_sync_configurations_usage_enum_spec.rb +28 -0
- data/spec/models/sync_status_spec.rb +6 -0
- data/spec/models/tax_spec.rb +24 -0
- data/spec/models/team_spec.rb +14 -2
- data/spec/models/time_off_balance_spec.rb +14 -2
- data/spec/models/time_off_request_spec.rb +12 -6
- data/spec/models/time_off_spec.rb +14 -2
- metadata +183 -103
@@ -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
|
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
|
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
|
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
|
-
#
|
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
|
-
|
97
|
-
|
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
|
-
:'
|
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
|
-
:'
|
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
|
-
:'
|
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?(:'
|
339
|
-
if (value = attributes[:'
|
340
|
-
self.
|
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
|
-
|
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
|
-
[
|
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
|
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
|
-
:'
|
73
|
-
:'
|
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
|
-
:'
|
98
|
-
:'
|
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
|
-
:'
|
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
|
-
|
225
|
-
|
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,
|
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
|
-
#
|
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
|