From 5450dde7e3b8f764a25980a9e06056527613ec6f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 5 Mar 2026 02:10:12 +0000 Subject: [PATCH 1/2] feat(api): api update --- .stats.yml | 4 +- .../increase/api/models/entities/Entity.kt | 60 +++++++------------ .../entities/EntityListPageResponseTest.kt | 13 +++- .../api/models/entities/EntityTest.kt | 15 ++--- 4 files changed, 41 insertions(+), 51 deletions(-) diff --git a/.stats.yml b/.stats.yml index 88642e07a..d1f0847b3 100644 --- a/.stats.yml +++ b/.stats.yml @@ -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 diff --git a/increase-java-core/src/main/kotlin/com/increase/api/models/entities/Entity.kt b/increase-java-core/src/main/kotlin/com/increase/api/models/entities/Entity.kt index 1b6b59109..ede15978d 100644 --- a/increase-java-core/src/main/kotlin/com/increase/api/models/entities/Entity.kt +++ b/increase-java-core/src/main/kotlin/com/increase/api/models/entities/Entity.kt @@ -1762,7 +1762,7 @@ private constructor( class BeneficialOwner @JsonCreator(mode = JsonCreator.Mode.DISABLED) private constructor( - private val beneficialOwnerId: JsonField, + private val id: JsonField, private val companyTitle: JsonField, private val individual: JsonField, private val prongs: JsonField>, @@ -1771,9 +1771,7 @@ private constructor( @JsonCreator private constructor( - @JsonProperty("beneficial_owner_id") - @ExcludeMissing - beneficialOwnerId: JsonField = JsonMissing.of(), + @JsonProperty("id") @ExcludeMissing id: JsonField = JsonMissing.of(), @JsonProperty("company_title") @ExcludeMissing companyTitle: JsonField = JsonMissing.of(), @@ -1783,7 +1781,7 @@ private constructor( @JsonProperty("prongs") @ExcludeMissing prongs: JsonField> = JsonMissing.of(), - ) : this(beneficialOwnerId, companyTitle, individual, prongs, mutableMapOf()) + ) : this(id, companyTitle, individual, prongs, mutableMapOf()) /** * The identifier of this beneficial owner. @@ -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. @@ -1821,14 +1819,11 @@ private constructor( fun prongs(): List = 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 = beneficialOwnerId + @JsonProperty("id") @ExcludeMissing fun _id(): JsonField = id /** * Returns the raw JSON value of [companyTitle]. @@ -1876,7 +1871,7 @@ private constructor( * * The following fields are required: * ```java - * .beneficialOwnerId() + * .id() * .companyTitle() * .individual() * .prongs() @@ -1888,7 +1883,7 @@ private constructor( /** A builder for [BeneficialOwner]. */ class Builder internal constructor() { - private var beneficialOwnerId: JsonField? = null + private var id: JsonField? = null private var companyTitle: JsonField? = null private var individual: JsonField? = null private var prongs: JsonField>? = null @@ -1896,7 +1891,7 @@ private constructor( @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() } @@ -1904,19 +1899,16 @@ private constructor( } /** 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) = apply { - this.beneficialOwnerId = beneficialOwnerId - } + fun id(id: JsonField) = apply { this.id = id } /** This person's role or title within the entity. */ fun companyTitle(companyTitle: String?) = @@ -2006,7 +1998,7 @@ private constructor( * * The following fields are required: * ```java - * .beneficialOwnerId() + * .id() * .companyTitle() * .individual() * .prongs() @@ -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() }, @@ -2031,7 +2023,7 @@ private constructor( return@apply } - beneficialOwnerId() + id() companyTitle() individual().validate() prongs().forEach { it.validate() } @@ -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) @@ -3298,7 +3290,7 @@ private constructor( } return other is BeneficialOwner && - beneficialOwnerId == other.beneficialOwnerId && + id == other.id && companyTitle == other.companyTitle && individual == other.individual && prongs == other.prongs && @@ -3306,19 +3298,13 @@ private constructor( } 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 { diff --git a/increase-java-core/src/test/kotlin/com/increase/api/models/entities/EntityListPageResponseTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/models/entities/EntityListPageResponseTest.kt index 3f272c994..2e12db2c0 100644 --- a/increase-java-core/src/test/kotlin/com/increase/api/models/entities/EntityListPageResponseTest.kt +++ b/increase-java-core/src/test/kotlin/com/increase/api/models/entities/EntityListPageResponseTest.kt @@ -32,7 +32,7 @@ internal class EntityListPageResponseTest { ) .addBeneficialOwner( Entity.Corporation.BeneficialOwner.builder() - .beneficialOwnerId( + .id( "entity_setup_beneficial_owner_submission_vgkyk7dj5eb4sfhdbkx7" ) .companyTitle("CEO") @@ -69,6 +69,9 @@ internal class EntityListPageResponseTest { .build() ) .addProng(Entity.Corporation.BeneficialOwner.Prong.CONTROL) + .addProng( + Entity.Corporation.BeneficialOwner.Prong.OWNERSHIP + ) .build() ) .email(null) @@ -287,7 +290,7 @@ internal class EntityListPageResponseTest { ) .addBeneficialOwner( Entity.Corporation.BeneficialOwner.builder() - .beneficialOwnerId( + .id( "entity_setup_beneficial_owner_submission_vgkyk7dj5eb4sfhdbkx7" ) .companyTitle("CEO") @@ -324,6 +327,7 @@ internal class EntityListPageResponseTest { .build() ) .addProng(Entity.Corporation.BeneficialOwner.Prong.CONTROL) + .addProng(Entity.Corporation.BeneficialOwner.Prong.OWNERSHIP) .build() ) .email(null) @@ -545,7 +549,7 @@ internal class EntityListPageResponseTest { ) .addBeneficialOwner( Entity.Corporation.BeneficialOwner.builder() - .beneficialOwnerId( + .id( "entity_setup_beneficial_owner_submission_vgkyk7dj5eb4sfhdbkx7" ) .companyTitle("CEO") @@ -582,6 +586,9 @@ internal class EntityListPageResponseTest { .build() ) .addProng(Entity.Corporation.BeneficialOwner.Prong.CONTROL) + .addProng( + Entity.Corporation.BeneficialOwner.Prong.OWNERSHIP + ) .build() ) .email(null) diff --git a/increase-java-core/src/test/kotlin/com/increase/api/models/entities/EntityTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/models/entities/EntityTest.kt index a440ea7c3..3d81c0678 100644 --- a/increase-java-core/src/test/kotlin/com/increase/api/models/entities/EntityTest.kt +++ b/increase-java-core/src/test/kotlin/com/increase/api/models/entities/EntityTest.kt @@ -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() @@ -65,6 +63,7 @@ internal class EntityTest { .build() ) .addProng(Entity.Corporation.BeneficialOwner.Prong.CONTROL) + .addProng(Entity.Corporation.BeneficialOwner.Prong.OWNERSHIP) .build() ) .email(null) @@ -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() @@ -309,6 +306,7 @@ internal class EntityTest { .build() ) .addProng(Entity.Corporation.BeneficialOwner.Prong.CONTROL) + .addProng(Entity.Corporation.BeneficialOwner.Prong.OWNERSHIP) .build() ) .email(null) @@ -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() @@ -565,6 +561,7 @@ internal class EntityTest { .build() ) .addProng(Entity.Corporation.BeneficialOwner.Prong.CONTROL) + .addProng(Entity.Corporation.BeneficialOwner.Prong.OWNERSHIP) .build() ) .email(null) From 766cab9bf822e1852f71d99c782c57cbb73b3d89 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 5 Mar 2026 02:10:40 +0000 Subject: [PATCH 2/2] release: 0.446.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 e34e55c0b..d5f4d2ce5 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.445.0" + ".": "0.446.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 37747534a..02761b67c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/README.md b/README.md index 44702a0d1..83e278236 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.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) @@ -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.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). @@ -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 @@ -33,7 +33,7 @@ implementation("com.increase.api:increase-java:0.445.0") com.increase.api increase-java - 0.445.0 + 0.446.0 ``` diff --git a/build.gradle.kts b/build.gradle.kts index 7518c5790..6b5525227 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -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 {