From b2a10987351436c1a4dbc0de865f732d7d4cb5c1 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 21 Nov 2025 06:12:58 +0000 Subject: [PATCH 1/3] feat(api): api update --- .stats.yml | 4 +- .../models/checktransfers/CheckTransfer.kt | 59 ++++++++++++++++++- .../CheckTransferCreateParams.kt | 58 ++++++++++++++++-- .../CheckTransferCreateParamsTest.kt | 3 + .../CheckTransferListPageResponseTest.kt | 3 + .../checktransfers/CheckTransferTest.kt | 3 + .../async/CheckTransferServiceAsyncTest.kt | 1 + .../blocking/CheckTransferServiceTest.kt | 1 + 8 files changed, 123 insertions(+), 9 deletions(-) diff --git a/.stats.yml b/.stats.yml index d979adc25..75b8da62e 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-3ef3456ba39c18b7b1228fd167c74b4d344057e133ef4abd3e130471b9e19ed3.yml -openapi_spec_hash: a55adf2eae6cbe811937dd7b0691939e +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-cea252dc0453b92916edc9d8fc79e120d049068b86fb4a554e91709483a5f97f.yml +openapi_spec_hash: 7d34811e865a82a1ce2117d75a04d3ac config_hash: ca1425272e17fa23d4466d33492334fa diff --git a/increase-java-core/src/main/kotlin/com/increase/api/models/checktransfers/CheckTransfer.kt b/increase-java-core/src/main/kotlin/com/increase/api/models/checktransfers/CheckTransfer.kt index c4c8f433d..e9f589f53 100644 --- a/increase-java-core/src/main/kotlin/com/increase/api/models/checktransfers/CheckTransfer.kt +++ b/increase-java-core/src/main/kotlin/com/increase/api/models/checktransfers/CheckTransfer.kt @@ -3982,6 +3982,7 @@ private constructor( private val line1: JsonField, private val line2: JsonField, private val name: JsonField, + private val phone: JsonField, private val postalCode: JsonField, private val state: JsonField, private val additionalProperties: MutableMap, @@ -3993,11 +3994,12 @@ private constructor( @JsonProperty("line1") @ExcludeMissing line1: JsonField = JsonMissing.of(), @JsonProperty("line2") @ExcludeMissing line2: JsonField = JsonMissing.of(), @JsonProperty("name") @ExcludeMissing name: JsonField = JsonMissing.of(), + @JsonProperty("phone") @ExcludeMissing phone: JsonField = JsonMissing.of(), @JsonProperty("postal_code") @ExcludeMissing postalCode: JsonField = JsonMissing.of(), @JsonProperty("state") @ExcludeMissing state: JsonField = JsonMissing.of(), - ) : this(city, line1, line2, name, postalCode, state, mutableMapOf()) + ) : this(city, line1, line2, name, phone, postalCode, state, mutableMapOf()) /** * The city of the check's destination. @@ -4031,6 +4033,15 @@ private constructor( */ fun name(): Optional = name.getOptional("name") + /** + * The phone number to be used in case of delivery issues at the check's mailing + * address. Only used for FedEx overnight shipping. + * + * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. + * if the server responded with an unexpected value). + */ + fun phone(): Optional = phone.getOptional("phone") + /** * The postal code of the check's destination. * @@ -4075,6 +4086,13 @@ private constructor( */ @JsonProperty("name") @ExcludeMissing fun _name(): JsonField = name + /** + * Returns the raw JSON value of [phone]. + * + * Unlike [phone], this method doesn't throw if the JSON field has an unexpected type. + */ + @JsonProperty("phone") @ExcludeMissing fun _phone(): JsonField = phone + /** * Returns the raw JSON value of [postalCode]. * @@ -4115,6 +4133,7 @@ private constructor( * .line1() * .line2() * .name() + * .phone() * .postalCode() * .state() * ``` @@ -4129,6 +4148,7 @@ private constructor( private var line1: JsonField? = null private var line2: JsonField? = null private var name: JsonField? = null + private var phone: JsonField? = null private var postalCode: JsonField? = null private var state: JsonField? = null private var additionalProperties: MutableMap = mutableMapOf() @@ -4139,6 +4159,7 @@ private constructor( line1 = mailingAddress.line1 line2 = mailingAddress.line2 name = mailingAddress.name + phone = mailingAddress.phone postalCode = mailingAddress.postalCode state = mailingAddress.state additionalProperties = mailingAddress.additionalProperties.toMutableMap() @@ -4204,6 +4225,24 @@ private constructor( */ fun name(name: JsonField) = apply { this.name = name } + /** + * The phone number to be used in case of delivery issues at the check's mailing + * address. Only used for FedEx overnight shipping. + */ + fun phone(phone: String?) = phone(JsonField.ofNullable(phone)) + + /** Alias for calling [Builder.phone] with `phone.orElse(null)`. */ + fun phone(phone: Optional) = phone(phone.getOrNull()) + + /** + * Sets [Builder.phone] to an arbitrary JSON value. + * + * You should usually call [Builder.phone] with a well-typed [String] value instead. + * This method is primarily for setting the field to an undocumented or not yet + * supported value. + */ + fun phone(phone: JsonField) = apply { this.phone = phone } + /** The postal code of the check's destination. */ fun postalCode(postalCode: String?) = postalCode(JsonField.ofNullable(postalCode)) @@ -4269,6 +4308,7 @@ private constructor( * .line1() * .line2() * .name() + * .phone() * .postalCode() * .state() * ``` @@ -4281,6 +4321,7 @@ private constructor( checkRequired("line1", line1), checkRequired("line2", line2), checkRequired("name", name), + checkRequired("phone", phone), checkRequired("postalCode", postalCode), checkRequired("state", state), additionalProperties.toMutableMap(), @@ -4298,6 +4339,7 @@ private constructor( line1() line2() name() + phone() postalCode() state() validated = true @@ -4323,6 +4365,7 @@ private constructor( (if (line1.asKnown().isPresent) 1 else 0) + (if (line2.asKnown().isPresent) 1 else 0) + (if (name.asKnown().isPresent) 1 else 0) + + (if (phone.asKnown().isPresent) 1 else 0) + (if (postalCode.asKnown().isPresent) 1 else 0) + (if (state.asKnown().isPresent) 1 else 0) @@ -4336,19 +4379,29 @@ private constructor( line1 == other.line1 && line2 == other.line2 && name == other.name && + phone == other.phone && postalCode == other.postalCode && state == other.state && additionalProperties == other.additionalProperties } private val hashCode: Int by lazy { - Objects.hash(city, line1, line2, name, postalCode, state, additionalProperties) + Objects.hash( + city, + line1, + line2, + name, + phone, + postalCode, + state, + additionalProperties, + ) } override fun hashCode(): Int = hashCode override fun toString() = - "MailingAddress{city=$city, line1=$line1, line2=$line2, name=$name, postalCode=$postalCode, state=$state, additionalProperties=$additionalProperties}" + "MailingAddress{city=$city, line1=$line1, line2=$line2, name=$name, phone=$phone, postalCode=$postalCode, state=$state, additionalProperties=$additionalProperties}" } class Payer 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 00347e971..8deb537c1 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 @@ -2001,6 +2001,7 @@ private constructor( private val state: JsonField, private val line2: JsonField, private val name: JsonField, + private val phone: JsonField, private val additionalProperties: MutableMap, ) { @@ -2014,7 +2015,8 @@ private constructor( @JsonProperty("state") @ExcludeMissing state: JsonField = JsonMissing.of(), @JsonProperty("line2") @ExcludeMissing line2: JsonField = JsonMissing.of(), @JsonProperty("name") @ExcludeMissing name: JsonField = JsonMissing.of(), - ) : this(city, line1, postalCode, state, line2, name, mutableMapOf()) + @JsonProperty("phone") @ExcludeMissing phone: JsonField = JsonMissing.of(), + ) : this(city, line1, postalCode, state, line2, name, phone, mutableMapOf()) /** * The city component of the check's destination address. @@ -2069,6 +2071,16 @@ private constructor( */ fun name(): Optional = name.getOptional("name") + /** + * The phone number to associate with the check's destination address. Will be supplied + * to FedEx as the contact phone number for the recipient to be used in case of delivery + * issues. + * + * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. + * if the server responded with an unexpected value). + */ + fun phone(): Optional = phone.getOptional("phone") + /** * Returns the raw JSON value of [city]. * @@ -2114,6 +2126,13 @@ private constructor( */ @JsonProperty("name") @ExcludeMissing fun _name(): JsonField = name + /** + * Returns the raw JSON value of [phone]. + * + * Unlike [phone], this method doesn't throw if the JSON field has an unexpected type. + */ + @JsonProperty("phone") @ExcludeMissing fun _phone(): JsonField = phone + @JsonAnySetter private fun putAdditionalProperty(key: String, value: JsonValue) { additionalProperties.put(key, value) @@ -2151,6 +2170,7 @@ private constructor( private var state: JsonField? = null private var line2: JsonField = JsonMissing.of() private var name: JsonField = JsonMissing.of() + private var phone: JsonField = JsonMissing.of() private var additionalProperties: MutableMap = mutableMapOf() @JvmSynthetic @@ -2161,6 +2181,7 @@ private constructor( state = mailingAddress.state line2 = mailingAddress.line2 name = mailingAddress.name + phone = mailingAddress.phone additionalProperties = mailingAddress.additionalProperties.toMutableMap() } @@ -2241,6 +2262,22 @@ private constructor( */ fun name(name: JsonField) = apply { this.name = name } + /** + * The phone number to associate with the check's destination address. Will be + * supplied to FedEx as the contact phone number for the recipient to be used in + * case of delivery issues. + */ + fun phone(phone: String) = phone(JsonField.of(phone)) + + /** + * Sets [Builder.phone] to an arbitrary JSON value. + * + * You should usually call [Builder.phone] with a well-typed [String] value instead. + * This method is primarily for setting the field to an undocumented or not yet + * supported value. + */ + fun phone(phone: JsonField) = apply { this.phone = phone } + fun additionalProperties(additionalProperties: Map) = apply { this.additionalProperties.clear() putAllAdditionalProperties(additionalProperties) @@ -2286,6 +2323,7 @@ private constructor( checkRequired("state", state), line2, name, + phone, additionalProperties.toMutableMap(), ) } @@ -2303,6 +2341,7 @@ private constructor( state() line2() name() + phone() validated = true } @@ -2327,7 +2366,8 @@ private constructor( (if (postalCode.asKnown().isPresent) 1 else 0) + (if (state.asKnown().isPresent) 1 else 0) + (if (line2.asKnown().isPresent) 1 else 0) + - (if (name.asKnown().isPresent) 1 else 0) + (if (name.asKnown().isPresent) 1 else 0) + + (if (phone.asKnown().isPresent) 1 else 0) override fun equals(other: Any?): Boolean { if (this === other) { @@ -2341,17 +2381,27 @@ private constructor( state == other.state && line2 == other.line2 && name == other.name && + phone == other.phone && additionalProperties == other.additionalProperties } private val hashCode: Int by lazy { - Objects.hash(city, line1, postalCode, state, line2, name, additionalProperties) + Objects.hash( + city, + line1, + postalCode, + state, + line2, + name, + phone, + additionalProperties, + ) } override fun hashCode(): Int = hashCode override fun toString() = - "MailingAddress{city=$city, line1=$line1, postalCode=$postalCode, state=$state, line2=$line2, name=$name, additionalProperties=$additionalProperties}" + "MailingAddress{city=$city, line1=$line1, postalCode=$postalCode, state=$state, line2=$line2, name=$name, phone=$phone, 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 973bf8b88..b53bd17d0 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 @@ -27,6 +27,7 @@ internal class CheckTransferCreateParamsTest { .state("NY") .line2("x") .name("Ian Crease") + .phone("+16505046304") .build() ) .memo("Check payment") @@ -80,6 +81,7 @@ internal class CheckTransferCreateParamsTest { .state("NY") .line2("x") .name("Ian Crease") + .phone("+16505046304") .build() ) .memo("Check payment") @@ -134,6 +136,7 @@ internal class CheckTransferCreateParamsTest { .state("NY") .line2("x") .name("Ian Crease") + .phone("+16505046304") .build() ) .memo("Check payment") diff --git a/increase-java-core/src/test/kotlin/com/increase/api/models/checktransfers/CheckTransferListPageResponseTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/models/checktransfers/CheckTransferListPageResponseTest.kt index 42adbcee0..2e674737d 100644 --- a/increase-java-core/src/test/kotlin/com/increase/api/models/checktransfers/CheckTransferListPageResponseTest.kt +++ b/increase-java-core/src/test/kotlin/com/increase/api/models/checktransfers/CheckTransferListPageResponseTest.kt @@ -76,6 +76,7 @@ internal class CheckTransferListPageResponseTest { .line1("33 Liberty Street") .line2(null) .name("Ian Crease") + .phone(null) .postalCode("10045") .state("NY") .build() @@ -229,6 +230,7 @@ internal class CheckTransferListPageResponseTest { .line1("33 Liberty Street") .line2(null) .name("Ian Crease") + .phone(null) .postalCode("10045") .state("NY") .build() @@ -382,6 +384,7 @@ internal class CheckTransferListPageResponseTest { .line1("33 Liberty Street") .line2(null) .name("Ian Crease") + .phone(null) .postalCode("10045") .state("NY") .build() diff --git a/increase-java-core/src/test/kotlin/com/increase/api/models/checktransfers/CheckTransferTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/models/checktransfers/CheckTransferTest.kt index c4eb8806d..7785c57e8 100644 --- a/increase-java-core/src/test/kotlin/com/increase/api/models/checktransfers/CheckTransferTest.kt +++ b/increase-java-core/src/test/kotlin/com/increase/api/models/checktransfers/CheckTransferTest.kt @@ -70,6 +70,7 @@ internal class CheckTransferTest { .line1("33 Liberty Street") .line2(null) .name("Ian Crease") + .phone(null) .postalCode("10045") .state("NY") .build() @@ -213,6 +214,7 @@ internal class CheckTransferTest { .line1("33 Liberty Street") .line2(null) .name("Ian Crease") + .phone(null) .postalCode("10045") .state("NY") .build() @@ -355,6 +357,7 @@ internal class CheckTransferTest { .line1("33 Liberty Street") .line2(null) .name("Ian Crease") + .phone(null) .postalCode("10045") .state("NY") .build() 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 d0bcc8b52..9da7b5586 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 @@ -41,6 +41,7 @@ internal class CheckTransferServiceAsyncTest { .state("NY") .line2("x") .name("Ian Crease") + .phone("+16505046304") .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 fdc514e0d..60778eaa0 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 @@ -41,6 +41,7 @@ internal class CheckTransferServiceTest { .state("NY") .line2("x") .name("Ian Crease") + .phone("+16505046304") .build() ) .memo("Check payment") From 2eed66b6c2c660c10afa8765d636ebbb3ebe5c4c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 21 Nov 2025 07:21:46 +0000 Subject: [PATCH 2/3] feat(api): api update --- .stats.yml | 4 ++-- .../checktransfers/CheckTransferCreateParams.kt | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.stats.yml b/.stats.yml index 75b8da62e..ea9c085bf 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-cea252dc0453b92916edc9d8fc79e120d049068b86fb4a554e91709483a5f97f.yml -openapi_spec_hash: 7d34811e865a82a1ce2117d75a04d3ac +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-cfdb6b2516039e7537ec6edb67df5581e3f08396a9f92579dd42c565015583e6.yml +openapi_spec_hash: c41230e467198f4240e80c77ef8c5c7c 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 8deb537c1..e03287cde 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 @@ -2072,9 +2072,9 @@ private constructor( fun name(): Optional = name.getOptional("name") /** - * The phone number to associate with the check's destination address. Will be supplied - * to FedEx as the contact phone number for the recipient to be used in case of delivery - * issues. + * The phone number to associate with the check's destination address. Only used if + * shipping method is `fedex_overnight`. Will be supplied to FedEx as the contact phone + * number for the recipient to be used in case of delivery issues. * * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. * if the server responded with an unexpected value). @@ -2263,9 +2263,9 @@ private constructor( fun name(name: JsonField) = apply { this.name = name } /** - * The phone number to associate with the check's destination address. Will be - * supplied to FedEx as the contact phone number for the recipient to be used in - * case of delivery issues. + * The phone number to associate with the check's destination address. Only used if + * shipping method is `fedex_overnight`. Will be supplied to FedEx as the contact + * phone number for the recipient to be used in case of delivery issues. */ fun phone(phone: String) = phone(JsonField.of(phone)) From f6f2eff7eced90f8f381874b8171d9b136e62ebf Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 23 Nov 2025 12:30:15 +0000 Subject: [PATCH 3/3] release: 0.366.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 9 +++++++++ README.md | 10 +++++----- build.gradle.kts | 2 +- 4 files changed, 16 insertions(+), 7 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 33b7181e0..1edf3a94d 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.365.0" + ".": "0.366.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index e32bc3104..a06d9d31c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## 0.366.0 (2025-11-23) + +Full Changelog: [v0.365.0...v0.366.0](https://github.com/Increase/increase-java/compare/v0.365.0...v0.366.0) + +### Features + +* **api:** api update ([2eed66b](https://github.com/Increase/increase-java/commit/2eed66b6c2c660c10afa8765d636ebbb3ebe5c4c)) +* **api:** api update ([b2a1098](https://github.com/Increase/increase-java/commit/b2a10987351436c1a4dbc0de865f732d7d4cb5c1)) + ## 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) diff --git a/README.md b/README.md index 9fc9ac156..de77cfd94 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.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) +[![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.366.0) +[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.366.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.366.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.365.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.366.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.365.0") +implementation("com.increase.api:increase-java:0.366.0") ``` ### Maven @@ -33,7 +33,7 @@ implementation("com.increase.api:increase-java:0.365.0") com.increase.api increase-java - 0.365.0 + 0.366.0 ``` diff --git a/build.gradle.kts b/build.gradle.kts index a4285d238..701bdaefd 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -8,7 +8,7 @@ repositories { allprojects { group = "com.increase.api" - version = "0.365.0" // x-release-please-version + version = "0.366.0" // x-release-please-version } subprojects {