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.444.0"
".": "0.445.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-a72ddcd1864b9ba3aecab707aaaa5a3269d034eb70222d6909e4fe768da46dc2.yml
openapi_spec_hash: 99aa469f8a1c21a5418f1fcf41f9475b
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-56234b020a54052fccd4039cb771fbc9065afc95cf2b15d559c4a91d4e745ca1.yml
openapi_spec_hash: 1254ab532c5dd4c23fb035149006f802
config_hash: d15ecbf4dc8a7a0ef99397d11b557444
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.445.0 (2026-03-04)

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

### Features

* **api:** api update ([819253c](https://github.com/Increase/increase-java/commit/819253c63569118674f5404bc129abfd5aed1e50))

## 0.444.0 (2026-03-03)

Full Changelog: [v0.443.0...v0.444.0](https://github.com/Increase/increase-java/compare/v0.443.0...v0.444.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.444.0)
[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.444.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.444.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.445.0)
[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.445.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.445.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.444.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.445.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.444.0")
implementation("com.increase.api:increase-java:0.445.0")
```

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

subprojects {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1765,7 +1765,7 @@ private constructor(
private val beneficialOwnerId: JsonField<String>,
private val companyTitle: JsonField<String>,
private val individual: JsonField<Individual>,
private val prong: JsonField<Prong>,
private val prongs: JsonField<List<Prong>>,
private val additionalProperties: MutableMap<String, JsonValue>,
) {

Expand All @@ -1780,8 +1780,10 @@ private constructor(
@JsonProperty("individual")
@ExcludeMissing
individual: JsonField<Individual> = JsonMissing.of(),
@JsonProperty("prong") @ExcludeMissing prong: JsonField<Prong> = JsonMissing.of(),
) : this(beneficialOwnerId, companyTitle, individual, prong, mutableMapOf())
@JsonProperty("prongs")
@ExcludeMissing
prongs: JsonField<List<Prong>> = JsonMissing.of(),
) : this(beneficialOwnerId, companyTitle, individual, prongs, mutableMapOf())

/**
* The identifier of this beneficial owner.
Expand Down Expand Up @@ -1816,7 +1818,7 @@ private constructor(
* unexpectedly missing or null (e.g. if the server responded with an unexpected
* value).
*/
fun prong(): Prong = prong.getRequired("prong")
fun prongs(): List<Prong> = prongs.getRequired("prongs")

/**
* Returns the raw JSON value of [beneficialOwnerId].
Expand Down Expand Up @@ -1849,11 +1851,11 @@ private constructor(
fun _individual(): JsonField<Individual> = individual

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

@JsonAnySetter
private fun putAdditionalProperty(key: String, value: JsonValue) {
Expand All @@ -1877,7 +1879,7 @@ private constructor(
* .beneficialOwnerId()
* .companyTitle()
* .individual()
* .prong()
* .prongs()
* ```
*/
@JvmStatic fun builder() = Builder()
Expand All @@ -1889,15 +1891,15 @@ private constructor(
private var beneficialOwnerId: JsonField<String>? = null
private var companyTitle: JsonField<String>? = null
private var individual: JsonField<Individual>? = null
private var prong: JsonField<Prong>? = null
private var prongs: JsonField<MutableList<Prong>>? = null
private var additionalProperties: MutableMap<String, JsonValue> = mutableMapOf()

@JvmSynthetic
internal fun from(beneficialOwner: BeneficialOwner) = apply {
beneficialOwnerId = beneficialOwner.beneficialOwnerId
companyTitle = beneficialOwner.companyTitle
individual = beneficialOwner.individual
prong = beneficialOwner.prong
prongs = beneficialOwner.prongs.map { it.toMutableList() }
additionalProperties = beneficialOwner.additionalProperties.toMutableMap()
}

Expand Down Expand Up @@ -1950,16 +1952,30 @@ private constructor(
}

/** Why this person is considered a beneficial owner of the entity. */
fun prong(prong: Prong) = prong(JsonField.of(prong))
fun prongs(prongs: List<Prong>) = prongs(JsonField.of(prongs))

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

/**
* Adds a single [Prong] to [prongs].
*
* @throws IllegalStateException if the field was previously set to a non-list.
*/
fun prong(prong: JsonField<Prong>) = apply { this.prong = prong }
fun addProng(prong: Prong) = apply {
prongs =
(prongs ?: JsonField.of(mutableListOf())).also {
checkKnown("prongs", it).add(prong)
}
}

fun additionalProperties(additionalProperties: Map<String, JsonValue>) = apply {
this.additionalProperties.clear()
Expand Down Expand Up @@ -1993,7 +2009,7 @@ private constructor(
* .beneficialOwnerId()
* .companyTitle()
* .individual()
* .prong()
* .prongs()
* ```
*
* @throws IllegalStateException if any required field is unset.
Expand All @@ -2003,7 +2019,7 @@ private constructor(
checkRequired("beneficialOwnerId", beneficialOwnerId),
checkRequired("companyTitle", companyTitle),
checkRequired("individual", individual),
checkRequired("prong", prong),
checkRequired("prongs", prongs).map { it.toImmutable() },
additionalProperties.toMutableMap(),
)
}
Expand All @@ -2018,7 +2034,7 @@ private constructor(
beneficialOwnerId()
companyTitle()
individual().validate()
prong().validate()
prongs().forEach { it.validate() }
validated = true
}

Expand All @@ -2041,7 +2057,7 @@ private constructor(
(if (beneficialOwnerId.asKnown().isPresent) 1 else 0) +
(if (companyTitle.asKnown().isPresent) 1 else 0) +
(individual.asKnown().getOrNull()?.validity() ?: 0) +
(prong.asKnown().getOrNull()?.validity() ?: 0)
(prongs.asKnown().getOrNull()?.sumOf { it.validity().toInt() } ?: 0)

/** Personal details for the beneficial owner. */
class Individual
Expand Down Expand Up @@ -3139,7 +3155,6 @@ private constructor(
"Individual{address=$address, dateOfBirth=$dateOfBirth, identification=$identification, name=$name, additionalProperties=$additionalProperties}"
}

/** Why this person is considered a beneficial owner of the entity. */
class Prong @JsonCreator private constructor(private val value: JsonField<String>) :
Enum {

Expand Down Expand Up @@ -3286,7 +3301,7 @@ private constructor(
beneficialOwnerId == other.beneficialOwnerId &&
companyTitle == other.companyTitle &&
individual == other.individual &&
prong == other.prong &&
prongs == other.prongs &&
additionalProperties == other.additionalProperties
}

Expand All @@ -3295,15 +3310,15 @@ private constructor(
beneficialOwnerId,
companyTitle,
individual,
prong,
prongs,
additionalProperties,
)
}

override fun hashCode(): Int = hashCode

override fun toString() =
"BeneficialOwner{beneficialOwnerId=$beneficialOwnerId, companyTitle=$companyTitle, individual=$individual, prong=$prong, additionalProperties=$additionalProperties}"
"BeneficialOwner{beneficialOwnerId=$beneficialOwnerId, companyTitle=$companyTitle, individual=$individual, prongs=$prongs, additionalProperties=$additionalProperties}"
}

override fun equals(other: Any?): Boolean {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ internal class EntityListPageResponseTest {
.name("Ian Crease")
.build()
)
.prong(Entity.Corporation.BeneficialOwner.Prong.CONTROL)
.addProng(Entity.Corporation.BeneficialOwner.Prong.CONTROL)
.build()
)
.email(null)
Expand Down Expand Up @@ -323,7 +323,7 @@ internal class EntityListPageResponseTest {
.name("Ian Crease")
.build()
)
.prong(Entity.Corporation.BeneficialOwner.Prong.CONTROL)
.addProng(Entity.Corporation.BeneficialOwner.Prong.CONTROL)
.build()
)
.email(null)
Expand Down Expand Up @@ -581,7 +581,7 @@ internal class EntityListPageResponseTest {
.name("Ian Crease")
.build()
)
.prong(Entity.Corporation.BeneficialOwner.Prong.CONTROL)
.addProng(Entity.Corporation.BeneficialOwner.Prong.CONTROL)
.build()
)
.email(null)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ internal class EntityTest {
.name("Ian Crease")
.build()
)
.prong(Entity.Corporation.BeneficialOwner.Prong.CONTROL)
.addProng(Entity.Corporation.BeneficialOwner.Prong.CONTROL)
.build()
)
.email(null)
Expand Down Expand Up @@ -308,7 +308,7 @@ internal class EntityTest {
.name("Ian Crease")
.build()
)
.prong(Entity.Corporation.BeneficialOwner.Prong.CONTROL)
.addProng(Entity.Corporation.BeneficialOwner.Prong.CONTROL)
.build()
)
.email(null)
Expand Down Expand Up @@ -564,7 +564,7 @@ internal class EntityTest {
.name("Ian Crease")
.build()
)
.prong(Entity.Corporation.BeneficialOwner.Prong.CONTROL)
.addProng(Entity.Corporation.BeneficialOwner.Prong.CONTROL)
.build()
)
.email(null)
Expand Down
Loading