diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 8e585de79..85c79bb04 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.407.0" + ".": "0.408.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 87e086700..91752aeff 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 232 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-a822d0695f48967e594a88eef888b826cd51b62959bd4b3d0163b7d010bab969.yml -openapi_spec_hash: 95ea277ed84c04aefd25bcb63ae4e2e5 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-3309070d0c282e00842afa3021c80774f8e1f3a4517959927adfd9ffaa81c94c.yml +openapi_spec_hash: 57927271c019ee8ddd428afa8a57baaf config_hash: 27e44ed36b9c5617b580ead7231a594a diff --git a/CHANGELOG.md b/CHANGELOG.md index d2fd18c94..e4fa52c41 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.408.0 (2026-01-30) + +Full Changelog: [v0.407.0...v0.408.0](https://github.com/Increase/increase-java/compare/v0.407.0...v0.408.0) + +### Features + +* **api:** api update ([5073136](https://github.com/Increase/increase-java/commit/507313624c157fb805d3521a84bc872ab745bad6)) + ## 0.407.0 (2026-01-28) Full Changelog: [v0.406.0...v0.407.0](https://github.com/Increase/increase-java/compare/v0.406.0...v0.407.0) diff --git a/README.md b/README.md index 2375057bd..c8e357112 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.407.0) -[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.407.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.407.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.408.0) +[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.408.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.408.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.407.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.408.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.407.0") +implementation("com.increase.api:increase-java:0.408.0") ``` ### Maven @@ -33,7 +33,7 @@ implementation("com.increase.api:increase-java:0.407.0") com.increase.api increase-java - 0.407.0 + 0.408.0 ``` diff --git a/build.gradle.kts b/build.gradle.kts index 289e422cc..9d3812209 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -8,7 +8,7 @@ repositories { allprojects { group = "com.increase.api" - version = "0.407.0" // x-release-please-version + version = "0.408.0" // x-release-please-version } subprojects { diff --git a/increase-java-core/src/main/kotlin/com/increase/api/models/accounts/AccountUpdateParams.kt b/increase-java-core/src/main/kotlin/com/increase/api/models/accounts/AccountUpdateParams.kt index 185de4189..08071586c 100644 --- a/increase-java-core/src/main/kotlin/com/increase/api/models/accounts/AccountUpdateParams.kt +++ b/increase-java-core/src/main/kotlin/com/increase/api/models/accounts/AccountUpdateParams.kt @@ -31,14 +31,6 @@ private constructor( /** The identifier of the Account to update. */ fun accountId(): Optional = Optional.ofNullable(accountId) - /** - * The new credit limit of the Account, if and only if the Account is a loan account. - * - * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if the - * server responded with an unexpected value). - */ - fun creditLimit(): Optional = body.creditLimit() - /** * The new name of the Account. * @@ -47,13 +39,6 @@ private constructor( */ fun name(): Optional = body.name() - /** - * Returns the raw JSON value of [creditLimit]. - * - * Unlike [creditLimit], this method doesn't throw if the JSON field has an unexpected type. - */ - fun _creditLimit(): JsonField = body._creditLimit() - /** * Returns the raw JSON value of [name]. * @@ -106,23 +91,10 @@ private constructor( * * This is generally only useful if you are already constructing the body separately. * Otherwise, it's more convenient to use the top-level setters instead: - * - [creditLimit] * - [name] */ fun body(body: Body) = apply { this.body = body.toBuilder() } - /** The new credit limit of the Account, if and only if the Account is a loan account. */ - fun creditLimit(creditLimit: Long) = apply { body.creditLimit(creditLimit) } - - /** - * Sets [Builder.creditLimit] to an arbitrary JSON value. - * - * You should usually call [Builder.creditLimit] with a well-typed [Long] value instead. - * This method is primarily for setting the field to an undocumented or not yet supported - * value. - */ - fun creditLimit(creditLimit: JsonField) = apply { body.creditLimit(creditLimit) } - /** The new name of the Account. */ fun name(name: String) = apply { body.name(name) } @@ -280,26 +252,14 @@ private constructor( class Body @JsonCreator(mode = JsonCreator.Mode.DISABLED) private constructor( - private val creditLimit: JsonField, private val name: JsonField, private val additionalProperties: MutableMap, ) { @JsonCreator private constructor( - @JsonProperty("credit_limit") - @ExcludeMissing - creditLimit: JsonField = JsonMissing.of(), - @JsonProperty("name") @ExcludeMissing name: JsonField = JsonMissing.of(), - ) : this(creditLimit, name, mutableMapOf()) - - /** - * The new credit limit of the Account, if and only if the Account is a loan account. - * - * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if - * the server responded with an unexpected value). - */ - fun creditLimit(): Optional = creditLimit.getOptional("credit_limit") + @JsonProperty("name") @ExcludeMissing name: JsonField = JsonMissing.of() + ) : this(name, mutableMapOf()) /** * The new name of the Account. @@ -309,15 +269,6 @@ private constructor( */ fun name(): Optional = name.getOptional("name") - /** - * Returns the raw JSON value of [creditLimit]. - * - * Unlike [creditLimit], this method doesn't throw if the JSON field has an unexpected type. - */ - @JsonProperty("credit_limit") - @ExcludeMissing - fun _creditLimit(): JsonField = creditLimit - /** * Returns the raw JSON value of [name]. * @@ -346,31 +297,15 @@ private constructor( /** A builder for [Body]. */ class Builder internal constructor() { - private var creditLimit: JsonField = JsonMissing.of() private var name: JsonField = JsonMissing.of() private var additionalProperties: MutableMap = mutableMapOf() @JvmSynthetic internal fun from(body: Body) = apply { - creditLimit = body.creditLimit name = body.name additionalProperties = body.additionalProperties.toMutableMap() } - /** - * The new credit limit of the Account, if and only if the Account is a loan account. - */ - fun creditLimit(creditLimit: Long) = creditLimit(JsonField.of(creditLimit)) - - /** - * Sets [Builder.creditLimit] to an arbitrary JSON value. - * - * You should usually call [Builder.creditLimit] with a well-typed [Long] value instead. - * This method is primarily for setting the field to an undocumented or not yet - * supported value. - */ - fun creditLimit(creditLimit: JsonField) = apply { this.creditLimit = creditLimit } - /** The new name of the Account. */ fun name(name: String) = name(JsonField.of(name)) @@ -407,7 +342,7 @@ private constructor( * * Further updates to this [Builder] will not mutate the returned instance. */ - fun build(): Body = Body(creditLimit, name, additionalProperties.toMutableMap()) + fun build(): Body = Body(name, additionalProperties.toMutableMap()) } private var validated: Boolean = false @@ -417,7 +352,6 @@ private constructor( return@apply } - creditLimit() name() validated = true } @@ -436,10 +370,7 @@ private constructor( * * Used for best match union deserialization. */ - @JvmSynthetic - internal fun validity(): Int = - (if (creditLimit.asKnown().isPresent) 1 else 0) + - (if (name.asKnown().isPresent) 1 else 0) + @JvmSynthetic internal fun validity(): Int = (if (name.asKnown().isPresent) 1 else 0) override fun equals(other: Any?): Boolean { if (this === other) { @@ -447,17 +378,15 @@ private constructor( } return other is Body && - creditLimit == other.creditLimit && name == other.name && additionalProperties == other.additionalProperties } - private val hashCode: Int by lazy { Objects.hash(creditLimit, name, additionalProperties) } + private val hashCode: Int by lazy { Objects.hash(name, additionalProperties) } override fun hashCode(): Int = hashCode - override fun toString() = - "Body{creditLimit=$creditLimit, name=$name, additionalProperties=$additionalProperties}" + override fun toString() = "Body{name=$name, additionalProperties=$additionalProperties}" } override fun equals(other: Any?): Boolean { diff --git a/increase-java-core/src/test/kotlin/com/increase/api/models/accounts/AccountUpdateParamsTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/models/accounts/AccountUpdateParamsTest.kt index f5cb65853..bd0e0b3e9 100644 --- a/increase-java-core/src/test/kotlin/com/increase/api/models/accounts/AccountUpdateParamsTest.kt +++ b/increase-java-core/src/test/kotlin/com/increase/api/models/accounts/AccountUpdateParamsTest.kt @@ -11,7 +11,6 @@ internal class AccountUpdateParamsTest { fun create() { AccountUpdateParams.builder() .accountId("account_in71c4amph0vgo2qllky") - .creditLimit(0L) .name("My renamed account") .build() } @@ -30,13 +29,11 @@ internal class AccountUpdateParamsTest { val params = AccountUpdateParams.builder() .accountId("account_in71c4amph0vgo2qllky") - .creditLimit(0L) .name("My renamed account") .build() val body = params._body() - assertThat(body.creditLimit()).contains(0L) assertThat(body.name()).contains("My renamed account") } diff --git a/increase-java-core/src/test/kotlin/com/increase/api/services/async/AccountServiceAsyncTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/services/async/AccountServiceAsyncTest.kt index 0483ee5a1..8363c6030 100644 --- a/increase-java-core/src/test/kotlin/com/increase/api/services/async/AccountServiceAsyncTest.kt +++ b/increase-java-core/src/test/kotlin/com/increase/api/services/async/AccountServiceAsyncTest.kt @@ -65,7 +65,6 @@ internal class AccountServiceAsyncTest { accountServiceAsync.update( AccountUpdateParams.builder() .accountId("account_in71c4amph0vgo2qllky") - .creditLimit(0L) .name("My renamed account") .build() ) diff --git a/increase-java-core/src/test/kotlin/com/increase/api/services/blocking/AccountServiceTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/services/blocking/AccountServiceTest.kt index 299f3c373..c942dafad 100644 --- a/increase-java-core/src/test/kotlin/com/increase/api/services/blocking/AccountServiceTest.kt +++ b/increase-java-core/src/test/kotlin/com/increase/api/services/blocking/AccountServiceTest.kt @@ -63,7 +63,6 @@ internal class AccountServiceTest { accountService.update( AccountUpdateParams.builder() .accountId("account_in71c4amph0vgo2qllky") - .creditLimit(0L) .name("My renamed account") .build() )