finch-api 0.1.0.pre.alpha.48 → 0.1.0.pre.alpha.50

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.
Files changed (120) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +17 -0
  3. data/README.md +1 -1
  4. data/lib/finch_api/models/base_webhook_event.rb +2 -5
  5. data/lib/finch_api/models/create_access_token_response.rb +2 -5
  6. data/lib/finch_api/models/hris/benefit_create_params.rb +3 -2
  7. data/lib/finch_api/models/hris/benefit_list_params.rb +6 -2
  8. data/lib/finch_api/models/hris/benefit_list_supported_benefits_params.rb +6 -2
  9. data/lib/finch_api/models/hris/benefit_register_params.rb +6 -2
  10. data/lib/finch_api/models/hris/benefit_retrieve_params.rb +6 -2
  11. data/lib/finch_api/models/hris/benefit_update_params.rb +6 -2
  12. data/lib/finch_api/models/hris/benefits/individual_enroll_many_params.rb +6 -2
  13. data/lib/finch_api/models/hris/benefits/individual_enrolled_ids_params.rb +7 -2
  14. data/lib/finch_api/models/hris/benefits/individual_retrieve_many_benefits_params.rb +3 -2
  15. data/lib/finch_api/models/hris/benefits/individual_unenroll_many_params.rb +7 -2
  16. data/lib/finch_api/models/hris/company_retrieve_params.rb +6 -2
  17. data/lib/finch_api/models/hris/directory_list_individuals_params.rb +6 -2
  18. data/lib/finch_api/models/hris/directory_list_params.rb +6 -2
  19. data/lib/finch_api/models/hris/document_list_params.rb +3 -2
  20. data/lib/finch_api/models/hris/document_retreive_params.rb +6 -2
  21. data/lib/finch_api/models/hris/employment_data.rb +36 -1
  22. data/lib/finch_api/models/hris/employment_retrieve_many_params.rb +6 -2
  23. data/lib/finch_api/models/hris/individual.rb +30 -1
  24. data/lib/finch_api/models/hris/individual_retrieve_many_params.rb +6 -2
  25. data/lib/finch_api/models/hris/pay_statement_item/rule_create_params.rb +6 -2
  26. data/lib/finch_api/models/hris/pay_statement_item/rule_delete_params.rb +6 -2
  27. data/lib/finch_api/models/hris/pay_statement_item/rule_list_params.rb +6 -2
  28. data/lib/finch_api/models/hris/pay_statement_item/rule_update_params.rb +6 -2
  29. data/lib/finch_api/models/hris/pay_statement_item_list_params.rb +3 -2
  30. data/lib/finch_api/models/hris/pay_statement_retrieve_many_params.rb +6 -2
  31. data/lib/finch_api/models/hris/payment_list_params.rb +3 -2
  32. data/lib/finch_api/models/introspection.rb +2 -5
  33. data/lib/finch_api/models/payroll/pay_group_list_params.rb +6 -2
  34. data/lib/finch_api/models/payroll/pay_group_retrieve_params.rb +6 -2
  35. data/lib/finch_api/models/sandbox/connection_create_response.rb +2 -4
  36. data/lib/finch_api/models/sandbox/connections/account_create_response.rb +2 -4
  37. data/lib/finch_api/models/sandbox/connections/account_update_response.rb +2 -4
  38. data/lib/finch_api/models/sandbox/directory_create_params.rb +65 -1
  39. data/lib/finch_api/models/sandbox/employment_update_params.rb +36 -1
  40. data/lib/finch_api/models/sandbox/employment_update_response.rb +36 -1
  41. data/lib/finch_api/models/sandbox/individual_update_params.rb +28 -1
  42. data/lib/finch_api/models/sandbox/individual_update_response.rb +30 -1
  43. data/lib/finch_api/resources/hris/benefits/individuals.rb +15 -4
  44. data/lib/finch_api/resources/hris/benefits.rb +21 -6
  45. data/lib/finch_api/resources/hris/company.rb +4 -1
  46. data/lib/finch_api/resources/hris/directory.rb +4 -1
  47. data/lib/finch_api/resources/hris/documents.rb +5 -2
  48. data/lib/finch_api/resources/hris/employments.rb +4 -1
  49. data/lib/finch_api/resources/hris/individuals.rb +4 -1
  50. data/lib/finch_api/resources/hris/pay_statement_item/rules.rb +13 -4
  51. data/lib/finch_api/resources/hris/pay_statement_item.rb +1 -1
  52. data/lib/finch_api/resources/hris/pay_statements.rb +4 -1
  53. data/lib/finch_api/resources/hris/payments.rb +1 -1
  54. data/lib/finch_api/resources/payroll/pay_groups.rb +8 -2
  55. data/lib/finch_api/resources/sandbox/employment.rb +9 -1
  56. data/lib/finch_api/resources/sandbox/individual.rb +3 -1
  57. data/lib/finch_api/version.rb +1 -1
  58. data/rbi/finch_api/models/base_webhook_event.rbi +2 -4
  59. data/rbi/finch_api/models/create_access_token_response.rbi +2 -4
  60. data/rbi/finch_api/models/hris/benefit_create_params.rbi +4 -2
  61. data/rbi/finch_api/models/hris/benefit_list_params.rbi +4 -2
  62. data/rbi/finch_api/models/hris/benefit_list_supported_benefits_params.rbi +4 -2
  63. data/rbi/finch_api/models/hris/benefit_register_params.rbi +4 -2
  64. data/rbi/finch_api/models/hris/benefit_retrieve_params.rbi +4 -2
  65. data/rbi/finch_api/models/hris/benefit_update_params.rbi +4 -2
  66. data/rbi/finch_api/models/hris/benefits/individual_enroll_many_params.rbi +4 -2
  67. data/rbi/finch_api/models/hris/benefits/individual_enrolled_ids_params.rbi +4 -2
  68. data/rbi/finch_api/models/hris/benefits/individual_retrieve_many_benefits_params.rbi +4 -2
  69. data/rbi/finch_api/models/hris/benefits/individual_unenroll_many_params.rbi +4 -2
  70. data/rbi/finch_api/models/hris/company_retrieve_params.rbi +4 -2
  71. data/rbi/finch_api/models/hris/directory_list_individuals_params.rbi +4 -2
  72. data/rbi/finch_api/models/hris/directory_list_params.rbi +4 -2
  73. data/rbi/finch_api/models/hris/document_list_params.rbi +4 -2
  74. data/rbi/finch_api/models/hris/document_retreive_params.rbi +4 -2
  75. data/rbi/finch_api/models/hris/employment_data.rbi +38 -0
  76. data/rbi/finch_api/models/hris/employment_retrieve_many_params.rbi +4 -2
  77. data/rbi/finch_api/models/hris/individual.rbi +78 -0
  78. data/rbi/finch_api/models/hris/individual_retrieve_many_params.rbi +4 -2
  79. data/rbi/finch_api/models/hris/pay_statement_item/rule_create_params.rbi +4 -2
  80. data/rbi/finch_api/models/hris/pay_statement_item/rule_delete_params.rbi +4 -2
  81. data/rbi/finch_api/models/hris/pay_statement_item/rule_list_params.rbi +4 -2
  82. data/rbi/finch_api/models/hris/pay_statement_item/rule_update_params.rbi +4 -2
  83. data/rbi/finch_api/models/hris/pay_statement_item_list_params.rbi +4 -2
  84. data/rbi/finch_api/models/hris/pay_statement_retrieve_many_params.rbi +4 -2
  85. data/rbi/finch_api/models/hris/payment_list_params.rbi +4 -2
  86. data/rbi/finch_api/models/introspection.rbi +2 -4
  87. data/rbi/finch_api/models/payroll/pay_group_list_params.rbi +4 -2
  88. data/rbi/finch_api/models/payroll/pay_group_retrieve_params.rbi +4 -2
  89. data/rbi/finch_api/models/sandbox/connection_create_response.rbi +2 -2
  90. data/rbi/finch_api/models/sandbox/connections/account_create_response.rbi +2 -2
  91. data/rbi/finch_api/models/sandbox/connections/account_update_response.rbi +2 -2
  92. data/rbi/finch_api/models/sandbox/directory_create_params.rbi +119 -3
  93. data/rbi/finch_api/models/sandbox/employment_update_params.rbi +38 -0
  94. data/rbi/finch_api/models/sandbox/employment_update_response.rbi +41 -3
  95. data/rbi/finch_api/models/sandbox/individual_update_params.rbi +78 -0
  96. data/rbi/finch_api/models/sandbox/individual_update_response.rbi +78 -0
  97. data/rbi/finch_api/resources/hris/benefits/individuals.rbi +8 -4
  98. data/rbi/finch_api/resources/hris/benefits.rbi +12 -6
  99. data/rbi/finch_api/resources/hris/company.rbi +2 -1
  100. data/rbi/finch_api/resources/hris/directory.rbi +2 -1
  101. data/rbi/finch_api/resources/hris/documents.rbi +4 -2
  102. data/rbi/finch_api/resources/hris/employments.rbi +2 -1
  103. data/rbi/finch_api/resources/hris/individuals.rbi +2 -1
  104. data/rbi/finch_api/resources/hris/pay_statement_item/rules.rbi +8 -4
  105. data/rbi/finch_api/resources/hris/pay_statement_item.rbi +2 -1
  106. data/rbi/finch_api/resources/hris/pay_statements.rbi +2 -1
  107. data/rbi/finch_api/resources/hris/payments.rbi +2 -1
  108. data/rbi/finch_api/resources/payroll/pay_groups.rbi +4 -2
  109. data/rbi/finch_api/resources/sandbox/employment.rbi +15 -0
  110. data/rbi/finch_api/resources/sandbox/individual.rbi +7 -0
  111. data/sig/finch_api/models/hris/employment_data.rbs +20 -0
  112. data/sig/finch_api/models/hris/individual.rbs +26 -0
  113. data/sig/finch_api/models/sandbox/directory_create_params.rbs +49 -3
  114. data/sig/finch_api/models/sandbox/employment_update_params.rbs +21 -1
  115. data/sig/finch_api/models/sandbox/employment_update_response.rbs +23 -3
  116. data/sig/finch_api/models/sandbox/individual_update_params.rbs +26 -0
  117. data/sig/finch_api/models/sandbox/individual_update_response.rbs +26 -0
  118. data/sig/finch_api/resources/sandbox/employment.rbs +4 -0
  119. data/sig/finch_api/resources/sandbox/individual.rbs +1 -0
  120. metadata +2 -2
