diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 2ba9753d1..9a634053c 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.352.0" + ".": "0.353.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index ac4f56fb9..cb2575744 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 228 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-39280e79454a4e6c0e7161b5d92520a3edfc335cce9b198565e57c94daa31b04.yml -openapi_spec_hash: f992030218a4415fcec934bf482cb7ae +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-c2b4fec66de664ded8acd9cbdd69566f17ca1d519136989a15bb67dcf039e793.yml +openapi_spec_hash: 4673ce2f217cc5598a122ad2d9404080 config_hash: eb2035151c7b49c2f12caf55469b8f9a diff --git a/CHANGELOG.md b/CHANGELOG.md index 9af384343..158e18a8a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.353.0 (2025-11-06) + +Full Changelog: [v0.352.0...v0.353.0](https://github.com/Increase/increase-java/compare/v0.352.0...v0.353.0) + +### Features + +* **api:** api update ([ca1a423](https://github.com/Increase/increase-java/commit/ca1a4230681b212d62ae936b5970e7bc1f4afd0f)) + ## 0.352.0 (2025-11-06) Full Changelog: [v0.351.0...v0.352.0](https://github.com/Increase/increase-java/compare/v0.351.0...v0.352.0) diff --git a/README.md b/README.md index fb95fb4af..36c2d0ca6 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.352.0) -[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.352.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.352.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.353.0) +[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.353.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.353.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.352.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.353.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.352.0") +implementation("com.increase.api:increase-java:0.353.0") ``` ### Maven @@ -33,7 +33,7 @@ implementation("com.increase.api:increase-java:0.352.0") com.increase.api increase-java - 0.352.0 + 0.353.0 ``` diff --git a/build.gradle.kts b/build.gradle.kts index 80dae649c..7161d08be 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -8,7 +8,7 @@ repositories { allprojects { group = "com.increase.api" - version = "0.352.0" // x-release-please-version + version = "0.353.0" // x-release-please-version } subprojects { diff --git a/increase-java-core/src/main/kotlin/com/increase/api/models/inboundmailitems/InboundMailItem.kt b/increase-java-core/src/main/kotlin/com/increase/api/models/inboundmailitems/InboundMailItem.kt index 0380231fd..774cda56d 100644 --- a/increase-java-core/src/main/kotlin/com/increase/api/models/inboundmailitems/InboundMailItem.kt +++ b/increase-java-core/src/main/kotlin/com/increase/api/models/inboundmailitems/InboundMailItem.kt @@ -521,6 +521,7 @@ private constructor( private constructor( private val amount: JsonField, private val backFileId: JsonField, + private val checkDepositId: JsonField, private val frontFileId: JsonField, private val additionalProperties: MutableMap, ) { @@ -531,10 +532,13 @@ private constructor( @JsonProperty("back_file_id") @ExcludeMissing backFileId: JsonField = JsonMissing.of(), + @JsonProperty("check_deposit_id") + @ExcludeMissing + checkDepositId: JsonField = JsonMissing.of(), @JsonProperty("front_file_id") @ExcludeMissing frontFileId: JsonField = JsonMissing.of(), - ) : this(amount, backFileId, frontFileId, mutableMapOf()) + ) : this(amount, backFileId, checkDepositId, frontFileId, mutableMapOf()) /** * The amount of the check. @@ -552,6 +556,14 @@ private constructor( */ fun backFileId(): Optional = backFileId.getOptional("back_file_id") + /** + * The identifier of the Check Deposit if this check was deposited. + * + * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if + * the server responded with an unexpected value). + */ + fun checkDepositId(): Optional = checkDepositId.getOptional("check_deposit_id") + /** * The identifier for the File containing the front of the check. * @@ -576,6 +588,16 @@ private constructor( @ExcludeMissing fun _backFileId(): JsonField = backFileId + /** + * Returns the raw JSON value of [checkDepositId]. + * + * Unlike [checkDepositId], this method doesn't throw if the JSON field has an unexpected + * type. + */ + @JsonProperty("check_deposit_id") + @ExcludeMissing + fun _checkDepositId(): JsonField = checkDepositId + /** * Returns the raw JSON value of [frontFileId]. * @@ -606,6 +628,7 @@ private constructor( * ```java * .amount() * .backFileId() + * .checkDepositId() * .frontFileId() * ``` */ @@ -617,6 +640,7 @@ private constructor( private var amount: JsonField? = null private var backFileId: JsonField? = null + private var checkDepositId: JsonField? = null private var frontFileId: JsonField? = null private var additionalProperties: MutableMap = mutableMapOf() @@ -624,6 +648,7 @@ private constructor( internal fun from(check: Check) = apply { amount = check.amount backFileId = check.backFileId + checkDepositId = check.checkDepositId frontFileId = check.frontFileId additionalProperties = check.additionalProperties.toMutableMap() } @@ -655,6 +680,25 @@ private constructor( */ fun backFileId(backFileId: JsonField) = apply { this.backFileId = backFileId } + /** The identifier of the Check Deposit if this check was deposited. */ + fun checkDepositId(checkDepositId: String?) = + checkDepositId(JsonField.ofNullable(checkDepositId)) + + /** Alias for calling [Builder.checkDepositId] with `checkDepositId.orElse(null)`. */ + fun checkDepositId(checkDepositId: Optional) = + checkDepositId(checkDepositId.getOrNull()) + + /** + * Sets [Builder.checkDepositId] to an arbitrary JSON value. + * + * You should usually call [Builder.checkDepositId] with a well-typed [String] value + * instead. This method is primarily for setting the field to an undocumented or not yet + * supported value. + */ + fun checkDepositId(checkDepositId: JsonField) = apply { + this.checkDepositId = checkDepositId + } + /** The identifier for the File containing the front of the check. */ fun frontFileId(frontFileId: String?) = frontFileId(JsonField.ofNullable(frontFileId)) @@ -700,6 +744,7 @@ private constructor( * ```java * .amount() * .backFileId() + * .checkDepositId() * .frontFileId() * ``` * @@ -709,6 +754,7 @@ private constructor( Check( checkRequired("amount", amount), checkRequired("backFileId", backFileId), + checkRequired("checkDepositId", checkDepositId), checkRequired("frontFileId", frontFileId), additionalProperties.toMutableMap(), ) @@ -723,6 +769,7 @@ private constructor( amount() backFileId() + checkDepositId() frontFileId() validated = true } @@ -745,6 +792,7 @@ private constructor( internal fun validity(): Int = (if (amount.asKnown().isPresent) 1 else 0) + (if (backFileId.asKnown().isPresent) 1 else 0) + + (if (checkDepositId.asKnown().isPresent) 1 else 0) + (if (frontFileId.asKnown().isPresent) 1 else 0) override fun equals(other: Any?): Boolean { @@ -755,18 +803,19 @@ private constructor( return other is Check && amount == other.amount && backFileId == other.backFileId && + checkDepositId == other.checkDepositId && frontFileId == other.frontFileId && additionalProperties == other.additionalProperties } private val hashCode: Int by lazy { - Objects.hash(amount, backFileId, frontFileId, additionalProperties) + Objects.hash(amount, backFileId, checkDepositId, frontFileId, additionalProperties) } override fun hashCode(): Int = hashCode override fun toString() = - "Check{amount=$amount, backFileId=$backFileId, frontFileId=$frontFileId, additionalProperties=$additionalProperties}" + "Check{amount=$amount, backFileId=$backFileId, checkDepositId=$checkDepositId, frontFileId=$frontFileId, additionalProperties=$additionalProperties}" } /** If the mail item has been rejected, why it was rejected. */ diff --git a/increase-java-core/src/test/kotlin/com/increase/api/models/inboundmailitems/InboundMailItemListPageResponseTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/models/inboundmailitems/InboundMailItemListPageResponseTest.kt index d15a99f46..34bf62465 100644 --- a/increase-java-core/src/test/kotlin/com/increase/api/models/inboundmailitems/InboundMailItemListPageResponseTest.kt +++ b/increase-java-core/src/test/kotlin/com/increase/api/models/inboundmailitems/InboundMailItemListPageResponseTest.kt @@ -21,6 +21,7 @@ internal class InboundMailItemListPageResponseTest { InboundMailItem.Check.builder() .amount(1750L) .backFileId("file_makxrc67oh9l6sg7w9yc") + .checkDepositId("check_deposit_f06n9gpg7sxn8t19lfc1") .frontFileId("file_makxrc67oh9l6sg7w9yc") .build() ) @@ -28,6 +29,7 @@ internal class InboundMailItemListPageResponseTest { InboundMailItem.Check.builder() .amount(1750L) .backFileId("file_makxrc67oh9l6sg7w9yc") + .checkDepositId("check_deposit_f06n9gpg7sxn8t19lfc1") .frontFileId("file_makxrc67oh9l6sg7w9yc") .build() ) @@ -51,6 +53,7 @@ internal class InboundMailItemListPageResponseTest { InboundMailItem.Check.builder() .amount(1750L) .backFileId("file_makxrc67oh9l6sg7w9yc") + .checkDepositId("check_deposit_f06n9gpg7sxn8t19lfc1") .frontFileId("file_makxrc67oh9l6sg7w9yc") .build() ) @@ -58,6 +61,7 @@ internal class InboundMailItemListPageResponseTest { InboundMailItem.Check.builder() .amount(1750L) .backFileId("file_makxrc67oh9l6sg7w9yc") + .checkDepositId("check_deposit_f06n9gpg7sxn8t19lfc1") .frontFileId("file_makxrc67oh9l6sg7w9yc") .build() ) @@ -85,6 +89,7 @@ internal class InboundMailItemListPageResponseTest { InboundMailItem.Check.builder() .amount(1750L) .backFileId("file_makxrc67oh9l6sg7w9yc") + .checkDepositId("check_deposit_f06n9gpg7sxn8t19lfc1") .frontFileId("file_makxrc67oh9l6sg7w9yc") .build() ) @@ -92,6 +97,7 @@ internal class InboundMailItemListPageResponseTest { InboundMailItem.Check.builder() .amount(1750L) .backFileId("file_makxrc67oh9l6sg7w9yc") + .checkDepositId("check_deposit_f06n9gpg7sxn8t19lfc1") .frontFileId("file_makxrc67oh9l6sg7w9yc") .build() ) diff --git a/increase-java-core/src/test/kotlin/com/increase/api/models/inboundmailitems/InboundMailItemTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/models/inboundmailitems/InboundMailItemTest.kt index 85084b054..be3d0bd6f 100644 --- a/increase-java-core/src/test/kotlin/com/increase/api/models/inboundmailitems/InboundMailItemTest.kt +++ b/increase-java-core/src/test/kotlin/com/increase/api/models/inboundmailitems/InboundMailItemTest.kt @@ -19,6 +19,7 @@ internal class InboundMailItemTest { InboundMailItem.Check.builder() .amount(1750L) .backFileId("file_makxrc67oh9l6sg7w9yc") + .checkDepositId("check_deposit_f06n9gpg7sxn8t19lfc1") .frontFileId("file_makxrc67oh9l6sg7w9yc") .build() ) @@ -26,6 +27,7 @@ internal class InboundMailItemTest { InboundMailItem.Check.builder() .amount(1750L) .backFileId("file_makxrc67oh9l6sg7w9yc") + .checkDepositId("check_deposit_f06n9gpg7sxn8t19lfc1") .frontFileId("file_makxrc67oh9l6sg7w9yc") .build() ) @@ -44,11 +46,13 @@ internal class InboundMailItemTest { InboundMailItem.Check.builder() .amount(1750L) .backFileId("file_makxrc67oh9l6sg7w9yc") + .checkDepositId("check_deposit_f06n9gpg7sxn8t19lfc1") .frontFileId("file_makxrc67oh9l6sg7w9yc") .build(), InboundMailItem.Check.builder() .amount(1750L) .backFileId("file_makxrc67oh9l6sg7w9yc") + .checkDepositId("check_deposit_f06n9gpg7sxn8t19lfc1") .frontFileId("file_makxrc67oh9l6sg7w9yc") .build(), ) @@ -72,6 +76,7 @@ internal class InboundMailItemTest { InboundMailItem.Check.builder() .amount(1750L) .backFileId("file_makxrc67oh9l6sg7w9yc") + .checkDepositId("check_deposit_f06n9gpg7sxn8t19lfc1") .frontFileId("file_makxrc67oh9l6sg7w9yc") .build() ) @@ -79,6 +84,7 @@ internal class InboundMailItemTest { InboundMailItem.Check.builder() .amount(1750L) .backFileId("file_makxrc67oh9l6sg7w9yc") + .checkDepositId("check_deposit_f06n9gpg7sxn8t19lfc1") .frontFileId("file_makxrc67oh9l6sg7w9yc") .build() )