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.539.0"
".": "0.540.0"
}
6 changes: 3 additions & 3 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 238
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase/increase-8444ba4d474e25e8bd4474e53e985998c050b982eac5693a3168116c578bea64.yml
openapi_spec_hash: 8a7faa0b93068b32ed26567fcf2c7158
config_hash: 20a19f4f8eba684f97ba7cdc0007f818
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase/increase-894485303846b0d3d71172a30ddb9de5903207874792f84c774e9d9900fe0769.yml
openapi_spec_hash: 9a4d6d3040580b3d0a4e0264dd77127f
config_hash: ac050010e5453883d5e5fa603554a2e0
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## 0.540.0 (2026-05-04)

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

### Features

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


### Documentation

* clarify forwards compat behavior ([0cba430](https://github.com/Increase/increase-java/commit/0cba430cc763aa6afba2074d1c61b3fe9fce7fe8))

## 0.539.0 (2026-05-02)

Full Changelog: [v0.538.0...v0.539.0](https://github.com/Increase/increase-java/compare/v0.538.0...v0.539.0)
Expand Down
14 changes: 8 additions & 6 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.539.0)
[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.539.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.539.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.540.0)
[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.540.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.540.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.539.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.540.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.539.0")
implementation("com.increase.api:increase-java:0.540.0")
```

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

Expand Down Expand Up @@ -764,7 +764,9 @@ In rare cases, the API may return a response that doesn't match the expected typ

By default, the SDK will not throw an exception in this case. It will throw [`IncreaseInvalidDataException`](increase-java-core/src/main/kotlin/com/increase/api/errors/IncreaseInvalidDataException.kt) only if you directly access the property.

If you would prefer to check that the response is completely well-typed upfront, then either call `validate()`:
Validating the response is _not_ forwards compatible with new types from the API for existing fields.

If you would still prefer to check that the response is completely well-typed upfront, then either call `validate()`:

```java
import com.increase.api.models.accounts.Account;
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.539.0" // x-release-please-version
version = "0.540.0" // x-release-please-version
}

subprojects {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,9 @@ class IncreaseOkHttpClient private constructor() {
/**
* Whether to call `validate` on every response before returning it.
*
* Setting this to `true` is _not_ forwards compatible with new types from the API for
* existing fields.
*
* Defaults to false, which means the shape of the response will not be validated upfront.
* Instead, validation will only occur for the parts of the response that are accessed.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,9 @@ class IncreaseOkHttpClientAsync private constructor() {
/**
* Whether to call `validate` on every response before returning it.
*
* Setting this to `true` is _not_ forwards compatible with new types from the API for
* existing fields.
*
* Defaults to false, which means the shape of the response will not be validated upfront.
* Instead, validation will only occur for the parts of the response that are accessed.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ private constructor(
/**
* Whether to call `validate` on every response before returning it.
*
* Setting this to `true` is _not_ forwards compatible with new types from the API for existing
* fields.
*
* Defaults to false, which means the shape of the response will not be validated upfront.
* Instead, validation will only occur for the parts of the response that are accessed.
*/
Expand Down Expand Up @@ -275,6 +278,9 @@ private constructor(
/**
* Whether to call `validate` on every response before returning it.
*
* Setting this to `true` is _not_ forwards compatible with new types from the API for
* existing fields.
*
* Defaults to false, which means the shape of the response will not be validated upfront.
* Instead, validation will only occur for the parts of the response that are accessed.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,15 @@ class RequestOptions private constructor(val responseValidation: Boolean?, val t
private var responseValidation: Boolean? = null
private var timeout: Timeout? = null

/**
* Whether to call `validate` on the response before returning it.
*
* Setting this to `true` is _not_ forwards compatible with new types from the API for
* existing fields.
*
* Defaults to false, which means the shape of the response will not be validated upfront.
* Instead, validation will only occur for the parts of the response that are accessed.
*/
fun responseValidation(responseValidation: Boolean) = apply {
this.responseValidation = responseValidation
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,14 @@ private constructor(

private var validated: Boolean = false

/**
* Validates that the types of all values in this object match their expected types recursively.
*
* This method is _not_ forwards compatible with new types from the API for existing fields.
*
* @throws IncreaseInvalidDataException if any value type in this object doesn't match its
* expected type.
*/
fun validate(): AccountNumber = apply {
if (validated) {
return@apply
Expand Down Expand Up @@ -716,6 +724,15 @@ private constructor(

private var validated: Boolean = false

/**
* Validates that the types of all values in this object match their expected types
* recursively.
*
* This method is _not_ forwards compatible with new types from the API for existing fields.
*
* @throws IncreaseInvalidDataException if any value type in this object doesn't match its
* expected type.
*/
fun validate(): InboundAch = apply {
if (validated) {
return@apply
Expand Down Expand Up @@ -845,6 +862,16 @@ private constructor(

private var validated: Boolean = false

/**
* Validates that the types of all values in this object match their expected types
* recursively.
*
* This method is _not_ forwards compatible with new types from the API for existing
* fields.
*
* @throws IncreaseInvalidDataException if any value type in this object doesn't match
* its expected type.
*/
fun validate(): DebitStatus = apply {
if (validated) {
return@apply
Expand Down Expand Up @@ -1015,6 +1042,15 @@ private constructor(

private var validated: Boolean = false

/**
* Validates that the types of all values in this object match their expected types
* recursively.
*
* This method is _not_ forwards compatible with new types from the API for existing fields.
*
* @throws IncreaseInvalidDataException if any value type in this object doesn't match its
* expected type.
*/
fun validate(): InboundChecks = apply {
if (validated) {
return@apply
Expand Down Expand Up @@ -1156,6 +1192,16 @@ private constructor(

private var validated: Boolean = false

/**
* Validates that the types of all values in this object match their expected types
* recursively.
*
* This method is _not_ forwards compatible with new types from the API for existing
* fields.
*
* @throws IncreaseInvalidDataException if any value type in this object doesn't match
* its expected type.
*/
fun validate(): Status = apply {
if (validated) {
return@apply
Expand Down Expand Up @@ -1317,6 +1363,15 @@ private constructor(

private var validated: Boolean = false

/**
* Validates that the types of all values in this object match their expected types
* recursively.
*
* This method is _not_ forwards compatible with new types from the API for existing fields.
*
* @throws IncreaseInvalidDataException if any value type in this object doesn't match its
* expected type.
*/
fun validate(): Status = apply {
if (validated) {
return@apply
Expand Down Expand Up @@ -1442,6 +1497,15 @@ private constructor(

private var validated: Boolean = false

/**
* Validates that the types of all values in this object match their expected types
* recursively.
*
* This method is _not_ forwards compatible with new types from the API for existing fields.
*
* @throws IncreaseInvalidDataException if any value type in this object doesn't match its
* expected type.
*/
fun validate(): Type = apply {
if (validated) {
return@apply
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,15 @@ private constructor(

private var validated: Boolean = false

/**
* Validates that the types of all values in this object match their expected types
* recursively.
*
* This method is _not_ forwards compatible with new types from the API for existing fields.
*
* @throws IncreaseInvalidDataException if any value type in this object doesn't match its
* expected type.
*/
fun validate(): Body = apply {
if (validated) {
return@apply
Expand Down Expand Up @@ -751,6 +760,15 @@ private constructor(

private var validated: Boolean = false

/**
* Validates that the types of all values in this object match their expected types
* recursively.
*
* This method is _not_ forwards compatible with new types from the API for existing fields.
*
* @throws IncreaseInvalidDataException if any value type in this object doesn't match its
* expected type.
*/
fun validate(): InboundAch = apply {
if (validated) {
return@apply
Expand Down Expand Up @@ -881,6 +899,16 @@ private constructor(

private var validated: Boolean = false

/**
* Validates that the types of all values in this object match their expected types
* recursively.
*
* This method is _not_ forwards compatible with new types from the API for existing
* fields.
*
* @throws IncreaseInvalidDataException if any value type in this object doesn't match
* its expected type.
*/
fun validate(): DebitStatus = apply {
if (validated) {
return@apply
Expand Down Expand Up @@ -1055,6 +1083,15 @@ private constructor(

private var validated: Boolean = false

/**
* Validates that the types of all values in this object match their expected types
* recursively.
*
* This method is _not_ forwards compatible with new types from the API for existing fields.
*
* @throws IncreaseInvalidDataException if any value type in this object doesn't match its
* expected type.
*/
fun validate(): InboundChecks = apply {
if (validated) {
return@apply
Expand Down Expand Up @@ -1199,6 +1236,16 @@ private constructor(

private var validated: Boolean = false

/**
* Validates that the types of all values in this object match their expected types
* recursively.
*
* This method is _not_ forwards compatible with new types from the API for existing
* fields.
*
* @throws IncreaseInvalidDataException if any value type in this object doesn't match
* its expected type.
*/
fun validate(): Status = apply {
if (validated) {
return@apply
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,14 @@ private constructor(

private var validated: Boolean = false

/**
* Validates that the types of all values in this object match their expected types recursively.
*
* This method is _not_ forwards compatible with new types from the API for existing fields.
*
* @throws IncreaseInvalidDataException if any value type in this object doesn't match its
* expected type.
*/
fun validate(): AccountNumberListPageResponse = apply {
if (validated) {
return@apply
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,16 @@ private constructor(

private var validated: Boolean = false

/**
* Validates that the types of all values in this object match their expected types
* recursively.
*
* This method is _not_ forwards compatible with new types from the API for existing
* fields.
*
* @throws IncreaseInvalidDataException if any value type in this object doesn't match
* its expected type.
*/
fun validate(): In = apply {
if (validated) {
return@apply
Expand Down Expand Up @@ -972,6 +982,16 @@ private constructor(

private var validated: Boolean = false

/**
* Validates that the types of all values in this object match their expected types
* recursively.
*
* This method is _not_ forwards compatible with new types from the API for existing
* fields.
*
* @throws IncreaseInvalidDataException if any value type in this object doesn't match
* its expected type.
*/
fun validate(): In = apply {
if (validated) {
return@apply
Expand Down
Loading
Loading