@@ -57,6 +57,15 @@ module FinchAPI
57
57
  # @return [String, nil]
58
58
  optional :last_name, String, nil?: true
59
59
 
60
+ # @!attribute marital_status
61
+ # The employee's marital status, used for beneficiary designation and spousal
62
+ # consent workflows.
63
+ #
64
+ # @return [Symbol, FinchAPI::Models::Sandbox::IndividualUpdateResponse::MaritalStatus, nil]
65
+ optional :marital_status,
66
+ enum: -> { FinchAPI::Models::Sandbox::IndividualUpdateResponse::MaritalStatus },
67
+ nil?: true
68
+
60
69
  # @!attribute middle_name
61
70
  # The legal middle name of the individual.
62
71
  #
@@ -90,7 +99,7 @@ module FinchAPI
90
99
  # @return [String, nil]
91
100
  optional :ssn, String, nil?: true
92
101
 
93
- # @!method initialize(id: nil, dob: nil, emails: nil, encrypted_ssn: nil, ethnicity: nil, first_name: nil, gender: nil, last_name: nil, middle_name: nil, phone_numbers: nil, preferred_name: nil, residence: nil, ssn: nil)
102
+ # @!method initialize(id: nil, dob: nil, emails: nil, encrypted_ssn: nil, ethnicity: nil, first_name: nil, gender: nil, last_name: nil, marital_status: nil, middle_name: nil, phone_numbers: nil, preferred_name: nil, residence: nil, ssn: nil)
94
103
  # Some parameter documentations has been truncated, see
