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.445.0"
".": "0.446.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-56234b020a54052fccd4039cb771fbc9065afc95cf2b15d559c4a91d4e745ca1.yml
openapi_spec_hash: 1254ab532c5dd4c23fb035149006f802
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-2277bacfbbf3570574b1c8abe74936d197944101f1e66238be7baf8e3303e52d.yml
openapi_spec_hash: f9004c6a75fbf5b4984080b8f8dd184c
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.446.0 (2026-03-05)

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

### Features

* **api:** api update ([5450dde](https://github.com/Increase/increase-java/commit/5450dde7e3b8f764a25980a9e06056527613ec6f))

## 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)
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.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)
[![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.446.0)
[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.446.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.446.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.445.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.446.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.445.0")
implementation("com.increase.api:increase-java:0.446.0")
```

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

subprojects {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1762,7 +1762,7 @@ private constructor(
class BeneficialOwner
@JsonCreator(mode = JsonCreator.Mode.DISABLED)
private constructor(
private val beneficialOwnerId: JsonField<String>,
private val id: JsonField<String>,
private val companyTitle: JsonField<String>,
private val individual: JsonField<Individual>,
private val prongs: JsonField<List<Prong>>,
Expand All @@ -1771,9 +1771,7 @@ private constructor(

@JsonCreator
private constructor(
@JsonProperty("beneficial_owner_id")
@ExcludeMissing
beneficialOwnerId: JsonField<String> = JsonMissing.of(),
@JsonProperty("id") @ExcludeMissing id: JsonField<String> = JsonMissing.of(),
@JsonProperty("company_title")
@ExcludeMissing
companyTitle: JsonField<String> = JsonMissing.of(),
Expand All @@ -1783,7 +1781,7 @@ private constructor(
@JsonProperty("prongs")
@ExcludeMissing
prongs: JsonField<List<Prong>> = JsonMissing.of(),
) : this(beneficialOwnerId, companyTitle, individual, prongs, mutableMapOf())
) : this(id, companyTitle, individual, prongs, mutableMapOf())

/**
* The identifier of this beneficial owner.
Expand All @@ -1792,7 +1790,7 @@ private constructor(
* unexpectedly missing or null (e.g. if the server responded with an unexpected
* value).
*/
fun beneficialOwnerId(): String = beneficialOwnerId.getRequired("beneficial_owner_id")
fun id(): String = id.getRequired("id")

/**
* This person's role or title within the entity.
Expand Down Expand Up @@ -1821,14 +1819,11 @@ private constructor(
fun prongs(): List<Prong> = prongs.getRequired("prongs")

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

/**
* Returns the raw JSON value of [companyTitle].
Expand Down Expand Up @@ -1876,7 +1871,7 @@ private constructor(
*
* The following fields are required:
* ```java
* .beneficialOwnerId()
* .id()
* .companyTitle()
* .individual()
* .prongs()
Expand All @@ -1888,35 +1883,32 @@ private constructor(
/** A builder for [BeneficialOwner]. */
class Builder internal constructor() {

private var beneficialOwnerId: JsonField<String>? = null
private var id: JsonField<String>? = null
private var companyTitle: JsonField<String>? = null
private var individual: JsonField<Individual>? = 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
id = beneficialOwner.id
companyTitle = beneficialOwner.companyTitle
individual = beneficialOwner.individual
prongs = beneficialOwner.prongs.map { it.toMutableList() }
additionalProperties = beneficialOwner.additionalProperties.toMutableMap()
}

/** The identifier of this beneficial owner. */
fun beneficialOwnerId(beneficialOwnerId: String) =
beneficialOwnerId(JsonField.of(beneficialOwnerId))
fun id(id: String) = id(JsonField.of(id))

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

/** This person's role or title within the entity. */
fun companyTitle(companyTitle: String?) =
Expand Down Expand Up @@ -2006,7 +1998,7 @@ private constructor(
*
* The following fields are required:
* ```java
* .beneficialOwnerId()
* .id()
* .companyTitle()
* .individual()
* .prongs()
Expand All @@ -2016,7 +2008,7 @@ private constructor(
*/
fun build(): BeneficialOwner =
BeneficialOwner(
checkRequired("beneficialOwnerId", beneficialOwnerId),
checkRequired("id", id),
checkRequired("companyTitle", companyTitle),
checkRequired("individual", individual),
checkRequired("prongs", prongs).map { it.toImmutable() },
Expand All @@ -2031,7 +2023,7 @@ private constructor(
return@apply
}

beneficialOwnerId()
id()
companyTitle()
individual().validate()
prongs().forEach { it.validate() }
Expand All @@ -2054,7 +2046,7 @@ private constructor(
*/
@JvmSynthetic
internal fun validity(): Int =
(if (beneficialOwnerId.asKnown().isPresent) 1 else 0) +
(if (id.asKnown().isPresent) 1 else 0) +
(if (companyTitle.asKnown().isPresent) 1 else 0) +
(individual.asKnown().getOrNull()?.validity() ?: 0) +
(prongs.asKnown().getOrNull()?.sumOf { it.validity().toInt() } ?: 0)
Expand Down Expand Up @@ -3298,27 +3290,21 @@ private constructor(
}

return other is BeneficialOwner &&
beneficialOwnerId == other.beneficialOwnerId &&
id == other.id &&
companyTitle == other.companyTitle &&
individual == other.individual &&
prongs == other.prongs &&
additionalProperties == other.additionalProperties
}

private val hashCode: Int by lazy {
Objects.hash(
beneficialOwnerId,
companyTitle,
individual,
prongs,
additionalProperties,
)
Objects.hash(id, companyTitle, individual, prongs, additionalProperties)
}

override fun hashCode(): Int = hashCode

override fun toString() =
"BeneficialOwner{beneficialOwnerId=$beneficialOwnerId, companyTitle=$companyTitle, individual=$individual, prongs=$prongs, additionalProperties=$additionalProperties}"
"BeneficialOwner{id=$id, 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 @@ -32,7 +32,7 @@ internal class EntityListPageResponseTest {
)
.addBeneficialOwner(
Entity.Corporation.BeneficialOwner.builder()
.beneficialOwnerId(
.id(
"entity_setup_beneficial_owner_submission_vgkyk7dj5eb4sfhdbkx7"
)
.companyTitle("CEO")
Expand Down Expand Up @@ -69,6 +69,9 @@ internal class EntityListPageResponseTest {
.build()
)
.addProng(Entity.Corporation.BeneficialOwner.Prong.CONTROL)
.addProng(
Entity.Corporation.BeneficialOwner.Prong.OWNERSHIP
)
.build()
)
.email(null)
Expand Down Expand Up @@ -287,7 +290,7 @@ internal class EntityListPageResponseTest {
)
.addBeneficialOwner(
Entity.Corporation.BeneficialOwner.builder()
.beneficialOwnerId(
.id(
"entity_setup_beneficial_owner_submission_vgkyk7dj5eb4sfhdbkx7"
)
.companyTitle("CEO")
Expand Down Expand Up @@ -324,6 +327,7 @@ internal class EntityListPageResponseTest {
.build()
)
.addProng(Entity.Corporation.BeneficialOwner.Prong.CONTROL)
.addProng(Entity.Corporation.BeneficialOwner.Prong.OWNERSHIP)
.build()
)
.email(null)
Expand Down Expand Up @@ -545,7 +549,7 @@ internal class EntityListPageResponseTest {
)
.addBeneficialOwner(
Entity.Corporation.BeneficialOwner.builder()
.beneficialOwnerId(
.id(
"entity_setup_beneficial_owner_submission_vgkyk7dj5eb4sfhdbkx7"
)
.companyTitle("CEO")
Expand Down Expand Up @@ -582,6 +586,9 @@ internal class EntityListPageResponseTest {
.build()
)
.addProng(Entity.Corporation.BeneficialOwner.Prong.CONTROL)
.addProng(
Entity.Corporation.BeneficialOwner.Prong.OWNERSHIP
)
.build()
)
.email(null)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ internal class EntityTest {
)
.addBeneficialOwner(
Entity.Corporation.BeneficialOwner.builder()
.beneficialOwnerId(
"entity_setup_beneficial_owner_submission_vgkyk7dj5eb4sfhdbkx7"
)
.id("entity_setup_beneficial_owner_submission_vgkyk7dj5eb4sfhdbkx7")
.companyTitle("CEO")
.individual(
Entity.Corporation.BeneficialOwner.Individual.builder()
Expand Down Expand Up @@ -65,6 +63,7 @@ internal class EntityTest {
.build()
)
.addProng(Entity.Corporation.BeneficialOwner.Prong.CONTROL)
.addProng(Entity.Corporation.BeneficialOwner.Prong.OWNERSHIP)
.build()
)
.email(null)
Expand Down Expand Up @@ -275,9 +274,7 @@ internal class EntityTest {
)
.addBeneficialOwner(
Entity.Corporation.BeneficialOwner.builder()
.beneficialOwnerId(
"entity_setup_beneficial_owner_submission_vgkyk7dj5eb4sfhdbkx7"
)
.id("entity_setup_beneficial_owner_submission_vgkyk7dj5eb4sfhdbkx7")
.companyTitle("CEO")
.individual(
Entity.Corporation.BeneficialOwner.Individual.builder()
Expand Down Expand Up @@ -309,6 +306,7 @@ internal class EntityTest {
.build()
)
.addProng(Entity.Corporation.BeneficialOwner.Prong.CONTROL)
.addProng(Entity.Corporation.BeneficialOwner.Prong.OWNERSHIP)
.build()
)
.email(null)
Expand Down Expand Up @@ -530,9 +528,7 @@ internal class EntityTest {
)
.addBeneficialOwner(
Entity.Corporation.BeneficialOwner.builder()
.beneficialOwnerId(
"entity_setup_beneficial_owner_submission_vgkyk7dj5eb4sfhdbkx7"
)
.id("entity_setup_beneficial_owner_submission_vgkyk7dj5eb4sfhdbkx7")
.companyTitle("CEO")
.individual(
Entity.Corporation.BeneficialOwner.Individual.builder()
Expand Down Expand Up @@ -565,6 +561,7 @@ internal class EntityTest {
.build()
)
.addProng(Entity.Corporation.BeneficialOwner.Prong.CONTROL)
.addProng(Entity.Corporation.BeneficialOwner.Prong.OWNERSHIP)
.build()
)
.email(null)
Expand Down
Loading