From 7bfad970b78fe549aa3123f3448fd6ad5ddf25ff Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Mon, 8 Sep 2025 18:41:27 +0000
Subject: [PATCH 1/2] feat(api): api update
---
.stats.yml | 4 +-
.../api/models/entities/EntityUpdateParams.kt | 59 +++++++++++++++++--
.../models/entities/EntityUpdateParamsTest.kt | 3 +
.../services/async/EntityServiceAsyncTest.kt | 1 +
.../services/blocking/EntityServiceTest.kt | 1 +
5 files changed, 62 insertions(+), 6 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index 94d9b0a5f..8b661a7b8 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 217
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-17c08bdd306c9bcf444a3d09db8878f633ec996cd2f091e1173742f6f3ffc5a5.yml
-openapi_spec_hash: 70c131085fc22b07df6bac0f70fcf468
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-438f2a4d4f35670ae5692a6a9a36711af7944ac975bf309a6d50c02a28b13a70.yml
+openapi_spec_hash: e4930cc26be238707449872070607e64
config_hash: e1885b38eded054b77308a024c5d80cc
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 86e5ad734..dc435efce 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
@@ -843,6 +843,7 @@ private constructor(
class Corporation
private constructor(
private val address: JsonField
,
+ private val industryCode: JsonField,
private val name: JsonField,
private val additionalProperties: MutableMap,
) {
@@ -850,8 +851,11 @@ private constructor(
@JsonCreator
private constructor(
@JsonProperty("address") @ExcludeMissing address: JsonField = JsonMissing.of(),
+ @JsonProperty("industry_code")
+ @ExcludeMissing
+ industryCode: JsonField = JsonMissing.of(),
@JsonProperty("name") @ExcludeMissing name: JsonField = JsonMissing.of(),
- ) : this(address, name, mutableMapOf())
+ ) : this(address, industryCode, name, mutableMapOf())
/**
* The entity's physical address. Mail receiving locations like PO Boxes and PMB's are
@@ -862,6 +866,17 @@ private constructor(
*/
fun address(): Optional = address.getOptional("address")
+ /**
+ * 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
+ * list of classification codes is available
+ * [here](https://increase.com/documentation/data-dictionary#north-american-industry-classification-system-codes).
+ *
+ * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if
+ * the server responded with an unexpected value).
+ */
+ fun industryCode(): Optional = industryCode.getOptional("industry_code")
+
/**
* The legal name of the corporation.
*
@@ -877,6 +892,16 @@ private constructor(
*/
@JsonProperty("address") @ExcludeMissing fun _address(): JsonField = address
+ /**
+ * Returns the raw JSON value of [industryCode].
+ *
+ * Unlike [industryCode], this method doesn't throw if the JSON field has an unexpected
+ * type.
+ */
+ @JsonProperty("industry_code")
+ @ExcludeMissing
+ fun _industryCode(): JsonField = industryCode
+
/**
* Returns the raw JSON value of [name].
*
@@ -906,12 +931,14 @@ private constructor(
class Builder internal constructor() {
private var address: JsonField = JsonMissing.of()
+ private var industryCode: JsonField = JsonMissing.of()
private var name: JsonField = JsonMissing.of()
private var additionalProperties: MutableMap = mutableMapOf()
@JvmSynthetic
internal fun from(corporation: Corporation) = apply {
address = corporation.address
+ industryCode = corporation.industryCode
name = corporation.name
additionalProperties = corporation.additionalProperties.toMutableMap()
}
@@ -931,6 +958,25 @@ private constructor(
*/
fun address(address: JsonField) = apply { this.address = address }
+ /**
+ * 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 list of classification codes is available
+ * [here](https://increase.com/documentation/data-dictionary#north-american-industry-classification-system-codes).
+ */
+ fun industryCode(industryCode: String) = industryCode(JsonField.of(industryCode))
+
+ /**
+ * Sets [Builder.industryCode] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.industryCode] with a well-typed [String] value
+ * instead. This method is primarily for setting the field to an undocumented or not yet
+ * supported value.
+ */
+ fun industryCode(industryCode: JsonField) = apply {
+ this.industryCode = industryCode
+ }
+
/** The legal name of the corporation. */
fun name(name: String) = name(JsonField.of(name))
@@ -968,7 +1014,7 @@ private constructor(
* Further updates to this [Builder] will not mutate the returned instance.
*/
fun build(): Corporation =
- Corporation(address, name, additionalProperties.toMutableMap())
+ Corporation(address, industryCode, name, additionalProperties.toMutableMap())
}
private var validated: Boolean = false
@@ -979,6 +1025,7 @@ private constructor(
}
address().ifPresent { it.validate() }
+ industryCode()
name()
validated = true
}
@@ -1000,6 +1047,7 @@ private constructor(
@JvmSynthetic
internal fun validity(): Int =
(address.asKnown().getOrNull()?.validity() ?: 0) +
+ (if (industryCode.asKnown().isPresent) 1 else 0) +
(if (name.asKnown().isPresent) 1 else 0)
/**
@@ -1332,16 +1380,19 @@ private constructor(
return other is Corporation &&
address == other.address &&
+ industryCode == other.industryCode &&
name == other.name &&
additionalProperties == other.additionalProperties
}
- private val hashCode: Int by lazy { Objects.hash(address, name, additionalProperties) }
+ private val hashCode: Int by lazy {
+ Objects.hash(address, industryCode, name, additionalProperties)
+ }
override fun hashCode(): Int = hashCode
override fun toString() =
- "Corporation{address=$address, name=$name, additionalProperties=$additionalProperties}"
+ "Corporation{address=$address, 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 fee573f09..d8056ab03 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
@@ -23,6 +23,7 @@ internal class EntityUpdateParamsTest {
.line2("Unit 2")
.build()
)
+ .industryCode("x")
.name("x")
.build()
)
@@ -108,6 +109,7 @@ internal class EntityUpdateParamsTest {
.line2("Unit 2")
.build()
)
+ .industryCode("x")
.name("x")
.build()
)
@@ -181,6 +183,7 @@ internal class EntityUpdateParamsTest {
.line2("Unit 2")
.build()
)
+ .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 348b6fdb4..5b019b050 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
@@ -494,6 +494,7 @@ internal class EntityServiceAsyncTest {
.line2("Unit 2")
.build()
)
+ .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 5e55c05a6..baad98adc 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
@@ -492,6 +492,7 @@ internal class EntityServiceTest {
.line2("Unit 2")
.build()
)
+ .industryCode("x")
.name("x")
.build()
)
From 77de2d943aff1c0a4e8daef49138b7995d02d282 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Mon, 8 Sep 2025 18:41:54 +0000
Subject: [PATCH 2/2] release: 0.319.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 bd0a4378e..ce7418761 100644
--- a/.release-please-manifest.json
+++ b/.release-please-manifest.json
@@ -1,3 +1,3 @@
{
- ".": "0.318.0"
+ ".": "0.319.0"
}
\ No newline at end of file
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 52c9fecda..9bc1906bd 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,13 @@
# Changelog
+## 0.319.0 (2025-09-08)
+
+Full Changelog: [v0.318.0...v0.319.0](https://github.com/Increase/increase-java/compare/v0.318.0...v0.319.0)
+
+### Features
+
+* **api:** api update ([7bfad97](https://github.com/Increase/increase-java/commit/7bfad970b78fe549aa3123f3448fd6ad5ddf25ff))
+
## 0.318.0 (2025-09-08)
Full Changelog: [v0.317.0...v0.318.0](https://github.com/Increase/increase-java/compare/v0.317.0...v0.318.0)
diff --git a/README.md b/README.md
index 75247c6b3..0254c1747 100644
--- a/README.md
+++ b/README.md
@@ -2,8 +2,8 @@
-[](https://central.sonatype.com/artifact/com.increase.api/increase-java/0.318.0)
-[](https://javadoc.io/doc/com.increase.api/increase-java/0.318.0)
+[](https://central.sonatype.com/artifact/com.increase.api/increase-java/0.319.0)
+[](https://javadoc.io/doc/com.increase.api/increase-java/0.319.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.318.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.319.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.318.0")
+implementation("com.increase.api:increase-java:0.319.0")
```
### Maven
@@ -33,7 +33,7 @@ implementation("com.increase.api:increase-java:0.318.0")
com.increase.api
increase-java
- 0.318.0
+ 0.319.0
```
diff --git a/build.gradle.kts b/build.gradle.kts
index 8f08233d9..5761b3680 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -8,7 +8,7 @@ repositories {
allprojects {
group = "com.increase.api"
- version = "0.318.0" // x-release-please-version
+ version = "0.319.0" // x-release-please-version
}
subprojects {