95
104
  # {FinchAPI::Models::Sandbox::IndividualUpdateResponse} for more details.
96
105
  #
@@ -110,6 +119,8 @@ module FinchAPI
110
119
  #
111
120
  # @param last_name [String, nil] The legal last name of the individual.
112
121
  #
122
+ # @param marital_status [Symbol, FinchAPI::Models::Sandbox::IndividualUpdateResponse::MaritalStatus, nil] The employee's marital status, used for beneficiary designation and spousal cons
123
+ #
113
124
  # @param middle_name [String, nil] The legal middle name of the individual.
114
125
  #
115
126
  # @param phone_numbers [Array<FinchAPI::Models::Sandbox::IndividualUpdateResponse::PhoneNumber, nil>, nil]
@@ -181,6 +192,24 @@ module FinchAPI
181
192
  # @return [Array<Symbol>]
182
193
  end
183
194
 
195
+ # The employee's marital status, used for beneficiary designation and spousal
196
+ # consent workflows.
197
+ #
198
+ # @see FinchAPI::Models::Sandbox::IndividualUpdateResponse#marital_status
199
+ module MaritalStatus
200
+ extend FinchAPI::Internal::Type::Enum
201
+
202
+ SINGLE = :single
203
+ MARRIED = :married
204
+ DIVORCED = :divorced
205
+ WIDOWED = :widowed
206
+ DOMESTIC_PARTNER = :domestic_partner
207
+ UNKNOWN = :unknown
208
+
209
+ # @!method self.values
210
+ # @return [Array<Symbol>]
211
+ end
212
+
184
213
  class PhoneNumber < FinchAPI::Internal::Type::BaseModel
