From 7ed6cbc7a518497952aaf72e847aa9a019964697 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 18 Aug 2025 19:00:33 +0000 Subject: [PATCH 1/2] feat(api): api update --- .stats.yml | 4 +- .../WireDrawdownRequest.kt | 57 ++++++++++++++++++- ...WireDrawdownRequestListPageResponseTest.kt | 3 + .../WireDrawdownRequestTest.kt | 3 + 4 files changed, 64 insertions(+), 3 deletions(-) diff --git a/.stats.yml b/.stats.yml index 31cc203c9..49e48a70c 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 214 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-b232355836603d9dbb0ca86d4a946b458726531675db3fa1c4feeee10ff41011.yml -openapi_spec_hash: e986bdc1f77192e14e9075a7b1eac0f9 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-db453f5a5c4734d0cc56f9f61a1cbfaceb9b51f47076b75595bdc9fdedd439c7.yml +openapi_spec_hash: 0cd9098d2af2b4cee4f6678d01fb9516 config_hash: b0b366d8c705ea0efe62093bae953e5a diff --git a/increase-java-core/src/main/kotlin/com/increase/api/models/wiredrawdownrequests/WireDrawdownRequest.kt b/increase-java-core/src/main/kotlin/com/increase/api/models/wiredrawdownrequests/WireDrawdownRequest.kt index 0ac274d4d..455846c4a 100644 --- a/increase-java-core/src/main/kotlin/com/increase/api/models/wiredrawdownrequests/WireDrawdownRequest.kt +++ b/increase-java-core/src/main/kotlin/com/increase/api/models/wiredrawdownrequests/WireDrawdownRequest.kt @@ -37,6 +37,7 @@ private constructor( private val currency: JsonField, private val debtorAccountNumber: JsonField, private val debtorAddress: JsonField, + private val debtorExternalAccountId: JsonField, private val debtorName: JsonField, private val debtorRoutingNumber: JsonField, private val fulfillmentInboundWireTransferId: JsonField, @@ -71,6 +72,9 @@ private constructor( @JsonProperty("debtor_address") @ExcludeMissing debtorAddress: JsonField = JsonMissing.of(), + @JsonProperty("debtor_external_account_id") + @ExcludeMissing + debtorExternalAccountId: JsonField = JsonMissing.of(), @JsonProperty("debtor_name") @ExcludeMissing debtorName: JsonField = JsonMissing.of(), @@ -101,6 +105,7 @@ private constructor( currency, debtorAccountNumber, debtorAddress, + debtorExternalAccountId, debtorName, debtorRoutingNumber, fulfillmentInboundWireTransferId, @@ -187,6 +192,15 @@ private constructor( */ fun debtorAddress(): DebtorAddress = debtorAddress.getRequired("debtor_address") + /** + * The debtor's external account identifier. + * + * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if the + * server responded with an unexpected value). + */ + fun debtorExternalAccountId(): Optional = + debtorExternalAccountId.getOptional("debtor_external_account_id") + /** * The debtor's name. * @@ -333,6 +347,16 @@ private constructor( @ExcludeMissing fun _debtorAddress(): JsonField = debtorAddress + /** + * Returns the raw JSON value of [debtorExternalAccountId]. + * + * Unlike [debtorExternalAccountId], this method doesn't throw if the JSON field has an + * unexpected type. + */ + @JsonProperty("debtor_external_account_id") + @ExcludeMissing + fun _debtorExternalAccountId(): JsonField = debtorExternalAccountId + /** * Returns the raw JSON value of [debtorName]. * @@ -430,6 +454,7 @@ private constructor( * .currency() * .debtorAccountNumber() * .debtorAddress() + * .debtorExternalAccountId() * .debtorName() * .debtorRoutingNumber() * .fulfillmentInboundWireTransferId() @@ -455,6 +480,7 @@ private constructor( private var currency: JsonField? = null private var debtorAccountNumber: JsonField? = null private var debtorAddress: JsonField? = null + private var debtorExternalAccountId: JsonField? = null private var debtorName: JsonField? = null private var debtorRoutingNumber: JsonField? = null private var fulfillmentInboundWireTransferId: JsonField? = null @@ -476,6 +502,7 @@ private constructor( currency = wireDrawdownRequest.currency debtorAccountNumber = wireDrawdownRequest.debtorAccountNumber debtorAddress = wireDrawdownRequest.debtorAddress + debtorExternalAccountId = wireDrawdownRequest.debtorExternalAccountId debtorName = wireDrawdownRequest.debtorName debtorRoutingNumber = wireDrawdownRequest.debtorRoutingNumber fulfillmentInboundWireTransferId = wireDrawdownRequest.fulfillmentInboundWireTransferId @@ -615,6 +642,28 @@ private constructor( this.debtorAddress = debtorAddress } + /** The debtor's external account identifier. */ + fun debtorExternalAccountId(debtorExternalAccountId: String?) = + debtorExternalAccountId(JsonField.ofNullable(debtorExternalAccountId)) + + /** + * Alias for calling [Builder.debtorExternalAccountId] with + * `debtorExternalAccountId.orElse(null)`. + */ + fun debtorExternalAccountId(debtorExternalAccountId: Optional) = + debtorExternalAccountId(debtorExternalAccountId.getOrNull()) + + /** + * Sets [Builder.debtorExternalAccountId] to an arbitrary JSON value. + * + * You should usually call [Builder.debtorExternalAccountId] with a well-typed [String] + * value instead. This method is primarily for setting the field to an undocumented or not + * yet supported value. + */ + fun debtorExternalAccountId(debtorExternalAccountId: JsonField) = apply { + this.debtorExternalAccountId = debtorExternalAccountId + } + /** The debtor's name. */ fun debtorName(debtorName: String) = debtorName(JsonField.of(debtorName)) @@ -784,6 +833,7 @@ private constructor( * .currency() * .debtorAccountNumber() * .debtorAddress() + * .debtorExternalAccountId() * .debtorName() * .debtorRoutingNumber() * .fulfillmentInboundWireTransferId() @@ -807,6 +857,7 @@ private constructor( checkRequired("currency", currency), checkRequired("debtorAccountNumber", debtorAccountNumber), checkRequired("debtorAddress", debtorAddress), + checkRequired("debtorExternalAccountId", debtorExternalAccountId), checkRequired("debtorName", debtorName), checkRequired("debtorRoutingNumber", debtorRoutingNumber), checkRequired("fulfillmentInboundWireTransferId", fulfillmentInboundWireTransferId), @@ -838,6 +889,7 @@ private constructor( currency() debtorAccountNumber() debtorAddress().validate() + debtorExternalAccountId() debtorName() debtorRoutingNumber() fulfillmentInboundWireTransferId() @@ -873,6 +925,7 @@ private constructor( (if (currency.asKnown().isPresent) 1 else 0) + (if (debtorAccountNumber.asKnown().isPresent) 1 else 0) + (debtorAddress.asKnown().getOrNull()?.validity() ?: 0) + + (if (debtorExternalAccountId.asKnown().isPresent) 1 else 0) + (if (debtorName.asKnown().isPresent) 1 else 0) + (if (debtorRoutingNumber.asKnown().isPresent) 1 else 0) + (if (fulfillmentInboundWireTransferId.asKnown().isPresent) 1 else 0) + @@ -2083,6 +2136,7 @@ private constructor( currency == other.currency && debtorAccountNumber == other.debtorAccountNumber && debtorAddress == other.debtorAddress && + debtorExternalAccountId == other.debtorExternalAccountId && debtorName == other.debtorName && debtorRoutingNumber == other.debtorRoutingNumber && fulfillmentInboundWireTransferId == other.fulfillmentInboundWireTransferId && @@ -2105,6 +2159,7 @@ private constructor( currency, debtorAccountNumber, debtorAddress, + debtorExternalAccountId, debtorName, debtorRoutingNumber, fulfillmentInboundWireTransferId, @@ -2120,5 +2175,5 @@ private constructor( override fun hashCode(): Int = hashCode override fun toString() = - "WireDrawdownRequest{id=$id, accountNumberId=$accountNumberId, amount=$amount, createdAt=$createdAt, creditorAddress=$creditorAddress, creditorName=$creditorName, currency=$currency, debtorAccountNumber=$debtorAccountNumber, debtorAddress=$debtorAddress, debtorName=$debtorName, debtorRoutingNumber=$debtorRoutingNumber, fulfillmentInboundWireTransferId=$fulfillmentInboundWireTransferId, idempotencyKey=$idempotencyKey, status=$status, submission=$submission, type=$type, unstructuredRemittanceInformation=$unstructuredRemittanceInformation, additionalProperties=$additionalProperties}" + "WireDrawdownRequest{id=$id, accountNumberId=$accountNumberId, amount=$amount, createdAt=$createdAt, creditorAddress=$creditorAddress, creditorName=$creditorName, currency=$currency, debtorAccountNumber=$debtorAccountNumber, debtorAddress=$debtorAddress, debtorExternalAccountId=$debtorExternalAccountId, debtorName=$debtorName, debtorRoutingNumber=$debtorRoutingNumber, fulfillmentInboundWireTransferId=$fulfillmentInboundWireTransferId, idempotencyKey=$idempotencyKey, status=$status, submission=$submission, type=$type, unstructuredRemittanceInformation=$unstructuredRemittanceInformation, additionalProperties=$additionalProperties}" } diff --git a/increase-java-core/src/test/kotlin/com/increase/api/models/wiredrawdownrequests/WireDrawdownRequestListPageResponseTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/models/wiredrawdownrequests/WireDrawdownRequestListPageResponseTest.kt index 654f78166..3d542a228 100644 --- a/increase-java-core/src/test/kotlin/com/increase/api/models/wiredrawdownrequests/WireDrawdownRequestListPageResponseTest.kt +++ b/increase-java-core/src/test/kotlin/com/increase/api/models/wiredrawdownrequests/WireDrawdownRequestListPageResponseTest.kt @@ -43,6 +43,7 @@ internal class WireDrawdownRequestListPageResponseTest { .state("NY") .build() ) + .debtorExternalAccountId(null) .debtorName("Ian Crease") .debtorRoutingNumber("101050001") .fulfillmentInboundWireTransferId( @@ -92,6 +93,7 @@ internal class WireDrawdownRequestListPageResponseTest { .state("NY") .build() ) + .debtorExternalAccountId(null) .debtorName("Ian Crease") .debtorRoutingNumber("101050001") .fulfillmentInboundWireTransferId("inbound_wire_transfer_f228m6bmhtcxjco9pwp0") @@ -143,6 +145,7 @@ internal class WireDrawdownRequestListPageResponseTest { .state("NY") .build() ) + .debtorExternalAccountId(null) .debtorName("Ian Crease") .debtorRoutingNumber("101050001") .fulfillmentInboundWireTransferId( diff --git a/increase-java-core/src/test/kotlin/com/increase/api/models/wiredrawdownrequests/WireDrawdownRequestTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/models/wiredrawdownrequests/WireDrawdownRequestTest.kt index 3c7403bda..f87523a00 100644 --- a/increase-java-core/src/test/kotlin/com/increase/api/models/wiredrawdownrequests/WireDrawdownRequestTest.kt +++ b/increase-java-core/src/test/kotlin/com/increase/api/models/wiredrawdownrequests/WireDrawdownRequestTest.kt @@ -41,6 +41,7 @@ internal class WireDrawdownRequestTest { .state("NY") .build() ) + .debtorExternalAccountId(null) .debtorName("Ian Crease") .debtorRoutingNumber("101050001") .fulfillmentInboundWireTransferId("inbound_wire_transfer_f228m6bmhtcxjco9pwp0") @@ -86,6 +87,7 @@ internal class WireDrawdownRequestTest { .state("NY") .build() ) + assertThat(wireDrawdownRequest.debtorExternalAccountId()).isEmpty assertThat(wireDrawdownRequest.debtorName()).isEqualTo("Ian Crease") assertThat(wireDrawdownRequest.debtorRoutingNumber()).isEqualTo("101050001") assertThat(wireDrawdownRequest.fulfillmentInboundWireTransferId()) @@ -136,6 +138,7 @@ internal class WireDrawdownRequestTest { .state("NY") .build() ) + .debtorExternalAccountId(null) .debtorName("Ian Crease") .debtorRoutingNumber("101050001") .fulfillmentInboundWireTransferId("inbound_wire_transfer_f228m6bmhtcxjco9pwp0") From 9517f30dc2a2c00d8ee84fa4c4616c6250ff0f62 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 19 Aug 2025 03:48:18 +0000 Subject: [PATCH 2/2] release: 0.285.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 2a4a5d792..182fd7857 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.284.0" + ".": "0.285.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 973493c82..0f905c312 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.285.0 (2025-08-19) + +Full Changelog: [v0.284.0...v0.285.0](https://github.com/Increase/increase-java/compare/v0.284.0...v0.285.0) + +### Features + +* **api:** api update ([7ed6cbc](https://github.com/Increase/increase-java/commit/7ed6cbc7a518497952aaf72e847aa9a019964697)) + ## 0.284.0 (2025-08-18) Full Changelog: [v0.283.0...v0.284.0](https://github.com/Increase/increase-java/compare/v0.283.0...v0.284.0) diff --git a/README.md b/README.md index 57d34ec06..1ee96a0dd 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.284.0) -[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.284.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.284.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.285.0) +[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.285.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.285.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.284.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.285.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.284.0") +implementation("com.increase.api:increase-java:0.285.0") ``` ### Maven @@ -33,7 +33,7 @@ implementation("com.increase.api:increase-java:0.284.0") com.increase.api increase-java - 0.284.0 + 0.285.0 ``` diff --git a/build.gradle.kts b/build.gradle.kts index e580b62e0..af2a928de 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -8,7 +8,7 @@ repositories { allprojects { group = "com.increase.api" - version = "0.284.0" // x-release-please-version + version = "0.285.0" // x-release-please-version } subprojects {