finch-api 0.1.0.pre.alpha.60 → 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 (79) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +13 -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/connect/session_new_params.rb +4 -2
  6. data/lib/finch_api/models/connect/session_reauthenticate_params.rb +4 -2
  7. data/lib/finch_api/models/hris/benefit_create_params.rb +3 -1
  8. data/lib/finch_api/models/hris/benefit_list_params.rb +3 -1
  9. data/lib/finch_api/models/hris/benefit_list_supported_benefits_params.rb +3 -1
  10. data/lib/finch_api/models/hris/benefit_register_params.rb +3 -1
  11. data/lib/finch_api/models/hris/benefit_retrieve_params.rb +3 -1
  12. data/lib/finch_api/models/hris/benefit_update_params.rb +3 -1
  13. data/lib/finch_api/models/hris/benefits/individual_enroll_many_params.rb +3 -1
  14. data/lib/finch_api/models/hris/benefits/individual_enrolled_ids_params.rb +3 -1
  15. data/lib/finch_api/models/hris/benefits/individual_retrieve_many_benefits_params.rb +3 -1
  16. data/lib/finch_api/models/hris/benefits/individual_unenroll_many_params.rb +3 -1
  17. data/lib/finch_api/models/hris/company_retrieve_params.rb +3 -1
  18. data/lib/finch_api/models/hris/directory_list_individuals_params.rb +3 -1
  19. data/lib/finch_api/models/hris/directory_list_params.rb +3 -1
  20. data/lib/finch_api/models/hris/document_list_params.rb +3 -1
  21. data/lib/finch_api/models/hris/document_retreive_params.rb +3 -1
  22. data/lib/finch_api/models/hris/employment_retrieve_many_params.rb +3 -1
  23. data/lib/finch_api/models/hris/individual_retrieve_many_params.rb +3 -1
  24. data/lib/finch_api/models/hris/pay_statement_item/rule_create_params.rb +3 -1
  25. data/lib/finch_api/models/hris/pay_statement_item/rule_delete_params.rb +3 -1
  26. data/lib/finch_api/models/hris/pay_statement_item/rule_list_params.rb +3 -1
  27. data/lib/finch_api/models/hris/pay_statement_item/rule_update_params.rb +3 -1
  28. data/lib/finch_api/models/hris/pay_statement_item_list_params.rb +3 -1
  29. data/lib/finch_api/models/hris/pay_statement_retrieve_many_params.rb +3 -1
  30. data/lib/finch_api/models/hris/payment_list_params.rb +3 -1
  31. data/lib/finch_api/models/payroll/pay_group_list_params.rb +3 -1
  32. data/lib/finch_api/models/payroll/pay_group_retrieve_params.rb +3 -1
  33. data/lib/finch_api/resources/access_tokens.rb +4 -1
  34. data/lib/finch_api/resources/connect/sessions.rb +2 -2
  35. data/lib/finch_api/version.rb +1 -1
  36. data/rbi/finch_api/models/access_token_create_params.rbi +8 -2
  37. data/rbi/finch_api/models/connect/session_new_params.rbi +6 -2
  38. data/rbi/finch_api/models/connect/session_reauthenticate_params.rbi +6 -2
  39. data/rbi/finch_api/models/hris/benefit_create_params.rbi +6 -2
  40. data/rbi/finch_api/models/hris/benefit_list_params.rbi +6 -2
  41. data/rbi/finch_api/models/hris/benefit_list_supported_benefits_params.rbi +6 -2
  42. data/rbi/finch_api/models/hris/benefit_register_params.rbi +6 -2
  43. data/rbi/finch_api/models/hris/benefit_retrieve_params.rbi +6 -2
  44. data/rbi/finch_api/models/hris/benefit_update_params.rbi +6 -2
  45. data/rbi/finch_api/models/hris/benefits/individual_enroll_many_params.rbi +6 -2
  46. data/rbi/finch_api/models/hris/benefits/individual_enrolled_ids_params.rbi +6 -2
  47. data/rbi/finch_api/models/hris/benefits/individual_retrieve_many_benefits_params.rbi +6 -2
  48. data/rbi/finch_api/models/hris/benefits/individual_unenroll_many_params.rbi +6 -2
  49. data/rbi/finch_api/models/hris/company_retrieve_params.rbi +6 -2
  50. data/rbi/finch_api/models/hris/directory_list_individuals_params.rbi +6 -2
  51. data/rbi/finch_api/models/hris/directory_list_params.rbi +6 -2
  52. data/rbi/finch_api/models/hris/document_list_params.rbi +6 -2
  53. data/rbi/finch_api/models/hris/document_retreive_params.rbi +6 -2
  54. data/rbi/finch_api/models/hris/employment_retrieve_many_params.rbi +6 -2
  55. data/rbi/finch_api/models/hris/individual_retrieve_many_params.rbi +6 -2
  56. data/rbi/finch_api/models/hris/pay_statement_item/rule_create_params.rbi +6 -2
  57. data/rbi/finch_api/models/hris/pay_statement_item/rule_delete_params.rbi +6 -2
  58. data/rbi/finch_api/models/hris/pay_statement_item/rule_list_params.rbi +6 -2
  59. data/rbi/finch_api/models/hris/pay_statement_item/rule_update_params.rbi +6 -2
  60. data/rbi/finch_api/models/hris/pay_statement_item_list_params.rbi +6 -2
  61. data/rbi/finch_api/models/hris/pay_statement_retrieve_many_params.rbi +6 -2
  62. data/rbi/finch_api/models/hris/payment_list_params.rbi +6 -2
  63. data/rbi/finch_api/models/payroll/pay_group_list_params.rbi +6 -2
  64. data/rbi/finch_api/models/payroll/pay_group_retrieve_params.rbi +6 -2
  65. data/rbi/finch_api/resources/access_tokens.rbi +4 -1
  66. data/rbi/finch_api/resources/connect/sessions.rbi +6 -2
  67. data/rbi/finch_api/resources/hris/benefits/individuals.rbi +12 -4
  68. data/rbi/finch_api/resources/hris/benefits.rbi +18 -6
  69. data/rbi/finch_api/resources/hris/company.rbi +3 -1
  70. data/rbi/finch_api/resources/hris/directory.rbi +3 -1
  71. data/rbi/finch_api/resources/hris/documents.rbi +6 -2
  72. data/rbi/finch_api/resources/hris/employments.rbi +3 -1
  73. data/rbi/finch_api/resources/hris/individuals.rbi +3 -1
  74. data/rbi/finch_api/resources/hris/pay_statement_item/rules.rbi +12 -4
  75. data/rbi/finch_api/resources/hris/pay_statement_item.rbi +3 -1
  76. data/rbi/finch_api/resources/hris/pay_statements.rbi +3 -1
  77. data/rbi/finch_api/resources/hris/payments.rbi +3 -1
  78. data/rbi/finch_api/resources/payroll/pay_groups.rbi +6 -2
  79. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5f5cb88b8975aae0a24fb06c065cf76417ee66e03e8db7221fb8b92e9b67b17d
