Skip to content

Commit f901d77

Browse files
release: 6.0.0 (#547)
* codegen metadata * codegen metadata * chore(ci): run on more branches and use depot runners * chore(ci): only use depot for staging repos * chore(internal): java 17 -> 21 on ci * feat(api): api update * feat(api): api update * feat(api): api update * feat(api): api update * feat(api): api update * feat(api): api update * feat(api): api update * feat(api): api update * feat(api): api update * feat(api): api update * feat(api): api update * feat(api): api update * feat(api): api update * feat(api): api update * chore(internal): update java toolchain * feat(api): api update * feat(api): api update * feat(api): api update * feat(api): api update * chore(internal): remove flaky `-Xbackend-threads=0` option * feat(client)!: don't require end-users to specify constants # Migration Builder methods that previously accepted a single possible value no longer need to be called. * release: 6.0.0 --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent ded2580 commit f901d77

File tree

61 files changed

+6486
-3811
lines changed

Some content is hidden

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

61 files changed

+6486
-3811
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "5.5.0"
2+
".": "6.0.0"
33
}

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 45
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-05a1c7485ea6dd75ad2fb1a0628570d88a3e7c4f1e1ecad433711c78deae50e6.yml
3-
openapi_spec_hash: 6d6014d50e18c98219b496bb2a5dab1d
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-f09e5f2c555d7ee764478b7bc73e92cd21f403d6ec189be14574c8367bc131ce.yml
3+
openapi_spec_hash: bd0a8e001f14132c105992d40149909a
44
config_hash: 53778a0b839c4f6ad34fbba051f5e8a6

CHANGELOG.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,41 @@
11
# Changelog
22

