merge_hris_client 2.0.1 → 2.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/docs/BankInfo.md +3 -1
- data/docs/BankInfoApi.md +7 -3
- data/docs/Benefit.md +3 -1
- data/docs/BenefitsApi.md +2 -2
- data/docs/CompaniesApi.md +2 -2
- data/docs/Company.md +3 -1
- data/docs/DataPassthroughRequest.md +3 -1
- data/docs/Deduction.md +3 -1
- data/docs/DeductionsApi.md +2 -2
- data/docs/Earning.md +4 -2
- data/docs/Employee.md +3 -1
- data/docs/EmployeePayrollRun.md +3 -1
- data/docs/EmployeePayrollRunsApi.md +2 -2
- data/docs/EmployeesApi.md +15 -3
- data/docs/Employment.md +4 -2
- data/docs/EmploymentsApi.md +7 -3
- data/docs/EndUserDetailsRequest.md +1 -1
- data/docs/ForceResyncApi.md +4 -4
- data/docs/Group.md +3 -1
- data/docs/GroupsApi.md +7 -3
- data/docs/LinkedAccountsApi.md +14 -14
- data/docs/Location.md +4 -2
- data/docs/LocationsApi.md +7 -3
- data/docs/PayGroup.md +3 -1
- data/docs/PayGroupsApi.md +2 -2
- data/docs/PayrollRun.md +3 -1
- data/docs/PayrollRunsApi.md +7 -3
- data/docs/RemoteResponse.md +2 -0
- data/docs/Tax.md +4 -2
- data/docs/Team.md +3 -1
- data/docs/TeamsApi.md +2 -2
- data/docs/TimeOff.md +3 -1
- data/docs/TimeOffApi.md +7 -3
- data/docs/TimeOffBalance.md +3 -1
- data/docs/TimeOffBalancesApi.md +7 -3
- data/lib/merge_hris_client/api/bank_info_api.rb +16 -3
- data/lib/merge_hris_client/api/benefits_api.rb +2 -2
- data/lib/merge_hris_client/api/companies_api.rb +2 -2
- data/lib/merge_hris_client/api/deductions_api.rb +2 -2
- data/lib/merge_hris_client/api/employee_payroll_runs_api.rb +2 -2
- data/lib/merge_hris_client/api/employees_api.rb +32 -2
- data/lib/merge_hris_client/api/employments_api.rb +16 -2
- data/lib/merge_hris_client/api/force_resync_api.rb +3 -3
- data/lib/merge_hris_client/api/groups_api.rb +16 -2
- data/lib/merge_hris_client/api/linked_accounts_api.rb +14 -14
- data/lib/merge_hris_client/api/locations_api.rb +16 -2
- data/lib/merge_hris_client/api/pay_groups_api.rb +2 -2
- data/lib/merge_hris_client/api/payroll_runs_api.rb +16 -2
- data/lib/merge_hris_client/api/teams_api.rb +2 -2
- data/lib/merge_hris_client/api/time_off_api.rb +16 -2
- data/lib/merge_hris_client/api/time_off_balances_api.rb +16 -2
- data/lib/merge_hris_client/api/webhook_receivers_api.rb +154 -0
- data/lib/merge_hris_client/models/account_details_and_actions_status_enum.rb +0 -1
- data/lib/merge_hris_client/models/account_type_enum.rb +0 -1
- data/lib/merge_hris_client/models/bank_info.rb +15 -5
- data/lib/merge_hris_client/models/benefit.rb +15 -5
- data/lib/merge_hris_client/models/categories_enum.rb +2 -1
- data/lib/merge_hris_client/models/category_enum.rb +2 -1
- data/lib/merge_hris_client/models/company.rb +15 -5
- data/lib/merge_hris_client/models/country_enum.rb +0 -1
- data/lib/merge_hris_client/models/data_passthrough_request.rb +14 -5
- data/lib/merge_hris_client/models/deduction.rb +15 -5
- data/lib/merge_hris_client/models/earning.rb +18 -6
- data/lib/merge_hris_client/models/earning_type_enum.rb +0 -1
- data/lib/merge_hris_client/models/employee.rb +14 -5
- data/lib/merge_hris_client/models/employee_payroll_run.rb +15 -5
- data/lib/merge_hris_client/models/employment.rb +15 -5
- data/lib/merge_hris_client/models/employment_status_enum.rb +0 -1
- data/lib/merge_hris_client/models/employment_type_enum.rb +0 -1
- data/lib/merge_hris_client/models/encoding_enum.rb +1 -1
- data/lib/merge_hris_client/models/ethnicity_enum.rb +0 -1
- data/lib/merge_hris_client/models/flsa_status_enum.rb +0 -1
- data/lib/merge_hris_client/models/gender_enum.rb +0 -1
- data/lib/merge_hris_client/models/group.rb +15 -5
- data/lib/merge_hris_client/models/group_type_enum.rb +0 -1
- data/lib/merge_hris_client/models/issue_status_enum.rb +0 -1
- data/lib/merge_hris_client/models/location.rb +15 -5
- data/lib/merge_hris_client/models/location_type_enum.rb +0 -1
- data/lib/merge_hris_client/models/marital_status_enum.rb +0 -1
- data/lib/merge_hris_client/models/method_enum.rb +0 -1
- data/lib/merge_hris_client/models/pay_currency_enum.rb +0 -1
- data/lib/merge_hris_client/models/pay_frequency_enum.rb +0 -1
- data/lib/merge_hris_client/models/pay_group.rb +15 -5
- data/lib/merge_hris_client/models/pay_period_enum.rb +0 -1
- data/lib/merge_hris_client/models/payroll_run.rb +15 -5
- data/lib/merge_hris_client/models/policy_type_enum.rb +0 -1
- data/lib/merge_hris_client/models/reason_enum.rb +0 -1
- data/lib/merge_hris_client/models/remote_response.rb +13 -2
- data/lib/merge_hris_client/models/request_format_enum.rb +0 -1
- data/lib/merge_hris_client/models/request_type_enum.rb +0 -1
- data/lib/merge_hris_client/models/run_state_enum.rb +0 -1
- data/lib/merge_hris_client/models/run_type_enum.rb +0 -1
- data/lib/merge_hris_client/models/sync_status_status_enum.rb +0 -1
- data/lib/merge_hris_client/models/tax.rb +18 -6
- data/lib/merge_hris_client/models/team.rb +15 -5
- data/lib/merge_hris_client/models/time_off.rb +14 -5
- data/lib/merge_hris_client/models/time_off_balance.rb +15 -5
- data/lib/merge_hris_client/models/time_off_status_enum.rb +0 -1
- data/lib/merge_hris_client/models/units_enum.rb +0 -1
- data/lib/merge_hris_client/version.rb +1 -1
- data/spec/api/bank_info_api_spec.rb +3 -1
- data/spec/api/benefits_api_spec.rb +1 -1
- data/spec/api/companies_api_spec.rb +1 -1
- data/spec/api/deductions_api_spec.rb +1 -1
- data/spec/api/employee_payroll_runs_api_spec.rb +1 -1
- data/spec/api/employees_api_spec.rb +7 -1
- data/spec/api/employments_api_spec.rb +3 -1
- data/spec/api/force_resync_api_spec.rb +1 -1
- data/spec/api/groups_api_spec.rb +3 -1
- data/spec/api/linked_accounts_api_spec.rb +7 -7
- data/spec/api/locations_api_spec.rb +3 -1
- data/spec/api/pay_groups_api_spec.rb +1 -1
- data/spec/api/payroll_runs_api_spec.rb +3 -1
- data/spec/api/teams_api_spec.rb +1 -1
- data/spec/api/time_off_api_spec.rb +3 -1
- data/spec/api/time_off_balances_api_spec.rb +3 -1
- data/spec/api/webhook_receivers_api_spec.rb +58 -0
- data/spec/models/bank_info_spec.rb +1 -1
- data/spec/models/benefit_spec.rb +1 -1
- data/spec/models/company_spec.rb +1 -1
- data/spec/models/data_passthrough_request_spec.rb +6 -0
- data/spec/models/deduction_spec.rb +1 -1
- data/spec/models/earning_spec.rb +1 -1
- data/spec/models/employee_payroll_run_spec.rb +1 -1
- data/spec/models/employee_spec.rb +2 -2
- data/spec/models/employment_spec.rb +1 -1
- data/spec/models/group_spec.rb +1 -1
- data/spec/models/linked_account_status_spec.rb +40 -0
- data/spec/models/location_spec.rb +1 -1
- data/spec/models/meta_response_spec.rb +52 -0
- data/spec/models/pay_group_spec.rb +1 -1
- data/spec/models/payroll_run_spec.rb +1 -1
- data/spec/models/remote_response_spec.rb +6 -0
- data/spec/models/tax_spec.rb +1 -1
- data/spec/models/team_spec.rb +1 -1
- data/spec/models/time_off_balance_spec.rb +1 -1
- data/spec/models/time_off_spec.rb +1 -1
- data/spec/models/webhook_receiver_request_spec.rb +46 -0
- data/spec/models/webhook_receiver_spec.rb +46 -0
- metadata +105 -107
- data/docs/BenefitPlanTypeEnum.md +0 -15
- data/docs/TypeEnum.md +0 -15
- data/lib/merge_hris_client/api/time_off_balance_api.rb +0 -196
- data/lib/merge_hris_client/models/benefit_plan_type_enum.rb +0 -56
- data/lib/merge_hris_client/models/data_passthrough.rb +0 -262
- data/lib/merge_hris_client/models/end_user_details.rb +0 -289
- data/lib/merge_hris_client/models/remote_key_for_regeneration.rb +0 -224
- data/lib/merge_hris_client/models/state_enum.rb +0 -93
- data/lib/merge_hris_client/models/type_enum.rb +0 -38
- data/spec/models/benefit_plan_type_enum_spec.rb +0 -28
- data/spec/models/type_enum_spec.rb +0 -28
|
@@ -38,6 +38,9 @@ module MergeHRISClient
|
|
|
38
38
|
|
|
39
39
|
attr_accessor :remote_data
|
|
40
40
|
|
|
41
|
+
# Indicates whether or not this object has been deleted by third party webhooks.
|
|
42
|
+
attr_accessor :remote_was_deleted
|
|
43
|
+
|
|
41
44
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
42
45
|
def self.attribute_map
|
|
43
46
|
{
|
|
@@ -48,7 +51,8 @@ module MergeHRISClient
|
|
|
48
51
|
:'start_date' => :'start_date',
|
|
49
52
|
:'end_date' => :'end_date',
|
|
50
53
|
:'check_date' => :'check_date',
|
|
51
|
-
:'remote_data' => :'remote_data'
|
|
54
|
+
:'remote_data' => :'remote_data',
|
|
55
|
+
:'remote_was_deleted' => :'remote_was_deleted'
|
|
52
56
|
}
|
|
53
57
|
end
|
|
54
58
|
|
|
@@ -67,7 +71,8 @@ module MergeHRISClient
|
|
|
67
71
|
:'start_date' => :'Time',
|
|
68
72
|
:'end_date' => :'Time',
|
|
69
73
|
:'check_date' => :'Time',
|
|
70
|
-
:'remote_data' => :'Array<RemoteData>'
|
|
74
|
+
:'remote_data' => :'Array<RemoteData>',
|
|
75
|
+
:'remote_was_deleted' => :'Boolean'
|
|
71
76
|
}
|
|
72
77
|
end
|
|
73
78
|
|
|
@@ -80,7 +85,7 @@ module MergeHRISClient
|
|
|
80
85
|
:'start_date',
|
|
81
86
|
:'end_date',
|
|
82
87
|
:'check_date',
|
|
83
|
-
:'remote_data'
|
|
88
|
+
:'remote_data',
|
|
84
89
|
])
|
|
85
90
|
end
|
|
86
91
|
|
|
@@ -132,6 +137,10 @@ module MergeHRISClient
|
|
|
132
137
|
self.remote_data = value
|
|
133
138
|
end
|
|
134
139
|
end
|
|
140
|
+
|
|
141
|
+
if attributes.key?(:'remote_was_deleted')
|
|
142
|
+
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
|
143
|
+
end
|
|
135
144
|
end
|
|
136
145
|
|
|
137
146
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -159,7 +168,8 @@ module MergeHRISClient
|
|
|
159
168
|
start_date == o.start_date &&
|
|
160
169
|
end_date == o.end_date &&
|
|
161
170
|
check_date == o.check_date &&
|
|
162
|
-
remote_data == o.remote_data
|
|
171
|
+
remote_data == o.remote_data &&
|
|
172
|
+
remote_was_deleted == o.remote_was_deleted
|
|
163
173
|
end
|
|
164
174
|
|
|
165
175
|
# @see the `==` method
|
|
@@ -171,7 +181,7 @@ module MergeHRISClient
|
|
|
171
181
|
# Calculates hash code according to all attributes.
|
|
172
182
|
# @return [Integer] Hash code
|
|
173
183
|
def hash
|
|
174
|
-
[id, remote_id, run_state, run_type, start_date, end_date, check_date, remote_data].hash
|
|
184
|
+
[id, remote_id, run_state, run_type, start_date, end_date, check_date, remote_data, remote_was_deleted].hash
|
|
175
185
|
end
|
|
176
186
|
|
|
177
187
|
# Builds the object from hash
|
|
@@ -24,6 +24,8 @@ module MergeHRISClient
|
|
|
24
24
|
|
|
25
25
|
attr_accessor :response
|
|
26
26
|
|
|
27
|
+
attr_accessor :response_headers
|
|
28
|
+
|
|
27
29
|
attr_accessor :headers
|
|
28
30
|
|
|
29
31
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -33,6 +35,7 @@ module MergeHRISClient
|
|
|
33
35
|
:'path' => :'path',
|
|
34
36
|
:'status' => :'status',
|
|
35
37
|
:'response' => :'response',
|
|
38
|
+
:'response_headers' => :'response_headers',
|
|
36
39
|
:'headers' => :'headers'
|
|
37
40
|
}
|
|
38
41
|
end
|
|
@@ -49,7 +52,8 @@ module MergeHRISClient
|
|
|
49
52
|
:'path' => :'String',
|
|
50
53
|
:'status' => :'Integer',
|
|
51
54
|
:'response' => :'Hash<String, Object>',
|
|
52
|
-
:'
|
|
55
|
+
:'response_headers' => :'Hash<String, Object>',
|
|
56
|
+
:'headers' => :'Hash<String, AnyType>'
|
|
53
57
|
}
|
|
54
58
|
end
|
|
55
59
|
|
|
@@ -92,6 +96,12 @@ module MergeHRISClient
|
|
|
92
96
|
end
|
|
93
97
|
end
|
|
94
98
|
|
|
99
|
+
if attributes.key?(:'response_headers')
|
|
100
|
+
if (value = attributes[:'response_headers']).is_a?(Hash)
|
|
101
|
+
self.response_headers = value
|
|
102
|
+
end
|
|
103
|
+
end
|
|
104
|
+
|
|
95
105
|
if attributes.key?(:'headers')
|
|
96
106
|
if (value = attributes[:'headers']).is_a?(Hash)
|
|
97
107
|
self.headers = value
|
|
@@ -141,6 +151,7 @@ module MergeHRISClient
|
|
|
141
151
|
path == o.path &&
|
|
142
152
|
status == o.status &&
|
|
143
153
|
response == o.response &&
|
|
154
|
+
response_headers == o.response_headers &&
|
|
144
155
|
headers == o.headers
|
|
145
156
|
end
|
|
146
157
|
|
|
@@ -153,7 +164,7 @@ module MergeHRISClient
|
|
|
153
164
|
# Calculates hash code according to all attributes.
|
|
154
165
|
# @return [Integer] Hash code
|
|
155
166
|
def hash
|
|
156
|
-
[method, path, status, response, headers].hash
|
|
167
|
+
[method, path, status, response, response_headers, headers].hash
|
|
157
168
|
end
|
|
158
169
|
|
|
159
170
|
# Builds the object from hash
|
|
@@ -31,6 +31,9 @@ module MergeHRISClient
|
|
|
31
31
|
|
|
32
32
|
attr_accessor :remote_data
|
|
33
33
|
|
|
34
|
+
# Indicates whether or not this object has been deleted by third party webhooks.
|
|
35
|
+
attr_accessor :remote_was_deleted
|
|
36
|
+
|
|
34
37
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
35
38
|
def self.attribute_map
|
|
36
39
|
{
|
|
@@ -39,7 +42,8 @@ module MergeHRISClient
|
|
|
39
42
|
:'name' => :'name',
|
|
40
43
|
:'amount' => :'amount',
|
|
41
44
|
:'employer_tax' => :'employer_tax',
|
|
42
|
-
:'remote_data' => :'remote_data'
|
|
45
|
+
:'remote_data' => :'remote_data',
|
|
46
|
+
:'remote_was_deleted' => :'remote_was_deleted'
|
|
43
47
|
}
|
|
44
48
|
end
|
|
45
49
|
|
|
@@ -56,7 +60,8 @@ module MergeHRISClient
|
|
|
56
60
|
:'name' => :'String',
|
|
57
61
|
:'amount' => :'Float',
|
|
58
62
|
:'employer_tax' => :'Boolean',
|
|
59
|
-
:'remote_data' => :'String'
|
|
63
|
+
:'remote_data' => :'Array<Hash<String, AnyType>>',
|
|
64
|
+
:'remote_was_deleted' => :'Boolean'
|
|
60
65
|
}
|
|
61
66
|
end
|
|
62
67
|
|
|
@@ -67,7 +72,7 @@ module MergeHRISClient
|
|
|
67
72
|
:'name',
|
|
68
73
|
:'amount',
|
|
69
74
|
:'employer_tax',
|
|
70
|
-
:'remote_data'
|
|
75
|
+
:'remote_data',
|
|
71
76
|
])
|
|
72
77
|
end
|
|
73
78
|
|
|
@@ -107,7 +112,13 @@ module MergeHRISClient
|
|
|
107
112
|
end
|
|
108
113
|
|
|
109
114
|
if attributes.key?(:'remote_data')
|
|
110
|
-
|
|
115
|
+
if (value = attributes[:'remote_data']).is_a?(Array)
|
|
116
|
+
self.remote_data = value
|
|
117
|
+
end
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
if attributes.key?(:'remote_was_deleted')
|
|
121
|
+
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
|
111
122
|
end
|
|
112
123
|
end
|
|
113
124
|
|
|
@@ -134,7 +145,8 @@ module MergeHRISClient
|
|
|
134
145
|
name == o.name &&
|
|
135
146
|
amount == o.amount &&
|
|
136
147
|
employer_tax == o.employer_tax &&
|
|
137
|
-
remote_data == o.remote_data
|
|
148
|
+
remote_data == o.remote_data &&
|
|
149
|
+
remote_was_deleted == o.remote_was_deleted
|
|
138
150
|
end
|
|
139
151
|
|
|
140
152
|
# @see the `==` method
|
|
@@ -146,7 +158,7 @@ module MergeHRISClient
|
|
|
146
158
|
# Calculates hash code according to all attributes.
|
|
147
159
|
# @return [Integer] Hash code
|
|
148
160
|
def hash
|
|
149
|
-
[id, employee_payroll_run, name, amount, employer_tax, remote_data].hash
|
|
161
|
+
[id, employee_payroll_run, name, amount, employer_tax, remote_data, remote_was_deleted].hash
|
|
150
162
|
end
|
|
151
163
|
|
|
152
164
|
# Builds the object from hash
|
|
@@ -28,6 +28,9 @@ module MergeHRISClient
|
|
|
28
28
|
|
|
29
29
|
attr_accessor :remote_data
|
|
30
30
|
|
|
31
|
+
# Indicates whether or not this object has been deleted by third party webhooks.
|
|
32
|
+
attr_accessor :remote_was_deleted
|
|
33
|
+
|
|
31
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
32
35
|
def self.attribute_map
|
|
33
36
|
{
|
|
@@ -35,7 +38,8 @@ module MergeHRISClient
|
|
|
35
38
|
:'remote_id' => :'remote_id',
|
|
36
39
|
:'name' => :'name',
|
|
37
40
|
:'parent_team' => :'parent_team',
|
|
38
|
-
:'remote_data' => :'remote_data'
|
|
41
|
+
:'remote_data' => :'remote_data',
|
|
42
|
+
:'remote_was_deleted' => :'remote_was_deleted'
|
|
39
43
|
}
|
|
40
44
|
end
|
|
41
45
|
|
|
@@ -51,7 +55,8 @@ module MergeHRISClient
|
|
|
51
55
|
:'remote_id' => :'String',
|
|
52
56
|
:'name' => :'String',
|
|
53
57
|
:'parent_team' => :'String',
|
|
54
|
-
:'remote_data' => :'Array<RemoteData>'
|
|
58
|
+
:'remote_data' => :'Array<RemoteData>',
|
|
59
|
+
:'remote_was_deleted' => :'Boolean'
|
|
55
60
|
}
|
|
56
61
|
end
|
|
57
62
|
|
|
@@ -61,7 +66,7 @@ module MergeHRISClient
|
|
|
61
66
|
:'remote_id',
|
|
62
67
|
:'name',
|
|
63
68
|
:'parent_team',
|
|
64
|
-
:'remote_data'
|
|
69
|
+
:'remote_data',
|
|
65
70
|
])
|
|
66
71
|
end
|
|
67
72
|
|
|
@@ -101,6 +106,10 @@ module MergeHRISClient
|
|
|
101
106
|
self.remote_data = value
|
|
102
107
|
end
|
|
103
108
|
end
|
|
109
|
+
|
|
110
|
+
if attributes.key?(:'remote_was_deleted')
|
|
111
|
+
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
|
112
|
+
end
|
|
104
113
|
end
|
|
105
114
|
|
|
106
115
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -125,7 +134,8 @@ module MergeHRISClient
|
|
|
125
134
|
remote_id == o.remote_id &&
|
|
126
135
|
name == o.name &&
|
|
127
136
|
parent_team == o.parent_team &&
|
|
128
|
-
remote_data == o.remote_data
|
|
137
|
+
remote_data == o.remote_data &&
|
|
138
|
+
remote_was_deleted == o.remote_was_deleted
|
|
129
139
|
end
|
|
130
140
|
|
|
131
141
|
# @see the `==` method
|
|
@@ -137,7 +147,7 @@ module MergeHRISClient
|
|
|
137
147
|
# Calculates hash code according to all attributes.
|
|
138
148
|
# @return [Integer] Hash code
|
|
139
149
|
def hash
|
|
140
|
-
[id, remote_id, name, parent_team, remote_data].hash
|
|
150
|
+
[id, remote_id, name, parent_team, remote_data, remote_was_deleted].hash
|
|
141
151
|
end
|
|
142
152
|
|
|
143
153
|
# Builds the object from hash
|
|
@@ -48,6 +48,8 @@ module MergeHRISClient
|
|
|
48
48
|
|
|
49
49
|
attr_accessor :remote_data
|
|
50
50
|
|
|
51
|
+
attr_accessor :remote_was_deleted
|
|
52
|
+
|
|
51
53
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
52
54
|
def self.attribute_map
|
|
53
55
|
{
|
|
@@ -62,7 +64,8 @@ module MergeHRISClient
|
|
|
62
64
|
:'request_type' => :'request_type',
|
|
63
65
|
:'start_time' => :'start_time',
|
|
64
66
|
:'end_time' => :'end_time',
|
|
65
|
-
:'remote_data' => :'remote_data'
|
|
67
|
+
:'remote_data' => :'remote_data',
|
|
68
|
+
:'remote_was_deleted' => :'remote_was_deleted'
|
|
66
69
|
}
|
|
67
70
|
end
|
|
68
71
|
|
|
@@ -85,7 +88,8 @@ module MergeHRISClient
|
|
|
85
88
|
:'request_type' => :'RequestTypeEnum',
|
|
86
89
|
:'start_time' => :'Time',
|
|
87
90
|
:'end_time' => :'Time',
|
|
88
|
-
:'remote_data' => :'Array<RemoteData>'
|
|
91
|
+
:'remote_data' => :'Array<RemoteData>',
|
|
92
|
+
:'remote_was_deleted' => :'Boolean'
|
|
89
93
|
}
|
|
90
94
|
end
|
|
91
95
|
|
|
@@ -102,7 +106,7 @@ module MergeHRISClient
|
|
|
102
106
|
:'request_type',
|
|
103
107
|
:'start_time',
|
|
104
108
|
:'end_time',
|
|
105
|
-
:'remote_data'
|
|
109
|
+
:'remote_data',
|
|
106
110
|
])
|
|
107
111
|
end
|
|
108
112
|
|
|
@@ -170,6 +174,10 @@ module MergeHRISClient
|
|
|
170
174
|
self.remote_data = value
|
|
171
175
|
end
|
|
172
176
|
end
|
|
177
|
+
|
|
178
|
+
if attributes.key?(:'remote_was_deleted')
|
|
179
|
+
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
|
180
|
+
end
|
|
173
181
|
end
|
|
174
182
|
|
|
175
183
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -201,7 +209,8 @@ module MergeHRISClient
|
|
|
201
209
|
request_type == o.request_type &&
|
|
202
210
|
start_time == o.start_time &&
|
|
203
211
|
end_time == o.end_time &&
|
|
204
|
-
remote_data == o.remote_data
|
|
212
|
+
remote_data == o.remote_data &&
|
|
213
|
+
remote_was_deleted == o.remote_was_deleted
|
|
205
214
|
end
|
|
206
215
|
|
|
207
216
|
# @see the `==` method
|
|
@@ -213,7 +222,7 @@ module MergeHRISClient
|
|
|
213
222
|
# Calculates hash code according to all attributes.
|
|
214
223
|
# @return [Integer] Hash code
|
|
215
224
|
def hash
|
|
216
|
-
[id, remote_id, employee, approver, status, employee_note, units, amount, request_type, start_time, end_time, remote_data].hash
|
|
225
|
+
[id, remote_id, employee, approver, status, employee_note, units, amount, request_type, start_time, end_time, remote_data, remote_was_deleted].hash
|
|
217
226
|
end
|
|
218
227
|
|
|
219
228
|
# Builds the object from hash
|
|
@@ -34,6 +34,9 @@ module MergeHRISClient
|
|
|
34
34
|
|
|
35
35
|
attr_accessor :remote_data
|
|
36
36
|
|
|
37
|
+
# Indicates whether or not this object has been deleted by third party webhooks.
|
|
38
|
+
attr_accessor :remote_was_deleted
|
|
39
|
+
|
|
37
40
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
38
41
|
def self.attribute_map
|
|
39
42
|
{
|
|
@@ -43,7 +46,8 @@ module MergeHRISClient
|
|
|
43
46
|
:'balance' => :'balance',
|
|
44
47
|
:'used' => :'used',
|
|
45
48
|
:'policy_type' => :'policy_type',
|
|
46
|
-
:'remote_data' => :'remote_data'
|
|
49
|
+
:'remote_data' => :'remote_data',
|
|
50
|
+
:'remote_was_deleted' => :'remote_was_deleted'
|
|
47
51
|
}
|
|
48
52
|
end
|
|
49
53
|
|
|
@@ -61,7 +65,8 @@ module MergeHRISClient
|
|
|
61
65
|
:'balance' => :'Float',
|
|
62
66
|
:'used' => :'Float',
|
|
63
67
|
:'policy_type' => :'PolicyTypeEnum',
|
|
64
|
-
:'remote_data' => :'Array<RemoteData>'
|
|
68
|
+
:'remote_data' => :'Array<RemoteData>',
|
|
69
|
+
:'remote_was_deleted' => :'Boolean'
|
|
65
70
|
}
|
|
66
71
|
end
|
|
67
72
|
|
|
@@ -73,7 +78,7 @@ module MergeHRISClient
|
|
|
73
78
|
:'balance',
|
|
74
79
|
:'used',
|
|
75
80
|
:'policy_type',
|
|
76
|
-
:'remote_data'
|
|
81
|
+
:'remote_data',
|
|
77
82
|
])
|
|
78
83
|
end
|
|
79
84
|
|
|
@@ -121,6 +126,10 @@ module MergeHRISClient
|
|
|
121
126
|
self.remote_data = value
|
|
122
127
|
end
|
|
123
128
|
end
|
|
129
|
+
|
|
130
|
+
if attributes.key?(:'remote_was_deleted')
|
|
131
|
+
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
|
132
|
+
end
|
|
124
133
|
end
|
|
125
134
|
|
|
126
135
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -147,7 +156,8 @@ module MergeHRISClient
|
|
|
147
156
|
balance == o.balance &&
|
|
148
157
|
used == o.used &&
|
|
149
158
|
policy_type == o.policy_type &&
|
|
150
|
-
remote_data == o.remote_data
|
|
159
|
+
remote_data == o.remote_data &&
|
|
160
|
+
remote_was_deleted == o.remote_was_deleted
|
|
151
161
|
end
|
|
152
162
|
|
|
153
163
|
# @see the `==` method
|
|
@@ -159,7 +169,7 @@ module MergeHRISClient
|
|
|
159
169
|
# Calculates hash code according to all attributes.
|
|
160
170
|
# @return [Integer] Hash code
|
|
161
171
|
def hash
|
|
162
|
-
[id, remote_id, employee, balance, used, policy_type, remote_data].hash
|
|
172
|
+
[id, remote_id, employee, balance, used, policy_type, remote_data, remote_was_deleted].hash
|
|
163
173
|
end
|
|
164
174
|
|
|
165
175
|
# Builds the object from hash
|
|
@@ -43,12 +43,13 @@ describe 'BankInfoApi' do
|
|
|
43
43
|
# @option opts [String] :cursor The pagination cursor value.
|
|
44
44
|
# @option opts [String] :employee_id If provided, will only return bank accounts for this employee.
|
|
45
45
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
|
46
|
-
# @option opts [Boolean] :include_deleted_data Whether to include data that was deleted
|
|
46
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
|
47
47
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
|
48
48
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
|
49
49
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
|
50
50
|
# @option opts [String] :order_by Overrides the default ordering for this endpoint.
|
|
51
51
|
# @option opts [Integer] :page_size Number of results to return per page.
|
|
52
|
+
# @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
|
|
52
53
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
|
53
54
|
# @return [PaginatedBankInfoList]
|
|
54
55
|
describe 'bank_info_list test' do
|
|
@@ -64,6 +65,7 @@ describe 'BankInfoApi' do
|
|
|
64
65
|
# @param [Hash] opts the optional parameters
|
|
65
66
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
|
66
67
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
|
68
|
+
# @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
|
|
67
69
|
# @return [BankInfo]
|
|
68
70
|
describe 'bank_info_retrieve test' do
|
|
69
71
|
it 'should work' do
|
|
@@ -41,7 +41,7 @@ describe 'BenefitsApi' do
|
|
|
41
41
|
# @option opts [String] :cursor The pagination cursor value.
|
|
42
42
|
# @option opts [String] :employee_id If provided, will only return time off for this employee.
|
|
43
43
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
|
44
|
-
# @option opts [Boolean] :include_deleted_data Whether to include data that was deleted
|
|
44
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
|
45
45
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
|
46
46
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
|
47
47
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
|
@@ -39,7 +39,7 @@ describe 'CompaniesApi' do
|
|
|
39
39
|
# @option opts [Time] :created_after If provided, will only return objects created after this datetime.
|
|
40
40
|
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
|
41
41
|
# @option opts [String] :cursor The pagination cursor value.
|
|
42
|
-
# @option opts [Boolean] :include_deleted_data Whether to include data that was deleted
|
|
42
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
|
43
43
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
|
44
44
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
|
45
45
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
|
@@ -40,7 +40,7 @@ describe 'DeductionsApi' do
|
|
|
40
40
|
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
|
41
41
|
# @option opts [String] :cursor The pagination cursor value.
|
|
42
42
|
# @option opts [String] :employee_payroll_run_id If provided, will only return deductions for this employee payroll run.
|
|
43
|
-
# @option opts [Boolean] :include_deleted_data Whether to include data that was deleted
|
|
43
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
|
44
44
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
|
45
45
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
|
46
46
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
|
@@ -43,7 +43,7 @@ describe 'EmployeePayrollRunsApi' do
|
|
|
43
43
|
# @option opts [Time] :ended_after If provided, will only return employee payroll runs ended after this datetime.
|
|
44
44
|
# @option opts [Time] :ended_before If provided, will only return employee payroll runs ended before this datetime.
|
|
45
45
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
|
46
|
-
# @option opts [Boolean] :include_deleted_data Whether to include data that was deleted
|
|
46
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
|
47
47
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
|
48
48
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
|
49
49
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
|
@@ -67,16 +67,21 @@ describe 'EmployeesApi' do
|
|
|
67
67
|
# @option opts [Time] :created_after If provided, will only return objects created after this datetime.
|
|
68
68
|
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
|
69
69
|
# @option opts [String] :cursor The pagination cursor value.
|
|
70
|
+
# @option opts [String] :display_full_name If provided, will only return employees with this display name.
|
|
71
|
+
# @option opts [String] :employment_status If provided, will only return employees with this employment status.
|
|
70
72
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
|
71
|
-
# @option opts [
|
|
73
|
+
# @option opts [String] :first_name If provided, will only return employees with this first name.
|
|
74
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
|
72
75
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
|
73
76
|
# @option opts [Boolean] :include_sensitive_fields Whether to include sensitive fields (such as social security numbers) in the response.
|
|
77
|
+
# @option opts [String] :last_name If provided, will only return employees with this last name.
|
|
74
78
|
# @option opts [String] :manager_id If provided, will only return employees for this manager.
|
|
75
79
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
|
76
80
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
|
77
81
|
# @option opts [Integer] :page_size Number of results to return per page.
|
|
78
82
|
# @option opts [String] :pay_group_id If provided, will only return employees for this pay group
|
|
79
83
|
# @option opts [String] :personal_email If provided, will only return Employees with this personal email
|
|
84
|
+
# @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
|
|
80
85
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
|
81
86
|
# @option opts [String] :team_id If provided, will only return employees for this team.
|
|
82
87
|
# @option opts [String] :work_email If provided, will only return Employees with this work email
|
|
@@ -107,6 +112,7 @@ describe 'EmployeesApi' do
|
|
|
107
112
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
|
108
113
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
|
109
114
|
# @option opts [Boolean] :include_sensitive_fields Whether to include sensitive fields (such as social security numbers) in the response.
|
|
115
|
+
# @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
|
|
110
116
|
# @return [Employee]
|
|
111
117
|
describe 'employees_retrieve test' do
|
|
112
118
|
it 'should work' do
|
|
@@ -41,12 +41,13 @@ describe 'EmploymentsApi' do
|
|
|
41
41
|
# @option opts [String] :cursor The pagination cursor value.
|
|
42
42
|
# @option opts [String] :employee_id If provided, will only return employments for this employee.
|
|
43
43
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
|
44
|
-
# @option opts [Boolean] :include_deleted_data Whether to include data that was deleted
|
|
44
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
|
45
45
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
|
46
46
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
|
47
47
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
|
48
48
|
# @option opts [String] :order_by Overrides the default ordering for this endpoint.
|
|
49
49
|
# @option opts [Integer] :page_size Number of results to return per page.
|
|
50
|
+
# @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
|
|
50
51
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
|
51
52
|
# @return [PaginatedEmploymentList]
|
|
52
53
|
describe 'employments_list test' do
|
|
@@ -62,6 +63,7 @@ describe 'EmploymentsApi' do
|
|
|
62
63
|
# @param [Hash] opts the optional parameters
|
|
63
64
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
|
64
65
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
|
66
|
+
# @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
|
|
65
67
|
# @return [Employment]
|
|
66
68
|
describe 'employments_retrieve test' do
|
|
67
69
|
it 'should work' do
|
|
@@ -36,7 +36,7 @@ describe 'ForceResyncApi' do
|
|
|
36
36
|
# Force re-sync of all models. This is only available for organizations on Merge's Grow and Expand plans.
|
|
37
37
|
# @param x_account_token Token identifying the end user.
|
|
38
38
|
# @param [Hash] opts the optional parameters
|
|
39
|
-
# @return [SyncStatus]
|
|
39
|
+
# @return [Array<SyncStatus>]
|
|
40
40
|
describe 'sync_status_resync_create test' do
|
|
41
41
|
it 'should work' do
|
|
42
42
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
data/spec/api/groups_api_spec.rb
CHANGED
|
@@ -39,11 +39,12 @@ describe 'GroupsApi' do
|
|
|
39
39
|
# @option opts [Time] :created_after If provided, will only return objects created after this datetime.
|
|
40
40
|
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
|
41
41
|
# @option opts [String] :cursor The pagination cursor value.
|
|
42
|
-
# @option opts [Boolean] :include_deleted_data Whether to include data that was deleted
|
|
42
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
|
43
43
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
|
44
44
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
|
45
45
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
|
46
46
|
# @option opts [Integer] :page_size Number of results to return per page.
|
|
47
|
+
# @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
|
|
47
48
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
|
48
49
|
# @return [PaginatedGroupList]
|
|
49
50
|
describe 'groups_list test' do
|
|
@@ -58,6 +59,7 @@ describe 'GroupsApi' do
|
|
|
58
59
|
# @param id
|
|
59
60
|
# @param [Hash] opts the optional parameters
|
|
60
61
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
|
62
|
+
# @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
|
|
61
63
|
# @return [Group]
|
|
62
64
|
describe 'groups_retrieve test' do
|
|
63
65
|
it 'should work' do
|
|
@@ -37,14 +37,14 @@ describe 'LinkedAccountsApi' do
|
|
|
37
37
|
# @param [Hash] opts the optional parameters
|
|
38
38
|
# @option opts [String] :category
|
|
39
39
|
# @option opts [String] :cursor The pagination cursor value.
|
|
40
|
-
# @option opts [String] :end_user_email_address
|
|
41
|
-
# @option opts [String] :end_user_organization_name
|
|
42
|
-
# @option opts [String] :end_user_origin_id
|
|
43
|
-
# @option opts [String] :end_user_origin_ids Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once
|
|
40
|
+
# @option opts [String] :end_user_email_address If provided, will only return linked accounts associated with the given email address.
|
|
41
|
+
# @option opts [String] :end_user_organization_name If provided, will only return linked accounts associated with the given organization name.
|
|
42
|
+
# @option opts [String] :end_user_origin_id If provided, will only return linked accounts associated with the given origin ID.
|
|
43
|
+
# @option opts [String] :end_user_origin_ids Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once.
|
|
44
44
|
# @option opts [String] :id
|
|
45
|
-
# @option opts [String] :ids Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once
|
|
46
|
-
# @option opts [String] :integration_name
|
|
47
|
-
# @option opts [String] :is_test_account If included, will only include test linked accounts. If not included, will only include non-test linked accounts
|
|
45
|
+
# @option opts [String] :ids Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once.
|
|
46
|
+
# @option opts [String] :integration_name If provided, will only return linked accounts associated with the given integration name.
|
|
47
|
+
# @option opts [String] :is_test_account If included, will only include test linked accounts. If not included, will only include non-test linked accounts.
|
|
48
48
|
# @option opts [Integer] :page_size Number of results to return per page.
|
|
49
49
|
# @option opts [String] :status Filter by status. Options: `COMPLETE`, `INCOMPLETE`, `RELINK_NEEDED`
|
|
50
50
|
# @return [PaginatedAccountDetailsAndActionsList]
|