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.263.0"
".": "0.264.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: 202
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-2965cbcf43d274ee029249246f9e3760a82372b9120a033bd651cad24765a4fb.yml
openapi_spec_hash: ae42e357b1bedbf992105c2a37f1b544
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-43d34b4805f305e7e2c71644ade73722d053018acd6009352360e8a87cbe2250.yml
openapi_spec_hash: cfff23de89960d895052350a33499cf1
config_hash: a185e9a72778cc4658ea73fb3a7f1354
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.264.0 (2025-07-21)

Full Changelog: [v0.263.0...v0.264.0](https://github.com/Increase/increase-java/compare/v0.263.0...v0.264.0)

### Features

* **api:** api update ([02bff21](https://github.com/Increase/increase-java/commit/02bff21d64116422318dd3472f88561f99bb4767))

## 0.263.0 (2025-07-21)

Full Changelog: [v0.262.0...v0.263.0](https://github.com/Increase/increase-java/compare/v0.262.0...v0.263.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.263.0)
[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.263.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.263.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.264.0)
[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.264.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.264.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.263.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.264.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.263.0")
implementation("com.increase.api:increase-java:0.264.0")
```

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

subprojects {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5804,17 +5804,15 @@ private constructor(
class Joint
private constructor(
private val individuals: JsonField<List<Individual>>,
private val name: JsonField<String>,
private val additionalProperties: MutableMap<String, JsonValue>,
) {

@JsonCreator
private constructor(
@JsonProperty("individuals")
@ExcludeMissing
individuals: JsonField<List<Individual>> = JsonMissing.of(),
@JsonProperty("name") @ExcludeMissing name: JsonField<String> = JsonMissing.of(),
) : this(individuals, name, mutableMapOf())
individuals: JsonField<List<Individual>> = JsonMissing.of()
) : this(individuals, mutableMapOf())

/**
* The two individuals that share control of the entity.
Expand All @@ -5824,14 +5822,6 @@ private constructor(
*/
fun individuals(): List<Individual> = individuals.getRequired("individuals")

/**
* The name of the joint entity.
*
* @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if
* the server responded with an unexpected value).
*/
fun name(): Optional<String> = name.getOptional("name")

/**
* Returns the raw JSON value of [individuals].
*
Expand All @@ -5841,13 +5831,6 @@ private constructor(
@ExcludeMissing
fun _individuals(): JsonField<List<Individual>> = individuals

/**
* Returns the raw JSON value of [name].
*
* Unlike [name], this method doesn't throw if the JSON field has an unexpected type.
*/
@JsonProperty("name") @ExcludeMissing fun _name(): JsonField<String> = name

@JsonAnySetter
private fun putAdditionalProperty(key: String, value: JsonValue) {
additionalProperties.put(key, value)
Expand Down Expand Up @@ -5877,13 +5860,11 @@ private constructor(
class Builder internal constructor() {

private var individuals: JsonField<MutableList<Individual>>? = null
private var name: JsonField<String> = JsonMissing.of()
private var additionalProperties: MutableMap<String, JsonValue> = mutableMapOf()

@JvmSynthetic
internal fun from(joint: Joint) = apply {
individuals = joint.individuals.map { it.toMutableList() }
name = joint.name
additionalProperties = joint.additionalProperties.toMutableMap()
}

Expand Down Expand Up @@ -5913,18 +5894,6 @@ private constructor(
}
}

/** The name of the joint entity. */
fun name(name: String) = name(JsonField.of(name))

/**
* Sets [Builder.name] to an arbitrary JSON value.
*
* You should usually call [Builder.name] with a well-typed [String] value instead. This
* method is primarily for setting the field to an undocumented or not yet supported
* value.
*/
fun name(name: JsonField<String>) = apply { this.name = name }

fun additionalProperties(additionalProperties: Map<String, JsonValue>) = apply {
this.additionalProperties.clear()
putAllAdditionalProperties(additionalProperties)
Expand Down Expand Up @@ -5959,7 +5928,6 @@ private constructor(
fun build(): Joint =
Joint(
checkRequired("individuals", individuals).map { it.toImmutable() },
name,
additionalProperties.toMutableMap(),
)
}
Expand All @@ -5972,7 +5940,6 @@ private constructor(
}

individuals().forEach { it.validate() }
name()
validated = true
}

Expand All @@ -5992,8 +5959,7 @@ private constructor(
*/
@JvmSynthetic
internal fun validity(): Int =
(individuals.asKnown().getOrNull()?.sumOf { it.validity().toInt() } ?: 0) +
(if (name.asKnown().isPresent) 1 else 0)
(individuals.asKnown().getOrNull()?.sumOf { it.validity().toInt() } ?: 0)

class Individual
private constructor(
Expand Down Expand Up @@ -8123,17 +8089,17 @@ private constructor(
return true
}

return /* spotless:off */ other is Joint && individuals == other.individuals && name == other.name && additionalProperties == other.additionalProperties /* spotless:on */
return /* spotless:off */ other is Joint && individuals == other.individuals && additionalProperties == other.additionalProperties /* spotless:on */
}

/* spotless:off */
private val hashCode: Int by lazy { Objects.hash(individuals, name, additionalProperties) }
private val hashCode: Int by lazy { Objects.hash(individuals, additionalProperties) }
/* spotless:on */

override fun hashCode(): Int = hashCode

override fun toString() =
"Joint{individuals=$individuals, name=$name, additionalProperties=$additionalProperties}"
"Joint{individuals=$individuals, additionalProperties=$additionalProperties}"
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,6 @@ internal class EntityCreateParamsTest {
.confirmedNoUsTaxId(true)
.build()
)
.name("x")
.build()
)
.naturalPerson(
Expand Down Expand Up @@ -586,7 +585,6 @@ internal class EntityCreateParamsTest {
.confirmedNoUsTaxId(true)
.build()
)
.name("x")
.build()
)
.naturalPerson(
Expand Down Expand Up @@ -979,7 +977,6 @@ internal class EntityCreateParamsTest {
.confirmedNoUsTaxId(true)
.build()
)
.name("x")
.build()
)
assertThat(body.naturalPerson())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,6 @@ internal class EntityServiceAsyncTest {
.confirmedNoUsTaxId(true)
.build()
)
.name("x")
.build()
)
.naturalPerson(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,6 @@ internal class EntityServiceTest {
.confirmedNoUsTaxId(true)
.build()
)
.name("x")
.build()
)
.naturalPerson(
Expand Down
Loading