vitable-connect 5.2.0 → 7.0.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/.fern/metadata.json +2 -2
- data/changelog.md +14 -0
- data/lib/VitableConnect/client.rb +10 -6
- data/lib/VitableConnect/employers/client.rb +6 -96
- data/lib/VitableConnect/employers/types/create_employer_request.rb +0 -2
- data/lib/VitableConnect/employers/types/ensure_payroll_integration_email_employers_request.rb +0 -2
- data/lib/VitableConnect/employers/types/get_benefit_plan_year_employers_request.rb +0 -2
- data/lib/VitableConnect/employers/types/get_employers_request.rb +0 -2
- data/lib/VitableConnect/employers/types/get_hris_employers_request.rb +0 -2
- data/lib/VitableConnect/employers/types/get_invoice_pdf_employers_request.rb +0 -2
- data/lib/VitableConnect/employers/types/get_payroll_access_setup_employers_request.rb +0 -2
- data/lib/VitableConnect/employers/types/list_benefit_plan_year_enrollments_employers_request.rb +0 -2
- data/lib/VitableConnect/employers/types/list_benefit_plan_years_employers_request.rb +0 -2
- data/lib/VitableConnect/employers/types/list_employees_employers_request.rb +0 -2
- data/lib/VitableConnect/employers/types/list_employers_request.rb +0 -2
- data/lib/VitableConnect/employers/types/list_invoices_employers_request.rb +0 -2
- data/lib/VitableConnect/employers/types/list_payroll_deduction_statements_employers_request.rb +0 -2
- data/lib/VitableConnect/employers/types/submit_payroll_access_setup_request.rb +0 -2
- data/lib/VitableConnect/employers/types/update_employer_request.rb +0 -2
- data/lib/VitableConnect/employers/types/update_employer_settings_request.rb +0 -2
- data/lib/VitableConnect/enrollments/client.rb +2 -17
- data/lib/VitableConnect/enrollments/types/get_enrollments_request.rb +0 -2
- data/lib/VitableConnect/enrollments/types/reissue_enrollment_request.rb +0 -2
- data/lib/VitableConnect/enrollments/types/terminate_enrollment_request.rb +0 -2
- data/lib/VitableConnect/members/client.rb +4 -49
- data/lib/VitableConnect/members/types/create_member_dependent_request.rb +0 -2
- data/lib/VitableConnect/members/types/get_household_members_request.rb +0 -2
- data/lib/VitableConnect/members/types/get_members_request.rb +0 -2
- data/lib/VitableConnect/members/types/list_dependents_members_request.rb +0 -2
- data/lib/VitableConnect/members/types/list_employments_members_request.rb +0 -2
- data/lib/VitableConnect/members/types/list_enrollments_members_request.rb +0 -2
- data/lib/VitableConnect/members/types/list_id_cards_members_request.rb +0 -2
- data/lib/VitableConnect/members/types/list_members_request.rb +0 -2
- data/lib/VitableConnect/members/types/list_qualifying_life_events_members_request.rb +0 -2
- data/lib/VitableConnect/types/member.rb +4 -0
- data/lib/VitableConnect/types/member_address.rb +2 -0
- data/lib/VitableConnect/types/member_enrollment.rb +1 -1
- data/lib/VitableConnect/version.rb +1 -1
- data/lib/VitableConnect.rb +0 -2
- data/reference.md +1 -233
- metadata +2 -4
- data/lib/VitableConnect/employers/types/list_hris_providers_employers_request.rb +0 -11
- data/lib/VitableConnect/types/x_vitable_organization.rb +0 -23
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f7429b08895795305bf1e99c06bc0f795d1425795c218c7202cd6e5bc8c55083
|
|
4
|
+
data.tar.gz: 7f333d14bfec8ef28c605e47ed51607f2e784574f9d155d0f4c93c601b47485b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 86b44351c7a9c90e28cb5ea08288cb67f36563e2db2ad0d3ca3cb45da86d7526def4c6bf25f99e63a5d57867e09482dc8dc83dc85d1a165b344e55acbbbb6a5f
|
|
7
|
+
data.tar.gz: 52d3adb204c53a497f172a0ef826ce88c2efd4d4a24e69b7af07773c1a8fa18c2f69f29cae8af4872c11d56d66078fa1be7c6bc918bd0eeb99d6d75e5605afd2
|
data/.fern/metadata.json
CHANGED
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
"offsetSemantics": "page-index",
|
|
8
8
|
"respectAuthSchemeNames": true
|
|
9
9
|
},
|
|
10
|
-
"originGitCommit": "
|
|
10
|
+
"originGitCommit": "2f39047d268b295053fc488ab1736fa6ca9aa017",
|
|
11
11
|
"originGitCommitIsDirty": false,
|
|
12
12
|
"invokedBy": "ci",
|
|
13
13
|
"requestedVersion": "AUTO",
|
|
14
14
|
"ciProvider": "gitlab",
|
|
15
|
-
"sdkVersion": "
|
|
15
|
+
"sdkVersion": "7.0.0"
|
|
16
16
|
}
|
data/changelog.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## 7.0.0 - 2026-10-16
|
|
2
|
+
### Breaking Changes
|
|
3
|
+
* **`vitable_organization` field** — removed from all employer, enrollment, and member request models; migrate by passing `vitable_organization:` once to `VitableConnect::Client.new` instead of setting it per-request.
|
|
4
|
+
* **`VitableConnect::Types::XVitableOrganization`** — module deleted; remove any direct references to this type.
|
|
5
|
+
* **`VitableConnect::Employers::Types::ListHrisProvidersEmployersRequest`** — class deleted; remove any usage.
|
|
6
|
+
### Added
|
|
7
|
+
* **`VitableConnect::Client#initialize`** — now accepts an optional `vitable_organization:` keyword argument that automatically injects the `X-Vitable-Organization` header into every request.
|
|
8
|
+
* **`VitableConnect::Types::Member#individual_income_in_cents`** and **`#household_income_in_cents`** — new optional fields exposing individual and household income in cents on the member type.
|
|
9
|
+
* **`VitableConnect::Types::MemberAddress#county_name`** — new optional field exposing the county name associated with a member's address.
|
|
10
|
+
|
|
11
|
+
## 6.0.0 - 2026-10-15
|
|
12
|
+
### Breaking Changes
|
|
13
|
+
* **`VitableConnect::Types::MemberEnrollment#in_last_month_of_coverage`** has been renamed to **`plan_year_ends_this_month`**. Update any code reading this field to use the new name; the field type and nullability are unchanged.
|
|
14
|
+
|
|
1
15
|
## 5.2.0 - 2026-10-02
|
|
2
16
|
### Added
|
|
3
17
|
* **`VitableConnect::Members::Client#create_dependent`** — new method that saves a spouse or child dependent for a member, posting to `v1/members/:member_id/dependents`; returns a `SavedMemberDependentResponse` with `created: true` for new dependents or `created: false` when an existing active match is reused.
|
|
@@ -4,17 +4,21 @@ module VitableConnect
|
|
|
4
4
|
class Client
|
|
5
5
|
# @param base_url [String, nil]
|
|
6
6
|
# @param api_key [String]
|
|
7
|
+
# @param vitable_organization [String, nil]
|
|
7
8
|
# @param max_retries [Integer]
|
|
8
9
|
#
|
|
9
10
|
# @return [void]
|
|
10
|
-
def initialize(base_url: nil, api_key: ENV.fetch("VITABLE_CONNECT_API_KEY", nil), max_retries: 2)
|
|
11
|
+
def initialize(base_url: nil, api_key: ENV.fetch("VITABLE_CONNECT_API_KEY", nil), vitable_organization: nil, max_retries: 2)
|
|
12
|
+
headers = {
|
|
13
|
+
"User-Agent" => "vitable-connect/7.0.0",
|
|
14
|
+
"X-Fern-Language" => "Ruby",
|
|
15
|
+
Authorization: "Bearer #{api_key}"
|
|
16
|
+
}
|
|
17
|
+
headers["X-Vitable-Organization"] = vitable_organization.to_s unless vitable_organization.nil?
|
|
11
18
|
@raw_client = VitableConnect::Internal::Http::RawClient.new(
|
|
12
19
|
base_url: base_url || VitableConnect::Environment::PRODUCTION,
|
|
13
|
-
headers:
|
|
14
|
-
|
|
15
|
-
"X-Fern-Language" => "Ruby",
|
|
16
|
-
Authorization: "Bearer #{api_key}"
|
|
17
|
-
},
|
|
20
|
+
headers: headers,
|
|
21
|
+
overridable_headers: %w[X-Vitable-Organization],
|
|
18
22
|
max_retries: max_retries
|
|
19
23
|
)
|
|
20
24
|
end
|
|
@@ -32,7 +32,6 @@ module VitableConnect
|
|
|
32
32
|
# @option params [Integer, nil] :limit
|
|
33
33
|
# @option params [Integer, nil] :page
|
|
34
34
|
# @option params [String, nil] :search
|
|
35
|
-
# @option params [String, nil] :vitable_organization
|
|
36
35
|
#
|
|
37
36
|
# @example
|
|
38
37
|
# client.employers.list(
|
|
@@ -53,9 +52,6 @@ module VitableConnect
|
|
|
53
52
|
query_params["page"] = params[:page] if params.key?(:page)
|
|
54
53
|
query_params["search"] = params[:search] if params.key?(:search)
|
|
55
54
|
|
|
56
|
-
headers = {}
|
|
57
|
-
headers["X-Vitable-Organization"] = params[:vitable_organization] if params[:vitable_organization]
|
|
58
|
-
|
|
59
55
|
VitableConnect::Internal::OffsetItemIterator.new(
|
|
60
56
|
initial_page: query_params["page"],
|
|
61
57
|
item_field: :data,
|
|
@@ -67,7 +63,6 @@ module VitableConnect
|
|
|
67
63
|
base_url: request_options[:base_url],
|
|
68
64
|
method: "GET",
|
|
69
65
|
path: "v1/employers",
|
|
70
|
-
headers: headers,
|
|
71
66
|
query: query_params,
|
|
72
67
|
request_options: request_options
|
|
73
68
|
)
|
|
@@ -97,7 +92,6 @@ module VitableConnect
|
|
|
97
92
|
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
98
93
|
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
99
94
|
# @option request_options [Integer] :timeout_in_seconds
|
|
100
|
-
# @option params [String, nil] :vitable_organization
|
|
101
95
|
#
|
|
102
96
|
# @example
|
|
103
97
|
# client.employers.create(
|
|
@@ -119,19 +113,11 @@ module VitableConnect
|
|
|
119
113
|
# @return [VitableConnect::Types::EmployerResponse]
|
|
120
114
|
def create(request_options: {}, **params)
|
|
121
115
|
params = VitableConnect::Internal::Types::Utils.normalize_keys(params)
|
|
122
|
-
request_data = VitableConnect::Employers::Types::CreateEmployerRequest.new(params).to_h
|
|
123
|
-
non_body_param_names = %w[X-Vitable-Organization]
|
|
124
|
-
body = request_data.except(*non_body_param_names)
|
|
125
|
-
|
|
126
|
-
headers = {}
|
|
127
|
-
headers["X-Vitable-Organization"] = params[:vitable_organization] if params[:vitable_organization]
|
|
128
|
-
|
|
129
116
|
request = VitableConnect::Internal::JSON::Request.new(
|
|
130
117
|
base_url: request_options[:base_url],
|
|
131
118
|
method: "POST",
|
|
132
119
|
path: "v1/employers",
|
|
133
|
-
|
|
134
|
-
body: body,
|
|
120
|
+
body: VitableConnect::Employers::Types::CreateEmployerRequest.new(params).to_h,
|
|
135
121
|
request_options: request_options
|
|
136
122
|
)
|
|
137
123
|
begin
|
|
@@ -159,7 +145,6 @@ module VitableConnect
|
|
|
159
145
|
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
160
146
|
# @option request_options [Integer] :timeout_in_seconds
|
|
161
147
|
# @option params [VitableConnect::Types::EmployerID] :employer_id
|
|
162
|
-
# @option params [String, nil] :vitable_organization
|
|
163
148
|
#
|
|
164
149
|
# @example
|
|
165
150
|
# client.employers.get(employer_id: "empr_abc123def456")
|
|
@@ -167,14 +152,10 @@ module VitableConnect
|
|
|
167
152
|
# @return [VitableConnect::Types::EmployerResponse]
|
|
168
153
|
def get(request_options: {}, **params)
|
|
169
154
|
params = VitableConnect::Internal::Types::Utils.normalize_keys(params)
|
|
170
|
-
headers = {}
|
|
171
|
-
headers["X-Vitable-Organization"] = params[:vitable_organization] if params[:vitable_organization]
|
|
172
|
-
|
|
173
155
|
request = VitableConnect::Internal::JSON::Request.new(
|
|
174
156
|
base_url: request_options[:base_url],
|
|
175
157
|
method: "GET",
|
|
176
158
|
path: "v1/employers/#{URI.encode_uri_component(params[:employer_id].to_s)}",
|
|
177
|
-
headers: headers,
|
|
178
159
|
request_options: request_options
|
|
179
160
|
)
|
|
180
161
|
begin
|
|
@@ -202,7 +183,6 @@ module VitableConnect
|
|
|
202
183
|
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
203
184
|
# @option request_options [Integer] :timeout_in_seconds
|
|
204
185
|
# @option params [VitableConnect::Types::EmployerID] :employer_id
|
|
205
|
-
# @option params [String, nil] :vitable_organization
|
|
206
186
|
#
|
|
207
187
|
# @example
|
|
208
188
|
# client.employers.update(employer_id: "empr_abc123def456")
|
|
@@ -211,17 +191,13 @@ module VitableConnect
|
|
|
211
191
|
def update(request_options: {}, **params)
|
|
212
192
|
params = VitableConnect::Internal::Types::Utils.normalize_keys(params)
|
|
213
193
|
request_data = VitableConnect::Employers::Types::UpdateEmployerRequest.new(params).to_h
|
|
214
|
-
non_body_param_names = %w[employer_id
|
|
194
|
+
non_body_param_names = %w[employer_id]
|
|
215
195
|
body = request_data.except(*non_body_param_names)
|
|
216
196
|
|
|
217
|
-
headers = {}
|
|
218
|
-
headers["X-Vitable-Organization"] = params[:vitable_organization] if params[:vitable_organization]
|
|
219
|
-
|
|
220
197
|
request = VitableConnect::Internal::JSON::Request.new(
|
|
221
198
|
base_url: request_options[:base_url],
|
|
222
199
|
method: "PUT",
|
|
223
200
|
path: "v1/employers/#{URI.encode_uri_component(params[:employer_id].to_s)}",
|
|
224
|
-
headers: headers,
|
|
225
201
|
body: body,
|
|
226
202
|
request_options: request_options
|
|
227
203
|
)
|
|
@@ -251,7 +227,6 @@ module VitableConnect
|
|
|
251
227
|
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
252
228
|
# @option request_options [Integer] :timeout_in_seconds
|
|
253
229
|
# @option params [VitableConnect::Types::EmployerID] :employer_id
|
|
254
|
-
# @option params [String, nil] :vitable_organization
|
|
255
230
|
#
|
|
256
231
|
# @example
|
|
257
232
|
# client.employers.list_benefit_plan_years(employer_id: "empr_abc123def456")
|
|
@@ -259,14 +234,10 @@ module VitableConnect
|
|
|
259
234
|
# @return [VitableConnect::Types::EmployerBenefitPlanYearsListResponse]
|
|
260
235
|
def list_benefit_plan_years(request_options: {}, **params)
|
|
261
236
|
params = VitableConnect::Internal::Types::Utils.normalize_keys(params)
|
|
262
|
-
headers = {}
|
|
263
|
-
headers["X-Vitable-Organization"] = params[:vitable_organization] if params[:vitable_organization]
|
|
264
|
-
|
|
265
237
|
request = VitableConnect::Internal::JSON::Request.new(
|
|
266
238
|
base_url: request_options[:base_url],
|
|
267
239
|
method: "GET",
|
|
268
240
|
path: "v1/employers/#{URI.encode_uri_component(params[:employer_id].to_s)}/benefit-plan-years",
|
|
269
|
-
headers: headers,
|
|
270
241
|
request_options: request_options
|
|
271
242
|
)
|
|
272
243
|
begin
|
|
@@ -296,7 +267,6 @@ module VitableConnect
|
|
|
296
267
|
# @option request_options [Integer] :timeout_in_seconds
|
|
297
268
|
# @option params [VitableConnect::Types::EmployerID] :employer_id
|
|
298
269
|
# @option params [VitableConnect::Types::BenefitPlanYearID] :benefit_plan_year_id
|
|
299
|
-
# @option params [String, nil] :vitable_organization
|
|
300
270
|
#
|
|
301
271
|
# @example
|
|
302
272
|
# client.employers.get_benefit_plan_year(
|
|
@@ -307,14 +277,10 @@ module VitableConnect
|
|
|
307
277
|
# @return [VitableConnect::Types::EmployerBenefitPlanYearResponse]
|
|
308
278
|
def get_benefit_plan_year(request_options: {}, **params)
|
|
309
279
|
params = VitableConnect::Internal::Types::Utils.normalize_keys(params)
|
|
310
|
-
headers = {}
|
|
311
|
-
headers["X-Vitable-Organization"] = params[:vitable_organization] if params[:vitable_organization]
|
|
312
|
-
|
|
313
280
|
request = VitableConnect::Internal::JSON::Request.new(
|
|
314
281
|
base_url: request_options[:base_url],
|
|
315
282
|
method: "GET",
|
|
316
283
|
path: "v1/employers/#{URI.encode_uri_component(params[:employer_id].to_s)}/benefit-plan-years/#{URI.encode_uri_component(params[:benefit_plan_year_id].to_s)}",
|
|
317
|
-
headers: headers,
|
|
318
284
|
request_options: request_options
|
|
319
285
|
)
|
|
320
286
|
begin
|
|
@@ -349,7 +315,6 @@ module VitableConnect
|
|
|
349
315
|
# @option params [Integer, nil] :limit
|
|
350
316
|
# @option params [Integer, nil] :page
|
|
351
317
|
# @option params [String, nil] :search
|
|
352
|
-
# @option params [String, nil] :vitable_organization
|
|
353
318
|
#
|
|
354
319
|
# @example
|
|
355
320
|
# client.employers.list_benefit_plan_year_enrollments(
|
|
@@ -368,9 +333,6 @@ module VitableConnect
|
|
|
368
333
|
query_params["page"] = params[:page] if params.key?(:page)
|
|
369
334
|
query_params["search"] = params[:search] if params.key?(:search)
|
|
370
335
|
|
|
371
|
-
headers = {}
|
|
372
|
-
headers["X-Vitable-Organization"] = params[:vitable_organization] if params[:vitable_organization]
|
|
373
|
-
|
|
374
336
|
VitableConnect::Internal::OffsetItemIterator.new(
|
|
375
337
|
initial_page: query_params["page"],
|
|
376
338
|
item_field: :data,
|
|
@@ -382,7 +344,6 @@ module VitableConnect
|
|
|
382
344
|
base_url: request_options[:base_url],
|
|
383
345
|
method: "GET",
|
|
384
346
|
path: "v1/employers/#{URI.encode_uri_component(params[:employer_id].to_s)}/benefit-plan-years/#{URI.encode_uri_component(params[:benefit_plan_year_id].to_s)}/enrollments",
|
|
385
|
-
headers: headers,
|
|
386
347
|
query: query_params,
|
|
387
348
|
request_options: request_options
|
|
388
349
|
)
|
|
@@ -492,7 +453,6 @@ module VitableConnect
|
|
|
492
453
|
# @option params [Integer, nil] :limit
|
|
493
454
|
# @option params [Integer, nil] :page
|
|
494
455
|
# @option params [String, nil] :search
|
|
495
|
-
# @option params [String, nil] :vitable_organization
|
|
496
456
|
#
|
|
497
457
|
# @example
|
|
498
458
|
# client.employers.list_employees(
|
|
@@ -511,9 +471,6 @@ module VitableConnect
|
|
|
511
471
|
query_params["page"] = params[:page] if params.key?(:page)
|
|
512
472
|
query_params["search"] = params[:search] if params.key?(:search)
|
|
513
473
|
|
|
514
|
-
headers = {}
|
|
515
|
-
headers["X-Vitable-Organization"] = params[:vitable_organization] if params[:vitable_organization]
|
|
516
|
-
|
|
517
474
|
VitableConnect::Internal::OffsetItemIterator.new(
|
|
518
475
|
initial_page: query_params["page"],
|
|
519
476
|
item_field: :data,
|
|
@@ -525,7 +482,6 @@ module VitableConnect
|
|
|
525
482
|
base_url: request_options[:base_url],
|
|
526
483
|
method: "GET",
|
|
527
484
|
path: "v1/employers/#{URI.encode_uri_component(params[:employer_id].to_s)}/employees",
|
|
528
|
-
headers: headers,
|
|
529
485
|
query: query_params,
|
|
530
486
|
request_options: request_options
|
|
531
487
|
)
|
|
@@ -557,7 +513,6 @@ module VitableConnect
|
|
|
557
513
|
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
558
514
|
# @option request_options [Integer] :timeout_in_seconds
|
|
559
515
|
# @option params [VitableConnect::Types::EmployerID] :employer_id
|
|
560
|
-
# @option params [String, nil] :vitable_organization
|
|
561
516
|
#
|
|
562
517
|
# @example
|
|
563
518
|
# client.employers.get_hris(employer_id: "empr_abc123def456")
|
|
@@ -565,14 +520,10 @@ module VitableConnect
|
|
|
565
520
|
# @return [VitableConnect::Types::EmployerHrisResponse]
|
|
566
521
|
def get_hris(request_options: {}, **params)
|
|
567
522
|
params = VitableConnect::Internal::Types::Utils.normalize_keys(params)
|
|
568
|
-
headers = {}
|
|
569
|
-
headers["X-Vitable-Organization"] = params[:vitable_organization] if params[:vitable_organization]
|
|
570
|
-
|
|
571
523
|
request = VitableConnect::Internal::JSON::Request.new(
|
|
572
524
|
base_url: request_options[:base_url],
|
|
573
525
|
method: "GET",
|
|
574
526
|
path: "v1/employers/#{URI.encode_uri_component(params[:employer_id].to_s)}/hris",
|
|
575
|
-
headers: headers,
|
|
576
527
|
request_options: request_options
|
|
577
528
|
)
|
|
578
529
|
begin
|
|
@@ -603,7 +554,6 @@ module VitableConnect
|
|
|
603
554
|
# @option params [VitableConnect::Types::EmployerID] :employer_id
|
|
604
555
|
# @option params [Integer, nil] :limit
|
|
605
556
|
# @option params [String, nil] :offset
|
|
606
|
-
# @option params [String, nil] :vitable_organization
|
|
607
557
|
#
|
|
608
558
|
# @example
|
|
609
559
|
# client.employers.list_invoices(
|
|
@@ -618,14 +568,10 @@ module VitableConnect
|
|
|
618
568
|
query_params["limit"] = params[:limit] if params.key?(:limit)
|
|
619
569
|
query_params["offset"] = params[:offset] if params.key?(:offset)
|
|
620
570
|
|
|
621
|
-
headers = {}
|
|
622
|
-
headers["X-Vitable-Organization"] = params[:vitable_organization] if params[:vitable_organization]
|
|
623
|
-
|
|
624
571
|
request = VitableConnect::Internal::JSON::Request.new(
|
|
625
572
|
base_url: request_options[:base_url],
|
|
626
573
|
method: "GET",
|
|
627
574
|
path: "v1/employers/#{URI.encode_uri_component(params[:employer_id].to_s)}/invoices",
|
|
628
|
-
headers: headers,
|
|
629
575
|
query: query_params,
|
|
630
576
|
request_options: request_options
|
|
631
577
|
)
|
|
@@ -656,7 +602,6 @@ module VitableConnect
|
|
|
656
602
|
# @option request_options [Integer] :timeout_in_seconds
|
|
657
603
|
# @option params [VitableConnect::Types::EmployerID] :employer_id
|
|
658
604
|
# @option params [VitableConnect::Types::InvoiceID] :invoice_id
|
|
659
|
-
# @option params [String, nil] :vitable_organization
|
|
660
605
|
#
|
|
661
606
|
# @example
|
|
662
607
|
# client.employers.get_invoice_pdf(
|
|
@@ -667,14 +612,10 @@ module VitableConnect
|
|
|
667
612
|
# @return [VitableConnect::Types::EmployerInvoicePdfResponse]
|
|
668
613
|
def get_invoice_pdf(request_options: {}, **params)
|
|
669
614
|
params = VitableConnect::Internal::Types::Utils.normalize_keys(params)
|
|
670
|
-
headers = {}
|
|
671
|
-
headers["X-Vitable-Organization"] = params[:vitable_organization] if params[:vitable_organization]
|
|
672
|
-
|
|
673
615
|
request = VitableConnect::Internal::JSON::Request.new(
|
|
674
616
|
base_url: request_options[:base_url],
|
|
675
617
|
method: "GET",
|
|
676
618
|
path: "v1/employers/#{URI.encode_uri_component(params[:employer_id].to_s)}/invoices/#{URI.encode_uri_component(params[:invoice_id].to_s)}/pdf",
|
|
677
|
-
headers: headers,
|
|
678
619
|
request_options: request_options
|
|
679
620
|
)
|
|
680
621
|
begin
|
|
@@ -701,7 +642,6 @@ module VitableConnect
|
|
|
701
642
|
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
702
643
|
# @option request_options [Integer] :timeout_in_seconds
|
|
703
644
|
# @option params [VitableConnect::Types::EmployerID] :employer_id
|
|
704
|
-
# @option params [String, nil] :vitable_organization
|
|
705
645
|
#
|
|
706
646
|
# @example
|
|
707
647
|
# client.employers.get_payroll_access_setup(employer_id: "empr_abc123def456")
|
|
@@ -709,14 +649,10 @@ module VitableConnect
|
|
|
709
649
|
# @return [VitableConnect::Types::PayrollAccessSetupStatusResponse]
|
|
710
650
|
def get_payroll_access_setup(request_options: {}, **params)
|
|
711
651
|
params = VitableConnect::Internal::Types::Utils.normalize_keys(params)
|
|
712
|
-
headers = {}
|
|
713
|
-
headers["X-Vitable-Organization"] = params[:vitable_organization] if params[:vitable_organization]
|
|
714
|
-
|
|
715
652
|
request = VitableConnect::Internal::JSON::Request.new(
|
|
716
653
|
base_url: request_options[:base_url],
|
|
717
654
|
method: "GET",
|
|
718
655
|
path: "v1/employers/#{URI.encode_uri_component(params[:employer_id].to_s)}/payroll-access-setup",
|
|
719
|
-
headers: headers,
|
|
720
656
|
request_options: request_options
|
|
721
657
|
)
|
|
722
658
|
begin
|
|
@@ -743,7 +679,6 @@ module VitableConnect
|
|
|
743
679
|
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
744
680
|
# @option request_options [Integer] :timeout_in_seconds
|
|
745
681
|
# @option params [VitableConnect::Types::EmployerID] :employer_id
|
|
746
|
-
# @option params [String, nil] :vitable_organization
|
|
747
682
|
#
|
|
748
683
|
# @example
|
|
749
684
|
# client.employers.submit_payroll_access_setup(
|
|
@@ -761,17 +696,13 @@ module VitableConnect
|
|
|
761
696
|
def submit_payroll_access_setup(request_options: {}, **params)
|
|
762
697
|
params = VitableConnect::Internal::Types::Utils.normalize_keys(params)
|
|
763
698
|
request_data = VitableConnect::Employers::Types::SubmitPayrollAccessSetupRequest.new(params).to_h
|
|
764
|
-
non_body_param_names = %w[employer_id
|
|
699
|
+
non_body_param_names = %w[employer_id]
|
|
765
700
|
body = request_data.except(*non_body_param_names)
|
|
766
701
|
|
|
767
|
-
headers = {}
|
|
768
|
-
headers["X-Vitable-Organization"] = params[:vitable_organization] if params[:vitable_organization]
|
|
769
|
-
|
|
770
702
|
request = VitableConnect::Internal::JSON::Request.new(
|
|
771
703
|
base_url: request_options[:base_url],
|
|
772
704
|
method: "PUT",
|
|
773
705
|
path: "v1/employers/#{URI.encode_uri_component(params[:employer_id].to_s)}/payroll-access-setup",
|
|
774
|
-
headers: headers,
|
|
775
706
|
body: body,
|
|
776
707
|
request_options: request_options
|
|
777
708
|
)
|
|
@@ -804,7 +735,6 @@ module VitableConnect
|
|
|
804
735
|
# @option params [VitableConnect::Types::EmployerID] :employer_id
|
|
805
736
|
# @option params [Integer, nil] :limit
|
|
806
737
|
# @option params [Integer, nil] :page
|
|
807
|
-
# @option params [String, nil] :vitable_organization
|
|
808
738
|
#
|
|
809
739
|
# @example
|
|
810
740
|
# client.employers.list_payroll_deduction_statements(
|
|
@@ -820,9 +750,6 @@ module VitableConnect
|
|
|
820
750
|
query_params["limit"] = params[:limit] if params.key?(:limit)
|
|
821
751
|
query_params["page"] = params[:page] if params.key?(:page)
|
|
822
752
|
|
|
823
|
-
headers = {}
|
|
824
|
-
headers["X-Vitable-Organization"] = params[:vitable_organization] if params[:vitable_organization]
|
|
825
|
-
|
|
826
753
|
VitableConnect::Internal::OffsetItemIterator.new(
|
|
827
754
|
initial_page: query_params["page"],
|
|
828
755
|
item_field: :data,
|
|
@@ -834,7 +761,6 @@ module VitableConnect
|
|
|
834
761
|
base_url: request_options[:base_url],
|
|
835
762
|
method: "GET",
|
|
836
763
|
path: "v1/employers/#{URI.encode_uri_component(params[:employer_id].to_s)}/payroll-deduction-statements",
|
|
837
|
-
headers: headers,
|
|
838
764
|
query: query_params,
|
|
839
765
|
request_options: request_options
|
|
840
766
|
)
|
|
@@ -864,7 +790,6 @@ module VitableConnect
|
|
|
864
790
|
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
865
791
|
# @option request_options [Integer] :timeout_in_seconds
|
|
866
792
|
# @option params [VitableConnect::Types::EmployerID] :employer_id
|
|
867
|
-
# @option params [String, nil] :vitable_organization
|
|
868
793
|
#
|
|
869
794
|
# @example
|
|
870
795
|
# client.employers.ensure_payroll_integration_email(employer_id: "empr_abc123def456")
|
|
@@ -872,14 +797,10 @@ module VitableConnect
|
|
|
872
797
|
# @return [VitableConnect::Types::PayrollIntegrationEmailResponse]
|
|
873
798
|
def ensure_payroll_integration_email(request_options: {}, **params)
|
|
874
799
|
params = VitableConnect::Internal::Types::Utils.normalize_keys(params)
|
|
875
|
-
headers = {}
|
|
876
|
-
headers["X-Vitable-Organization"] = params[:vitable_organization] if params[:vitable_organization]
|
|
877
|
-
|
|
878
800
|
request = VitableConnect::Internal::JSON::Request.new(
|
|
879
801
|
base_url: request_options[:base_url],
|
|
880
802
|
method: "PUT",
|
|
881
803
|
path: "v1/employers/#{URI.encode_uri_component(params[:employer_id].to_s)}/payroll-integration-email",
|
|
882
|
-
headers: headers,
|
|
883
804
|
request_options: request_options
|
|
884
805
|
)
|
|
885
806
|
begin
|
|
@@ -907,7 +828,6 @@ module VitableConnect
|
|
|
907
828
|
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
908
829
|
# @option request_options [Integer] :timeout_in_seconds
|
|
909
830
|
# @option params [VitableConnect::Types::EmployerID] :employer_id
|
|
910
|
-
# @option params [String, nil] :vitable_organization
|
|
911
831
|
#
|
|
912
832
|
# @example
|
|
913
833
|
# client.employers.update_settings(
|
|
@@ -919,17 +839,13 @@ module VitableConnect
|
|
|
919
839
|
def update_settings(request_options: {}, **params)
|
|
920
840
|
params = VitableConnect::Internal::Types::Utils.normalize_keys(params)
|
|
921
841
|
request_data = VitableConnect::Employers::Types::UpdateEmployerSettingsRequest.new(params).to_h
|
|
922
|
-
non_body_param_names = %w[employer_id
|
|
842
|
+
non_body_param_names = %w[employer_id]
|
|
923
843
|
body = request_data.except(*non_body_param_names)
|
|
924
844
|
|
|
925
|
-
headers = {}
|
|
926
|
-
headers["X-Vitable-Organization"] = params[:vitable_organization] if params[:vitable_organization]
|
|
927
|
-
|
|
928
845
|
request = VitableConnect::Internal::JSON::Request.new(
|
|
929
846
|
base_url: request_options[:base_url],
|
|
930
847
|
method: "PUT",
|
|
931
848
|
path: "v1/employers/#{URI.encode_uri_component(params[:employer_id].to_s)}/settings",
|
|
932
|
-
headers: headers,
|
|
933
849
|
body: body,
|
|
934
850
|
request_options: request_options
|
|
935
851
|
)
|
|
@@ -952,28 +868,22 @@ module VitableConnect
|
|
|
952
868
|
# `provider_label`. The stored providers are free text, so they cannot be enumerated in advance.
|
|
953
869
|
#
|
|
954
870
|
# @param request_options [Hash]
|
|
955
|
-
# @param
|
|
871
|
+
# @param _params [Hash]
|
|
956
872
|
# @option request_options [String] :base_url
|
|
957
873
|
# @option request_options [Hash{String => Object}] :additional_headers
|
|
958
874
|
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
959
875
|
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
960
876
|
# @option request_options [Integer] :timeout_in_seconds
|
|
961
|
-
# @option params [String, nil] :vitable_organization
|
|
962
877
|
#
|
|
963
878
|
# @example
|
|
964
879
|
# client.employers.list_hris_providers
|
|
965
880
|
#
|
|
966
881
|
# @return [VitableConnect::Types::OrganizationHrisProvidersResponse]
|
|
967
|
-
def list_hris_providers(request_options: {}, **
|
|
968
|
-
params = VitableConnect::Internal::Types::Utils.normalize_keys(params)
|
|
969
|
-
headers = {}
|
|
970
|
-
headers["X-Vitable-Organization"] = params[:vitable_organization] if params[:vitable_organization]
|
|
971
|
-
|
|
882
|
+
def list_hris_providers(request_options: {}, **_params)
|
|
972
883
|
request = VitableConnect::Internal::JSON::Request.new(
|
|
973
884
|
base_url: request_options[:base_url],
|
|
974
885
|
method: "GET",
|
|
975
886
|
path: "v1/employers/hris-providers",
|
|
976
|
-
headers: headers,
|
|
977
887
|
request_options: request_options
|
|
978
888
|
)
|
|
979
889
|
begin
|
|
@@ -4,8 +4,6 @@ module VitableConnect
|
|
|
4
4
|
module Employers
|
|
5
5
|
module Types
|
|
6
6
|
class CreateEmployerRequest < Internal::Types::Model
|
|
7
|
-
field :vitable_organization, -> { String }, optional: true, nullable: false, api_name: "X-Vitable-Organization"
|
|
8
|
-
|
|
9
7
|
field :name, -> { String }, optional: false, nullable: false
|
|
10
8
|
|
|
11
9
|
field :legal_name, -> { String }, optional: false, nullable: false
|
data/lib/VitableConnect/employers/types/ensure_payroll_integration_email_employers_request.rb
CHANGED
|
@@ -5,8 +5,6 @@ module VitableConnect
|
|
|
5
5
|
module Types
|
|
6
6
|
class EnsurePayrollIntegrationEmailEmployersRequest < Internal::Types::Model
|
|
7
7
|
field :employer_id, -> { String }, optional: false, nullable: false
|
|
8
|
-
|
|
9
|
-
field :vitable_organization, -> { String }, optional: true, nullable: false, api_name: "X-Vitable-Organization"
|
|
10
8
|
end
|
|
11
9
|
end
|
|
12
10
|
end
|
|
@@ -7,8 +7,6 @@ module VitableConnect
|
|
|
7
7
|
field :employer_id, -> { String }, optional: false, nullable: false
|
|
8
8
|
|
|
9
9
|
field :benefit_plan_year_id, -> { String }, optional: false, nullable: false
|
|
10
|
-
|
|
11
|
-
field :vitable_organization, -> { String }, optional: true, nullable: false, api_name: "X-Vitable-Organization"
|
|
12
10
|
end
|
|
13
11
|
end
|
|
14
12
|
end
|
|
@@ -5,8 +5,6 @@ module VitableConnect
|
|
|
5
5
|
module Types
|
|
6
6
|
class GetEmployersRequest < Internal::Types::Model
|
|
7
7
|
field :employer_id, -> { String }, optional: false, nullable: false
|
|
8
|
-
|
|
9
|
-
field :vitable_organization, -> { String }, optional: true, nullable: false, api_name: "X-Vitable-Organization"
|
|
10
8
|
end
|
|
11
9
|
end
|
|
12
10
|
end
|
|
@@ -5,8 +5,6 @@ module VitableConnect
|
|
|
5
5
|
module Types
|
|
6
6
|
class GetHrisEmployersRequest < Internal::Types::Model
|
|
7
7
|
field :employer_id, -> { String }, optional: false, nullable: false
|
|
8
|
-
|
|
9
|
-
field :vitable_organization, -> { String }, optional: true, nullable: false, api_name: "X-Vitable-Organization"
|
|
10
8
|
end
|
|
11
9
|
end
|
|
12
10
|
end
|
|
@@ -7,8 +7,6 @@ module VitableConnect
|
|
|
7
7
|
field :employer_id, -> { String }, optional: false, nullable: false
|
|
8
8
|
|
|
9
9
|
field :invoice_id, -> { String }, optional: false, nullable: false
|
|
10
|
-
|
|
11
|
-
field :vitable_organization, -> { String }, optional: true, nullable: false, api_name: "X-Vitable-Organization"
|
|
12
10
|
end
|
|
13
11
|
end
|
|
14
12
|
end
|
|
@@ -5,8 +5,6 @@ module VitableConnect
|
|
|
5
5
|
module Types
|
|
6
6
|
class GetPayrollAccessSetupEmployersRequest < Internal::Types::Model
|
|
7
7
|
field :employer_id, -> { String }, optional: false, nullable: false
|
|
8
|
-
|
|
9
|
-
field :vitable_organization, -> { String }, optional: true, nullable: false, api_name: "X-Vitable-Organization"
|
|
10
8
|
end
|
|
11
9
|
end
|
|
12
10
|
end
|
data/lib/VitableConnect/employers/types/list_benefit_plan_year_enrollments_employers_request.rb
CHANGED
|
@@ -15,8 +15,6 @@ module VitableConnect
|
|
|
15
15
|
field :page, -> { Integer }, optional: true, nullable: false
|
|
16
16
|
|
|
17
17
|
field :search, -> { String }, optional: true, nullable: false
|
|
18
|
-
|
|
19
|
-
field :vitable_organization, -> { String }, optional: true, nullable: false, api_name: "X-Vitable-Organization"
|
|
20
18
|
end
|
|
21
19
|
end
|
|
22
20
|
end
|
|
@@ -5,8 +5,6 @@ module VitableConnect
|
|
|
5
5
|
module Types
|
|
6
6
|
class ListBenefitPlanYearsEmployersRequest < Internal::Types::Model
|
|
7
7
|
field :employer_id, -> { String }, optional: false, nullable: false
|
|
8
|
-
|
|
9
|
-
field :vitable_organization, -> { String }, optional: true, nullable: false, api_name: "X-Vitable-Organization"
|
|
10
8
|
end
|
|
11
9
|
end
|
|
12
10
|
end
|
|
@@ -13,8 +13,6 @@ module VitableConnect
|
|
|
13
13
|
field :page, -> { Integer }, optional: true, nullable: false
|
|
14
14
|
|
|
15
15
|
field :search, -> { String }, optional: true, nullable: false
|
|
16
|
-
|
|
17
|
-
field :vitable_organization, -> { String }, optional: true, nullable: false, api_name: "X-Vitable-Organization"
|
|
18
16
|
end
|
|
19
17
|
end
|
|
20
18
|
end
|
|
@@ -19,8 +19,6 @@ module VitableConnect
|
|
|
19
19
|
field :page, -> { Integer }, optional: true, nullable: false
|
|
20
20
|
|
|
21
21
|
field :search, -> { String }, optional: true, nullable: false
|
|
22
|
-
|
|
23
|
-
field :vitable_organization, -> { String }, optional: true, nullable: false, api_name: "X-Vitable-Organization"
|
|
24
22
|
end
|
|
25
23
|
end
|
|
26
24
|
end
|
|
@@ -9,8 +9,6 @@ module VitableConnect
|
|
|
9
9
|
field :limit, -> { Integer }, optional: true, nullable: false
|
|
10
10
|
|
|
11
11
|
field :offset, -> { String }, optional: true, nullable: false
|
|
12
|
-
|
|
13
|
-
field :vitable_organization, -> { String }, optional: true, nullable: false, api_name: "X-Vitable-Organization"
|
|
14
12
|
end
|
|
15
13
|
end
|
|
16
14
|
end
|
data/lib/VitableConnect/employers/types/list_payroll_deduction_statements_employers_request.rb
CHANGED
|
@@ -9,8 +9,6 @@ module VitableConnect
|
|
|
9
9
|
field :limit, -> { Integer }, optional: true, nullable: false
|
|
10
10
|
|
|
11
11
|
field :page, -> { Integer }, optional: true, nullable: false
|
|
12
|
-
|
|
13
|
-
field :vitable_organization, -> { String }, optional: true, nullable: false, api_name: "X-Vitable-Organization"
|
|
14
12
|
end
|
|
15
13
|
end
|
|
16
14
|
end
|
|
@@ -6,8 +6,6 @@ module VitableConnect
|
|
|
6
6
|
class SubmitPayrollAccessSetupRequest < Internal::Types::Model
|
|
7
7
|
field :employer_id, -> { String }, optional: false, nullable: false
|
|
8
8
|
|
|
9
|
-
field :vitable_organization, -> { String }, optional: true, nullable: false, api_name: "X-Vitable-Organization"
|
|
10
|
-
|
|
11
9
|
field :employees_in_payroll_acknowledged, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
12
10
|
|
|
13
11
|
field :payroll_data_impacts_eligibility_acknowledged, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
@@ -6,8 +6,6 @@ module VitableConnect
|
|
|
6
6
|
class UpdateEmployerRequest < Internal::Types::Model
|
|
7
7
|
field :employer_id, -> { String }, optional: false, nullable: false
|
|
8
8
|
|
|
9
|
-
field :vitable_organization, -> { String }, optional: true, nullable: false, api_name: "X-Vitable-Organization"
|
|
10
|
-
|
|
11
9
|
field :name, -> { String }, optional: true, nullable: false
|
|
12
10
|
|
|
13
11
|
field :legal_name, -> { String }, optional: true, nullable: false
|
|
@@ -6,8 +6,6 @@ module VitableConnect
|
|
|
6
6
|
class UpdateEmployerSettingsRequest < Internal::Types::Model
|
|
7
7
|
field :employer_id, -> { String }, optional: false, nullable: false
|
|
8
8
|
|
|
9
|
-
field :vitable_organization, -> { String }, optional: true, nullable: false, api_name: "X-Vitable-Organization"
|
|
10
|
-
|
|
11
9
|
field :pay_frequency, -> { VitableConnect::Types::DeductionFrequency }, optional: false, nullable: false
|
|
12
10
|
end
|
|
13
11
|
end
|