finch-api 0.1.0.pre.alpha.47 → 0.1.0.pre.alpha.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/README.md +1 -1
- data/lib/finch_api/models/base_webhook_event.rb +2 -5
- data/lib/finch_api/models/create_access_token_response.rb +2 -5
- data/lib/finch_api/models/hris/benefit_create_params.rb +3 -2
- data/lib/finch_api/models/hris/benefit_list_params.rb +6 -2
- data/lib/finch_api/models/hris/benefit_list_supported_benefits_params.rb +6 -2
- data/lib/finch_api/models/hris/benefit_register_params.rb +6 -2
- data/lib/finch_api/models/hris/benefit_retrieve_params.rb +6 -2
- data/lib/finch_api/models/hris/benefit_update_params.rb +6 -2
- data/lib/finch_api/models/hris/benefits/individual_enroll_many_params.rb +6 -2
- data/lib/finch_api/models/hris/benefits/individual_enrolled_ids_params.rb +7 -2
- data/lib/finch_api/models/hris/benefits/individual_retrieve_many_benefits_params.rb +3 -2
- data/lib/finch_api/models/hris/benefits/individual_unenroll_many_params.rb +7 -2
- data/lib/finch_api/models/hris/company_retrieve_params.rb +6 -2
- data/lib/finch_api/models/hris/directory_list_individuals_params.rb +8 -4
- data/lib/finch_api/models/hris/directory_list_params.rb +8 -4
- data/lib/finch_api/models/hris/document_list_params.rb +3 -2
- data/lib/finch_api/models/hris/document_retreive_params.rb +6 -2
- data/lib/finch_api/models/hris/employment_retrieve_many_params.rb +10 -12
- data/lib/finch_api/models/hris/individual_retrieve_many_params.rb +25 -20
- data/lib/finch_api/models/hris/pay_statement_item/rule_create_params.rb +6 -2
- data/lib/finch_api/models/hris/pay_statement_item/rule_delete_params.rb +6 -2
- data/lib/finch_api/models/hris/pay_statement_item/rule_list_params.rb +6 -2
- data/lib/finch_api/models/hris/pay_statement_item/rule_update_params.rb +6 -2
- data/lib/finch_api/models/hris/pay_statement_item_list_params.rb +3 -2
- data/lib/finch_api/models/hris/pay_statement_retrieve_many_params.rb +10 -6
- data/lib/finch_api/models/hris/payment_list_params.rb +3 -2
- data/lib/finch_api/models/introspection.rb +2 -5
- data/lib/finch_api/models/payroll/pay_group_list_params.rb +6 -2
- data/lib/finch_api/models/payroll/pay_group_retrieve_params.rb +6 -2
- data/lib/finch_api/models/sandbox/connection_create_response.rb +2 -4
- data/lib/finch_api/models/sandbox/connections/account_create_response.rb +2 -4
- data/lib/finch_api/models/sandbox/connections/account_update_response.rb +2 -4
- data/lib/finch_api/resources/hris/benefits/individuals.rb +15 -4
- data/lib/finch_api/resources/hris/benefits.rb +21 -6
- data/lib/finch_api/resources/hris/company.rb +4 -1
- data/lib/finch_api/resources/hris/directory.rb +5 -2
- data/lib/finch_api/resources/hris/documents.rb +5 -2
- data/lib/finch_api/resources/hris/employments.rb +5 -2
- data/lib/finch_api/resources/hris/individuals.rb +8 -5
- data/lib/finch_api/resources/hris/pay_statement_item/rules.rb +13 -4
- data/lib/finch_api/resources/hris/pay_statement_item.rb +1 -1
- data/lib/finch_api/resources/hris/pay_statements.rb +5 -2
- data/lib/finch_api/resources/hris/payments.rb +1 -1
- data/lib/finch_api/resources/payroll/pay_groups.rb +8 -2
- data/lib/finch_api/version.rb +1 -1
- data/rbi/finch_api/models/base_webhook_event.rbi +2 -4
- data/rbi/finch_api/models/create_access_token_response.rbi +2 -4
- data/rbi/finch_api/models/hris/benefit_create_params.rbi +4 -2
- data/rbi/finch_api/models/hris/benefit_list_params.rbi +4 -2
- data/rbi/finch_api/models/hris/benefit_list_supported_benefits_params.rbi +4 -2
- data/rbi/finch_api/models/hris/benefit_register_params.rbi +4 -2
- data/rbi/finch_api/models/hris/benefit_retrieve_params.rbi +4 -2
- data/rbi/finch_api/models/hris/benefit_update_params.rbi +4 -2
- data/rbi/finch_api/models/hris/benefits/individual_enroll_many_params.rbi +4 -2
- data/rbi/finch_api/models/hris/benefits/individual_enrolled_ids_params.rbi +4 -2
- data/rbi/finch_api/models/hris/benefits/individual_retrieve_many_benefits_params.rbi +4 -2
- data/rbi/finch_api/models/hris/benefits/individual_unenroll_many_params.rbi +4 -2
- data/rbi/finch_api/models/hris/company_retrieve_params.rbi +4 -2
- data/rbi/finch_api/models/hris/directory_list_individuals_params.rbi +6 -4
- data/rbi/finch_api/models/hris/directory_list_params.rbi +6 -4
- data/rbi/finch_api/models/hris/document_list_params.rbi +4 -2
- data/rbi/finch_api/models/hris/document_retreive_params.rbi +4 -2
- data/rbi/finch_api/models/hris/employment_retrieve_many_params.rbi +8 -10
- data/rbi/finch_api/models/hris/individual_retrieve_many_params.rbi +33 -44
- data/rbi/finch_api/models/hris/pay_statement_item/rule_create_params.rbi +4 -2
- data/rbi/finch_api/models/hris/pay_statement_item/rule_delete_params.rbi +4 -2
- data/rbi/finch_api/models/hris/pay_statement_item/rule_list_params.rbi +4 -2
- data/rbi/finch_api/models/hris/pay_statement_item/rule_update_params.rbi +4 -2
- data/rbi/finch_api/models/hris/pay_statement_item_list_params.rbi +4 -2
- data/rbi/finch_api/models/hris/pay_statement_retrieve_many_params.rbi +8 -6
- data/rbi/finch_api/models/hris/payment_list_params.rbi +4 -2
- data/rbi/finch_api/models/introspection.rbi +2 -4
- data/rbi/finch_api/models/payroll/pay_group_list_params.rbi +4 -2
- data/rbi/finch_api/models/payroll/pay_group_retrieve_params.rbi +4 -2
- data/rbi/finch_api/models/sandbox/connection_create_response.rbi +2 -2
- data/rbi/finch_api/models/sandbox/connections/account_create_response.rbi +2 -2
- data/rbi/finch_api/models/sandbox/connections/account_update_response.rbi +2 -2
- data/rbi/finch_api/resources/hris/benefits/individuals.rbi +8 -4
- data/rbi/finch_api/resources/hris/benefits.rbi +12 -6
- data/rbi/finch_api/resources/hris/company.rbi +2 -1
- data/rbi/finch_api/resources/hris/directory.rbi +3 -2
- data/rbi/finch_api/resources/hris/documents.rbi +4 -2
- data/rbi/finch_api/resources/hris/employments.rbi +3 -2
- data/rbi/finch_api/resources/hris/individuals.rbi +8 -7
- data/rbi/finch_api/resources/hris/pay_statement_item/rules.rbi +8 -4
- data/rbi/finch_api/resources/hris/pay_statement_item.rbi +2 -1
- data/rbi/finch_api/resources/hris/pay_statements.rbi +3 -2
- data/rbi/finch_api/resources/hris/payments.rbi +2 -1
- data/rbi/finch_api/resources/payroll/pay_groups.rbi +4 -2
- data/sig/finch_api/models/hris/individual_retrieve_many_params.rbs +16 -22
- data/sig/finch_api/resources/hris/individuals.rbs +1 -1
- metadata +2 -2
|
@@ -4,13 +4,16 @@ module FinchAPI
|
|
|
4
4
|
module Resources
|
|
5
5
|
class Payroll
|
|
6
6
|
class PayGroups
|
|
7
|
+
# Some parameter documentations has been truncated, see
|
|
8
|
+
# {FinchAPI::Models::Payroll::PayGroupRetrieveParams} for more details.
|
|
9
|
+
#
|
|
7
10
|
# Read information from a single pay group
|
|
8
11
|
#
|
|
9
12
|
# @overload retrieve(pay_group_id, entity_ids: nil, request_options: {})
|
|
10
13
|
#
|
|
11
14
|
# @param pay_group_id [String]
|
|
12
15
|
#
|
|
13
|
-
# @param entity_ids [Array<String>] The entity IDs to specify which entities' data to access.
|
|
16
|
+
# @param entity_ids [Array<String>] The entity IDs to specify which entities' data to access. Provide exactly one en
|
|
14
17
|
#
|
|
15
18
|
# @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
16
19
|
#
|
|
@@ -30,11 +33,14 @@ module FinchAPI
|
|
|
30
33
|
)
|
|
31
34
|
end
|
|
32
35
|
|
|
36
|
+
# Some parameter documentations has been truncated, see
|
|
37
|
+
# {FinchAPI::Models::Payroll::PayGroupListParams} for more details.
|
|
38
|
+
#
|
|
33
39
|
# Read company pay groups and frequencies
|
|
34
40
|
#
|
|
35
41
|
# @overload list(entity_ids: nil, individual_id: nil, pay_frequencies: nil, request_options: {})
|
|
36
42
|
#
|
|
37
|
-
# @param entity_ids [Array<String>] The entity IDs to specify which entities' data to access.
|
|
43
|
+
# @param entity_ids [Array<String>] The entity IDs to specify which entities' data to access. Provide exactly one en
|
|
38
44
|
#
|
|
39
45
|
# @param individual_id [String]
|
|
40
46
|
#
|
data/lib/finch_api/version.rb
CHANGED
|
@@ -14,8 +14,7 @@ module FinchAPI
|
|
|
14
14
|
sig { returns(String) }
|
|
15
15
|
attr_accessor :account_id
|
|
16
16
|
|
|
17
|
-
#
|
|
18
|
-
# `connection_id` instead to identify the connection associated with this event.
|
|
17
|
+
# Unique Finch ID of the company for which data has been updated.
|
|
19
18
|
sig { returns(String) }
|
|
20
19
|
attr_accessor :company_id
|
|
21
20
|
|
|
@@ -46,8 +45,7 @@ module FinchAPI
|
|
|
46
45
|
# connection. Use `connection_id` instead to identify the connection associated
|
|
47
46
|
# with this event.
|
|
48
47
|
account_id:,
|
|
49
|
-
#
|
|
50
|
-
# `connection_id` instead to identify the connection associated with this event.
|
|
48
|
+
# Unique Finch ID of the company for which data has been updated.
|
|
51
49
|
company_id:,
|
|
52
50
|
# Unique Finch ID of the connection associated with the webhook event.
|
|
53
51
|
connection_id: nil,
|
|
@@ -60,8 +60,7 @@ module FinchAPI
|
|
|
60
60
|
sig { params(account_id: String).void }
|
|
61
61
|
attr_writer :account_id
|
|
62
62
|
|
|
63
|
-
#
|
|
64
|
-
# company ID
|
|
63
|
+
# The Finch UUID of the company associated with the `access_token`.
|
|
65
64
|
sig { returns(T.nilable(String)) }
|
|
66
65
|
attr_reader :company_id
|
|
67
66
|
|
|
@@ -119,8 +118,7 @@ module FinchAPI
|
|
|
119
118
|
# [DEPRECATED] Use `connection_id` to identify the connection instead of this
|
|
120
119
|
# account ID
|
|
121
120
|
account_id: nil,
|
|
122
|
-
#
|
|
123
|
-
# company ID
|
|
121
|
+
# The Finch UUID of the company associated with the `access_token`.
|
|
124
122
|
company_id: nil,
|
|
125
123
|
# The ID of your customer you provided to Finch when a connect session was created
|
|
126
124
|
# for this connection
|
|
@@ -15,7 +15,8 @@ module FinchAPI
|
|
|
15
15
|
)
|
|
16
16
|
end
|
|
17
17
|
|
|
18
|
-
# The entity IDs to specify which entities' data to access.
|
|
18
|
+
# The entity IDs to specify which entities' data to access. Provide exactly one
|
|
19
|
+
# entity ID per request; a maximum of one is accepted.
|
|
19
20
|
sig { returns(T.nilable(T::Array[String])) }
|
|
20
21
|
attr_reader :entity_ids
|
|
21
22
|
|
|
@@ -71,7 +72,8 @@ module FinchAPI
|
|
|
71
72
|
).returns(T.attached_class)
|
|
72
73
|
end
|
|
73
74
|
def self.new(
|
|
74
|
-
# The entity IDs to specify which entities' data to access.
|
|
75
|
+
# The entity IDs to specify which entities' data to access. Provide exactly one
|
|
76
|
+
# entity ID per request; a maximum of one is accepted.
|
|
75
77
|
entity_ids: nil,
|
|
76
78
|
# The company match for this benefit.
|
|
77
79
|
company_contribution: nil,
|
|
@@ -15,7 +15,8 @@ module FinchAPI
|
|
|
15
15
|
)
|
|
16
16
|
end
|
|
17
17
|
|
|
18
|
-
# The entity IDs to specify which entities' data to access.
|
|
18
|
+
# The entity IDs to specify which entities' data to access. Provide exactly one
|
|
19
|
+
# entity ID per request; a maximum of one is accepted.
|
|
19
20
|
sig { returns(T.nilable(T::Array[String])) }
|
|
20
21
|
attr_reader :entity_ids
|
|
21
22
|
|
|
@@ -29,7 +30,8 @@ module FinchAPI
|
|
|
29
30
|
).returns(T.attached_class)
|
|
30
31
|
end
|
|
31
32
|
def self.new(
|
|
32
|
-
# The entity IDs to specify which entities' data to access.
|
|
33
|
+
# The entity IDs to specify which entities' data to access. Provide exactly one
|
|
34
|
+
# entity ID per request; a maximum of one is accepted.
|
|
33
35
|
entity_ids: nil,
|
|
34
36
|
request_options: {}
|
|
35
37
|
)
|
|
@@ -15,7 +15,8 @@ module FinchAPI
|
|
|
15
15
|
)
|
|
16
16
|
end
|
|
17
17
|
|
|
18
|
-
# The entity IDs to specify which entities' data to access.
|
|
18
|
+
# The entity IDs to specify which entities' data to access. Provide exactly one
|
|
19
|
+
# entity ID per request; a maximum of one is accepted.
|
|
19
20
|
sig { returns(T.nilable(T::Array[String])) }
|
|
20
21
|
attr_reader :entity_ids
|
|
21
22
|
|
|
@@ -29,7 +30,8 @@ module FinchAPI
|
|
|
29
30
|
).returns(T.attached_class)
|
|
30
31
|
end
|
|
31
32
|
def self.new(
|
|
32
|
-
# The entity IDs to specify which entities' data to access.
|
|
33
|
+
# The entity IDs to specify which entities' data to access. Provide exactly one
|
|
34
|
+
# entity ID per request; a maximum of one is accepted.
|
|
33
35
|
entity_ids: nil,
|
|
34
36
|
request_options: {}
|
|
35
37
|
)
|
|
@@ -15,7 +15,8 @@ module FinchAPI
|
|
|
15
15
|
)
|
|
16
16
|
end
|
|
17
17
|
|
|
18
|
-
# The entity IDs to specify which entities' data to access.
|
|
18
|
+
# The entity IDs to specify which entities' data to access. Provide exactly one
|
|
19
|
+
# entity ID per request; a maximum of one is accepted.
|
|
19
20
|
sig { returns(T.nilable(T::Array[String])) }
|
|
20
21
|
attr_reader :entity_ids
|
|
21
22
|
|
|
@@ -46,7 +47,8 @@ module FinchAPI
|
|
|
46
47
|
).returns(T.attached_class)
|
|
47
48
|
end
|
|
48
49
|
def self.new(
|
|
49
|
-
# The entity IDs to specify which entities' data to access.
|
|
50
|
+
# The entity IDs to specify which entities' data to access. Provide exactly one
|
|
51
|
+
# entity ID per request; a maximum of one is accepted.
|
|
50
52
|
entity_ids: nil,
|
|
51
53
|
description: nil,
|
|
52
54
|
# The frequency of the benefit deduction/contribution.
|
|
@@ -18,7 +18,8 @@ module FinchAPI
|
|
|
18
18
|
sig { returns(String) }
|
|
19
19
|
attr_accessor :benefit_id
|
|
20
20
|
|
|
21
|
-
# The entity IDs to specify which entities' data to access.
|
|
21
|
+
# The entity IDs to specify which entities' data to access. Provide exactly one
|
|
22
|
+
# entity ID per request; a maximum of one is accepted.
|
|
22
23
|
sig { returns(T.nilable(T::Array[String])) }
|
|
23
24
|
attr_reader :entity_ids
|
|
24
25
|
|
|
@@ -34,7 +35,8 @@ module FinchAPI
|
|
|
34
35
|
end
|
|
35
36
|
def self.new(
|
|
36
37
|
benefit_id:,
|
|
37
|
-
# The entity IDs to specify which entities' data to access.
|
|
38
|
+
# The entity IDs to specify which entities' data to access. Provide exactly one
|
|
39
|
+
# entity ID per request; a maximum of one is accepted.
|
|
38
40
|
entity_ids: nil,
|
|
39
41
|
request_options: {}
|
|
40
42
|
)
|
|
@@ -18,7 +18,8 @@ module FinchAPI
|
|
|
18
18
|
sig { returns(String) }
|
|
19
19
|
attr_accessor :benefit_id
|
|
20
20
|
|
|
21
|
-
# The entity IDs to specify which entities' data to access.
|
|
21
|
+
# The entity IDs to specify which entities' data to access. Provide exactly one
|
|
22
|
+
# entity ID per request; a maximum of one is accepted.
|
|
22
23
|
sig { returns(T.nilable(T::Array[String])) }
|
|
23
24
|
attr_reader :entity_ids
|
|
24
25
|
|
|
@@ -42,7 +43,8 @@ module FinchAPI
|
|
|
42
43
|
end
|
|
43
44
|
def self.new(
|
|
44
45
|
benefit_id:,
|
|
45
|
-
# The entity IDs to specify which entities' data to access.
|
|
46
|
+
# The entity IDs to specify which entities' data to access. Provide exactly one
|
|
47
|
+
# entity ID per request; a maximum of one is accepted.
|
|
46
48
|
entity_ids: nil,
|
|
47
49
|
# Updated name or description.
|
|
48
50
|
description: nil,
|
|
@@ -19,7 +19,8 @@ module FinchAPI
|
|
|
19
19
|
sig { returns(String) }
|
|
20
20
|
attr_accessor :benefit_id
|
|
21
21
|
|
|
22
|
-
# The entity IDs to specify which entities' data to access.
|
|
22
|
+
# The entity IDs to specify which entities' data to access. Provide exactly one
|
|
23
|
+
# entity ID per request; a maximum of one is accepted.
|
|
23
24
|
sig { returns(T.nilable(T::Array[String])) }
|
|
24
25
|
attr_reader :entity_ids
|
|
25
26
|
|
|
@@ -61,7 +62,8 @@ module FinchAPI
|
|
|
61
62
|
end
|
|
62
63
|
def self.new(
|
|
63
64
|
benefit_id:,
|
|
64
|
-
# The entity IDs to specify which entities' data to access.
|
|
65
|
+
# The entity IDs to specify which entities' data to access. Provide exactly one
|
|
66
|
+
# entity ID per request; a maximum of one is accepted.
|
|
65
67
|
entity_ids: nil,
|
|
66
68
|
# Array of the individual_id to enroll and a configuration object.
|
|
67
69
|
individuals: nil,
|
|
@@ -19,7 +19,8 @@ module FinchAPI
|
|
|
19
19
|
sig { returns(String) }
|
|
20
20
|
attr_accessor :benefit_id
|
|
21
21
|
|
|
22
|
-
# The entity IDs to specify which entities' data to access.
|
|
22
|
+
# The entity IDs to specify which entities' data to access. Provide exactly one
|
|
23
|
+
# entity ID per request; a maximum of one is accepted.
|
|
23
24
|
sig { returns(T.nilable(T::Array[String])) }
|
|
24
25
|
attr_reader :entity_ids
|
|
25
26
|
|
|
@@ -35,7 +36,8 @@ module FinchAPI
|
|
|
35
36
|
end
|
|
36
37
|
def self.new(
|
|
37
38
|
benefit_id:,
|
|
38
|
-
# The entity IDs to specify which entities' data to access.
|
|
39
|
+
# The entity IDs to specify which entities' data to access. Provide exactly one
|
|
40
|
+
# entity ID per request; a maximum of one is accepted.
|
|
39
41
|
entity_ids: nil,
|
|
40
42
|
request_options: {}
|
|
41
43
|
)
|
|
@@ -19,7 +19,8 @@ module FinchAPI
|
|
|
19
19
|
sig { returns(String) }
|
|
20
20
|
attr_accessor :benefit_id
|
|
21
21
|
|
|
22
|
-
# The entity IDs to specify which entities' data to access.
|
|
22
|
+
# The entity IDs to specify which entities' data to access. Provide exactly one
|
|
23
|
+
# entity ID per request; a maximum of one is accepted.
|
|
23
24
|
sig { returns(T.nilable(T::Array[String])) }
|
|
24
25
|
attr_reader :entity_ids
|
|
25
26
|
|
|
@@ -44,7 +45,8 @@ module FinchAPI
|
|
|
44
45
|
end
|
|
45
46
|
def self.new(
|
|
46
47
|
benefit_id:,
|
|
47
|
-
# The entity IDs to specify which entities' data to access.
|
|
48
|
+
# The entity IDs to specify which entities' data to access. Provide exactly one
|
|
49
|
+
# entity ID per request; a maximum of one is accepted.
|
|
48
50
|
entity_ids: nil,
|
|
49
51
|
# comma-delimited list of stable Finch uuids for each individual. If empty,
|
|
50
52
|
# defaults to all individuals
|
|
@@ -19,7 +19,8 @@ module FinchAPI
|
|
|
19
19
|
sig { returns(String) }
|
|
20
20
|
attr_accessor :benefit_id
|
|
21
21
|
|
|
22
|
-
# The entity IDs to specify which entities' data to access.
|
|
22
|
+
# The entity IDs to specify which entities' data to access. Provide exactly one
|
|
23
|
+
# entity ID per request; a maximum of one is accepted.
|
|
23
24
|
sig { returns(T.nilable(T::Array[String])) }
|
|
24
25
|
attr_reader :entity_ids
|
|
25
26
|
|
|
@@ -43,7 +44,8 @@ module FinchAPI
|
|
|
43
44
|
end
|
|
44
45
|
def self.new(
|
|
45
46
|
benefit_id:,
|
|
46
|
-
# The entity IDs to specify which entities' data to access.
|
|
47
|
+
# The entity IDs to specify which entities' data to access. Provide exactly one
|
|
48
|
+
# entity ID per request; a maximum of one is accepted.
|
|
47
49
|
entity_ids: nil,
|
|
48
50
|
# Array of individual_ids to unenroll.
|
|
49
51
|
individual_ids: nil,
|
|
@@ -15,7 +15,8 @@ module FinchAPI
|
|
|
15
15
|
)
|
|
16
16
|
end
|
|
17
17
|
|
|
18
|
-
# The entity IDs to specify which entities' data to access.
|
|
18
|
+
# The entity IDs to specify which entities' data to access. Provide exactly one
|
|
19
|
+
# entity ID per request; a maximum of one is accepted.
|
|
19
20
|
sig { returns(T.nilable(T::Array[String])) }
|
|
20
21
|
attr_reader :entity_ids
|
|
21
22
|
|
|
@@ -29,7 +30,8 @@ module FinchAPI
|
|
|
29
30
|
).returns(T.attached_class)
|
|
30
31
|
end
|
|
31
32
|
def self.new(
|
|
32
|
-
# The entity IDs to specify which entities' data to access.
|
|
33
|
+
# The entity IDs to specify which entities' data to access. Provide exactly one
|
|
34
|
+
# entity ID per request; a maximum of one is accepted.
|
|
33
35
|
entity_ids: nil,
|
|
34
36
|
request_options: {}
|
|
35
37
|
)
|
|
@@ -15,14 +15,15 @@ module FinchAPI
|
|
|
15
15
|
)
|
|
16
16
|
end
|
|
17
17
|
|
|
18
|
-
# The entity IDs to specify which entities' data to access.
|
|
18
|
+
# The entity IDs to specify which entities' data to access. Provide exactly one
|
|
19
|
+
# entity ID per request; a maximum of one is accepted.
|
|
19
20
|
sig { returns(T.nilable(T::Array[String])) }
|
|
20
21
|
attr_reader :entity_ids
|
|
21
22
|
|
|
22
23
|
sig { params(entity_ids: T::Array[String]).void }
|
|
23
24
|
attr_writer :entity_ids
|
|
24
25
|
|
|
25
|
-
# Number of employees to return (defaults to
|
|
26
|
+
# Number of employees to return (defaults to 100, maximum 10000)
|
|
26
27
|
sig { returns(T.nilable(Integer)) }
|
|
27
28
|
attr_reader :limit
|
|
28
29
|
|
|
@@ -45,9 +46,10 @@ module FinchAPI
|
|
|
45
46
|
).returns(T.attached_class)
|
|
46
47
|
end
|
|
47
48
|
def self.new(
|
|
48
|
-
# The entity IDs to specify which entities' data to access.
|
|
49
|
+
# The entity IDs to specify which entities' data to access. Provide exactly one
|
|
50
|
+
# entity ID per request; a maximum of one is accepted.
|
|
49
51
|
entity_ids: nil,
|
|
50
|
-
# Number of employees to return (defaults to
|
|
52
|
+
# Number of employees to return (defaults to 100, maximum 10000)
|
|
51
53
|
limit: nil,
|
|
52
54
|
# Index to start from (defaults to 0)
|
|
53
55
|
offset: nil,
|
|
@@ -15,14 +15,15 @@ module FinchAPI
|
|
|
15
15
|
)
|
|
16
16
|
end
|
|
17
17
|
|
|
18
|
-
# The entity IDs to specify which entities' data to access.
|
|
18
|
+
# The entity IDs to specify which entities' data to access. Provide exactly one
|
|
19
|
+
# entity ID per request; a maximum of one is accepted.
|
|
19
20
|
sig { returns(T.nilable(T::Array[String])) }
|
|
20
21
|
attr_reader :entity_ids
|
|
21
22
|
|
|
22
23
|
sig { params(entity_ids: T::Array[String]).void }
|
|
23
24
|
attr_writer :entity_ids
|
|
24
25
|
|
|
25
|
-
# Number of employees to return (defaults to
|
|
26
|
+
# Number of employees to return (defaults to 100, maximum 10000)
|
|
26
27
|
sig { returns(T.nilable(Integer)) }
|
|
27
28
|
attr_reader :limit
|
|
28
29
|
|
|
@@ -45,9 +46,10 @@ module FinchAPI
|
|
|
45
46
|
).returns(T.attached_class)
|
|
46
47
|
end
|
|
47
48
|
def self.new(
|
|
48
|
-
# The entity IDs to specify which entities' data to access.
|
|
49
|
+
# The entity IDs to specify which entities' data to access. Provide exactly one
|
|
50
|
+
# entity ID per request; a maximum of one is accepted.
|
|
49
51
|
entity_ids: nil,
|
|
50
|
-
# Number of employees to return (defaults to
|
|
52
|
+
# Number of employees to return (defaults to 100, maximum 10000)
|
|
51
53
|
limit: nil,
|
|
52
54
|
# Index to start from (defaults to 0)
|
|
53
55
|
offset: nil,
|
|
@@ -15,7 +15,8 @@ module FinchAPI
|
|
|
15
15
|
)
|
|
16
16
|
end
|
|
17
17
|
|
|
18
|
-
# The entity IDs to specify which entities' data to access.
|
|
18
|
+
# The entity IDs to specify which entities' data to access. Provide exactly one
|
|
19
|
+
# entity ID per request; a maximum of one is accepted.
|
|
19
20
|
sig { returns(T.nilable(T::Array[String])) }
|
|
20
21
|
attr_reader :entity_ids
|
|
21
22
|
|
|
@@ -73,7 +74,8 @@ module FinchAPI
|
|
|
73
74
|
).returns(T.attached_class)
|
|
74
75
|
end
|
|
75
76
|
def self.new(
|
|
76
|
-
# The entity IDs to specify which entities' data to access.
|
|
77
|
+
# The entity IDs to specify which entities' data to access. Provide exactly one
|
|
78
|
+
# entity ID per request; a maximum of one is accepted.
|
|
77
79
|
entity_ids: nil,
|
|
78
80
|
# Comma-delimited list of stable Finch uuids for each individual. If empty,
|
|
79
81
|
# defaults to all individuals
|
|
@@ -18,7 +18,8 @@ module FinchAPI
|
|
|
18
18
|
sig { returns(String) }
|
|
19
19
|
attr_accessor :document_id
|
|
20
20
|
|
|
21
|
-
# The entity IDs to specify which entities' data to access.
|
|
21
|
+
# The entity IDs to specify which entities' data to access. Provide exactly one
|
|
22
|
+
# entity ID per request; a maximum of one is accepted.
|
|
22
23
|
sig { returns(T.nilable(T::Array[String])) }
|
|
23
24
|
attr_reader :entity_ids
|
|
24
25
|
|
|
@@ -34,7 +35,8 @@ module FinchAPI
|
|
|
34
35
|
end
|
|
35
36
|
def self.new(
|
|
36
37
|
document_id:,
|
|
37
|
-
# The entity IDs to specify which entities' data to access.
|
|
38
|
+
# The entity IDs to specify which entities' data to access. Provide exactly one
|
|
39
|
+
# entity ID per request; a maximum of one is accepted.
|
|
38
40
|
entity_ids: nil,
|
|
39
41
|
request_options: {}
|
|
40
42
|
)
|
|
@@ -15,7 +15,7 @@ module FinchAPI
|
|
|
15
15
|
)
|
|
16
16
|
end
|
|
17
17
|
|
|
18
|
-
# The array of batch requests.
|
|
18
|
+
# The array of batch requests. Maximum 10000 items per request.
|
|
19
19
|
sig do
|
|
20
20
|
returns(
|
|
21
21
|
T::Array[FinchAPI::HRIS::EmploymentRetrieveManyParams::Request]
|
|
@@ -23,7 +23,8 @@ module FinchAPI
|
|
|
23
23
|
end
|
|
24
24
|
attr_accessor :requests
|
|
25
25
|
|
|
26
|
-
# The entity IDs to specify which entities' data to access.
|
|
26
|
+
# The entity IDs to specify which entities' data to access. Provide exactly one
|
|
27
|
+
# entity ID per request; a maximum of one is accepted.
|
|
27
28
|
sig { returns(T.nilable(T::Array[String])) }
|
|
28
29
|
attr_reader :entity_ids
|
|
29
30
|
|
|
@@ -41,9 +42,10 @@ module FinchAPI
|
|
|
41
42
|
).returns(T.attached_class)
|
|
42
43
|
end
|
|
43
44
|
def self.new(
|
|
44
|
-
# The array of batch requests.
|
|
45
|
+
# The array of batch requests. Maximum 10000 items per request.
|
|
45
46
|
requests:,
|
|
46
|
-
# The entity IDs to specify which entities' data to access.
|
|
47
|
+
# The entity IDs to specify which entities' data to access. Provide exactly one
|
|
48
|
+
# entity ID per request; a maximum of one is accepted.
|
|
47
49
|
entity_ids: nil,
|
|
48
50
|
request_options: {}
|
|
49
51
|
)
|
|
@@ -71,17 +73,13 @@ module FinchAPI
|
|
|
71
73
|
)
|
|
72
74
|
end
|
|
73
75
|
|
|
74
|
-
# A stable Finch `id` (UUID v4) for an individual in the company.
|
|
75
|
-
# limit to the number of `individual_id` to send per request. It is preferantial
|
|
76
|
-
# to send all ids in a single request for Finch to optimize provider rate-limits.
|
|
76
|
+
# A stable Finch `id` (UUID v4) for an individual in the company.
|
|
77
77
|
sig { returns(String) }
|
|
78
78
|
attr_accessor :individual_id
|
|
79
79
|
|
|
80
80
|
sig { params(individual_id: String).returns(T.attached_class) }
|
|
81
81
|
def self.new(
|
|
82
|
-
# A stable Finch `id` (UUID v4) for an individual in the company.
|
|
83
|
-
# limit to the number of `individual_id` to send per request. It is preferantial
|
|
84
|
-
# to send all ids in a single request for Finch to optimize provider rate-limits.
|
|
82
|
+
# A stable Finch `id` (UUID v4) for an individual in the company.
|
|
85
83
|
individual_id:
|
|
86
84
|
)
|
|
87
85
|
end
|
|
@@ -15,7 +15,16 @@ module FinchAPI
|
|
|
15
15
|
)
|
|
16
16
|
end
|
|
17
17
|
|
|
18
|
-
# The
|
|
18
|
+
# The array of batch requests. Maximum 10000 items per request.
|
|
19
|
+
sig do
|
|
20
|
+
returns(
|
|
21
|
+
T::Array[FinchAPI::HRIS::IndividualRetrieveManyParams::Request]
|
|
22
|
+
)
|
|
23
|
+
end
|
|
24
|
+
attr_accessor :requests
|
|
25
|
+
|
|
26
|
+
# The entity IDs to specify which entities' data to access. Provide exactly one
|
|
27
|
+
# entity ID per request; a maximum of one is accepted.
|
|
19
28
|
sig { returns(T.nilable(T::Array[String])) }
|
|
20
29
|
attr_reader :entity_ids
|
|
21
30
|
|
|
@@ -39,44 +48,27 @@ module FinchAPI
|
|
|
39
48
|
end
|
|
40
49
|
attr_writer :options
|
|
41
50
|
|
|
42
|
-
sig do
|
|
43
|
-
returns(
|
|
44
|
-
T.nilable(
|
|
45
|
-
T::Array[FinchAPI::HRIS::IndividualRetrieveManyParams::Request]
|
|
46
|
-
)
|
|
47
|
-
)
|
|
48
|
-
end
|
|
49
|
-
attr_reader :requests
|
|
50
|
-
|
|
51
51
|
sig do
|
|
52
52
|
params(
|
|
53
53
|
requests:
|
|
54
54
|
T::Array[
|
|
55
55
|
FinchAPI::HRIS::IndividualRetrieveManyParams::Request::OrHash
|
|
56
|
-
]
|
|
57
|
-
).void
|
|
58
|
-
end
|
|
59
|
-
attr_writer :requests
|
|
60
|
-
|
|
61
|
-
sig do
|
|
62
|
-
params(
|
|
56
|
+
],
|
|
63
57
|
entity_ids: T::Array[String],
|
|
64
58
|
options:
|
|
65
59
|
T.nilable(
|
|
66
60
|
FinchAPI::HRIS::IndividualRetrieveManyParams::Options::OrHash
|
|
67
61
|
),
|
|
68
|
-
requests:
|
|
69
|
-
T::Array[
|
|
70
|
-
FinchAPI::HRIS::IndividualRetrieveManyParams::Request::OrHash
|
|
71
|
-
],
|
|
72
62
|
request_options: FinchAPI::RequestOptions::OrHash
|
|
73
63
|
).returns(T.attached_class)
|
|
74
64
|
end
|
|
75
65
|
def self.new(
|
|
76
|
-
# The
|
|
66
|
+
# The array of batch requests. Maximum 10000 items per request.
|
|
67
|
+
requests:,
|
|
68
|
+
# The entity IDs to specify which entities' data to access. Provide exactly one
|
|
69
|
+
# entity ID per request; a maximum of one is accepted.
|
|
77
70
|
entity_ids: nil,
|
|
78
71
|
options: nil,
|
|
79
|
-
requests: nil,
|
|
80
72
|
request_options: {}
|
|
81
73
|
)
|
|
82
74
|
end
|
|
@@ -84,13 +76,13 @@ module FinchAPI
|
|
|
84
76
|
sig do
|
|
85
77
|
override.returns(
|
|
86
78
|
{
|
|
79
|
+
requests:
|
|
80
|
+
T::Array[FinchAPI::HRIS::IndividualRetrieveManyParams::Request],
|
|
87
81
|
entity_ids: T::Array[String],
|
|
88
82
|
options:
|
|
89
83
|
T.nilable(
|
|
90
84
|
FinchAPI::HRIS::IndividualRetrieveManyParams::Options
|
|
91
85
|
),
|
|
92
|
-
requests:
|
|
93
|
-
T::Array[FinchAPI::HRIS::IndividualRetrieveManyParams::Request],
|
|
94
86
|
request_options: FinchAPI::RequestOptions
|
|
95
87
|
}
|
|
96
88
|
)
|
|
@@ -98,50 +90,47 @@ module FinchAPI
|
|
|
98
90
|
def to_hash
|
|
99
91
|
end
|
|
100
92
|
|
|
101
|
-
class
|
|
93
|
+
class Request < FinchAPI::Internal::Type::BaseModel
|
|
102
94
|
OrHash =
|
|
103
95
|
T.type_alias do
|
|
104
96
|
T.any(
|
|
105
|
-
FinchAPI::HRIS::IndividualRetrieveManyParams::
|
|
97
|
+
FinchAPI::HRIS::IndividualRetrieveManyParams::Request,
|
|
106
98
|
FinchAPI::Internal::AnyHash
|
|
107
99
|
)
|
|
108
100
|
end
|
|
109
101
|
|
|
110
|
-
sig { returns(
|
|
111
|
-
|
|
102
|
+
sig { returns(String) }
|
|
103
|
+
attr_accessor :individual_id
|
|
112
104
|
|
|
113
|
-
sig { params(
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
sig { params(include: T::Array[String]).returns(T.attached_class) }
|
|
117
|
-
def self.new(include: nil)
|
|
105
|
+
sig { params(individual_id: String).returns(T.attached_class) }
|
|
106
|
+
def self.new(individual_id:)
|
|
118
107
|
end
|
|
119
108
|
|
|
120
|
-
sig { override.returns({
|
|
109
|
+
sig { override.returns({ individual_id: String }) }
|
|
121
110
|
def to_hash
|
|
122
111
|
end
|
|
123
112
|
end
|
|
124
113
|
|
|
125
|
-
class
|
|
114
|
+
class Options < FinchAPI::Internal::Type::BaseModel
|
|
126
115
|
OrHash =
|
|
127
116
|
T.type_alias do
|
|
128
117
|
T.any(
|
|
129
|
-
FinchAPI::HRIS::IndividualRetrieveManyParams::
|
|
118
|
+
FinchAPI::HRIS::IndividualRetrieveManyParams::Options,
|
|
130
119
|
FinchAPI::Internal::AnyHash
|
|
131
120
|
)
|
|
132
121
|
end
|
|
133
122
|
|
|
134
|
-
sig { returns(T.nilable(String)) }
|
|
135
|
-
attr_reader :
|
|
123
|
+
sig { returns(T.nilable(T::Array[String])) }
|
|
124
|
+
attr_reader :include
|
|
136
125
|
|
|
137
|
-
sig { params(
|
|
138
|
-
attr_writer :
|
|
126
|
+
sig { params(include: T::Array[String]).void }
|
|
127
|
+
attr_writer :include
|
|
139
128
|
|
|
140
|
-
sig { params(
|
|
141
|
-
def self.new(
|
|
129
|
+
sig { params(include: T::Array[String]).returns(T.attached_class) }
|
|
130
|
+
def self.new(include: nil)
|
|
142
131
|
end
|
|
143
132
|
|
|
144
|
-
sig { override.returns({
|
|
133
|
+
sig { override.returns({ include: T::Array[String] }) }
|
|
145
134
|
def to_hash
|
|
146
135
|
end
|
|
147
136
|
end
|
|
@@ -16,7 +16,8 @@ module FinchAPI
|
|
|
16
16
|
)
|
|
17
17
|
end
|
|
18
18
|
|
|
19
|
-
# The entity IDs to create the rule for.
|
|
19
|
+
# The entity IDs to create the rule for. Provide exactly one entity ID per
|
|
20
|
+
# request; a maximum of one is accepted.
|
|
20
21
|
sig { returns(T.nilable(T::Array[String])) }
|
|
21
22
|
attr_reader :entity_ids
|
|
22
23
|
|
|
@@ -105,7 +106,8 @@ module FinchAPI
|
|
|
105
106
|
).returns(T.attached_class)
|
|
106
107
|
end
|
|
107
108
|
def self.new(
|
|
108
|
-
# The entity IDs to create the rule for.
|
|
109
|
+
# The entity IDs to create the rule for. Provide exactly one entity ID per
|
|
110
|
+
# request; a maximum of one is accepted.
|
|
109
111
|
entity_ids: nil,
|
|
110
112
|
# Specifies the fields to be applied when the condition is met.
|
|
111
113
|
attributes: nil,
|
|
@@ -19,7 +19,8 @@ module FinchAPI
|
|
|
19
19
|
sig { returns(String) }
|
|
20
20
|
attr_accessor :rule_id
|
|
21
21
|
|
|
22
|
-
# The entity IDs to delete the rule for.
|
|
22
|
+
# The entity IDs to delete the rule for. Provide exactly one entity ID per
|
|
23
|
+
# request; a maximum of one is accepted.
|
|
23
24
|
sig { returns(T.nilable(T::Array[String])) }
|
|
24
25
|
attr_reader :entity_ids
|
|
25
26
|
|
|
@@ -35,7 +36,8 @@ module FinchAPI
|
|
|
35
36
|
end
|
|
36
37
|
def self.new(
|
|
37
38
|
rule_id:,
|
|
38
|
-
# The entity IDs to delete the rule for.
|
|
39
|
+
# The entity IDs to delete the rule for. Provide exactly one entity ID per
|
|
40
|
+
# request; a maximum of one is accepted.
|
|
39
41
|
entity_ids: nil,
|
|
40
42
|
request_options: {}
|
|
41
43
|
)
|