Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.410.0"
".": "0.411.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 232
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-46a90f99726aa861d06ec56fb73592b4dcb4499d5a765d1a10dfc9619446306f.yml
openapi_spec_hash: 8406b96c39c72de064a810c393c00554
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-cfc57f9c5bccf2918dfb5fc56fb6b6fd1eadd851f037b6873ba4e2442d5c8126.yml
openapi_spec_hash: 7e54b69798d6a1487474ed229a83c6fc
config_hash: 27e44ed36b9c5617b580ead7231a594a
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.411.0 (2026-01-30)

Full Changelog: [v0.410.0...v0.411.0](https://github.com/Increase/increase-java/compare/v0.410.0...v0.411.0)

### Features

* **api:** api update ([d9bd1b1](https://github.com/Increase/increase-java/commit/d9bd1b1c38d3fc70a5625a4642a62c9ea02e822b))

## 0.410.0 (2026-01-30)

Full Changelog: [v0.409.0...v0.410.0](https://github.com/Increase/increase-java/compare/v0.409.0...v0.410.0)
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

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

[![Maven Central](https://img.shields.io/maven-central/v/com.increase.api/increase-java)](https://central.sonatype.com/artifact/com.increase.api/increase-java/0.410.0)
[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.410.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.410.0)
[![Maven Central](https://img.shields.io/maven-central/v/com.increase.api/increase-java)](https://central.sonatype.com/artifact/com.increase.api/increase-java/0.411.0)
[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.411.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.411.0)

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

Expand All @@ -13,7 +13,7 @@ The Increase Java SDK is similar to the Increase Kotlin SDK but with minor diffe

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

The REST API documentation can be found on [increase.com](https://increase.com/documentation). Javadocs are available on [javadoc.io](https://javadoc.io/doc/com.increase.api/increase-java/0.410.0).
The REST API documentation can be found on [increase.com](https://increase.com/documentation). Javadocs are available on [javadoc.io](https://javadoc.io/doc/com.increase.api/increase-java/0.411.0).

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

Expand All @@ -24,7 +24,7 @@ The REST API documentation can be found on [increase.com](https://increase.com/d
### Gradle

```kotlin
implementation("com.increase.api:increase-java:0.410.0")
implementation("com.increase.api:increase-java:0.411.0")
```

### Maven
Expand All @@ -33,7 +33,7 @@ implementation("com.increase.api:increase-java:0.410.0")
<dependency>
<groupId>com.increase.api</groupId>
<artifactId>increase-java</artifactId>
<version>0.410.0</version>
<version>0.411.0</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ repositories {

allprojects {
group = "com.increase.api"
version = "0.410.0" // x-release-please-version
version = "0.411.0" // x-release-please-version
}

subprojects {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,10 @@ private constructor(
/**
* Whether the Account is funded by a loan or by deposits.
*
* @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if the
* server responded with an unexpected value).
* @throws IncreaseInvalidDataException if the JSON field has an unexpected type or is
* unexpectedly missing or null (e.g. if the server responded with an unexpected value).
*/
fun funding(): Optional<Funding> = funding.getOptional("funding")
fun funding(): Funding = funding.getRequired("funding")

/**
* The idempotency key you chose for this object. This value is unique across Increase and is
Expand Down Expand Up @@ -597,10 +597,7 @@ private constructor(
fun entityId(entityId: JsonField<String>) = apply { this.entityId = entityId }

/** Whether the Account is funded by a loan or by deposits. */
fun funding(funding: Funding?) = funding(JsonField.ofNullable(funding))

/** Alias for calling [Builder.funding] with `funding.orElse(null)`. */
fun funding(funding: Optional<Funding>) = funding(funding.getOrNull())
fun funding(funding: Funding) = funding(JsonField.of(funding))

/**
* Sets [Builder.funding] to an arbitrary JSON value.
Expand Down Expand Up @@ -865,7 +862,7 @@ private constructor(
createdAt()
currency().validate()
entityId()
funding().ifPresent { it.validate() }
funding().validate()
idempotencyKey()
informationalEntityId()
interestAccrued()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ internal class AccountListPageResponseTest {
.createdAt(OffsetDateTime.parse("2020-01-31T23:59:59Z"))
.currency(Account.Currency.USD)
.entityId("entity_n8y8tnk2p9339ti393yi")
.funding(null)
.funding(Account.Funding.DEPOSITS)
.idempotencyKey(null)
.informationalEntityId(null)
.interestAccrued("0.01")
Expand Down Expand Up @@ -58,7 +58,7 @@ internal class AccountListPageResponseTest {
.createdAt(OffsetDateTime.parse("2020-01-31T23:59:59Z"))
.currency(Account.Currency.USD)
.entityId("entity_n8y8tnk2p9339ti393yi")
.funding(null)
.funding(Account.Funding.DEPOSITS)
.idempotencyKey(null)
.informationalEntityId(null)
.interestAccrued("0.01")
Expand Down Expand Up @@ -96,7 +96,7 @@ internal class AccountListPageResponseTest {
.createdAt(OffsetDateTime.parse("2020-01-31T23:59:59Z"))
.currency(Account.Currency.USD)
.entityId("entity_n8y8tnk2p9339ti393yi")
.funding(null)
.funding(Account.Funding.DEPOSITS)
.idempotencyKey(null)
.informationalEntityId(null)
.interestAccrued("0.01")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ internal class AccountTest {
.createdAt(OffsetDateTime.parse("2020-01-31T23:59:59Z"))
.currency(Account.Currency.USD)
.entityId("entity_n8y8tnk2p9339ti393yi")
.funding(null)
.funding(Account.Funding.DEPOSITS)
.idempotencyKey(null)
.informationalEntityId(null)
.interestAccrued("0.01")
Expand Down Expand Up @@ -50,7 +50,7 @@ internal class AccountTest {
assertThat(account.createdAt()).isEqualTo(OffsetDateTime.parse("2020-01-31T23:59:59Z"))
assertThat(account.currency()).isEqualTo(Account.Currency.USD)
assertThat(account.entityId()).isEqualTo("entity_n8y8tnk2p9339ti393yi")
assertThat(account.funding()).isEmpty
assertThat(account.funding()).isEqualTo(Account.Funding.DEPOSITS)
assertThat(account.idempotencyKey()).isEmpty
assertThat(account.informationalEntityId()).isEmpty
assertThat(account.interestAccrued()).isEqualTo("0.01")
Expand Down Expand Up @@ -84,7 +84,7 @@ internal class AccountTest {
.createdAt(OffsetDateTime.parse("2020-01-31T23:59:59Z"))
.currency(Account.Currency.USD)
.entityId("entity_n8y8tnk2p9339ti393yi")
.funding(null)
.funding(Account.Funding.DEPOSITS)
.idempotencyKey(null)
.informationalEntityId(null)
.interestAccrued("0.01")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ internal class ProGuardCompatibilityTest {
.createdAt(OffsetDateTime.parse("2020-01-31T23:59:59Z"))
.currency(Account.Currency.USD)
.entityId("entity_n8y8tnk2p9339ti393yi")
.funding(null)
.funding(Account.Funding.DEPOSITS)
.idempotencyKey(null)
.informationalEntityId(null)
.interestAccrued("0.01")
Expand Down
Loading