From da005856d28ccac9f56f44f79c40eb903232977c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 12 Mar 2026 17:55:42 +0000 Subject: [PATCH 1/2] feat(api): api update --- .stats.yml | 4 +- .../beneficialowners/EntityBeneficialOwner.kt | 51 ++++++++++++++++++- .../BeneficialOwnerListPageResponseTest.kt | 3 ++ .../EntityBeneficialOwnerTest.kt | 3 ++ 4 files changed, 57 insertions(+), 4 deletions(-) diff --git a/.stats.yml b/.stats.yml index 8db47988d..9fd9919ff 100644 --- a/.stats.yml +++ b/.stats.yml @@ -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 diff --git a/increase-java-core/src/main/kotlin/com/increase/api/models/beneficialowners/EntityBeneficialOwner.kt b/increase-java-core/src/main/kotlin/com/increase/api/models/beneficialowners/EntityBeneficialOwner.kt index 878927e0c..d630b1c76 100644 --- a/increase-java-core/src/main/kotlin/com/increase/api/models/beneficialowners/EntityBeneficialOwner.kt +++ b/increase-java-core/src/main/kotlin/com/increase/api/models/beneficialowners/EntityBeneficialOwner.kt @@ -34,6 +34,7 @@ private constructor( private val id: JsonField, private val companyTitle: JsonField, private val createdAt: JsonField, + private val entityId: JsonField, private val idempotencyKey: JsonField, private val individual: JsonField, private val prongs: JsonField>, @@ -50,6 +51,7 @@ private constructor( @JsonProperty("created_at") @ExcludeMissing createdAt: JsonField = JsonMissing.of(), + @JsonProperty("entity_id") @ExcludeMissing entityId: JsonField = JsonMissing.of(), @JsonProperty("idempotency_key") @ExcludeMissing idempotencyKey: JsonField = JsonMissing.of(), @@ -58,7 +60,17 @@ private constructor( individual: JsonField = JsonMissing.of(), @JsonProperty("prongs") @ExcludeMissing prongs: JsonField> = JsonMissing.of(), @JsonProperty("type") @ExcludeMissing type: JsonField = 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. @@ -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 @@ -145,6 +165,13 @@ private constructor( @ExcludeMissing fun _createdAt(): JsonField = 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 = entityId + /** * Returns the raw JSON value of [idempotencyKey]. * @@ -199,6 +226,7 @@ private constructor( * .id() * .companyTitle() * .createdAt() + * .entityId() * .idempotencyKey() * .individual() * .prongs() @@ -214,6 +242,7 @@ private constructor( private var id: JsonField? = null private var companyTitle: JsonField? = null private var createdAt: JsonField? = null + private var entityId: JsonField? = null private var idempotencyKey: JsonField? = null private var individual: JsonField? = null private var prongs: JsonField>? = null @@ -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() } @@ -275,6 +305,17 @@ private constructor( */ fun createdAt(createdAt: JsonField) = 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) = 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 @@ -379,6 +420,7 @@ private constructor( * .id() * .companyTitle() * .createdAt() + * .entityId() * .idempotencyKey() * .individual() * .prongs() @@ -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() }, @@ -410,6 +453,7 @@ private constructor( id() companyTitle() createdAt() + entityId() idempotencyKey() individual().validate() prongs().forEach { it.validate() } @@ -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) + @@ -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 && @@ -1768,6 +1814,7 @@ private constructor( id, companyTitle, createdAt, + entityId, idempotencyKey, individual, prongs, @@ -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}" } diff --git a/increase-java-core/src/test/kotlin/com/increase/api/models/beneficialowners/BeneficialOwnerListPageResponseTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/models/beneficialowners/BeneficialOwnerListPageResponseTest.kt index 5818f524e..f8c65c50e 100644 --- a/increase-java-core/src/test/kotlin/com/increase/api/models/beneficialowners/BeneficialOwnerListPageResponseTest.kt +++ b/increase-java-core/src/test/kotlin/com/increase/api/models/beneficialowners/BeneficialOwnerListPageResponseTest.kt @@ -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() @@ -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() @@ -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() diff --git a/increase-java-core/src/test/kotlin/com/increase/api/models/beneficialowners/EntityBeneficialOwnerTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/models/beneficialowners/EntityBeneficialOwnerTest.kt index 7e433c36a..8806b4228 100644 --- a/increase-java-core/src/test/kotlin/com/increase/api/models/beneficialowners/EntityBeneficialOwnerTest.kt +++ b/increase-java-core/src/test/kotlin/com/increase/api/models/beneficialowners/EntityBeneficialOwnerTest.kt @@ -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() @@ -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( @@ -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() From b49695dbfb49e24ab05ab358790f2cf334b7af0f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 12 Mar 2026 17:56:14 +0000 Subject: [PATCH 2/2] release: 0.472.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ README.md | 10 +++++----- build.gradle.kts | 2 +- 4 files changed, 15 insertions(+), 7 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 82f990268..bdceeb244 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.471.0" + ".": "0.472.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 9d5a18fa9..13b558735 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/README.md b/README.md index 199276e45..e19c5e0c4 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,8 @@ -[![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) @@ -13,7 +13,7 @@ The Increase Java SDK is similar to the Increase Kotlin SDK but with minor diffe -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). @@ -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 @@ -33,7 +33,7 @@ implementation("com.increase.api:increase-java:0.471.0") com.increase.api increase-java - 0.471.0 + 0.472.0 ``` diff --git a/build.gradle.kts b/build.gradle.kts index 0ca550a5c..c645b93ad 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -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 {