merge_hris_client 3.2.1 → 3.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +49 -16
- data/docs/AccountDetails.md +3 -1
- data/docs/AccountDetailsAndActions.md +7 -3
- data/docs/AccountIntegration.md +8 -4
- data/docs/AdvancedMetadata.md +28 -0
- data/docs/AuditLogEvent.md +32 -0
- data/docs/AuditTrailApi.md +91 -0
- data/docs/BankInfo.md +6 -4
- data/docs/BankInfoApi.md +4 -4
- data/docs/Benefit.md +6 -4
- data/docs/CommonModelScopeAPI.md +18 -0
- data/docs/Company.md +6 -4
- data/docs/CreateFieldMappingRequest.md +28 -0
- data/docs/DataPassthroughRequest.md +4 -4
- data/docs/DebugModelLogSummary.md +1 -1
- data/docs/Deduction.md +6 -4
- data/docs/Dependent.md +6 -4
- data/docs/Earning.md +6 -4
- data/docs/Employee.md +7 -3
- data/docs/EmployeePayrollRun.md +6 -4
- data/docs/EmployeeRequest.md +2 -0
- data/docs/EmployeesApi.md +10 -4
- data/docs/EmployerBenefit.md +6 -4
- data/docs/Employment.md +6 -4
- data/docs/EmploymentsApi.md +4 -4
- data/docs/EndUserDetailsRequest.md +13 -7
- data/docs/EventTypeEnum.md +15 -0
- data/docs/ExternalTargetFieldAPI.md +22 -0
- data/docs/ExternalTargetFieldAPIResponse.md +48 -0
- data/docs/FieldMappingApi.md +455 -0
- data/docs/FieldMappingApiInstance.md +24 -0
- data/docs/FieldMappingApiInstanceRemoteField.md +22 -0
- data/docs/FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo.md +22 -0
- data/docs/FieldMappingApiInstanceResponse.md +48 -0
- data/docs/FieldMappingApiInstanceTargetField.md +22 -0
- data/docs/FieldMappingInstanceResponse.md +24 -0
- data/docs/FieldPermissionDeserializer.md +20 -0
- data/docs/FieldPermissionDeserializerRequest.md +20 -0
- data/docs/ForceResyncApi.md +1 -1
- data/docs/GenerateRemoteKeyRequest.md +1 -1
- data/docs/Group.md +9 -5
- data/docs/GroupsApi.md +8 -4
- data/docs/IndividualCommonModelScopeDeserializer.md +22 -0
- data/docs/IndividualCommonModelScopeDeserializerRequest.md +22 -0
- data/docs/Issue.md +1 -1
- data/docs/IssuesApi.md +5 -3
- data/docs/LinkTokenApi.md +1 -1
- data/docs/LinkedAccountCommonModelScopeDeserializerRequest.md +18 -0
- data/docs/LinkedAccountsApi.md +2 -2
- data/docs/Location.md +6 -4
- data/docs/LocationsApi.md +6 -4
- data/docs/MetaResponse.md +1 -1
- data/docs/ModelPermissionDeserializer.md +18 -0
- data/docs/ModelPermissionDeserializerRequest.md +18 -0
- data/docs/PaginatedAuditLogEventList.md +22 -0
- data/docs/PaginatedTimesheetEntryList.md +22 -0
- data/docs/PatchedEditFieldMappingRequest.md +22 -0
- data/docs/PayGroup.md +6 -4
- data/docs/PayrollRun.md +6 -4
- data/docs/PayrollRunsApi.md +4 -4
- data/docs/RemoteEndpointInfo.md +22 -0
- data/docs/RemoteFieldAPI.md +28 -0
- data/docs/RemoteFieldAPIResponse.md +48 -0
- data/docs/RemoteKeyForRegenerationRequest.md +1 -1
- data/docs/RoleEnum.md +15 -0
- data/docs/ScopesApi.md +222 -0
- data/docs/SyncStatusApi.md +1 -1
- data/docs/Tax.md +6 -4
- data/docs/Team.md +6 -4
- data/docs/TimeOff.md +5 -3
- data/docs/TimeOffApi.md +12 -4
- data/docs/TimeOffBalance.md +6 -4
- data/docs/TimeOffBalancesApi.md +4 -4
- data/docs/TimesheetEntriesApi.md +341 -0
- data/docs/TimesheetEntry.md +38 -0
- data/docs/TimesheetEntryEndpointRequest.md +18 -0
- data/docs/TimesheetEntryRequest.md +28 -0
- data/docs/TimesheetEntryResponse.md +24 -0
- data/lib/merge_hris_client/api/audit_trail_api.rb +95 -0
- data/lib/merge_hris_client/api/bank_info_api.rb +4 -4
- data/lib/merge_hris_client/api/employees_api.rb +13 -4
- data/lib/merge_hris_client/api/employments_api.rb +4 -4
- data/lib/merge_hris_client/api/field_mapping_api.rb +424 -0
- data/lib/merge_hris_client/api/force_resync_api.rb +2 -2
- data/lib/merge_hris_client/api/groups_api.rb +10 -4
- data/lib/merge_hris_client/api/issues_api.rb +7 -4
- data/lib/merge_hris_client/api/linked_accounts_api.rb +3 -3
- data/lib/merge_hris_client/api/locations_api.rb +11 -4
- data/lib/merge_hris_client/api/payroll_runs_api.rb +4 -4
- data/lib/merge_hris_client/api/scopes_api.rb +209 -0
- data/lib/merge_hris_client/api/sync_status_api.rb +2 -2
- data/lib/merge_hris_client/api/time_off_api.rb +16 -4
- data/lib/merge_hris_client/api/time_off_balances_api.rb +4 -4
- data/lib/merge_hris_client/api/timesheet_entries_api.rb +342 -0
- data/lib/merge_hris_client/configuration.rb +4 -0
- data/lib/merge_hris_client/models/account_details.rb +14 -5
- data/lib/merge_hris_client/models/account_details_and_actions.rb +28 -4
- data/lib/merge_hris_client/models/account_integration.rb +36 -14
- data/lib/merge_hris_client/models/advanced_metadata.rb +270 -0
- data/lib/merge_hris_client/models/audit_log_event.rb +356 -0
- data/lib/merge_hris_client/models/bank_info.rb +24 -16
- data/lib/merge_hris_client/models/benefit.rb +24 -16
- data/lib/merge_hris_client/models/common_model_scope_api.rb +226 -0
- data/lib/merge_hris_client/models/company.rb +24 -16
- data/lib/merge_hris_client/models/create_field_mapping_request.rb +396 -0
- data/lib/merge_hris_client/models/data_passthrough_request.rb +3 -0
- data/lib/merge_hris_client/models/deduction.rb +24 -16
- data/lib/merge_hris_client/models/dependent.rb +24 -16
- data/lib/merge_hris_client/models/earning.rb +24 -16
- data/lib/merge_hris_client/models/employee.rb +34 -15
- data/lib/merge_hris_client/models/employee_payroll_run.rb +24 -16
- data/lib/merge_hris_client/models/employee_request.rb +12 -1
- data/lib/merge_hris_client/models/employer_benefit.rb +24 -16
- data/lib/merge_hris_client/models/employment.rb +24 -16
- data/lib/merge_hris_client/models/end_user_details_request.rb +67 -6
- data/lib/merge_hris_client/models/event_type_enum.rb +81 -0
- data/lib/merge_hris_client/models/external_target_field_api.rb +239 -0
- data/lib/merge_hris_client/models/external_target_field_api_response.rb +385 -0
- data/lib/merge_hris_client/models/field_mapping_api_instance.rb +247 -0
- data/lib/merge_hris_client/models/field_mapping_api_instance_remote_field.rb +253 -0
- data/lib/merge_hris_client/models/field_mapping_api_instance_remote_field_remote_endpoint_info.rb +241 -0
- data/lib/merge_hris_client/models/field_mapping_api_instance_response.rb +385 -0
- data/lib/merge_hris_client/models/field_mapping_api_instance_target_field.rb +251 -0
- data/lib/merge_hris_client/models/field_mapping_instance_response.rb +266 -0
- data/lib/merge_hris_client/models/field_permission_deserializer.rb +231 -0
- data/lib/merge_hris_client/models/field_permission_deserializer_request.rb +231 -0
- data/lib/merge_hris_client/models/generate_remote_key_request.rb +1 -0
- data/lib/merge_hris_client/models/group.rb +34 -15
- data/lib/merge_hris_client/models/individual_common_model_scope_deserializer.rb +243 -0
- data/lib/merge_hris_client/models/individual_common_model_scope_deserializer_request.rb +262 -0
- data/lib/merge_hris_client/models/linked_account_common_model_scope_deserializer_request.rb +226 -0
- data/lib/merge_hris_client/models/location.rb +24 -16
- data/lib/merge_hris_client/models/model_permission_deserializer.rb +218 -0
- data/lib/merge_hris_client/models/model_permission_deserializer_request.rb +218 -0
- data/lib/merge_hris_client/models/paginated_audit_log_event_list.rb +240 -0
- data/lib/merge_hris_client/models/paginated_timesheet_entry_list.rb +240 -0
- data/lib/merge_hris_client/models/patched_edit_field_mapping_request.rb +271 -0
- data/lib/merge_hris_client/models/pay_group.rb +24 -16
- data/lib/merge_hris_client/models/payroll_run.rb +24 -16
- data/lib/merge_hris_client/models/remote_endpoint_info.rb +253 -0
- data/lib/merge_hris_client/models/remote_field_api.rb +285 -0
- data/lib/merge_hris_client/models/remote_field_api_response.rb +385 -0
- data/lib/merge_hris_client/models/remote_key_for_regeneration_request.rb +1 -0
- data/lib/merge_hris_client/models/role_enum.rb +49 -0
- data/lib/merge_hris_client/models/tax.rb +24 -16
- data/lib/merge_hris_client/models/team.rb +24 -16
- data/lib/merge_hris_client/models/time_off.rb +23 -15
- data/lib/merge_hris_client/models/time_off_balance.rb +24 -16
- data/lib/merge_hris_client/models/timesheet_entry.rb +326 -0
- data/lib/merge_hris_client/models/timesheet_entry_endpoint_request.rb +223 -0
- data/lib/merge_hris_client/models/timesheet_entry_request.rb +278 -0
- data/lib/merge_hris_client/models/timesheet_entry_response.rb +266 -0
- data/lib/merge_hris_client/version.rb +1 -1
- data/lib/merge_hris_client.rb +35 -21
- data/spec/api/audit_trail_api_spec.rb +51 -0
- data/spec/api/bank_info_api_spec.rb +2 -2
- data/spec/api/employees_api_spec.rb +5 -2
- data/spec/api/employments_api_spec.rb +2 -2
- data/spec/api/field_mapping_api_spec.rb +107 -0
- data/spec/api/force_resync_api_spec.rb +1 -1
- data/spec/api/groups_api_spec.rb +4 -2
- data/spec/api/issues_api_spec.rb +3 -2
- data/spec/api/linked_accounts_api_spec.rb +1 -1
- data/spec/api/locations_api_spec.rb +3 -2
- data/spec/api/payroll_runs_api_spec.rb +2 -2
- data/spec/api/scopes_api_spec.rb +68 -0
- data/spec/api/sync_status_api_spec.rb +1 -1
- data/spec/api/time_off_api_spec.rb +6 -2
- data/spec/api/time_off_balances_api_spec.rb +2 -2
- data/spec/api/timesheet_entries_api_spec.rb +99 -0
- data/spec/models/account_details_and_actions_spec.rb +12 -0
- data/spec/models/account_details_spec.rb +6 -0
- data/spec/models/account_integration_spec.rb +14 -2
- data/spec/models/advanced_metadata_spec.rb +64 -0
- data/spec/models/audit_log_event_spec.rb +76 -0
- data/spec/models/bank_info_spec.rb +12 -6
- data/spec/models/benefit_spec.rb +12 -6
- data/spec/models/common_model_scope_api_spec.rb +34 -0
- data/spec/models/company_spec.rb +11 -5
- data/spec/models/create_field_mapping_request_spec.rb +64 -0
- data/spec/models/deduction_spec.rb +12 -6
- data/spec/models/dependent_spec.rb +12 -6
- data/spec/models/earning_spec.rb +11 -5
- data/spec/models/employee_payroll_run_spec.rb +12 -6
- data/spec/models/employee_request_spec.rb +6 -0
- data/spec/models/employee_spec.rb +18 -6
- data/spec/models/employer_benefit_spec.rb +12 -6
- data/spec/models/employment_spec.rb +12 -6
- data/spec/models/end_user_details_request_spec.rb +18 -0
- data/spec/models/event_type_enum_spec.rb +28 -0
- data/spec/models/external_target_field_api_response_spec.rb +124 -0
- data/spec/models/external_target_field_api_spec.rb +46 -0
- data/spec/models/field_mapping_api_instance_remote_field_remote_endpoint_info_spec.rb +46 -0
- data/spec/models/field_mapping_api_instance_remote_field_spec.rb +46 -0
- data/spec/models/field_mapping_api_instance_response_spec.rb +124 -0
- data/spec/models/field_mapping_api_instance_spec.rb +52 -0
- data/spec/models/field_mapping_api_instance_target_field_spec.rb +46 -0
- data/spec/models/field_mapping_instance_response_spec.rb +52 -0
- data/spec/models/field_permission_deserializer_request_spec.rb +40 -0
- data/spec/models/field_permission_deserializer_spec.rb +40 -0
- data/spec/models/group_spec.rb +13 -1
- data/spec/models/individual_common_model_scope_deserializer_request_spec.rb +46 -0
- data/spec/models/individual_common_model_scope_deserializer_spec.rb +46 -0
- data/spec/models/linked_account_common_model_scope_deserializer_request_spec.rb +34 -0
- data/spec/models/location_spec.rb +12 -6
- data/spec/models/model_permission_deserializer_request_spec.rb +34 -0
- data/spec/models/model_permission_deserializer_spec.rb +34 -0
- data/spec/models/paginated_audit_log_event_list_spec.rb +46 -0
- data/spec/models/paginated_timesheet_entry_list_spec.rb +46 -0
- data/spec/models/patched_edit_field_mapping_request_spec.rb +46 -0
- data/spec/models/pay_group_spec.rb +9 -3
- data/spec/models/payroll_run_spec.rb +12 -6
- data/spec/models/remote_endpoint_info_spec.rb +46 -0
- data/spec/models/remote_field_api_response_spec.rb +124 -0
- data/spec/models/remote_field_api_spec.rb +64 -0
- data/spec/models/role_enum_spec.rb +28 -0
- data/spec/models/tax_spec.rb +12 -6
- data/spec/models/team_spec.rb +10 -4
- data/spec/models/time_off_balance_spec.rb +12 -6
- data/spec/models/time_off_spec.rb +12 -6
- data/spec/models/timesheet_entry_endpoint_request_spec.rb +34 -0
- data/spec/models/timesheet_entry_request_spec.rb +64 -0
- data/spec/models/timesheet_entry_response_spec.rb +52 -0
- data/spec/models/timesheet_entry_spec.rb +94 -0
- metadata +266 -126
@@ -21,6 +21,12 @@ module MergeHRISClient
|
|
21
21
|
# The third-party API ID of the matching object.
|
22
22
|
attr_accessor :remote_id
|
23
23
|
|
24
|
+
# The datetime that this object was created by Merge.
|
25
|
+
attr_accessor :created_at
|
26
|
+
|
27
|
+
# The datetime that this object was modified by Merge.
|
28
|
+
attr_accessor :modified_at
|
29
|
+
|
24
30
|
# The employee with this bank account.
|
25
31
|
attr_accessor :employee
|
26
32
|
|
@@ -39,12 +45,9 @@ module MergeHRISClient
|
|
39
45
|
# When the matching bank object was created in the third party system.
|
40
46
|
attr_accessor :remote_created_at
|
41
47
|
|
42
|
-
# Indicates whether or not this object has been deleted
|
48
|
+
# Indicates whether or not this object has been deleted in the third party platform.
|
43
49
|
attr_accessor :remote_was_deleted
|
44
50
|
|
45
|
-
# This is the datetime that this object was last updated by Merge
|
46
|
-
attr_accessor :modified_at
|
47
|
-
|
48
51
|
attr_accessor :field_mappings
|
49
52
|
|
50
53
|
attr_accessor :remote_data
|
@@ -54,6 +57,8 @@ module MergeHRISClient
|
|
54
57
|
{
|
55
58
|
:'id' => :'id',
|
56
59
|
:'remote_id' => :'remote_id',
|
60
|
+
:'created_at' => :'created_at',
|
61
|
+
:'modified_at' => :'modified_at',
|
57
62
|
:'employee' => :'employee',
|
58
63
|
:'account_number' => :'account_number',
|
59
64
|
:'routing_number' => :'routing_number',
|
@@ -61,7 +66,6 @@ module MergeHRISClient
|
|
61
66
|
:'account_type' => :'account_type',
|
62
67
|
:'remote_created_at' => :'remote_created_at',
|
63
68
|
:'remote_was_deleted' => :'remote_was_deleted',
|
64
|
-
:'modified_at' => :'modified_at',
|
65
69
|
:'field_mappings' => :'field_mappings',
|
66
70
|
:'remote_data' => :'remote_data'
|
67
71
|
}
|
@@ -77,6 +81,8 @@ module MergeHRISClient
|
|
77
81
|
{
|
78
82
|
:'id' => :'String',
|
79
83
|
:'remote_id' => :'String',
|
84
|
+
:'created_at' => :'Time',
|
85
|
+
:'modified_at' => :'Time',
|
80
86
|
:'employee' => :'String',
|
81
87
|
:'account_number' => :'String',
|
82
88
|
:'routing_number' => :'String',
|
@@ -84,8 +90,7 @@ module MergeHRISClient
|
|
84
90
|
:'account_type' => :'AccountTypeEnum',
|
85
91
|
:'remote_created_at' => :'Time',
|
86
92
|
:'remote_was_deleted' => :'Boolean',
|
87
|
-
:'
|
88
|
-
:'field_mappings' => :'Hash<String, Object>',
|
93
|
+
:'field_mappings' => :'Object',
|
89
94
|
:'remote_data' => :'Array<RemoteData>'
|
90
95
|
}
|
91
96
|
end
|
@@ -128,6 +133,14 @@ module MergeHRISClient
|
|
128
133
|
self.remote_id = attributes[:'remote_id']
|
129
134
|
end
|
130
135
|
|
136
|
+
if attributes.key?(:'created_at')
|
137
|
+
self.created_at = attributes[:'created_at']
|
138
|
+
end
|
139
|
+
|
140
|
+
if attributes.key?(:'modified_at')
|
141
|
+
self.modified_at = attributes[:'modified_at']
|
142
|
+
end
|
143
|
+
|
131
144
|
if attributes.key?(:'employee')
|
132
145
|
self.employee = attributes[:'employee']
|
133
146
|
end
|
@@ -156,14 +169,8 @@ module MergeHRISClient
|
|
156
169
|
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
157
170
|
end
|
158
171
|
|
159
|
-
if attributes.key?(:'modified_at')
|
160
|
-
self.modified_at = attributes[:'modified_at']
|
161
|
-
end
|
162
|
-
|
163
172
|
if attributes.key?(:'field_mappings')
|
164
|
-
|
165
|
-
self.field_mappings = value
|
166
|
-
end
|
173
|
+
self.field_mappings = attributes[:'field_mappings']
|
167
174
|
end
|
168
175
|
|
169
176
|
if attributes.key?(:'remote_data')
|
@@ -208,6 +215,8 @@ module MergeHRISClient
|
|
208
215
|
self.class == o.class &&
|
209
216
|
id == o.id &&
|
210
217
|
remote_id == o.remote_id &&
|
218
|
+
created_at == o.created_at &&
|
219
|
+
modified_at == o.modified_at &&
|
211
220
|
employee == o.employee &&
|
212
221
|
account_number == o.account_number &&
|
213
222
|
routing_number == o.routing_number &&
|
@@ -215,7 +224,6 @@ module MergeHRISClient
|
|
215
224
|
account_type == o.account_type &&
|
216
225
|
remote_created_at == o.remote_created_at &&
|
217
226
|
remote_was_deleted == o.remote_was_deleted &&
|
218
|
-
modified_at == o.modified_at &&
|
219
227
|
field_mappings == o.field_mappings &&
|
220
228
|
remote_data == o.remote_data
|
221
229
|
end
|
@@ -229,7 +237,7 @@ module MergeHRISClient
|
|
229
237
|
# Calculates hash code according to all attributes.
|
230
238
|
# @return [Integer] Hash code
|
231
239
|
def hash
|
232
|
-
[id, remote_id, employee, account_number, routing_number, bank_name, account_type, remote_created_at, remote_was_deleted,
|
240
|
+
[id, remote_id, created_at, modified_at, employee, account_number, routing_number, bank_name, account_type, remote_created_at, remote_was_deleted, field_mappings, remote_data].hash
|
233
241
|
end
|
234
242
|
|
235
243
|
# Builds the object from hash
|
@@ -21,6 +21,12 @@ module MergeHRISClient
|
|
21
21
|
# The third-party API ID of the matching object.
|
22
22
|
attr_accessor :remote_id
|
23
23
|
|
24
|
+
# The datetime that this object was created by Merge.
|
25
|
+
attr_accessor :created_at
|
26
|
+
|
27
|
+
# The datetime that this object was modified by Merge.
|
28
|
+
attr_accessor :modified_at
|
29
|
+
|
24
30
|
# The employee on the plan.
|
25
31
|
attr_accessor :employee
|
26
32
|
|
@@ -42,15 +48,12 @@ module MergeHRISClient
|
|
42
48
|
# The day and time the benefit ended.
|
43
49
|
attr_accessor :end_date
|
44
50
|
|
45
|
-
# Indicates whether or not this object has been deleted
|
51
|
+
# Indicates whether or not this object has been deleted in the third party platform.
|
46
52
|
attr_accessor :remote_was_deleted
|
47
53
|
|
48
54
|
# The employer benefit plan the employee is enrolled in.
|
49
55
|
attr_accessor :employer_benefit
|
50
56
|
|
51
|
-
# This is the datetime that this object was last updated by Merge
|
52
|
-
attr_accessor :modified_at
|
53
|
-
|
54
57
|
attr_accessor :field_mappings
|
55
58
|
|
56
59
|
attr_accessor :remote_data
|
@@ -60,6 +63,8 @@ module MergeHRISClient
|
|
60
63
|
{
|
61
64
|
:'id' => :'id',
|
62
65
|
:'remote_id' => :'remote_id',
|
66
|
+
:'created_at' => :'created_at',
|
67
|
+
:'modified_at' => :'modified_at',
|
63
68
|
:'employee' => :'employee',
|
64
69
|
:'provider_name' => :'provider_name',
|
65
70
|
:'benefit_plan_type' => :'benefit_plan_type',
|
@@ -69,7 +74,6 @@ module MergeHRISClient
|
|
69
74
|
:'end_date' => :'end_date',
|
70
75
|
:'remote_was_deleted' => :'remote_was_deleted',
|
71
76
|
:'employer_benefit' => :'employer_benefit',
|
72
|
-
:'modified_at' => :'modified_at',
|
73
77
|
:'field_mappings' => :'field_mappings',
|
74
78
|
:'remote_data' => :'remote_data'
|
75
79
|
}
|
@@ -85,6 +89,8 @@ module MergeHRISClient
|
|
85
89
|
{
|
86
90
|
:'id' => :'String',
|
87
91
|
:'remote_id' => :'String',
|
92
|
+
:'created_at' => :'Time',
|
93
|
+
:'modified_at' => :'Time',
|
88
94
|
:'employee' => :'String',
|
89
95
|
:'provider_name' => :'String',
|
90
96
|
:'benefit_plan_type' => :'String',
|
@@ -94,8 +100,7 @@ module MergeHRISClient
|
|
94
100
|
:'end_date' => :'Time',
|
95
101
|
:'remote_was_deleted' => :'Boolean',
|
96
102
|
:'employer_benefit' => :'String',
|
97
|
-
:'
|
98
|
-
:'field_mappings' => :'Hash<String, Object>',
|
103
|
+
:'field_mappings' => :'Object',
|
99
104
|
:'remote_data' => :'Array<RemoteData>'
|
100
105
|
}
|
101
106
|
end
|
@@ -140,6 +145,14 @@ module MergeHRISClient
|
|
140
145
|
self.remote_id = attributes[:'remote_id']
|
141
146
|
end
|
142
147
|
|
148
|
+
if attributes.key?(:'created_at')
|
149
|
+
self.created_at = attributes[:'created_at']
|
150
|
+
end
|
151
|
+
|
152
|
+
if attributes.key?(:'modified_at')
|
153
|
+
self.modified_at = attributes[:'modified_at']
|
154
|
+
end
|
155
|
+
|
143
156
|
if attributes.key?(:'employee')
|
144
157
|
self.employee = attributes[:'employee']
|
145
158
|
end
|
@@ -176,14 +189,8 @@ module MergeHRISClient
|
|
176
189
|
self.employer_benefit = attributes[:'employer_benefit']
|
177
190
|
end
|
178
191
|
|
179
|
-
if attributes.key?(:'modified_at')
|
180
|
-
self.modified_at = attributes[:'modified_at']
|
181
|
-
end
|
182
|
-
|
183
192
|
if attributes.key?(:'field_mappings')
|
184
|
-
|
185
|
-
self.field_mappings = value
|
186
|
-
end
|
193
|
+
self.field_mappings = attributes[:'field_mappings']
|
187
194
|
end
|
188
195
|
|
189
196
|
if attributes.key?(:'remote_data')
|
@@ -213,6 +220,8 @@ module MergeHRISClient
|
|
213
220
|
self.class == o.class &&
|
214
221
|
id == o.id &&
|
215
222
|
remote_id == o.remote_id &&
|
223
|
+
created_at == o.created_at &&
|
224
|
+
modified_at == o.modified_at &&
|
216
225
|
employee == o.employee &&
|
217
226
|
provider_name == o.provider_name &&
|
218
227
|
benefit_plan_type == o.benefit_plan_type &&
|
@@ -222,7 +231,6 @@ module MergeHRISClient
|
|
222
231
|
end_date == o.end_date &&
|
223
232
|
remote_was_deleted == o.remote_was_deleted &&
|
224
233
|
employer_benefit == o.employer_benefit &&
|
225
|
-
modified_at == o.modified_at &&
|
226
234
|
field_mappings == o.field_mappings &&
|
227
235
|
remote_data == o.remote_data
|
228
236
|
end
|
@@ -236,7 +244,7 @@ module MergeHRISClient
|
|
236
244
|
# Calculates hash code according to all attributes.
|
237
245
|
# @return [Integer] Hash code
|
238
246
|
def hash
|
239
|
-
[id, remote_id, employee, provider_name, benefit_plan_type, employee_contribution, company_contribution, start_date, end_date, remote_was_deleted, employer_benefit,
|
247
|
+
[id, remote_id, created_at, modified_at, employee, provider_name, benefit_plan_type, employee_contribution, company_contribution, start_date, end_date, remote_was_deleted, employer_benefit, field_mappings, remote_data].hash
|
240
248
|
end
|
241
249
|
|
242
250
|
# Builds the object from hash
|
@@ -0,0 +1,226 @@
|
|
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 CommonModelScopeAPI
|
18
|
+
# The common models you want to update the scopes for
|
19
|
+
attr_accessor :common_models
|
20
|
+
|
21
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
22
|
+
def self.attribute_map
|
23
|
+
{
|
24
|
+
:'common_models' => :'common_models'
|
25
|
+
}
|
26
|
+
end
|
27
|
+
|
28
|
+
# Returns all the JSON keys this model knows about
|
29
|
+
def self.acceptable_attributes
|
30
|
+
attribute_map.values
|
31
|
+
end
|
32
|
+
|
33
|
+
# Attribute type mapping.
|
34
|
+
def self.openapi_types
|
35
|
+
{
|
36
|
+
:'common_models' => :'Array<IndividualCommonModelScopeDeserializer>'
|
37
|
+
}
|
38
|
+
end
|
39
|
+
|
40
|
+
# List of attributes with nullable: true
|
41
|
+
def self.openapi_nullable
|
42
|
+
Set.new([
|
43
|
+
])
|
44
|
+
end
|
45
|
+
|
46
|
+
# Initializes the object
|
47
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
48
|
+
def initialize(attributes = {})
|
49
|
+
if (!attributes.is_a?(Hash))
|
50
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `MergeHRISClient::CommonModelScopeAPI` initialize method"
|
51
|
+
end
|
52
|
+
|
53
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
54
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
55
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
56
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `MergeHRISClient::CommonModelScopeAPI`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
57
|
+
end
|
58
|
+
h[k.to_sym] = v
|
59
|
+
}
|
60
|
+
|
61
|
+
if attributes.key?(:'common_models')
|
62
|
+
if (value = attributes[:'common_models']).is_a?(Array)
|
63
|
+
self.common_models = value
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
69
|
+
# @return Array for valid properties with the reasons
|
70
|
+
def list_invalid_properties
|
71
|
+
invalid_properties = Array.new
|
72
|
+
if @common_models.nil?
|
73
|
+
invalid_properties.push('invalid value for "common_models", common_models cannot be nil.')
|
74
|
+
end
|
75
|
+
|
76
|
+
invalid_properties
|
77
|
+
end
|
78
|
+
|
79
|
+
# Check to see if the all the properties in the model are valid
|
80
|
+
# @return true if the model is valid
|
81
|
+
def valid?
|
82
|
+
return false if @common_models.nil?
|
83
|
+
true
|
84
|
+
end
|
85
|
+
|
86
|
+
# Checks equality by comparing each attribute.
|
87
|
+
# @param [Object] Object to be compared
|
88
|
+
def ==(o)
|
89
|
+
return true if self.equal?(o)
|
90
|
+
self.class == o.class &&
|
91
|
+
common_models == o.common_models
|
92
|
+
end
|
93
|
+
|
94
|
+
# @see the `==` method
|
95
|
+
# @param [Object] Object to be compared
|
96
|
+
def eql?(o)
|
97
|
+
self == o
|
98
|
+
end
|
99
|
+
|
100
|
+
# Calculates hash code according to all attributes.
|
101
|
+
# @return [Integer] Hash code
|
102
|
+
def hash
|
103
|
+
[common_models].hash
|
104
|
+
end
|
105
|
+
|
106
|
+
# Builds the object from hash
|
107
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
108
|
+
# @return [Object] Returns the model itself
|
109
|
+
def self.build_from_hash(attributes)
|
110
|
+
new.build_from_hash(attributes)
|
111
|
+
end
|
112
|
+
|
113
|
+
# Builds the object from hash
|
114
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
115
|
+
# @return [Object] Returns the model itself
|
116
|
+
def build_from_hash(attributes)
|
117
|
+
return nil unless attributes.is_a?(Hash)
|
118
|
+
self.class.openapi_types.each_pair do |key, type|
|
119
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
120
|
+
self.send("#{key}=", nil)
|
121
|
+
elsif type =~ /\AArray<(.*)>/i
|
122
|
+
# check to ensure the input is an array given that the attribute
|
123
|
+
# is documented as an array but the input is not
|
124
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
125
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
126
|
+
end
|
127
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
128
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
129
|
+
end
|
130
|
+
end
|
131
|
+
|
132
|
+
self
|
133
|
+
end
|
134
|
+
|
135
|
+
# Deserializes the data based on type
|
136
|
+
# @param string type Data type
|
137
|
+
# @param string value Value to be deserialized
|
138
|
+
# @return [Object] Deserialized data
|
139
|
+
def _deserialize(type, value)
|
140
|
+
case type.to_sym
|
141
|
+
when :Time
|
142
|
+
Time.parse(value)
|
143
|
+
when :Date
|
144
|
+
Date.parse(value)
|
145
|
+
when :String
|
146
|
+
value
|
147
|
+
when :Integer
|
148
|
+
value.to_i
|
149
|
+
when :Float
|
150
|
+
value.to_f
|
151
|
+
when :Boolean
|
152
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
153
|
+
true
|
154
|
+
else
|
155
|
+
false
|
156
|
+
end
|
157
|
+
when :Object
|
158
|
+
# generic object (usually a Hash), return directly
|
159
|
+
value
|
160
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
161
|
+
inner_type = Regexp.last_match[:inner_type]
|
162
|
+
value.map { |v| _deserialize(inner_type, v) }
|
163
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
164
|
+
k_type = Regexp.last_match[:k_type]
|
165
|
+
v_type = Regexp.last_match[:v_type]
|
166
|
+
{}.tap do |hash|
|
167
|
+
value.each do |k, v|
|
168
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
169
|
+
end
|
170
|
+
end
|
171
|
+
else # model
|
172
|
+
# models (e.g. Pet) or oneOf
|
173
|
+
klass = MergeHRISClient.const_get(type)
|
174
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
175
|
+
end
|
176
|
+
end
|
177
|
+
|
178
|
+
# Returns the string representation of the object
|
179
|
+
# @return [String] String presentation of the object
|
180
|
+
def to_s
|
181
|
+
to_hash.to_s
|
182
|
+
end
|
183
|
+
|
184
|
+
# to_body is an alias to to_hash (backward compatibility)
|
185
|
+
# @return [Hash] Returns the object in the form of hash
|
186
|
+
def to_body
|
187
|
+
to_hash
|
188
|
+
end
|
189
|
+
|
190
|
+
# Returns the object in the form of hash
|
191
|
+
# @return [Hash] Returns the object in the form of hash
|
192
|
+
def to_hash
|
193
|
+
hash = {}
|
194
|
+
self.class.attribute_map.each_pair do |attr, param|
|
195
|
+
value = self.send(attr)
|
196
|
+
if value.nil?
|
197
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
198
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
199
|
+
end
|
200
|
+
|
201
|
+
hash[param] = _to_hash(value)
|
202
|
+
end
|
203
|
+
hash
|
204
|
+
end
|
205
|
+
|
206
|
+
# Outputs non-array value in the form of hash
|
207
|
+
# For object, use to_hash. Otherwise, just return the value
|
208
|
+
# @param [Object] value Any valid value
|
209
|
+
# @return [Hash] Returns the value in the form of hash
|
210
|
+
def _to_hash(value)
|
211
|
+
if value.is_a?(Array)
|
212
|
+
value.compact.map { |v| _to_hash(v) }
|
213
|
+
elsif value.is_a?(Hash)
|
214
|
+
{}.tap do |hash|
|
215
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
216
|
+
end
|
217
|
+
elsif value.respond_to? :to_hash
|
218
|
+
value.to_hash
|
219
|
+
else
|
220
|
+
value
|
221
|
+
end
|
222
|
+
end
|
223
|
+
|
224
|
+
end
|
225
|
+
|
226
|
+
end
|
@@ -21,6 +21,12 @@ module MergeHRISClient
|
|
21
21
|
# The third-party API ID of the matching object.
|
22
22
|
attr_accessor :remote_id
|
23
23
|
|
24
|
+
# The datetime that this object was created by Merge.
|
25
|
+
attr_accessor :created_at
|
26
|
+
|
27
|
+
# The datetime that this object was modified by Merge.
|
28
|
+
attr_accessor :modified_at
|
29
|
+
|
24
30
|
# The company's legal name.
|
25
31
|
attr_accessor :legal_name
|
26
32
|
|
@@ -30,12 +36,9 @@ module MergeHRISClient
|
|
30
36
|
# The company's Employer Identification Numbers.
|
31
37
|
attr_accessor :eins
|
32
38
|
|
33
|
-
# Indicates whether or not this object has been deleted
|
39
|
+
# Indicates whether or not this object has been deleted in the third party platform.
|
34
40
|
attr_accessor :remote_was_deleted
|
35
41
|
|
36
|
-
# This is the datetime that this object was last updated by Merge
|
37
|
-
attr_accessor :modified_at
|
38
|
-
|
39
42
|
attr_accessor :field_mappings
|
40
43
|
|
41
44
|
attr_accessor :remote_data
|
@@ -45,11 +48,12 @@ module MergeHRISClient
|
|
45
48
|
{
|
46
49
|
:'id' => :'id',
|
47
50
|
:'remote_id' => :'remote_id',
|
51
|
+
:'created_at' => :'created_at',
|
52
|
+
:'modified_at' => :'modified_at',
|
48
53
|
:'legal_name' => :'legal_name',
|
49
54
|
:'display_name' => :'display_name',
|
50
55
|
:'eins' => :'eins',
|
51
56
|
:'remote_was_deleted' => :'remote_was_deleted',
|
52
|
-
:'modified_at' => :'modified_at',
|
53
57
|
:'field_mappings' => :'field_mappings',
|
54
58
|
:'remote_data' => :'remote_data'
|
55
59
|
}
|
@@ -65,12 +69,13 @@ module MergeHRISClient
|
|
65
69
|
{
|
66
70
|
:'id' => :'String',
|
67
71
|
:'remote_id' => :'String',
|
72
|
+
:'created_at' => :'Time',
|
73
|
+
:'modified_at' => :'Time',
|
68
74
|
:'legal_name' => :'String',
|
69
75
|
:'display_name' => :'String',
|
70
76
|
:'eins' => :'Array<String>',
|
71
77
|
:'remote_was_deleted' => :'Boolean',
|
72
|
-
:'
|
73
|
-
:'field_mappings' => :'Hash<String, Object>',
|
78
|
+
:'field_mappings' => :'Object',
|
74
79
|
:'remote_data' => :'Array<RemoteData>'
|
75
80
|
}
|
76
81
|
end
|
@@ -110,6 +115,14 @@ module MergeHRISClient
|
|
110
115
|
self.remote_id = attributes[:'remote_id']
|
111
116
|
end
|
112
117
|
|
118
|
+
if attributes.key?(:'created_at')
|
119
|
+
self.created_at = attributes[:'created_at']
|
120
|
+
end
|
121
|
+
|
122
|
+
if attributes.key?(:'modified_at')
|
123
|
+
self.modified_at = attributes[:'modified_at']
|
124
|
+
end
|
125
|
+
|
113
126
|
if attributes.key?(:'legal_name')
|
114
127
|
self.legal_name = attributes[:'legal_name']
|
115
128
|
end
|
@@ -128,14 +141,8 @@ module MergeHRISClient
|
|
128
141
|
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
129
142
|
end
|
130
143
|
|
131
|
-
if attributes.key?(:'modified_at')
|
132
|
-
self.modified_at = attributes[:'modified_at']
|
133
|
-
end
|
134
|
-
|
135
144
|
if attributes.key?(:'field_mappings')
|
136
|
-
|
137
|
-
self.field_mappings = value
|
138
|
-
end
|
145
|
+
self.field_mappings = attributes[:'field_mappings']
|
139
146
|
end
|
140
147
|
|
141
148
|
if attributes.key?(:'remote_data')
|
@@ -165,11 +172,12 @@ module MergeHRISClient
|
|
165
172
|
self.class == o.class &&
|
166
173
|
id == o.id &&
|
167
174
|
remote_id == o.remote_id &&
|
175
|
+
created_at == o.created_at &&
|
176
|
+
modified_at == o.modified_at &&
|
168
177
|
legal_name == o.legal_name &&
|
169
178
|
display_name == o.display_name &&
|
170
179
|
eins == o.eins &&
|
171
180
|
remote_was_deleted == o.remote_was_deleted &&
|
172
|
-
modified_at == o.modified_at &&
|
173
181
|
field_mappings == o.field_mappings &&
|
174
182
|
remote_data == o.remote_data
|
175
183
|
end
|
@@ -183,7 +191,7 @@ module MergeHRISClient
|
|
183
191
|
# Calculates hash code according to all attributes.
|
184
192
|
# @return [Integer] Hash code
|
185
193
|
def hash
|
186
|
-
[id, remote_id, legal_name, display_name, eins, remote_was_deleted,
|
194
|
+
[id, remote_id, created_at, modified_at, legal_name, display_name, eins, remote_was_deleted, field_mappings, remote_data].hash
|
187
195
|
end
|
188
196
|
|
189
197
|
# Builds the object from hash
|