185
214
  # @!attribute data
186
215
  #
@@ -5,6 +5,9 @@ module FinchAPI
5
5
  class HRIS
6
6
  class Benefits
7
7
  class Individuals
8
+ # Some parameter documentations has been truncated, see
9
+ # {FinchAPI::Models::HRIS::Benefits::IndividualEnrollManyParams} for more details.
10
+ #
8
11
  # Enroll an individual into a deduction or contribution. This is an overwrite
9
12
  # operation. If the employee is already enrolled, the enrollment amounts will be
10
13
  # adjusted. Making the same request multiple times will not create new
@@ -14,7 +17,7 @@ module FinchAPI
14
17
  #
15
18
  # @param benefit_id [String] Path param
16
19
  #
17
- # @param entity_ids [Array<String>] Query param: The entity IDs to specify which entities' data to access.
20
+ # @param entity_ids [Array<String>] Query param: The entity IDs to specify which entities' data to access. Provide e
18
21
  #
19
22
  # @param individuals [Array<FinchAPI::Models::HRIS::Benefits::IndividualEnrollManyParams::Individual>] Body param: Array of the individual_id to enroll and a configuration object.
20
23
  #
@@ -37,13 +40,17 @@ module FinchAPI
37
40
  )
38
41
  end
39
42
 
43
+ # Some parameter documentations has been truncated, see
44
+ # {FinchAPI::Models::HRIS::Benefits::IndividualEnrolledIDsParams} for more
45
+ # details.
46
+ #
40
47
  # Lists individuals currently enrolled in a given deduction.
41
48
  #
42
49
  # @overload enrolled_ids(benefit_id, entity_ids: nil, request_options: {})
43
50
  #
44
51
  # @param benefit_id [String]
45
52
  #
46
- # @param entity_ids [Array<String>] The entity IDs to specify which entities' data to access.
53
+ # @param entity_ids [Array<String>] The entity IDs to specify which entities' data to access. Provide exactly one en
47
54
  #
48
55
  # @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}, nil]
49
56
  #
@@ -73,7 +80,7 @@ module FinchAPI
73
80
  #
74
81
  # @param benefit_id [String]
75
82
  #
76
- # @param entity_ids [Array<String>] The entity IDs to specify which entities' data to access.
83
+ # @param entity_ids [Array<String>] The entity IDs to specify which entities' data to access. Provide exactly one en
77
84
  #
78
85
  # @param individual_ids [String] comma-delimited list of stable Finch uuids for each individual. If empty, defaul
79
86
  #
@@ -96,13 +103,17 @@ module FinchAPI
96
103
  )
97
104
  end
98
105
 
106
+ # Some parameter documentations has been truncated, see
107
+ # {FinchAPI::Models::HRIS::Benefits::IndividualUnenrollManyParams} for more
108
+ # details.
109
+ #
99
110
  # Unenroll individuals from a deduction or contribution
100
111
  #
101
112
  # @overload unenroll_many(benefit_id, entity_ids: nil, individual_ids: nil, request_options: {})
102
113
  #
103
114
  # @param benefit_id [String] Path param
104
115
  #
105
- # @param entity_ids [Array<String>] Query param: The entity IDs to specify which entities' data to access.
116
+ # @param entity_ids [Array<String>] Query param: The entity IDs to specify which entities' data to access. Provide e
106
117
  #
107
118
  # @param individual_ids [Array<String>] Body param: Array of individual_ids to unenroll.
108
119
  #
@@ -15,7 +15,7 @@ module FinchAPI
15
15
  #
16
16
  # @overload create(entity_ids: nil, company_contribution: nil, description: nil, frequency: nil, type: nil, request_options: {})
17
17
  #
18
- # @param entity_ids [Array<String>] Query param: The entity IDs to specify which entities' data to access.
18
+ # @param entity_ids [Array<String>] Query param: The entity IDs to specify which entities' data to access. Provide e
19
19
  #
20
20
  # @param company_contribution [FinchAPI::Models::HRIS::BenefitCreateParams::CompanyContribution, nil] Body param: The company match for this benefit.
21
21
  #
