finch-api 0.1.0.pre.alpha.59 → 0.1.0.pre.alpha.61

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +25 -0
  3. data/README.md +1 -1
  4. data/lib/finch_api/models/access_token_create_params.rb +8 -2
  5. data/lib/finch_api/models/account_update_event.rb +328 -8
  6. data/lib/finch_api/models/connect/session_new_params.rb +4 -2
  7. data/lib/finch_api/models/connect/session_reauthenticate_params.rb +4 -2
  8. data/lib/finch_api/models/hris/benefit_create_params.rb +3 -1
  9. data/lib/finch_api/models/hris/benefit_list_params.rb +3 -1
  10. data/lib/finch_api/models/hris/benefit_list_supported_benefits_params.rb +3 -1
  11. data/lib/finch_api/models/hris/benefit_register_params.rb +3 -1
  12. data/lib/finch_api/models/hris/benefit_retrieve_params.rb +3 -1
  13. data/lib/finch_api/models/hris/benefit_update_params.rb +3 -1
  14. data/lib/finch_api/models/hris/benefits/individual_enroll_many_params.rb +3 -1
  15. data/lib/finch_api/models/hris/benefits/individual_enrolled_ids_params.rb +3 -1
  16. data/lib/finch_api/models/hris/benefits/individual_retrieve_many_benefits_params.rb +3 -1
  17. data/lib/finch_api/models/hris/benefits/individual_unenroll_many_params.rb +3 -1
  18. data/lib/finch_api/models/hris/company_retrieve_params.rb +3 -1
  19. data/lib/finch_api/models/hris/directory_list_individuals_params.rb +3 -1
  20. data/lib/finch_api/models/hris/directory_list_params.rb +3 -1
  21. data/lib/finch_api/models/hris/document_list_params.rb +3 -1
  22. data/lib/finch_api/models/hris/document_retreive_params.rb +3 -1
  23. data/lib/finch_api/models/hris/employment_data.rb +11 -1
  24. data/lib/finch_api/models/hris/employment_retrieve_many_params.rb +3 -1
  25. data/lib/finch_api/models/hris/individual_retrieve_many_params.rb +3 -1
  26. data/lib/finch_api/models/hris/pay_statement_item/rule_create_params.rb +3 -1
  27. data/lib/finch_api/models/hris/pay_statement_item/rule_delete_params.rb +3 -1
  28. data/lib/finch_api/models/hris/pay_statement_item/rule_list_params.rb +3 -1
  29. data/lib/finch_api/models/hris/pay_statement_item/rule_update_params.rb +3 -1
  30. data/lib/finch_api/models/hris/pay_statement_item_list_params.rb +3 -1
  31. data/lib/finch_api/models/hris/pay_statement_retrieve_many_params.rb +3 -1
  32. data/lib/finch_api/models/hris/payment_list_params.rb +3 -1
  33. data/lib/finch_api/models/payroll/pay_group_list_params.rb +3 -1
  34. data/lib/finch_api/models/payroll/pay_group_retrieve_params.rb +3 -1
  35. data/lib/finch_api/models/provider.rb +1371 -4
  36. data/lib/finch_api/models/provider_list_response.rb +1387 -4
  37. data/lib/finch_api/models/sandbox/directory_create_params.rb +11 -1
  38. data/lib/finch_api/models/sandbox/employment_update_params.rb +11 -1
  39. data/lib/finch_api/models/sandbox/employment_update_response.rb +11 -1
  40. data/lib/finch_api/resources/access_tokens.rb +4 -1
  41. data/lib/finch_api/resources/connect/sessions.rb +2 -2
  42. data/lib/finch_api/resources/sandbox/employment.rb +3 -1
  43. data/lib/finch_api/version.rb +1 -1
  44. data/rbi/finch_api/models/access_token_create_params.rbi +8 -2
  45. data/rbi/finch_api/models/account_update_event.rbi +738 -15
  46. data/rbi/finch_api/models/connect/session_new_params.rbi +6 -2
  47. data/rbi/finch_api/models/connect/session_reauthenticate_params.rbi +6 -2
  48. data/rbi/finch_api/models/hris/benefit_create_params.rbi +6 -2
  49. data/rbi/finch_api/models/hris/benefit_list_params.rbi +6 -2
  50. data/rbi/finch_api/models/hris/benefit_list_supported_benefits_params.rbi +6 -2
  51. data/rbi/finch_api/models/hris/benefit_register_params.rbi +6 -2
  52. data/rbi/finch_api/models/hris/benefit_retrieve_params.rbi +6 -2
  53. data/rbi/finch_api/models/hris/benefit_update_params.rbi +6 -2
  54. data/rbi/finch_api/models/hris/benefits/individual_enroll_many_params.rbi +6 -2
  55. data/rbi/finch_api/models/hris/benefits/individual_enrolled_ids_params.rbi +6 -2
  56. data/rbi/finch_api/models/hris/benefits/individual_retrieve_many_benefits_params.rbi +6 -2
  57. data/rbi/finch_api/models/hris/benefits/individual_unenroll_many_params.rbi +6 -2
  58. data/rbi/finch_api/models/hris/company_retrieve_params.rbi +6 -2
  59. data/rbi/finch_api/models/hris/directory_list_individuals_params.rbi +6 -2
  60. data/rbi/finch_api/models/hris/directory_list_params.rbi +6 -2
  61. data/rbi/finch_api/models/hris/document_list_params.rbi +6 -2
  62. data/rbi/finch_api/models/hris/document_retreive_params.rbi +6 -2
  63. data/rbi/finch_api/models/hris/employment_data.rbi +12 -0
  64. data/rbi/finch_api/models/hris/employment_retrieve_many_params.rbi +6 -2
  65. data/rbi/finch_api/models/hris/individual_retrieve_many_params.rbi +6 -2
  66. data/rbi/finch_api/models/hris/pay_statement_item/rule_create_params.rbi +6 -2
  67. data/rbi/finch_api/models/hris/pay_statement_item/rule_delete_params.rbi +6 -2
  68. data/rbi/finch_api/models/hris/pay_statement_item/rule_list_params.rbi +6 -2
  69. data/rbi/finch_api/models/hris/pay_statement_item/rule_update_params.rbi +6 -2
  70. data/rbi/finch_api/models/hris/pay_statement_item_list_params.rbi +6 -2
  71. data/rbi/finch_api/models/hris/pay_statement_retrieve_many_params.rbi +6 -2
  72. data/rbi/finch_api/models/hris/payment_list_params.rbi +6 -2
  73. data/rbi/finch_api/models/payroll/pay_group_list_params.rbi +6 -2
  74. data/rbi/finch_api/models/payroll/pay_group_retrieve_params.rbi +6 -2
  75. data/rbi/finch_api/models/provider.rbi +3137 -6
  76. data/rbi/finch_api/models/provider_list_response.rbi +3139 -6
  77. data/rbi/finch_api/models/sandbox/directory_create_params.rbi +12 -0
  78. data/rbi/finch_api/models/sandbox/employment_update_params.rbi +12 -0
  79. data/rbi/finch_api/models/sandbox/employment_update_response.rbi +12 -0
  80. data/rbi/finch_api/resources/access_tokens.rbi +4 -1
  81. data/rbi/finch_api/resources/connect/sessions.rbi +6 -2
  82. data/rbi/finch_api/resources/hris/benefits/individuals.rbi +12 -4
  83. data/rbi/finch_api/resources/hris/benefits.rbi +18 -6
  84. data/rbi/finch_api/resources/hris/company.rbi +3 -1
  85. data/rbi/finch_api/resources/hris/directory.rbi +3 -1
  86. data/rbi/finch_api/resources/hris/documents.rbi +6 -2
  87. data/rbi/finch_api/resources/hris/employments.rbi +3 -1
  88. data/rbi/finch_api/resources/hris/individuals.rbi +3 -1
  89. data/rbi/finch_api/resources/hris/pay_statement_item/rules.rbi +12 -4
  90. data/rbi/finch_api/resources/hris/pay_statement_item.rbi +3 -1
  91. data/rbi/finch_api/resources/hris/pay_statements.rbi +3 -1
  92. data/rbi/finch_api/resources/hris/payments.rbi +3 -1
  93. data/rbi/finch_api/resources/payroll/pay_groups.rbi +6 -2
  94. data/rbi/finch_api/resources/sandbox/employment.rbi +5 -0
  95. data/sig/finch_api/models/account_update_event.rbs +405 -17
  96. data/sig/finch_api/models/hris/employment_data.rbs +5 -0
  97. data/sig/finch_api/models/provider.rbs +1722 -6
  98. data/sig/finch_api/models/provider_list_response.rbs +1722 -6
  99. data/sig/finch_api/models/sandbox/directory_create_params.rbs +5 -0
  100. data/sig/finch_api/models/sandbox/employment_update_params.rbs +5 -0
  101. data/sig/finch_api/models/sandbox/employment_update_response.rbs +5 -0
  102. data/sig/finch_api/resources/sandbox/employment.rbs +1 -0
  103. metadata +2 -2
