merge_hris_client 3.0.0 → 3.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +33 -9
- data/docs/AccountIntegration.md +6 -2
- data/docs/AsyncPassthroughApi.md +155 -0
- data/docs/AsyncPassthroughReciept.md +18 -0
- data/docs/BankInfo.md +9 -5
- data/docs/BankInfoApi.md +17 -13
- data/docs/Benefit.md +15 -5
- data/docs/BenefitPlanTypeEnum.md +15 -0
- 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/DeleteAccountApi.md +9 -9
- data/docs/Dependent.md +50 -0
- data/docs/DependentsApi.md +181 -0
- 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/EmployerBenefit.md +36 -0
- data/docs/EmployerBenefitsApi.md +177 -0
- data/docs/Employment.md +14 -10
- data/docs/EmploymentsApi.md +15 -11
- data/docs/EnabledActionsEnum.md +15 -0
- data/docs/EndUserDetailsRequest.md +6 -4
- 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 +10 -6
- 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/PaginatedDependentList.md +22 -0
- data/docs/PaginatedEmployerBenefitList.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/RelationshipEnum.md +15 -0
- data/docs/RemoteData.md +1 -1
- data/docs/SelectiveSyncApi.md +233 -0
- data/docs/SelectiveSyncConfigurationsUsageEnum.md +15 -0
- data/docs/SyncStatus.md +5 -3
- data/docs/SyncStatusApi.md +1 -1
- 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/async_passthrough_api.rb +160 -0
- data/lib/merge_hris_client/api/bank_info_api.rb +26 -12
- 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/delete_account_api.rb +7 -7
- data/lib/merge_hris_client/api/dependents_api.rb +188 -0
- 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/employer_benefits_api.rb +182 -0
- data/lib/merge_hris_client/api/employments_api.rb +24 -10
- 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/sync_status_api.rb +2 -2
- 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/async_passthrough_reciept.rb +223 -0
- data/lib/merge_hris_client/models/bank_info.rb +39 -16
- data/lib/merge_hris_client/models/benefit.rb +70 -14
- data/lib/merge_hris_client/models/benefit_plan_type_enum.rb +48 -0
- 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/dependent.rb +470 -0
- 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/employer_benefit.rb +363 -0
- 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 +21 -8
- 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/paginated_dependent_list.rb +240 -0
- data/lib/merge_hris_client/models/paginated_employer_benefit_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/relationship_enum.rb +46 -0
- data/lib/merge_hris_client/models/remote_data.rb +3 -4
- 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 +2 -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/version.rb +1 -1
- data/lib/merge_hris_client.rb +31 -0
- data/spec/api/async_passthrough_api_spec.rb +59 -0
- data/spec/api/bank_info_api_spec.rb +8 -6
- 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/delete_account_api_spec.rb +2 -2
- data/spec/api/dependents_api_spec.rb +70 -0
- data/spec/api/employee_payroll_runs_api_spec.rb +2 -2
- data/spec/api/employees_api_spec.rb +13 -6
- data/spec/api/employer_benefits_api_spec.rb +68 -0
- data/spec/api/employments_api_spec.rb +7 -5
- 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/sync_status_api_spec.rb +1 -1
- 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/async_passthrough_reciept_spec.rb +34 -0
- data/spec/models/bank_info_spec.rb +14 -2
- data/spec/models/benefit_plan_type_enum_spec.rb +28 -0
- data/spec/models/benefit_spec.rb +31 -1
- 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/dependent_spec.rb +130 -0
- 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/employer_benefit_spec.rb +88 -0
- 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/paginated_dependent_list_spec.rb +46 -0
- data/spec/models/paginated_employer_benefit_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/relationship_enum_spec.rb +28 -0
- 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 +225 -105
@@ -23,6 +23,7 @@ module MergeHRISClient
|
|
23
23
|
ANNUALLY = "ANNUALLY".freeze
|
24
24
|
THIRTEEN_MONTHLY = "THIRTEEN-MONTHLY".freeze
|
25
25
|
PRO_RATA = "PRO_RATA".freeze
|
26
|
+
SEMIMONTHLY = "SEMIMONTHLY".freeze
|
26
27
|
|
27
28
|
MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
|
28
29
|
|
@@ -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 ["WEEKLY", "BIWEEKLY", "MONTHLY", "QUARTERLY", "SEMIANNUALLY", "ANNUALLY", "THIRTEEN-MONTHLY", "PRO_RATA", ].include? value
|
38
|
+
if ["WEEKLY", "BIWEEKLY", "MONTHLY", "QUARTERLY", "SEMIANNUALLY", "ANNUALLY", "THIRTEEN-MONTHLY", "PRO_RATA", "SEMIMONTHLY", ].include? value
|
38
39
|
@value = value
|
39
40
|
else
|
40
41
|
@value = MERGE_NONSTANDARD_VALUE
|
@@ -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
|
+
# This is the datetime that this object was last updated by Merge
|
31
|
+
attr_accessor :modified_at
|
32
|
+
|
33
|
+
attr_accessor :field_mappings
|
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
|
+
:'modified_at' => :'modified_at',
|
45
|
+
:'field_mappings' => :'field_mappings',
|
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
|
+
:'modified_at' => :'Time',
|
63
|
+
:'field_mappings' => :'Hash<String, Object>',
|
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?(:'modified_at')
|
110
|
+
self.modified_at = attributes[:'modified_at']
|
111
|
+
end
|
112
|
+
|
113
|
+
if attributes.key?(:'field_mappings')
|
114
|
+
if (value = attributes[:'field_mappings']).is_a?(Hash)
|
115
|
+
self.field_mappings = value
|
116
|
+
end
|
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
|
+
modified_at == o.modified_at &&
|
149
|
+
field_mappings == o.field_mappings &&
|
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, modified_at, field_mappings, 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
|
+
# This is the datetime that this object was last updated by Merge
|
43
|
+
attr_accessor :modified_at
|
44
|
+
|
45
|
+
attr_accessor :field_mappings
|
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
|
+
:'modified_at' => :'modified_at',
|
61
|
+
:'field_mappings' => :'field_mappings',
|
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
|
+
:'modified_at' => :'Time',
|
83
|
+
:'field_mappings' => :'Hash<String, Object>',
|
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?(:'modified_at')
|
150
|
+
self.modified_at = attributes[:'modified_at']
|
151
|
+
end
|
152
|
+
|
153
|
+
if attributes.key?(:'field_mappings')
|
154
|
+
if (value = attributes[:'field_mappings']).is_a?(Hash)
|
155
|
+
self.field_mappings = value
|
156
|
+
end
|
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
|
+
modified_at == o.modified_at &&
|
193
|
+
field_mappings == o.field_mappings &&
|
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, modified_at, field_mappings, remote_data].hash
|
185
207
|
end
|
186
208
|
|
187
209
|
# Builds the object from hash
|
@@ -0,0 +1,46 @@
|
|
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 RelationshipEnum
|
18
|
+
CHILD = "CHILD".freeze
|
19
|
+
SPOUSE = "SPOUSE".freeze
|
20
|
+
DOMESTIC_PARTNER = "DOMESTIC_PARTNER".freeze
|
21
|
+
|
22
|
+
MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
|
23
|
+
|
24
|
+
attr_accessor :value
|
25
|
+
attr_accessor :raw_value
|
26
|
+
|
27
|
+
# Builds the enum from string
|
28
|
+
# @param [String] The enum value in the form of the string
|
29
|
+
# @return [String] The enum value
|
30
|
+
def build_from_hash(value)
|
31
|
+
@raw_value = value
|
32
|
+
if ["CHILD", "SPOUSE", "DOMESTIC_PARTNER", ].include? value
|
33
|
+
@value = value
|
34
|
+
else
|
35
|
+
@value = MERGE_NONSTANDARD_VALUE
|
36
|
+
end
|
37
|
+
|
38
|
+
self
|
39
|
+
end
|
40
|
+
|
41
|
+
def self.build_from_hash(value)
|
42
|
+
RelationshipEnum.new.build_from_hash(value)
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
end
|
@@ -36,13 +36,14 @@ module MergeHRISClient
|
|
36
36
|
def self.openapi_types
|
37
37
|
{
|
38
38
|
:'path' => :'String',
|
39
|
-
:'data' => :'
|
39
|
+
:'data' => :'Object'
|
40
40
|
}
|
41
41
|
end
|
42
42
|
|
43
43
|
# List of attributes with nullable: true
|
44
44
|
def self.openapi_nullable
|
45
45
|
Set.new([
|
46
|
+
:'data'
|
46
47
|
])
|
47
48
|
end
|
48
49
|
|
@@ -66,9 +67,7 @@ module MergeHRISClient
|
|
66
67
|
end
|
67
68
|
|
68
69
|
if attributes.key?(:'data')
|
69
|
-
|
70
|
-
self.data = value
|
71
|
-
end
|
70
|
+
self.data = attributes[:'data']
|
72
71
|
end
|
73
72
|
end
|
74
73
|
|
@@ -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
|
@@ -20,6 +20,7 @@ module MergeHRISClient
|
|
20
20
|
FAILED = "FAILED".freeze
|
21
21
|
DISABLED = "DISABLED".freeze
|
22
22
|
PAUSED = "PAUSED".freeze
|
23
|
+
PARTIALLY_SYNCED = "PARTIALLY_SYNCED".freeze
|
23
24
|
|
24
25
|
MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
|
25
26
|
|
@@ -31,7 +32,7 @@ module MergeHRISClient
|
|
31
32
|
# @return [String] The enum value
|
32
33
|
def build_from_hash(value)
|
33
34
|
@raw_value = value
|
34
|
-
if ["SYNCING", "DONE", "FAILED", "DISABLED", "PAUSED", ].include? value
|
35
|
+
if ["SYNCING", "DONE", "FAILED", "DISABLED", "PAUSED", "PARTIALLY_SYNCED", ].include? value
|
35
36
|
@value = value
|
36
37
|
else
|
37
38
|
@value = MERGE_NONSTANDARD_VALUE
|
@@ -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
|
+
# This is the datetime that this object was last updated by Merge
|
39
|
+
attr_accessor :modified_at
|
40
|
+
|
41
|
+
attr_accessor :field_mappings
|
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
|
+
:'modified_at' => :'modified_at',
|
56
|
+
:'field_mappings' => :'field_mappings',
|
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
|
+
:'modified_at' => :'Time',
|
77
|
+
:'field_mappings' => :'Hash<String, Object>',
|
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?(:'modified_at')
|
139
|
+
self.modified_at = attributes[:'modified_at']
|
140
|
+
end
|
141
|
+
|
142
|
+
if attributes.key?(:'field_mappings')
|
143
|
+
if (value = attributes[:'field_mappings']).is_a?(Hash)
|
144
|
+
self.field_mappings = value
|
145
|
+
end
|
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
|
+
modified_at == o.modified_at &&
|
181
|
+
field_mappings == o.field_mappings &&
|
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, modified_at, field_mappings, remote_data].hash
|
150
195
|
end
|
151
196
|
|
152
197
|
# Builds the object from hash
|