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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 86ef7492bf27bfb2e1edbffdab311625678916983f954349ecd5f73d6ee6fa53
4
- data.tar.gz: d03f0cee942683295a8c03b9b96bd2eeea75d7cf1ca147f6efa5e68f26019c20
3
+ metadata.gz: 1b2ec93a327103f7eea06fd294cadff34fb56bc6070a97efbdfee5b5b022e1c2
4
+ data.tar.gz: fbb9ca1192032ca4cc10b021772953b59d923a7ef8a884a972101eb49d883b39
5
5
  SHA512:
6
- metadata.gz: 0b453b3e8c94ea657c9916a570f83baa3299da3a93099695b9bb75527c2df5538998fcb9d88fffe961f3a7093bdd70399dccfaee8bb02d2c7094c3c88334b81e
7
- data.tar.gz: ed7db9de8c0c2178b060daecab36f07ff5fafd1ba3d2ee129ca6191dfa98eeea1851dd3d02c5ffffb47e7a27a115a6c6e1c3486c66245b94d6fc7acffb4964a8
6
+ metadata.gz: c6c7d9f866df262b2377ffb557a9925c2196318f94c5c69aeb9b8e03afe5e493c0f5c30de58ce124952275311caffe0d104bbaac4691cfd500127531e08a2fe1
7
+ data.tar.gz: 652ff028c7f18d80165b5bee650ed442d9f1e176297d06c3e4599897390021975570bbfb9e4ab92dfb223ae5f1a3b2bfd719b5447792d5d5ebed113dae41a18c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,30 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.1.0-alpha.61](https://github.com/Finch-API/finch-api-ruby/compare/v0.1.0-alpha.60...v0.1.0-alpha.61) (2026-10-22)
4
+
5
+
6
+ ### Chores
7
+
8
+ * **api:** rebuild SDK ([d232b31](https://github.com/Finch-API/finch-api-ruby/commit/d232b3150eab252a1dc56de39201fe316938db71))
9
+
10
+
11
+ ### Documentation
12
+
13
+ * **spec:** clarify redirect_uri requirement on connect and token endpoints [DDR-1050] ([d5ea0da](https://github.com/Finch-API/finch-api-ruby/commit/d5ea0dac0b4270a4e4929c9bfe20d4b394713c2d))
14
+ * **spec:** document missing entity_ids error for multi-entity connections [DDR-1051] ([7bb4ab7](https://github.com/Finch-API/finch-api-ruby/commit/7bb4ab7e788b6f5b078257838876a10e73ca8446))
15
+
16
+ ## [0.1.0-alpha.60](https://github.com/Finch-API/finch-api-ruby/compare/v0.1.0-alpha.59...v0.1.0-alpha.60) (2026-10-13)
17
+
18
+
19
+ ### Features
20
+
21
+ * **employment:** expose benefit_eligibility_class on the API surface [INT-4092] ([5bd28e8](https://github.com/Finch-API/finch-api-ruby/commit/5bd28e84fe7d95f7731b0b4d752be7561e37172b))
22
+
23
+
24
+ ### Chores
25
+
26
+ * **api:** rebuild SDK ([e544049](https://github.com/Finch-API/finch-api-ruby/commit/e544049748fe698fadb1615c36f7190fdd6eff8c))
27
+
3
28
  ## [0.1.0-alpha.59](https://github.com/Finch-API/finch-api-ruby/compare/v0.1.0-alpha.58...v0.1.0-alpha.59) (2026-10-01)
4
29
 
5
30
 
data/README.md CHANGED
@@ -26,7 +26,7 @@ To use this gem, install via Bundler by adding the following to your application
26
26
  <!-- x-release-please-start-version -->
27
27
 
28
28
  ```ruby
29
- gem "finch-api", "~> 0.1.0-alpha.59.pre.alpha.58"
29
+ gem "finch-api", "~> 0.1.0-alpha.61.pre.alpha.60"
30
30
  ```
31
31
 
32
32
  <!-- x-release-please-end -->
@@ -26,19 +26,25 @@ module FinchAPI
26
26
  optional :client_secret, String
27
27
 
28
28
  # @!attribute redirect_uri
29
- # The redirect URI used in the authorization request (optional)
29
+ # The redirect URI used when creating the Connect session. Required if the
30
+ # authorization code came from the redirect flow, and it must match the
31
+ # `redirect_uri` used to create the session. Omit it if the code came from the
32
+ # embedded flow (Connect SDK).
30
33
  #
31
34
  # @return [String, nil]
32
35
  optional :redirect_uri, String
33
36
 
34
37
  # @!method initialize(code:, client_id: nil, client_secret: nil, redirect_uri: nil, request_options: {})
38
+ # Some parameter documentations has been truncated, see
39
+ # {FinchAPI::Models::AccessTokenCreateParams} for more details.
40
+ #
35
41
  # @param code [String] The authorization code received from the authorization server
36
42
  #
37
43
  # @param client_id [String] The client ID for your application
38
44
  #
39
45
  # @param client_secret [String] The client secret for your application
40
46
  #
41
- # @param redirect_uri [String] The redirect URI used in the authorization request (optional)
47
+ # @param redirect_uri [String] The redirect URI used when creating the Connect session. Required if the authori
42
48
  #
43
49
  # @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}]
44
50
  end
@@ -42,7 +42,7 @@ module FinchAPI
42
42
  optional :benefits_support, -> { FinchAPI::HRIS::BenefitsSupport }, nil?: true
43
43
 
44
44
  # @!attribute supported_fields
45
- # The supported data fields returned by our HR and payroll endpoints
45
+ # The supported data fields returned by our HR, payroll, and benefits endpoints
46
46
  #
47
47
  # @return [FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields, nil]
48
48
  optional :supported_fields,
@@ -62,7 +62,7 @@ module FinchAPI
62
62
  #
63
63
  # @param benefits_support [FinchAPI::Models::HRIS::BenefitsSupport, nil] Each benefit type and their supported features. If the benefit type is not suppo
64
64
  #
65
- # @param supported_fields [FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields, nil] The supported data fields returned by our HR and payroll endpoints
65
+ # @param supported_fields [FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields, nil] The supported data fields returned by our HR, payroll, and benefits endpoints
66
66
  #
67
67
  # @param type [Symbol, FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::Type] The type of authentication method.
68
68
 
@@ -110,8 +110,25 @@ module FinchAPI
110
110
  optional :payment,
111
111
  -> { FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Payment }
112
112
 
113
- # @!method initialize(company: nil, directory: nil, employment: nil, individual: nil, pay_group: nil, pay_statement: nil, payment: nil)
114
- # The supported data fields returned by our HR and payroll endpoints
113
+ # @!attribute plan_dependents
114
+ #
115
+ # @return [FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::PlanDependents, nil]
116
+ optional :plan_dependents,
117
+ -> { FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::PlanDependents }
118
+
119
+ # @!attribute plan_enrollments
120
+ #
121
+ # @return [FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::PlanEnrollments, nil]
122
+ optional :plan_enrollments,
123
+ -> { FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::PlanEnrollments }
124
+
125
+ # @!attribute plans
126
+ #
127
+ # @return [FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Plans, nil]
128
+ optional :plans, -> { FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Plans }
129
+
130
+ # @!method initialize(company: nil, directory: nil, employment: nil, individual: nil, pay_group: nil, pay_statement: nil, payment: nil, plan_dependents: nil, plan_enrollments: nil, plans: nil)
131
+ # The supported data fields returned by our HR, payroll, and benefits endpoints
115
132
  #
116
133
  # @param company [FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Company]
117
134
  # @param directory [FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Directory]
@@ -120,6 +137,9 @@ module FinchAPI
120
137
  # @param pay_group [FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::PayGroup]
121
138
  # @param pay_statement [FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::PayStatement]
122
139
  # @param payment [FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Payment]
140
+ # @param plan_dependents [FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::PlanDependents]
141
+ # @param plan_enrollments [FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::PlanEnrollments]
142
+ # @param plans [FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Plans]
123
143
 
124
144
  # @see FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields#company
125
145
  class Company < FinchAPI::Internal::Type::BaseModel
@@ -334,7 +354,7 @@ module FinchAPI
334
354
  # @!attribute department
335
355
  #
336
356
  # @return [Boolean, nil]
337
- optional :department, FinchAPI::Internal::Type::Boolean
357
+ optional :department, FinchAPI::Internal::Type::Boolean, nil?: true
338
358
 
339
359
  # @!attribute first_name
340
360
  #
@@ -364,7 +384,7 @@ module FinchAPI
364
384
 
365
385
  # @!method initialize(id: nil, department: nil, first_name: nil, is_active: nil, last_name: nil, manager: nil, middle_name: nil)
366
386
  # @param id [Boolean]
367
- # @param department [Boolean]
387
+ # @param department [Boolean, nil]
368
388
  # @param first_name [Boolean]
369
389
  # @param is_active [Boolean]
370
390
  # @param last_name [Boolean]
@@ -476,7 +496,10 @@ module FinchAPI
476
496
  #
477
497
  # @return [FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Employment::Manager, nil]
478
498
  optional :manager,
479
- -> { FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Employment::Manager }
499
+ -> {
500
+ FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Employment::Manager
501
+ },
502
+ nil?: true
480
503
 
481
504
  # @!attribute middle_name
482
505
  #
@@ -507,7 +530,7 @@ module FinchAPI
507
530
  # @param is_active [Boolean]
508
531
  # @param last_name [Boolean]
509
532
  # @param location [FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Employment::Location]
510
- # @param manager [FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Employment::Manager]
533
+ # @param manager [FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Employment::Manager, nil]
511
534
  # @param middle_name [Boolean]
512
535
  # @param start_date [Boolean]
513
536
  # @param title [Boolean]
@@ -1127,6 +1150,303 @@ module FinchAPI
1127
1150
  # @param start_date [Boolean]
1128
1151
  end
1129
1152
  end
1153
+
1154
+ # @see FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields#plan_dependents
1155
+ class PlanDependents < FinchAPI::Internal::Type::BaseModel
1156
+ # @!attribute coverage
1157
+ #
1158
+ # @return [FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::PlanDependents::Coverage, nil]
1159
+ optional :coverage,
1160
+ -> { FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::PlanDependents::Coverage }
1161
+
1162
+ # @!attribute date_of_birth
1163
+ #
1164
+ # @return [Boolean, nil]
1165
+ optional :date_of_birth, FinchAPI::Internal::Type::Boolean
1166
+
1167
+ # @!attribute dependent_id
1168
+ #
1169
+ # @return [Boolean, nil]
1170
+ optional :dependent_id, FinchAPI::Internal::Type::Boolean
1171
+
1172
+ # @!attribute first_name
1173
+ #
1174
+ # @return [Boolean, nil]
1175
+ optional :first_name, FinchAPI::Internal::Type::Boolean
1176
+
1177
+ # @!attribute gender
1178
+ #
1179
+ # @return [Boolean, nil]
1180
+ optional :gender, FinchAPI::Internal::Type::Boolean
1181
+
1182
+ # @!attribute last_name
1183
+ #
1184
+ # @return [Boolean, nil]
1185
+ optional :last_name, FinchAPI::Internal::Type::Boolean
1186
+
1187
+ # @!attribute middle_name
1188
+ #
1189
+ # @return [Boolean, nil]
1190
+ optional :middle_name, FinchAPI::Internal::Type::Boolean
1191
+
1192
+ # @!attribute ssn
1193
+ #
1194
+ # @return [Boolean, nil]
1195
+ optional :ssn, FinchAPI::Internal::Type::Boolean
1196
+
1197
+ # @!method initialize(coverage: nil, date_of_birth: nil, dependent_id: nil, first_name: nil, gender: nil, last_name: nil, middle_name: nil, ssn: nil)
1198
+ # @param coverage [FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::PlanDependents::Coverage]
1199
+ # @param date_of_birth [Boolean]
1200
+ # @param dependent_id [Boolean]
1201
+ # @param first_name [Boolean]
1202
+ # @param gender [Boolean]
1203
+ # @param last_name [Boolean]
1204
+ # @param middle_name [Boolean]
1205
+ # @param ssn [Boolean]
1206
+
1207
+ # @see FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::PlanDependents#coverage
1208
+ class Coverage < FinchAPI::Internal::Type::BaseModel
1209
+ # @!attribute enrollments
1210
+ #
1211
+ # @return [FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::PlanDependents::Coverage::Enrollments, nil]
1212
+ optional :enrollments,
1213
+ -> { FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::PlanDependents::Coverage::Enrollments }
1214
+
1215
+ # @!attribute individual_id
1216
+ #
1217
+ # @return [Boolean, nil]
1218
+ optional :individual_id, FinchAPI::Internal::Type::Boolean
1219
+
1220
+ # @!attribute relationship_to_individual
1221
+ #
1222
+ # @return [Boolean, nil]
1223
+ optional :relationship_to_individual, FinchAPI::Internal::Type::Boolean
1224
+
1225
+ # @!method initialize(enrollments: nil, individual_id: nil, relationship_to_individual: nil)
1226
+ # @param enrollments [FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::PlanDependents::Coverage::Enrollments]
1227
+ # @param individual_id [Boolean]
1228
+ # @param relationship_to_individual [Boolean]
1229
+
1230
+ # @see FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::PlanDependents::Coverage#enrollments
1231
+ class Enrollments < FinchAPI::Internal::Type::BaseModel
1232
+ # @!attribute id
1233
+ #
1234
+ # @return [Boolean, nil]
1235
+ optional :id, FinchAPI::Internal::Type::Boolean
1236
+
1237
+ # @!attribute type
1238
+ #
1239
+ # @return [Boolean, nil]
1240
+ optional :type, FinchAPI::Internal::Type::Boolean
1241
+
1242
+ # @!method initialize(id: nil, type: nil)
1243
+ # @param id [Boolean]
1244
+ # @param type [Boolean]
1245
+ end
1246
+ end
1247
+ end
1248
+
1249
+ # @see FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields#plan_enrollments
1250
+ class PlanEnrollments < FinchAPI::Internal::Type::BaseModel
1251
+ # @!attribute id
1252
+ #
1253
+ # @return [Boolean, nil]
1254
+ optional :id, FinchAPI::Internal::Type::Boolean
1255
+
1256
+ # @!attribute contributions
1257
+ #
1258
+ # @return [FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::PlanEnrollments::Contributions, nil]
1259
+ optional :contributions,
1260
+ -> { FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::PlanEnrollments::Contributions }
1261
+
1262
+ # @!attribute coverage_end_date
1263
+ #
1264
+ # @return [Boolean, nil]
1265
+ optional :coverage_end_date, FinchAPI::Internal::Type::Boolean
1266
+
1267
+ # @!attribute coverage_start_date
1268
+ #
1269
+ # @return [Boolean, nil]
1270
+ optional :coverage_start_date, FinchAPI::Internal::Type::Boolean
1271
+
1272
+ # @!attribute coverage_tier
1273
+ #
1274
+ # @return [Boolean, nil]
1275
+ optional :coverage_tier, FinchAPI::Internal::Type::Boolean
1276
+
1277
+ # @!attribute dependent_ids
1278
+ #
1279
+ # @return [Boolean, nil]
1280
+ optional :dependent_ids, FinchAPI::Internal::Type::Boolean
1281
+
1282
+ # @!attribute individual_id
1283
+ #
1284
+ # @return [Boolean, nil]
1285
+ optional :individual_id, FinchAPI::Internal::Type::Boolean
1286
+
1287
+ # @!attribute plan_id
1288
+ #
1289
+ # @return [Boolean, nil]
1290
+ optional :plan_id, FinchAPI::Internal::Type::Boolean
1291
+
1292
+ # @!attribute status
1293
+ #
1294
+ # @return [Boolean, nil]
1295
+ optional :status, FinchAPI::Internal::Type::Boolean
1296
+
1297
+ # @!method initialize(id: nil, contributions: nil, coverage_end_date: nil, coverage_start_date: nil, coverage_tier: nil, dependent_ids: nil, individual_id: nil, plan_id: nil, status: nil)
1298
+ # @param id [Boolean]
1299
+ # @param contributions [FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::PlanEnrollments::Contributions]
1300
+ # @param coverage_end_date [Boolean]
1301
+ # @param coverage_start_date [Boolean]
1302
+ # @param coverage_tier [Boolean]
1303
+ # @param dependent_ids [Boolean]
1304
+ # @param individual_id [Boolean]
1305
+ # @param plan_id [Boolean]
1306
+ # @param status [Boolean]
1307
+
1308
+ # @see FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::PlanEnrollments#contributions
1309
+ class Contributions < FinchAPI::Internal::Type::BaseModel
1310
+ # @!attribute employee_contribution
1311
+ #
1312
+ # @return [FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::PlanEnrollments::Contributions::EmployeeContribution, nil]
1313
+ optional :employee_contribution,
1314
+ -> { FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::PlanEnrollments::Contributions::EmployeeContribution }
1315
+
1316
+ # @!attribute employer_contribution
1317
+ #
1318
+ # @return [FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::PlanEnrollments::Contributions::EmployerContribution, nil]
1319
+ optional :employer_contribution,
1320
+ -> { FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::PlanEnrollments::Contributions::EmployerContribution }
1321
+
1322
+ # @!attribute frequency
1323
+ #
1324
+ # @return [Boolean, nil]
1325
+ optional :frequency, FinchAPI::Internal::Type::Boolean
1326
+
1327
+ # @!method initialize(employee_contribution: nil, employer_contribution: nil, frequency: nil)
1328
+ # @param employee_contribution [FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::PlanEnrollments::Contributions::EmployeeContribution]
1329
+ # @param employer_contribution [FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::PlanEnrollments::Contributions::EmployerContribution]
1330
+ # @param frequency [Boolean]
1331
+
1332
+ # @see FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::PlanEnrollments::Contributions#employee_contribution
1333
+ class EmployeeContribution < FinchAPI::Internal::Type::BaseModel
1334
+ # @!attribute amount
1335
+ #
1336
+ # @return [Boolean, nil]
1337
+ optional :amount, FinchAPI::Internal::Type::Boolean
1338
+
1339
+ # @!attribute currency
1340
+ #
1341
+ # @return [Boolean, nil]
1342
+ optional :currency, FinchAPI::Internal::Type::Boolean
1343
+
1344
+ # @!method initialize(amount: nil, currency: nil)
1345
+ # @param amount [Boolean]
1346
+ # @param currency [Boolean]
1347
+ end
1348
+
1349
+ # @see FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::PlanEnrollments::Contributions#employer_contribution
1350
+ class EmployerContribution < FinchAPI::Internal::Type::BaseModel
1351
+ # @!attribute amount
1352
+ #
1353
+ # @return [Boolean, nil]
1354
+ optional :amount, FinchAPI::Internal::Type::Boolean
1355
+
1356
+ # @!attribute currency
1357
+ #
1358
+ # @return [Boolean, nil]
1359
+ optional :currency, FinchAPI::Internal::Type::Boolean
1360
+
1361
+ # @!method initialize(amount: nil, currency: nil)
1362
+ # @param amount [Boolean]
1363
+ # @param currency [Boolean]
1364
+ end
1365
+ end
1366
+ end
1367
+
1368
+ # @see FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields#plans
1369
+ class Plans < FinchAPI::Internal::Type::BaseModel
1370
+ # @!attribute id
1371
+ #
1372
+ # @return [Boolean, nil]
1373
+ optional :id, FinchAPI::Internal::Type::Boolean
1374
+
1375
+ # @!attribute carrier
1376
+ #
1377
+ # @return [FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Plans::Carrier, nil]
1378
+ optional :carrier,
1379
+ -> { FinchAPI::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Plans::Carrier }
1380
+
1381
+ # @!attribute coverage_tiers
1382
+ #
1383
+ # @return [Boolean, nil]
1384
+ optional :coverage_tiers, FinchAPI::Internal::Type::Boolean
1385
+
1386
+ # @!attribute deduction_codes
1387
+ #
1388
+ # @return [Boolean, nil]
1389
+ optional :deduction_codes, FinchAPI::Internal::Type::Boolean
1390
+
1391
+ # @!attribute description
1392
+ #
1393
+ # @return [Boolean, nil]
1394
+ optional :description, FinchAPI::Internal::Type::Boolean
1395
+
1396
+ # @!attribute end_date
1397
+ #
1398
+ # @return [Boolean, nil]
1399
+ optional :end_date, FinchAPI::Internal::Type::Boolean
1400
+
1401
+ # @!attribute name
1402
+ #
1403
+ # @return [Boolean, nil]
1404
+ optional :name, FinchAPI::Internal::Type::Boolean
1405
+
1406
+ # @!attribute network_type
1407
+ #
1408
+ # @return [Boolean, nil]
1409
+ optional :network_type, FinchAPI::Internal::Type::Boolean
1410
+
1411
+ # @!attribute start_date
1412
+ #
1413
+ # @return [Boolean, nil]
1414
+ optional :start_date, FinchAPI::Internal::Type::Boolean
1415
+
1416
+ # @!attribute type
1417
+ #
1418
+ # @return [Boolean, nil]
1419
+ optional :type, FinchAPI::Internal::Type::Boolean
1420
+
1421
+ # @!method initialize(id: nil, carrier: nil, coverage_tiers: nil, deduction_codes: nil, description: nil, end_date: nil, name: nil, network_type: nil, start_date: nil, type: nil)
1422
+ # @param id [Boolean]
1423
+ # @param carrier [FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Plans::Carrier]
1424
+ # @param coverage_tiers [Boolean]
1425
+ # @param deduction_codes [Boolean]
1426
+ # @param description [Boolean]
1427
+ # @param end_date [Boolean]
1428
+ # @param name [Boolean]
1429
+ # @param network_type [Boolean]
1430
+ # @param start_date [Boolean]
1431
+ # @param type [Boolean]
1432
+
1433
+ # @see FinchAPI::Models::AccountUpdateEvent::Data::AuthenticationMethod::SupportedFields::Plans#carrier
1434
+ class Carrier < FinchAPI::Internal::Type::BaseModel
1435
+ # @!attribute id
1436
+ #
1437
+ # @return [Boolean, nil]
1438
+ optional :id, FinchAPI::Internal::Type::Boolean
1439
+
1440
+ # @!attribute name
1441
+ #
1442
+ # @return [Boolean, nil]
1443
+ optional :name, FinchAPI::Internal::Type::Boolean
1444
+
1445
+ # @!method initialize(id: nil, name: nil)
1446
+ # @param id [Boolean]
1447
+ # @param name [Boolean]
1448
+ end
1449
+ end
1130
1450
  end
1131
1451
 
1132
1452
  # The type of authentication method.
@@ -63,7 +63,9 @@ module FinchAPI
63
63
  optional :recordkeeping, -> { FinchAPI::Connect::SessionNewParams::Recordkeeping }, nil?: true
64
64
 
65
65
  # @!attribute redirect_uri
66
- # The URI to redirect to after the Connect flow is completed
66
+ # The URI to redirect to after the Connect flow is completed. Required if you use
67
+ # the redirect flow, and it must be registered on the Credentials tab of the Finch
68
+ # Developer Dashboard. Omit it for the embedded flow (Connect SDK).
67
69
  #
68
70
  # @return [String, nil]
69
71
  optional :redirect_uri, String, nil?: true
@@ -94,7 +96,7 @@ module FinchAPI
94
96
  #
95
97
  # @param recordkeeping [FinchAPI::Models::Connect::SessionNewParams::Recordkeeping, nil] Optional recordkeeping configuration. Can only be provided when the `recordkeepi
96
98
  #
97
- # @param redirect_uri [String, nil] The URI to redirect to after the Connect flow is completed
99
+ # @param redirect_uri [String, nil] The URI to redirect to after the Connect flow is completed. Required if you use
98
100
  #
99
101
  # @param sandbox [Symbol, FinchAPI::Models::Connect::SessionNewParams::Sandbox, nil] Sandbox mode for testing
100
102
  #
@@ -34,7 +34,9 @@ module FinchAPI
34
34
  nil?: true
35
35
 
36
36
  # @!attribute redirect_uri
37
- # The URI to redirect to after the Connect flow is completed
37
+ # The URI to redirect to after the Connect flow is completed. Required if you use
38
+ # the redirect flow, and it must be registered on the Credentials tab of the Finch
39
+ # Developer Dashboard. Omit it for the embedded flow (Connect SDK).
38
40
  #
39
41
  # @return [String, nil]
40
42
  optional :redirect_uri, String, nil?: true
@@ -49,7 +51,7 @@ module FinchAPI
49
51
  #
50
52
  # @param products [Array<Symbol, FinchAPI::Models::Connect::SessionReauthenticateParams::Product>, nil] The products to request access to (optional for reauthentication). Use `benefits
51
53
  #
52
- # @param redirect_uri [String, nil] The URI to redirect to after the Connect flow is completed
54
+ # @param redirect_uri [String, nil] The URI to redirect to after the Connect flow is completed. Required if you use
53
55
  #
54
56
  # @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}]
55
57
 
@@ -10,7 +10,9 @@ module FinchAPI
10
10
 
11
11
  # @!attribute entity_ids
12
12
  # The entity IDs to specify which entities' data to access. Provide exactly one
13
- # entity ID per request; a maximum of one is accepted.
13
+ # entity ID per request; a maximum of one is accepted. Required when the
14
+ # connection has more than one entity — omitting it returns a `400`
15
+ # `invalid_request_error`. Optional for single-entity connections.
14
16
  #
15
17
  # @return [Array<String>, nil]
16
18
  optional :entity_ids, FinchAPI::Internal::Type::ArrayOf[String]
@@ -10,7 +10,9 @@ module FinchAPI
10
10
 
11
11
  # @!attribute entity_ids
12
12
  # The entity IDs to specify which entities' data to access. Provide exactly one
13
- # entity ID per request; a maximum of one is accepted.
13
+ # entity ID per request; a maximum of one is accepted. Required when the
14
+ # connection has more than one entity — omitting it returns a `400`
15
+ # `invalid_request_error`. Optional for single-entity connections.
14
16
  #
15
17
  # @return [Array<String>, nil]
16
18
  optional :entity_ids, FinchAPI::Internal::Type::ArrayOf[String]
@@ -10,7 +10,9 @@ module FinchAPI
10
10
 
11
11
  # @!attribute entity_ids
12
12
  # The entity IDs to specify which entities' data to access. Provide exactly one
13
- # entity ID per request; a maximum of one is accepted.
13
+ # entity ID per request; a maximum of one is accepted. Required when the
14
+ # connection has more than one entity — omitting it returns a `400`
15
+ # `invalid_request_error`. Optional for single-entity connections.
14
16
  #
15
17
  # @return [Array<String>, nil]
16
18
  optional :entity_ids, FinchAPI::Internal::Type::ArrayOf[String]
@@ -10,7 +10,9 @@ module FinchAPI
10
10
 
11
11
  # @!attribute entity_ids
12
12
  # The entity IDs to specify which entities' data to access. Provide exactly one
13
- # entity ID per request; a maximum of one is accepted.
13
+ # entity ID per request; a maximum of one is accepted. Required when the
14
+ # connection has more than one entity — omitting it returns a `400`
15
+ # `invalid_request_error`. Optional for single-entity connections.
14
16
  #
15
17
  # @return [Array<String>, nil]
16
18
  optional :entity_ids, FinchAPI::Internal::Type::ArrayOf[String]
@@ -15,7 +15,9 @@ module FinchAPI
15
15
 
16
16
  # @!attribute entity_ids
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
  #
20
22
  # @return [Array<String>, nil]
21
23
  optional :entity_ids, FinchAPI::Internal::Type::ArrayOf[String]
@@ -15,7 +15,9 @@ module FinchAPI
15
15
 
16
16
  # @!attribute entity_ids
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
  #
20
22
  # @return [Array<String>, nil]
21
23
  optional :entity_ids, FinchAPI::Internal::Type::ArrayOf[String]
@@ -16,7 +16,9 @@ module FinchAPI
16
16
 
17
17
  # @!attribute entity_ids
18
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
+ # entity ID per request; a maximum of one is accepted. Required when the
20
+ # connection has more than one entity — omitting it returns a `400`
21
+ # `invalid_request_error`. Optional for single-entity connections.
20
22
  #
21
23
  # @return [Array<String>, nil]
22
24
  optional :entity_ids, FinchAPI::Internal::Type::ArrayOf[String]
@@ -16,7 +16,9 @@ module FinchAPI
16
16
 
17
17
  # @!attribute entity_ids
18
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
+ # entity ID per request; a maximum of one is accepted. Required when the
20
+ # connection has more than one entity — omitting it returns a `400`
21
+ # `invalid_request_error`. Optional for single-entity connections.
20
22
  #
21
23
  # @return [Array<String>, nil]
22
24
  optional :entity_ids, FinchAPI::Internal::Type::ArrayOf[String]
@@ -16,7 +16,9 @@ module FinchAPI
16
16
 
17
17
  # @!attribute entity_ids
18
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
+ # entity ID per request; a maximum of one is accepted. Required when the
20
+ # connection has more than one entity — omitting it returns a `400`
21
+ # `invalid_request_error`. Optional for single-entity connections.
20
22
  #
21
23
  # @return [Array<String>, nil]
22
24
  optional :entity_ids, FinchAPI::Internal::Type::ArrayOf[String]
@@ -16,7 +16,9 @@ module FinchAPI
16
16
 
17
17
  # @!attribute entity_ids
18
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
+ # entity ID per request; a maximum of one is accepted. Required when the
20
+ # connection has more than one entity — omitting it returns a `400`
21
+ # `invalid_request_error`. Optional for single-entity connections.
20
22
  #
21
23
  # @return [Array<String>, nil]
22
24
  optional :entity_ids, FinchAPI::Internal::Type::ArrayOf[String]
@@ -10,7 +10,9 @@ module FinchAPI
10
10
 
11
11
  # @!attribute entity_ids
12
12
  # The entity IDs to specify which entities' data to access. Provide exactly one
13
- # entity ID per request; a maximum of one is accepted.
13
+ # entity ID per request; a maximum of one is accepted. Required when the
14
+ # connection has more than one entity — omitting it returns a `400`
15
+ # `invalid_request_error`. Optional for single-entity connections.
14
16
  #
15
17
  # @return [Array<String>, nil]
16
18
  optional :entity_ids, FinchAPI::Internal::Type::ArrayOf[String]