@@ -45,13 +45,16 @@ module FinchAPI
45
45
  )
46
46
  end
47
47
 
48
+ # Some parameter documentations has been truncated, see
49
+ # {FinchAPI::Models::HRIS::BenefitRetrieveParams} for more details.
50
+ #
48
51
  # Lists deductions and contributions information for a given item
49
52
  #
50
53
  # @overload retrieve(benefit_id, entity_ids: nil, request_options: {})
51
54
  #
52
55
  # @param benefit_id [String]
53
56
  #
54
- # @param entity_ids [Array<String>] The entity IDs to specify which entities' data to access.
57
+ # @param entity_ids [Array<String>] The entity IDs to specify which entities' data to access. Provide exactly one en
55
58
  #
56
59
  # @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}, nil]
57
60
  #
@@ -71,13 +74,16 @@ module FinchAPI
71
74
  )
72
75
  end
73
76
 
77
+ # Some parameter documentations has been truncated, see
78
+ # {FinchAPI::Models::HRIS::BenefitUpdateParams} for more details.
79
+ #
74
80
  # Updates an existing company-wide deduction or contribution
75
81
  #
76
82
  # @overload update(benefit_id, entity_ids: nil, description: nil, request_options: {})
77
83
  #
78
84
  # @param benefit_id [String] Path param
79
85
  #
80
- # @param entity_ids [Array<String>] Query param: The entity IDs to specify which entities' data to access.
86
+ # @param entity_ids [Array<String>] Query param: The entity IDs to specify which entities' data to access. Provide e
81
87
  #
82
88
  # @param description [String] Body param: Updated name or description.
83
89
  #
@@ -101,11 +107,14 @@ module FinchAPI
101
107
  )
102
108
  end
103
109
 
110
+ # Some parameter documentations has been truncated, see
111
+ # {FinchAPI::Models::HRIS::BenefitListParams} for more details.
112
+ #
104
113
  # List all company-wide deductions and contributions.
105
114
  #
106
115
  # @overload list(entity_ids: nil, request_options: {})
107
116
  #
108
- # @param entity_ids [Array<String>] The entity IDs to specify which entities' data to access.
117
+ # @param entity_ids [Array<String>] The entity IDs to specify which entities' data to access. Provide exactly one en
109
118
  #
110
119
  # @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}, nil]
111
120
  #
@@ -126,11 +135,14 @@ module FinchAPI
126
135
  )
127
136
  end
128
137
 
138
+ # Some parameter documentations has been truncated, see
139
+ # {FinchAPI::Models::HRIS::BenefitListSupportedBenefitsParams} for more details.
140
+ #
129
141
  # Get deductions metadata
130
142
  #
131
143
  # @overload list_supported_benefits(entity_ids: nil, request_options: {})
132
144
  #
133
- # @param entity_ids [Array<String>] The entity IDs to specify which entities' data to access.
145
+ # @param entity_ids [Array<String>] The entity IDs to specify which entities' data to access. Provide exactly one en
134
146
  #
135
147
  # @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}, nil]
136
148
  #
@@ -151,12 +163,15 @@ module FinchAPI
151
163
  )
152
164
  end
153
165
 
166
+ # Some parameter documentations has been truncated, see
167
+ # {FinchAPI::Models::HRIS::BenefitRegisterParams} for more details.
168
+ #
154
169
  # Register existing benefits from the customer on the provider, on Finch's end.
155
170
  # Please use the `/provider` endpoint to view available types for each provider.
156
171
  #
157
172
  # @overload register(entity_ids: nil, description: nil, frequency: nil, type: nil, request_options: {})
158
173
  #
159
- # @param entity_ids [Array<String>] Query param: The entity IDs to specify which entities' data to access.
174
+ # @param entity_ids [Array<String>] Query param: The entity IDs to specify which entities' data to access. Provide e
160
175
  #
161
176
  # @param description [String] Body param
162
177
  #
@@ -4,11 +4,14 @@ module FinchAPI
4
4
  module Resources
5
5
  class HRIS
6
6
  class Company
7
+ # Some parameter documentations has been truncated, see
8
+ # {FinchAPI::Models::HRIS::CompanyRetrieveParams} for more details.
9
+ #
7
10
  # Read basic company data
8
11
  #
9
12
  # @overload retrieve(entity_ids: nil, request_options: {})
10
13
  #
11
- # @param entity_ids [Array<String>] The entity IDs to specify which entities' data to access.
14
+ # @param entity_ids [Array<String>] The entity IDs to specify which entities' data to access. Provide exactly one en
12
15
  #
