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,36 +14,47 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module MergeHRISClient
|
17
|
-
# # The Deduction Object ### Description The `Deduction` object is used to represent
|
17
|
+
# # The Deduction Object ### Description The `Deduction` object is used to represent an array of the wages withheld from total earnings for the purpose of paying taxes. ### Usage Example Fetch from the `LIST Deductions` endpoint and filter by `ID` to show all deductions.
|
18
18
|
class Deduction
|
19
19
|
attr_accessor :id
|
20
20
|
|
21
|
+
# The third-party API ID of the matching object.
|
22
|
+
attr_accessor :remote_id
|
23
|
+
|
21
24
|
attr_accessor :employee_payroll_run
|
22
25
|
|
23
26
|
# The deduction's name.
|
24
27
|
attr_accessor :name
|
25
28
|
|
26
|
-
# The amount
|
29
|
+
# The amount of money that is withheld from an employee's gross pay by the employee.
|
27
30
|
attr_accessor :employee_deduction
|
28
31
|
|
29
|
-
# The amount
|
32
|
+
# The amount of money that is withheld on behalf of an employee by the company.
|
30
33
|
attr_accessor :company_deduction
|
31
34
|
|
32
|
-
attr_accessor :remote_data
|
33
|
-
|
34
35
|
# Indicates whether or not this object has been deleted by third party webhooks.
|
35
36
|
attr_accessor :remote_was_deleted
|
36
37
|
|
38
|
+
attr_accessor :field_mappings
|
39
|
+
|
40
|
+
# This is the datetime that this object was last updated by Merge
|
41
|
+
attr_accessor :modified_at
|
42
|
+
|
43
|
+
attr_accessor :remote_data
|
44
|
+
|
37
45
|
# Attribute mapping from ruby-style variable name to JSON key.
|
38
46
|
def self.attribute_map
|
39
47
|
{
|
40
48
|
:'id' => :'id',
|
49
|
+
:'remote_id' => :'remote_id',
|
41
50
|
:'employee_payroll_run' => :'employee_payroll_run',
|
42
51
|
:'name' => :'name',
|
43
52
|
:'employee_deduction' => :'employee_deduction',
|
44
53
|
:'company_deduction' => :'company_deduction',
|
45
|
-
:'
|
46
|
-
:'
|
54
|
+
:'remote_was_deleted' => :'remote_was_deleted',
|
55
|
+
:'field_mappings' => :'field_mappings',
|
56
|
+
:'modified_at' => :'modified_at',
|
57
|
+
:'remote_data' => :'remote_data'
|
47
58
|
}
|
48
59
|
end
|
49
60
|
|
@@ -56,23 +67,28 @@ module MergeHRISClient
|
|
56
67
|
def self.openapi_types
|
57
68
|
{
|
58
69
|
:'id' => :'String',
|
70
|
+
:'remote_id' => :'String',
|
59
71
|
:'employee_payroll_run' => :'String',
|
60
72
|
:'name' => :'String',
|
61
73
|
:'employee_deduction' => :'Float',
|
62
74
|
:'company_deduction' => :'Float',
|
63
|
-
:'
|
64
|
-
:'
|
75
|
+
:'remote_was_deleted' => :'Boolean',
|
76
|
+
:'field_mappings' => :'Hash<String, Object>',
|
77
|
+
:'modified_at' => :'Time',
|
78
|
+
:'remote_data' => :'Array<RemoteData>'
|
65
79
|
}
|
66
80
|
end
|
67
81
|
|
68
82
|
# List of attributes with nullable: true
|
69
83
|
def self.openapi_nullable
|
70
84
|
Set.new([
|
85
|
+
:'remote_id',
|
71
86
|
:'employee_payroll_run',
|
72
87
|
:'name',
|
73
88
|
:'employee_deduction',
|
74
89
|
:'company_deduction',
|
75
|
-
:'
|
90
|
+
:'field_mappings',
|
91
|
+
:'remote_data'
|
76
92
|
])
|
77
93
|
end
|
78
94
|
|
@@ -95,6 +111,10 @@ module MergeHRISClient
|
|
95
111
|
self.id = attributes[:'id']
|
96
112
|
end
|
97
113
|
|
114
|
+
if attributes.key?(:'remote_id')
|
115
|
+
self.remote_id = attributes[:'remote_id']
|
116
|
+
end
|
117
|
+
|
98
118
|
if attributes.key?(:'employee_payroll_run')
|
99
119
|
self.employee_payroll_run = attributes[:'employee_payroll_run']
|
100
120
|
end
|
@@ -111,15 +131,25 @@ module MergeHRISClient
|
|
111
131
|
self.company_deduction = attributes[:'company_deduction']
|
112
132
|
end
|
113
133
|
|
134
|
+
if attributes.key?(:'remote_was_deleted')
|
135
|
+
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
136
|
+
end
|
137
|
+
|
138
|
+
if attributes.key?(:'field_mappings')
|
139
|
+
if (value = attributes[:'field_mappings']).is_a?(Hash)
|
140
|
+
self.field_mappings = value
|
141
|
+
end
|
142
|
+
end
|
143
|
+
|
144
|
+
if attributes.key?(:'modified_at')
|
145
|
+
self.modified_at = attributes[:'modified_at']
|
146
|
+
end
|
147
|
+
|
114
148
|
if attributes.key?(:'remote_data')
|
115
149
|
if (value = attributes[:'remote_data']).is_a?(Array)
|
116
150
|
self.remote_data = value
|
117
151
|
end
|
118
152
|
end
|
119
|
-
|
120
|
-
if attributes.key?(:'remote_was_deleted')
|
121
|
-
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
122
|
-
end
|
123
153
|
end
|
124
154
|
|
125
155
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -141,12 +171,15 @@ module MergeHRISClient
|
|
141
171
|
return true if self.equal?(o)
|
142
172
|
self.class == o.class &&
|
143
173
|
id == o.id &&
|
174
|
+
remote_id == o.remote_id &&
|
144
175
|
employee_payroll_run == o.employee_payroll_run &&
|
145
176
|
name == o.name &&
|
146
177
|
employee_deduction == o.employee_deduction &&
|
147
178
|
company_deduction == o.company_deduction &&
|
148
|
-
|
149
|
-
|
179
|
+
remote_was_deleted == o.remote_was_deleted &&
|
180
|
+
field_mappings == o.field_mappings &&
|
181
|
+
modified_at == o.modified_at &&
|
182
|
+
remote_data == o.remote_data
|
150
183
|
end
|
151
184
|
|
152
185
|
# @see the `==` method
|
@@ -158,7 +191,7 @@ module MergeHRISClient
|
|
158
191
|
# Calculates hash code according to all attributes.
|
159
192
|
# @return [Integer] Hash code
|
160
193
|
def hash
|
161
|
-
[id, employee_payroll_run, name, employee_deduction, company_deduction,
|
194
|
+
[id, remote_id, employee_payroll_run, name, employee_deduction, company_deduction, remote_was_deleted, field_mappings, modified_at, remote_data].hash
|
162
195
|
end
|
163
196
|
|
164
197
|
# Builds the object from hash
|
@@ -14,29 +14,43 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module MergeHRISClient
|
17
|
-
# # The Earning Object ### Description The `Earning` object is used to represent an
|
17
|
+
# # The Earning Object ### Description The `Earning` object is used to represent an array of different compensations that an employee receives within specific wage categories. ### Usage Example Fetch from the `LIST Earnings` endpoint and filter by `ID` to show all earnings.
|
18
18
|
class Earning
|
19
19
|
attr_accessor :id
|
20
20
|
|
21
|
+
# The third-party API ID of the matching object.
|
22
|
+
attr_accessor :remote_id
|
23
|
+
|
21
24
|
attr_accessor :employee_payroll_run
|
22
25
|
|
23
26
|
# The amount earned.
|
24
27
|
attr_accessor :amount
|
25
28
|
|
26
|
-
# The type of earning.
|
29
|
+
# The type of earning. * `SALARY` - SALARY * `REIMBURSEMENT` - REIMBURSEMENT * `OVERTIME` - OVERTIME * `BONUS` - BONUS
|
27
30
|
attr_accessor :type
|
28
31
|
|
29
32
|
# Indicates whether or not this object has been deleted by third party webhooks.
|
30
33
|
attr_accessor :remote_was_deleted
|
31
34
|
|
35
|
+
attr_accessor :field_mappings
|
36
|
+
|
37
|
+
# This is the datetime that this object was last updated by Merge
|
38
|
+
attr_accessor :modified_at
|
39
|
+
|
40
|
+
attr_accessor :remote_data
|
41
|
+
|
32
42
|
# Attribute mapping from ruby-style variable name to JSON key.
|
33
43
|
def self.attribute_map
|
34
44
|
{
|
35
45
|
:'id' => :'id',
|
46
|
+
:'remote_id' => :'remote_id',
|
36
47
|
:'employee_payroll_run' => :'employee_payroll_run',
|
37
48
|
:'amount' => :'amount',
|
38
49
|
:'type' => :'type',
|
39
|
-
:'remote_was_deleted' => :'remote_was_deleted'
|
50
|
+
:'remote_was_deleted' => :'remote_was_deleted',
|
51
|
+
:'field_mappings' => :'field_mappings',
|
52
|
+
:'modified_at' => :'modified_at',
|
53
|
+
:'remote_data' => :'remote_data'
|
40
54
|
}
|
41
55
|
end
|
42
56
|
|
@@ -49,19 +63,26 @@ module MergeHRISClient
|
|
49
63
|
def self.openapi_types
|
50
64
|
{
|
51
65
|
:'id' => :'String',
|
66
|
+
:'remote_id' => :'String',
|
52
67
|
:'employee_payroll_run' => :'String',
|
53
68
|
:'amount' => :'Float',
|
54
69
|
:'type' => :'EarningTypeEnum',
|
55
|
-
:'remote_was_deleted' => :'Boolean'
|
70
|
+
:'remote_was_deleted' => :'Boolean',
|
71
|
+
:'field_mappings' => :'Hash<String, Object>',
|
72
|
+
:'modified_at' => :'Time',
|
73
|
+
:'remote_data' => :'Array<RemoteData>'
|
56
74
|
}
|
57
75
|
end
|
58
76
|
|
59
77
|
# List of attributes with nullable: true
|
60
78
|
def self.openapi_nullable
|
61
79
|
Set.new([
|
80
|
+
:'remote_id',
|
62
81
|
:'employee_payroll_run',
|
63
82
|
:'amount',
|
64
83
|
:'type',
|
84
|
+
:'field_mappings',
|
85
|
+
:'remote_data'
|
65
86
|
])
|
66
87
|
end
|
67
88
|
|
@@ -84,6 +105,10 @@ module MergeHRISClient
|
|
84
105
|
self.id = attributes[:'id']
|
85
106
|
end
|
86
107
|
|
108
|
+
if attributes.key?(:'remote_id')
|
109
|
+
self.remote_id = attributes[:'remote_id']
|
110
|
+
end
|
111
|
+
|
87
112
|
if attributes.key?(:'employee_payroll_run')
|
88
113
|
self.employee_payroll_run = attributes[:'employee_payroll_run']
|
89
114
|
end
|
@@ -99,6 +124,22 @@ module MergeHRISClient
|
|
99
124
|
if attributes.key?(:'remote_was_deleted')
|
100
125
|
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
101
126
|
end
|
127
|
+
|
128
|
+
if attributes.key?(:'field_mappings')
|
129
|
+
if (value = attributes[:'field_mappings']).is_a?(Hash)
|
130
|
+
self.field_mappings = value
|
131
|
+
end
|
132
|
+
end
|
133
|
+
|
134
|
+
if attributes.key?(:'modified_at')
|
135
|
+
self.modified_at = attributes[:'modified_at']
|
136
|
+
end
|
137
|
+
|
138
|
+
if attributes.key?(:'remote_data')
|
139
|
+
if (value = attributes[:'remote_data']).is_a?(Array)
|
140
|
+
self.remote_data = value
|
141
|
+
end
|
142
|
+
end
|
102
143
|
end
|
103
144
|
|
104
145
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -120,10 +161,14 @@ module MergeHRISClient
|
|
120
161
|
return true if self.equal?(o)
|
121
162
|
self.class == o.class &&
|
122
163
|
id == o.id &&
|
164
|
+
remote_id == o.remote_id &&
|
123
165
|
employee_payroll_run == o.employee_payroll_run &&
|
124
166
|
amount == o.amount &&
|
125
167
|
type == o.type &&
|
126
|
-
remote_was_deleted == o.remote_was_deleted
|
168
|
+
remote_was_deleted == o.remote_was_deleted &&
|
169
|
+
field_mappings == o.field_mappings &&
|
170
|
+
modified_at == o.modified_at &&
|
171
|
+
remote_data == o.remote_data
|
127
172
|
end
|
128
173
|
|
129
174
|
# @see the `==` method
|
@@ -135,7 +180,7 @@ module MergeHRISClient
|
|
135
180
|
# Calculates hash code according to all attributes.
|
136
181
|
# @return [Integer] Hash code
|
137
182
|
def hash
|
138
|
-
[id, employee_payroll_run, amount, type, remote_was_deleted].hash
|
183
|
+
[id, remote_id, employee_payroll_run, amount, type, remote_was_deleted, field_mappings, modified_at, remote_data].hash
|
139
184
|
end
|
140
185
|
|
141
186
|
# Builds the object from hash
|
@@ -14,16 +14,17 @@ 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 Employee
|
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's number that appears in the
|
24
|
+
# The employee's number that appears in the third-party integration's UI.
|
25
25
|
attr_accessor :employee_number
|
26
26
|
|
27
|
+
# The ID of the employee's company.
|
27
28
|
attr_accessor :company
|
28
29
|
|
29
30
|
# The employee's first name.
|
@@ -52,26 +53,31 @@ module MergeHRISClient
|
|
52
53
|
# Array of `Employment` IDs for this Employee.
|
53
54
|
attr_accessor :employments
|
54
55
|
|
56
|
+
# The employee's home address.
|
55
57
|
attr_accessor :home_location
|
56
58
|
|
59
|
+
# The employee's work address.
|
57
60
|
attr_accessor :work_location
|
58
61
|
|
62
|
+
# The employee ID of the employee's manager.
|
59
63
|
attr_accessor :manager
|
60
64
|
|
65
|
+
# The employee's team.
|
61
66
|
attr_accessor :team
|
62
67
|
|
68
|
+
# The employee's pay group
|
63
69
|
attr_accessor :pay_group
|
64
70
|
|
65
71
|
# The employee's social security number.
|
66
72
|
attr_accessor :ssn
|
67
73
|
|
68
|
-
# The employee's gender.
|
74
|
+
# The employee's gender. * `MALE` - MALE * `FEMALE` - FEMALE * `NON-BINARY` - NON-BINARY * `OTHER` - OTHER * `PREFER_NOT_TO_DISCLOSE` - PREFER_NOT_TO_DISCLOSE
|
69
75
|
attr_accessor :gender
|
70
76
|
|
71
|
-
# The employee's ethnicity.
|
77
|
+
# 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
|
72
78
|
attr_accessor :ethnicity
|
73
79
|
|
74
|
-
# The employee's marital status.
|
80
|
+
# 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
|
75
81
|
attr_accessor :marital_status
|
76
82
|
|
77
83
|
# The employee's date of birth.
|
@@ -80,13 +86,13 @@ module MergeHRISClient
|
|
80
86
|
# 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.
|
81
87
|
attr_accessor :hire_date
|
82
88
|
|
83
|
-
# The date that the employee started working. If an employee
|
89
|
+
# The date that the employee started working. If an employee was rehired, the most recent start date will be returned.
|
84
90
|
attr_accessor :start_date
|
85
91
|
|
86
92
|
# When the third party's employee was created.
|
87
93
|
attr_accessor :remote_created_at
|
88
94
|
|
89
|
-
# The employment status of the employee.
|
95
|
+
# The employment status of the employee. * `ACTIVE` - ACTIVE * `PENDING` - PENDING * `INACTIVE` - INACTIVE
|
90
96
|
attr_accessor :employment_status
|
91
97
|
|
92
98
|
# The employee's termination date.
|
@@ -95,13 +101,18 @@ module MergeHRISClient
|
|
95
101
|
# The URL of the employee's avatar image.
|
96
102
|
attr_accessor :avatar
|
97
103
|
|
98
|
-
attr_accessor :remote_data
|
99
|
-
|
100
104
|
# Custom fields configured for a given model.
|
101
105
|
attr_accessor :custom_fields
|
102
106
|
|
103
107
|
attr_accessor :remote_was_deleted
|
104
108
|
|
109
|
+
attr_accessor :field_mappings
|
110
|
+
|
111
|
+
# This is the datetime that this object was last updated by Merge
|
112
|
+
attr_accessor :modified_at
|
113
|
+
|
114
|
+
attr_accessor :remote_data
|
115
|
+
|
105
116
|
# Attribute mapping from ruby-style variable name to JSON key.
|
106
117
|
def self.attribute_map
|
107
118
|
{
|
@@ -134,9 +145,11 @@ module MergeHRISClient
|
|
134
145
|
:'employment_status' => :'employment_status',
|
135
146
|
:'termination_date' => :'termination_date',
|
136
147
|
:'avatar' => :'avatar',
|
137
|
-
:'remote_data' => :'remote_data',
|
138
148
|
:'custom_fields' => :'custom_fields',
|
139
|
-
:'remote_was_deleted' => :'remote_was_deleted'
|
149
|
+
:'remote_was_deleted' => :'remote_was_deleted',
|
150
|
+
:'field_mappings' => :'field_mappings',
|
151
|
+
:'modified_at' => :'modified_at',
|
152
|
+
:'remote_data' => :'remote_data'
|
140
153
|
}
|
141
154
|
end
|
142
155
|
|
@@ -177,9 +190,11 @@ module MergeHRISClient
|
|
177
190
|
:'employment_status' => :'EmploymentStatusEnum',
|
178
191
|
:'termination_date' => :'Time',
|
179
192
|
:'avatar' => :'String',
|
180
|
-
:'remote_data' => :'Array<RemoteData>',
|
181
193
|
:'custom_fields' => :'Hash<String, Object>',
|
182
|
-
:'remote_was_deleted' => :'Boolean'
|
194
|
+
:'remote_was_deleted' => :'Boolean',
|
195
|
+
:'field_mappings' => :'Hash<String, Object>',
|
196
|
+
:'modified_at' => :'Time',
|
197
|
+
:'remote_data' => :'Array<RemoteData>'
|
183
198
|
}
|
184
199
|
end
|
185
200
|
|
@@ -212,8 +227,9 @@ module MergeHRISClient
|
|
212
227
|
:'employment_status',
|
213
228
|
:'termination_date',
|
214
229
|
:'avatar',
|
215
|
-
:'remote_data',
|
216
230
|
:'custom_fields',
|
231
|
+
:'field_mappings',
|
232
|
+
:'remote_data'
|
217
233
|
])
|
218
234
|
end
|
219
235
|
|
@@ -352,12 +368,6 @@ module MergeHRISClient
|
|
352
368
|
self.avatar = attributes[:'avatar']
|
353
369
|
end
|
354
370
|
|
355
|
-
if attributes.key?(:'remote_data')
|
356
|
-
if (value = attributes[:'remote_data']).is_a?(Array)
|
357
|
-
self.remote_data = value
|
358
|
-
end
|
359
|
-
end
|
360
|
-
|
361
371
|
if attributes.key?(:'custom_fields')
|
362
372
|
if (value = attributes[:'custom_fields']).is_a?(Hash)
|
363
373
|
self.custom_fields = value
|
@@ -367,6 +377,22 @@ module MergeHRISClient
|
|
367
377
|
if attributes.key?(:'remote_was_deleted')
|
368
378
|
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
369
379
|
end
|
380
|
+
|
381
|
+
if attributes.key?(:'field_mappings')
|
382
|
+
if (value = attributes[:'field_mappings']).is_a?(Hash)
|
383
|
+
self.field_mappings = value
|
384
|
+
end
|
385
|
+
end
|
386
|
+
|
387
|
+
if attributes.key?(:'modified_at')
|
388
|
+
self.modified_at = attributes[:'modified_at']
|
389
|
+
end
|
390
|
+
|
391
|
+
if attributes.key?(:'remote_data')
|
392
|
+
if (value = attributes[:'remote_data']).is_a?(Array)
|
393
|
+
self.remote_data = value
|
394
|
+
end
|
395
|
+
end
|
370
396
|
end
|
371
397
|
|
372
398
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -476,9 +502,11 @@ module MergeHRISClient
|
|
476
502
|
employment_status == o.employment_status &&
|
477
503
|
termination_date == o.termination_date &&
|
478
504
|
avatar == o.avatar &&
|
479
|
-
remote_data == o.remote_data &&
|
480
505
|
custom_fields == o.custom_fields &&
|
481
|
-
remote_was_deleted == o.remote_was_deleted
|
506
|
+
remote_was_deleted == o.remote_was_deleted &&
|
507
|
+
field_mappings == o.field_mappings &&
|
508
|
+
modified_at == o.modified_at &&
|
509
|
+
remote_data == o.remote_data
|
482
510
|
end
|
483
511
|
|
484
512
|
# @see the `==` method
|
@@ -490,7 +518,7 @@ module MergeHRISClient
|
|
490
518
|
# Calculates hash code according to all attributes.
|
491
519
|
# @return [Integer] Hash code
|
492
520
|
def hash
|
493
|
-
[id, 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,
|
521
|
+
[id, 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, remote_was_deleted, field_mappings, modified_at, remote_data].hash
|
494
522
|
end
|
495
523
|
|
496
524
|
# Builds the object from hash
|
@@ -14,21 +14,23 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module MergeHRISClient
|
17
|
-
# # The EmployeePayrollRun Object ### Description The `EmployeePayrollRun` object is used to represent
|
17
|
+
# # The EmployeePayrollRun Object ### Description The `EmployeePayrollRun` object is used to represent an employee's pay statement for a specific payroll run. ### Usage Example Fetch from the `LIST EmployeePayrollRun` endpoint and filter by `ID` to show all employee payroll runs.
|
18
18
|
class EmployeePayrollRun
|
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 whose payroll is being run.
|
24
25
|
attr_accessor :employee
|
25
26
|
|
27
|
+
# The payroll being run.
|
26
28
|
attr_accessor :payroll_run
|
27
29
|
|
28
|
-
# The
|
30
|
+
# The total earnings throughout a given period for an employee before any deductions are made.
|
29
31
|
attr_accessor :gross_pay
|
30
32
|
|
31
|
-
# The
|
33
|
+
# The take-home pay throughout a given period for an employee after deductions are made.
|
32
34
|
attr_accessor :net_pay
|
33
35
|
|
34
36
|
# The day and time the payroll run started.
|
@@ -46,11 +48,16 @@ module MergeHRISClient
|
|
46
48
|
|
47
49
|
attr_accessor :taxes
|
48
50
|
|
49
|
-
attr_accessor :remote_data
|
50
|
-
|
51
51
|
# Indicates whether or not this object has been deleted by third party webhooks.
|
52
52
|
attr_accessor :remote_was_deleted
|
53
53
|
|
54
|
+
attr_accessor :field_mappings
|
55
|
+
|
56
|
+
# This is the datetime that this object was last updated by Merge
|
57
|
+
attr_accessor :modified_at
|
58
|
+
|
59
|
+
attr_accessor :remote_data
|
60
|
+
|
54
61
|
# Attribute mapping from ruby-style variable name to JSON key.
|
55
62
|
def self.attribute_map
|
56
63
|
{
|
@@ -66,8 +73,10 @@ module MergeHRISClient
|
|
66
73
|
:'earnings' => :'earnings',
|
67
74
|
:'deductions' => :'deductions',
|
68
75
|
:'taxes' => :'taxes',
|
69
|
-
:'
|
70
|
-
:'
|
76
|
+
:'remote_was_deleted' => :'remote_was_deleted',
|
77
|
+
:'field_mappings' => :'field_mappings',
|
78
|
+
:'modified_at' => :'modified_at',
|
79
|
+
:'remote_data' => :'remote_data'
|
71
80
|
}
|
72
81
|
end
|
73
82
|
|
@@ -91,8 +100,10 @@ module MergeHRISClient
|
|
91
100
|
:'earnings' => :'Array<Earning>',
|
92
101
|
:'deductions' => :'Array<Deduction>',
|
93
102
|
:'taxes' => :'Array<Tax>',
|
94
|
-
:'
|
95
|
-
:'
|
103
|
+
:'remote_was_deleted' => :'Boolean',
|
104
|
+
:'field_mappings' => :'Hash<String, Object>',
|
105
|
+
:'modified_at' => :'Time',
|
106
|
+
:'remote_data' => :'Array<RemoteData>'
|
96
107
|
}
|
97
108
|
end
|
98
109
|
|
@@ -107,7 +118,8 @@ module MergeHRISClient
|
|
107
118
|
:'start_date',
|
108
119
|
:'end_date',
|
109
120
|
:'check_date',
|
110
|
-
:'
|
121
|
+
:'field_mappings',
|
122
|
+
:'remote_data'
|
111
123
|
])
|
112
124
|
end
|
113
125
|
|
@@ -180,15 +192,25 @@ module MergeHRISClient
|
|
180
192
|
end
|
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
|
earnings == o.earnings &&
|
222
244
|
deductions == o.deductions &&
|
223
245
|
taxes == o.taxes &&
|
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, payroll_run, gross_pay, net_pay, start_date, end_date, check_date, earnings, deductions, taxes,
|
261
|
+
[id, remote_id, employee, payroll_run, gross_pay, net_pay, start_date, end_date, check_date, earnings, deductions, taxes, remote_was_deleted, field_mappings, modified_at, remote_data].hash
|
238
262
|
end
|
239
263
|
|
240
264
|
# Builds the object from hash
|