vitable-connect 0.4.0 → 0.5.0
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/CHANGELOG.md +16 -0
- data/README.md +1 -1
- data/lib/vitable_connect/client.rb +0 -1
- data/lib/vitable_connect/internal/transport/base_client.rb +4 -1
- data/lib/vitable_connect/models/employee.rb +9 -9
- data/lib/vitable_connect/models/employer.rb +1 -9
- data/lib/vitable_connect/models/group.rb +17 -6
- data/lib/vitable_connect/models/groups/members/sync_retrieve_response.rb +74 -3
- data/lib/vitable_connect/models/webhook_event_list_params.rb +0 -3
- data/lib/vitable_connect/models.rb +0 -9
- data/lib/vitable_connect/resources/benefit_eligibility_policies.rb +0 -21
- data/lib/vitable_connect/resources/employers.rb +0 -30
- data/lib/vitable_connect/version.rb +1 -1
- data/lib/vitable_connect.rb +0 -4
- data/rbi/vitable_connect/client.rbi +0 -1
- data/rbi/vitable_connect/models/employee.rbi +8 -8
- data/rbi/vitable_connect/models/employer.rbi +0 -8
- data/rbi/vitable_connect/models/group.rbi +12 -0
- data/rbi/vitable_connect/models/groups/members/sync_retrieve_response.rbi +174 -4
- data/rbi/vitable_connect/models/webhook_event_list_params.rbi +0 -8
- data/rbi/vitable_connect/models.rbi +0 -11
- data/rbi/vitable_connect/resources/benefit_eligibility_policies.rbi +0 -15
- data/rbi/vitable_connect/resources/employers.rbi +0 -21
- data/rbi/vitable_connect/resources/webhook_events.rbi +0 -1
- data/sig/vitable_connect/models/employee.rbs +5 -5
- data/sig/vitable_connect/models/employer.rbs +0 -5
- data/sig/vitable_connect/models/groups/members/sync_retrieve_response.rbs +69 -4
- data/sig/vitable_connect/models/webhook_event_list_params.rbs +0 -2
- data/sig/vitable_connect/models.rbs +0 -8
- data/sig/vitable_connect/resources/benefit_eligibility_policies.rbs +0 -5
- data/sig/vitable_connect/resources/employers.rbs +0 -7
- metadata +2 -14
- data/lib/vitable_connect/models/benefit_eligibility_policy.rb +0 -53
- data/lib/vitable_connect/models/benefit_eligibility_policy_response.rb +0 -18
- data/lib/vitable_connect/models/benefit_eligibility_policy_retrieve_params.rb +0 -22
- data/lib/vitable_connect/models/employer_create_benefit_eligibility_policy_params.rb +0 -43
- data/rbi/vitable_connect/models/benefit_eligibility_policy.rbi +0 -74
- data/rbi/vitable_connect/models/benefit_eligibility_policy_response.rbi +0 -38
- data/rbi/vitable_connect/models/benefit_eligibility_policy_retrieve_params.rbi +0 -43
- data/rbi/vitable_connect/models/employer_create_benefit_eligibility_policy_params.rbi +0 -64
- data/sig/vitable_connect/models/benefit_eligibility_policy.rbs +0 -50
- data/sig/vitable_connect/models/benefit_eligibility_policy_response.rbs +0 -14
- data/sig/vitable_connect/models/benefit_eligibility_policy_retrieve_params.rbs +0 -23
- data/sig/vitable_connect/models/employer_create_benefit_eligibility_policy_params.rbs +0 -32
|
@@ -70,8 +70,24 @@ module VitableConnect
|
|
|
70
70
|
sig { returns(String) }
|
|
71
71
|
attr_accessor :request_id
|
|
72
72
|
|
|
73
|
-
sig
|
|
74
|
-
|
|
73
|
+
sig do
|
|
74
|
+
returns(
|
|
75
|
+
T.nilable(
|
|
76
|
+
VitableConnect::Models::Groups::Members::SyncRetrieveResponse::Data::Results
|
|
77
|
+
)
|
|
78
|
+
)
|
|
79
|
+
end
|
|
80
|
+
attr_reader :results
|
|
81
|
+
|
|
82
|
+
sig do
|
|
83
|
+
params(
|
|
84
|
+
results:
|
|
85
|
+
T.nilable(
|
|
86
|
+
VitableConnect::Models::Groups::Members::SyncRetrieveResponse::Data::Results::OrHash
|
|
87
|
+
)
|
|
88
|
+
).void
|
|
89
|
+
end
|
|
90
|
+
attr_writer :results
|
|
75
91
|
|
|
76
92
|
sig do
|
|
77
93
|
params(
|
|
@@ -79,7 +95,10 @@ module VitableConnect
|
|
|
79
95
|
completed_at: T.nilable(Time),
|
|
80
96
|
group_id: String,
|
|
81
97
|
request_id: String,
|
|
82
|
-
results:
|
|
98
|
+
results:
|
|
99
|
+
T.nilable(
|
|
100
|
+
VitableConnect::Models::Groups::Members::SyncRetrieveResponse::Data::Results::OrHash
|
|
101
|
+
)
|
|
83
102
|
).returns(T.attached_class)
|
|
84
103
|
end
|
|
85
104
|
def self.new(
|
|
@@ -98,12 +117,163 @@ module VitableConnect
|
|
|
98
117
|
completed_at: T.nilable(Time),
|
|
99
118
|
group_id: String,
|
|
100
119
|
request_id: String,
|
|
101
|
-
results:
|
|
120
|
+
results:
|
|
121
|
+
T.nilable(
|
|
122
|
+
VitableConnect::Models::Groups::Members::SyncRetrieveResponse::Data::Results
|
|
123
|
+
)
|
|
102
124
|
}
|
|
103
125
|
)
|
|
104
126
|
end
|
|
105
127
|
def to_hash
|
|
106
128
|
end
|
|
129
|
+
|
|
130
|
+
class Results < VitableConnect::Internal::Type::BaseModel
|
|
131
|
+
OrHash =
|
|
132
|
+
T.type_alias do
|
|
133
|
+
T.any(
|
|
134
|
+
VitableConnect::Models::Groups::Members::SyncRetrieveResponse::Data::Results,
|
|
135
|
+
VitableConnect::Internal::AnyHash
|
|
136
|
+
)
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
sig { returns(T::Array[String]) }
|
|
140
|
+
attr_accessor :added_group_member_ids
|
|
141
|
+
|
|
142
|
+
sig do
|
|
143
|
+
returns(
|
|
144
|
+
T::Array[
|
|
145
|
+
VitableConnect::Models::Groups::Members::SyncRetrieveResponse::Data::Results::Failure
|
|
146
|
+
]
|
|
147
|
+
)
|
|
148
|
+
end
|
|
149
|
+
attr_accessor :failures
|
|
150
|
+
|
|
151
|
+
sig { returns(T::Array[String]) }
|
|
152
|
+
attr_accessor :removed_group_member_ids
|
|
153
|
+
|
|
154
|
+
sig do
|
|
155
|
+
params(
|
|
156
|
+
added_group_member_ids: T::Array[String],
|
|
157
|
+
failures:
|
|
158
|
+
T::Array[
|
|
159
|
+
VitableConnect::Models::Groups::Members::SyncRetrieveResponse::Data::Results::Failure::OrHash
|
|
160
|
+
],
|
|
161
|
+
removed_group_member_ids: T::Array[String]
|
|
162
|
+
).returns(T.attached_class)
|
|
163
|
+
end
|
|
164
|
+
def self.new(
|
|
165
|
+
added_group_member_ids:,
|
|
166
|
+
failures:,
|
|
167
|
+
removed_group_member_ids:
|
|
168
|
+
)
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
sig do
|
|
172
|
+
override.returns(
|
|
173
|
+
{
|
|
174
|
+
added_group_member_ids: T::Array[String],
|
|
175
|
+
failures:
|
|
176
|
+
T::Array[
|
|
177
|
+
VitableConnect::Models::Groups::Members::SyncRetrieveResponse::Data::Results::Failure
|
|
178
|
+
],
|
|
179
|
+
removed_group_member_ids: T::Array[String]
|
|
180
|
+
}
|
|
181
|
+
)
|
|
182
|
+
end
|
|
183
|
+
def to_hash
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
class Failure < VitableConnect::Internal::Type::BaseModel
|
|
187
|
+
OrHash =
|
|
188
|
+
T.type_alias do
|
|
189
|
+
T.any(
|
|
190
|
+
VitableConnect::Models::Groups::Members::SyncRetrieveResponse::Data::Results::Failure,
|
|
191
|
+
VitableConnect::Internal::AnyHash
|
|
192
|
+
)
|
|
193
|
+
end
|
|
194
|
+
|
|
195
|
+
# - `add` - add
|
|
196
|
+
# - `remove` - remove
|
|
197
|
+
sig do
|
|
198
|
+
returns(
|
|
199
|
+
VitableConnect::Models::Groups::Members::SyncRetrieveResponse::Data::Results::Failure::Operation::TaggedSymbol
|
|
200
|
+
)
|
|
201
|
+
end
|
|
202
|
+
attr_accessor :operation
|
|
203
|
+
|
|
204
|
+
sig { returns(String) }
|
|
205
|
+
attr_accessor :reason
|
|
206
|
+
|
|
207
|
+
sig { returns(String) }
|
|
208
|
+
attr_accessor :reference_id
|
|
209
|
+
|
|
210
|
+
sig do
|
|
211
|
+
params(
|
|
212
|
+
operation:
|
|
213
|
+
VitableConnect::Models::Groups::Members::SyncRetrieveResponse::Data::Results::Failure::Operation::OrSymbol,
|
|
214
|
+
reason: String,
|
|
215
|
+
reference_id: String
|
|
216
|
+
).returns(T.attached_class)
|
|
217
|
+
end
|
|
218
|
+
def self.new(
|
|
219
|
+
# - `add` - add
|
|
220
|
+
# - `remove` - remove
|
|
221
|
+
operation:,
|
|
222
|
+
reason:,
|
|
223
|
+
reference_id:
|
|
224
|
+
)
|
|
225
|
+
end
|
|
226
|
+
|
|
227
|
+
sig do
|
|
228
|
+
override.returns(
|
|
229
|
+
{
|
|
230
|
+
operation:
|
|
231
|
+
VitableConnect::Models::Groups::Members::SyncRetrieveResponse::Data::Results::Failure::Operation::TaggedSymbol,
|
|
232
|
+
reason: String,
|
|
233
|
+
reference_id: String
|
|
234
|
+
}
|
|
235
|
+
)
|
|
236
|
+
end
|
|
237
|
+
def to_hash
|
|
238
|
+
end
|
|
239
|
+
|
|
240
|
+
# - `add` - add
|
|
241
|
+
# - `remove` - remove
|
|
242
|
+
module Operation
|
|
243
|
+
extend VitableConnect::Internal::Type::Enum
|
|
244
|
+
|
|
245
|
+
TaggedSymbol =
|
|
246
|
+
T.type_alias do
|
|
247
|
+
T.all(
|
|
248
|
+
Symbol,
|
|
249
|
+
VitableConnect::Models::Groups::Members::SyncRetrieveResponse::Data::Results::Failure::Operation
|
|
250
|
+
)
|
|
251
|
+
end
|
|
252
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
253
|
+
|
|
254
|
+
ADD =
|
|
255
|
+
T.let(
|
|
256
|
+
:add,
|
|
257
|
+
VitableConnect::Models::Groups::Members::SyncRetrieveResponse::Data::Results::Failure::Operation::TaggedSymbol
|
|
258
|
+
)
|
|
259
|
+
REMOVE =
|
|
260
|
+
T.let(
|
|
261
|
+
:remove,
|
|
262
|
+
VitableConnect::Models::Groups::Members::SyncRetrieveResponse::Data::Results::Failure::Operation::TaggedSymbol
|
|
263
|
+
)
|
|
264
|
+
|
|
265
|
+
sig do
|
|
266
|
+
override.returns(
|
|
267
|
+
T::Array[
|
|
268
|
+
VitableConnect::Models::Groups::Members::SyncRetrieveResponse::Data::Results::Failure::Operation::TaggedSymbol
|
|
269
|
+
]
|
|
270
|
+
)
|
|
271
|
+
end
|
|
272
|
+
def self.values
|
|
273
|
+
end
|
|
274
|
+
end
|
|
275
|
+
end
|
|
276
|
+
end
|
|
107
277
|
end
|
|
108
278
|
end
|
|
109
279
|
end
|
|
@@ -35,7 +35,6 @@ module VitableConnect
|
|
|
35
35
|
# - `employee.eligibility_granted` - Employee Eligibility Granted
|
|
36
36
|
# - `employee.eligibility_terminated` - Employee Eligibility Terminated
|
|
37
37
|
# - `employee.deactivated` - Employee Deactivated
|
|
38
|
-
# - `employer.eligibility_policy_created` - Employer Eligibility Policy Created
|
|
39
38
|
# - `employee.deduction_created` - Employee Deduction Created
|
|
40
39
|
sig do
|
|
41
40
|
returns(
|
|
@@ -121,7 +120,6 @@ module VitableConnect
|
|
|
121
120
|
# - `employee.eligibility_granted` - Employee Eligibility Granted
|
|
122
121
|
# - `employee.eligibility_terminated` - Employee Eligibility Terminated
|
|
123
122
|
# - `employee.deactivated` - Employee Deactivated
|
|
124
|
-
# - `employer.eligibility_policy_created` - Employer Eligibility Policy Created
|
|
125
123
|
# - `employee.deduction_created` - Employee Deduction Created
|
|
126
124
|
event_name: nil,
|
|
127
125
|
# Items per page (default: 20, max: 100)
|
|
@@ -168,7 +166,6 @@ module VitableConnect
|
|
|
168
166
|
# - `employee.eligibility_granted` - Employee Eligibility Granted
|
|
169
167
|
# - `employee.eligibility_terminated` - Employee Eligibility Terminated
|
|
170
168
|
# - `employee.deactivated` - Employee Deactivated
|
|
171
|
-
# - `employer.eligibility_policy_created` - Employer Eligibility Policy Created
|
|
172
169
|
# - `employee.deduction_created` - Employee Deduction Created
|
|
173
170
|
module EventName
|
|
174
171
|
extend VitableConnect::Internal::Type::Enum
|
|
@@ -224,11 +221,6 @@ module VitableConnect
|
|
|
224
221
|
:"employee.deactivated",
|
|
225
222
|
VitableConnect::WebhookEventListParams::EventName::TaggedSymbol
|
|
226
223
|
)
|
|
227
|
-
EMPLOYER_ELIGIBILITY_POLICY_CREATED =
|
|
228
|
-
T.let(
|
|
229
|
-
:"employer.eligibility_policy_created",
|
|
230
|
-
VitableConnect::WebhookEventListParams::EventName::TaggedSymbol
|
|
231
|
-
)
|
|
232
224
|
EMPLOYEE_DEDUCTION_CREATED =
|
|
233
225
|
T.let(
|
|
234
226
|
:"employee.deduction_created",
|
|
@@ -4,14 +4,6 @@ module VitableConnect
|
|
|
4
4
|
AuthIssueAccessTokenParams =
|
|
5
5
|
VitableConnect::Models::AuthIssueAccessTokenParams
|
|
6
6
|
|
|
7
|
-
BenefitEligibilityPolicy = VitableConnect::Models::BenefitEligibilityPolicy
|
|
8
|
-
|
|
9
|
-
BenefitEligibilityPolicyResponse =
|
|
10
|
-
VitableConnect::Models::BenefitEligibilityPolicyResponse
|
|
11
|
-
|
|
12
|
-
BenefitEligibilityPolicyRetrieveParams =
|
|
13
|
-
VitableConnect::Models::BenefitEligibilityPolicyRetrieveParams
|
|
14
|
-
|
|
15
7
|
Employee = VitableConnect::Models::Employee
|
|
16
8
|
|
|
17
9
|
EmployeeClass = VitableConnect::Models::EmployeeClass
|
|
@@ -23,9 +15,6 @@ module VitableConnect
|
|
|
23
15
|
|
|
24
16
|
Employer = VitableConnect::Models::Employer
|
|
25
17
|
|
|
26
|
-
EmployerCreateBenefitEligibilityPolicyParams =
|
|
27
|
-
VitableConnect::Models::EmployerCreateBenefitEligibilityPolicyParams
|
|
28
|
-
|
|
29
18
|
EmployerCreateParams = VitableConnect::Models::EmployerCreateParams
|
|
30
19
|
|
|
31
20
|
EmployerListEmployeesParams =
|
|
@@ -2,22 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
module VitableConnect
|
|
4
4
|
module Resources
|
|
5
|
-
# Define rules that determine which employees qualify for benefits
|
|
6
5
|
class BenefitEligibilityPolicies
|
|
7
|
-
# Retrieves a benefit eligibility policy by ID.
|
|
8
|
-
sig do
|
|
9
|
-
params(
|
|
10
|
-
policy_id: String,
|
|
11
|
-
request_options: VitableConnect::RequestOptions::OrHash
|
|
12
|
-
).returns(VitableConnect::BenefitEligibilityPolicyResponse)
|
|
13
|
-
end
|
|
14
|
-
def retrieve(
|
|
15
|
-
# Unique benefit eligibility policy identifier (epol\_\*)
|
|
16
|
-
policy_id,
|
|
17
|
-
request_options: {}
|
|
18
|
-
)
|
|
19
|
-
end
|
|
20
|
-
|
|
21
6
|
# @api private
|
|
22
7
|
sig { params(client: VitableConnect::Client).returns(T.attached_class) }
|
|
23
8
|
def self.new(client:)
|
|
@@ -73,27 +73,6 @@ module VitableConnect
|
|
|
73
73
|
)
|
|
74
74
|
end
|
|
75
75
|
|
|
76
|
-
# Creates a benefit eligibility policy for the specified employer.
|
|
77
|
-
sig do
|
|
78
|
-
params(
|
|
79
|
-
employer_id: String,
|
|
80
|
-
classification: String,
|
|
81
|
-
waiting_period: String,
|
|
82
|
-
request_options: VitableConnect::RequestOptions::OrHash
|
|
83
|
-
).returns(VitableConnect::BenefitEligibilityPolicyResponse)
|
|
84
|
-
end
|
|
85
|
-
def create_benefit_eligibility_policy(
|
|
86
|
-
# Unique employer identifier (empr\_\*)
|
|
87
|
-
employer_id,
|
|
88
|
-
# Which employee classifications are eligible. One of: full_time, part_time, all
|
|
89
|
-
classification:,
|
|
90
|
-
# Waiting period before eligibility. One of: first_of_following_month, 30_days,
|
|
91
|
-
# 60_days, none
|
|
92
|
-
waiting_period:,
|
|
93
|
-
request_options: {}
|
|
94
|
-
)
|
|
95
|
-
end
|
|
96
|
-
|
|
97
76
|
# Retrieves a paginated list of all employees for a specific employer. Results are
|
|
98
77
|
# paginated using page and limit parameters. Each employee includes payroll
|
|
99
78
|
# deductions from the most recent statement period. When a new deduction statement
|
|
@@ -44,7 +44,6 @@ module VitableConnect
|
|
|
44
44
|
# - `employee.eligibility_granted` - Employee Eligibility Granted
|
|
45
45
|
# - `employee.eligibility_terminated` - Employee Eligibility Terminated
|
|
46
46
|
# - `employee.deactivated` - Employee Deactivated
|
|
47
|
-
# - `employer.eligibility_policy_created` - Employer Eligibility Policy Created
|
|
48
47
|
# - `employee.deduction_created` - Employee Deduction Created
|
|
49
48
|
event_name: nil,
|
|
50
49
|
# Items per page (default: 20, max: 100)
|
|
@@ -10,13 +10,13 @@ module VitableConnect
|
|
|
10
10
|
first_name: String,
|
|
11
11
|
last_name: String,
|
|
12
12
|
member_id: String,
|
|
13
|
+
phone: String?,
|
|
13
14
|
status: String,
|
|
14
15
|
updated_at: Time,
|
|
15
16
|
address: VitableConnect::Employee::Address?,
|
|
16
17
|
employee_class: VitableConnect::Models::employee_class?,
|
|
17
18
|
gender: String?,
|
|
18
19
|
hire_date: Date?,
|
|
19
|
-
phone: String?,
|
|
20
20
|
reference_id: String?,
|
|
21
21
|
suffix: String?,
|
|
22
22
|
termination_date: Date?
|
|
@@ -45,8 +45,6 @@ module VitableConnect
|
|
|
45
45
|
|
|
46
46
|
attr_accessor hire_date: Date?
|
|
47
47
|
|
|
48
|
-
attr_accessor phone: String?
|
|
49
|
-
|
|
50
48
|
attr_accessor reference_id: String?
|
|
51
49
|
|
|
52
50
|
attr_accessor suffix: String?
|
|
@@ -57,6 +55,8 @@ module VitableConnect
|
|
|
57
55
|
|
|
58
56
|
attr_accessor member_id: String
|
|
59
57
|
|
|
58
|
+
attr_accessor phone: String?
|
|
59
|
+
|
|
60
60
|
attr_accessor status: String
|
|
61
61
|
|
|
62
62
|
def initialize: (
|
|
@@ -68,13 +68,13 @@ module VitableConnect
|
|
|
68
68
|
first_name: String,
|
|
69
69
|
last_name: String,
|
|
70
70
|
member_id: String,
|
|
71
|
+
phone: String?,
|
|
71
72
|
status: String,
|
|
72
73
|
updated_at: Time,
|
|
73
74
|
?address: VitableConnect::Employee::Address?,
|
|
74
75
|
?employee_class: VitableConnect::Models::employee_class?,
|
|
75
76
|
?gender: String?,
|
|
76
77
|
?hire_date: Date?,
|
|
77
|
-
?phone: String?,
|
|
78
78
|
?reference_id: String?,
|
|
79
79
|
?suffix: String?,
|
|
80
80
|
?termination_date: Date?
|
|
@@ -89,13 +89,13 @@ module VitableConnect
|
|
|
89
89
|
first_name: String,
|
|
90
90
|
last_name: String,
|
|
91
91
|
member_id: String,
|
|
92
|
+
phone: String?,
|
|
92
93
|
status: String,
|
|
93
94
|
updated_at: Time,
|
|
94
95
|
address: VitableConnect::Employee::Address?,
|
|
95
96
|
employee_class: VitableConnect::Models::employee_class?,
|
|
96
97
|
gender: String?,
|
|
97
98
|
hire_date: Date?,
|
|
98
|
-
phone: String?,
|
|
99
99
|
reference_id: String?,
|
|
100
100
|
suffix: String?,
|
|
101
101
|
termination_date: Date?
|
|
@@ -7,7 +7,6 @@ module VitableConnect
|
|
|
7
7
|
address: VitableConnect::Employer::Address,
|
|
8
8
|
created_at: Time,
|
|
9
9
|
ein: String?,
|
|
10
|
-
eligibility_policy_id: String?,
|
|
11
10
|
legal_name: String,
|
|
12
11
|
name: String,
|
|
13
12
|
organization_id: String?,
|
|
@@ -40,8 +39,6 @@ module VitableConnect
|
|
|
40
39
|
|
|
41
40
|
attr_accessor ein: String?
|
|
42
41
|
|
|
43
|
-
attr_accessor eligibility_policy_id: String?
|
|
44
|
-
|
|
45
42
|
attr_accessor organization_id: String?
|
|
46
43
|
|
|
47
44
|
def initialize: (
|
|
@@ -50,7 +47,6 @@ module VitableConnect
|
|
|
50
47
|
address: VitableConnect::Employer::Address,
|
|
51
48
|
created_at: Time,
|
|
52
49
|
ein: String?,
|
|
53
|
-
eligibility_policy_id: String?,
|
|
54
50
|
legal_name: String,
|
|
55
51
|
name: String,
|
|
56
52
|
organization_id: String?,
|
|
@@ -66,7 +62,6 @@ module VitableConnect
|
|
|
66
62
|
address: VitableConnect::Employer::Address,
|
|
67
63
|
created_at: Time,
|
|
68
64
|
ein: String?,
|
|
69
|
-
eligibility_policy_id: String?,
|
|
70
65
|
legal_name: String,
|
|
71
66
|
name: String,
|
|
72
67
|
organization_id: String?,
|
|
@@ -24,7 +24,7 @@ module VitableConnect
|
|
|
24
24
|
completed_at: Time?,
|
|
25
25
|
group_id: String,
|
|
26
26
|
request_id: String,
|
|
27
|
-
results:
|
|
27
|
+
results: VitableConnect::Models::Groups::Members::SyncRetrieveResponse::Data::Results?
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
class Data < VitableConnect::Internal::Type::BaseModel
|
|
@@ -36,14 +36,14 @@ module VitableConnect
|
|
|
36
36
|
|
|
37
37
|
attr_accessor request_id: String
|
|
38
38
|
|
|
39
|
-
attr_accessor results:
|
|
39
|
+
attr_accessor results: VitableConnect::Models::Groups::Members::SyncRetrieveResponse::Data::Results?
|
|
40
40
|
|
|
41
41
|
def initialize: (
|
|
42
42
|
accepted_at: Time,
|
|
43
43
|
completed_at: Time?,
|
|
44
44
|
group_id: String,
|
|
45
45
|
request_id: String,
|
|
46
|
-
results:
|
|
46
|
+
results: VitableConnect::Models::Groups::Members::SyncRetrieveResponse::Data::Results?
|
|
47
47
|
) -> void
|
|
48
48
|
|
|
49
49
|
def to_hash: -> {
|
|
@@ -51,8 +51,73 @@ module VitableConnect
|
|
|
51
51
|
completed_at: Time?,
|
|
52
52
|
group_id: String,
|
|
53
53
|
request_id: String,
|
|
54
|
-
results:
|
|
54
|
+
results: VitableConnect::Models::Groups::Members::SyncRetrieveResponse::Data::Results?
|
|
55
55
|
}
|
|
56
|
+
|
|
57
|
+
type results =
|
|
58
|
+
{
|
|
59
|
+
added_group_member_ids: ::Array[String],
|
|
60
|
+
failures: ::Array[VitableConnect::Models::Groups::Members::SyncRetrieveResponse::Data::Results::Failure],
|
|
61
|
+
removed_group_member_ids: ::Array[String]
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
class Results < VitableConnect::Internal::Type::BaseModel
|
|
65
|
+
attr_accessor added_group_member_ids: ::Array[String]
|
|
66
|
+
|
|
67
|
+
attr_accessor failures: ::Array[VitableConnect::Models::Groups::Members::SyncRetrieveResponse::Data::Results::Failure]
|
|
68
|
+
|
|
69
|
+
attr_accessor removed_group_member_ids: ::Array[String]
|
|
70
|
+
|
|
71
|
+
def initialize: (
|
|
72
|
+
added_group_member_ids: ::Array[String],
|
|
73
|
+
failures: ::Array[VitableConnect::Models::Groups::Members::SyncRetrieveResponse::Data::Results::Failure],
|
|
74
|
+
removed_group_member_ids: ::Array[String]
|
|
75
|
+
) -> void
|
|
76
|
+
|
|
77
|
+
def to_hash: -> {
|
|
78
|
+
added_group_member_ids: ::Array[String],
|
|
79
|
+
failures: ::Array[VitableConnect::Models::Groups::Members::SyncRetrieveResponse::Data::Results::Failure],
|
|
80
|
+
removed_group_member_ids: ::Array[String]
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
type failure =
|
|
84
|
+
{
|
|
85
|
+
operation: VitableConnect::Models::Groups::Members::SyncRetrieveResponse::Data::Results::Failure::operation,
|
|
86
|
+
reason: String,
|
|
87
|
+
reference_id: String
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
class Failure < VitableConnect::Internal::Type::BaseModel
|
|
91
|
+
attr_accessor operation: VitableConnect::Models::Groups::Members::SyncRetrieveResponse::Data::Results::Failure::operation
|
|
92
|
+
|
|
93
|
+
attr_accessor reason: String
|
|
94
|
+
|
|
95
|
+
attr_accessor reference_id: String
|
|
96
|
+
|
|
97
|
+
def initialize: (
|
|
98
|
+
operation: VitableConnect::Models::Groups::Members::SyncRetrieveResponse::Data::Results::Failure::operation,
|
|
99
|
+
reason: String,
|
|
100
|
+
reference_id: String
|
|
101
|
+
) -> void
|
|
102
|
+
|
|
103
|
+
def to_hash: -> {
|
|
104
|
+
operation: VitableConnect::Models::Groups::Members::SyncRetrieveResponse::Data::Results::Failure::operation,
|
|
105
|
+
reason: String,
|
|
106
|
+
reference_id: String
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
type operation = :add | :remove
|
|
110
|
+
|
|
111
|
+
module Operation
|
|
112
|
+
extend VitableConnect::Internal::Type::Enum
|
|
113
|
+
|
|
114
|
+
ADD: :add
|
|
115
|
+
REMOVE: :remove
|
|
116
|
+
|
|
117
|
+
def self?.values: -> ::Array[VitableConnect::Models::Groups::Members::SyncRetrieveResponse::Data::Results::Failure::operation]
|
|
118
|
+
end
|
|
119
|
+
end
|
|
120
|
+
end
|
|
56
121
|
end
|
|
57
122
|
end
|
|
58
123
|
end
|
|
@@ -80,7 +80,6 @@ module VitableConnect
|
|
|
80
80
|
| :"employee.eligibility_granted"
|
|
81
81
|
| :"employee.eligibility_terminated"
|
|
82
82
|
| :"employee.deactivated"
|
|
83
|
-
| :"employer.eligibility_policy_created"
|
|
84
83
|
| :"employee.deduction_created"
|
|
85
84
|
|
|
86
85
|
module EventName
|
|
@@ -95,7 +94,6 @@ module VitableConnect
|
|
|
95
94
|
EMPLOYEE_ELIGIBILITY_GRANTED: :"employee.eligibility_granted"
|
|
96
95
|
EMPLOYEE_ELIGIBILITY_TERMINATED: :"employee.eligibility_terminated"
|
|
97
96
|
EMPLOYEE_DEACTIVATED: :"employee.deactivated"
|
|
98
|
-
EMPLOYER_ELIGIBILITY_POLICY_CREATED: :"employer.eligibility_policy_created"
|
|
99
97
|
EMPLOYEE_DEDUCTION_CREATED: :"employee.deduction_created"
|
|
100
98
|
|
|
101
99
|
def self?.values: -> ::Array[VitableConnect::Models::WebhookEventListParams::event_name]
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
module VitableConnect
|
|
2
2
|
class AuthIssueAccessTokenParams = VitableConnect::Models::AuthIssueAccessTokenParams
|
|
3
3
|
|
|
4
|
-
class BenefitEligibilityPolicy = VitableConnect::Models::BenefitEligibilityPolicy
|
|
5
|
-
|
|
6
|
-
class BenefitEligibilityPolicyResponse = VitableConnect::Models::BenefitEligibilityPolicyResponse
|
|
7
|
-
|
|
8
|
-
class BenefitEligibilityPolicyRetrieveParams = VitableConnect::Models::BenefitEligibilityPolicyRetrieveParams
|
|
9
|
-
|
|
10
4
|
class Employee = VitableConnect::Models::Employee
|
|
11
5
|
|
|
12
6
|
module EmployeeClass = VitableConnect::Models::EmployeeClass
|
|
@@ -17,8 +11,6 @@ module VitableConnect
|
|
|
17
11
|
|
|
18
12
|
class Employer = VitableConnect::Models::Employer
|
|
19
13
|
|
|
20
|
-
class EmployerCreateBenefitEligibilityPolicyParams = VitableConnect::Models::EmployerCreateBenefitEligibilityPolicyParams
|
|
21
|
-
|
|
22
14
|
class EmployerCreateParams = VitableConnect::Models::EmployerCreateParams
|
|
23
15
|
|
|
24
16
|
class EmployerListEmployeesParams = VitableConnect::Models::EmployerListEmployeesParams
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
module VitableConnect
|
|
2
2
|
module Resources
|
|
3
3
|
class BenefitEligibilityPolicies
|
|
4
|
-
def retrieve: (
|
|
5
|
-
String policy_id,
|
|
6
|
-
?request_options: VitableConnect::request_opts
|
|
7
|
-
) -> VitableConnect::BenefitEligibilityPolicyResponse
|
|
8
|
-
|
|
9
4
|
def initialize: (client: VitableConnect::Client) -> void
|
|
10
5
|
end
|
|
11
6
|
end
|
|
@@ -23,13 +23,6 @@ module VitableConnect
|
|
|
23
23
|
?request_options: VitableConnect::request_opts
|
|
24
24
|
) -> VitableConnect::Internal::PageNumberPage[VitableConnect::Employer]
|
|
25
25
|
|
|
26
|
-
def create_benefit_eligibility_policy: (
|
|
27
|
-
String employer_id,
|
|
28
|
-
classification: String,
|
|
29
|
-
waiting_period: String,
|
|
30
|
-
?request_options: VitableConnect::request_opts
|
|
31
|
-
) -> VitableConnect::BenefitEligibilityPolicyResponse
|
|
32
|
-
|
|
33
26
|
def list_employees: (
|
|
34
27
|
String employer_id,
|
|
35
28
|
?limit: Integer,
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: vitable-connect
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.5.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Vitable Connect
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-06-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cgi
|
|
@@ -72,16 +72,12 @@ files:
|
|
|
72
72
|
- lib/vitable_connect/models.rb
|
|
73
73
|
- lib/vitable_connect/models/auth_issue_access_token_params.rb
|
|
74
74
|
- lib/vitable_connect/models/auth_issue_access_token_response.rb
|
|
75
|
-
- lib/vitable_connect/models/benefit_eligibility_policy.rb
|
|
76
|
-
- lib/vitable_connect/models/benefit_eligibility_policy_response.rb
|
|
77
|
-
- lib/vitable_connect/models/benefit_eligibility_policy_retrieve_params.rb
|
|
78
75
|
- lib/vitable_connect/models/employee.rb
|
|
79
76
|
- lib/vitable_connect/models/employee_class.rb
|
|
80
77
|
- lib/vitable_connect/models/employee_list_enrollments_params.rb
|
|
81
78
|
- lib/vitable_connect/models/employee_retrieve_params.rb
|
|
82
79
|
- lib/vitable_connect/models/employee_retrieve_response.rb
|
|
83
80
|
- lib/vitable_connect/models/employer.rb
|
|
84
|
-
- lib/vitable_connect/models/employer_create_benefit_eligibility_policy_params.rb
|
|
85
81
|
- lib/vitable_connect/models/employer_create_params.rb
|
|
86
82
|
- lib/vitable_connect/models/employer_list_employees_params.rb
|
|
87
83
|
- lib/vitable_connect/models/employer_list_params.rb
|
|
@@ -150,16 +146,12 @@ files:
|
|
|
150
146
|
- rbi/vitable_connect/models.rbi
|
|
151
147
|
- rbi/vitable_connect/models/auth_issue_access_token_params.rbi
|
|
152
148
|
- rbi/vitable_connect/models/auth_issue_access_token_response.rbi
|
|
153
|
-
- rbi/vitable_connect/models/benefit_eligibility_policy.rbi
|
|
154
|
-
- rbi/vitable_connect/models/benefit_eligibility_policy_response.rbi
|
|
155
|
-
- rbi/vitable_connect/models/benefit_eligibility_policy_retrieve_params.rbi
|
|
156
149
|
- rbi/vitable_connect/models/employee.rbi
|
|
157
150
|
- rbi/vitable_connect/models/employee_class.rbi
|
|
158
151
|
- rbi/vitable_connect/models/employee_list_enrollments_params.rbi
|
|
159
152
|
- rbi/vitable_connect/models/employee_retrieve_params.rbi
|
|
160
153
|
- rbi/vitable_connect/models/employee_retrieve_response.rbi
|
|
161
154
|
- rbi/vitable_connect/models/employer.rbi
|
|
162
|
-
- rbi/vitable_connect/models/employer_create_benefit_eligibility_policy_params.rbi
|
|
163
155
|
- rbi/vitable_connect/models/employer_create_params.rbi
|
|
164
156
|
- rbi/vitable_connect/models/employer_list_employees_params.rbi
|
|
165
157
|
- rbi/vitable_connect/models/employer_list_params.rbi
|
|
@@ -227,16 +219,12 @@ files:
|
|
|
227
219
|
- sig/vitable_connect/models.rbs
|
|
228
220
|
- sig/vitable_connect/models/auth_issue_access_token_params.rbs
|
|
229
221
|
- sig/vitable_connect/models/auth_issue_access_token_response.rbs
|
|
230
|
-
- sig/vitable_connect/models/benefit_eligibility_policy.rbs
|
|
231
|
-
- sig/vitable_connect/models/benefit_eligibility_policy_response.rbs
|
|
232
|
-
- sig/vitable_connect/models/benefit_eligibility_policy_retrieve_params.rbs
|
|
233
222
|
- sig/vitable_connect/models/employee.rbs
|
|
234
223
|
- sig/vitable_connect/models/employee_class.rbs
|
|
235
224
|
- sig/vitable_connect/models/employee_list_enrollments_params.rbs
|
|
236
225
|
- sig/vitable_connect/models/employee_retrieve_params.rbs
|
|
237
226
|
- sig/vitable_connect/models/employee_retrieve_response.rbs
|
|
238
227
|
- sig/vitable_connect/models/employer.rbs
|
|
239
|
-
- sig/vitable_connect/models/employer_create_benefit_eligibility_policy_params.rbs
|
|
240
228
|
- sig/vitable_connect/models/employer_create_params.rbs
|
|
241
229
|
- sig/vitable_connect/models/employer_list_employees_params.rbs
|
|
242
230
|
- sig/vitable_connect/models/employer_list_params.rbs
|