@@ -67,6 +67,12 @@ module FinchAPI
67
67
  )
68
68
  end
69
69
 
70
+ # The employer defined benefit eligibility class that groups an employee into a
71
+ # set of eligible benefit plans, as stored by the provider. Null when not
72
+ # configured.
73
+ sig { returns(T.nilable(String)) }
74
+ attr_accessor :benefit_eligibility_class
75
+
70
76
  # Worker's compensation classification code for this employee
71
77
  sig { returns(T.nilable(String)) }
72
78
  attr_accessor :class_code
@@ -316,6 +322,7 @@ module FinchAPI
316
322
 
317
323
  sig do
318
324
  params(
325
+ benefit_eligibility_class: T.nilable(String),
319
326
  class_code: T.nilable(String),
320
327
  custom_fields:
321
328
  T.nilable(
@@ -394,6 +401,10 @@ module FinchAPI
394
401
  ).returns(T.attached_class)
395
402
  end
396
403
  def self.new(
404
+ # The employer defined benefit eligibility class that groups an employee into a
405
+ # set of eligible benefit plans, as stored by the provider. Null when not
406
+ # configured.
407
+ benefit_eligibility_class: nil,
397
408
  # Worker's compensation classification code for this employee
398
409
  class_code: nil,
399
410
  # Custom fields for the individual. These are fields which are defined by the
@@ -472,6 +483,7 @@ module FinchAPI
472
483
  sig do
473
484
  override.returns(
474
485
  {
486
+ benefit_eligibility_class: T.nilable(String),
475
487
  class_code: T.nilable(String),
476
488
  custom_fields:
477
489
  T.nilable(
@@ -18,6 +18,12 @@ module FinchAPI
18
18
  sig { returns(String) }
19
19
  attr_accessor :individual_id
20
20
 
21
+ # The employer defined benefit eligibility class that groups an employee into a
22
+ # set of eligible benefit plans, as stored by the provider. Null when not
23
+ # configured.
24
+ sig { returns(T.nilable(String)) }
25
+ attr_accessor :benefit_eligibility_class
26
+
21
27
  # Worker's compensation classification code for this employee
22
28
  sig { returns(T.nilable(String)) }
23
29
  attr_accessor :class_code
@@ -181,6 +187,7 @@ module FinchAPI
181
187
  sig do
182
188
  params(
183
189
  individual_id: String,
190
+ benefit_eligibility_class: T.nilable(String),
184
191
  class_code: T.nilable(String),
185
192
  custom_fields:
186
193
  T.nilable(
@@ -230,6 +237,10 @@ module FinchAPI
230
237
  end
231
238
  def self.new(
232
239
  individual_id:,
240
+ # The employer defined benefit eligibility class that groups an employee into a
241
+ # set of eligible benefit plans, as stored by the provider. Null when not
242
+ # configured.
243
+ benefit_eligibility_class: nil,
233
244
  # Worker's compensation classification code for this employee
234
245
  class_code: nil,
235
246
  # Custom fields for the individual. These are fields which are defined by the
@@ -288,6 +299,7 @@ module FinchAPI
288
299
  override.returns(
289
300
  {
290
301
  individual_id: String,
302
+ benefit_eligibility_class: T.nilable(String),
291
303
  class_code: T.nilable(String),
292
304
  custom_fields:
293
305
  T.nilable(
@@ -19,6 +19,12 @@ module FinchAPI
19
19
  sig { params(id: String).void }
20
20
  attr_writer :id
21
21
 
22
+ # The employer defined benefit eligibility class that groups an employee into a
23
+ # set of eligible benefit plans, as stored by the provider. Null when not
24
+ # configured.
25
+ sig { returns(T.nilable(String)) }
26
+ attr_accessor :benefit_eligibility_class
27
+
22
28
  # Worker's compensation classification code for this employee
23
29
  sig { returns(T.nilable(String)) }
24
30
  attr_accessor :class_code
@@ -192,6 +198,7 @@ module FinchAPI
192
198
  sig do
193
199
  params(
194
200
  id: String,
201
+ benefit_eligibility_class: T.nilable(String),
195
202
  class_code: T.nilable(String),
196
203
  custom_fields:
197
204
  T.nilable(
@@ -241,6 +248,10 @@ module FinchAPI
241
248
  def self.new(
242
249
  # A stable Finch `id` (UUID v4) for an individual in the company.
243
250
  id: nil,
251
+ # The employer defined benefit eligibility class that groups an employee into a
252
+ # set of eligible benefit plans, as stored by the provider. Null when not
253
+ # configured.
254
+ benefit_eligibility_class: nil,
244
255
  # Worker's compensation classification code for this employee
245
256
  class_code: nil,
246
257
  # Custom fields for the individual. These are fields which are defined by the
@@ -298,6 +309,7 @@ module FinchAPI
298
309
  override.returns(
299
310
  {
300
311
  id: String,
312
+ benefit_eligibility_class: T.nilable(String),
301
313
  class_code: T.nilable(String),
302
314
  custom_fields:
303
315
  T.nilable(
@@ -20,7 +20,10 @@ module FinchAPI
20
20
  client_id: nil,
21
21
  # The client secret for your application
22
22
  client_secret: nil,
23
- # The redirect URI used in the authorization request (optional)
23
+ # The redirect URI used when creating the Connect session. Required if the
24
+ # authorization code came from the redirect flow, and it must match the
25
+ # `redirect_uri` used to create the session. Omit it if the code came from the
26
+ # embedded flow (Connect SDK).
24
27
  redirect_uri: nil,
25
28
  request_options: {}
26
29
  )
@@ -50,7 +50,9 @@ module FinchAPI
50
50
  # `recordkeeping` product is requested. Currently supports `recordkeeper` set to
51
51
  # `voya`, `empower`, `fidelity`, or `transamerica`.
52
52
  recordkeeping: nil,
53
- # The URI to redirect to after the Connect flow is completed
53
+ # The URI to redirect to after the Connect flow is completed. Required if you use
54
+ # the redirect flow, and it must be registered on the Credentials tab of the Finch
55
+ # Developer Dashboard. Omit it for the embedded flow (Connect SDK).
54
56
  redirect_uri: nil,
55
57
  # Sandbox mode for testing
56
58
  sandbox: nil,
@@ -83,7 +85,9 @@ module FinchAPI
83
85
  # `benefits` to access deductions endpoints — `deduction` is a deprecated alias
84
86
  # that is still accepted but should not be combined with `benefits`.
85
87
  products: nil,
86
- # The URI to redirect to after the Connect flow is completed
88
+ # The URI to redirect to after the Connect flow is completed. Required if you use
89
+ # the redirect flow, and it must be registered on the Credentials tab of the Finch
90
+ # Developer Dashboard. Omit it for the embedded flow (Connect SDK).
87
91
  redirect_uri: nil,
88
92
  request_options: {}
89
93
  )
@@ -26,7 +26,9 @@ module FinchAPI
26
26
  # Path param
27
27
  benefit_id,
28
28
  # Query param: The entity IDs to specify which entities' data to access. Provide
29
- # exactly one entity ID per request; a maximum of one is accepted.
29
+ # exactly one entity ID per request; a maximum of one is accepted. Required when
30
+ # the connection has more than one entity — omitting it returns a `400`
31
+ # `invalid_request_error`. Optional for single-entity connections.
30
32
  entity_ids: nil,
31
33
  # Body param: Array of the individual_id to enroll and a configuration object.
32
34
  individuals: nil,
@@ -47,7 +49,9 @@ module FinchAPI
47
49
  def enrolled_ids(
48
50
  benefit_id,
49
51
  # The entity IDs to specify which entities' data to access. Provide exactly one
50
- # entity ID per request; a maximum of one is accepted.
52
+ # entity ID per request; a maximum of one is accepted. Required when the
53
+ # connection has more than one entity — omitting it returns a `400`
54
+ # `invalid_request_error`. Optional for single-entity connections.
51
55
  entity_ids: nil,
52
56
  request_options: {}
53
57
  )
@@ -69,7 +73,9 @@ module FinchAPI
69
73
  def retrieve_many_benefits(
70
74
  benefit_id,
71
75
  # The entity IDs to specify which entities' data to access. Provide exactly one
72
- # entity ID per request; a maximum of one is accepted.
76
+ # entity ID per request; a maximum of one is accepted. Required when the
77
+ # connection has more than one entity — omitting it returns a `400`
78
+ # `invalid_request_error`. Optional for single-entity connections.
73
79
  entity_ids: nil,
74
80
  # comma-delimited list of stable Finch uuids for each individual. If empty,
75
81
  # defaults to all individuals
@@ -93,7 +99,9 @@ module FinchAPI
93
99
  # Path param
94
100
  benefit_id,
95
101
  # Query param: The entity IDs to specify which entities' data to access. Provide
96
- # exactly one entity ID per request; a maximum of one is accepted.
102
+ # exactly one entity ID per request; a maximum of one is accepted. Required when
103
+ # the connection has more than one entity — omitting it returns a `400`
104
+ # `invalid_request_error`. Optional for single-entity connections.
97
105
  entity_ids: nil,
98
106
  # Body param: Array of individual_ids to unenroll.
99
107
  individual_ids: nil,
@@ -24,7 +24,9 @@ module FinchAPI
24
24
  end
25
25
  def create(
26
26
  # Query param: The entity IDs to specify which entities' data to access. Provide
27
- # exactly one entity ID per request; a maximum of one is accepted.
27
+ # exactly one entity ID per request; a maximum of one is accepted. Required when
28
+ # the connection has more than one entity — omitting it returns a `400`
29
+ # `invalid_request_error`. Optional for single-entity connections.
28
30
  entity_ids: nil,
29
31
  # Body param: The company match for this benefit.
30
32
  company_contribution: nil,
@@ -51,7 +53,9 @@ module FinchAPI
51
53
  def retrieve(
52
54
  benefit_id,
53
55
  # The entity IDs to specify which entities' data to access. Provide exactly one
54
- # entity ID per request; a maximum of one is accepted.
56
+ # entity ID per request; a maximum of one is accepted. Required when the
57
+ # connection has more than one entity — omitting it returns a `400`
58
+ # `invalid_request_error`. Optional for single-entity connections.
55
59
  entity_ids: nil,
56
60
  request_options: {}
57
61
  )
@@ -70,7 +74,9 @@ module FinchAPI
70
74
  # Path param
71
75
  benefit_id,
72
76
  # Query param: The entity IDs to specify which entities' data to access. Provide
73
- # exactly one entity ID per request; a maximum of one is accepted.
77
+ # exactly one entity ID per request; a maximum of one is accepted. Required when
78
+ # the connection has more than one entity — omitting it returns a `400`
79
+ # `invalid_request_error`. Optional for single-entity connections.
74
80
  entity_ids: nil,
75
81
  # Body param: Updated name or description.
76
82
  description: nil,
@@ -89,7 +95,9 @@ module FinchAPI
89
95
  end
90
96
  def list(
91
97
  # The entity IDs to specify which entities' data to access. Provide exactly one
92
- # entity ID per request; a maximum of one is accepted.
98
+ # entity ID per request; a maximum of one is accepted. Required when the
99
+ # connection has more than one entity — omitting it returns a `400`
100
+ # `invalid_request_error`. Optional for single-entity connections.
93
101
  entity_ids: nil,
94
102
  request_options: {}
95
103
  )
@@ -106,7 +114,9 @@ module FinchAPI
106
114
  end
107
115
  def list_supported_benefits(
108
116
  # The entity IDs to specify which entities' data to access. Provide exactly one
109
- # entity ID per request; a maximum of one is accepted.
117
+ # entity ID per request; a maximum of one is accepted. Required when the
118
+ # connection has more than one entity — omitting it returns a `400`
119
+ # `invalid_request_error`. Optional for single-entity connections.
110
120
  entity_ids: nil,
111
121
  request_options: {}
112
122
  )
@@ -125,7 +135,9 @@ module FinchAPI
125
135
  end
126
136
  def register(
127
137
  # Query param: The entity IDs to specify which entities' data to access. Provide
128
- # exactly one entity ID per request; a maximum of one is accepted.
138
+ # exactly one entity ID per request; a maximum of one is accepted. Required when
139
+ # the connection has more than one entity — omitting it returns a `400`
140
+ # `invalid_request_error`. Optional for single-entity connections.
129
141
  entity_ids: nil,
130
142
  # Body param
131
143
  description: nil,
@@ -13,7 +13,9 @@ module FinchAPI
13
13
  end
14
14
  def retrieve(
15
15
  # The entity IDs to specify which entities' data to access. Provide exactly one
16
- # entity ID per request; a maximum of one is accepted.
16
+ # entity ID per request; a maximum of one is accepted. Required when the
17
+ # connection has more than one entity — omitting it returns a `400`
18
+ # `invalid_request_error`. Optional for single-entity connections.
17
19
  entity_ids: nil,
18
20
  request_options: {}
19
21
  )
@@ -19,7 +19,9 @@ module FinchAPI
19
19
  end
20
20
  def list(
21
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
+ # entity ID per request; a maximum of one is accepted. Required when the
23
+ # connection has more than one entity — omitting it returns a `400`
24
+ # `invalid_request_error`. Optional for single-entity connections.
23
25
  entity_ids: nil,
24
26
  # Number of employees to return (defaults to 100, maximum 10000)
25
27
  limit: nil,
@@ -18,7 +18,9 @@ module FinchAPI
18
18
  end
19
19
  def list(
20
20
  # The entity IDs to specify which entities' data to access. Provide exactly one
21
- # entity ID per request; a maximum of one is accepted.
21
+ # entity ID per request; a maximum of one is accepted. Required when the
22
+ # connection has more than one entity — omitting it returns a `400`
23
+ # `invalid_request_error`. Optional for single-entity connections.
22
24
  entity_ids: nil,
23
25
  # Comma-delimited list of stable Finch uuids for each individual. If empty,
24
26
  # defaults to all individuals
@@ -47,7 +49,9 @@ module FinchAPI
47
49
  # The unique identifier of the document.
48
50
  document_id,
49
51
  # The entity IDs to specify which entities' data to access. Provide exactly one
50
- # entity ID per request; a maximum of one is accepted.
52
+ # entity ID per request; a maximum of one is accepted. Required when the
53
+ # connection has more than one entity — omitting it returns a `400`
54
+ # `invalid_request_error`. Optional for single-entity connections.
51
55
  entity_ids: nil,
52
56
  request_options: {}
53
57
  )
@@ -23,7 +23,9 @@ module FinchAPI
23
23
  # Body param: The array of batch requests. Maximum 10000 items per request.
24
24
  requests:,
25
25
  # Query param: The entity IDs to specify which entities' data to access. Provide
26
- # exactly one entity ID per request; a maximum of one is accepted.
26
+ # exactly one entity ID per request; a maximum of one is accepted. Required when
27
+ # the connection has more than one entity — omitting it returns a `400`
28
+ # `invalid_request_error`. Optional for single-entity connections.
27
29
  entity_ids: nil,
28
30
  request_options: {}
29
31
  )
@@ -27,7 +27,9 @@ module FinchAPI
27
27
  # Body param: The array of batch requests. Maximum 10000 items per request.
28
28
  requests:,
29
29
  # Query param: The entity IDs to specify which entities' data to access. Provide
30
- # exactly one entity ID per request; a maximum of one is accepted.
30
+ # exactly one entity ID per request; a maximum of one is accepted. Required when
31
+ # the connection has more than one entity — omitting it returns a `400`
32
+ # `invalid_request_error`. Optional for single-entity connections.
31
33
  entity_ids: nil,
32
34
  # Body param
33
35
  options: nil,
@@ -29,7 +29,9 @@ module FinchAPI
29
29
  end
30
30
  def create(
31
31
  # Query param: The entity IDs to create the rule for. Provide exactly one entity
32
- # ID per request; a maximum of one is accepted.
32
+ # ID per request; a maximum of one is accepted. Required when the connection has
33
+ # more than one entity — omitting it returns a `400` `invalid_request_error`.
34
+ # Optional for single-entity connections.
33
35
  entity_ids: nil,
34
36
  # Body param: Specifies the fields to be applied when the condition is met.
35
37
  attributes: nil,
@@ -61,7 +63,9 @@ module FinchAPI
61
63
  # Path param
62
64
  rule_id,
63
65
  # Query param: The entity IDs to update the rule for. Provide exactly one entity
64
- # ID per request; a maximum of one is accepted.
66
+ # ID per request; a maximum of one is accepted. Required when the connection has
67
+ # more than one entity — omitting it returns a `400` `invalid_request_error`.
68
+ # Optional for single-entity connections.
65
69
  entity_ids: nil,
66
70
  # Body param
67
71
  optional_property: nil,
@@ -82,7 +86,9 @@ module FinchAPI
82
86
  end
83
87
  def list(
84
88
  # The entity IDs to retrieve rules for. Provide exactly one entity ID per request;
85
- # a maximum of one is accepted.
89
+ # a maximum of one is accepted. Required when the connection has more than one
90
+ # entity — omitting it returns a `400` `invalid_request_error`. Optional for
91
+ # single-entity connections.
86
92
  entity_ids: nil,
87
93
  request_options: {}
88
94
  )
@@ -101,7 +107,9 @@ module FinchAPI
101
107
  def delete(
102
108
  rule_id,
103
109
  # The entity IDs to delete the rule for. Provide exactly one entity ID per
104
- # request; a maximum of one is accepted.
110
+ # request; a maximum of one is accepted. Required when the connection has more
111
+ # than one entity — omitting it returns a `400` `invalid_request_error`. Optional
112
+ # for single-entity connections.
105
113
  entity_ids: nil,
106
114
  request_options: {}
107
115
  )
@@ -35,7 +35,9 @@ module FinchAPI
35
35
  # `YYYY-MM-DD` format.
36
36
  end_date: nil,
37
37
  # The entity IDs to specify which entities' data to access. Provide exactly one
38
- # entity ID per request; a maximum of one is accepted.
38
+ # entity ID per request; a maximum of one is accepted. Required when the
39
+ # connection has more than one entity — omitting it returns a `400`
40
+ # `invalid_request_error`. Optional for single-entity connections.
39
41
  entity_ids: nil,
40
42
  # Case-insensitive partial match search by pay statement item name.
41
43
  name: nil,
@@ -26,7 +26,9 @@ module FinchAPI
26
26
  # Body param: The array of batch requests. Maximum 10 payment_ids per request.
27
27
  requests:,
28
28
  # Query param: The entity IDs to specify which entities' data to access. Provide
29
- # exactly one entity ID per request; a maximum of one is accepted.
29
+ # exactly one entity ID per request; a maximum of one is accepted. Required when
30
+ # the connection has more than one entity — omitting it returns a `400`
31
+ # `invalid_request_error`. Optional for single-entity connections.
30
32
  entity_ids: nil,
31
33
  request_options: {}
32
34
  )
@@ -21,7 +21,9 @@ module FinchAPI
21
21
  # format. Filters payments by their **pay_date** field.
22
22
  start_date:,
23
23
  # The entity IDs to specify which entities' data to access. Provide exactly one
24
- # entity ID per request; a maximum of one is accepted.
24
+ # entity ID per request; a maximum of one is accepted. Required when the
25
+ # connection has more than one entity — omitting it returns a `400`
26
+ # `invalid_request_error`. Optional for single-entity connections.
25
27
  entity_ids: nil,
26
28
  request_options: {}
27
29
  )
@@ -15,7 +15,9 @@ module FinchAPI
15
15
  def retrieve(
16
16
  pay_group_id,
17
17
  # The entity IDs to specify which entities' data to access. Provide exactly one
18
- # entity ID per request; a maximum of one is accepted.
18
+ # entity ID per request; a maximum of one is accepted. Required when the
19
+ # connection has more than one entity — omitting it returns a `400`
20
+ # `invalid_request_error`. Optional for single-entity connections.
19
21
  entity_ids: nil,
20
22
  request_options: {}
21
23
  )
@@ -36,7 +38,9 @@ module FinchAPI
36
38
  end
37
39
  def list(
38
40
  # The entity IDs to specify which entities' data to access. Provide exactly one
39
- # entity ID per request; a maximum of one is accepted.
41
+ # entity ID per request; a maximum of one is accepted. Required when the
42
+ # connection has more than one entity — omitting it returns a `400`
43
+ # `invalid_request_error`. Optional for single-entity connections.
40
44
  entity_ids: nil,
41
45
  individual_id: nil,
42
46
  pay_frequencies: nil,
@@ -8,6 +8,7 @@ module FinchAPI
8
8
  sig do
9
9
  params(
10
10
  individual_id: String,
11
+ benefit_eligibility_class: T.nilable(String),
11
12
  class_code: T.nilable(String),
12
13
  custom_fields:
13
14
  T.nilable(
@@ -57,6 +58,10 @@ module FinchAPI
57
58
  end
58
59
  def update(
59
60
  individual_id,
61
+ # The employer defined benefit eligibility class that groups an employee into a
62
+ # set of eligible benefit plans, as stored by the provider. Null when not
63
+ # configured.
64
+ benefit_eligibility_class: nil,
60
65
  # Worker's compensation classification code for this employee
61
66
  class_code: nil,
62
67
  # Custom fields for the individual. These are fields which are defined by the