diff --git a/.release-please-manifest.json b/.release-please-manifest.json index fd30b1d67..7f4bdc4f6 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.263.0" + ".": "0.264.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index d843fc927..02225f19a 100644 --- a/.stats.yml +++ b/.stats.yml @@ -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 diff --git a/CHANGELOG.md b/CHANGELOG.md index c0533e392..15cedb704 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/README.md b/README.md index 392684ede..b709dc253 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.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) @@ -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.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). @@ -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 @@ -33,7 +33,7 @@ implementation("com.increase.api:increase-java:0.263.0") com.increase.api increase-java - 0.263.0 + 0.264.0 ``` diff --git a/build.gradle.kts b/build.gradle.kts index 779e859b9..9ae1fb338 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -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 { diff --git a/increase-java-core/src/main/kotlin/com/increase/api/models/entities/EntityCreateParams.kt b/increase-java-core/src/main/kotlin/com/increase/api/models/entities/EntityCreateParams.kt index 832b39a72..d35a41094 100644 --- a/increase-java-core/src/main/kotlin/com/increase/api/models/entities/EntityCreateParams.kt +++ b/increase-java-core/src/main/kotlin/com/increase/api/models/entities/EntityCreateParams.kt @@ -5804,7 +5804,6 @@ private constructor( class Joint private constructor( private val individuals: JsonField>, - private val name: JsonField, private val additionalProperties: MutableMap, ) { @@ -5812,9 +5811,8 @@ private constructor( private constructor( @JsonProperty("individuals") @ExcludeMissing - individuals: JsonField> = JsonMissing.of(), - @JsonProperty("name") @ExcludeMissing name: JsonField = JsonMissing.of(), - ) : this(individuals, name, mutableMapOf()) + individuals: JsonField> = JsonMissing.of() + ) : this(individuals, mutableMapOf()) /** * The two individuals that share control of the entity. @@ -5824,14 +5822,6 @@ private constructor( */ fun individuals(): List = 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 = name.getOptional("name") - /** * Returns the raw JSON value of [individuals]. * @@ -5841,13 +5831,6 @@ private constructor( @ExcludeMissing fun _individuals(): JsonField> = 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 = name - @JsonAnySetter private fun putAdditionalProperty(key: String, value: JsonValue) { additionalProperties.put(key, value) @@ -5877,13 +5860,11 @@ private constructor( class Builder internal constructor() { private var individuals: JsonField>? = null - private var name: JsonField = JsonMissing.of() private var additionalProperties: MutableMap = mutableMapOf() @JvmSynthetic internal fun from(joint: Joint) = apply { individuals = joint.individuals.map { it.toMutableList() } - name = joint.name additionalProperties = joint.additionalProperties.toMutableMap() } @@ -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) = apply { this.name = name } - fun additionalProperties(additionalProperties: Map) = apply { this.additionalProperties.clear() putAllAdditionalProperties(additionalProperties) @@ -5959,7 +5928,6 @@ private constructor( fun build(): Joint = Joint( checkRequired("individuals", individuals).map { it.toImmutable() }, - name, additionalProperties.toMutableMap(), ) } @@ -5972,7 +5940,6 @@ private constructor( } individuals().forEach { it.validate() } - name() validated = true } @@ -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( @@ -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}" } /** diff --git a/increase-java-core/src/test/kotlin/com/increase/api/models/entities/EntityCreateParamsTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/models/entities/EntityCreateParamsTest.kt index c6f46029e..aaee860f5 100644 --- a/increase-java-core/src/test/kotlin/com/increase/api/models/entities/EntityCreateParamsTest.kt +++ b/increase-java-core/src/test/kotlin/com/increase/api/models/entities/EntityCreateParamsTest.kt @@ -188,7 +188,6 @@ internal class EntityCreateParamsTest { .confirmedNoUsTaxId(true) .build() ) - .name("x") .build() ) .naturalPerson( @@ -586,7 +585,6 @@ internal class EntityCreateParamsTest { .confirmedNoUsTaxId(true) .build() ) - .name("x") .build() ) .naturalPerson( @@ -979,7 +977,6 @@ internal class EntityCreateParamsTest { .confirmedNoUsTaxId(true) .build() ) - .name("x") .build() ) assertThat(body.naturalPerson()) 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 5cb46826e..797713325 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 @@ -225,7 +225,6 @@ internal class EntityServiceAsyncTest { .confirmedNoUsTaxId(true) .build() ) - .name("x") .build() ) .naturalPerson( 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 b0f1c32d0..f1e527c80 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 @@ -225,7 +225,6 @@ internal class EntityServiceTest { .confirmedNoUsTaxId(true) .build() ) - .name("x") .build() ) .naturalPerson(