From 471dbd93d5019390e51d4b51b30730919802f56c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 8 Aug 2025 18:02:16 +0000 Subject: [PATCH 1/4] chore: update @stainless-api/prism-cli to v5.15.0 --- scripts/mock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/mock b/scripts/mock index d2814ae6a..0b28f6ea2 100755 --- a/scripts/mock +++ b/scripts/mock @@ -21,7 +21,7 @@ echo "==> Starting mock server with URL ${URL}" # Run prism mock on the given spec if [ "$1" == "--daemon" ]; then - npm exec --package=@stainless-api/prism-cli@5.8.5 -- prism mock "$URL" &> .prism.log & + npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism mock "$URL" &> .prism.log & # Wait for server to come online echo -n "Waiting for server" @@ -37,5 +37,5 @@ if [ "$1" == "--daemon" ]; then echo else - npm exec --package=@stainless-api/prism-cli@5.8.5 -- prism mock "$URL" + npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism mock "$URL" fi From fcf7e4bc77ec92c9b5c2e039fba663b52d60356a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 8 Aug 2025 21:27:16 +0000 Subject: [PATCH 2/4] chore(internal): update comment in script --- scripts/test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/test b/scripts/test index 6b750a74e..2177cb8ae 100755 --- a/scripts/test +++ b/scripts/test @@ -43,7 +43,7 @@ elif ! prism_is_running ; then echo -e "To run the server, pass in the path or url of your OpenAPI" echo -e "spec to the prism command:" echo - echo -e " \$ ${YELLOW}npm exec --package=@stoplight/prism-cli@~5.3.2 -- prism mock path/to/your.openapi.yml${NC}" + echo -e " \$ ${YELLOW}npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism mock path/to/your.openapi.yml${NC}" echo exit 1 From e2669eb04e125313e15fe832d7e72f5967aa683e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 11 Aug 2025 22:10:07 +0000 Subject: [PATCH 3/4] feat(api): api update --- .stats.yml | 4 +- .../InboundWireTransfer.kt | 61 +++++++++++++++++-- ...InboundWireTransferListPageResponseTest.kt | 3 + .../InboundWireTransferTest.kt | 3 + 4 files changed, 65 insertions(+), 6 deletions(-) diff --git a/.stats.yml b/.stats.yml index 318e5b772..4b3aa93d3 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-244805b184601a0639e868cb601337a5ebe0f259576a7e22d46c881ee22e17d3.yml -openapi_spec_hash: a667a8fca7bc57f82f22ddc2a9829e19 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-65d55098340df71e6f5c251c62e6853ad5184102c603d9f74622e8b33581c800.yml +openapi_spec_hash: 9f772e02b53a65c6e8ada7ac684117fb config_hash: a185e9a72778cc4658ea73fb3a7f1354 diff --git a/increase-java-core/src/main/kotlin/com/increase/api/models/inboundwiretransfers/InboundWireTransfer.kt b/increase-java-core/src/main/kotlin/com/increase/api/models/inboundwiretransfers/InboundWireTransfer.kt index 2c53a490a..6b71aa920 100644 --- a/increase-java-core/src/main/kotlin/com/increase/api/models/inboundwiretransfers/InboundWireTransfer.kt +++ b/increase-java-core/src/main/kotlin/com/increase/api/models/inboundwiretransfers/InboundWireTransfer.kt @@ -48,6 +48,7 @@ private constructor( private val senderReference: JsonField, private val status: JsonField, private val type: JsonField, + private val wireDrawdownRequestId: JsonField, private val additionalProperties: MutableMap, ) { @@ -119,6 +120,9 @@ private constructor( senderReference: JsonField = JsonMissing.of(), @JsonProperty("status") @ExcludeMissing status: JsonField = JsonMissing.of(), @JsonProperty("type") @ExcludeMissing type: JsonField = JsonMissing.of(), + @JsonProperty("wire_drawdown_request_id") + @ExcludeMissing + wireDrawdownRequestId: JsonField = JsonMissing.of(), ) : this( id, accountId, @@ -146,6 +150,7 @@ private constructor( senderReference, status, type, + wireDrawdownRequestId, mutableMapOf(), ) @@ -383,6 +388,15 @@ private constructor( */ fun type(): Type = type.getRequired("type") + /** + * The wire drawdown request the inbound wire transfer is fulfilling. + * + * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if the + * server responded with an unexpected value). + */ + fun wireDrawdownRequestId(): Optional = + wireDrawdownRequestId.getOptional("wire_drawdown_request_id") + /** * Returns the raw JSON value of [id]. * @@ -622,6 +636,16 @@ private constructor( */ @JsonProperty("type") @ExcludeMissing fun _type(): JsonField = type + /** + * Returns the raw JSON value of [wireDrawdownRequestId]. + * + * Unlike [wireDrawdownRequestId], this method doesn't throw if the JSON field has an unexpected + * type. + */ + @JsonProperty("wire_drawdown_request_id") + @ExcludeMissing + fun _wireDrawdownRequestId(): JsonField = wireDrawdownRequestId + @JsonAnySetter private fun putAdditionalProperty(key: String, value: JsonValue) { additionalProperties.put(key, value) @@ -667,6 +691,7 @@ private constructor( * .senderReference() * .status() * .type() + * .wireDrawdownRequestId() * ``` */ @JvmStatic fun builder() = Builder() @@ -701,6 +726,7 @@ private constructor( private var senderReference: JsonField? = null private var status: JsonField? = null private var type: JsonField? = null + private var wireDrawdownRequestId: JsonField? = null private var additionalProperties: MutableMap = mutableMapOf() @JvmSynthetic @@ -736,6 +762,7 @@ private constructor( senderReference = inboundWireTransfer.senderReference status = inboundWireTransfer.status type = inboundWireTransfer.type + wireDrawdownRequestId = inboundWireTransfer.wireDrawdownRequestId additionalProperties = inboundWireTransfer.additionalProperties.toMutableMap() } @@ -1271,6 +1298,28 @@ private constructor( */ fun type(type: JsonField) = apply { this.type = type } + /** The wire drawdown request the inbound wire transfer is fulfilling. */ + fun wireDrawdownRequestId(wireDrawdownRequestId: String?) = + wireDrawdownRequestId(JsonField.ofNullable(wireDrawdownRequestId)) + + /** + * Alias for calling [Builder.wireDrawdownRequestId] with + * `wireDrawdownRequestId.orElse(null)`. + */ + fun wireDrawdownRequestId(wireDrawdownRequestId: Optional) = + wireDrawdownRequestId(wireDrawdownRequestId.getOrNull()) + + /** + * Sets [Builder.wireDrawdownRequestId] to an arbitrary JSON value. + * + * You should usually call [Builder.wireDrawdownRequestId] with a well-typed [String] value + * instead. This method is primarily for setting the field to an undocumented or not yet + * supported value. + */ + fun wireDrawdownRequestId(wireDrawdownRequestId: JsonField) = apply { + this.wireDrawdownRequestId = wireDrawdownRequestId + } + fun additionalProperties(additionalProperties: Map) = apply { this.additionalProperties.clear() putAllAdditionalProperties(additionalProperties) @@ -1323,6 +1372,7 @@ private constructor( * .senderReference() * .status() * .type() + * .wireDrawdownRequestId() * ``` * * @throws IllegalStateException if any required field is unset. @@ -1370,6 +1420,7 @@ private constructor( checkRequired("senderReference", senderReference), checkRequired("status", status), checkRequired("type", type), + checkRequired("wireDrawdownRequestId", wireDrawdownRequestId), additionalProperties.toMutableMap(), ) } @@ -1407,6 +1458,7 @@ private constructor( senderReference() status().validate() type().validate() + wireDrawdownRequestId() validated = true } @@ -1450,7 +1502,8 @@ private constructor( (reversal.asKnown().getOrNull()?.validity() ?: 0) + (if (senderReference.asKnown().isPresent) 1 else 0) + (status.asKnown().getOrNull()?.validity() ?: 0) + - (type.asKnown().getOrNull()?.validity() ?: 0) + (type.asKnown().getOrNull()?.validity() ?: 0) + + (if (wireDrawdownRequestId.asKnown().isPresent) 1 else 0) /** Information about the reversal of the inbound wire transfer if it has been reversed. */ class Reversal @@ -2092,15 +2145,15 @@ private constructor( return true } - return /* spotless:off */ other is InboundWireTransfer && id == other.id && accountId == other.accountId && accountNumberId == other.accountNumberId && amount == other.amount && beneficiaryAddressLine1 == other.beneficiaryAddressLine1 && beneficiaryAddressLine2 == other.beneficiaryAddressLine2 && beneficiaryAddressLine3 == other.beneficiaryAddressLine3 && beneficiaryName == other.beneficiaryName && beneficiaryReference == other.beneficiaryReference && createdAt == other.createdAt && description == other.description && inputMessageAccountabilityData == other.inputMessageAccountabilityData && originatorAddressLine1 == other.originatorAddressLine1 && originatorAddressLine2 == other.originatorAddressLine2 && originatorAddressLine3 == other.originatorAddressLine3 && originatorName == other.originatorName && originatorRoutingNumber == other.originatorRoutingNumber && originatorToBeneficiaryInformation == other.originatorToBeneficiaryInformation && originatorToBeneficiaryInformationLine1 == other.originatorToBeneficiaryInformationLine1 && originatorToBeneficiaryInformationLine2 == other.originatorToBeneficiaryInformationLine2 && originatorToBeneficiaryInformationLine3 == other.originatorToBeneficiaryInformationLine3 && originatorToBeneficiaryInformationLine4 == other.originatorToBeneficiaryInformationLine4 && reversal == other.reversal && senderReference == other.senderReference && status == other.status && type == other.type && additionalProperties == other.additionalProperties /* spotless:on */ + return /* spotless:off */ other is InboundWireTransfer && id == other.id && accountId == other.accountId && accountNumberId == other.accountNumberId && amount == other.amount && beneficiaryAddressLine1 == other.beneficiaryAddressLine1 && beneficiaryAddressLine2 == other.beneficiaryAddressLine2 && beneficiaryAddressLine3 == other.beneficiaryAddressLine3 && beneficiaryName == other.beneficiaryName && beneficiaryReference == other.beneficiaryReference && createdAt == other.createdAt && description == other.description && inputMessageAccountabilityData == other.inputMessageAccountabilityData && originatorAddressLine1 == other.originatorAddressLine1 && originatorAddressLine2 == other.originatorAddressLine2 && originatorAddressLine3 == other.originatorAddressLine3 && originatorName == other.originatorName && originatorRoutingNumber == other.originatorRoutingNumber && originatorToBeneficiaryInformation == other.originatorToBeneficiaryInformation && originatorToBeneficiaryInformationLine1 == other.originatorToBeneficiaryInformationLine1 && originatorToBeneficiaryInformationLine2 == other.originatorToBeneficiaryInformationLine2 && originatorToBeneficiaryInformationLine3 == other.originatorToBeneficiaryInformationLine3 && originatorToBeneficiaryInformationLine4 == other.originatorToBeneficiaryInformationLine4 && reversal == other.reversal && senderReference == other.senderReference && status == other.status && type == other.type && wireDrawdownRequestId == other.wireDrawdownRequestId && additionalProperties == other.additionalProperties /* spotless:on */ } /* spotless:off */ - private val hashCode: Int by lazy { Objects.hash(id, accountId, accountNumberId, amount, beneficiaryAddressLine1, beneficiaryAddressLine2, beneficiaryAddressLine3, beneficiaryName, beneficiaryReference, createdAt, description, inputMessageAccountabilityData, originatorAddressLine1, originatorAddressLine2, originatorAddressLine3, originatorName, originatorRoutingNumber, originatorToBeneficiaryInformation, originatorToBeneficiaryInformationLine1, originatorToBeneficiaryInformationLine2, originatorToBeneficiaryInformationLine3, originatorToBeneficiaryInformationLine4, reversal, senderReference, status, type, additionalProperties) } + private val hashCode: Int by lazy { Objects.hash(id, accountId, accountNumberId, amount, beneficiaryAddressLine1, beneficiaryAddressLine2, beneficiaryAddressLine3, beneficiaryName, beneficiaryReference, createdAt, description, inputMessageAccountabilityData, originatorAddressLine1, originatorAddressLine2, originatorAddressLine3, originatorName, originatorRoutingNumber, originatorToBeneficiaryInformation, originatorToBeneficiaryInformationLine1, originatorToBeneficiaryInformationLine2, originatorToBeneficiaryInformationLine3, originatorToBeneficiaryInformationLine4, reversal, senderReference, status, type, wireDrawdownRequestId, additionalProperties) } /* spotless:on */ override fun hashCode(): Int = hashCode override fun toString() = - "InboundWireTransfer{id=$id, accountId=$accountId, accountNumberId=$accountNumberId, amount=$amount, beneficiaryAddressLine1=$beneficiaryAddressLine1, beneficiaryAddressLine2=$beneficiaryAddressLine2, beneficiaryAddressLine3=$beneficiaryAddressLine3, beneficiaryName=$beneficiaryName, beneficiaryReference=$beneficiaryReference, createdAt=$createdAt, description=$description, inputMessageAccountabilityData=$inputMessageAccountabilityData, originatorAddressLine1=$originatorAddressLine1, originatorAddressLine2=$originatorAddressLine2, originatorAddressLine3=$originatorAddressLine3, originatorName=$originatorName, originatorRoutingNumber=$originatorRoutingNumber, originatorToBeneficiaryInformation=$originatorToBeneficiaryInformation, originatorToBeneficiaryInformationLine1=$originatorToBeneficiaryInformationLine1, originatorToBeneficiaryInformationLine2=$originatorToBeneficiaryInformationLine2, originatorToBeneficiaryInformationLine3=$originatorToBeneficiaryInformationLine3, originatorToBeneficiaryInformationLine4=$originatorToBeneficiaryInformationLine4, reversal=$reversal, senderReference=$senderReference, status=$status, type=$type, additionalProperties=$additionalProperties}" + "InboundWireTransfer{id=$id, accountId=$accountId, accountNumberId=$accountNumberId, amount=$amount, beneficiaryAddressLine1=$beneficiaryAddressLine1, beneficiaryAddressLine2=$beneficiaryAddressLine2, beneficiaryAddressLine3=$beneficiaryAddressLine3, beneficiaryName=$beneficiaryName, beneficiaryReference=$beneficiaryReference, createdAt=$createdAt, description=$description, inputMessageAccountabilityData=$inputMessageAccountabilityData, originatorAddressLine1=$originatorAddressLine1, originatorAddressLine2=$originatorAddressLine2, originatorAddressLine3=$originatorAddressLine3, originatorName=$originatorName, originatorRoutingNumber=$originatorRoutingNumber, originatorToBeneficiaryInformation=$originatorToBeneficiaryInformation, originatorToBeneficiaryInformationLine1=$originatorToBeneficiaryInformationLine1, originatorToBeneficiaryInformationLine2=$originatorToBeneficiaryInformationLine2, originatorToBeneficiaryInformationLine3=$originatorToBeneficiaryInformationLine3, originatorToBeneficiaryInformationLine4=$originatorToBeneficiaryInformationLine4, reversal=$reversal, senderReference=$senderReference, status=$status, type=$type, wireDrawdownRequestId=$wireDrawdownRequestId, additionalProperties=$additionalProperties}" } diff --git a/increase-java-core/src/test/kotlin/com/increase/api/models/inboundwiretransfers/InboundWireTransferListPageResponseTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/models/inboundwiretransfers/InboundWireTransferListPageResponseTest.kt index 312892979..158fae788 100644 --- a/increase-java-core/src/test/kotlin/com/increase/api/models/inboundwiretransfers/InboundWireTransferListPageResponseTest.kt +++ b/increase-java-core/src/test/kotlin/com/increase/api/models/inboundwiretransfers/InboundWireTransferListPageResponseTest.kt @@ -47,6 +47,7 @@ internal class InboundWireTransferListPageResponseTest { .senderReference(null) .status(InboundWireTransfer.Status.ACCEPTED) .type(InboundWireTransfer.Type.INBOUND_WIRE_TRANSFER) + .wireDrawdownRequestId(null) .build() ) .nextCursor("v57w5d") @@ -86,6 +87,7 @@ internal class InboundWireTransferListPageResponseTest { .senderReference(null) .status(InboundWireTransfer.Status.ACCEPTED) .type(InboundWireTransfer.Type.INBOUND_WIRE_TRANSFER) + .wireDrawdownRequestId(null) .build() ) assertThat(inboundWireTransferListPageResponse.nextCursor()).contains("v57w5d") @@ -129,6 +131,7 @@ internal class InboundWireTransferListPageResponseTest { .senderReference(null) .status(InboundWireTransfer.Status.ACCEPTED) .type(InboundWireTransfer.Type.INBOUND_WIRE_TRANSFER) + .wireDrawdownRequestId(null) .build() ) .nextCursor("v57w5d") diff --git a/increase-java-core/src/test/kotlin/com/increase/api/models/inboundwiretransfers/InboundWireTransferTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/models/inboundwiretransfers/InboundWireTransferTest.kt index 3b0e84999..bf80324d4 100644 --- a/increase-java-core/src/test/kotlin/com/increase/api/models/inboundwiretransfers/InboundWireTransferTest.kt +++ b/increase-java-core/src/test/kotlin/com/increase/api/models/inboundwiretransfers/InboundWireTransferTest.kt @@ -45,6 +45,7 @@ internal class InboundWireTransferTest { .senderReference(null) .status(InboundWireTransfer.Status.ACCEPTED) .type(InboundWireTransfer.Type.INBOUND_WIRE_TRANSFER) + .wireDrawdownRequestId(null) .build() assertThat(inboundWireTransfer.id()).isEqualTo("inbound_wire_transfer_f228m6bmhtcxjco9pwp0") @@ -82,6 +83,7 @@ internal class InboundWireTransferTest { assertThat(inboundWireTransfer.status()).isEqualTo(InboundWireTransfer.Status.ACCEPTED) assertThat(inboundWireTransfer.type()) .isEqualTo(InboundWireTransfer.Type.INBOUND_WIRE_TRANSFER) + assertThat(inboundWireTransfer.wireDrawdownRequestId()).isEmpty } @Test @@ -120,6 +122,7 @@ internal class InboundWireTransferTest { .senderReference(null) .status(InboundWireTransfer.Status.ACCEPTED) .type(InboundWireTransfer.Type.INBOUND_WIRE_TRANSFER) + .wireDrawdownRequestId(null) .build() val roundtrippedInboundWireTransfer = From 0152186fa6b107b8b65fe026036f995e23c4c0c3 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 11 Aug 2025 22:10:31 +0000 Subject: [PATCH 4/4] release: 0.277.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 14 ++++++++++++++ README.md | 10 +++++----- build.gradle.kts | 2 +- 4 files changed, 21 insertions(+), 7 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index bac125e6e..ebebec494 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.276.0" + ".": "0.277.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index df97ebc00..7ea46fe1a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,19 @@ # Changelog +## 0.277.0 (2025-08-11) + +Full Changelog: [v0.276.0...v0.277.0](https://github.com/Increase/increase-java/compare/v0.276.0...v0.277.0) + +### Features + +* **api:** api update ([e2669eb](https://github.com/Increase/increase-java/commit/e2669eb04e125313e15fe832d7e72f5967aa683e)) + + +### Chores + +* **internal:** update comment in script ([fcf7e4b](https://github.com/Increase/increase-java/commit/fcf7e4bc77ec92c9b5c2e039fba663b52d60356a)) +* update @stainless-api/prism-cli to v5.15.0 ([471dbd9](https://github.com/Increase/increase-java/commit/471dbd93d5019390e51d4b51b30730919802f56c)) + ## 0.276.0 (2025-08-07) Full Changelog: [v0.275.0...v0.276.0](https://github.com/Increase/increase-java/compare/v0.275.0...v0.276.0) diff --git a/README.md b/README.md index 0db97f2df..56484a4eb 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.276.0) -[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.276.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.276.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.277.0) +[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.277.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.277.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.276.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.277.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.276.0") +implementation("com.increase.api:increase-java:0.277.0") ``` ### Maven @@ -33,7 +33,7 @@ implementation("com.increase.api:increase-java:0.276.0") com.increase.api increase-java - 0.276.0 + 0.277.0 ``` diff --git a/build.gradle.kts b/build.gradle.kts index 692da48a9..440434667 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -8,7 +8,7 @@ repositories { allprojects { group = "com.increase.api" - version = "0.276.0" // x-release-please-version + version = "0.277.0" // x-release-please-version } subprojects {