13
16
  # @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}, nil]
14
17
  #
@@ -4,11 +4,14 @@ module FinchAPI
4
4
  module Resources
5
5
  class HRIS
6
6
  class Directory
7
+ # Some parameter documentations has been truncated, see
8
+ # {FinchAPI::Models::HRIS::DirectoryListParams} for more details.
9
+ #
7
10
  # Read company directory and organization structure
8
11
  #
9
12
  # @overload list(entity_ids: nil, limit: nil, offset: nil, request_options: {})
10
13
  #
11
- # @param entity_ids [Array<String>] The entity IDs to specify which entities' data to access.
14
+ # @param entity_ids [Array<String>] The entity IDs to specify which entities' data to access. Provide exactly one en
12
15
  #
13
16
  # @param limit [Integer] Number of employees to return (defaults to 100, maximum 10000)
14
17
  #
@@ -12,7 +12,7 @@ module FinchAPI
12
12
  #
13
13
  # @overload list(entity_ids: nil, individual_ids: nil, limit: nil, offset: nil, types: nil, request_options: {})
14
14
  #
15
- # @param entity_ids [Array<String>] The entity IDs to specify which entities' data to access.
15
+ # @param entity_ids [Array<String>] The entity IDs to specify which entities' data to access. Provide exactly one en
16
16
  #
17
17
  # @param individual_ids [Array<String>] Comma-delimited list of stable Finch uuids for each individual. If empty, defaul
18
18
  #
@@ -40,6 +40,9 @@ module FinchAPI
40
40
  )
41
41
  end
42
42
 
43
+ # Some parameter documentations has been truncated, see
44
+ # {FinchAPI::Models::HRIS::DocumentRetreiveParams} for more details.
45
+ #
43
46
  # **Beta:** This endpoint is in beta and may change. Retrieve details of a
44
47
  # specific document by its ID.
45
48
  #
@@ -47,7 +50,7 @@ module FinchAPI
47
50
  #
48
51
  # @param document_id [String] The unique identifier of the document.
49
52
  #
50
- # @param entity_ids [Array<String>] The entity IDs to specify which entities' data to access.
53
+ # @param entity_ids [Array<String>] The entity IDs to specify which entities' data to access. Provide exactly one en
51
54
  #
52
55
  # @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}, nil]
53
56
  #
@@ -4,13 +4,16 @@ module FinchAPI
4
4
  module Resources
5
5
  class HRIS
6
6
  class Employments
7
+ # Some parameter documentations has been truncated, see
8
+ # {FinchAPI::Models::HRIS::EmploymentRetrieveManyParams} for more details.
9
+ #
7
10
  # Read individual employment and income data
8
11
  #
9
12
  # @overload retrieve_many(requests:, entity_ids: nil, request_options: {})
10
13
  #
11
14
  # @param requests [Array<FinchAPI::Models::HRIS::EmploymentRetrieveManyParams::Request>] Body param: The array of batch requests. Maximum 10000 items per request.
12
15
  #
13
- # @param entity_ids [Array<String>] Query param: The entity IDs to specify which entities' data to access.
16
+ # @param entity_ids [Array<String>] Query param: The entity IDs to specify which entities' data to access. Provide e
14
17
  #
15
18
  # @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}, nil]
16
19
  #
@@ -4,13 +4,16 @@ module FinchAPI
4
4
  module Resources
5
5
  class HRIS
6
6
  class Individuals
7
+ # Some parameter documentations has been truncated, see
8
+ # {FinchAPI::Models::HRIS::IndividualRetrieveManyParams} for more details.
9
+ #
7
10
  # Read individual data, excluding income and employment data
8
11
  #
9
12
  # @overload retrieve_many(requests:, entity_ids: nil, options: nil, request_options: {})
10
13
  #
11
14
  # @param requests [Array<FinchAPI::Models::HRIS::IndividualRetrieveManyParams::Request>] Body param: The array of batch requests. Maximum 10000 items per request.
12
15
  #
13
- # @param entity_ids [Array<String>] Query param: The entity IDs to specify which entities' data to access.
16
+ # @param entity_ids [Array<String>] Query param: The entity IDs to specify which entities' data to access. Provide e
14
17
  #
15
18
  # @param options [FinchAPI::Models::HRIS::IndividualRetrieveManyParams::Options, nil] Body param
16
19
  #
@@ -15,7 +15,7 @@ module FinchAPI
15
15
  #