4
- data.tar.gz: 3dace0e8387c06d6c82541f4078d7c2d5c1941fb8fa11e09df7b71c4b0a7e966
3
+ metadata.gz: 1b2ec93a327103f7eea06fd294cadff34fb56bc6070a97efbdfee5b5b022e1c2
4
+ data.tar.gz: fbb9ca1192032ca4cc10b021772953b59d923a7ef8a884a972101eb49d883b39
5
5
  SHA512:
6
- metadata.gz: 9e84aa7dd599db34a4577e884fa714ec0ad5162eb38ea985fa78d82b6d4f61412b3d1ca561bf10118e28b7510e941d672fead59824a9231bf02137f6d84c8a32
7
- data.tar.gz: c65456c96829458109ace2482577700bec8897814fd078e2c8771bd31b5775c388b0378c37ae867365259d30769c60c991f9e455dfa258d7ddecf6d63184cba2
6
+ metadata.gz: c6c7d9f866df262b2377ffb557a9925c2196318f94c5c69aeb9b8e03afe5e493c0f5c30de58ce124952275311caffe0d104bbaac4691cfd500127531e08a2fe1
7
+ data.tar.gz: 652ff028c7f18d80165b5bee650ed442d9f1e176297d06c3e4599897390021975570bbfb9e4ab92dfb223ae5f1a3b2bfd719b5447792d5d5ebed113dae41a18c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
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
+
3
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)
4
17
 
5
18
 
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.60.pre.alpha.59"
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
@@ -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]
@@ -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]
@@ -17,7 +17,9 @@ module FinchAPI
17
17
 
18
18
  # @!attribute entity_ids
19
19
  # The entity IDs to specify which entities' data to access. Provide exactly one
20
- # entity ID per request; a maximum of one is accepted.
20
+ # entity ID per request; a maximum of one is accepted. Required when the
21
+ # connection has more than one entity — omitting it returns a `400`
22
+ # `invalid_request_error`. Optional for single-entity connections.
21
23
  #
22
24
  # @return [Array<String>, nil]
23
25
  optional :entity_ids, FinchAPI::Internal::Type::ArrayOf[String]
@@ -17,7 +17,9 @@ module FinchAPI
17
17
 
18
18
  # @!attribute entity_ids
19
19
  # The entity IDs to specify which entities' data to access. Provide exactly one
20
- # entity ID per request; a maximum of one is accepted.
20
+ # entity ID per request; a maximum of one is accepted. Required when the
21
+ # connection has more than one entity — omitting it returns a `400`
22
+ # `invalid_request_error`. Optional for single-entity connections.
21
23
  #
22
24
  # @return [Array<String>, nil]
23
25
  optional :entity_ids, FinchAPI::Internal::Type::ArrayOf[String]
@@ -11,7 +11,9 @@ module FinchAPI
11
11
 
12
12
  # @!attribute entity_ids
13
13
  # The entity IDs to create the rule for. Provide exactly one entity ID per
14
- # request; a maximum of one is accepted.
14
+ # request; a maximum of one is accepted. Required when the connection has more
15
+ # than one entity — omitting it returns a `400` `invalid_request_error`. Optional
16
+ # for single-entity connections.
15
17
  #
16
18
  # @return [Array<String>, nil]
17
19
  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 delete the rule for. Provide exactly one entity ID per
19
- # request; a maximum of one is accepted.
19
+ # request; a maximum of one is accepted. Required when the connection has more
20
+ # than one entity — omitting it returns a `400` `invalid_request_error`. Optional
21
+ # for single-entity connections.
20
22
  #
21
23
  # @return [Array<String>, nil]
22
24
  optional :entity_ids, FinchAPI::Internal::Type::ArrayOf[String]
@@ -11,7 +11,9 @@ module FinchAPI
11
11
 
12
12
  # @!attribute entity_ids
13
13
  # The entity IDs to retrieve rules for. Provide exactly one entity ID per request;
14
- # a maximum of one is accepted.
14
+ # a maximum of one is accepted. Required when the connection has more than one
15
+ # entity — omitting it returns a `400` `invalid_request_error`. Optional for
16
+ # single-entity connections.
15
17
  #
16
18
  # @return [Array<String>, nil]
17
19
  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 update the rule for. Provide exactly one entity ID per
19
- # request; a maximum of one is accepted.
19
+ # request; a maximum of one is accepted. Required when the connection has more
20
+ # than one entity — omitting it returns a `400` `invalid_request_error`. Optional
21
+ # for single-entity connections.
20
22
  #
21
23
  # @return [Array<String>, nil]
22
24
  optional :entity_ids, FinchAPI::Internal::Type::ArrayOf[String]
@@ -25,7 +25,9 @@ module FinchAPI
25
25
 
26
26
  # @!attribute entity_ids
27
27
  # The entity IDs to specify which entities' data to access. Provide exactly one
28
- # entity ID per request; a maximum of one is accepted.
28
+ # entity ID per request; a maximum of one is accepted. Required when the
29
+ # connection has more than one entity — omitting it returns a `400`
30
+ # `invalid_request_error`. Optional for single-entity connections.
29
31
  #
30
32
  # @return [Array<String>, nil]
31
33
  optional :entity_ids, FinchAPI::Internal::Type::ArrayOf[String]
@@ -17,7 +17,9 @@ module FinchAPI
17
17
 
18
18
  # @!attribute entity_ids
19
19
  # The entity IDs to specify which entities' data to access. Provide exactly one
20
- # entity ID per request; a maximum of one is accepted.
20
+ # entity ID per request; a maximum of one is accepted. Required when the
21
+ # connection has more than one entity — omitting it returns a `400`
22
+ # `invalid_request_error`. Optional for single-entity connections.
21
23
  #
22
24
  # @return [Array<String>, nil]
23
25
  optional :entity_ids, FinchAPI::Internal::Type::ArrayOf[String]
