merge_hris_client 3.0.0 → 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_integration.rb +30 -8
- 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 +3 -1
- data/lib/merge_hris_client/models/category_enum.rb +3 -1
- 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/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/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/enabled_actions_enum.rb +45 -0
- data/lib/merge_hris_client/models/end_user_details_request.rb +20 -7
- data/lib/merge_hris_client/models/group.rb +38 -16
- data/lib/merge_hris_client/models/group_type_enum.rb +2 -1
- 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/meta_response.rb +12 -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_frequency_enum.rb +2 -1
- data/lib/merge_hris_client/models/pay_group.rb +37 -15
- data/lib/merge_hris_client/models/pay_period_enum.rb +2 -1
- data/lib/merge_hris_client/models/payroll_run.rb +39 -17
- 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/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/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,7 +14,7 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module MergeHRISClient
|
17
|
-
# # The PayGroup Object ### Description The `PayGroup` object is used to represent
|
17
|
+
# # The PayGroup Object ### Description The `PayGroup` object is used to represent a subset of employees that are put together for payroll processing purposes. ### Usage Example Fetch from the `LIST PayGroup` endpoint and filter by `ID` to show all pay group information.
|
18
18
|
class PayGroup
|
19
19
|
attr_accessor :id
|
20
20
|
|
@@ -24,19 +24,26 @@ module MergeHRISClient
|
|
24
24
|
# The pay group name.
|
25
25
|
attr_accessor :pay_group_name
|
26
26
|
|
27
|
-
attr_accessor :remote_data
|
28
|
-
|
29
27
|
# Indicates whether or not this object has been deleted by third party webhooks.
|
30
28
|
attr_accessor :remote_was_deleted
|
31
29
|
|
30
|
+
attr_accessor :field_mappings
|
31
|
+
|
32
|
+
# This is the datetime that this object was last updated by Merge
|
33
|
+
attr_accessor :modified_at
|
34
|
+
|
35
|
+
attr_accessor :remote_data
|
36
|
+
|
32
37
|
# Attribute mapping from ruby-style variable name to JSON key.
|
33
38
|
def self.attribute_map
|
34
39
|
{
|
35
40
|
:'id' => :'id',
|
36
41
|
:'remote_id' => :'remote_id',
|
37
42
|
:'pay_group_name' => :'pay_group_name',
|
38
|
-
:'
|
39
|
-
:'
|
43
|
+
:'remote_was_deleted' => :'remote_was_deleted',
|
44
|
+
:'field_mappings' => :'field_mappings',
|
45
|
+
:'modified_at' => :'modified_at',
|
46
|
+
:'remote_data' => :'remote_data'
|
40
47
|
}
|
41
48
|
end
|
42
49
|
|
@@ -51,8 +58,10 @@ module MergeHRISClient
|
|
51
58
|
:'id' => :'String',
|
52
59
|
:'remote_id' => :'String',
|
53
60
|
:'pay_group_name' => :'String',
|
54
|
-
:'
|
55
|
-
:'
|
61
|
+
:'remote_was_deleted' => :'Boolean',
|
62
|
+
:'field_mappings' => :'Hash<String, Object>',
|
63
|
+
:'modified_at' => :'Time',
|
64
|
+
:'remote_data' => :'Array<RemoteData>'
|
56
65
|
}
|
57
66
|
end
|
58
67
|
|
@@ -61,7 +70,8 @@ module MergeHRISClient
|
|
61
70
|
Set.new([
|
62
71
|
:'remote_id',
|
63
72
|
:'pay_group_name',
|
64
|
-
:'
|
73
|
+
:'field_mappings',
|
74
|
+
:'remote_data'
|
65
75
|
])
|
66
76
|
end
|
67
77
|
|
@@ -92,15 +102,25 @@ module MergeHRISClient
|
|
92
102
|
self.pay_group_name = attributes[:'pay_group_name']
|
93
103
|
end
|
94
104
|
|
105
|
+
if attributes.key?(:'remote_was_deleted')
|
106
|
+
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
107
|
+
end
|
108
|
+
|
109
|
+
if attributes.key?(:'field_mappings')
|
110
|
+
if (value = attributes[:'field_mappings']).is_a?(Hash)
|
111
|
+
self.field_mappings = value
|
112
|
+
end
|
113
|
+
end
|
114
|
+
|
115
|
+
if attributes.key?(:'modified_at')
|
116
|
+
self.modified_at = attributes[:'modified_at']
|
117
|
+
end
|
118
|
+
|
95
119
|
if attributes.key?(:'remote_data')
|
96
120
|
if (value = attributes[:'remote_data']).is_a?(Array)
|
97
121
|
self.remote_data = value
|
98
122
|
end
|
99
123
|
end
|
100
|
-
|
101
|
-
if attributes.key?(:'remote_was_deleted')
|
102
|
-
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
103
|
-
end
|
104
124
|
end
|
105
125
|
|
106
126
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -124,8 +144,10 @@ module MergeHRISClient
|
|
124
144
|
id == o.id &&
|
125
145
|
remote_id == o.remote_id &&
|
126
146
|
pay_group_name == o.pay_group_name &&
|
127
|
-
|
128
|
-
|
147
|
+
remote_was_deleted == o.remote_was_deleted &&
|
148
|
+
field_mappings == o.field_mappings &&
|
149
|
+
modified_at == o.modified_at &&
|
150
|
+
remote_data == o.remote_data
|
129
151
|
end
|
130
152
|
|
131
153
|
# @see the `==` method
|
@@ -137,7 +159,7 @@ module MergeHRISClient
|
|
137
159
|
# Calculates hash code according to all attributes.
|
138
160
|
# @return [Integer] Hash code
|
139
161
|
def hash
|
140
|
-
[id, remote_id, pay_group_name,
|
162
|
+
[id, remote_id, pay_group_name, remote_was_deleted, field_mappings, modified_at, remote_data].hash
|
141
163
|
end
|
142
164
|
|
143
165
|
# Builds the object from hash
|
@@ -19,6 +19,7 @@ module MergeHRISClient
|
|
19
19
|
DAY = "DAY".freeze
|
20
20
|
WEEK = "WEEK".freeze
|
21
21
|
EVERY_TWO_WEEKS = "EVERY_TWO_WEEKS".freeze
|
22
|
+
SEMIMONTHLY = "SEMIMONTHLY".freeze
|
22
23
|
MONTH = "MONTH".freeze
|
23
24
|
QUARTER = "QUARTER".freeze
|
24
25
|
EVERY_SIX_MONTHS = "EVERY_SIX_MONTHS".freeze
|
@@ -34,7 +35,7 @@ module MergeHRISClient
|
|
34
35
|
# @return [String] The enum value
|
35
36
|
def build_from_hash(value)
|
36
37
|
@raw_value = value
|
37
|
-
if ["HOUR", "DAY", "WEEK", "EVERY_TWO_WEEKS", "MONTH", "QUARTER", "EVERY_SIX_MONTHS", "YEAR", ].include? value
|
38
|
+
if ["HOUR", "DAY", "WEEK", "EVERY_TWO_WEEKS", "SEMIMONTHLY", "MONTH", "QUARTER", "EVERY_SIX_MONTHS", "YEAR", ].include? value
|
38
39
|
@value = value
|
39
40
|
else
|
40
41
|
@value = MERGE_NONSTANDARD_VALUE
|
@@ -14,17 +14,17 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module MergeHRISClient
|
17
|
-
# # The PayrollRun Object ### Description The `PayrollRun` object is used to represent a
|
17
|
+
# # The PayrollRun Object ### Description The `PayrollRun` object is used to represent a group of pay statements for a specific pay schedule. ### Usage Example Fetch from the `LIST PayrollRuns` endpoint and filter by `ID` to show all payroll runs.
|
18
18
|
class PayrollRun
|
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 state of the payroll run
|
24
|
+
# The state of the payroll run * `PAID` - PAID * `DRAFT` - DRAFT * `APPROVED` - APPROVED * `FAILED` - FAILED * `CLOSED` - CLOSED
|
25
25
|
attr_accessor :run_state
|
26
26
|
|
27
|
-
# The type of the payroll run
|
27
|
+
# The type of the payroll run * `REGULAR` - REGULAR * `OFF_CYCLE` - OFF_CYCLE * `CORRECTION` - CORRECTION * `TERMINATION` - TERMINATION * `SIGN_ON_BONUS` - SIGN_ON_BONUS
|
28
28
|
attr_accessor :run_type
|
29
29
|
|
30
30
|
# The day and time the payroll run started.
|
@@ -36,11 +36,16 @@ module MergeHRISClient
|
|
36
36
|
# The day and time the payroll run was checked.
|
37
37
|
attr_accessor :check_date
|
38
38
|
|
39
|
-
attr_accessor :remote_data
|
40
|
-
|
41
39
|
# Indicates whether or not this object has been deleted by third party webhooks.
|
42
40
|
attr_accessor :remote_was_deleted
|
43
41
|
|
42
|
+
attr_accessor :field_mappings
|
43
|
+
|
44
|
+
# This is the datetime that this object was last updated by Merge
|
45
|
+
attr_accessor :modified_at
|
46
|
+
|
47
|
+
attr_accessor :remote_data
|
48
|
+
|
44
49
|
# Attribute mapping from ruby-style variable name to JSON key.
|
45
50
|
def self.attribute_map
|
46
51
|
{
|
@@ -51,8 +56,10 @@ module MergeHRISClient
|
|
51
56
|
:'start_date' => :'start_date',
|
52
57
|
:'end_date' => :'end_date',
|
53
58
|
:'check_date' => :'check_date',
|
54
|
-
:'
|
55
|
-
:'
|
59
|
+
:'remote_was_deleted' => :'remote_was_deleted',
|
60
|
+
:'field_mappings' => :'field_mappings',
|
61
|
+
:'modified_at' => :'modified_at',
|
62
|
+
:'remote_data' => :'remote_data'
|
56
63
|
}
|
57
64
|
end
|
58
65
|
|
@@ -71,8 +78,10 @@ module MergeHRISClient
|
|
71
78
|
:'start_date' => :'Time',
|
72
79
|
:'end_date' => :'Time',
|
73
80
|
:'check_date' => :'Time',
|
74
|
-
:'
|
75
|
-
:'
|
81
|
+
:'remote_was_deleted' => :'Boolean',
|
82
|
+
:'field_mappings' => :'Hash<String, Object>',
|
83
|
+
:'modified_at' => :'Time',
|
84
|
+
:'remote_data' => :'Array<RemoteData>'
|
76
85
|
}
|
77
86
|
end
|
78
87
|
|
@@ -85,7 +94,8 @@ module MergeHRISClient
|
|
85
94
|
:'start_date',
|
86
95
|
:'end_date',
|
87
96
|
:'check_date',
|
88
|
-
:'
|
97
|
+
:'field_mappings',
|
98
|
+
:'remote_data'
|
89
99
|
])
|
90
100
|
end
|
91
101
|
|
@@ -132,15 +142,25 @@ module MergeHRISClient
|
|
132
142
|
self.check_date = attributes[:'check_date']
|
133
143
|
end
|
134
144
|
|
145
|
+
if attributes.key?(:'remote_was_deleted')
|
146
|
+
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
147
|
+
end
|
148
|
+
|
149
|
+
if attributes.key?(:'field_mappings')
|
150
|
+
if (value = attributes[:'field_mappings']).is_a?(Hash)
|
151
|
+
self.field_mappings = value
|
152
|
+
end
|
153
|
+
end
|
154
|
+
|
155
|
+
if attributes.key?(:'modified_at')
|
156
|
+
self.modified_at = attributes[:'modified_at']
|
157
|
+
end
|
158
|
+
|
135
159
|
if attributes.key?(:'remote_data')
|
136
160
|
if (value = attributes[:'remote_data']).is_a?(Array)
|
137
161
|
self.remote_data = value
|
138
162
|
end
|
139
163
|
end
|
140
|
-
|
141
|
-
if attributes.key?(:'remote_was_deleted')
|
142
|
-
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
143
|
-
end
|
144
164
|
end
|
145
165
|
|
146
166
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -168,8 +188,10 @@ module MergeHRISClient
|
|
168
188
|
start_date == o.start_date &&
|
169
189
|
end_date == o.end_date &&
|
170
190
|
check_date == o.check_date &&
|
171
|
-
|
172
|
-
|
191
|
+
remote_was_deleted == o.remote_was_deleted &&
|
192
|
+
field_mappings == o.field_mappings &&
|
193
|
+
modified_at == o.modified_at &&
|
194
|
+
remote_data == o.remote_data
|
173
195
|
end
|
174
196
|
|
175
197
|
# @see the `==` method
|
@@ -181,7 +203,7 @@ module MergeHRISClient
|
|
181
203
|
# Calculates hash code according to all attributes.
|
182
204
|
# @return [Integer] Hash code
|
183
205
|
def hash
|
184
|
-
[id, remote_id, run_state, run_type, start_date, end_date, check_date,
|
206
|
+
[id, remote_id, run_state, run_type, start_date, end_date, check_date, remote_was_deleted, field_mappings, modified_at, remote_data].hash
|
185
207
|
end
|
186
208
|
|
187
209
|
# 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 SelectiveSyncConfigurationsUsageEnum
|
18
|
+
NEXT_SYNC = "IN_NEXT_SYNC".freeze
|
19
|
+
LAST_SYNC = "IN_LAST_SYNC".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 ["IN_NEXT_SYNC", "IN_LAST_SYNC", ].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
|
+
SelectiveSyncConfigurationsUsageEnum.new.build_from_hash(value)
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
end
|
@@ -28,6 +28,8 @@ module MergeHRISClient
|
|
28
28
|
|
29
29
|
attr_accessor :is_initial_sync
|
30
30
|
|
31
|
+
attr_accessor :selective_sync_configurations_usage
|
32
|
+
|
31
33
|
# Attribute mapping from ruby-style variable name to JSON key.
|
32
34
|
def self.attribute_map
|
33
35
|
{
|
@@ -36,7 +38,8 @@ module MergeHRISClient
|
|
36
38
|
:'last_sync_start' => :'last_sync_start',
|
37
39
|
:'next_sync_start' => :'next_sync_start',
|
38
40
|
:'status' => :'status',
|
39
|
-
:'is_initial_sync' => :'is_initial_sync'
|
41
|
+
:'is_initial_sync' => :'is_initial_sync',
|
42
|
+
:'selective_sync_configurations_usage' => :'selective_sync_configurations_usage'
|
40
43
|
}
|
41
44
|
end
|
42
45
|
|
@@ -53,7 +56,8 @@ module MergeHRISClient
|
|
53
56
|
:'last_sync_start' => :'Time',
|
54
57
|
:'next_sync_start' => :'Time',
|
55
58
|
:'status' => :'SyncStatusStatusEnum',
|
56
|
-
:'is_initial_sync' => :'Boolean'
|
59
|
+
:'is_initial_sync' => :'Boolean',
|
60
|
+
:'selective_sync_configurations_usage' => :'SelectiveSyncConfigurationsUsageEnum'
|
57
61
|
}
|
58
62
|
end
|
59
63
|
|
@@ -101,6 +105,10 @@ module MergeHRISClient
|
|
101
105
|
if attributes.key?(:'is_initial_sync')
|
102
106
|
self.is_initial_sync = attributes[:'is_initial_sync']
|
103
107
|
end
|
108
|
+
|
109
|
+
if attributes.key?(:'selective_sync_configurations_usage')
|
110
|
+
self.selective_sync_configurations_usage = attributes[:'selective_sync_configurations_usage']
|
111
|
+
end
|
104
112
|
end
|
105
113
|
|
106
114
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -146,7 +154,8 @@ module MergeHRISClient
|
|
146
154
|
last_sync_start == o.last_sync_start &&
|
147
155
|
next_sync_start == o.next_sync_start &&
|
148
156
|
status == o.status &&
|
149
|
-
is_initial_sync == o.is_initial_sync
|
157
|
+
is_initial_sync == o.is_initial_sync &&
|
158
|
+
selective_sync_configurations_usage == o.selective_sync_configurations_usage
|
150
159
|
end
|
151
160
|
|
152
161
|
# @see the `==` method
|
@@ -158,7 +167,7 @@ module MergeHRISClient
|
|
158
167
|
# Calculates hash code according to all attributes.
|
159
168
|
# @return [Integer] Hash code
|
160
169
|
def hash
|
161
|
-
[model_name, model_id, last_sync_start, next_sync_start, status, is_initial_sync].hash
|
170
|
+
[model_name, model_id, last_sync_start, next_sync_start, status, is_initial_sync, selective_sync_configurations_usage].hash
|
162
171
|
end
|
163
172
|
|
164
173
|
# Builds the object from hash
|
@@ -14,10 +14,13 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module MergeHRISClient
|
17
|
-
# # The Tax Object ### Description The `Tax` object is used to represent
|
17
|
+
# # The Tax Object ### Description The `Tax` object is used to represent an array of the tax deductions for a given employee's payroll run. ### Usage Example Fetch from the `LIST Taxes` endpoint and filter by `ID` to show all taxes.
|
18
18
|
class Tax
|
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 tax's name.
|
@@ -32,15 +35,26 @@ module MergeHRISClient
|
|
32
35
|
# Indicates whether or not this object has been deleted by third party webhooks.
|
33
36
|
attr_accessor :remote_was_deleted
|
34
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
|
+
|
35
45
|
# Attribute mapping from ruby-style variable name to JSON key.
|
36
46
|
def self.attribute_map
|
37
47
|
{
|
38
48
|
:'id' => :'id',
|
49
|
+
:'remote_id' => :'remote_id',
|
39
50
|
:'employee_payroll_run' => :'employee_payroll_run',
|
40
51
|
:'name' => :'name',
|
41
52
|
:'amount' => :'amount',
|
42
53
|
:'employer_tax' => :'employer_tax',
|
43
|
-
:'remote_was_deleted' => :'remote_was_deleted'
|
54
|
+
:'remote_was_deleted' => :'remote_was_deleted',
|
55
|
+
:'field_mappings' => :'field_mappings',
|
56
|
+
:'modified_at' => :'modified_at',
|
57
|
+
:'remote_data' => :'remote_data'
|
44
58
|
}
|
45
59
|
end
|
46
60
|
|
@@ -53,21 +67,28 @@ module MergeHRISClient
|
|
53
67
|
def self.openapi_types
|
54
68
|
{
|
55
69
|
:'id' => :'String',
|
70
|
+
:'remote_id' => :'String',
|
56
71
|
:'employee_payroll_run' => :'String',
|
57
72
|
:'name' => :'String',
|
58
73
|
:'amount' => :'Float',
|
59
74
|
:'employer_tax' => :'Boolean',
|
60
|
-
:'remote_was_deleted' => :'Boolean'
|
75
|
+
:'remote_was_deleted' => :'Boolean',
|
76
|
+
:'field_mappings' => :'Hash<String, Object>',
|
77
|
+
:'modified_at' => :'Time',
|
78
|
+
:'remote_data' => :'Array<RemoteData>'
|
61
79
|
}
|
62
80
|
end
|
63
81
|
|
64
82
|
# List of attributes with nullable: true
|
65
83
|
def self.openapi_nullable
|
66
84
|
Set.new([
|
85
|
+
:'remote_id',
|
67
86
|
:'employee_payroll_run',
|
68
87
|
:'name',
|
69
88
|
:'amount',
|
70
89
|
:'employer_tax',
|
90
|
+
:'field_mappings',
|
91
|
+
:'remote_data'
|
71
92
|
])
|
72
93
|
end
|
73
94
|
|
@@ -90,6 +111,10 @@ module MergeHRISClient
|
|
90
111
|
self.id = attributes[:'id']
|
91
112
|
end
|
92
113
|
|
114
|
+
if attributes.key?(:'remote_id')
|
115
|
+
self.remote_id = attributes[:'remote_id']
|
116
|
+
end
|
117
|
+
|
93
118
|
if attributes.key?(:'employee_payroll_run')
|
94
119
|
self.employee_payroll_run = attributes[:'employee_payroll_run']
|
95
120
|
end
|
@@ -109,6 +134,22 @@ module MergeHRISClient
|
|
109
134
|
if attributes.key?(:'remote_was_deleted')
|
110
135
|
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
111
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
|
+
|
148
|
+
if attributes.key?(:'remote_data')
|
149
|
+
if (value = attributes[:'remote_data']).is_a?(Array)
|
150
|
+
self.remote_data = value
|
151
|
+
end
|
152
|
+
end
|
112
153
|
end
|
113
154
|
|
114
155
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -130,11 +171,15 @@ module MergeHRISClient
|
|
130
171
|
return true if self.equal?(o)
|
131
172
|
self.class == o.class &&
|
132
173
|
id == o.id &&
|
174
|
+
remote_id == o.remote_id &&
|
133
175
|
employee_payroll_run == o.employee_payroll_run &&
|
134
176
|
name == o.name &&
|
135
177
|
amount == o.amount &&
|
136
178
|
employer_tax == o.employer_tax &&
|
137
|
-
remote_was_deleted == o.remote_was_deleted
|
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
|
138
183
|
end
|
139
184
|
|
140
185
|
# @see the `==` method
|
@@ -146,7 +191,7 @@ module MergeHRISClient
|
|
146
191
|
# Calculates hash code according to all attributes.
|
147
192
|
# @return [Integer] Hash code
|
148
193
|
def hash
|
149
|
-
[id, employee_payroll_run, name, amount, employer_tax, remote_was_deleted].hash
|
194
|
+
[id, remote_id, employee_payroll_run, name, amount, employer_tax, remote_was_deleted, field_mappings, modified_at, remote_data].hash
|
150
195
|
end
|
151
196
|
|
152
197
|
# Builds the object from hash
|
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module MergeHRISClient
|
17
|
-
# # The Team Object ### Description The `Team` object is used to represent a
|
17
|
+
# # The Team Object ### Description The `Team` object is used to represent a subdivision of the company, usually a department. Each employee will be grouped into one specific Team. ### Usage Example If you're building a way to filter by `Team`, you'd hit the `GET Teams` endpoint to fetch the `Teams`, and then use the `ID` of the team your user selects to filter the `GET Employees` endpoint.
|
18
18
|
class Team
|
19
19
|
attr_accessor :id
|
20
20
|
|
@@ -24,13 +24,19 @@ module MergeHRISClient
|
|
24
24
|
# The team's name.
|
25
25
|
attr_accessor :name
|
26
26
|
|
27
|
+
# The team's parent team.
|
27
28
|
attr_accessor :parent_team
|
28
29
|
|
29
|
-
attr_accessor :remote_data
|
30
|
-
|
31
30
|
# Indicates whether or not this object has been deleted by third party webhooks.
|
32
31
|
attr_accessor :remote_was_deleted
|
33
32
|
|
33
|
+
attr_accessor :field_mappings
|
34
|
+
|
35
|
+
# This is the datetime that this object was last updated by Merge
|
36
|
+
attr_accessor :modified_at
|
37
|
+
|
38
|
+
attr_accessor :remote_data
|
39
|
+
|
34
40
|
# Attribute mapping from ruby-style variable name to JSON key.
|
35
41
|
def self.attribute_map
|
36
42
|
{
|
@@ -38,8 +44,10 @@ module MergeHRISClient
|
|
38
44
|
:'remote_id' => :'remote_id',
|
39
45
|
:'name' => :'name',
|
40
46
|
:'parent_team' => :'parent_team',
|
41
|
-
:'
|
42
|
-
:'
|
47
|
+
:'remote_was_deleted' => :'remote_was_deleted',
|
48
|
+
:'field_mappings' => :'field_mappings',
|
49
|
+
:'modified_at' => :'modified_at',
|
50
|
+
:'remote_data' => :'remote_data'
|
43
51
|
}
|
44
52
|
end
|
45
53
|
|
@@ -55,8 +63,10 @@ module MergeHRISClient
|
|
55
63
|
:'remote_id' => :'String',
|
56
64
|
:'name' => :'String',
|
57
65
|
:'parent_team' => :'String',
|
58
|
-
:'
|
59
|
-
:'
|
66
|
+
:'remote_was_deleted' => :'Boolean',
|
67
|
+
:'field_mappings' => :'Hash<String, Object>',
|
68
|
+
:'modified_at' => :'Time',
|
69
|
+
:'remote_data' => :'Array<RemoteData>'
|
60
70
|
}
|
61
71
|
end
|
62
72
|
|
@@ -66,7 +76,8 @@ module MergeHRISClient
|
|
66
76
|
:'remote_id',
|
67
77
|
:'name',
|
68
78
|
:'parent_team',
|
69
|
-
:'
|
79
|
+
:'field_mappings',
|
80
|
+
:'remote_data'
|
70
81
|
])
|
71
82
|
end
|
72
83
|
|
@@ -101,15 +112,25 @@ module MergeHRISClient
|
|
101
112
|
self.parent_team = attributes[:'parent_team']
|
102
113
|
end
|
103
114
|
|
115
|
+
if attributes.key?(:'remote_was_deleted')
|
116
|
+
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
117
|
+
end
|
118
|
+
|
119
|
+
if attributes.key?(:'field_mappings')
|
120
|
+
if (value = attributes[:'field_mappings']).is_a?(Hash)
|
121
|
+
self.field_mappings = value
|
122
|
+
end
|
123
|
+
end
|
124
|
+
|
125
|
+
if attributes.key?(:'modified_at')
|
126
|
+
self.modified_at = attributes[:'modified_at']
|
127
|
+
end
|
128
|
+
|
104
129
|
if attributes.key?(:'remote_data')
|
105
130
|
if (value = attributes[:'remote_data']).is_a?(Array)
|
106
131
|
self.remote_data = value
|
107
132
|
end
|
108
133
|
end
|
109
|
-
|
110
|
-
if attributes.key?(:'remote_was_deleted')
|
111
|
-
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
112
|
-
end
|
113
134
|
end
|
114
135
|
|
115
136
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -134,8 +155,10 @@ module MergeHRISClient
|
|
134
155
|
remote_id == o.remote_id &&
|
135
156
|
name == o.name &&
|
136
157
|
parent_team == o.parent_team &&
|
137
|
-
|
138
|
-
|
158
|
+
remote_was_deleted == o.remote_was_deleted &&
|
159
|
+
field_mappings == o.field_mappings &&
|
160
|
+
modified_at == o.modified_at &&
|
161
|
+
remote_data == o.remote_data
|
139
162
|
end
|
140
163
|
|
141
164
|
# @see the `==` method
|
@@ -147,7 +170,7 @@ module MergeHRISClient
|
|
147
170
|
# Calculates hash code according to all attributes.
|
148
171
|
# @return [Integer] Hash code
|
149
172
|
def hash
|
150
|
-
[id, remote_id, name, parent_team,
|
173
|
+
[id, remote_id, name, parent_team, remote_was_deleted, field_mappings, modified_at, remote_data].hash
|
151
174
|
end
|
152
175
|
|
153
176
|
# Builds the object from hash
|