16
16
  # @overload create(entity_ids: nil, attributes: nil, conditions: nil, effective_end_date: nil, effective_start_date: nil, entity_type: nil, request_options: {})
17
17
  #
18
- # @param entity_ids [Array<String>] Query param: The entity IDs to create the rule for.
18
+ # @param entity_ids [Array<String>] Query param: The entity IDs to create the rule for. Provide exactly one entity I
19
19
  #
20
20
  # @param attributes [FinchAPI::Models::HRIS::PayStatementItem::RuleCreateParams::Attributes] Body param: Specifies the fields to be applied when the condition is met.
21
21
  #
@@ -47,13 +47,16 @@ module FinchAPI
47
47
  )
48
48
  end
49
49
 
50
+ # Some parameter documentations has been truncated, see
51
+ # {FinchAPI::Models::HRIS::PayStatementItem::RuleUpdateParams} for more details.
52
+ #
50
53
  # Update a rule for a pay statement item.
51
54
  #
52
55
  # @overload update(rule_id, entity_ids: nil, optional_property: nil, request_options: {})
53
56
  #
54
57
  # @param rule_id [String] Path param
55
58
  #
56
- # @param entity_ids [Array<String>] Query param: The entity IDs to update the rule for.
59
+ # @param entity_ids [Array<String>] Query param: The entity IDs to update the rule for. Provide exactly one entity I
57
60
  #
58
61
  # @param optional_property [Object] Body param
59
62
  #
@@ -77,11 +80,14 @@ module FinchAPI
77
80
  )
78
81
  end
79
82
 
83
+ # Some parameter documentations has been truncated, see
84
+ # {FinchAPI::Models::HRIS::PayStatementItem::RuleListParams} for more details.
85
+ #
80
86
  # List all rules of a connection account.
81
87
  #
82
88
  # @overload list(entity_ids: nil, request_options: {})
83
89
  #
84
- # @param entity_ids [Array<String>] The entity IDs to retrieve rules for.
90
+ # @param entity_ids [Array<String>] The entity IDs to retrieve rules for. Provide exactly one entity ID per request;
85
91
  #
86
92
  # @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}, nil]
87
93
  #
@@ -102,13 +108,16 @@ module FinchAPI
102
108
  )
103
109
  end
104
110
 
111
+ # Some parameter documentations has been truncated, see
112
+ # {FinchAPI::Models::HRIS::PayStatementItem::RuleDeleteParams} for more details.
113
+ #
105
114
  # Delete a rule for a pay statement item.
106
115
  #
107
116
  # @overload delete(rule_id, entity_ids: nil, request_options: {})
108
117
  #
109
118
  # @param rule_id [String]
110
119
  #
111
- # @param entity_ids [Array<String>] The entity IDs to delete the rule for.
120
+ # @param entity_ids [Array<String>] The entity IDs to delete the rule for. Provide exactly one entity ID per request
112
121
  #
113
122
  # @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}, nil]
114
123
  #
@@ -19,7 +19,7 @@ module FinchAPI
19
19
  #
20
20
  # @param end_date [Date] The end date to retrieve pay statement items by via their last seen pay date in
21
21
  #
22
- # @param entity_ids [Array<String>] The entity IDs to specify which entities' data to access.
22
+ # @param entity_ids [Array<String>] The entity IDs to specify which entities' data to access. Provide exactly one en
23
23
  #
24
24
  # @param name [String] Case-insensitive partial match search by pay statement item name.
25
25
  #
@@ -4,6 +4,9 @@ module FinchAPI
4
4
  module Resources
5
5
  class HRIS
6
6
  class PayStatements
7
+ # Some parameter documentations has been truncated, see
8
+ # {FinchAPI::Models::HRIS::PayStatementRetrieveManyParams} for more details.
9
+ #
7
10
  # Read detailed pay statements for each individual.
8
11
  #
9
12
  # Deduction and contribution types are supported by the payroll systems that
@@ -13,7 +16,7 @@ module FinchAPI
13
16
  #
14
17
  # @param requests [Array<FinchAPI::Models::HRIS::PayStatementRetrieveManyParams::Request>] Body param: The array of batch requests. Maximum 10 payment_ids per request.
15
18
  #
16
- # @param entity_ids [Array<String>] Query param: The entity IDs to specify which entities' data to access.
19
+ # @param entity_ids [Array<String>] Query param: The entity IDs to specify which entities' data to access. Provide e
17
20
  #
18
21
  # @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}, nil]
19
22
  #
@@ -15,7 +15,7 @@ module FinchAPI
15
15
  #
