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.318.0"
".": "0.319.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: 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
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
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.318.0)
[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.318.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.318.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.319.0)
[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.319.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.319.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.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).

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

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

subprojects {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -843,15 +843,19 @@ private constructor(
class Corporation
private constructor(
private val address: JsonField<Address>,
private val industryCode: JsonField<String>,
private val name: JsonField<String>,
private val additionalProperties: MutableMap<String, JsonValue>,
) {

@JsonCreator
private constructor(
@JsonProperty("address") @ExcludeMissing address: JsonField<Address> = JsonMissing.of(),
@JsonProperty("industry_code")
@ExcludeMissing
industryCode: JsonField<String> = JsonMissing.of(),
@JsonProperty("name") @ExcludeMissing name: JsonField<String> = 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
Expand All @@ -862,6 +866,17 @@ private constructor(
*/
fun address(): Optional<Address> = 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<String> = industryCode.getOptional("industry_code")

/**
* The legal name of the corporation.
*
Expand All @@ -877,6 +892,16 @@ private constructor(
*/
@JsonProperty("address") @ExcludeMissing fun _address(): JsonField<Address> = 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<String> = industryCode

/**
* Returns the raw JSON value of [name].
*
Expand Down Expand Up @@ -906,12 +931,14 @@ private constructor(
class Builder internal constructor() {

private var address: JsonField<Address> = JsonMissing.of()
private var industryCode: JsonField<String> = JsonMissing.of()
private var name: JsonField<String> = JsonMissing.of()
private var additionalProperties: MutableMap<String, JsonValue> = mutableMapOf()

@JvmSynthetic
internal fun from(corporation: Corporation) = apply {
address = corporation.address
industryCode = corporation.industryCode
name = corporation.name
additionalProperties = corporation.additionalProperties.toMutableMap()
}
Expand All @@ -931,6 +958,25 @@ private constructor(
*/
fun address(address: JsonField<Address>) = 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<String>) = apply {
this.industryCode = industryCode
}

/** The legal name of the corporation. */
fun name(name: String) = name(JsonField.of(name))

Expand Down Expand Up @@ -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
Expand All @@ -979,6 +1025,7 @@ private constructor(
}

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

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

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ internal class EntityUpdateParamsTest {
.line2("Unit 2")
.build()
)
.industryCode("x")
.name("x")
.build()
)
Expand Down Expand Up @@ -108,6 +109,7 @@ internal class EntityUpdateParamsTest {
.line2("Unit 2")
.build()
)
.industryCode("x")
.name("x")
.build()
)
Expand Down Expand Up @@ -181,6 +183,7 @@ internal class EntityUpdateParamsTest {
.line2("Unit 2")
.build()
)
.industryCode("x")
.name("x")
.build()
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,7 @@ internal class EntityServiceAsyncTest {
.line2("Unit 2")
.build()
)
.industryCode("x")
.name("x")
.build()
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,7 @@ internal class EntityServiceTest {
.line2("Unit 2")
.build()
)
.industryCode("x")
.name("x")
.build()
)
Expand Down
Loading