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.407.0"
".": "0.408.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-a822d0695f48967e594a88eef888b826cd51b62959bd4b3d0163b7d010bab969.yml
openapi_spec_hash: 95ea277ed84c04aefd25bcb63ae4e2e5
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-3309070d0c282e00842afa3021c80774f8e1f3a4517959927adfd9ffaa81c94c.yml
openapi_spec_hash: 57927271c019ee8ddd428afa8a57baaf
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.408.0 (2026-01-30)

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

### Features

* **api:** api update ([5073136](https://github.com/Increase/increase-java/commit/507313624c157fb805d3521a84bc872ab745bad6))

## 0.407.0 (2026-01-28)

Full Changelog: [v0.406.0...v0.407.0](https://github.com/Increase/increase-java/compare/v0.406.0...v0.407.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.407.0)
[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.407.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.407.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.408.0)
[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.408.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.408.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.407.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.408.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.407.0")
implementation("com.increase.api:increase-java:0.408.0")
```

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

subprojects {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,6 @@ private constructor(
/** The identifier of the Account to update. */
fun accountId(): Optional<String> = Optional.ofNullable(accountId)

/**
* The new credit limit of the Account, if and only if the Account is a loan account.
*
* @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if the
* server responded with an unexpected value).
*/
fun creditLimit(): Optional<Long> = body.creditLimit()

/**
* The new name of the Account.
*
Expand All @@ -47,13 +39,6 @@ private constructor(
*/
fun name(): Optional<String> = body.name()

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

/**
* Returns the raw JSON value of [name].
*
Expand Down Expand Up @@ -106,23 +91,10 @@ 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:
* - [creditLimit]
* - [name]
*/
fun body(body: Body) = apply { this.body = body.toBuilder() }

/** The new credit limit of the Account, if and only if the Account is a loan account. */
fun creditLimit(creditLimit: Long) = apply { body.creditLimit(creditLimit) }

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

/** The new name of the Account. */
fun name(name: String) = apply { body.name(name) }

Expand Down Expand Up @@ -280,26 +252,14 @@ private constructor(
class Body
@JsonCreator(mode = JsonCreator.Mode.DISABLED)
private constructor(
private val creditLimit: JsonField<Long>,
private val name: JsonField<String>,
private val additionalProperties: MutableMap<String, JsonValue>,
) {

@JsonCreator
private constructor(
@JsonProperty("credit_limit")
@ExcludeMissing
creditLimit: JsonField<Long> = JsonMissing.of(),
@JsonProperty("name") @ExcludeMissing name: JsonField<String> = JsonMissing.of(),
) : this(creditLimit, name, mutableMapOf())

/**
* The new credit limit of the Account, if and only if the Account is a loan account.
*
* @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if
* the server responded with an unexpected value).
*/
fun creditLimit(): Optional<Long> = creditLimit.getOptional("credit_limit")
@JsonProperty("name") @ExcludeMissing name: JsonField<String> = JsonMissing.of()
) : this(name, mutableMapOf())

/**
* The new name of the Account.
Expand All @@ -309,15 +269,6 @@ private constructor(
*/
fun name(): Optional<String> = name.getOptional("name")

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

/**
* Returns the raw JSON value of [name].
*
Expand Down Expand Up @@ -346,31 +297,15 @@ private constructor(
/** A builder for [Body]. */
class Builder internal constructor() {

private var creditLimit: JsonField<Long> = JsonMissing.of()
private var name: JsonField<String> = JsonMissing.of()
private var additionalProperties: MutableMap<String, JsonValue> = mutableMapOf()

@JvmSynthetic
internal fun from(body: Body) = apply {
creditLimit = body.creditLimit
name = body.name
additionalProperties = body.additionalProperties.toMutableMap()
}

/**
* The new credit limit of the Account, if and only if the Account is a loan account.
*/
fun creditLimit(creditLimit: Long) = creditLimit(JsonField.of(creditLimit))

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

/** The new name of the Account. */
fun name(name: String) = name(JsonField.of(name))

Expand Down Expand Up @@ -407,7 +342,7 @@ private constructor(
*
* Further updates to this [Builder] will not mutate the returned instance.
*/
fun build(): Body = Body(creditLimit, name, additionalProperties.toMutableMap())
fun build(): Body = Body(name, additionalProperties.toMutableMap())
}

private var validated: Boolean = false
Expand All @@ -417,7 +352,6 @@ private constructor(
return@apply
}

creditLimit()
name()
validated = true
}
Expand All @@ -436,28 +370,23 @@ private constructor(
*
* Used for best match union deserialization.
*/
@JvmSynthetic
internal fun validity(): Int =
(if (creditLimit.asKnown().isPresent) 1 else 0) +
(if (name.asKnown().isPresent) 1 else 0)
@JvmSynthetic internal fun validity(): Int = (if (name.asKnown().isPresent) 1 else 0)

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

return other is Body &&
creditLimit == other.creditLimit &&
name == other.name &&
additionalProperties == other.additionalProperties
}

private val hashCode: Int by lazy { Objects.hash(creditLimit, name, additionalProperties) }
private val hashCode: Int by lazy { Objects.hash(name, additionalProperties) }

override fun hashCode(): Int = hashCode

override fun toString() =
"Body{creditLimit=$creditLimit, name=$name, additionalProperties=$additionalProperties}"
override fun toString() = "Body{name=$name, additionalProperties=$additionalProperties}"
}

override fun equals(other: Any?): Boolean {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ internal class AccountUpdateParamsTest {
fun create() {
AccountUpdateParams.builder()
.accountId("account_in71c4amph0vgo2qllky")
.creditLimit(0L)
.name("My renamed account")
.build()
}
Expand All @@ -30,13 +29,11 @@ internal class AccountUpdateParamsTest {
val params =
AccountUpdateParams.builder()
.accountId("account_in71c4amph0vgo2qllky")
.creditLimit(0L)
.name("My renamed account")
.build()

val body = params._body()

assertThat(body.creditLimit()).contains(0L)
assertThat(body.name()).contains("My renamed account")
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ internal class AccountServiceAsyncTest {
accountServiceAsync.update(
AccountUpdateParams.builder()
.accountId("account_in71c4amph0vgo2qllky")
.creditLimit(0L)
.name("My renamed account")
.build()
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ internal class AccountServiceTest {
accountService.update(
AccountUpdateParams.builder()
.accountId("account_in71c4amph0vgo2qllky")
.creditLimit(0L)
.name("My renamed account")
.build()
)
Expand Down
Loading