16
16
  # @param start_date [Date] The start date to retrieve payments by a company (inclusive) in `YYYY-MM-DD` for
17
17
  #
18
- # @param entity_ids [Array<String>] The entity IDs to specify which entities' data to access.
18
+ # @param entity_ids [Array<String>] The entity IDs to specify which entities' data to access. Provide exactly one en
19
19
  #
20
20
  # @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}, nil]
21
21
  #
@@ -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
  #
@@ -9,7 +9,7 @@ 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, income: nil, income_history: nil, is_active: nil, last_name: nil, latest_rehire_date: nil, location: nil, manager: nil, middle_name: nil, source_id: nil, start_date: nil, title: nil, request_options: {})
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: {})
13
13
  #
14
14
  # @param individual_id [String]
15
15
  #
@@ -29,12 +29,16 @@ module FinchAPI
29
29
  #
30
30
  # @param flsa_status [Symbol, FinchAPI::Models::Sandbox::EmploymentUpdateParams::FlsaStatus, nil] The FLSA status of the individual. Available options: `exempt`, `non_exempt`, `u
31
31
  #
32
+ # @param highly_compensated_employee [Boolean, nil] IRS flag indicating whether the employee is classified as a Highly Compensated E
33
+ #
32
34
  # @param income [FinchAPI::Models::Income, nil] The employee's income as reported by the provider. This may not always be annual
33
35
  #
34
36
  # @param income_history [Array<FinchAPI::Models::Income, nil>, nil] The array of income history.
35
37
  #
36
38
  # @param is_active [Boolean, nil] `true` if the individual an an active employee or contractor at the company.
37
39
  #
40
+ # @param key_employee [Boolean, nil] IRS flag indicating whether the employee is classified as a Key Employee for top
41
+ #
38
42
  # @param last_name [String, nil] The legal last name of the individual.
39
43
  #
40
44
  # @param latest_rehire_date [String, nil]
@@ -51,6 +55,10 @@ module FinchAPI
51
55
  #
52
56
  # @param title [String, nil] The current title of the individual.
53
57
  #
58
+ # @param union_code [String, nil] The code identifying the union the employee is a member of, as configured in the
59
+ #
60
+ # @param union_local [String, nil] The local chapter or local number within the employee's union.
61
+ #
54
62
  # @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}, nil]
55
63
  #
56
64
  # @return [FinchAPI::Models::Sandbox::EmploymentUpdateResponse]
@@ -9,7 +9,7 @@ module FinchAPI
9
9
  #
10
10
  # Update sandbox individual
11
11
  #
12
- # @overload update(individual_id, dob: nil, emails: nil, encrypted_ssn: nil, ethnicity: nil, first_name: nil, gender: nil, last_name: nil, middle_name: nil, phone_numbers: nil, preferred_name: nil, residence: nil, ssn: nil, request_options: {})
12
+ # @overload update(individual_id, dob: nil, emails: nil, encrypted_ssn: nil, ethnicity: nil, first_name: nil, gender: nil, last_name: nil, marital_status: nil, middle_name: nil, phone_numbers: nil, preferred_name: nil, residence: nil, ssn: nil, request_options: {})
13
13
  #
14
14
  # @param individual_id [String]
15
15
  #
@@ -27,6 +27,8 @@ module FinchAPI
27
27
  #
28
28
  # @param last_name [String, nil] The legal last name of the individual.
29
29
  #
30
+ # @param marital_status [Symbol, FinchAPI::Models::Sandbox::IndividualUpdateParams::MaritalStatus, nil] The employee's marital status, used for beneficiary designation and spousal cons
31
+ #
30
32
  # @param middle_name [String, nil] The legal middle name of the individual.
31
33
  #
32
34
  # @param phone_numbers [Array<FinchAPI::Models::Sandbox::IndividualUpdateParams::PhoneNumber, nil>, nil]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FinchAPI
4
- VERSION = "0.1.0.pre.alpha.48"
4
+ VERSION = "0.1.0.pre.alpha.50"
5
5
  end
@@ -14,8 +14,7 @@ module FinchAPI
14
14
  sig { returns(String) }
15
15
  attr_accessor :account_id
16
16
 
17
- # [DEPRECATED] Unique Finch ID of the company for which data has been updated. Use
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
- # [DEPRECATED] Unique Finch ID of the company for which data has been updated. Use
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
- # [DEPRECATED] Use `connection_id` to identify the connection instead of this
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
- # [DEPRECATED] Use `connection_id` to identify the connection instead of this
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.