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.464.0"
".": "0.465.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: 237
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-aceacff825bf677100a4d4554b2b3dad7ba442bbe26bc7f18b4153c54c3624e8.yml
openapi_spec_hash: 7fa7a382bd4d1db423b5345a8535d23b
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-1a8ae6b4ff6276a68a103dca4c701c77d409afe3f08ef8435adb3527e1385ce7.yml
openapi_spec_hash: d56da3ae77306aec4c8530fba0dfe053
config_hash: 896b006f9647a513eda3b228cf17c199
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.465.0 (2026-03-12)

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

### Features

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

## 0.464.0 (2026-03-11)

Full Changelog: [v0.463.0...v0.464.0](https://github.com/Increase/increase-java/compare/v0.463.0...v0.464.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.464.0)
[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.464.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.464.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.465.0)
[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.465.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.465.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.464.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.465.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.464.0")
implementation("com.increase.api:increase-java:0.465.0")
```

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

subprojects {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,14 @@ private constructor(
*/
fun identification(): Optional<Identification> = body.identification()

/**
* The individual's legal name.
*
* @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if the
* server responded with an unexpected value).
*/
fun name(): Optional<String> = body.name()

/**
* Returns the raw JSON value of [address].
*
Expand All @@ -83,6 +91,13 @@ private constructor(
*/
fun _identification(): JsonField<Identification> = body._identification()

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

fun _additionalBodyProperties(): Map<String, JsonValue> = body._additionalProperties()

/** Additional headers to send with the request. */
Expand Down Expand Up @@ -139,6 +154,7 @@ private constructor(
* - [address]
* - [confirmedNoUsTaxId]
* - [identification]
* - [name]
*/
fun body(body: Body) = apply { this.body = body.toBuilder() }

Expand Down Expand Up @@ -192,6 +208,17 @@ private constructor(
body.identification(identification)
}

/** The individual's legal name. */
fun name(name: String) = apply { body.name(name) }

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

fun additionalBodyProperties(additionalBodyProperties: Map<String, JsonValue>) = apply {
body.additionalProperties(additionalBodyProperties)
}
Expand Down Expand Up @@ -341,6 +368,7 @@ private constructor(
private val address: JsonField<Address>,
private val confirmedNoUsTaxId: JsonField<Boolean>,
private val identification: JsonField<Identification>,
private val name: JsonField<String>,
private val additionalProperties: MutableMap<String, JsonValue>,
) {

Expand All @@ -353,7 +381,8 @@ private constructor(
@JsonProperty("identification")
@ExcludeMissing
identification: JsonField<Identification> = JsonMissing.of(),
) : this(address, confirmedNoUsTaxId, identification, mutableMapOf())
@JsonProperty("name") @ExcludeMissing name: JsonField<String> = JsonMissing.of(),
) : this(address, confirmedNoUsTaxId, identification, name, mutableMapOf())

/**
* The individual's physical address. Mail receiving locations like PO Boxes and PMB's are
Expand Down Expand Up @@ -384,6 +413,14 @@ private constructor(
fun identification(): Optional<Identification> =
identification.getOptional("identification")

/**
* The individual's legal name.
*
* @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if
* the server responded with an unexpected value).
*/
fun name(): Optional<String> = name.getOptional("name")

/**
* Returns the raw JSON value of [address].
*
Expand Down Expand Up @@ -411,6 +448,13 @@ private constructor(
@ExcludeMissing
fun _identification(): JsonField<Identification> = identification

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

@JsonAnySetter
private fun putAdditionalProperty(key: String, value: JsonValue) {
additionalProperties.put(key, value)
Expand All @@ -435,13 +479,15 @@ private constructor(
private var address: JsonField<Address> = JsonMissing.of()
private var confirmedNoUsTaxId: JsonField<Boolean> = JsonMissing.of()
private var identification: JsonField<Identification> = JsonMissing.of()
private var name: JsonField<String> = JsonMissing.of()
private var additionalProperties: MutableMap<String, JsonValue> = mutableMapOf()

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

Expand Down Expand Up @@ -494,6 +540,18 @@ private constructor(
this.identification = identification
}

/** The individual's legal name. */
fun name(name: String) = name(JsonField.of(name))

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

fun additionalProperties(additionalProperties: Map<String, JsonValue>) = apply {
this.additionalProperties.clear()
putAllAdditionalProperties(additionalProperties)
Expand Down Expand Up @@ -523,6 +581,7 @@ private constructor(
address,
confirmedNoUsTaxId,
identification,
name,
additionalProperties.toMutableMap(),
)
}
Expand All @@ -537,6 +596,7 @@ private constructor(
address().ifPresent { it.validate() }
confirmedNoUsTaxId()
identification().ifPresent { it.validate() }
name()
validated = true
}

Expand All @@ -558,7 +618,8 @@ private constructor(
internal fun validity(): Int =
(address.asKnown().getOrNull()?.validity() ?: 0) +
(if (confirmedNoUsTaxId.asKnown().isPresent) 1 else 0) +
(identification.asKnown().getOrNull()?.validity() ?: 0)
(identification.asKnown().getOrNull()?.validity() ?: 0) +
(if (name.asKnown().isPresent) 1 else 0)

override fun equals(other: Any?): Boolean {
if (this === other) {
Expand All @@ -569,17 +630,18 @@ private constructor(
address == other.address &&
confirmedNoUsTaxId == other.confirmedNoUsTaxId &&
identification == other.identification &&
name == other.name &&
additionalProperties == other.additionalProperties
}

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

override fun hashCode(): Int = hashCode

override fun toString() =
"Body{address=$address, confirmedNoUsTaxId=$confirmedNoUsTaxId, identification=$identification, additionalProperties=$additionalProperties}"
"Body{address=$address, confirmedNoUsTaxId=$confirmedNoUsTaxId, identification=$identification, name=$name, additionalProperties=$additionalProperties}"
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ internal class BeneficialOwnerUpdateParamsTest {
)
.build()
)
.name("x")
.build()
}

Expand Down Expand Up @@ -125,6 +126,7 @@ internal class BeneficialOwnerUpdateParamsTest {
)
.build()
)
.name("x")
.build()

val body = params._body()
Expand Down Expand Up @@ -174,6 +176,7 @@ internal class BeneficialOwnerUpdateParamsTest {
)
.build()
)
assertThat(body.name()).contains("x")
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ internal class BeneficialOwnerServiceAsyncTest {
)
.build()
)
.name("x")
.build()
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ internal class BeneficialOwnerServiceTest {
)
.build()
)
.name("x")
.build()
)

Expand Down
Loading