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.331.0"
".": "0.332.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: 213
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-8d71e78a4afd7e1ce2436bf2428777d623f468bb3b6c37c36ed8ed3155fe6c77.yml
openapi_spec_hash: 3064d7c7468a53e4797ef16b648fd06d
config_hash: e1e8bc2138a13f290956ae6687f099cd
configured_endpoints: 214
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-d0d6147287983a83fc0ad164f706c3cdc48a13e223fd601aa954bbf0bbc402ed.yml
openapi_spec_hash: a3ccd1aa9bc5d03e6660b535d25401b1
config_hash: 8dadd60eab7ab858cf06c6a8633ed9f3
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
# Changelog

## 0.332.0 (2025-09-19)

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

### Features

* **api:** api update ([754b269](https://github.com/Increase/increase-java/commit/754b2695831ca2b9d96552479be756bb1824e4a3))
* **api:** api update ([afa92a3](https://github.com/Increase/increase-java/commit/afa92a3e8ff77106c78b4201c7b75b709d3f177b))
* **client:** expose sleeper option ([42e0af4](https://github.com/Increase/increase-java/commit/42e0af4be43e8108563e40081422505320c5caf6))


### Bug Fixes

* **client:** ensure single timer is created per client ([42e0af4](https://github.com/Increase/increase-java/commit/42e0af4be43e8108563e40081422505320c5caf6))


### Chores

* improve formatter performance ([0795a95](https://github.com/Increase/increase-java/commit/0795a9506c0f7734ec77df11f4613e16d972f7dc))

## 0.331.0 (2025-09-19)

Full Changelog: [v0.330.0...v0.331.0](https://github.com/Increase/increase-java/compare/v0.330.0...v0.331.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.331.0)
[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.331.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.331.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.332.0)
[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.332.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.332.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.331.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.332.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.331.0")
implementation("com.increase.api:increase-java:0.332.0")
```

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

subprojects {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import com.fasterxml.jackson.databind.json.JsonMapper
import com.increase.api.client.IncreaseClient
import com.increase.api.client.IncreaseClientImpl
import com.increase.api.core.ClientOptions
import com.increase.api.core.Sleeper
import com.increase.api.core.Timeout
import com.increase.api.core.http.AsyncStreamResponse
import com.increase.api.core.http.Headers
Expand Down Expand Up @@ -133,6 +134,17 @@ class IncreaseOkHttpClient private constructor() {
clientOptions.streamHandlerExecutor(streamHandlerExecutor)
}

/**
* The interface to use for delaying execution, like during retries.
*
* This is primarily useful for using fake delays in tests.
*
* Defaults to real execution delays.
*
* This class takes ownership of the sleeper and closes it when closed.
*/
fun sleeper(sleeper: Sleeper) = apply { clientOptions.sleeper(sleeper) }

/**
* The clock to use for operations that require timing, like retries.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import com.fasterxml.jackson.databind.json.JsonMapper
import com.increase.api.client.IncreaseClientAsync
import com.increase.api.client.IncreaseClientAsyncImpl
import com.increase.api.core.ClientOptions
import com.increase.api.core.Sleeper
import com.increase.api.core.Timeout
import com.increase.api.core.http.AsyncStreamResponse
import com.increase.api.core.http.Headers
Expand Down Expand Up @@ -133,6 +134,17 @@ class IncreaseOkHttpClientAsync private constructor() {
clientOptions.streamHandlerExecutor(streamHandlerExecutor)
}

/**
* The interface to use for delaying execution, like during retries.
*
* This is primarily useful for using fake delays in tests.
*
* Defaults to real execution delays.
*
* This class takes ownership of the sleeper and closes it when closed.
*/
fun sleeper(sleeper: Sleeper) = apply { clientOptions.sleeper(sleeper) }

/**
* The clock to use for operations that require timing, like retries.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import com.increase.api.services.blocking.AchTransferService
import com.increase.api.services.blocking.BookkeepingAccountService
import com.increase.api.services.blocking.BookkeepingEntryService
import com.increase.api.services.blocking.BookkeepingEntrySetService
import com.increase.api.services.blocking.CardDetailService
import com.increase.api.services.blocking.CardPaymentService
import com.increase.api.services.blocking.CardPurchaseSupplementService
import com.increase.api.services.blocking.CardPushTransferService
Expand Down Expand Up @@ -104,6 +105,8 @@ interface IncreaseClient {

fun cards(): CardService

fun cardDetails(): CardDetailService

fun cardPayments(): CardPaymentService

fun cardPurchaseSupplements(): CardPurchaseSupplementService
Expand Down Expand Up @@ -237,6 +240,8 @@ interface IncreaseClient {

fun cards(): CardService.WithRawResponse

fun cardDetails(): CardDetailService.WithRawResponse

fun cardPayments(): CardPaymentService.WithRawResponse

fun cardPurchaseSupplements(): CardPurchaseSupplementService.WithRawResponse
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import com.increase.api.services.async.AchTransferServiceAsync
import com.increase.api.services.async.BookkeepingAccountServiceAsync
import com.increase.api.services.async.BookkeepingEntryServiceAsync
import com.increase.api.services.async.BookkeepingEntrySetServiceAsync
import com.increase.api.services.async.CardDetailServiceAsync
import com.increase.api.services.async.CardPaymentServiceAsync
import com.increase.api.services.async.CardPurchaseSupplementServiceAsync
import com.increase.api.services.async.CardPushTransferServiceAsync
Expand Down Expand Up @@ -104,6 +105,8 @@ interface IncreaseClientAsync {

fun cards(): CardServiceAsync

fun cardDetails(): CardDetailServiceAsync

fun cardPayments(): CardPaymentServiceAsync

fun cardPurchaseSupplements(): CardPurchaseSupplementServiceAsync
Expand Down Expand Up @@ -241,6 +244,8 @@ interface IncreaseClientAsync {

fun cards(): CardServiceAsync.WithRawResponse

fun cardDetails(): CardDetailServiceAsync.WithRawResponse

fun cardPayments(): CardPaymentServiceAsync.WithRawResponse

fun cardPurchaseSupplements(): CardPurchaseSupplementServiceAsync.WithRawResponse
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ import com.increase.api.services.async.BookkeepingEntryServiceAsync
import com.increase.api.services.async.BookkeepingEntryServiceAsyncImpl
import com.increase.api.services.async.BookkeepingEntrySetServiceAsync
import com.increase.api.services.async.BookkeepingEntrySetServiceAsyncImpl
import com.increase.api.services.async.CardDetailServiceAsync
import com.increase.api.services.async.CardDetailServiceAsyncImpl
import com.increase.api.services.async.CardPaymentServiceAsync
import com.increase.api.services.async.CardPaymentServiceAsyncImpl
import com.increase.api.services.async.CardPurchaseSupplementServiceAsync
Expand Down Expand Up @@ -147,6 +149,10 @@ class IncreaseClientAsyncImpl(private val clientOptions: ClientOptions) : Increa

private val cards: CardServiceAsync by lazy { CardServiceAsyncImpl(clientOptionsWithUserAgent) }

private val cardDetails: CardDetailServiceAsync by lazy {
CardDetailServiceAsyncImpl(clientOptionsWithUserAgent)
}

private val cardPayments: CardPaymentServiceAsync by lazy {
CardPaymentServiceAsyncImpl(clientOptionsWithUserAgent)
}
Expand Down Expand Up @@ -363,6 +369,8 @@ class IncreaseClientAsyncImpl(private val clientOptions: ClientOptions) : Increa

override fun cards(): CardServiceAsync = cards

override fun cardDetails(): CardDetailServiceAsync = cardDetails

override fun cardPayments(): CardPaymentServiceAsync = cardPayments

override fun cardPurchaseSupplements(): CardPurchaseSupplementServiceAsync =
Expand Down Expand Up @@ -491,6 +499,10 @@ class IncreaseClientAsyncImpl(private val clientOptions: ClientOptions) : Increa
CardServiceAsyncImpl.WithRawResponseImpl(clientOptions)
}

private val cardDetails: CardDetailServiceAsync.WithRawResponse by lazy {
CardDetailServiceAsyncImpl.WithRawResponseImpl(clientOptions)
}

private val cardPayments: CardPaymentServiceAsync.WithRawResponse by lazy {
CardPaymentServiceAsyncImpl.WithRawResponseImpl(clientOptions)
}
Expand Down Expand Up @@ -713,6 +725,8 @@ class IncreaseClientAsyncImpl(private val clientOptions: ClientOptions) : Increa

override fun cards(): CardServiceAsync.WithRawResponse = cards

override fun cardDetails(): CardDetailServiceAsync.WithRawResponse = cardDetails

override fun cardPayments(): CardPaymentServiceAsync.WithRawResponse = cardPayments

override fun cardPurchaseSupplements(): CardPurchaseSupplementServiceAsync.WithRawResponse =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ import com.increase.api.services.blocking.BookkeepingEntryService
import com.increase.api.services.blocking.BookkeepingEntryServiceImpl
import com.increase.api.services.blocking.BookkeepingEntrySetService
import com.increase.api.services.blocking.BookkeepingEntrySetServiceImpl
import com.increase.api.services.blocking.CardDetailService
import com.increase.api.services.blocking.CardDetailServiceImpl
import com.increase.api.services.blocking.CardPaymentService
import com.increase.api.services.blocking.CardPaymentServiceImpl
import com.increase.api.services.blocking.CardPurchaseSupplementService
Expand Down Expand Up @@ -145,6 +147,10 @@ class IncreaseClientImpl(private val clientOptions: ClientOptions) : IncreaseCli

private val cards: CardService by lazy { CardServiceImpl(clientOptionsWithUserAgent) }

private val cardDetails: CardDetailService by lazy {
CardDetailServiceImpl(clientOptionsWithUserAgent)
}

private val cardPayments: CardPaymentService by lazy {
CardPaymentServiceImpl(clientOptionsWithUserAgent)
}
Expand Down Expand Up @@ -348,6 +354,8 @@ class IncreaseClientImpl(private val clientOptions: ClientOptions) : IncreaseCli

override fun cards(): CardService = cards

override fun cardDetails(): CardDetailService = cardDetails

override fun cardPayments(): CardPaymentService = cardPayments

override fun cardPurchaseSupplements(): CardPurchaseSupplementService = cardPurchaseSupplements
Expand Down Expand Up @@ -475,6 +483,10 @@ class IncreaseClientImpl(private val clientOptions: ClientOptions) : IncreaseCli
CardServiceImpl.WithRawResponseImpl(clientOptions)
}

private val cardDetails: CardDetailService.WithRawResponse by lazy {
CardDetailServiceImpl.WithRawResponseImpl(clientOptions)
}

private val cardPayments: CardPaymentService.WithRawResponse by lazy {
CardPaymentServiceImpl.WithRawResponseImpl(clientOptions)
}
Expand Down Expand Up @@ -694,6 +706,8 @@ class IncreaseClientImpl(private val clientOptions: ClientOptions) : IncreaseCli

override fun cards(): CardService.WithRawResponse = cards

override fun cardDetails(): CardDetailService.WithRawResponse = cardDetails

override fun cardPayments(): CardPaymentService.WithRawResponse = cardPayments

override fun cardPurchaseSupplements(): CardPurchaseSupplementService.WithRawResponse =
Expand Down
Loading