From 45e819138e7f537cfe86d93b7ad92cc90d77971e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 19 Nov 2025 01:43:24 +0000 Subject: [PATCH 1/3] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 973bfab07..bc38a1bc0 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 229 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-fadbd087449a336a91be2645c64e2fe1e81e0f52d9810ab5f830af7e1c727138.yml -openapi_spec_hash: 7e44d91e713fb44925a3565b882248d7 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-fa7f1c130db072a3fd9444e369ddd66b343a2eea05410569cd703e59cf510ecc.yml +openapi_spec_hash: ae67858752ea4652bc009a4b617c5dcd config_hash: ca1425272e17fa23d4466d33492334fa From ee2c28ae3099da499f8bf37b5f30ff9ceafcadfe Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 20 Nov 2025 23:17:57 +0000 Subject: [PATCH 2/3] feat(api): api update --- .stats.yml | 4 +- .../CheckTransferCreateParams.kt | 47 +++++++++++++++++-- .../CheckTransferCreateParamsTest.kt | 3 ++ .../async/CheckTransferServiceAsyncTest.kt | 1 + .../blocking/CheckTransferServiceTest.kt | 1 + 5 files changed, 50 insertions(+), 6 deletions(-) diff --git a/.stats.yml b/.stats.yml index bc38a1bc0..d979adc25 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 229 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-fa7f1c130db072a3fd9444e369ddd66b343a2eea05410569cd703e59cf510ecc.yml -openapi_spec_hash: ae67858752ea4652bc009a4b617c5dcd +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-3ef3456ba39c18b7b1228fd167c74b4d344057e133ef4abd3e130471b9e19ed3.yml +openapi_spec_hash: a55adf2eae6cbe811937dd7b0691939e config_hash: ca1425272e17fa23d4466d33492334fa diff --git a/increase-java-core/src/main/kotlin/com/increase/api/models/checktransfers/CheckTransferCreateParams.kt b/increase-java-core/src/main/kotlin/com/increase/api/models/checktransfers/CheckTransferCreateParams.kt index d02bf89f2..00347e971 100644 --- a/increase-java-core/src/main/kotlin/com/increase/api/models/checktransfers/CheckTransferCreateParams.kt +++ b/increase-java-core/src/main/kotlin/com/increase/api/models/checktransfers/CheckTransferCreateParams.kt @@ -2000,6 +2000,7 @@ private constructor( private val postalCode: JsonField, private val state: JsonField, private val line2: JsonField, + private val name: JsonField, private val additionalProperties: MutableMap, ) { @@ -2012,7 +2013,8 @@ private constructor( postalCode: JsonField = JsonMissing.of(), @JsonProperty("state") @ExcludeMissing state: JsonField = JsonMissing.of(), @JsonProperty("line2") @ExcludeMissing line2: JsonField = JsonMissing.of(), - ) : this(city, line1, postalCode, state, line2, mutableMapOf()) + @JsonProperty("name") @ExcludeMissing name: JsonField = JsonMissing.of(), + ) : this(city, line1, postalCode, state, line2, name, mutableMapOf()) /** * The city component of the check's destination address. @@ -2058,6 +2060,15 @@ private constructor( */ fun line2(): Optional = line2.getOptional("line2") + /** + * The name component of the check's destination address. Defaults to the provided + * `recipient_name` parameter if `name` is not provided. + * + * @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 [city]. * @@ -2096,6 +2107,13 @@ private constructor( */ @JsonProperty("line2") @ExcludeMissing fun _line2(): JsonField = line2 + /** + * 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) @@ -2132,6 +2150,7 @@ private constructor( private var postalCode: JsonField? = null private var state: JsonField? = null private var line2: JsonField = JsonMissing.of() + private var name: JsonField = JsonMissing.of() private var additionalProperties: MutableMap = mutableMapOf() @JvmSynthetic @@ -2141,6 +2160,7 @@ private constructor( postalCode = mailingAddress.postalCode state = mailingAddress.state line2 = mailingAddress.line2 + name = mailingAddress.name additionalProperties = mailingAddress.additionalProperties.toMutableMap() } @@ -2206,6 +2226,21 @@ private constructor( */ fun line2(line2: JsonField) = apply { this.line2 = line2 } + /** + * The name component of the check's destination address. Defaults to the provided + * `recipient_name` parameter if `name` is not provided. + */ + 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) @@ -2250,6 +2285,7 @@ private constructor( checkRequired("postalCode", postalCode), checkRequired("state", state), line2, + name, additionalProperties.toMutableMap(), ) } @@ -2266,6 +2302,7 @@ private constructor( postalCode() state() line2() + name() validated = true } @@ -2289,7 +2326,8 @@ private constructor( (if (line1.asKnown().isPresent) 1 else 0) + (if (postalCode.asKnown().isPresent) 1 else 0) + (if (state.asKnown().isPresent) 1 else 0) + - (if (line2.asKnown().isPresent) 1 else 0) + (if (line2.asKnown().isPresent) 1 else 0) + + (if (name.asKnown().isPresent) 1 else 0) override fun equals(other: Any?): Boolean { if (this === other) { @@ -2302,17 +2340,18 @@ private constructor( postalCode == other.postalCode && state == other.state && line2 == other.line2 && + name == other.name && additionalProperties == other.additionalProperties } private val hashCode: Int by lazy { - Objects.hash(city, line1, postalCode, state, line2, additionalProperties) + Objects.hash(city, line1, postalCode, state, line2, name, additionalProperties) } override fun hashCode(): Int = hashCode override fun toString() = - "MailingAddress{city=$city, line1=$line1, postalCode=$postalCode, state=$state, line2=$line2, additionalProperties=$additionalProperties}" + "MailingAddress{city=$city, line1=$line1, postalCode=$postalCode, state=$state, line2=$line2, name=$name, additionalProperties=$additionalProperties}" } class Payer diff --git a/increase-java-core/src/test/kotlin/com/increase/api/models/checktransfers/CheckTransferCreateParamsTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/models/checktransfers/CheckTransferCreateParamsTest.kt index 64d9df0b8..973bf8b88 100644 --- a/increase-java-core/src/test/kotlin/com/increase/api/models/checktransfers/CheckTransferCreateParamsTest.kt +++ b/increase-java-core/src/test/kotlin/com/increase/api/models/checktransfers/CheckTransferCreateParamsTest.kt @@ -26,6 +26,7 @@ internal class CheckTransferCreateParamsTest { .postalCode("10045") .state("NY") .line2("x") + .name("Ian Crease") .build() ) .memo("Check payment") @@ -78,6 +79,7 @@ internal class CheckTransferCreateParamsTest { .postalCode("10045") .state("NY") .line2("x") + .name("Ian Crease") .build() ) .memo("Check payment") @@ -131,6 +133,7 @@ internal class CheckTransferCreateParamsTest { .postalCode("10045") .state("NY") .line2("x") + .name("Ian Crease") .build() ) .memo("Check payment") diff --git a/increase-java-core/src/test/kotlin/com/increase/api/services/async/CheckTransferServiceAsyncTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/services/async/CheckTransferServiceAsyncTest.kt index f6f749378..d0bcc8b52 100644 --- a/increase-java-core/src/test/kotlin/com/increase/api/services/async/CheckTransferServiceAsyncTest.kt +++ b/increase-java-core/src/test/kotlin/com/increase/api/services/async/CheckTransferServiceAsyncTest.kt @@ -40,6 +40,7 @@ internal class CheckTransferServiceAsyncTest { .postalCode("10045") .state("NY") .line2("x") + .name("Ian Crease") .build() ) .memo("Check payment") diff --git a/increase-java-core/src/test/kotlin/com/increase/api/services/blocking/CheckTransferServiceTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/services/blocking/CheckTransferServiceTest.kt index 593c0a57a..fdc514e0d 100644 --- a/increase-java-core/src/test/kotlin/com/increase/api/services/blocking/CheckTransferServiceTest.kt +++ b/increase-java-core/src/test/kotlin/com/increase/api/services/blocking/CheckTransferServiceTest.kt @@ -40,6 +40,7 @@ internal class CheckTransferServiceTest { .postalCode("10045") .state("NY") .line2("x") + .name("Ian Crease") .build() ) .memo("Check payment") From fb6cefe932572ea86859187bfd71c15547e7b700 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 20 Nov 2025 23:18:21 +0000 Subject: [PATCH 3/3] release: 0.365.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ README.md | 10 +++++----- build.gradle.kts | 2 +- 4 files changed, 15 insertions(+), 7 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 1f7dbf48e..33b7181e0 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.364.0" + ".": "0.365.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 33862e465..e32bc3104 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.365.0 (2025-11-20) + +Full Changelog: [v0.364.0...v0.365.0](https://github.com/Increase/increase-java/compare/v0.364.0...v0.365.0) + +### Features + +* **api:** api update ([ee2c28a](https://github.com/Increase/increase-java/commit/ee2c28ae3099da499f8bf37b5f30ff9ceafcadfe)) + ## 0.364.0 (2025-11-18) Full Changelog: [v0.363.0...v0.364.0](https://github.com/Increase/increase-java/compare/v0.363.0...v0.364.0) diff --git a/README.md b/README.md index 33a8c8757..9fc9ac156 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.364.0) -[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.364.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.364.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.365.0) +[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.365.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.365.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.364.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.365.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.364.0") +implementation("com.increase.api:increase-java:0.365.0") ``` ### Maven @@ -33,7 +33,7 @@ implementation("com.increase.api:increase-java:0.364.0") com.increase.api increase-java - 0.364.0 + 0.365.0 ``` diff --git a/build.gradle.kts b/build.gradle.kts index 79c56d6c8..a4285d238 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -8,7 +8,7 @@ repositories { allprojects { group = "com.increase.api" - version = "0.364.0" // x-release-please-version + version = "0.365.0" // x-release-please-version } subprojects {