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.486.0"
".": "0.487.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: 236
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-f3d22401feb4671870673cb67688b163ee7f26acb6d2f89dcf79b26b0675523f.yml
openapi_spec_hash: 4d6dbce33f5de203d92df4c20a957665
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-4a8fb0a78ec74e41f3c1f5d8d455b1496d567948e3a7a3ae375338173ced538e.yml
openapi_spec_hash: 6dbffca55fa0226c3603ee180594bd2b
config_hash: 25d7d7aa4882db6189b4b53e8e249e80
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.487.0 (2026-03-19)

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

### Features

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

## 0.486.0 (2026-03-19)

Full Changelog: [v0.485.0...v0.486.0](https://github.com/Increase/increase-java/compare/v0.485.0...v0.486.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.486.0)
[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.486.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.486.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.487.0)
[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.487.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.487.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.486.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.487.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.486.0")
implementation("com.increase.api:increase-java:0.487.0")
```

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

subprojects {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,6 @@ private constructor(
private val additionalQueryParams: QueryParams,
) : Params {

/**
* The identifier for the account that will send the transfer.
*
* @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 accountId(): String = body.accountId()

/**
* The amount, in minor units, to send to the creditor.
*
Expand Down Expand Up @@ -125,13 +117,6 @@ private constructor(
*/
fun routingNumber(): Optional<String> = body.routingNumber()

/**
* Returns the raw JSON value of [accountId].
*
* Unlike [accountId], this method doesn't throw if the JSON field has an unexpected type.
*/
fun _accountId(): JsonField<String> = body._accountId()

/**
* Returns the raw JSON value of [amount].
*
Expand Down Expand Up @@ -230,7 +215,6 @@ private constructor(
*
* The following fields are required:
* ```java
* .accountId()
* .amount()
* .creditorName()
* .debtorName()
Expand Down Expand Up @@ -260,27 +244,15 @@ private constructor(
*
* This is generally only useful if you are already constructing the body separately.
* Otherwise, it's more convenient to use the top-level setters instead:
* - [accountId]
* - [amount]
* - [creditorName]
* - [debtorName]
* - [sourceAccountNumberId]
* - [unstructuredRemittanceInformation]
* - etc.
*/
fun body(body: Body) = apply { this.body = body.toBuilder() }

/** The identifier for the account that will send the transfer. */
fun accountId(accountId: String) = apply { body.accountId(accountId) }

/**
* Sets [Builder.accountId] to an arbitrary JSON value.
*
* You should usually call [Builder.accountId] with a well-typed [String] value instead.
* This method is primarily for setting the field to an undocumented or not yet supported
* value.
*/
fun accountId(accountId: JsonField<String>) = apply { body.accountId(accountId) }

/** The amount, in minor units, to send to the creditor. */
fun amount(amount: Long) = apply { body.amount(amount) }

Expand Down Expand Up @@ -569,7 +541,6 @@ private constructor(
*
* The following fields are required:
* ```java
* .accountId()
* .amount()
* .creditorName()
* .debtorName()
Expand All @@ -596,7 +567,6 @@ private constructor(
class Body
@JsonCreator(mode = JsonCreator.Mode.DISABLED)
private constructor(
private val accountId: JsonField<String>,
private val amount: JsonField<Long>,
private val creditorName: JsonField<String>,
private val debtorName: JsonField<String>,
Expand All @@ -613,9 +583,6 @@ private constructor(

@JsonCreator
private constructor(
@JsonProperty("account_id")
@ExcludeMissing
accountId: JsonField<String> = JsonMissing.of(),
@JsonProperty("amount") @ExcludeMissing amount: JsonField<Long> = JsonMissing.of(),
@JsonProperty("creditor_name")
@ExcludeMissing
Expand Down Expand Up @@ -648,7 +615,6 @@ private constructor(
@ExcludeMissing
routingNumber: JsonField<String> = JsonMissing.of(),
) : this(
accountId,
amount,
creditorName,
debtorName,
Expand All @@ -663,14 +629,6 @@ private constructor(
mutableMapOf(),
)

/**
* The identifier for the account that will send the transfer.
*
* @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 accountId(): String = accountId.getRequired("account_id")

/**
* The amount, in minor units, to send to the creditor.
*
Expand Down Expand Up @@ -764,13 +722,6 @@ private constructor(
*/
fun routingNumber(): Optional<String> = routingNumber.getOptional("routing_number")

/**
* Returns the raw JSON value of [accountId].
*
* Unlike [accountId], this method doesn't throw if the JSON field has an unexpected type.
*/
@JsonProperty("account_id") @ExcludeMissing fun _accountId(): JsonField<String> = accountId

/**
* Returns the raw JSON value of [amount].
*
Expand Down Expand Up @@ -897,7 +848,6 @@ private constructor(
*
* The following fields are required:
* ```java
* .accountId()
* .amount()
* .creditorName()
* .debtorName()
Expand All @@ -911,7 +861,6 @@ private constructor(
/** A builder for [Body]. */
class Builder internal constructor() {

private var accountId: JsonField<String>? = null
private var amount: JsonField<Long>? = null
private var creditorName: JsonField<String>? = null
private var debtorName: JsonField<String>? = null
Expand All @@ -927,7 +876,6 @@ private constructor(

@JvmSynthetic
internal fun from(body: Body) = apply {
accountId = body.accountId
amount = body.amount
creditorName = body.creditorName
debtorName = body.debtorName
Expand All @@ -942,18 +890,6 @@ private constructor(
additionalProperties = body.additionalProperties.toMutableMap()
}

/** The identifier for the account that will send the transfer. */
fun accountId(accountId: String) = accountId(JsonField.of(accountId))

/**
* Sets [Builder.accountId] to an arbitrary JSON value.
*
* You should usually call [Builder.accountId] with a well-typed [String] value instead.
* This method is primarily for setting the field to an undocumented or not yet
* supported value.
*/
fun accountId(accountId: JsonField<String>) = apply { this.accountId = accountId }

/** The amount, in minor units, to send to the creditor. */
fun amount(amount: Long) = amount(JsonField.of(amount))

Expand Down Expand Up @@ -1139,7 +1075,6 @@ private constructor(
*
* The following fields are required:
* ```java
* .accountId()
* .amount()
* .creditorName()
* .debtorName()
Expand All @@ -1151,7 +1086,6 @@ private constructor(
*/
fun build(): Body =
Body(
checkRequired("accountId", accountId),
checkRequired("amount", amount),
checkRequired("creditorName", creditorName),
checkRequired("debtorName", debtorName),
Expand All @@ -1177,7 +1111,6 @@ private constructor(
return@apply
}

accountId()
amount()
creditorName()
debtorName()
Expand Down Expand Up @@ -1208,8 +1141,7 @@ private constructor(
*/
@JvmSynthetic
internal fun validity(): Int =
(if (accountId.asKnown().isPresent) 1 else 0) +
(if (amount.asKnown().isPresent) 1 else 0) +
(if (amount.asKnown().isPresent) 1 else 0) +
(if (creditorName.asKnown().isPresent) 1 else 0) +
(if (debtorName.asKnown().isPresent) 1 else 0) +
(if (sourceAccountNumberId.asKnown().isPresent) 1 else 0) +
Expand All @@ -1227,7 +1159,6 @@ private constructor(
}

return other is Body &&
accountId == other.accountId &&
amount == other.amount &&
creditorName == other.creditorName &&
debtorName == other.debtorName &&
Expand All @@ -1244,7 +1175,6 @@ private constructor(

private val hashCode: Int by lazy {
Objects.hash(
accountId,
amount,
creditorName,
debtorName,
Expand All @@ -1263,7 +1193,7 @@ private constructor(
override fun hashCode(): Int = hashCode

override fun toString() =
"Body{accountId=$accountId, amount=$amount, creditorName=$creditorName, debtorName=$debtorName, sourceAccountNumberId=$sourceAccountNumberId, unstructuredRemittanceInformation=$unstructuredRemittanceInformation, accountNumber=$accountNumber, creditorAddress=$creditorAddress, debtorAddress=$debtorAddress, externalAccountId=$externalAccountId, requireApproval=$requireApproval, routingNumber=$routingNumber, additionalProperties=$additionalProperties}"
"Body{amount=$amount, creditorName=$creditorName, debtorName=$debtorName, sourceAccountNumberId=$sourceAccountNumberId, unstructuredRemittanceInformation=$unstructuredRemittanceInformation, accountNumber=$accountNumber, creditorAddress=$creditorAddress, debtorAddress=$debtorAddress, externalAccountId=$externalAccountId, requireApproval=$requireApproval, routingNumber=$routingNumber, additionalProperties=$additionalProperties}"
}

/** The creditor's address. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ internal class FednowTransferCreateParamsTest {
@Test
fun create() {
FednowTransferCreateParams.builder()
.accountId("account_in71c4amph0vgo2qllky")
.amount(100L)
.creditorName("Ian Crease")
.debtorName("National Phonograph Company")
Expand Down Expand Up @@ -43,7 +42,6 @@ internal class FednowTransferCreateParamsTest {
fun body() {
val params =
FednowTransferCreateParams.builder()
.accountId("account_in71c4amph0vgo2qllky")
.amount(100L)
.creditorName("Ian Crease")
.debtorName("National Phonograph Company")
Expand Down Expand Up @@ -73,7 +71,6 @@ internal class FednowTransferCreateParamsTest {

val body = params._body()

assertThat(body.accountId()).isEqualTo("account_in71c4amph0vgo2qllky")
assertThat(body.amount()).isEqualTo(100L)
assertThat(body.creditorName()).isEqualTo("Ian Crease")
assertThat(body.debtorName()).isEqualTo("National Phonograph Company")
Expand Down Expand Up @@ -107,7 +104,6 @@ internal class FednowTransferCreateParamsTest {
fun bodyWithoutOptionalFields() {
val params =
FednowTransferCreateParams.builder()
.accountId("account_in71c4amph0vgo2qllky")
.amount(100L)
.creditorName("Ian Crease")
.debtorName("National Phonograph Company")
Expand All @@ -117,7 +113,6 @@ internal class FednowTransferCreateParamsTest {

val body = params._body()

assertThat(body.accountId()).isEqualTo("account_in71c4amph0vgo2qllky")
assertThat(body.amount()).isEqualTo(100L)
assertThat(body.creditorName()).isEqualTo("Ian Crease")
assertThat(body.debtorName()).isEqualTo("National Phonograph Company")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ internal class FednowTransferServiceAsyncTest {
val fednowTransferFuture =
fednowTransferServiceAsync.create(
FednowTransferCreateParams.builder()
.accountId("account_in71c4amph0vgo2qllky")
.amount(100L)
.creditorName("Ian Crease")
.debtorName("National Phonograph Company")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ internal class FednowTransferServiceTest {
val fednowTransfer =
fednowTransferService.create(
FednowTransferCreateParams.builder()
.accountId("account_in71c4amph0vgo2qllky")
.amount(100L)
.creditorName("Ian Crease")
.debtorName("National Phonograph Company")
Expand Down
Loading