From 8aa31c7bf75c67e3ebd77b3d87026ad73a95ba9f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 7 Jan 2026 21:27:26 +0000 Subject: [PATCH 1/2] feat(api): api update --- .stats.yml | 4 +- .../api/models/entities/EntityUpdateParams.kt | 69 +++++++++++++++++-- .../models/entities/EntityUpdateParamsTest.kt | 3 + .../services/async/EntityServiceAsyncTest.kt | 1 + .../services/blocking/EntityServiceTest.kt | 1 + 5 files changed, 72 insertions(+), 6 deletions(-) diff --git a/.stats.yml b/.stats.yml index ade5a4601..6f42a9fee 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 227 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-9e8b4907003e0149ea10d8c95b2facfbc011f366cea40fe86b5f02940e68998d.yml -openapi_spec_hash: e93ee5c48421038334b8961b303465d6 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-0281c1d774b1853b7b09bbce88b8d6e0301179b68d53627c5940edd7d2f8b180.yml +openapi_spec_hash: e22a9d6a4f0f32976d0ac9dd7e6d7dd0 config_hash: ca52ca9a2968f330339fd50c1a386e05 diff --git a/increase-java-core/src/main/kotlin/com/increase/api/models/entities/EntityUpdateParams.kt b/increase-java-core/src/main/kotlin/com/increase/api/models/entities/EntityUpdateParams.kt index 6f0b1a7ad..776190576 100644 --- a/increase-java-core/src/main/kotlin/com/increase/api/models/entities/EntityUpdateParams.kt +++ b/increase-java-core/src/main/kotlin/com/increase/api/models/entities/EntityUpdateParams.kt @@ -933,6 +933,7 @@ private constructor( private constructor( private val address: JsonField
, private val email: JsonField, + private val incorporationState: JsonField, private val industryCode: JsonField, private val name: JsonField, private val additionalProperties: MutableMap, @@ -942,11 +943,14 @@ private constructor( private constructor( @JsonProperty("address") @ExcludeMissing address: JsonField
= JsonMissing.of(), @JsonProperty("email") @ExcludeMissing email: JsonField = JsonMissing.of(), + @JsonProperty("incorporation_state") + @ExcludeMissing + incorporationState: JsonField = JsonMissing.of(), @JsonProperty("industry_code") @ExcludeMissing industryCode: JsonField = JsonMissing.of(), @JsonProperty("name") @ExcludeMissing name: JsonField = JsonMissing.of(), - ) : this(address, email, industryCode, name, mutableMapOf()) + ) : this(address, email, incorporationState, industryCode, name, mutableMapOf()) /** * The entity's physical address. Mail receiving locations like PO Boxes and PMB's are @@ -966,6 +970,16 @@ private constructor( */ fun email(): Optional = email.getOptional("email") + /** + * The two-letter United States Postal Service (USPS) abbreviation for the corporation's + * state of incorporation. + * + * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if + * the server responded with an unexpected value). + */ + fun incorporationState(): Optional = + incorporationState.getOptional("incorporation_state") + /** * The North American Industry Classification System (NAICS) code for the corporation's * primary line of business. This is a number, like `5132` for `Software Publishers`. A full @@ -999,6 +1013,16 @@ private constructor( */ @JsonProperty("email") @ExcludeMissing fun _email(): JsonField = email + /** + * Returns the raw JSON value of [incorporationState]. + * + * Unlike [incorporationState], this method doesn't throw if the JSON field has an + * unexpected type. + */ + @JsonProperty("incorporation_state") + @ExcludeMissing + fun _incorporationState(): JsonField = incorporationState + /** * Returns the raw JSON value of [industryCode]. * @@ -1039,6 +1063,7 @@ private constructor( private var address: JsonField
= JsonMissing.of() private var email: JsonField = JsonMissing.of() + private var incorporationState: JsonField = JsonMissing.of() private var industryCode: JsonField = JsonMissing.of() private var name: JsonField = JsonMissing.of() private var additionalProperties: MutableMap = mutableMapOf() @@ -1047,6 +1072,7 @@ private constructor( internal fun from(corporation: Corporation) = apply { address = corporation.address email = corporation.email + incorporationState = corporation.incorporationState industryCode = corporation.industryCode name = corporation.name additionalProperties = corporation.additionalProperties.toMutableMap() @@ -1082,6 +1108,24 @@ private constructor( */ fun email(email: JsonField) = apply { this.email = email } + /** + * The two-letter United States Postal Service (USPS) abbreviation for the corporation's + * state of incorporation. + */ + fun incorporationState(incorporationState: String) = + incorporationState(JsonField.of(incorporationState)) + + /** + * Sets [Builder.incorporationState] to an arbitrary JSON value. + * + * You should usually call [Builder.incorporationState] with a well-typed [String] value + * instead. This method is primarily for setting the field to an undocumented or not yet + * supported value. + */ + fun incorporationState(incorporationState: JsonField) = apply { + this.incorporationState = incorporationState + } + /** * The North American Industry Classification System (NAICS) code for the corporation's * primary line of business. This is a number, like `5132` for `Software Publishers`. A @@ -1138,7 +1182,14 @@ private constructor( * Further updates to this [Builder] will not mutate the returned instance. */ fun build(): Corporation = - Corporation(address, email, industryCode, name, additionalProperties.toMutableMap()) + Corporation( + address, + email, + incorporationState, + industryCode, + name, + additionalProperties.toMutableMap(), + ) } private var validated: Boolean = false @@ -1150,6 +1201,7 @@ private constructor( address().ifPresent { it.validate() } email() + incorporationState() industryCode() name() validated = true @@ -1173,6 +1225,7 @@ private constructor( internal fun validity(): Int = (address.asKnown().getOrNull()?.validity() ?: 0) + (if (email.asKnown().isPresent) 1 else 0) + + (if (incorporationState.asKnown().isPresent) 1 else 0) + (if (industryCode.asKnown().isPresent) 1 else 0) + (if (name.asKnown().isPresent) 1 else 0) @@ -1508,19 +1561,27 @@ private constructor( return other is Corporation && address == other.address && email == other.email && + incorporationState == other.incorporationState && industryCode == other.industryCode && name == other.name && additionalProperties == other.additionalProperties } private val hashCode: Int by lazy { - Objects.hash(address, email, industryCode, name, additionalProperties) + Objects.hash( + address, + email, + incorporationState, + industryCode, + name, + additionalProperties, + ) } override fun hashCode(): Int = hashCode override fun toString() = - "Corporation{address=$address, email=$email, industryCode=$industryCode, name=$name, additionalProperties=$additionalProperties}" + "Corporation{address=$address, email=$email, incorporationState=$incorporationState, industryCode=$industryCode, name=$name, additionalProperties=$additionalProperties}" } /** diff --git a/increase-java-core/src/test/kotlin/com/increase/api/models/entities/EntityUpdateParamsTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/models/entities/EntityUpdateParamsTest.kt index 517c9a901..783ea69dd 100644 --- a/increase-java-core/src/test/kotlin/com/increase/api/models/entities/EntityUpdateParamsTest.kt +++ b/increase-java-core/src/test/kotlin/com/increase/api/models/entities/EntityUpdateParamsTest.kt @@ -24,6 +24,7 @@ internal class EntityUpdateParamsTest { .build() ) .email("dev@stainless.com") + .incorporationState("x") .industryCode("x") .name("x") .build() @@ -112,6 +113,7 @@ internal class EntityUpdateParamsTest { .build() ) .email("dev@stainless.com") + .incorporationState("x") .industryCode("x") .name("x") .build() @@ -188,6 +190,7 @@ internal class EntityUpdateParamsTest { .build() ) .email("dev@stainless.com") + .incorporationState("x") .industryCode("x") .name("x") .build() diff --git a/increase-java-core/src/test/kotlin/com/increase/api/services/async/EntityServiceAsyncTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/services/async/EntityServiceAsyncTest.kt index 13828329f..1d3439868 100644 --- a/increase-java-core/src/test/kotlin/com/increase/api/services/async/EntityServiceAsyncTest.kt +++ b/increase-java-core/src/test/kotlin/com/increase/api/services/async/EntityServiceAsyncTest.kt @@ -503,6 +503,7 @@ internal class EntityServiceAsyncTest { .build() ) .email("dev@stainless.com") + .incorporationState("x") .industryCode("x") .name("x") .build() diff --git a/increase-java-core/src/test/kotlin/com/increase/api/services/blocking/EntityServiceTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/services/blocking/EntityServiceTest.kt index b20e0b1c7..7491ad584 100644 --- a/increase-java-core/src/test/kotlin/com/increase/api/services/blocking/EntityServiceTest.kt +++ b/increase-java-core/src/test/kotlin/com/increase/api/services/blocking/EntityServiceTest.kt @@ -501,6 +501,7 @@ internal class EntityServiceTest { .build() ) .email("dev@stainless.com") + .incorporationState("x") .industryCode("x") .name("x") .build() From a1aae1b830d856608f5a437c207a606b1c6a362f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 7 Jan 2026 21:27:54 +0000 Subject: [PATCH 2/2] release: 0.393.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 e25de8c46..cd675b327 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.392.0" + ".": "0.393.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 9c5ace69d..8f336fd97 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.393.0 (2026-01-07) + +Full Changelog: [v0.392.0...v0.393.0](https://github.com/Increase/increase-java/compare/v0.392.0...v0.393.0) + +### Features + +* **api:** api update ([8aa31c7](https://github.com/Increase/increase-java/commit/8aa31c7bf75c67e3ebd77b3d87026ad73a95ba9f)) + ## 0.392.0 (2026-01-07) Full Changelog: [v0.391.0...v0.392.0](https://github.com/Increase/increase-java/compare/v0.391.0...v0.392.0) diff --git a/README.md b/README.md index aead2074f..54061db68 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.392.0) -[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.392.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.392.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.393.0) +[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.393.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.393.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.392.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.393.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.392.0") +implementation("com.increase.api:increase-java:0.393.0") ``` ### Maven @@ -33,7 +33,7 @@ implementation("com.increase.api:increase-java:0.392.0") com.increase.api increase-java - 0.392.0 + 0.393.0 ``` diff --git a/build.gradle.kts b/build.gradle.kts index ea5627198..fcf832a95 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -8,7 +8,7 @@ repositories { allprojects { group = "com.increase.api" - version = "0.392.0" // x-release-please-version + version = "0.393.0" // x-release-please-version } subprojects {