Skip to content

Commit 36c3cd0

Browse files
feat(api): api update
1 parent f6721ee commit 36c3cd0

41 files changed

Lines changed: 264 additions & 222 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 48
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch/finch-a6b05e51c46366a54466c2009f5fdde74e0fa40bbcc6568601a4e3342dd16937.yml
3-
openapi_spec_hash: 084797c220144df17d98eb984dd4cba2
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch/finch-166cc05754d8591beda094f4ee6f438f55d5f65d490ab364ea130c5100134375.yml
3+
openapi_spec_hash: 4582a35bbe9fb5404d1e4f804c877fa8
44
config_hash: 9ae56f40cec7304896138bfad5caf748

finch-java-core/src/main/kotlin/com/tryfinch/api/models/AccountCreateResponse.kt

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,12 @@ private constructor(
8787
authenticationType.getRequired("authentication_type")
8888

8989
/**
90-
* [DEPRECATED] Use `connection_id` to associate a connection with an access token
90+
* The Finch UUID of the company associated with the `access_token`.
9191
*
9292
* @throws FinchInvalidDataException if the JSON field has an unexpected type or is unexpectedly
9393
* missing or null (e.g. if the server responded with an unexpected value).
9494
*/
95-
@Deprecated("deprecated") fun companyId(): String = companyId.getRequired("company_id")
95+
fun companyId(): String = companyId.getRequired("company_id")
9696

9797
/**
9898
* The ID of the new connection
@@ -158,10 +158,7 @@ private constructor(
158158
*
159159
* Unlike [companyId], this method doesn't throw if the JSON field has an unexpected type.
160160
*/
161-
@Deprecated("deprecated")
162-
@JsonProperty("company_id")
163-
@ExcludeMissing
164-
fun _companyId(): JsonField<String> = companyId
161+
@JsonProperty("company_id") @ExcludeMissing fun _companyId(): JsonField<String> = companyId
165162

166163
/**
167164
* Returns the raw JSON value of [connectionId].
@@ -290,8 +287,7 @@ private constructor(
290287
this.authenticationType = authenticationType
291288
}
292289

293-
/** [DEPRECATED] Use `connection_id` to associate a connection with an access token */
294-
@Deprecated("deprecated")
290+
/** The Finch UUID of the company associated with the `access_token`. */
295291
fun companyId(companyId: String) = companyId(JsonField.of(companyId))
296292

297293
/**
@@ -301,7 +297,6 @@ private constructor(
301297
* This method is primarily for setting the field to an undocumented or not yet supported
302298
* value.
303299
*/
304-
@Deprecated("deprecated")
305300
fun companyId(companyId: JsonField<String>) = apply { this.companyId = companyId }
306301

307302
/** The ID of the new connection */

finch-java-core/src/main/kotlin/com/tryfinch/api/models/AccountUpdateEvent.kt

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,12 @@ private constructor(
6262
@Deprecated("deprecated") fun accountId(): String = accountId.getRequired("account_id")
6363

6464
/**
65-
* [DEPRECATED] Unique Finch ID of the company for which data has been updated. Use
66-
* `connection_id` instead to identify the connection associated with this event.
65+
* Unique Finch ID of the company for which data has been updated.
6766
*
6867
* @throws FinchInvalidDataException if the JSON field has an unexpected type or is unexpectedly
6968
* missing or null (e.g. if the server responded with an unexpected value).
7069
*/
71-
@Deprecated("deprecated") fun companyId(): String = companyId.getRequired("company_id")
70+
fun companyId(): String = companyId.getRequired("company_id")
7271

7372
/**
7473
* Unique Finch ID of the connection associated with the webhook event.
@@ -113,10 +112,7 @@ private constructor(
113112
*
114113
* Unlike [companyId], this method doesn't throw if the JSON field has an unexpected type.
115114
*/
116-
@Deprecated("deprecated")
117-
@JsonProperty("company_id")
118-
@ExcludeMissing
119-
fun _companyId(): JsonField<String> = companyId
115+
@JsonProperty("company_id") @ExcludeMissing fun _companyId(): JsonField<String> = companyId
120116

121117
/**
122118
* Returns the raw JSON value of [connectionId].
@@ -213,11 +209,7 @@ private constructor(
213209
@Deprecated("deprecated")
214210
fun accountId(accountId: JsonField<String>) = apply { this.accountId = accountId }
215211

216-
/**
217-
* [DEPRECATED] Unique Finch ID of the company for which data has been updated. Use
218-
* `connection_id` instead to identify the connection associated with this event.
219-
*/
220-
@Deprecated("deprecated")
212+
/** Unique Finch ID of the company for which data has been updated. */
221213
fun companyId(companyId: String) = companyId(JsonField.of(companyId))
222214

223215
/**
@@ -227,7 +219,6 @@ private constructor(
227219
* This method is primarily for setting the field to an undocumented or not yet supported
228220
* value.
229221
*/
230-
@Deprecated("deprecated")
231222
fun companyId(companyId: JsonField<String>) = apply { this.companyId = companyId }
232223

233224
/** Unique Finch ID of the connection associated with the webhook event. */

finch-java-core/src/main/kotlin/com/tryfinch/api/models/AccountUpdateResponse.kt

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,12 @@ private constructor(
7676
authenticationType.getRequired("authentication_type")
7777

7878
/**
79-
* [DEPRECATED] Use `connection_id` to associate a connection with an access token
79+
* The Finch UUID of the company associated with the `access_token`.
8080
*
8181
* @throws FinchInvalidDataException if the JSON field has an unexpected type or is unexpectedly
8282
* missing or null (e.g. if the server responded with an unexpected value).
8383
*/
84-
@Deprecated("deprecated") fun companyId(): String = companyId.getRequired("company_id")
84+
fun companyId(): String = companyId.getRequired("company_id")
8585

8686
/**
8787
* The ID of the new connection
@@ -138,10 +138,7 @@ private constructor(
138138
*
139139
* Unlike [companyId], this method doesn't throw if the JSON field has an unexpected type.
140140
*/
141-
@Deprecated("deprecated")
142-
@JsonProperty("company_id")
143-
@ExcludeMissing
144-
fun _companyId(): JsonField<String> = companyId
141+
@JsonProperty("company_id") @ExcludeMissing fun _companyId(): JsonField<String> = companyId
145142

146143
/**
147144
* Returns the raw JSON value of [connectionId].
@@ -256,8 +253,7 @@ private constructor(
256253
this.authenticationType = authenticationType
257254
}
258255

259-
/** [DEPRECATED] Use `connection_id` to associate a connection with an access token */
260-
@Deprecated("deprecated")
256+
/** The Finch UUID of the company associated with the `access_token`. */
261257
fun companyId(companyId: String) = companyId(JsonField.of(companyId))
262258

263259
/**
@@ -267,7 +263,6 @@ private constructor(
267263
* This method is primarily for setting the field to an undocumented or not yet supported
268264
* value.
269265
*/
270-
@Deprecated("deprecated")
271266
fun companyId(companyId: JsonField<String>) = apply { this.companyId = companyId }
272267

273268
/** The ID of the new connection */

finch-java-core/src/main/kotlin/com/tryfinch/api/models/BaseWebhookEvent.kt

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,12 @@ private constructor(
4646
@Deprecated("deprecated") fun accountId(): String = accountId.getRequired("account_id")
4747

4848
/**
49-
* [DEPRECATED] Unique Finch ID of the company for which data has been updated. Use
50-
* `connection_id` instead to identify the connection associated with this event.
49+
* Unique Finch ID of the company for which data has been updated.
5150
*
5251
* @throws FinchInvalidDataException if the JSON field has an unexpected type or is unexpectedly
5352
* missing or null (e.g. if the server responded with an unexpected value).
5453
*/
55-
@Deprecated("deprecated") fun companyId(): String = companyId.getRequired("company_id")
54+
fun companyId(): String = companyId.getRequired("company_id")
5655

5756
/**
5857
* Unique Finch ID of the connection associated with the webhook event.
@@ -85,10 +84,7 @@ private constructor(
8584
*
8685
* Unlike [companyId], this method doesn't throw if the JSON field has an unexpected type.
8786
*/
88-
@Deprecated("deprecated")
89-
@JsonProperty("company_id")
90-
@ExcludeMissing
91-
fun _companyId(): JsonField<String> = companyId
87+
@JsonProperty("company_id") @ExcludeMissing fun _companyId(): JsonField<String> = companyId
9288

9389
/**
9490
* Returns the raw JSON value of [connectionId].
@@ -167,11 +163,7 @@ private constructor(
167163
@Deprecated("deprecated")
168164
fun accountId(accountId: JsonField<String>) = apply { this.accountId = accountId }
169165

170-
/**
171-
* [DEPRECATED] Unique Finch ID of the company for which data has been updated. Use
172-
* `connection_id` instead to identify the connection associated with this event.
173-
*/
174-
@Deprecated("deprecated")
166+
/** Unique Finch ID of the company for which data has been updated. */
175167
fun companyId(companyId: String) = companyId(JsonField.of(companyId))
176168

177169
/**
@@ -181,7 +173,6 @@ private constructor(
181173
* This method is primarily for setting the field to an undocumented or not yet supported
182174
* value.
183175
*/
184-
@Deprecated("deprecated")
185176
fun companyId(companyId: JsonField<String>) = apply { this.companyId = companyId }
186177

187178
/** Unique Finch ID of the connection associated with the webhook event. */

finch-java-core/src/main/kotlin/com/tryfinch/api/models/CompanyEvent.kt

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,12 @@ private constructor(
6363
@Deprecated("deprecated") fun accountId(): String = accountId.getRequired("account_id")
6464

6565
/**
66-
* [DEPRECATED] Unique Finch ID of the company for which data has been updated. Use
67-
* `connection_id` instead to identify the connection associated with this event.
66+
* Unique Finch ID of the company for which data has been updated.
6867
*
6968
* @throws FinchInvalidDataException if the JSON field has an unexpected type or is unexpectedly
7069
* missing or null (e.g. if the server responded with an unexpected value).
7170
*/
72-
@Deprecated("deprecated") fun companyId(): String = companyId.getRequired("company_id")
71+
fun companyId(): String = companyId.getRequired("company_id")
7372

7473
/**
7574
* Unique Finch ID of the connection associated with the webhook event.
@@ -114,10 +113,7 @@ private constructor(
114113
*
115114
* Unlike [companyId], this method doesn't throw if the JSON field has an unexpected type.
116115
*/
117-
@Deprecated("deprecated")
118-
@JsonProperty("company_id")
119-
@ExcludeMissing
120-
fun _companyId(): JsonField<String> = companyId
116+
@JsonProperty("company_id") @ExcludeMissing fun _companyId(): JsonField<String> = companyId
121117

122118
/**
123119
* Returns the raw JSON value of [connectionId].
@@ -214,11 +210,7 @@ private constructor(
214210
@Deprecated("deprecated")
215211
fun accountId(accountId: JsonField<String>) = apply { this.accountId = accountId }
216212

217-
/**
218-
* [DEPRECATED] Unique Finch ID of the company for which data has been updated. Use
219-
* `connection_id` instead to identify the connection associated with this event.
220-
*/
221-
@Deprecated("deprecated")
213+
/** Unique Finch ID of the company for which data has been updated. */
222214
fun companyId(companyId: String) = companyId(JsonField.of(companyId))
223215

224216
/**
@@ -228,7 +220,6 @@ private constructor(
228220
* This method is primarily for setting the field to an undocumented or not yet supported
229221
* value.
230222
*/
231-
@Deprecated("deprecated")
232223
fun companyId(companyId: JsonField<String>) = apply { this.companyId = companyId }
233224

234225
/** Unique Finch ID of the connection associated with the webhook event. */

finch-java-core/src/main/kotlin/com/tryfinch/api/models/ConnectionCreateResponse.kt

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,12 @@ private constructor(
9191
authenticationType.getRequired("authentication_type")
9292

9393
/**
94-
* [DEPRECATED] Use `connection_id` to associate a connection with an access token
94+
* The Finch UUID of the company associated with the `access_token`.
9595
*
9696
* @throws FinchInvalidDataException if the JSON field has an unexpected type or is unexpectedly
9797
* missing or null (e.g. if the server responded with an unexpected value).
9898
*/
99-
@Deprecated("deprecated") fun companyId(): String = companyId.getRequired("company_id")
99+
fun companyId(): String = companyId.getRequired("company_id")
100100

101101
/**
102102
* The ID of the new connection
@@ -168,10 +168,7 @@ private constructor(
168168
*
169169
* Unlike [companyId], this method doesn't throw if the JSON field has an unexpected type.
170170
*/
171-
@Deprecated("deprecated")
172-
@JsonProperty("company_id")
173-
@ExcludeMissing
174-
fun _companyId(): JsonField<String> = companyId
171+
@JsonProperty("company_id") @ExcludeMissing fun _companyId(): JsonField<String> = companyId
175172

176173
/**
177174
* Returns the raw JSON value of [connectionId].
@@ -309,8 +306,7 @@ private constructor(
309306
this.authenticationType = authenticationType
310307
}
311308

312-
/** [DEPRECATED] Use `connection_id` to associate a connection with an access token */
313-
@Deprecated("deprecated")
309+
/** The Finch UUID of the company associated with the `access_token`. */
314310
fun companyId(companyId: String) = companyId(JsonField.of(companyId))
315311

316312
/**
@@ -320,7 +316,6 @@ private constructor(
320316
* This method is primarily for setting the field to an undocumented or not yet supported
321317
* value.
322318
*/
323-
@Deprecated("deprecated")
324319
fun companyId(companyId: JsonField<String>) = apply { this.companyId = companyId }
325320

326321
/** The ID of the new connection */

finch-java-core/src/main/kotlin/com/tryfinch/api/models/CreateAccessTokenResponse.kt

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -162,12 +162,11 @@ private constructor(
162162
fun accountId(): Optional<String> = accountId.getOptional("account_id")
163163

164164
/**
165-
* [DEPRECATED] Use `connection_id` to identify the connection instead of this company ID
165+
* The Finch UUID of the company associated with the `access_token`.
166166
*
167167
* @throws FinchInvalidDataException if the JSON field has an unexpected type (e.g. if the
168168
* server responded with an unexpected value).
169169
*/
170-
@Deprecated("deprecated")
171170
fun companyId(): Optional<String> = companyId.getOptional("company_id")
172171

173172
/**
@@ -269,10 +268,7 @@ private constructor(
269268
*
270269
* Unlike [companyId], this method doesn't throw if the JSON field has an unexpected type.
271270
*/
272-
@Deprecated("deprecated")
273-
@JsonProperty("company_id")
274-
@ExcludeMissing
275-
fun _companyId(): JsonField<String> = companyId
271+
@JsonProperty("company_id") @ExcludeMissing fun _companyId(): JsonField<String> = companyId
276272

277273
/**
278274
* Returns the raw JSON value of [customerId].
@@ -505,10 +501,7 @@ private constructor(
505501
@Deprecated("deprecated")
506502
fun accountId(accountId: JsonField<String>) = apply { this.accountId = accountId }
507503

508-
/**
509-
* [DEPRECATED] Use `connection_id` to identify the connection instead of this company ID
510-
*/
511-
@Deprecated("deprecated")
504+
/** The Finch UUID of the company associated with the `access_token`. */
512505
fun companyId(companyId: String) = companyId(JsonField.of(companyId))
513506

514507
/**
@@ -518,7 +511,6 @@ private constructor(
518511
* This method is primarily for setting the field to an undocumented or not yet supported
519512
* value.
520513
*/
521-
@Deprecated("deprecated")
522514
fun companyId(companyId: JsonField<String>) = apply { this.companyId = companyId }
523515

524516
/**

finch-java-core/src/main/kotlin/com/tryfinch/api/models/DirectoryEvent.kt

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,12 @@ private constructor(
6262
@Deprecated("deprecated") fun accountId(): String = accountId.getRequired("account_id")
6363

6464
/**
65-
* [DEPRECATED] Unique Finch ID of the company for which data has been updated. Use
66-
* `connection_id` instead to identify the connection associated with this event.
65+
* Unique Finch ID of the company for which data has been updated.
6766
*
6867
* @throws FinchInvalidDataException if the JSON field has an unexpected type or is unexpectedly
6968
* missing or null (e.g. if the server responded with an unexpected value).
7069
*/
71-
@Deprecated("deprecated") fun companyId(): String = companyId.getRequired("company_id")
70+
fun companyId(): String = companyId.getRequired("company_id")
7271

7372
/**
7473
* Unique Finch ID of the connection associated with the webhook event.
@@ -113,10 +112,7 @@ private constructor(
113112
*
114113
* Unlike [companyId], this method doesn't throw if the JSON field has an unexpected type.
115114
*/
116-
@Deprecated("deprecated")
117-
@JsonProperty("company_id")
118-
@ExcludeMissing
119-
fun _companyId(): JsonField<String> = companyId
115+
@JsonProperty("company_id") @ExcludeMissing fun _companyId(): JsonField<String> = companyId
120116

121117
/**
122118
* Returns the raw JSON value of [connectionId].
@@ -213,11 +209,7 @@ private constructor(
213209
@Deprecated("deprecated")
214210
fun accountId(accountId: JsonField<String>) = apply { this.accountId = accountId }
215211

216-
/**
217-
* [DEPRECATED] Unique Finch ID of the company for which data has been updated. Use
218-
* `connection_id` instead to identify the connection associated with this event.
219-
*/
220-
@Deprecated("deprecated")
212+
/** Unique Finch ID of the company for which data has been updated. */
221213
fun companyId(companyId: String) = companyId(JsonField.of(companyId))
222214

223215
/**
@@ -227,7 +219,6 @@ private constructor(
227219
* This method is primarily for setting the field to an undocumented or not yet supported
228220
* value.
229221
*/
230-
@Deprecated("deprecated")
231222
fun companyId(companyId: JsonField<String>) = apply { this.companyId = companyId }
232223

233224
/** Unique Finch ID of the connection associated with the webhook event. */

0 commit comments

Comments
 (0)