@@ -24,7 +24,9 @@ module FinchAPI
24
24
 
25
25
  # @!attribute entity_ids
26
26
  # The entity IDs to specify which entities' data to access. Provide exactly one
27
- # entity ID per request; a maximum of one is accepted.
27
+ # entity ID per request; a maximum of one is accepted. Required when the
28
+ # connection has more than one entity — omitting it returns a `400`
29
+ # `invalid_request_error`. Optional for single-entity connections.
28
30
  #
29
31
  # @return [Array<String>, nil]
30
32
  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]
@@ -3,6 +3,9 @@
3
3
  module FinchAPI
4
4
  module Resources
5
5
  class AccessTokens
6
+ # Some parameter documentations has been truncated, see
7
+ # {FinchAPI::Models::AccessTokenCreateParams} for more details.
8
+ #
6
9
  # Exchange the authorization code for an access token
7
10
  #
8
11
  # @overload create(code:, client_id: nil, client_secret: nil, redirect_uri: nil, request_options: {})
@@ -13,7 +16,7 @@ module FinchAPI
13
16
  #
14
17
  # @param client_secret [String] The client secret for your application
15
18
  #
16
- # @param redirect_uri [String] The redirect URI used in the authorization request (optional)
19
+ # @param redirect_uri [String] The redirect URI used when creating the Connect session. Required if the authori
17
20
  #
18
21
  # @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}, nil]
19
22
  #
@@ -27,7 +27,7 @@ module FinchAPI
27
27
  #
28
28
  # @param recordkeeping [FinchAPI::Models::Connect::SessionNewParams::Recordkeeping, nil] Optional recordkeeping configuration. Can only be provided when the `recordkeepi
29
29
  #
30
- # @param redirect_uri [String, nil] The URI to redirect to after the Connect flow is completed
30
+ # @param redirect_uri [String, nil] The URI to redirect to after the Connect flow is completed. Required if you use
31
31
  #
32
32
  # @param sandbox [Symbol, FinchAPI::Models::Connect::SessionNewParams::Sandbox, nil] Sandbox mode for testing
33
33
  #
@@ -61,7 +61,7 @@ module FinchAPI
61
61
  #
62
62
  # @param products [Array<Symbol, FinchAPI::Models::Connect::SessionReauthenticateParams::Product>, nil] The products to request access to (optional for reauthentication). Use `benefits
63
63
  #
64
- # @param redirect_uri [String, nil] The URI to redirect to after the Connect flow is completed
64
+ # @param redirect_uri [String, nil] The URI to redirect to after the Connect flow is completed. Required if you use
65
65
  #
66
66
  # @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}, nil]
67
67
  #
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FinchAPI
4
- VERSION = "0.1.0-alpha.60"
4
+ VERSION = "0.1.0-alpha.61"
5
5
  end
@@ -29,7 +29,10 @@ module FinchAPI
29
29
  sig { params(client_secret: String).void }
30
30
  attr_writer :client_secret
31
31
 
32
- # The redirect URI used in the authorization request (optional)
32
+ # The redirect URI used when creating the Connect session. Required if the
33
+ # authorization code came from the redirect flow, and it must match the
34
+ # `redirect_uri` used to create the session. Omit it if the code came from the
35
+ # embedded flow (Connect SDK).
33
36
  sig { returns(T.nilable(String)) }
34
37
  attr_reader :redirect_uri
35
38
 
@@ -52,7 +55,10 @@ module FinchAPI
52
55
  client_id: nil,
53
56
  # The client secret for your application
54
57
  client_secret: nil,
55
- # The redirect URI used in the authorization request (optional)
58
+ # The redirect URI used when creating the Connect session. Required if the
59
+ # authorization code came from the redirect flow, and it must match the
60
+ # `redirect_uri` used to create the session. Omit it if the code came from the
61
+ # embedded flow (Connect SDK).
56
62
  redirect_uri: nil,
57
63
  request_options: {}
58
64
  )
@@ -80,7 +80,9 @@ module FinchAPI
80
80
  end
81
81
  attr_writer :recordkeeping
82
82
 
83
- # The URI to redirect to after the Connect flow is completed
83
+ # The URI to redirect to after the Connect flow is completed. Required if you use
84
+ # the redirect flow, and it must be registered on the Credentials tab of the Finch
85
+ # Developer Dashboard. Omit it for the embedded flow (Connect SDK).
84
86
  sig { returns(T.nilable(String)) }
