Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.284.0"
".": "0.285.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -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
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

<!-- x-release-please-start-version -->

[![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)

<!-- x-release-please-end -->

Expand All @@ -13,7 +13,7 @@ The Increase Java SDK is similar to the Increase Kotlin SDK but with minor diffe

<!-- x-release-please-start-version -->

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).

<!-- x-release-please-end -->

Expand All @@ -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
Expand All @@ -33,7 +33,7 @@ implementation("com.increase.api:increase-java:0.284.0")
<dependency>
<groupId>com.increase.api</groupId>
<artifactId>increase-java</artifactId>
<version>0.284.0</version>
<version>0.285.0</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ private constructor(
private val currency: JsonField<String>,
private val debtorAccountNumber: JsonField<String>,
private val debtorAddress: JsonField<DebtorAddress>,
private val debtorExternalAccountId: JsonField<String>,
private val debtorName: JsonField<String>,
private val debtorRoutingNumber: JsonField<String>,
private val fulfillmentInboundWireTransferId: JsonField<String>,
Expand Down Expand Up @@ -71,6 +72,9 @@ private constructor(
@JsonProperty("debtor_address")
@ExcludeMissing
debtorAddress: JsonField<DebtorAddress> = JsonMissing.of(),
@JsonProperty("debtor_external_account_id")
@ExcludeMissing
debtorExternalAccountId: JsonField<String> = JsonMissing.of(),
@JsonProperty("debtor_name")
@ExcludeMissing
debtorName: JsonField<String> = JsonMissing.of(),
Expand Down Expand Up @@ -101,6 +105,7 @@ private constructor(
currency,
debtorAccountNumber,
debtorAddress,
debtorExternalAccountId,
debtorName,
debtorRoutingNumber,
fulfillmentInboundWireTransferId,
Expand Down Expand Up @@ -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<String> =
debtorExternalAccountId.getOptional("debtor_external_account_id")

/**
* The debtor's name.
*
Expand Down Expand Up @@ -333,6 +347,16 @@ private constructor(
@ExcludeMissing
fun _debtorAddress(): JsonField<DebtorAddress> = 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<String> = debtorExternalAccountId

/**
* Returns the raw JSON value of [debtorName].
*
Expand Down Expand Up @@ -430,6 +454,7 @@ private constructor(
* .currency()
* .debtorAccountNumber()
* .debtorAddress()
* .debtorExternalAccountId()
* .debtorName()
* .debtorRoutingNumber()
* .fulfillmentInboundWireTransferId()
Expand All @@ -455,6 +480,7 @@ private constructor(
private var currency: JsonField<String>? = null
private var debtorAccountNumber: JsonField<String>? = null
private var debtorAddress: JsonField<DebtorAddress>? = null
private var debtorExternalAccountId: JsonField<String>? = null
private var debtorName: JsonField<String>? = null
private var debtorRoutingNumber: JsonField<String>? = null
private var fulfillmentInboundWireTransferId: JsonField<String>? = null
Expand All @@ -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
Expand Down Expand Up @@ -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<String>) =
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<String>) = apply {
this.debtorExternalAccountId = debtorExternalAccountId
}

/** The debtor's name. */
fun debtorName(debtorName: String) = debtorName(JsonField.of(debtorName))

Expand Down Expand Up @@ -784,6 +833,7 @@ private constructor(
* .currency()
* .debtorAccountNumber()
* .debtorAddress()
* .debtorExternalAccountId()
* .debtorName()
* .debtorRoutingNumber()
* .fulfillmentInboundWireTransferId()
Expand All @@ -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),
Expand Down Expand Up @@ -838,6 +889,7 @@ private constructor(
currency()
debtorAccountNumber()
debtorAddress().validate()
debtorExternalAccountId()
debtorName()
debtorRoutingNumber()
fulfillmentInboundWireTransferId()
Expand Down Expand Up @@ -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) +
Expand Down Expand Up @@ -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 &&
Expand All @@ -2105,6 +2159,7 @@ private constructor(
currency,
debtorAccountNumber,
debtorAddress,
debtorExternalAccountId,
debtorName,
debtorRoutingNumber,
fulfillmentInboundWireTransferId,
Expand All @@ -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}"
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ internal class WireDrawdownRequestListPageResponseTest {
.state("NY")
.build()
)
.debtorExternalAccountId(null)
.debtorName("Ian Crease")
.debtorRoutingNumber("101050001")
.fulfillmentInboundWireTransferId(
Expand Down Expand Up @@ -92,6 +93,7 @@ internal class WireDrawdownRequestListPageResponseTest {
.state("NY")
.build()
)
.debtorExternalAccountId(null)
.debtorName("Ian Crease")
.debtorRoutingNumber("101050001")
.fulfillmentInboundWireTransferId("inbound_wire_transfer_f228m6bmhtcxjco9pwp0")
Expand Down Expand Up @@ -143,6 +145,7 @@ internal class WireDrawdownRequestListPageResponseTest {
.state("NY")
.build()
)
.debtorExternalAccountId(null)
.debtorName("Ian Crease")
.debtorRoutingNumber("101050001")
.fulfillmentInboundWireTransferId(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ internal class WireDrawdownRequestTest {
.state("NY")
.build()
)
.debtorExternalAccountId(null)
.debtorName("Ian Crease")
.debtorRoutingNumber("101050001")
.fulfillmentInboundWireTransferId("inbound_wire_transfer_f228m6bmhtcxjco9pwp0")
Expand Down Expand Up @@ -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())
Expand Down Expand Up @@ -136,6 +138,7 @@ internal class WireDrawdownRequestTest {
.state("NY")
.build()
)
.debtorExternalAccountId(null)
.debtorName("Ian Crease")
.debtorRoutingNumber("101050001")
.fulfillmentInboundWireTransferId("inbound_wire_transfer_f228m6bmhtcxjco9pwp0")
Expand Down
Loading