3+
## 6.0.0 (2025-05-08)
4+
5+
Full Changelog: [v5.5.0...v6.0.0](https://github.com/Finch-API/finch-api-java/compare/v5.5.0...v6.0.0)
6+
7+
### ⚠ BREAKING CHANGES
8+
9+
* **client:** don't require end-users to specify constants
10+
* **client:** **Migration:** Builder methods that previously accepted a single possible value no longer need to be called.
11+
12+
### Features
13+
14+
* **api:** api update ([59c1d39](https://github.com/Finch-API/finch-api-java/commit/59c1d397d17589eec93f6c1dab760aaa1d548188))
15+
* **api:** api update ([2aa8003](https://github.com/Finch-API/finch-api-java/commit/2aa8003c7dfeb9be0a15a57d1c46931a7f85ab3e))
16+
* **api:** api update ([988e834](https://github.com/Finch-API/finch-api-java/commit/988e8348cd1d2e31f5e2aaa91adfc835ae973ba0))
17+
* **api:** api update ([b98adb3](https://github.com/Finch-API/finch-api-java/commit/b98adb325de5d5b7220bbeac1f1e5fd56f7a0c13))
18+
* **api:** api update ([f816b28](https://github.com/Finch-API/finch-api-java/commit/f816b281bd01e85660f613f14431a43eb761a221))
19+
* **api:** api update ([d399e4f](https://github.com/Finch-API/finch-api-java/commit/d399e4f9395f2e84f6a97399ae6f0fdcbc34d7cd))
20+
* **api:** api update ([cc2b828](https://github.com/Finch-API/finch-api-java/commit/cc2b8288f7c3ce5bc62e7ca074fd53fc6f05e253))
21+
* **api:** api update ([a9fefbc](https://github.com/Finch-API/finch-api-java/commit/a9fefbc485cfa35d7c34aa409333a7b2e244f26a))
22+
* **api:** api update ([9e451d0](https://github.com/Finch-API/finch-api-java/commit/9e451d0ea744078d1c4f10c878a950ca3719237b))
23+
* **api:** api update ([f45fb21](https://github.com/Finch-API/finch-api-java/commit/f45fb2151509dd96e2630b94ed4b3a1f3f711439))
24+
* **api:** api update ([43c21f7](https://github.com/Finch-API/finch-api-java/commit/43c21f75d63053a888c4ba99dd63847b145bf360))
25+
* **api:** api update ([35e522b](https://github.com/Finch-API/finch-api-java/commit/35e522ba3ad911b49f41ad4b62f1ddc3257dbcd2))
26+
* **api:** api update ([70708d7](https://github.com/Finch-API/finch-api-java/commit/70708d78bc704b34f936e835b614e54c87c2db03))
27+
* **api:** api update ([f8988d7](https://github.com/Finch-API/finch-api-java/commit/f8988d7fc959241b683da19b068c95a8ac023e24))
28+
* **api:** api update ([53c3147](https://github.com/Finch-API/finch-api-java/commit/53c31470ca6f0cf5985f8ebd60446f8f08e84913))
29+
* **api:** api update ([30df955](https://github.com/Finch-API/finch-api-java/commit/30df955523928c30ef0e29f1154ff5fee88d80d1))
30+
* **api:** api update ([79e067e](https://github.com/Finch-API/finch-api-java/commit/79e067e9790c16095a9a81cea65fb500c6f4aea6))
31+
* **client:** don't require end-users to specify constants ([055d459](https://github.com/Finch-API/finch-api-java/commit/055d4597de3f260537ccfa65a8f094e9df39bebb))
32+
33+
34+
### Chores
35+
36+
* **internal:** remove flaky `-Xbackend-threads=0` option ([4271051](https://github.com/Finch-API/finch-api-java/commit/4271051bb2d5b34d55418363f2e8f958a3688dd5))
37+
* **internal:** update java toolchain ([0242272](https://github.com/Finch-API/finch-api-java/commit/02422720923c2ec5b5348b0c7e90657433015847))
38+
339
## 5.5.0 (2025-04-23)
440

541
Full Changelog: [v5.4.0...v5.5.0](https://github.com/Finch-API/finch-api-java/compare/v5.4.0...v5.5.0)

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
<!-- x-release-please-start-version -->
44

5-
[![Maven Central](https://img.shields.io/maven-central/v/com.tryfinch.api/finch-java)](https://central.sonatype.com/artifact/com.tryfinch.api/finch-java/5.5.0)
6-
[![javadoc](https://javadoc.io/badge2/com.tryfinch.api/finch-java/5.5.0/javadoc.svg)](https://javadoc.io/doc/com.tryfinch.api/finch-java/5.5.0)
5+
[![Maven Central](https://img.shields.io/maven-central/v/com.tryfinch.api/finch-java)](https://central.sonatype.com/artifact/com.tryfinch.api/finch-java/6.0.0)
6+
[![javadoc](https://javadoc.io/badge2/com.tryfinch.api/finch-java/6.0.0/javadoc.svg)](https://javadoc.io/doc/com.tryfinch.api/finch-java/6.0.0)
77

88
<!-- x-release-please-end -->
99

@@ -15,7 +15,7 @@ It is generated with [Stainless](https://www.stainless.com/).
1515

1616
<!-- x-release-please-start-version -->
1717

18-
The REST API documentation can be found on [developer.tryfinch.com](https://developer.tryfinch.com/). Javadocs are available on [javadoc.io](https://javadoc.io/doc/com.tryfinch.api/finch-java/5.5.0).
18+
The REST API documentation can be found on [developer.tryfinch.com](https://developer.tryfinch.com/). Javadocs are available on [javadoc.io](https://javadoc.io/doc/com.tryfinch.api/finch-java/6.0.0).
1919

2020
<!-- x-release-please-end -->
2121

@@ -26,7 +26,7 @@ The REST API documentation can be found on [developer.tryfinch.com](https://deve
2626
### Gradle
2727

2828
```kotlin
29-
implementation("com.tryfinch.api:finch-java:5.5.0")
29+
implementation("com.tryfinch.api:finch-java:6.0.0")
3030
```
3131

3232
### Maven
@@ -35,7 +35,7 @@ implementation("com.tryfinch.api:finch-java:5.5.0")
3535
<dependency>
3636
<groupId>com.tryfinch.api</groupId>
3737
<artifactId>finch-java</artifactId>
38-
<version>5.5.0</version>
38+
<version>6.0.0</version>
3939
</dependency>
4040
```
4141

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ repositories {
88

99
allprojects {
1010
group = "com.tryfinch.api"
11-
version = "5.5.0" // x-release-please-version
11+
version = "6.0.0" // x-release-please-version
1212
}
1313

1414
subprojects {

buildSrc/src/main/kotlin/finch.java.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ configure<SpotlessExtension> {
2121

2222
java {
2323
toolchain {
24-
languageVersion.set(JavaLanguageVersion.of(17))
24+
languageVersion.set(JavaLanguageVersion.of(21))
2525
}
2626

2727
sourceCompatibility = JavaVersion.VERSION_1_8

buildSrc/src/main/kotlin/finch.kotlin.gradle.kts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ kotlin {
1919
// Suppress deprecation warnings because we may still reference and test deprecated members.
2020
// TODO: Replace with `-Xsuppress-warning=DEPRECATION` once we use Kotlin compiler 2.1.0+.
2121
"-nowarn",
22-
// Use as many threads as there are CPU cores on the machine for compilation.
23-
"-Xbackend-threads=0",
2422
)
2523
jvmTarget.set(JvmTarget.JVM_1_8)
2624
languageVersion.set(KotlinVersion.KOTLIN_1_8)

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

Lines changed: 101 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -692,18 +692,29 @@ private constructor(
692692

693693
companion object {
694694

695-
/** Returns a mutable builder for constructing an instance of [Account]. */
695+
/**
696+
* Returns a mutable builder for constructing an instance of [Account].
697+
*
698+
* The following fields are required:
699+
* ```java
700+
* .accountName()
701+
* .accountNumber()
702+
* .accountType()
703+
* .institutionName()
704+
* .routingNumber()
705+
* ```
706+
*/
696707
@JvmStatic fun builder() = Builder()
697708
}
698709

699710
/** A builder for [Account]. */
700711
class Builder internal constructor() {
701712

702-
private var accountName: JsonField<String> = JsonMissing.of()
703-
private var accountNumber: JsonField<String> = JsonMissing.of()
704-
private var accountType: JsonField<AccountType> = JsonMissing.of()
705-
private var institutionName: JsonField<String> = JsonMissing.of()
706-
private var routingNumber: JsonField<String> = JsonMissing.of()
713+
private var accountName: JsonField<String>? = null
714+
private var accountNumber: JsonField<String>? = null
715+
private var accountType: JsonField<AccountType>? = null
716+
private var institutionName: JsonField<String>? = null
717+
private var routingNumber: JsonField<String>? = null
707718
private var additionalProperties: MutableMap<String, JsonValue> = mutableMapOf()
708719

709720
@JvmSynthetic
@@ -835,14 +846,25 @@ private constructor(
835846
* Returns an immutable instance of [Account].
836847
*
837848
* Further updates to this [Builder] will not mutate the returned instance.
849+
*
850+
* The following fields are required:
851+
* ```java
852+
* .accountName()
853+
* .accountNumber()
854+
* .accountType()
855+
* .institutionName()
856+
* .routingNumber()
857+
* ```
858+
*
859+
* @throws IllegalStateException if any required field is unset.
838860
*/
839861
fun build(): Account =
840862
Account(
841-
accountName,
842-
accountNumber,
843-
accountType,
844-
institutionName,
845-
routingNumber,
863+
checkRequired("accountName", accountName),
864+
checkRequired("accountNumber", accountNumber),
865+
checkRequired("accountType", accountType),
866+
checkRequired("institutionName", institutionName),
867+
checkRequired("routingNumber", routingNumber),
846868
additionalProperties.toMutableMap(),
847869
)
848870
}
@@ -1091,15 +1113,23 @@ private constructor(
10911113

10921114
companion object {
10931115

1094-
/** Returns a mutable builder for constructing an instance of [Department]. */
1116+
/**
1117+
* Returns a mutable builder for constructing an instance of [Department].
1118+
*
1119+
* The following fields are required:
1120+
* ```java
1121+
* .name()
1122+
* .parent()
1123+
* ```
1124+
*/
10951125
@JvmStatic fun builder() = Builder()
10961126
}
10971127

10981128
/** A builder for [Department]. */
10991129
class Builder internal constructor() {
11001130

1101-
private var name: JsonField<String> = JsonMissing.of()
1102-
private var parent: JsonField<Parent> = JsonMissing.of()
1131+
private var name: JsonField<String>? = null
1132+
private var parent: JsonField<Parent>? = null
11031133
private var additionalProperties: MutableMap<String, JsonValue> = mutableMapOf()
11041134

11051135
@JvmSynthetic
@@ -1162,8 +1192,21 @@ private constructor(
11621192
* Returns an immutable instance of [Department].
11631193
*
11641194
* Further updates to this [Builder] will not mutate the returned instance.
1195+
*
1196+
* The following fields are required:
1197+
* ```java
1198+
* .name()
1199+
* .parent()
1200+
* ```
1201+
*
1202+
* @throws IllegalStateException if any required field is unset.
11651203
*/
1166-
fun build(): Department = Department(name, parent, additionalProperties.toMutableMap())
1204+
fun build(): Department =
1205+
Department(
1206+
checkRequired("name", name),
1207+
checkRequired("parent", parent),
1208+
additionalProperties.toMutableMap(),
1209+
)
11671210
}
11681211

11691212
private var validated: Boolean = false
@@ -1238,14 +1281,21 @@ private constructor(
12381281

12391282
companion object {
12401283

1241-
/** Returns a mutable builder for constructing an instance of [Parent]. */
1284+
/**
1285+
* Returns a mutable builder for constructing an instance of [Parent].
1286+
*
1287+
* The following fields are required:
1288+
* ```java
1289+
* .name()
1290+
* ```
1291+
*/
12421292
@JvmStatic fun builder() = Builder()
12431293
}
12441294

12451295
/** A builder for [Parent]. */
12461296
class Builder internal constructor() {
12471297

1248-
private var name: JsonField<String> = JsonMissing.of()
1298+
private var name: JsonField<String>? = null
12491299
private var additionalProperties: MutableMap<String, JsonValue> = mutableMapOf()
12501300

12511301
@JvmSynthetic
@@ -1295,8 +1345,16 @@ private constructor(
12951345
* Returns an immutable instance of [Parent].
12961346
*
12971347
* Further updates to this [Builder] will not mutate the returned instance.
1348+
*
1349+
* The following fields are required:
1350+
* ```java
1351+
* .name()
1352+
* ```
1353+
*
1354+
* @throws IllegalStateException if any required field is unset.
12981355
*/
1299-
fun build(): Parent = Parent(name, additionalProperties.toMutableMap())
1356+
fun build(): Parent =
1357+
Parent(checkRequired("name", name), additionalProperties.toMutableMap())
13001358
}
13011359

13021360
private var validated: Boolean = false
@@ -1420,15 +1478,23 @@ private constructor(
14201478

14211479
companion object {
14221480

1423-
/** Returns a mutable builder for constructing an instance of [Entity]. */
1481+
/**
1482+
* Returns a mutable builder for constructing an instance of [Entity].
1483+
*
1484+
* The following fields are required:
1485+
* ```java
1486+
* .subtype()
1487+
* .type()
1488+
* ```
1489+
*/
14241490
@JvmStatic fun builder() = Builder()
14251491
}
14261492

14271493
/** A builder for [Entity]. */
14281494
class Builder internal constructor() {
14291495

1430-
private var subtype: JsonField<Subtype> = JsonMissing.of()
1431-
private var type: JsonField<Type> = JsonMissing.of()
1496+
private var subtype: JsonField<Subtype>? = null
1497+
private var type: JsonField<Type>? = null
14321498
private var additionalProperties: MutableMap<String, JsonValue> = mutableMapOf()
14331499

14341500
@JvmSynthetic
@@ -1491,8 +1557,21 @@ private constructor(
14911557
* Returns an immutable instance of [Entity].
14921558
*
14931559
* Further updates to this [Builder] will not mutate the returned instance.
1560+
*
1561+
* The following fields are required:
1562+
* ```java
1563+
* .subtype()
1564+
* .type()
1565+
* ```
1566+
*
1567+
* @throws IllegalStateException if any required field is unset.
14941568
*/
1495-
fun build(): Entity = Entity(subtype, type, additionalProperties.toMutableMap())
1569+
fun build(): Entity =
1570+
Entity(
1571+
checkRequired("subtype", subtype),
1572+
checkRequired("type", type),
1573+
additionalProperties.toMutableMap(),
1574+
)
14961575
}
14971576

14981577
private var validated: Boolean = false

0 commit comments

Comments
 (0)