85
87
  attr_accessor :redirect_uri
86
88
 
@@ -137,7 +139,9 @@ module FinchAPI
137
139
  # `recordkeeping` product is requested. Currently supports `recordkeeper` set to
138
140
  # `voya`, `empower`, `fidelity`, or `transamerica`.
139
141
  recordkeeping: nil,
140
- # The URI to redirect to after the Connect flow is completed
142
+ # The URI to redirect to after the Connect flow is completed. Required if you use
143
+ # the redirect flow, and it must be registered on the Credentials tab of the Finch
144
+ # Developer Dashboard. Omit it for the embedded flow (Connect SDK).
141
145
  redirect_uri: nil,
142
146
  # Sandbox mode for testing
143
147
  sandbox: nil,
@@ -41,7 +41,9 @@ module FinchAPI
41
41
  end
42
42
  attr_accessor :products
43
43
 
44
- # The URI to redirect to after the Connect flow is completed
44
+ # The URI to redirect to after the Connect flow is completed. Required if you use
45
+ # the redirect flow, and it must be registered on the Credentials tab of the Finch
46
+ # Developer Dashboard. Omit it for the embedded flow (Connect SDK).
45
47
  sig { returns(T.nilable(String)) }
46
48
  attr_accessor :redirect_uri
47
49
 
@@ -69,7 +71,9 @@ module FinchAPI
69
71
  # `benefits` to access deductions endpoints — `deduction` is a deprecated alias
70
72
  # that is still accepted but should not be combined with `benefits`.
71
73
  products: nil,
72
- # The URI to redirect to after the Connect flow is completed
74
+ # The URI to redirect to after the Connect flow is completed. Required if you use
75
+ # the redirect flow, and it must be registered on the Credentials tab of the Finch
76
+ # Developer Dashboard. Omit it for the embedded flow (Connect SDK).
73
77
  redirect_uri: nil,
74
78
  request_options: {}
75
79
  )
@@ -16,7 +16,9 @@ module FinchAPI
16
16
  end
17
17
 
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
  sig { returns(T.nilable(T::Array[String])) }
21
23
  attr_reader :entity_ids
22
24
 
@@ -73,7 +75,9 @@ module FinchAPI
73
75
  end
74
76
  def self.new(
75
77
  # The entity IDs to specify which entities' data to access. Provide exactly one
76
- # entity ID per request; a maximum of one is accepted.
78
+ # entity ID per request; a maximum of one is accepted. Required when the
79
+ # connection has more than one entity — omitting it returns a `400`
80
+ # `invalid_request_error`. Optional for single-entity connections.
77
81
  entity_ids: nil,
78
82
  # The company match for this benefit.
79
83
  company_contribution: nil,
@@ -16,7 +16,9 @@ module FinchAPI
16
16
  end
17
17
 
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
  sig { returns(T.nilable(T::Array[String])) }
21
23
  attr_reader :entity_ids
22
24
 
@@ -31,7 +33,9 @@ module FinchAPI
31
33
  end
32
34
  def self.new(
33
35
  # The entity IDs to specify which entities' data to access. Provide exactly one
34
- # entity ID per request; a maximum of one is accepted.
36
+ # entity ID per request; a maximum of one is accepted. Required when the
37
+ # connection has more than one entity — omitting it returns a `400`
38
+ # `invalid_request_error`. Optional for single-entity connections.
35
39
  entity_ids: nil,
36
40
  request_options: {}
37
41
  )
@@ -16,7 +16,9 @@ module FinchAPI
16
16
  end
17
17
 
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
  sig { returns(T.nilable(T::Array[String])) }
21
23
  attr_reader :entity_ids
22
24
 
@@ -31,7 +33,9 @@ module FinchAPI
31
33
  end
32
34
  def self.new(
33
35
  # The entity IDs to specify which entities' data to access. Provide exactly one
34
- # entity ID per request; a maximum of one is accepted.
36
+ # entity ID per request; a maximum of one is accepted. Required when the
37
+ # connection has more than one entity — omitting it returns a `400`
38
+ # `invalid_request_error`. Optional for single-entity connections.
35
39
  entity_ids: nil,
36
40
  request_options: {}
37
41
  )