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.392.0"
".": "0.393.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: 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
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
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.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)

<!-- 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.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).

<!-- 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.392.0")
implementation("com.increase.api:increase-java:0.393.0")
```

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

subprojects {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -933,6 +933,7 @@ private constructor(
private constructor(
private val address: JsonField<Address>,
private val email: JsonField<String>,
private val incorporationState: JsonField<String>,
private val industryCode: JsonField<String>,
private val name: JsonField<String>,
private val additionalProperties: MutableMap<String, JsonValue>,
Expand All @@ -942,11 +943,14 @@ private constructor(
private constructor(
@JsonProperty("address") @ExcludeMissing address: JsonField<Address> = JsonMissing.of(),
@JsonProperty("email") @ExcludeMissing email: JsonField<String> = JsonMissing.of(),
@JsonProperty("incorporation_state")
@ExcludeMissing
incorporationState: JsonField<String> = JsonMissing.of(),
@JsonProperty("industry_code")
@ExcludeMissing
industryCode: JsonField<String> = JsonMissing.of(),
@JsonProperty("name") @ExcludeMissing name: JsonField<String> = 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
Expand All @@ -966,6 +970,16 @@ private constructor(
*/
fun email(): Optional<String> = 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<String> =
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
Expand Down Expand Up @@ -999,6 +1013,16 @@ private constructor(
*/
@JsonProperty("email") @ExcludeMissing fun _email(): JsonField<String> = 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<String> = incorporationState

/**
* Returns the raw JSON value of [industryCode].
*
Expand Down Expand Up @@ -1039,6 +1063,7 @@ private constructor(

private var address: JsonField<Address> = JsonMissing.of()
private var email: JsonField<String> = JsonMissing.of()
private var incorporationState: JsonField<String> = JsonMissing.of()
private var industryCode: JsonField<String> = JsonMissing.of()
private var name: JsonField<String> = JsonMissing.of()
private var additionalProperties: MutableMap<String, JsonValue> = mutableMapOf()
Expand All @@ -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()
Expand Down Expand Up @@ -1082,6 +1108,24 @@ private constructor(
*/
fun email(email: JsonField<String>) = 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<String>) = 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
Expand Down Expand Up @@ -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
Expand All @@ -1150,6 +1201,7 @@ private constructor(

address().ifPresent { it.validate() }
email()
incorporationState()
industryCode()
name()
validated = true
Expand All @@ -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)

Expand Down Expand Up @@ -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}"
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ internal class EntityUpdateParamsTest {
.build()
)
.email("dev@stainless.com")
.incorporationState("x")
.industryCode("x")
.name("x")
.build()
Expand Down Expand Up @@ -112,6 +113,7 @@ internal class EntityUpdateParamsTest {
.build()
)
.email("dev@stainless.com")
.incorporationState("x")
.industryCode("x")
.name("x")
.build()
Expand Down Expand Up @@ -188,6 +190,7 @@ internal class EntityUpdateParamsTest {
.build()
)
.email("dev@stainless.com")
.incorporationState("x")
.industryCode("x")
.name("x")
.build()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,7 @@ internal class EntityServiceAsyncTest {
.build()
)
.email("dev@stainless.com")
.incorporationState("x")
.industryCode("x")
.name("x")
.build()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,7 @@ internal class EntityServiceTest {
.build()
)
.email("dev@stainless.com")
.incorporationState("x")
.industryCode("x")
.name("x")
.build()
Expand Down
Loading