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.459.0"
".": "0.460.0"
}
8 changes: 4 additions & 4 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 234
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-b42ffa447aa14da70d972676b1d5ad0c2720ff4e33a483037b2b1bb51190a69f.yml
openapi_spec_hash: f2a5c5e804880a8e8d13f5f32ca264a1
config_hash: b7ec7f54fa76c1f8bde7a548710a1d38
configured_endpoints: 236
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-f46fe8b546ee1a4ad24918ef0803f48e6586e061d5445ae1aeb6abc7b8cf64a3.yml
openapi_spec_hash: 440b743a615d5ecc832affd6c3154809
config_hash: dda988c5565c2f15cc708122984d7691
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## 0.460.0 (2026-03-10)

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

### Features

* **api:** api update ([71ea8bb](https://github.com/Increase/increase-java/commit/71ea8bbfe4c515f375acd142a6bbc42732f94f0a))


### Chores

* **internal:** codegen related update ([31c4344](https://github.com/Increase/increase-java/commit/31c43441e0a17c08ee7c6dde491e75d28dc26edf))

## 0.459.0 (2026-03-09)

Full Changelog: [v0.458.0...v0.459.0](https://github.com/Increase/increase-java/compare/v0.458.0...v0.459.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.459.0)
[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.459.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.459.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.460.0)
[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.460.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.460.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.459.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.460.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.459.0")
implementation("com.increase.api:increase-java:0.460.0")
```

### Maven
Expand All @@ -33,7 +33,7 @@ implementation("com.increase.api:increase-java:0.459.0")
<dependency>
<groupId>com.increase.api</groupId>
<artifactId>increase-java</artifactId>
<version>0.459.0</version>
<version>0.460.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.459.0" // x-release-please-version
version = "0.460.0" // x-release-please-version
}

subprojects {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import com.increase.api.services.blocking.AccountStatementService
import com.increase.api.services.blocking.AccountTransferService
import com.increase.api.services.blocking.AchPrenotificationService
import com.increase.api.services.blocking.AchTransferService
import com.increase.api.services.blocking.BeneficialOwnerService
import com.increase.api.services.blocking.BookkeepingAccountService
import com.increase.api.services.blocking.BookkeepingEntryService
import com.increase.api.services.blocking.BookkeepingEntrySetService
Expand Down Expand Up @@ -167,6 +168,8 @@ interface IncreaseClient {

fun entities(): EntityService

fun beneficialOwners(): BeneficialOwnerService

fun supplementalDocuments(): SupplementalDocumentService

fun programs(): ProgramService
Expand Down Expand Up @@ -307,6 +310,8 @@ interface IncreaseClient {

fun entities(): EntityService.WithRawResponse

fun beneficialOwners(): BeneficialOwnerService.WithRawResponse

fun supplementalDocuments(): SupplementalDocumentService.WithRawResponse

fun programs(): ProgramService.WithRawResponse
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import com.increase.api.services.async.AccountStatementServiceAsync
import com.increase.api.services.async.AccountTransferServiceAsync
import com.increase.api.services.async.AchPrenotificationServiceAsync
import com.increase.api.services.async.AchTransferServiceAsync
import com.increase.api.services.async.BeneficialOwnerServiceAsync
import com.increase.api.services.async.BookkeepingAccountServiceAsync
import com.increase.api.services.async.BookkeepingEntryServiceAsync
import com.increase.api.services.async.BookkeepingEntrySetServiceAsync
Expand Down Expand Up @@ -167,6 +168,8 @@ interface IncreaseClientAsync {

fun entities(): EntityServiceAsync

fun beneficialOwners(): BeneficialOwnerServiceAsync

fun supplementalDocuments(): SupplementalDocumentServiceAsync

fun programs(): ProgramServiceAsync
Expand Down Expand Up @@ -311,6 +314,8 @@ interface IncreaseClientAsync {

fun entities(): EntityServiceAsync.WithRawResponse

fun beneficialOwners(): BeneficialOwnerServiceAsync.WithRawResponse

fun supplementalDocuments(): SupplementalDocumentServiceAsync.WithRawResponse

fun programs(): ProgramServiceAsync.WithRawResponse
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ import com.increase.api.services.async.AchPrenotificationServiceAsync
import com.increase.api.services.async.AchPrenotificationServiceAsyncImpl
import com.increase.api.services.async.AchTransferServiceAsync
import com.increase.api.services.async.AchTransferServiceAsyncImpl
import com.increase.api.services.async.BeneficialOwnerServiceAsync
import com.increase.api.services.async.BeneficialOwnerServiceAsyncImpl
import com.increase.api.services.async.BookkeepingAccountServiceAsync
import com.increase.api.services.async.BookkeepingAccountServiceAsyncImpl
import com.increase.api.services.async.BookkeepingEntryServiceAsync
Expand Down Expand Up @@ -274,6 +276,10 @@ class IncreaseClientAsyncImpl(private val clientOptions: ClientOptions) : Increa
EntityServiceAsyncImpl(clientOptionsWithUserAgent)
}

private val beneficialOwners: BeneficialOwnerServiceAsync by lazy {
BeneficialOwnerServiceAsyncImpl(clientOptionsWithUserAgent)
}

private val supplementalDocuments: SupplementalDocumentServiceAsync by lazy {
SupplementalDocumentServiceAsyncImpl(clientOptionsWithUserAgent)
}
Expand Down Expand Up @@ -446,6 +452,8 @@ class IncreaseClientAsyncImpl(private val clientOptions: ClientOptions) : Increa

override fun entities(): EntityServiceAsync = entities

override fun beneficialOwners(): BeneficialOwnerServiceAsync = beneficialOwners

override fun supplementalDocuments(): SupplementalDocumentServiceAsync = supplementalDocuments

override fun programs(): ProgramServiceAsync = programs
Expand Down Expand Up @@ -641,6 +649,10 @@ class IncreaseClientAsyncImpl(private val clientOptions: ClientOptions) : Increa
EntityServiceAsyncImpl.WithRawResponseImpl(clientOptions)
}

private val beneficialOwners: BeneficialOwnerServiceAsync.WithRawResponse by lazy {
BeneficialOwnerServiceAsyncImpl.WithRawResponseImpl(clientOptions)
}

private val supplementalDocuments:
SupplementalDocumentServiceAsync.WithRawResponse by lazy {
SupplementalDocumentServiceAsyncImpl.WithRawResponseImpl(clientOptions)
Expand Down Expand Up @@ -829,6 +841,9 @@ class IncreaseClientAsyncImpl(private val clientOptions: ClientOptions) : Increa

override fun entities(): EntityServiceAsync.WithRawResponse = entities

override fun beneficialOwners(): BeneficialOwnerServiceAsync.WithRawResponse =
beneficialOwners

override fun supplementalDocuments(): SupplementalDocumentServiceAsync.WithRawResponse =
supplementalDocuments

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ import com.increase.api.services.blocking.AchPrenotificationService
import com.increase.api.services.blocking.AchPrenotificationServiceImpl
import com.increase.api.services.blocking.AchTransferService
import com.increase.api.services.blocking.AchTransferServiceImpl
import com.increase.api.services.blocking.BeneficialOwnerService
import com.increase.api.services.blocking.BeneficialOwnerServiceImpl
import com.increase.api.services.blocking.BookkeepingAccountService
import com.increase.api.services.blocking.BookkeepingAccountServiceImpl
import com.increase.api.services.blocking.BookkeepingEntryService
Expand Down Expand Up @@ -267,6 +269,10 @@ class IncreaseClientImpl(private val clientOptions: ClientOptions) : IncreaseCli

private val entities: EntityService by lazy { EntityServiceImpl(clientOptionsWithUserAgent) }

private val beneficialOwners: BeneficialOwnerService by lazy {
BeneficialOwnerServiceImpl(clientOptionsWithUserAgent)
}

private val supplementalDocuments: SupplementalDocumentService by lazy {
SupplementalDocumentServiceImpl(clientOptionsWithUserAgent)
}
Expand Down Expand Up @@ -429,6 +435,8 @@ class IncreaseClientImpl(private val clientOptions: ClientOptions) : IncreaseCli

override fun entities(): EntityService = entities

override fun beneficialOwners(): BeneficialOwnerService = beneficialOwners

override fun supplementalDocuments(): SupplementalDocumentService = supplementalDocuments

override fun programs(): ProgramService = programs
Expand Down Expand Up @@ -622,6 +630,10 @@ class IncreaseClientImpl(private val clientOptions: ClientOptions) : IncreaseCli
EntityServiceImpl.WithRawResponseImpl(clientOptions)
}

private val beneficialOwners: BeneficialOwnerService.WithRawResponse by lazy {
BeneficialOwnerServiceImpl.WithRawResponseImpl(clientOptions)
}

private val supplementalDocuments: SupplementalDocumentService.WithRawResponse by lazy {
SupplementalDocumentServiceImpl.WithRawResponseImpl(clientOptions)
}
Expand Down Expand Up @@ -806,6 +818,8 @@ class IncreaseClientImpl(private val clientOptions: ClientOptions) : IncreaseCli

override fun entities(): EntityService.WithRawResponse = entities

override fun beneficialOwners(): BeneficialOwnerService.WithRawResponse = beneficialOwners

override fun supplementalDocuments(): SupplementalDocumentService.WithRawResponse =
supplementalDocuments

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ private constructor(
?: headers.values("Retry-After").getOrNull(0)?.let { retryAfter ->
retryAfter.toFloatOrNull()?.times(TimeUnit.SECONDS.toNanos(1))
?: try {
ChronoUnit.MILLIS.between(
ChronoUnit.NANOS.between(
OffsetDateTime.now(clock),
OffsetDateTime.parse(
retryAfter,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
// File generated from our OpenAPI spec by Stainless.

package com.increase.api.models.beneficialowners

import com.increase.api.core.AutoPager
import com.increase.api.core.Page
import com.increase.api.core.checkRequired
import com.increase.api.services.blocking.BeneficialOwnerService
import java.util.Objects
import java.util.Optional
import kotlin.jvm.optionals.getOrNull

/** @see BeneficialOwnerService.list */
class BeneficialOwnerListPage
private constructor(
private val service: BeneficialOwnerService,
private val params: BeneficialOwnerListParams,
private val response: BeneficialOwnerListPageResponse,
) : Page<EntityBeneficialOwner> {

/**
* Delegates to [BeneficialOwnerListPageResponse], but gracefully handles missing data.
*
* @see BeneficialOwnerListPageResponse.data
*/
fun data(): List<EntityBeneficialOwner> =
response._data().getOptional("data").getOrNull() ?: emptyList()

/**
* Delegates to [BeneficialOwnerListPageResponse], but gracefully handles missing data.
*
* @see BeneficialOwnerListPageResponse.nextCursor
*/
fun nextCursor(): Optional<String> = response._nextCursor().getOptional("next_cursor")

override fun items(): List<EntityBeneficialOwner> = data()

override fun hasNextPage(): Boolean = items().isNotEmpty() && nextCursor().isPresent

fun nextPageParams(): BeneficialOwnerListParams {
val nextCursor =
nextCursor().getOrNull()
?: throw IllegalStateException("Cannot construct next page params")
return params.toBuilder().cursor(nextCursor).build()
}

override fun nextPage(): BeneficialOwnerListPage = service.list(nextPageParams())

fun autoPager(): AutoPager<EntityBeneficialOwner> = AutoPager.from(this)

/** The parameters that were used to request this page. */
fun params(): BeneficialOwnerListParams = params

/** The response that this page was parsed from. */
fun response(): BeneficialOwnerListPageResponse = response

fun toBuilder() = Builder().from(this)

companion object {

/**
* Returns a mutable builder for constructing an instance of [BeneficialOwnerListPage].
*
* The following fields are required:
* ```java
* .service()
* .params()
* .response()
* ```
*/
@JvmStatic fun builder() = Builder()
}

/** A builder for [BeneficialOwnerListPage]. */
class Builder internal constructor() {

private var service: BeneficialOwnerService? = null
private var params: BeneficialOwnerListParams? = null
private var response: BeneficialOwnerListPageResponse? = null

@JvmSynthetic
internal fun from(beneficialOwnerListPage: BeneficialOwnerListPage) = apply {
service = beneficialOwnerListPage.service
params = beneficialOwnerListPage.params
response = beneficialOwnerListPage.response
}

fun service(service: BeneficialOwnerService) = apply { this.service = service }

/** The parameters that were used to request this page. */
fun params(params: BeneficialOwnerListParams) = apply { this.params = params }

/** The response that this page was parsed from. */
fun response(response: BeneficialOwnerListPageResponse) = apply { this.response = response }

/**
* Returns an immutable instance of [BeneficialOwnerListPage].
*
* Further updates to this [Builder] will not mutate the returned instance.
*
* The following fields are required:
* ```java
* .service()
* .params()
* .response()
* ```
*
* @throws IllegalStateException if any required field is unset.
*/
fun build(): BeneficialOwnerListPage =
BeneficialOwnerListPage(
checkRequired("service", service),
checkRequired("params", params),
checkRequired("response", response),
)
}

override fun equals(other: Any?): Boolean {
if (this === other) {
return true
}

return other is BeneficialOwnerListPage &&
service == other.service &&
params == other.params &&
response == other.response
}

override fun hashCode(): Int = Objects.hash(service, params, response)

override fun toString() =
"BeneficialOwnerListPage{service=$service, params=$params, response=$response}"
}
Loading
Loading