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.471.0"
".": "0.472.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-6cc15216773be06ef5899a9f805480d69ba2e610a3746bb638c7773baa10c407.yml
openapi_spec_hash: c24d9a85acb17d73e8d6434d7c907d40
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-2aab30efad14c2af42a235cff57e4f530dcc7f223df00093d9d171186d5f2c5e.yml
openapi_spec_hash: 08496939ae1bdbbe2aee358b693020f8
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.472.0 (2026-03-12)

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

### Features

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

## 0.471.0 (2026-03-12)

Full Changelog: [v0.470.0...v0.471.0](https://github.com/Increase/increase-java/compare/v0.470.0...v0.471.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.471.0)
[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.471.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.471.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.472.0)
[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.472.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.472.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.471.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.472.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.471.0")
implementation("com.increase.api:increase-java:0.472.0")
```

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

subprojects {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ private constructor(
private val id: JsonField<String>,
private val companyTitle: JsonField<String>,
private val createdAt: JsonField<OffsetDateTime>,
private val entityId: JsonField<String>,
private val idempotencyKey: JsonField<String>,
private val individual: JsonField<Individual>,
private val prongs: JsonField<List<Prong>>,
Expand All @@ -50,6 +51,7 @@ private constructor(
@JsonProperty("created_at")
@ExcludeMissing
createdAt: JsonField<OffsetDateTime> = JsonMissing.of(),
@JsonProperty("entity_id") @ExcludeMissing entityId: JsonField<String> = JsonMissing.of(),
@JsonProperty("idempotency_key")
@ExcludeMissing
idempotencyKey: JsonField<String> = JsonMissing.of(),
Expand All @@ -58,7 +60,17 @@ private constructor(
individual: JsonField<Individual> = JsonMissing.of(),
@JsonProperty("prongs") @ExcludeMissing prongs: JsonField<List<Prong>> = JsonMissing.of(),
@JsonProperty("type") @ExcludeMissing type: JsonField<Type> = JsonMissing.of(),
) : this(id, companyTitle, createdAt, idempotencyKey, individual, prongs, type, mutableMapOf())
) : this(
id,
companyTitle,
createdAt,
entityId,
idempotencyKey,
individual,
prongs,
type,
mutableMapOf(),
)

/**
* The identifier of this beneficial owner.
Expand All @@ -85,6 +97,14 @@ private constructor(
*/
fun createdAt(): OffsetDateTime = createdAt.getRequired("created_at")

/**
* The identifier of the Entity to which this beneficial owner belongs.
*
* @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 entityId(): String = entityId.getRequired("entity_id")

/**
* The idempotency key you chose for this object. This value is unique across Increase and is
* used to ensure that a request is only processed once. Learn more about
Expand Down Expand Up @@ -145,6 +165,13 @@ private constructor(
@ExcludeMissing
fun _createdAt(): JsonField<OffsetDateTime> = createdAt

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

/**
* Returns the raw JSON value of [idempotencyKey].
*
Expand Down Expand Up @@ -199,6 +226,7 @@ private constructor(
* .id()
* .companyTitle()
* .createdAt()
* .entityId()
* .idempotencyKey()
* .individual()
* .prongs()
Expand All @@ -214,6 +242,7 @@ private constructor(
private var id: JsonField<String>? = null
private var companyTitle: JsonField<String>? = null
private var createdAt: JsonField<OffsetDateTime>? = null
private var entityId: JsonField<String>? = null
private var idempotencyKey: JsonField<String>? = null
private var individual: JsonField<Individual>? = null
private var prongs: JsonField<MutableList<Prong>>? = null
Expand All @@ -225,6 +254,7 @@ private constructor(
id = entityBeneficialOwner.id
companyTitle = entityBeneficialOwner.companyTitle
createdAt = entityBeneficialOwner.createdAt
entityId = entityBeneficialOwner.entityId
idempotencyKey = entityBeneficialOwner.idempotencyKey
individual = entityBeneficialOwner.individual
prongs = entityBeneficialOwner.prongs.map { it.toMutableList() }
Expand Down Expand Up @@ -275,6 +305,17 @@ private constructor(
*/
fun createdAt(createdAt: JsonField<OffsetDateTime>) = apply { this.createdAt = createdAt }

/** The identifier of the Entity to which this beneficial owner belongs. */
fun entityId(entityId: String) = entityId(JsonField.of(entityId))

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

/**
* The idempotency key you chose for this object. This value is unique across Increase and
* is used to ensure that a request is only processed once. Learn more about
Expand Down Expand Up @@ -379,6 +420,7 @@ private constructor(
* .id()
* .companyTitle()
* .createdAt()
* .entityId()
* .idempotencyKey()
* .individual()
* .prongs()
Expand All @@ -392,6 +434,7 @@ private constructor(
checkRequired("id", id),
checkRequired("companyTitle", companyTitle),
checkRequired("createdAt", createdAt),
checkRequired("entityId", entityId),
checkRequired("idempotencyKey", idempotencyKey),
checkRequired("individual", individual),
checkRequired("prongs", prongs).map { it.toImmutable() },
Expand All @@ -410,6 +453,7 @@ private constructor(
id()
companyTitle()
createdAt()
entityId()
idempotencyKey()
individual().validate()
prongs().forEach { it.validate() }
Expand All @@ -435,6 +479,7 @@ private constructor(
(if (id.asKnown().isPresent) 1 else 0) +
(if (companyTitle.asKnown().isPresent) 1 else 0) +
(if (createdAt.asKnown().isPresent) 1 else 0) +
(if (entityId.asKnown().isPresent) 1 else 0) +
(if (idempotencyKey.asKnown().isPresent) 1 else 0) +
(individual.asKnown().getOrNull()?.validity() ?: 0) +
(prongs.asKnown().getOrNull()?.sumOf { it.validity().toInt() } ?: 0) +
Expand Down Expand Up @@ -1756,6 +1801,7 @@ private constructor(
id == other.id &&
companyTitle == other.companyTitle &&
createdAt == other.createdAt &&
entityId == other.entityId &&
idempotencyKey == other.idempotencyKey &&
individual == other.individual &&
prongs == other.prongs &&
Expand All @@ -1768,6 +1814,7 @@ private constructor(
id,
companyTitle,
createdAt,
entityId,
idempotencyKey,
individual,
prongs,
Expand All @@ -1779,5 +1826,5 @@ private constructor(
override fun hashCode(): Int = hashCode

override fun toString() =
"EntityBeneficialOwner{id=$id, companyTitle=$companyTitle, createdAt=$createdAt, idempotencyKey=$idempotencyKey, individual=$individual, prongs=$prongs, type=$type, additionalProperties=$additionalProperties}"
"EntityBeneficialOwner{id=$id, companyTitle=$companyTitle, createdAt=$createdAt, entityId=$entityId, idempotencyKey=$idempotencyKey, individual=$individual, prongs=$prongs, type=$type, additionalProperties=$additionalProperties}"
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ internal class BeneficialOwnerListPageResponseTest {
.id("entity_setup_beneficial_owner_submission_vgkyk7dj5eb4sfhdbkx7")
.companyTitle("CEO")
.createdAt(OffsetDateTime.parse("2020-01-31T23:59:59Z"))
.entityId("entity_n8y8tnk2p9339ti393yi")
.idempotencyKey(null)
.individual(
EntityBeneficialOwner.Individual.builder()
Expand Down Expand Up @@ -60,6 +61,7 @@ internal class BeneficialOwnerListPageResponseTest {
.id("entity_setup_beneficial_owner_submission_vgkyk7dj5eb4sfhdbkx7")
.companyTitle("CEO")
.createdAt(OffsetDateTime.parse("2020-01-31T23:59:59Z"))
.entityId("entity_n8y8tnk2p9339ti393yi")
.idempotencyKey(null)
.individual(
EntityBeneficialOwner.Individual.builder()
Expand Down Expand Up @@ -104,6 +106,7 @@ internal class BeneficialOwnerListPageResponseTest {
.id("entity_setup_beneficial_owner_submission_vgkyk7dj5eb4sfhdbkx7")
.companyTitle("CEO")
.createdAt(OffsetDateTime.parse("2020-01-31T23:59:59Z"))
.entityId("entity_n8y8tnk2p9339ti393yi")
.idempotencyKey(null)
.individual(
EntityBeneficialOwner.Individual.builder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ internal class EntityBeneficialOwnerTest {
.id("entity_setup_beneficial_owner_submission_vgkyk7dj5eb4sfhdbkx7")
.companyTitle("CEO")
.createdAt(OffsetDateTime.parse("2020-01-31T23:59:59Z"))
.entityId("entity_n8y8tnk2p9339ti393yi")
.idempotencyKey(null)
.individual(
EntityBeneficialOwner.Individual.builder()
Expand Down Expand Up @@ -54,6 +55,7 @@ internal class EntityBeneficialOwnerTest {
assertThat(entityBeneficialOwner.companyTitle()).contains("CEO")
assertThat(entityBeneficialOwner.createdAt())
.isEqualTo(OffsetDateTime.parse("2020-01-31T23:59:59Z"))
assertThat(entityBeneficialOwner.entityId()).isEqualTo("entity_n8y8tnk2p9339ti393yi")
assertThat(entityBeneficialOwner.idempotencyKey()).isEmpty
assertThat(entityBeneficialOwner.individual())
.isEqualTo(
Expand Down Expand Up @@ -98,6 +100,7 @@ internal class EntityBeneficialOwnerTest {
.id("entity_setup_beneficial_owner_submission_vgkyk7dj5eb4sfhdbkx7")
.companyTitle("CEO")
.createdAt(OffsetDateTime.parse("2020-01-31T23:59:59Z"))
.entityId("entity_n8y8tnk2p9339ti393yi")
.idempotencyKey(null)
.individual(
EntityBeneficialOwner.Individual.builder()
Expand Down
Loading