finch-api 0.1.0.pre.alpha.29 → 0.1.0.pre.alpha.31
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 +49 -0
- data/README.md +1 -1
- data/lib/finch_api/errors.rb +25 -11
- data/lib/finch_api/file_part.rb +10 -7
- data/lib/finch_api/internal/individuals_page.rb +1 -1
- data/lib/finch_api/internal/page.rb +1 -1
- data/lib/finch_api/internal/responses_page.rb +1 -1
- data/lib/finch_api/internal/single_page.rb +1 -1
- data/lib/finch_api/internal/transport/base_client.rb +11 -7
- data/lib/finch_api/internal/transport/pooled_net_requester.rb +34 -31
- data/lib/finch_api/internal/type/base_page.rb +1 -1
- data/lib/finch_api/internal/type/file_input.rb +7 -4
- data/lib/finch_api/internal/util.rb +8 -7
- data/lib/finch_api/models/access_token_create_params.rb +13 -13
- data/lib/finch_api/models/connect/session_new_params.rb +66 -50
- data/lib/finch_api/models/connect/session_reauthenticate_params.rb +10 -10
- data/lib/finch_api/models/create_access_token_response.rb +9 -1
- data/lib/finch_api/models/hris/benefit_contribution.rb +124 -29
- data/lib/finch_api/models/hris/benefit_create_params.rb +9 -1
- data/lib/finch_api/models/hris/benefit_list_params.rb +9 -1
- data/lib/finch_api/models/hris/benefit_list_supported_benefits_params.rb +9 -1
- data/lib/finch_api/models/hris/benefit_retrieve_params.rb +9 -1
- data/lib/finch_api/models/hris/benefit_update_params.rb +9 -1
- data/lib/finch_api/models/hris/benefits/individual_benefit.rb +222 -6
- data/lib/finch_api/models/hris/benefits/individual_enroll_many_params.rb +40 -2
- data/lib/finch_api/models/hris/benefits/individual_enrolled_ids_params.rb +9 -1
- data/lib/finch_api/models/hris/benefits/individual_retrieve_many_benefits_params.rb +9 -1
- data/lib/finch_api/models/hris/benefits/individual_unenroll_many_params.rb +9 -1
- data/lib/finch_api/models/hris/company/pay_statement_item/rule_create_params.rb +9 -1
- data/lib/finch_api/models/hris/company/pay_statement_item/rule_delete_params.rb +9 -1
- data/lib/finch_api/models/hris/company/pay_statement_item/rule_list_params.rb +9 -1
- data/lib/finch_api/models/hris/company/pay_statement_item/rule_update_params.rb +10 -1
- data/lib/finch_api/models/hris/company/pay_statement_item_list_params.rb +9 -1
- data/lib/finch_api/models/hris/company_retrieve_params.rb +9 -1
- data/lib/finch_api/models/hris/directory_list_individuals_params.rb +9 -1
- data/lib/finch_api/models/hris/directory_list_params.rb +9 -1
- data/lib/finch_api/models/hris/document_list_params.rb +9 -1
- data/lib/finch_api/models/hris/document_response.rb +11 -11
- data/lib/finch_api/models/hris/document_retreive_params.rb +9 -1
- data/lib/finch_api/models/hris/employment_retrieve_many_params.rb +9 -1
- data/lib/finch_api/models/hris/individual_retrieve_many_params.rb +11 -1
- data/lib/finch_api/models/hris/pay_statement.rb +53 -103
- data/lib/finch_api/models/hris/pay_statement_retrieve_many_params.rb +9 -1
- data/lib/finch_api/models/hris/payment_list_params.rb +9 -1
- data/lib/finch_api/models/hris/supported_benefit.rb +1 -0
- data/lib/finch_api/models/hris/w42005.rb +20 -20
- data/lib/finch_api/models/hris/w42020.rb +30 -30
- data/lib/finch_api/models/introspection.rb +38 -23
- data/lib/finch_api/models/jobs/automated_list_params.rb +1 -14
- data/lib/finch_api/models/jobs/automated_retrieve_params.rb +1 -14
- data/lib/finch_api/models/jobs/manual_retrieve_params.rb +1 -14
- data/lib/finch_api/models/payroll/pay_group_list_params.rb +11 -1
- data/lib/finch_api/models/payroll/pay_group_retrieve_params.rb +9 -1
- data/lib/finch_api/models/provider.rb +42 -1092
- data/lib/finch_api/models/provider_list_response.rb +143 -0
- data/lib/finch_api/models/request_forwarding_forward_params.rb +10 -6
- data/lib/finch_api/models/request_forwarding_forward_response.rb +69 -48
- data/lib/finch_api/resources/access_tokens.rb +3 -3
- data/lib/finch_api/resources/connect/sessions.rb +12 -12
- data/lib/finch_api/resources/hris/benefits/individuals.rb +24 -10
- data/lib/finch_api/resources/hris/benefits.rb +37 -16
- data/lib/finch_api/resources/hris/company/pay_statement_item/rules.rb +38 -15
- data/lib/finch_api/resources/hris/company/pay_statement_item.rb +3 -1
- data/lib/finch_api/resources/hris/company.rb +6 -2
- data/lib/finch_api/resources/hris/directory.rb +3 -1
- data/lib/finch_api/resources/hris/documents.rb +9 -3
- data/lib/finch_api/resources/hris/employments.rb +7 -3
- data/lib/finch_api/resources/hris/individuals.rb +10 -4
- data/lib/finch_api/resources/hris/pay_statements.rb +7 -3
- data/lib/finch_api/resources/hris/payments.rb +3 -1
- data/lib/finch_api/resources/jobs/automated.rb +3 -16
- data/lib/finch_api/resources/jobs/manual.rb +2 -10
- data/lib/finch_api/resources/payroll/pay_groups.rb +12 -3
- data/lib/finch_api/resources/providers.rb +2 -2
- data/lib/finch_api/resources/request_forwarding.rb +2 -2
- data/lib/finch_api/version.rb +1 -1
- data/lib/finch_api.rb +1 -0
- data/rbi/finch_api/errors.rbi +29 -2
- data/rbi/finch_api/file_part.rbi +1 -1
- data/rbi/finch_api/internal/transport/base_client.rbi +4 -5
- data/rbi/finch_api/internal/type/base_page.rbi +1 -1
- data/rbi/finch_api/internal/util.rbi +1 -1
- data/rbi/finch_api/models/access_token_create_params.rbi +19 -13
- data/rbi/finch_api/models/connect/session_new_params.rbi +124 -98
- data/rbi/finch_api/models/connect/session_reauthenticate_params.rbi +23 -23
- data/rbi/finch_api/models/create_access_token_response.rbi +8 -0
- data/rbi/finch_api/models/hris/benefit_contribution.rbi +270 -52
- data/rbi/finch_api/models/hris/benefit_create_params.rbi +11 -0
- data/rbi/finch_api/models/hris/benefit_list_params.rbi +24 -5
- data/rbi/finch_api/models/hris/benefit_list_supported_benefits_params.rbi +24 -5
- data/rbi/finch_api/models/hris/benefit_retrieve_params.rbi +24 -5
- data/rbi/finch_api/models/hris/benefit_update_params.rbi +15 -1
- data/rbi/finch_api/models/hris/benefits/individual_benefit.rbi +515 -20
- data/rbi/finch_api/models/hris/benefits/individual_enroll_many_params.rbi +87 -0
- data/rbi/finch_api/models/hris/benefits/individual_enrolled_ids_params.rbi +22 -5
- data/rbi/finch_api/models/hris/benefits/individual_retrieve_many_benefits_params.rbi +11 -0
- data/rbi/finch_api/models/hris/benefits/individual_unenroll_many_params.rbi +11 -0
- data/rbi/finch_api/models/hris/company/pay_statement_item/rule_create_params.rbi +11 -0
- data/rbi/finch_api/models/hris/company/pay_statement_item/rule_delete_params.rbi +22 -5
- data/rbi/finch_api/models/hris/company/pay_statement_item/rule_list_params.rbi +22 -5
- data/rbi/finch_api/models/hris/company/pay_statement_item/rule_update_params.rbi +15 -1
- data/rbi/finch_api/models/hris/company/pay_statement_item_list_params.rbi +11 -0
- data/rbi/finch_api/models/hris/company_retrieve_params.rbi +24 -5
- data/rbi/finch_api/models/hris/directory_list_individuals_params.rbi +11 -0
- data/rbi/finch_api/models/hris/directory_list_params.rbi +11 -0
- data/rbi/finch_api/models/hris/document_list_params.rbi +11 -0
- data/rbi/finch_api/models/hris/document_response.rbi +14 -29
- data/rbi/finch_api/models/hris/document_retreive_params.rbi +24 -5
- data/rbi/finch_api/models/hris/employment_retrieve_many_params.rbi +11 -0
- data/rbi/finch_api/models/hris/individual_retrieve_many_params.rbi +16 -1
- data/rbi/finch_api/models/hris/pay_statement.rbi +69 -272
- data/rbi/finch_api/models/hris/pay_statement_retrieve_many_params.rbi +11 -0
- data/rbi/finch_api/models/hris/payment_list_params.rbi +11 -0
- data/rbi/finch_api/models/hris/supported_benefit.rbi +5 -0
- data/rbi/finch_api/models/hris/w42005.rbi +28 -38
- data/rbi/finch_api/models/hris/w42020.rbi +37 -43
- data/rbi/finch_api/models/introspection.rbi +57 -33
- data/rbi/finch_api/models/jobs/automated_list_params.rbi +0 -15
- data/rbi/finch_api/models/jobs/automated_retrieve_params.rbi +5 -25
- data/rbi/finch_api/models/jobs/manual_retrieve_params.rbi +5 -25
- data/rbi/finch_api/models/payroll/pay_group_list_params.rbi +11 -0
- data/rbi/finch_api/models/payroll/pay_group_retrieve_params.rbi +24 -5
- data/rbi/finch_api/models/provider.rbi +75 -2507
- data/rbi/finch_api/models/provider_list_response.rbi +280 -0
- data/rbi/finch_api/models/request_forwarding_forward_params.rbi +6 -6
- data/rbi/finch_api/models/request_forwarding_forward_response.rbi +93 -60
- data/rbi/finch_api/resources/access_tokens.rbi +5 -5
- data/rbi/finch_api/resources/connect/sessions.rbi +22 -14
- data/rbi/finch_api/resources/hris/benefits/individuals.rbi +20 -3
- data/rbi/finch_api/resources/hris/benefits.rbi +39 -12
- data/rbi/finch_api/resources/hris/company/pay_statement_item/rules.rbi +35 -8
- data/rbi/finch_api/resources/hris/company/pay_statement_item.rbi +3 -0
- data/rbi/finch_api/resources/hris/company.rbi +9 -4
- data/rbi/finch_api/resources/hris/directory.rbi +3 -0
- data/rbi/finch_api/resources/hris/documents.rbi +6 -0
- data/rbi/finch_api/resources/hris/employments.rbi +4 -1
- data/rbi/finch_api/resources/hris/individuals.rbi +10 -1
- data/rbi/finch_api/resources/hris/pay_statements.rbi +4 -1
- data/rbi/finch_api/resources/hris/payments.rbi +3 -0
- data/rbi/finch_api/resources/jobs/automated.rbi +1 -14
- data/rbi/finch_api/resources/jobs/manual.rbi +1 -9
- data/rbi/finch_api/resources/payroll/pay_groups.rbi +15 -2
- data/rbi/finch_api/resources/providers.rbi +1 -1
- data/rbi/finch_api/resources/request_forwarding.rbi +2 -2
- data/sig/finch_api/errors.rbs +7 -0
- data/sig/finch_api/file_part.rbs +1 -1
- data/sig/finch_api/models/access_token_create_params.rbs +11 -7
- data/sig/finch_api/models/connect/session_new_params.rbs +45 -45
- data/sig/finch_api/models/connect/session_reauthenticate_params.rbs +15 -15
- data/sig/finch_api/models/create_access_token_response.rbs +5 -0
- data/sig/finch_api/models/hris/benefit_contribution.rbs +107 -21
- data/sig/finch_api/models/hris/benefit_create_params.rbs +7 -0
- data/sig/finch_api/models/hris/benefit_list_params.rbs +14 -3
- data/sig/finch_api/models/hris/benefit_list_supported_benefits_params.rbs +14 -3
- data/sig/finch_api/models/hris/benefit_retrieve_params.rbs +14 -3
- data/sig/finch_api/models/hris/benefit_update_params.rbs +8 -1
- data/sig/finch_api/models/hris/benefits/individual_benefit.rbs +201 -8
- data/sig/finch_api/models/hris/benefits/individual_enroll_many_params.rbs +30 -1
- data/sig/finch_api/models/hris/benefits/individual_enrolled_ids_params.rbs +14 -3
- data/sig/finch_api/models/hris/benefits/individual_retrieve_many_benefits_params.rbs +7 -1
- data/sig/finch_api/models/hris/benefits/individual_unenroll_many_params.rbs +7 -1
- data/sig/finch_api/models/hris/benfit_contribution.rbs +1 -1
- data/sig/finch_api/models/hris/company/pay_statement_item/rule_create_params.rbs +7 -0
- data/sig/finch_api/models/hris/company/pay_statement_item/rule_delete_params.rbs +14 -3
- data/sig/finch_api/models/hris/company/pay_statement_item/rule_list_params.rbs +14 -3
- data/sig/finch_api/models/hris/company/pay_statement_item/rule_update_params.rbs +7 -1
- data/sig/finch_api/models/hris/company/pay_statement_item_list_params.rbs +7 -0
- data/sig/finch_api/models/hris/company_retrieve_params.rbs +14 -3
- data/sig/finch_api/models/hris/directory_list_individuals_params.rbs +7 -1
- data/sig/finch_api/models/hris/directory_list_params.rbs +7 -1
- data/sig/finch_api/models/hris/document_list_params.rbs +7 -0
- data/sig/finch_api/models/hris/document_response.rbs +11 -19
- data/sig/finch_api/models/hris/document_retreive_params.rbs +14 -3
- data/sig/finch_api/models/hris/employment_retrieve_many_params.rbs +8 -1
- data/sig/finch_api/models/hris/individual_retrieve_many_params.rbs +7 -0
- data/sig/finch_api/models/hris/pay_statement.rbs +28 -96
- data/sig/finch_api/models/hris/pay_statement_retrieve_many_params.rbs +8 -1
- data/sig/finch_api/models/hris/payment_list_params.rbs +7 -1
- data/sig/finch_api/models/hris/supported_benefit.rbs +2 -1
- data/sig/finch_api/models/hris/w42005.rbs +23 -37
- data/sig/finch_api/models/hris/w42020.rbs +35 -45
- data/sig/finch_api/models/introspection.rbs +29 -20
- data/sig/finch_api/models/jobs/automated_list_params.rbs +1 -7
- data/sig/finch_api/models/jobs/automated_retrieve_params.rbs +3 -13
- data/sig/finch_api/models/jobs/manual_retrieve_params.rbs +3 -13
- data/sig/finch_api/models/payroll/pay_group_list_params.rbs +11 -1
- data/sig/finch_api/models/payroll/pay_group_retrieve_params.rbs +14 -3
- data/sig/finch_api/models/provider.rbs +31 -1366
- data/sig/finch_api/models/provider_list_response.rbs +128 -0
- data/sig/finch_api/models/request_forwarding_forward_params.rbs +8 -8
- data/sig/finch_api/models/request_forwarding_forward_response.rbs +40 -30
- data/sig/finch_api/resources/access_tokens.rbs +2 -2
- data/sig/finch_api/resources/connect/sessions.rbs +9 -9
- data/sig/finch_api/resources/hris/benefits/individuals.rbs +4 -0
- data/sig/finch_api/resources/hris/benefits.rbs +5 -0
- data/sig/finch_api/resources/hris/company/pay_statement_item/rules.rbs +4 -0
- data/sig/finch_api/resources/hris/company/pay_statement_item.rbs +1 -0
- data/sig/finch_api/resources/hris/company.rbs +1 -0
- data/sig/finch_api/resources/hris/directory.rbs +1 -0
- data/sig/finch_api/resources/hris/documents.rbs +2 -0
- data/sig/finch_api/resources/hris/employments.rbs +1 -0
- data/sig/finch_api/resources/hris/individuals.rbs +1 -0
- data/sig/finch_api/resources/hris/pay_statements.rbs +1 -0
- data/sig/finch_api/resources/hris/payments.rbs +1 -0
- data/sig/finch_api/resources/jobs/automated.rbs +0 -2
- data/sig/finch_api/resources/jobs/manual.rbs +0 -1
- data/sig/finch_api/resources/payroll/pay_groups.rbs +2 -0
- data/sig/finch_api/resources/providers.rbs +1 -1
- data/sig/finch_api/resources/request_forwarding.rbs +2 -2
- metadata +5 -2
|
@@ -8,114 +8,110 @@ module FinchAPI
|
|
|
8
8
|
extend FinchAPI::Internal::Type::RequestParameters::Converter
|
|
9
9
|
include FinchAPI::Internal::Type::RequestParameters
|
|
10
10
|
|
|
11
|
+
# @!attribute customer_email
|
|
12
|
+
# Email address of the customer
|
|
13
|
+
#
|
|
14
|
+
# @return [String, nil]
|
|
15
|
+
required :customer_email, String, nil?: true
|
|
16
|
+
|
|
11
17
|
# @!attribute customer_id
|
|
18
|
+
# Unique identifier for the customer
|
|
12
19
|
#
|
|
13
20
|
# @return [String]
|
|
14
21
|
required :customer_id, String
|
|
15
22
|
|
|
16
23
|
# @!attribute customer_name
|
|
24
|
+
# Name of the customer
|
|
17
25
|
#
|
|
18
26
|
# @return [String]
|
|
19
27
|
required :customer_name, String
|
|
20
28
|
|
|
21
|
-
# @!attribute products
|
|
22
|
-
#
|
|
23
|
-
# @return [Array<Symbol, FinchAPI::Models::Connect::SessionNewParams::Product>]
|
|
24
|
-
required :products,
|
|
25
|
-
-> { FinchAPI::Internal::Type::ArrayOf[enum: FinchAPI::Connect::SessionNewParams::Product] }
|
|
26
|
-
|
|
27
|
-
# @!attribute customer_email
|
|
28
|
-
#
|
|
29
|
-
# @return [String, nil]
|
|
30
|
-
optional :customer_email, String, nil?: true
|
|
31
|
-
|
|
32
29
|
# @!attribute integration
|
|
30
|
+
# Integration configuration for the connect session
|
|
33
31
|
#
|
|
34
32
|
# @return [FinchAPI::Models::Connect::SessionNewParams::Integration, nil]
|
|
35
|
-
|
|
33
|
+
required :integration, -> { FinchAPI::Connect::SessionNewParams::Integration }, nil?: true
|
|
36
34
|
|
|
37
35
|
# @!attribute manual
|
|
36
|
+
# Enable manual authentication mode
|
|
38
37
|
#
|
|
39
38
|
# @return [Boolean, nil]
|
|
40
|
-
|
|
39
|
+
required :manual, FinchAPI::Internal::Type::Boolean, nil?: true
|
|
41
40
|
|
|
42
41
|
# @!attribute minutes_to_expire
|
|
43
42
|
# The number of minutes until the session expires (defaults to 129,600, which is
|
|
44
43
|
# 90 days)
|
|
45
44
|
#
|
|
46
45
|
# @return [Float, nil]
|
|
47
|
-
|
|
46
|
+
required :minutes_to_expire, Float, nil?: true
|
|
47
|
+
|
|
48
|
+
# @!attribute products
|
|
49
|
+
# The Finch products to request access to
|
|
50
|
+
#
|
|
51
|
+
# @return [Array<Symbol, FinchAPI::Models::Connect::SessionNewParams::Product>]
|
|
52
|
+
required :products,
|
|
53
|
+
-> { FinchAPI::Internal::Type::ArrayOf[enum: FinchAPI::Connect::SessionNewParams::Product] }
|
|
48
54
|
|
|
49
55
|
# @!attribute redirect_uri
|
|
56
|
+
# The URI to redirect to after the Connect flow is completed
|
|
50
57
|
#
|
|
51
58
|
# @return [String, nil]
|
|
52
|
-
|
|
59
|
+
required :redirect_uri, String, nil?: true
|
|
53
60
|
|
|
54
61
|
# @!attribute sandbox
|
|
62
|
+
# Sandbox mode for testing
|
|
55
63
|
#
|
|
56
64
|
# @return [Symbol, FinchAPI::Models::Connect::SessionNewParams::Sandbox, nil]
|
|
57
|
-
|
|
65
|
+
required :sandbox, enum: -> { FinchAPI::Connect::SessionNewParams::Sandbox }, nil?: true
|
|
58
66
|
|
|
59
|
-
# @!method initialize(customer_id:, customer_name:,
|
|
67
|
+
# @!method initialize(customer_email:, customer_id:, customer_name:, integration:, manual:, minutes_to_expire:, products:, redirect_uri:, sandbox:, request_options: {})
|
|
60
68
|
# Some parameter documentations has been truncated, see
|
|
61
69
|
# {FinchAPI::Models::Connect::SessionNewParams} for more details.
|
|
62
70
|
#
|
|
63
|
-
# @param
|
|
71
|
+
# @param customer_email [String, nil] Email address of the customer
|
|
64
72
|
#
|
|
65
|
-
# @param
|
|
73
|
+
# @param customer_id [String] Unique identifier for the customer
|
|
66
74
|
#
|
|
67
|
-
# @param
|
|
75
|
+
# @param customer_name [String] Name of the customer
|
|
68
76
|
#
|
|
69
|
-
# @param
|
|
77
|
+
# @param integration [FinchAPI::Models::Connect::SessionNewParams::Integration, nil] Integration configuration for the connect session
|
|
70
78
|
#
|
|
71
|
-
# @param
|
|
72
|
-
#
|
|
73
|
-
# @param manual [Boolean, nil]
|
|
79
|
+
# @param manual [Boolean, nil] Enable manual authentication mode
|
|
74
80
|
#
|
|
75
81
|
# @param minutes_to_expire [Float, nil] The number of minutes until the session expires (defaults to 129,600, which is 9
|
|
76
82
|
#
|
|
77
|
-
# @param
|
|
83
|
+
# @param products [Array<Symbol, FinchAPI::Models::Connect::SessionNewParams::Product>] The Finch products to request access to
|
|
84
|
+
#
|
|
85
|
+
# @param redirect_uri [String, nil] The URI to redirect to after the Connect flow is completed
|
|
78
86
|
#
|
|
79
|
-
# @param sandbox [Symbol, FinchAPI::Models::Connect::SessionNewParams::Sandbox, nil]
|
|
87
|
+
# @param sandbox [Symbol, FinchAPI::Models::Connect::SessionNewParams::Sandbox, nil] Sandbox mode for testing
|
|
80
88
|
#
|
|
81
89
|
# @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}]
|
|
82
90
|
|
|
83
|
-
# The Finch products that can be requested during the Connect flow.
|
|
84
|
-
module Product
|
|
85
|
-
extend FinchAPI::Internal::Type::Enum
|
|
86
|
-
|
|
87
|
-
COMPANY = :company
|
|
88
|
-
DIRECTORY = :directory
|
|
89
|
-
INDIVIDUAL = :individual
|
|
90
|
-
EMPLOYMENT = :employment
|
|
91
|
-
PAYMENT = :payment
|
|
92
|
-
PAY_STATEMENT = :pay_statement
|
|
93
|
-
BENEFITS = :benefits
|
|
94
|
-
SSN = :ssn
|
|
95
|
-
DEDUCTION = :deduction
|
|
96
|
-
DOCUMENTS = :documents
|
|
97
|
-
|
|
98
|
-
# @!method self.values
|
|
99
|
-
# @return [Array<Symbol>]
|
|
100
|
-
end
|
|
101
|
-
|
|
102
91
|
class Integration < FinchAPI::Internal::Type::BaseModel
|
|
103
92
|
# @!attribute auth_method
|
|
93
|
+
# The authentication method to use
|
|
104
94
|
#
|
|
105
95
|
# @return [Symbol, FinchAPI::Models::Connect::SessionNewParams::Integration::AuthMethod, nil]
|
|
106
|
-
|
|
96
|
+
required :auth_method,
|
|
107
97
|
enum: -> { FinchAPI::Connect::SessionNewParams::Integration::AuthMethod },
|
|
108
98
|
nil?: true
|
|
109
99
|
|
|
110
100
|
# @!attribute provider
|
|
101
|
+
# The provider to integrate with
|
|
111
102
|
#
|
|
112
103
|
# @return [String, nil]
|
|
113
|
-
|
|
104
|
+
required :provider, String, nil?: true
|
|
114
105
|
|
|
115
|
-
# @!method initialize(auth_method
|
|
116
|
-
#
|
|
117
|
-
#
|
|
106
|
+
# @!method initialize(auth_method:, provider:)
|
|
107
|
+
# Integration configuration for the connect session
|
|
108
|
+
#
|
|
109
|
+
# @param auth_method [Symbol, FinchAPI::Models::Connect::SessionNewParams::Integration::AuthMethod, nil] The authentication method to use
|
|
110
|
+
#
|
|
111
|
+
# @param provider [String, nil] The provider to integrate with
|
|
118
112
|
|
|
113
|
+
# The authentication method to use
|
|
114
|
+
#
|
|
119
115
|
# @see FinchAPI::Models::Connect::SessionNewParams::Integration#auth_method
|
|
120
116
|
module AuthMethod
|
|
121
117
|
extend FinchAPI::Internal::Type::Enum
|
|
@@ -130,6 +126,26 @@ module FinchAPI
|
|
|
130
126
|
end
|
|
131
127
|
end
|
|
132
128
|
|
|
129
|
+
# The Finch products that can be requested during the Connect flow.
|
|
130
|
+
module Product
|
|
131
|
+
extend FinchAPI::Internal::Type::Enum
|
|
132
|
+
|
|
133
|
+
BENEFITS = :benefits
|
|
134
|
+
COMPANY = :company
|
|
135
|
+
DEDUCTION = :deduction
|
|
136
|
+
DIRECTORY = :directory
|
|
137
|
+
DOCUMENTS = :documents
|
|
138
|
+
EMPLOYMENT = :employment
|
|
139
|
+
INDIVIDUAL = :individual
|
|
140
|
+
PAYMENT = :payment
|
|
141
|
+
PAY_STATEMENT = :pay_statement
|
|
142
|
+
SSN = :ssn
|
|
143
|
+
|
|
144
|
+
# @!method self.values
|
|
145
|
+
# @return [Array<Symbol>]
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
# Sandbox mode for testing
|
|
133
149
|
module Sandbox
|
|
134
150
|
extend FinchAPI::Internal::Type::Enum
|
|
135
151
|
|
|
@@ -18,14 +18,14 @@ module FinchAPI
|
|
|
18
18
|
# The number of minutes until the session expires (defaults to 43,200, which is 30
|
|
19
19
|
# days)
|
|
20
20
|
#
|
|
21
|
-
# @return [Integer
|
|
22
|
-
|
|
21
|
+
# @return [Integer]
|
|
22
|
+
required :minutes_to_expire, Integer
|
|
23
23
|
|
|
24
24
|
# @!attribute products
|
|
25
25
|
# The products to request access to (optional for reauthentication)
|
|
26
26
|
#
|
|
27
27
|
# @return [Array<Symbol, FinchAPI::Models::Connect::SessionReauthenticateParams::Product>, nil]
|
|
28
|
-
|
|
28
|
+
required :products,
|
|
29
29
|
-> {
|
|
30
30
|
FinchAPI::Internal::Type::ArrayOf[enum: FinchAPI::Connect::SessionReauthenticateParams::Product]
|
|
31
31
|
},
|
|
@@ -35,15 +35,15 @@ module FinchAPI
|
|
|
35
35
|
# The URI to redirect to after the Connect flow is completed
|
|
36
36
|
#
|
|
37
37
|
# @return [String, nil]
|
|
38
|
-
|
|
38
|
+
required :redirect_uri, String, nil?: true
|
|
39
39
|
|
|
40
|
-
# @!method initialize(connection_id:, minutes_to_expire
|
|
40
|
+
# @!method initialize(connection_id:, minutes_to_expire:, products:, redirect_uri:, request_options: {})
|
|
41
41
|
# Some parameter documentations has been truncated, see
|
|
42
42
|
# {FinchAPI::Models::Connect::SessionReauthenticateParams} for more details.
|
|
43
43
|
#
|
|
44
44
|
# @param connection_id [String] The ID of the existing connection to reauthenticate
|
|
45
45
|
#
|
|
46
|
-
# @param minutes_to_expire [Integer
|
|
46
|
+
# @param minutes_to_expire [Integer] The number of minutes until the session expires (defaults to 43,200, which is 30
|
|
47
47
|
#
|
|
48
48
|
# @param products [Array<Symbol, FinchAPI::Models::Connect::SessionReauthenticateParams::Product>, nil] The products to request access to (optional for reauthentication)
|
|
49
49
|
#
|
|
@@ -55,16 +55,16 @@ module FinchAPI
|
|
|
55
55
|
module Product
|
|
56
56
|
extend FinchAPI::Internal::Type::Enum
|
|
57
57
|
|
|
58
|
+
BENEFITS = :benefits
|
|
58
59
|
COMPANY = :company
|
|
60
|
+
DEDUCTION = :deduction
|
|
59
61
|
DIRECTORY = :directory
|
|
60
|
-
|
|
62
|
+
DOCUMENTS = :documents
|
|
61
63
|
EMPLOYMENT = :employment
|
|
64
|
+
INDIVIDUAL = :individual
|
|
62
65
|
PAYMENT = :payment
|
|
63
66
|
PAY_STATEMENT = :pay_statement
|
|
64
|
-
BENEFITS = :benefits
|
|
65
67
|
SSN = :ssn
|
|
66
|
-
DEDUCTION = :deduction
|
|
67
|
-
DOCUMENTS = :documents
|
|
68
68
|
|
|
69
69
|
# @!method self.values
|
|
70
70
|
# @return [Array<Symbol>]
|
|
@@ -31,6 +31,12 @@ module FinchAPI
|
|
|
31
31
|
# @return [Symbol, FinchAPI::Models::CreateAccessTokenResponse::ConnectionType]
|
|
32
32
|
required :connection_type, enum: -> { FinchAPI::CreateAccessTokenResponse::ConnectionType }
|
|
33
33
|
|
|
34
|
+
# @!attribute entity_ids
|
|
35
|
+
# An array of entity IDs that can be accessed with this access token
|
|
36
|
+
#
|
|
37
|
+
# @return [Array<String>]
|
|
38
|
+
required :entity_ids, FinchAPI::Internal::Type::ArrayOf[String]
|
|
39
|
+
|
|
34
40
|
# @!attribute products
|
|
35
41
|
# An array of the authorized products associated with the `access_token`
|
|
36
42
|
#
|
|
@@ -74,7 +80,7 @@ module FinchAPI
|
|
|
74
80
|
# @return [String, nil]
|
|
75
81
|
optional :customer_id, String, nil?: true
|
|
76
82
|
|
|
77
|
-
# @!method initialize(access_token:, client_type:, connection_id:, connection_type:, products:, provider_id:, token_type:, account_id: nil, company_id: nil, customer_id: nil)
|
|
83
|
+
# @!method initialize(access_token:, client_type:, connection_id:, connection_type:, entity_ids:, products:, provider_id:, token_type:, account_id: nil, company_id: nil, customer_id: nil)
|
|
78
84
|
# Some parameter documentations has been truncated, see
|
|
79
85
|
# {FinchAPI::Models::CreateAccessTokenResponse} for more details.
|
|
80
86
|
#
|
|
@@ -86,6 +92,8 @@ module FinchAPI
|
|
|
86
92
|
#
|
|
87
93
|
# @param connection_type [Symbol, FinchAPI::Models::CreateAccessTokenResponse::ConnectionType] The type of the connection associated with the token.
|
|
88
94
|
#
|
|
95
|
+
# @param entity_ids [Array<String>] An array of entity IDs that can be accessed with this access token
|
|
96
|
+
#
|
|
89
97
|
# @param products [Array<String>] An array of the authorized products associated with the `access_token`
|
|
90
98
|
#
|
|
91
99
|
# @param provider_id [String] The ID of the provider associated with the `access_token`
|
|
@@ -3,36 +3,131 @@
|
|
|
3
3
|
module FinchAPI
|
|
4
4
|
module Models
|
|
5
5
|
module HRIS
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
#
|
|
34
|
-
#
|
|
6
|
+
module BenefitContribution
|
|
7
|
+
extend FinchAPI::Internal::Type::Union
|
|
8
|
+
|
|
9
|
+
variant -> { FinchAPI::HRIS::BenefitContribution::UnionMember0 }
|
|
10
|
+
|
|
11
|
+
variant -> { FinchAPI::HRIS::BenefitContribution::UnionMember1 }
|
|
12
|
+
|
|
13
|
+
variant -> { FinchAPI::HRIS::BenefitContribution::UnionMember2 }
|
|
14
|
+
|
|
15
|
+
class UnionMember0 < FinchAPI::Internal::Type::BaseModel
|
|
16
|
+
# @!attribute amount
|
|
17
|
+
# Contribution amount in cents.
|
|
18
|
+
#
|
|
19
|
+
# @return [Integer]
|
|
20
|
+
required :amount, Integer
|
|
21
|
+
|
|
22
|
+
# @!attribute type
|
|
23
|
+
# Fixed contribution type.
|
|
24
|
+
#
|
|
25
|
+
# @return [Symbol, FinchAPI::Models::HRIS::BenefitContribution::UnionMember0::Type]
|
|
26
|
+
required :type, enum: -> { FinchAPI::HRIS::BenefitContribution::UnionMember0::Type }
|
|
27
|
+
|
|
28
|
+
# @!method initialize(amount:, type:)
|
|
29
|
+
# @param amount [Integer] Contribution amount in cents.
|
|
30
|
+
#
|
|
31
|
+
# @param type [Symbol, FinchAPI::Models::HRIS::BenefitContribution::UnionMember0::Type] Fixed contribution type.
|
|
32
|
+
|
|
33
|
+
# Fixed contribution type.
|
|
34
|
+
#
|
|
35
|
+
# @see FinchAPI::Models::HRIS::BenefitContribution::UnionMember0#type
|
|
36
|
+
module Type
|
|
37
|
+
extend FinchAPI::Internal::Type::Enum
|
|
38
|
+
|
|
39
|
+
FIXED = :fixed
|
|
40
|
+
|
|
41
|
+
# @!method self.values
|
|
42
|
+
# @return [Array<Symbol>]
|
|
43
|
+
end
|
|
35
44
|
end
|
|
45
|
+
|
|
46
|
+
class UnionMember1 < FinchAPI::Internal::Type::BaseModel
|
|
47
|
+
# @!attribute amount
|
|
48
|
+
# Contribution amount in basis points (1/100th of a percent).
|
|
49
|
+
#
|
|
50
|
+
# @return [Integer]
|
|
51
|
+
required :amount, Integer
|
|
52
|
+
|
|
53
|
+
# @!attribute type
|
|
54
|
+
# Percentage contribution type.
|
|
55
|
+
#
|
|
56
|
+
# @return [Symbol, FinchAPI::Models::HRIS::BenefitContribution::UnionMember1::Type]
|
|
57
|
+
required :type, enum: -> { FinchAPI::HRIS::BenefitContribution::UnionMember1::Type }
|
|
58
|
+
|
|
59
|
+
# @!method initialize(amount:, type:)
|
|
60
|
+
# @param amount [Integer] Contribution amount in basis points (1/100th of a percent).
|
|
61
|
+
#
|
|
62
|
+
# @param type [Symbol, FinchAPI::Models::HRIS::BenefitContribution::UnionMember1::Type] Percentage contribution type.
|
|
63
|
+
|
|
64
|
+
# Percentage contribution type.
|
|
65
|
+
#
|
|
66
|
+
# @see FinchAPI::Models::HRIS::BenefitContribution::UnionMember1#type
|
|
67
|
+
module Type
|
|
68
|
+
extend FinchAPI::Internal::Type::Enum
|
|
69
|
+
|
|
70
|
+
PERCENT = :percent
|
|
71
|
+
|
|
72
|
+
# @!method self.values
|
|
73
|
+
# @return [Array<Symbol>]
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
class UnionMember2 < FinchAPI::Internal::Type::BaseModel
|
|
78
|
+
# @!attribute tiers
|
|
79
|
+
# Array of tier objects defining employer match tiers based on employee
|
|
80
|
+
# contribution thresholds.
|
|
81
|
+
#
|
|
82
|
+
# @return [Array<FinchAPI::Models::HRIS::BenefitContribution::UnionMember2::Tier>]
|
|
83
|
+
required :tiers,
|
|
84
|
+
-> { FinchAPI::Internal::Type::ArrayOf[FinchAPI::HRIS::BenefitContribution::UnionMember2::Tier] }
|
|
85
|
+
|
|
86
|
+
# @!attribute type
|
|
87
|
+
# Tiered contribution type (only valid for company_contribution).
|
|
88
|
+
#
|
|
89
|
+
# @return [Symbol, FinchAPI::Models::HRIS::BenefitContribution::UnionMember2::Type]
|
|
90
|
+
required :type, enum: -> { FinchAPI::HRIS::BenefitContribution::UnionMember2::Type }
|
|
91
|
+
|
|
92
|
+
# @!method initialize(tiers:, type:)
|
|
93
|
+
# Some parameter documentations has been truncated, see
|
|
94
|
+
# {FinchAPI::Models::HRIS::BenefitContribution::UnionMember2} for more details.
|
|
95
|
+
#
|
|
96
|
+
# @param tiers [Array<FinchAPI::Models::HRIS::BenefitContribution::UnionMember2::Tier>] Array of tier objects defining employer match tiers based on employee contributi
|
|
97
|
+
#
|
|
98
|
+
# @param type [Symbol, FinchAPI::Models::HRIS::BenefitContribution::UnionMember2::Type] Tiered contribution type (only valid for company_contribution).
|
|
99
|
+
|
|
100
|
+
class Tier < FinchAPI::Internal::Type::BaseModel
|
|
101
|
+
# @!attribute match
|
|
102
|
+
#
|
|
103
|
+
# @return [Integer]
|
|
104
|
+
required :match, Integer
|
|
105
|
+
|
|
106
|
+
# @!attribute threshold
|
|
107
|
+
#
|
|
108
|
+
# @return [Integer]
|
|
109
|
+
required :threshold, Integer
|
|
110
|
+
|
|
111
|
+
# @!method initialize(match:, threshold:)
|
|
112
|
+
# @param match [Integer]
|
|
113
|
+
# @param threshold [Integer]
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
# Tiered contribution type (only valid for company_contribution).
|
|
117
|
+
#
|
|
118
|
+
# @see FinchAPI::Models::HRIS::BenefitContribution::UnionMember2#type
|
|
119
|
+
module Type
|
|
120
|
+
extend FinchAPI::Internal::Type::Enum
|
|
121
|
+
|
|
122
|
+
TIERED = :tiered
|
|
123
|
+
|
|
124
|
+
# @!method self.values
|
|
125
|
+
# @return [Array<Symbol>]
|
|
126
|
+
end
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
# @!method self.variants
|
|
130
|
+
# @return [Array(FinchAPI::Models::HRIS::BenefitContribution::UnionMember0, FinchAPI::Models::HRIS::BenefitContribution::UnionMember1, FinchAPI::Models::HRIS::BenefitContribution::UnionMember2)]
|
|
36
131
|
end
|
|
37
132
|
end
|
|
38
133
|
end
|
|
@@ -8,6 +8,12 @@ module FinchAPI
|
|
|
8
8
|
extend FinchAPI::Internal::Type::RequestParameters::Converter
|
|
9
9
|
include FinchAPI::Internal::Type::RequestParameters
|
|
10
10
|
|
|
11
|
+
# @!attribute entity_ids
|
|
12
|
+
# The entity IDs to specify which entities' data to access.
|
|
13
|
+
#
|
|
14
|
+
# @return [Array<String>, nil]
|
|
15
|
+
optional :entity_ids, FinchAPI::Internal::Type::ArrayOf[String]
|
|
16
|
+
|
|
11
17
|
# @!attribute company_contribution
|
|
12
18
|
# The company match for this benefit.
|
|
13
19
|
#
|
|
@@ -36,10 +42,12 @@ module FinchAPI
|
|
|
36
42
|
# @return [Symbol, FinchAPI::Models::HRIS::BenefitType, nil]
|
|
37
43
|
optional :type, enum: -> { FinchAPI::HRIS::BenefitType }, nil?: true
|
|
38
44
|
|
|
39
|
-
# @!method initialize(company_contribution: nil, description: nil, frequency: nil, type: nil, request_options: {})
|
|
45
|
+
# @!method initialize(entity_ids: nil, company_contribution: nil, description: nil, frequency: nil, type: nil, request_options: {})
|
|
40
46
|
# Some parameter documentations has been truncated, see
|
|
41
47
|
# {FinchAPI::Models::HRIS::BenefitCreateParams} for more details.
|
|
42
48
|
#
|
|
49
|
+
# @param entity_ids [Array<String>] The entity IDs to specify which entities' data to access.
|
|
50
|
+
#
|
|
43
51
|
# @param company_contribution [FinchAPI::Models::HRIS::BenefitCreateParams::CompanyContribution, nil] The company match for this benefit.
|
|
44
52
|
#
|
|
45
53
|
# @param description [String] Name of the benefit as it appears in the provider and pay statements. Recommend
|
|
@@ -8,7 +8,15 @@ module FinchAPI
|
|
|
8
8
|
extend FinchAPI::Internal::Type::RequestParameters::Converter
|
|
9
9
|
include FinchAPI::Internal::Type::RequestParameters
|
|
10
10
|
|
|
11
|
-
# @!
|
|
11
|
+
# @!attribute entity_ids
|
|
12
|
+
# The entity IDs to specify which entities' data to access.
|
|
13
|
+
#
|
|
14
|
+
# @return [Array<String>, nil]
|
|
15
|
+
optional :entity_ids, FinchAPI::Internal::Type::ArrayOf[String]
|
|
16
|
+
|
|
17
|
+
# @!method initialize(entity_ids: nil, request_options: {})
|
|
18
|
+
# @param entity_ids [Array<String>] The entity IDs to specify which entities' data to access.
|
|
19
|
+
#
|
|
12
20
|
# @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}]
|
|
13
21
|
end
|
|
14
22
|
end
|
|
@@ -8,7 +8,15 @@ module FinchAPI
|
|
|
8
8
|
extend FinchAPI::Internal::Type::RequestParameters::Converter
|
|
9
9
|
include FinchAPI::Internal::Type::RequestParameters
|
|
10
10
|
|
|
11
|
-
# @!
|
|
11
|
+
# @!attribute entity_ids
|
|
12
|
+
# The entity IDs to specify which entities' data to access.
|
|
13
|
+
#
|
|
14
|
+
# @return [Array<String>, nil]
|
|
15
|
+
optional :entity_ids, FinchAPI::Internal::Type::ArrayOf[String]
|
|
16
|
+
|
|
17
|
+
# @!method initialize(entity_ids: nil, request_options: {})
|
|
18
|
+
# @param entity_ids [Array<String>] The entity IDs to specify which entities' data to access.
|
|
19
|
+
#
|
|
12
20
|
# @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}]
|
|
13
21
|
end
|
|
14
22
|
end
|
|
@@ -8,7 +8,15 @@ module FinchAPI
|
|
|
8
8
|
extend FinchAPI::Internal::Type::RequestParameters::Converter
|
|
9
9
|
include FinchAPI::Internal::Type::RequestParameters
|
|
10
10
|
|
|
11
|
-
# @!
|
|
11
|
+
# @!attribute entity_ids
|
|
12
|
+
# The entity IDs to specify which entities' data to access.
|
|
13
|
+
#
|
|
14
|
+
# @return [Array<String>, nil]
|
|
15
|
+
optional :entity_ids, FinchAPI::Internal::Type::ArrayOf[String]
|
|
16
|
+
|
|
17
|
+
# @!method initialize(entity_ids: nil, request_options: {})
|
|
18
|
+
# @param entity_ids [Array<String>] The entity IDs to specify which entities' data to access.
|
|
19
|
+
#
|
|
12
20
|
# @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}]
|
|
13
21
|
end
|
|
14
22
|
end
|
|
@@ -8,13 +8,21 @@ module FinchAPI
|
|
|
8
8
|
extend FinchAPI::Internal::Type::RequestParameters::Converter
|
|
9
9
|
include FinchAPI::Internal::Type::RequestParameters
|
|
10
10
|
|
|
11
|
+
# @!attribute entity_ids
|
|
12
|
+
# The entity IDs to specify which entities' data to access.
|
|
13
|
+
#
|
|
14
|
+
# @return [Array<String>, nil]
|
|
15
|
+
optional :entity_ids, FinchAPI::Internal::Type::ArrayOf[String]
|
|
16
|
+
|
|
11
17
|
# @!attribute description
|
|
12
18
|
# Updated name or description.
|
|
13
19
|
#
|
|
14
20
|
# @return [String, nil]
|
|
15
21
|
optional :description, String
|
|
16
22
|
|
|
17
|
-
# @!method initialize(description: nil, request_options: {})
|
|
23
|
+
# @!method initialize(entity_ids: nil, description: nil, request_options: {})
|
|
24
|
+
# @param entity_ids [Array<String>] The entity IDs to specify which entities' data to access.
|
|
25
|
+
#
|
|
18
26
|
# @param description [String] Updated name or description.
|
|
19
27
|
#
|
|
20
28
|
# @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}]
|