finch-api 0.1.0.pre.alpha.59 → 0.1.0.pre.alpha.61
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 +25 -0
- data/README.md +1 -1
- data/lib/finch_api/models/access_token_create_params.rb +8 -2
- data/lib/finch_api/models/account_update_event.rb +328 -8
- data/lib/finch_api/models/connect/session_new_params.rb +4 -2
- data/lib/finch_api/models/connect/session_reauthenticate_params.rb +4 -2
- data/lib/finch_api/models/hris/benefit_create_params.rb +3 -1
- data/lib/finch_api/models/hris/benefit_list_params.rb +3 -1
- data/lib/finch_api/models/hris/benefit_list_supported_benefits_params.rb +3 -1
- data/lib/finch_api/models/hris/benefit_register_params.rb +3 -1
- data/lib/finch_api/models/hris/benefit_retrieve_params.rb +3 -1
- data/lib/finch_api/models/hris/benefit_update_params.rb +3 -1
- data/lib/finch_api/models/hris/benefits/individual_enroll_many_params.rb +3 -1
- data/lib/finch_api/models/hris/benefits/individual_enrolled_ids_params.rb +3 -1
- data/lib/finch_api/models/hris/benefits/individual_retrieve_many_benefits_params.rb +3 -1
- data/lib/finch_api/models/hris/benefits/individual_unenroll_many_params.rb +3 -1
- data/lib/finch_api/models/hris/company_retrieve_params.rb +3 -1
- data/lib/finch_api/models/hris/directory_list_individuals_params.rb +3 -1
- data/lib/finch_api/models/hris/directory_list_params.rb +3 -1
- data/lib/finch_api/models/hris/document_list_params.rb +3 -1
- data/lib/finch_api/models/hris/document_retreive_params.rb +3 -1
- data/lib/finch_api/models/hris/employment_data.rb +11 -1
- data/lib/finch_api/models/hris/employment_retrieve_many_params.rb +3 -1
- data/lib/finch_api/models/hris/individual_retrieve_many_params.rb +3 -1
- data/lib/finch_api/models/hris/pay_statement_item/rule_create_params.rb +3 -1
- data/lib/finch_api/models/hris/pay_statement_item/rule_delete_params.rb +3 -1
- data/lib/finch_api/models/hris/pay_statement_item/rule_list_params.rb +3 -1
- data/lib/finch_api/models/hris/pay_statement_item/rule_update_params.rb +3 -1
- data/lib/finch_api/models/hris/pay_statement_item_list_params.rb +3 -1
- data/lib/finch_api/models/hris/pay_statement_retrieve_many_params.rb +3 -1
- data/lib/finch_api/models/hris/payment_list_params.rb +3 -1
- data/lib/finch_api/models/payroll/pay_group_list_params.rb +3 -1
- data/lib/finch_api/models/payroll/pay_group_retrieve_params.rb +3 -1
- data/lib/finch_api/models/provider.rb +1371 -4
- data/lib/finch_api/models/provider_list_response.rb +1387 -4
- data/lib/finch_api/models/sandbox/directory_create_params.rb +11 -1
- data/lib/finch_api/models/sandbox/employment_update_params.rb +11 -1
- data/lib/finch_api/models/sandbox/employment_update_response.rb +11 -1
- data/lib/finch_api/resources/access_tokens.rb +4 -1
- data/lib/finch_api/resources/connect/sessions.rb +2 -2
- data/lib/finch_api/resources/sandbox/employment.rb +3 -1
- data/lib/finch_api/version.rb +1 -1
- data/rbi/finch_api/models/access_token_create_params.rbi +8 -2
- data/rbi/finch_api/models/account_update_event.rbi +738 -15
- data/rbi/finch_api/models/connect/session_new_params.rbi +6 -2
- data/rbi/finch_api/models/connect/session_reauthenticate_params.rbi +6 -2
- data/rbi/finch_api/models/hris/benefit_create_params.rbi +6 -2
- data/rbi/finch_api/models/hris/benefit_list_params.rbi +6 -2
- data/rbi/finch_api/models/hris/benefit_list_supported_benefits_params.rbi +6 -2
- data/rbi/finch_api/models/hris/benefit_register_params.rbi +6 -2
- data/rbi/finch_api/models/hris/benefit_retrieve_params.rbi +6 -2
- data/rbi/finch_api/models/hris/benefit_update_params.rbi +6 -2
- data/rbi/finch_api/models/hris/benefits/individual_enroll_many_params.rbi +6 -2
- data/rbi/finch_api/models/hris/benefits/individual_enrolled_ids_params.rbi +6 -2
- data/rbi/finch_api/models/hris/benefits/individual_retrieve_many_benefits_params.rbi +6 -2
- data/rbi/finch_api/models/hris/benefits/individual_unenroll_many_params.rbi +6 -2
- data/rbi/finch_api/models/hris/company_retrieve_params.rbi +6 -2
- data/rbi/finch_api/models/hris/directory_list_individuals_params.rbi +6 -2
- data/rbi/finch_api/models/hris/directory_list_params.rbi +6 -2
- data/rbi/finch_api/models/hris/document_list_params.rbi +6 -2
- data/rbi/finch_api/models/hris/document_retreive_params.rbi +6 -2
- data/rbi/finch_api/models/hris/employment_data.rbi +12 -0
- data/rbi/finch_api/models/hris/employment_retrieve_many_params.rbi +6 -2
- data/rbi/finch_api/models/hris/individual_retrieve_many_params.rbi +6 -2
- data/rbi/finch_api/models/hris/pay_statement_item/rule_create_params.rbi +6 -2
- data/rbi/finch_api/models/hris/pay_statement_item/rule_delete_params.rbi +6 -2
- data/rbi/finch_api/models/hris/pay_statement_item/rule_list_params.rbi +6 -2
- data/rbi/finch_api/models/hris/pay_statement_item/rule_update_params.rbi +6 -2
- data/rbi/finch_api/models/hris/pay_statement_item_list_params.rbi +6 -2
- data/rbi/finch_api/models/hris/pay_statement_retrieve_many_params.rbi +6 -2
- data/rbi/finch_api/models/hris/payment_list_params.rbi +6 -2
- data/rbi/finch_api/models/payroll/pay_group_list_params.rbi +6 -2
- data/rbi/finch_api/models/payroll/pay_group_retrieve_params.rbi +6 -2
- data/rbi/finch_api/models/provider.rbi +3137 -6
- data/rbi/finch_api/models/provider_list_response.rbi +3139 -6
- data/rbi/finch_api/models/sandbox/directory_create_params.rbi +12 -0
- data/rbi/finch_api/models/sandbox/employment_update_params.rbi +12 -0
- data/rbi/finch_api/models/sandbox/employment_update_response.rbi +12 -0
- data/rbi/finch_api/resources/access_tokens.rbi +4 -1
- data/rbi/finch_api/resources/connect/sessions.rbi +6 -2
- data/rbi/finch_api/resources/hris/benefits/individuals.rbi +12 -4
- data/rbi/finch_api/resources/hris/benefits.rbi +18 -6
- data/rbi/finch_api/resources/hris/company.rbi +3 -1
- data/rbi/finch_api/resources/hris/directory.rbi +3 -1
- data/rbi/finch_api/resources/hris/documents.rbi +6 -2
- data/rbi/finch_api/resources/hris/employments.rbi +3 -1
- data/rbi/finch_api/resources/hris/individuals.rbi +3 -1
- data/rbi/finch_api/resources/hris/pay_statement_item/rules.rbi +12 -4
- data/rbi/finch_api/resources/hris/pay_statement_item.rbi +3 -1
- data/rbi/finch_api/resources/hris/pay_statements.rbi +3 -1
- data/rbi/finch_api/resources/hris/payments.rbi +3 -1
- data/rbi/finch_api/resources/payroll/pay_groups.rbi +6 -2
- data/rbi/finch_api/resources/sandbox/employment.rbi +5 -0
- data/sig/finch_api/models/account_update_event.rbs +405 -17
- data/sig/finch_api/models/hris/employment_data.rbs +5 -0
- data/sig/finch_api/models/provider.rbs +1722 -6
- data/sig/finch_api/models/provider_list_response.rbs +1722 -6
- data/sig/finch_api/models/sandbox/directory_create_params.rbs +5 -0
- data/sig/finch_api/models/sandbox/employment_update_params.rbs +5 -0
- data/sig/finch_api/models/sandbox/employment_update_response.rbs +5 -0
- data/sig/finch_api/resources/sandbox/employment.rbs +1 -0
- metadata +2 -2
|
@@ -24,6 +24,14 @@ module FinchAPI
|
|
|
24
24
|
# @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}]
|
|
25
25
|
|
|
26
26
|
class Body < FinchAPI::Internal::Type::BaseModel
|
|
27
|
+
# @!attribute benefit_eligibility_class
|
|
28
|
+
# The employer defined benefit eligibility class that groups an employee into a
|
|
29
|
+
# set of eligible benefit plans, as stored by the provider. Null when not
|
|
30
|
+
# configured.
|
|
31
|
+
#
|
|
32
|
+
# @return [String, nil]
|
|
33
|
+
optional :benefit_eligibility_class, String, nil?: true
|
|
34
|
+
|
|
27
35
|
# @!attribute class_code
|
|
28
36
|
# Worker's compensation classification code for this employee
|
|
29
37
|
#
|
|
@@ -255,10 +263,12 @@ module FinchAPI
|
|
|
255
263
|
# @return [String, nil]
|
|
256
264
|
optional :union_local, String, nil?: true
|
|
257
265
|
|
|
258
|
-
# @!method initialize(class_code: nil, custom_fields: nil, department: nil, dob: nil, emails: nil, employment: nil, employment_status: nil, encrypted_ssn: nil, end_date: nil, ethnicity: nil, first_name: nil, flsa_status: nil, gender: nil, highly_compensated_employee: nil, income: nil, income_history: nil, is_active: nil, key_employee: nil, last_name: nil, latest_rehire_date: nil, location: nil, manager: nil, marital_status: nil, middle_name: nil, phone_numbers: nil, preferred_name: nil, residence: nil, source_id: nil, ssn: nil, start_date: nil, title: nil, union_code: nil, union_local: nil)
|
|
266
|
+
# @!method initialize(benefit_eligibility_class: nil, class_code: nil, custom_fields: nil, department: nil, dob: nil, emails: nil, employment: nil, employment_status: nil, encrypted_ssn: nil, end_date: nil, ethnicity: nil, first_name: nil, flsa_status: nil, gender: nil, highly_compensated_employee: nil, income: nil, income_history: nil, is_active: nil, key_employee: nil, last_name: nil, latest_rehire_date: nil, location: nil, manager: nil, marital_status: nil, middle_name: nil, phone_numbers: nil, preferred_name: nil, residence: nil, source_id: nil, ssn: nil, start_date: nil, title: nil, union_code: nil, union_local: nil)
|
|
259
267
|
# Some parameter documentations has been truncated, see
|
|
260
268
|
# {FinchAPI::Models::Sandbox::DirectoryCreateParams::Body} for more details.
|
|
261
269
|
#
|
|
270
|
+
# @param benefit_eligibility_class [String, nil] The employer defined benefit eligibility class that groups an employee into a se
|
|
271
|
+
#
|
|
262
272
|
# @param class_code [String, nil] Worker's compensation classification code for this employee
|
|
263
273
|
#
|
|
264
274
|
# @param custom_fields [Array<FinchAPI::Models::Sandbox::DirectoryCreateParams::Body::CustomField>, nil] Custom fields for the individual. These are fields which are defined by the empl
|
|
@@ -13,6 +13,14 @@ module FinchAPI
|
|
|
13
13
|
# @return [String]
|
|
14
14
|
required :individual_id, String
|
|
15
15
|
|
|
16
|
+
# @!attribute benefit_eligibility_class
|
|
17
|
+
# The employer defined benefit eligibility class that groups an employee into a
|
|
18
|
+
# set of eligible benefit plans, as stored by the provider. Null when not
|
|
19
|
+
# configured.
|
|
20
|
+
#
|
|
21
|
+
# @return [String, nil]
|
|
22
|
+
optional :benefit_eligibility_class, String, nil?: true
|
|
23
|
+
|
|
16
24
|
# @!attribute class_code
|
|
17
25
|
# Worker's compensation classification code for this employee
|
|
18
26
|
#
|
|
@@ -163,12 +171,14 @@ module FinchAPI
|
|
|
163
171
|
# @return [String, nil]
|
|
164
172
|
optional :union_local, String, nil?: true
|
|
165
173
|
|
|
166
|
-
# @!method initialize(individual_id:, class_code: nil, custom_fields: nil, department: nil, employment: nil, employment_status: nil, end_date: nil, first_name: nil, flsa_status: nil, highly_compensated_employee: nil, income: nil, income_history: nil, is_active: nil, key_employee: nil, last_name: nil, latest_rehire_date: nil, location: nil, manager: nil, middle_name: nil, source_id: nil, start_date: nil, title: nil, union_code: nil, union_local: nil, request_options: {})
|
|
174
|
+
# @!method initialize(individual_id:, benefit_eligibility_class: nil, class_code: nil, custom_fields: nil, department: nil, employment: nil, employment_status: nil, end_date: nil, first_name: nil, flsa_status: nil, highly_compensated_employee: nil, income: nil, income_history: nil, is_active: nil, key_employee: nil, last_name: nil, latest_rehire_date: nil, location: nil, manager: nil, middle_name: nil, source_id: nil, start_date: nil, title: nil, union_code: nil, union_local: nil, request_options: {})
|
|
167
175
|
# Some parameter documentations has been truncated, see
|
|
168
176
|
# {FinchAPI::Models::Sandbox::EmploymentUpdateParams} for more details.
|
|
169
177
|
#
|
|
170
178
|
# @param individual_id [String]
|
|
171
179
|
#
|
|
180
|
+
# @param benefit_eligibility_class [String, nil] The employer defined benefit eligibility class that groups an employee into a se
|
|
181
|
+
#
|
|
172
182
|
# @param class_code [String, nil] Worker's compensation classification code for this employee
|
|
173
183
|
#
|
|
174
184
|
# @param custom_fields [Array<FinchAPI::Models::Sandbox::EmploymentUpdateParams::CustomField>, nil] Custom fields for the individual. These are fields which are defined by the empl
|
|
@@ -11,6 +11,14 @@ module FinchAPI
|
|
|
11
11
|
# @return [String, nil]
|
|
12
12
|
optional :id, String
|
|
13
13
|
|
|
14
|
+
# @!attribute benefit_eligibility_class
|
|
15
|
+
# The employer defined benefit eligibility class that groups an employee into a
|
|
16
|
+
# set of eligible benefit plans, as stored by the provider. Null when not
|
|
17
|
+
# configured.
|
|
18
|
+
#
|
|
19
|
+
# @return [String, nil]
|
|
20
|
+
optional :benefit_eligibility_class, String, nil?: true
|
|
21
|
+
|
|
14
22
|
# @!attribute class_code
|
|
15
23
|
# Worker's compensation classification code for this employee
|
|
16
24
|
#
|
|
@@ -161,12 +169,14 @@ module FinchAPI
|
|
|
161
169
|
# @return [String, nil]
|
|
162
170
|
optional :union_local, String, nil?: true
|
|
163
171
|
|
|
164
|
-
# @!method initialize(id: nil, class_code: nil, custom_fields: nil, department: nil, employment: nil, employment_status: nil, end_date: nil, first_name: nil, flsa_status: nil, highly_compensated_employee: nil, income: nil, income_history: nil, is_active: nil, key_employee: nil, last_name: nil, latest_rehire_date: nil, location: nil, manager: nil, middle_name: nil, source_id: nil, start_date: nil, title: nil, union_code: nil, union_local: nil)
|
|
172
|
+
# @!method initialize(id: nil, benefit_eligibility_class: nil, class_code: nil, custom_fields: nil, department: nil, employment: nil, employment_status: nil, end_date: nil, first_name: nil, flsa_status: nil, highly_compensated_employee: nil, income: nil, income_history: nil, is_active: nil, key_employee: nil, last_name: nil, latest_rehire_date: nil, location: nil, manager: nil, middle_name: nil, source_id: nil, start_date: nil, title: nil, union_code: nil, union_local: nil)
|
|
165
173
|
# Some parameter documentations has been truncated, see
|
|
166
174
|
# {FinchAPI::Models::Sandbox::EmploymentUpdateResponse} for more details.
|
|
167
175
|
#
|
|
168
176
|
# @param id [String] A stable Finch `id` (UUID v4) for an individual in the company.
|
|
169
177
|
#
|
|
178
|
+
# @param benefit_eligibility_class [String, nil] The employer defined benefit eligibility class that groups an employee into a se
|
|
179
|
+
#
|
|
170
180
|
# @param class_code [String, nil] Worker's compensation classification code for this employee
|
|
171
181
|
#
|
|
172
182
|
# @param custom_fields [Array<FinchAPI::Models::Sandbox::EmploymentUpdateResponse::CustomField>, nil] Custom fields for the individual. These are fields which are defined by the empl
|
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
module FinchAPI
|
|
4
4
|
module Resources
|
|
5
5
|
class AccessTokens
|
|
6
|
+
# Some parameter documentations has been truncated, see
|
|
7
|
+
# {FinchAPI::Models::AccessTokenCreateParams} for more details.
|
|
8
|
+
#
|
|
6
9
|
# Exchange the authorization code for an access token
|
|
7
10
|
#
|
|
8
11
|
# @overload create(code:, client_id: nil, client_secret: nil, redirect_uri: nil, request_options: {})
|
|
@@ -13,7 +16,7 @@ module FinchAPI
|
|
|
13
16
|
#
|
|
14
17
|
# @param client_secret [String] The client secret for your application
|
|
15
18
|
#
|
|
16
|
-
# @param redirect_uri [String] The redirect URI used
|
|
19
|
+
# @param redirect_uri [String] The redirect URI used when creating the Connect session. Required if the authori
|
|
17
20
|
#
|
|
18
21
|
# @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
19
22
|
#
|
|
@@ -27,7 +27,7 @@ module FinchAPI
|
|
|
27
27
|
#
|
|
28
28
|
# @param recordkeeping [FinchAPI::Models::Connect::SessionNewParams::Recordkeeping, nil] Optional recordkeeping configuration. Can only be provided when the `recordkeepi
|
|
29
29
|
#
|
|
30
|
-
# @param redirect_uri [String, nil] The URI to redirect to after the Connect flow is completed
|
|
30
|
+
# @param redirect_uri [String, nil] The URI to redirect to after the Connect flow is completed. Required if you use
|
|
31
31
|
#
|
|
32
32
|
# @param sandbox [Symbol, FinchAPI::Models::Connect::SessionNewParams::Sandbox, nil] Sandbox mode for testing
|
|
33
33
|
#
|
|
@@ -61,7 +61,7 @@ module FinchAPI
|
|
|
61
61
|
#
|
|
62
62
|
# @param products [Array<Symbol, FinchAPI::Models::Connect::SessionReauthenticateParams::Product>, nil] The products to request access to (optional for reauthentication). Use `benefits
|
|
63
63
|
#
|
|
64
|
-
# @param redirect_uri [String, nil] The URI to redirect to after the Connect flow is completed
|
|
64
|
+
# @param redirect_uri [String, nil] The URI to redirect to after the Connect flow is completed. Required if you use
|
|
65
65
|
#
|
|
66
66
|
# @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
67
67
|
#
|
|
@@ -9,10 +9,12 @@ module FinchAPI
|
|
|
9
9
|
#
|
|
10
10
|
# Update sandbox employment
|
|
11
11
|
#
|
|
12
|
-
# @overload update(individual_id, class_code: nil, custom_fields: nil, department: nil, employment: nil, employment_status: nil, end_date: nil, first_name: nil, flsa_status: nil, highly_compensated_employee: nil, income: nil, income_history: nil, is_active: nil, key_employee: nil, last_name: nil, latest_rehire_date: nil, location: nil, manager: nil, middle_name: nil, source_id: nil, start_date: nil, title: nil, union_code: nil, union_local: nil, request_options: {})
|
|
12
|
+
# @overload update(individual_id, benefit_eligibility_class: nil, class_code: nil, custom_fields: nil, department: nil, employment: nil, employment_status: nil, end_date: nil, first_name: nil, flsa_status: nil, highly_compensated_employee: nil, income: nil, income_history: nil, is_active: nil, key_employee: nil, last_name: nil, latest_rehire_date: nil, location: nil, manager: nil, middle_name: nil, source_id: nil, start_date: nil, title: nil, union_code: nil, union_local: nil, request_options: {})
|
|
13
13
|
#
|
|
14
14
|
# @param individual_id [String]
|
|
15
15
|
#
|
|
16
|
+
# @param benefit_eligibility_class [String, nil] The employer defined benefit eligibility class that groups an employee into a se
|
|
17
|
+
#
|
|
16
18
|
# @param class_code [String, nil] Worker's compensation classification code for this employee
|
|
17
19
|
#
|
|
18
20
|
# @param custom_fields [Array<FinchAPI::Models::Sandbox::EmploymentUpdateParams::CustomField>, nil] Custom fields for the individual. These are fields which are defined by the empl
|
data/lib/finch_api/version.rb
CHANGED
|
@@ -29,7 +29,10 @@ module FinchAPI
|
|
|
29
29
|
sig { params(client_secret: String).void }
|
|
30
30
|
attr_writer :client_secret
|
|
31
31
|
|
|
32
|
-
# The redirect URI used
|
|
32
|
+
# The redirect URI used when creating the Connect session. Required if the
|
|
33
|
+
# authorization code came from the redirect flow, and it must match the
|
|
34
|
+
# `redirect_uri` used to create the session. Omit it if the code came from the
|
|
35
|
+
# embedded flow (Connect SDK).
|
|
33
36
|
sig { returns(T.nilable(String)) }
|
|
34
37
|
attr_reader :redirect_uri
|
|
35
38
|
|
|
@@ -52,7 +55,10 @@ module FinchAPI
|
|
|
52
55
|
client_id: nil,
|
|
53
56
|
# The client secret for your application
|
|
54
57
|
client_secret: nil,
|
|
55
|
-
# The redirect URI used
|
|
58
|
+
# The redirect URI used when creating the Connect session. Required if the
|
|
59
|
+
# authorization code came from the redirect flow, and it must match the
|
|
60
|
+
# `redirect_uri` used to create the session. Omit it if the code came from the
|
|
61
|
+
# embedded flow (Connect SDK).
|
|
56
62
|
redirect_uri: nil,
|
|
57
63
|
request_options: {}
|
|
58
64
|
)
|