finch-api 0.1.0.pre.alpha.28 → 0.1.0.pre.alpha.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ecf78c65c2b898a2b5031cd7fcc3328bfdc13e98431b09900bc6e1d8210edca8
4
- data.tar.gz: 9d8bb5ffed3d5db0299511d1204935d73e3b3cf039e876925135cc17a8e405b9
3
+ metadata.gz: 1c13a4af631ebb4f8780ba93cd0678bae144e736eada662e057b3d3c05bdc4d2
4
+ data.tar.gz: 357f7b8c96ddc548b5337a47dae1bf906d97773a096753752109b054d881a612
5
5
  SHA512:
6
- metadata.gz: 7886c407c082c9c2ca8070104bd1024515434914420b22e1a20df818cfe8d37aebac55d0687ea126f93dc3a0d1b7c4628d7b178dc5f7dcf8bdd93e5c9ede7be8
7
- data.tar.gz: 23e139493a3c37ed53380063b9f3dd3507e542baea5f5c5afe59c95b2850f00e311bff1fe5fb645499c2ff10f337b91d3de7e51232f4fac3d3b6949ef16015b0
6
+ metadata.gz: 0fb55a12f59529e6c8ee96d440131da38c3d0f1e814a8213a5fb8af64ee4f293fd12e107658b3e24b92dda68d9a7ae386b4f6e43ffe8667cceb292fb70ae8152
7
+ data.tar.gz: e9a162190490a8d62cea6a1250bd3c775268c0b68e94e56cfbab6ddbac9a31c8355091c98358a8b43d9a996a43c20807ee583f07f360e7745213a3accd157f95
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.0-alpha.29 (2025-08-24)
4
+
5
+ Full Changelog: [v0.1.0-alpha.28...v0.1.0-alpha.29](https://github.com/Finch-API/finch-api-ruby/compare/v0.1.0-alpha.28...v0.1.0-alpha.29)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([a8f432a](https://github.com/Finch-API/finch-api-ruby/commit/a8f432a47e2e5ffbb1be53637b672383301d1baf))
10
+
11
+
12
+ ### Chores
13
+
14
+ * add json schema comment for rubocop.yml ([9c458ab](https://github.com/Finch-API/finch-api-ruby/commit/9c458abf8ac902197c09eb4be5612d48d8d0723e))
15
+
3
16
  ## 0.1.0-alpha.28 (2025-08-20)
4
17
 
5
18
  Full Changelog: [v0.1.0-alpha.27...v0.1.0-alpha.28](https://github.com/Finch-API/finch-api-ruby/compare/v0.1.0-alpha.27...v0.1.0-alpha.28)
data/README.md CHANGED
@@ -17,7 +17,7 @@ To use this gem, install via Bundler by adding the following to your application
17
17
  <!-- x-release-please-start-version -->
18
18
 
19
19
  ```ruby
20
- gem "finch-api", "~> 0.1.0.pre.alpha.28"
20
+ gem "finch-api", "~> 0.1.0.pre.alpha.29"
21
21
  ```
22
22
 
23
23
  <!-- x-release-please-end -->
@@ -99,6 +99,18 @@ module FinchAPI
99
99
  # @return [String, nil]
100
100
  optional :customer_name, String, nil?: true
101
101
 
102
+ # @!attribute entity_ids
103
+ # Array of entity IDs associated with this connection.
104
+ #
105
+ # @return [Array<String>, nil]
106
+ optional :entity_ids, FinchAPI::Internal::Type::ArrayOf[String]
107
+
108
+ # @!attribute entity_mode
109
+ # Indicates whether this connection manages a single entity or multiple entities.
110
+ #
111
+ # @return [Symbol, FinchAPI::Models::Introspection::EntityMode, nil]
112
+ optional :entity_mode, enum: -> { FinchAPI::Introspection::EntityMode }
113
+
102
114
  # @!attribute manual
103
115
  # Whether the connection associated with the `access_token` uses the Assisted
104
116
  # Connect Flow. (`true` if using Assisted Connect, `false` if connection is
@@ -122,7 +134,7 @@ module FinchAPI
122
134
  # @return [String, nil]
123
135
  optional :username, String, nil?: true
124
136
 
125
- # @!method initialize(id:, client_id:, client_type:, connection_id:, connection_status:, connection_type:, products:, provider_id:, account_id: nil, authentication_methods: nil, company_id: nil, customer_email: nil, customer_id: nil, customer_name: nil, manual: nil, payroll_provider_id: nil, username: nil)
137
+ # @!method initialize(id:, client_id:, client_type:, connection_id:, connection_status:, connection_type:, products:, provider_id:, account_id: nil, authentication_methods: nil, company_id: nil, customer_email: nil, customer_id: nil, customer_name: nil, entity_ids: nil, entity_mode: nil, manual: nil, payroll_provider_id: nil, username: nil)
126
138
  # Some parameter documentations has been truncated, see
127
139
  # {FinchAPI::Models::Introspection} for more details.
128
140
  #
@@ -154,6 +166,10 @@ module FinchAPI
154
166
  #
155
167
  # @param customer_name [String, nil] The name of your customer you provided to Finch when a connect session was creat
156
168
  #
169
+ # @param entity_ids [Array<String>] Array of entity IDs associated with this connection.
170
+ #
171
+ # @param entity_mode [Symbol, FinchAPI::Models::Introspection::EntityMode] Indicates whether this connection manages a single entity or multiple entities.
172
+ #
157
173
  # @param manual [Boolean] Whether the connection associated with the `access_token` uses the Assisted Conn
158
174
  #
159
175
  # @param payroll_provider_id [String] [DEPRECATED] Use `provider_id` to identify the provider instead of this payroll
@@ -317,6 +333,19 @@ module FinchAPI
317
333
  end
318
334
  end
319
335
  end
336
+
337
+ # Indicates whether this connection manages a single entity or multiple entities.
338
+ #
339
+ # @see FinchAPI::Models::Introspection#entity_mode
340
+ module EntityMode
341
+ extend FinchAPI::Internal::Type::Enum
342
+
343
+ SINGLE = :single
344
+ MULTI = :multi
345
+
346
+ # @!method self.values
347
+ # @return [Array<Symbol>]
348
+ end
320
349
  end
321
350
  end
322
351
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FinchAPI
4
- VERSION = "0.1.0.pre.alpha.28"
4
+ VERSION = "0.1.0.pre.alpha.29"
5
5
  end
@@ -95,6 +95,24 @@ module FinchAPI
95
95
  sig { returns(T.nilable(String)) }
96
96
  attr_accessor :customer_name
97
97
 
98
+ # Array of entity IDs associated with this connection.
99
+ sig { returns(T.nilable(T::Array[String])) }
100
+ attr_reader :entity_ids
101
+
102
+ sig { params(entity_ids: T::Array[String]).void }
103
+ attr_writer :entity_ids
104
+
105
+ # Indicates whether this connection manages a single entity or multiple entities.
106
+ sig do
107
+ returns(T.nilable(FinchAPI::Introspection::EntityMode::TaggedSymbol))
108
+ end
109
+ attr_reader :entity_mode
110
+
111
+ sig do
112
+ params(entity_mode: FinchAPI::Introspection::EntityMode::OrSymbol).void
113
+ end
114
+ attr_writer :entity_mode
115
+
98
116
  # Whether the connection associated with the `access_token` uses the Assisted
99
117
  # Connect Flow. (`true` if using Assisted Connect, `false` if connection is
100
118
  # automated)
@@ -133,6 +151,8 @@ module FinchAPI
133
151
  customer_email: T.nilable(String),
134
152
  customer_id: T.nilable(String),
135
153
  customer_name: T.nilable(String),
154
+ entity_ids: T::Array[String],
155
+ entity_mode: FinchAPI::Introspection::EntityMode::OrSymbol,
136
156
  manual: T::Boolean,
137
157
  payroll_provider_id: String,
138
158
  username: T.nilable(String)
@@ -173,6 +193,10 @@ module FinchAPI
173
193
  # The name of your customer you provided to Finch when a connect session was
174
194
  # created for this connection
175
195
  customer_name: nil,
196
+ # Array of entity IDs associated with this connection.
197
+ entity_ids: nil,
198
+ # Indicates whether this connection manages a single entity or multiple entities.
199
+ entity_mode: nil,
176
200
  # Whether the connection associated with the `access_token` uses the Assisted
177
201
  # Connect Flow. (`true` if using Assisted Connect, `false` if connection is
178
202
  # automated)
@@ -204,6 +228,8 @@ module FinchAPI
204
228
  customer_email: T.nilable(String),
205
229
  customer_id: T.nilable(String),
206
230
  customer_name: T.nilable(String),
231
+ entity_ids: T::Array[String],
232
+ entity_mode: FinchAPI::Introspection::EntityMode::TaggedSymbol,
207
233
  manual: T::Boolean,
208
234
  payroll_provider_id: String,
209
235
  username: T.nilable(String)
@@ -544,6 +570,27 @@ module FinchAPI
544
570
  end
545
571
  end
546
572
  end
573
+
574
+ # Indicates whether this connection manages a single entity or multiple entities.
575
+ module EntityMode
576
+ extend FinchAPI::Internal::Type::Enum
577
+
578
+ TaggedSymbol =
579
+ T.type_alias { T.all(Symbol, FinchAPI::Introspection::EntityMode) }
580
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
581
+
582
+ SINGLE =
583
+ T.let(:single, FinchAPI::Introspection::EntityMode::TaggedSymbol)
584
+ MULTI = T.let(:multi, FinchAPI::Introspection::EntityMode::TaggedSymbol)
585
+
586
+ sig do
587
+ override.returns(
588
+ T::Array[FinchAPI::Introspection::EntityMode::TaggedSymbol]
589
+ )
590
+ end
591
+ def self.values
592
+ end
593
+ end
547
594
  end
548
595
  end
549
596
  end
@@ -16,6 +16,8 @@ module FinchAPI
16
16
  customer_email: String?,
17
17
  customer_id: String?,
18
18
  customer_name: String?,
19
+ entity_ids: ::Array[String],
20
+ entity_mode: FinchAPI::Models::Introspection::entity_mode,
19
21
  manual: bool,
20
22
  payroll_provider_id: String,
21
23
  username: String?
@@ -58,6 +60,16 @@ module FinchAPI
58
60
 
59
61
  attr_accessor customer_name: String?
60
62
 
63
+ attr_reader entity_ids: ::Array[String]?
64
+
65
+ def entity_ids=: (::Array[String]) -> ::Array[String]
66
+
67
+ attr_reader entity_mode: FinchAPI::Models::Introspection::entity_mode?
68
+
69
+ def entity_mode=: (
70
+ FinchAPI::Models::Introspection::entity_mode
71
+ ) -> FinchAPI::Models::Introspection::entity_mode
72
+
61
73
  attr_reader manual: bool?
62
74
 
63
75
  def manual=: (bool) -> bool
@@ -83,6 +95,8 @@ module FinchAPI
83
95
  ?customer_email: String?,
84
96
  ?customer_id: String?,
85
97
  ?customer_name: String?,
98
+ ?entity_ids: ::Array[String],
99
+ ?entity_mode: FinchAPI::Models::Introspection::entity_mode,
86
100
  ?manual: bool,
87
101
  ?payroll_provider_id: String,
88
102
  ?username: String?
@@ -103,6 +117,8 @@ module FinchAPI
103
117
  customer_email: String?,
104
118
  customer_id: String?,
105
119
  customer_name: String?,
120
+ entity_ids: ::Array[String],
121
+ entity_mode: FinchAPI::Models::Introspection::entity_mode,
106
122
  manual: bool,
107
123
  payroll_provider_id: String,
108
124
  username: String?
@@ -252,6 +268,17 @@ module FinchAPI
252
268
  end
253
269
  end
254
270
  end
271
+
272
+ type entity_mode = :single | :multi
273
+
274
+ module EntityMode
275
+ extend FinchAPI::Internal::Type::Enum
276
+
277
+ SINGLE: :single
278
+ MULTI: :multi
279
+
280
+ def self?.values: -> ::Array[FinchAPI::Models::Introspection::entity_mode]
281
+ end
255
282
  end
256
283
  end
257
284
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: finch-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre.alpha.28
4
+ version: 0.1.0.pre.alpha.29
5
5
  platform: ruby
6
6
  authors:
7
7
  - Finch
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-08-21 00:00:00.000000000 Z
11
+ date: 2025-09-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool