diff --git a/.release-please-manifest.json b/.release-please-manifest.json
index 6dcf4e374..2a4a5d792 100644
--- a/.release-please-manifest.json
+++ b/.release-please-manifest.json
@@ -1,3 +1,3 @@
{
- ".": "0.283.0"
+ ".": "0.284.0"
}
\ No newline at end of file
diff --git a/.stats.yml b/.stats.yml
index 2adac204c..31cc203c9 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-70837ed2f8d4ade9021fc0f50bf3cd77cdf05f308c4ed75b2b4dcc42f1ec2378.yml
-openapi_spec_hash: 09cf1c77dce2927cb41426a287a15437
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-b232355836603d9dbb0ca86d4a946b458726531675db3fa1c4feeee10ff41011.yml
+openapi_spec_hash: e986bdc1f77192e14e9075a7b1eac0f9
config_hash: b0b366d8c705ea0efe62093bae953e5a
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 2219cd83c..973493c82 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,13 @@
# Changelog
+## 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)
+
+### Features
+
+* **api:** api update ([70b590e](https://github.com/Increase/increase-java/commit/70b590e20b8b7275f8829a1bdee46f2b5a7729b2))
+
## 0.283.0 (2025-08-15)
Full Changelog: [v0.282.0...v0.283.0](https://github.com/Increase/increase-java/compare/v0.282.0...v0.283.0)
diff --git a/README.md b/README.md
index 1fa22d569..57d34ec06 100644
--- a/README.md
+++ b/README.md
@@ -2,8 +2,8 @@
-[](https://central.sonatype.com/artifact/com.increase.api/increase-java/0.283.0)
-[](https://javadoc.io/doc/com.increase.api/increase-java/0.283.0)
+[](https://central.sonatype.com/artifact/com.increase.api/increase-java/0.284.0)
+[](https://javadoc.io/doc/com.increase.api/increase-java/0.284.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.283.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.284.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.283.0")
+implementation("com.increase.api:increase-java:0.284.0")
```
### Maven
@@ -33,7 +33,7 @@ implementation("com.increase.api:increase-java:0.283.0")
com.increase.api
increase-java
- 0.283.0
+ 0.284.0
```
diff --git a/build.gradle.kts b/build.gradle.kts
index bf15b3627..e580b62e0 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -8,7 +8,7 @@ repositories {
allprojects {
group = "com.increase.api"
- version = "0.283.0" // x-release-please-version
+ version = "0.284.0" // x-release-please-version
}
subprojects {
diff --git a/increase-java-core/src/main/kotlin/com/increase/api/models/wiredrawdownrequests/WireDrawdownRequestCreateParams.kt b/increase-java-core/src/main/kotlin/com/increase/api/models/wiredrawdownrequests/WireDrawdownRequestCreateParams.kt
index 58a21fb8b..92aadbc7d 100644
--- a/increase-java-core/src/main/kotlin/com/increase/api/models/wiredrawdownrequests/WireDrawdownRequestCreateParams.kt
+++ b/increase-java-core/src/main/kotlin/com/increase/api/models/wiredrawdownrequests/WireDrawdownRequestCreateParams.kt
@@ -60,14 +60,6 @@ private constructor(
*/
fun creditorName(): String = body.creditorName()
- /**
- * The debtor's account number.
- *
- * @throws IncreaseInvalidDataException if the JSON field has an unexpected type or is
- * unexpectedly missing or null (e.g. if the server responded with an unexpected value).
- */
- fun debtorAccountNumber(): String = body.debtorAccountNumber()
-
/**
* The debtor's address.
*
@@ -85,20 +77,37 @@ private constructor(
fun debtorName(): String = body.debtorName()
/**
- * The debtor's routing number.
+ * Remittance information the debtor will see as part of the request.
*
* @throws IncreaseInvalidDataException if the JSON field has an unexpected type or is
* unexpectedly missing or null (e.g. if the server responded with an unexpected value).
*/
- fun debtorRoutingNumber(): String = body.debtorRoutingNumber()
+ fun unstructuredRemittanceInformation(): String = body.unstructuredRemittanceInformation()
/**
- * Remittance information the debtor will see as part of the request.
+ * The debtor's account number.
*
- * @throws IncreaseInvalidDataException if the JSON field has an unexpected type or is
- * unexpectedly missing or null (e.g. if the server responded with an unexpected value).
+ * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if the
+ * server responded with an unexpected value).
*/
- fun unstructuredRemittanceInformation(): String = body.unstructuredRemittanceInformation()
+ fun debtorAccountNumber(): Optional = body.debtorAccountNumber()
+
+ /**
+ * The ID of an External Account to initiate a transfer to. If this parameter is provided,
+ * `debtor_account_number` and `debtor_routing_number` must be absent.
+ *
+ * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if the
+ * server responded with an unexpected value).
+ */
+ fun debtorExternalAccountId(): Optional = body.debtorExternalAccountId()
+
+ /**
+ * The debtor's routing number.
+ *
+ * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if the
+ * server responded with an unexpected value).
+ */
+ fun debtorRoutingNumber(): Optional = body.debtorRoutingNumber()
/**
* Returns the raw JSON value of [accountNumberId].
@@ -128,14 +137,6 @@ private constructor(
*/
fun _creditorName(): JsonField = body._creditorName()
- /**
- * Returns the raw JSON value of [debtorAccountNumber].
- *
- * Unlike [debtorAccountNumber], this method doesn't throw if the JSON field has an unexpected
- * type.
- */
- fun _debtorAccountNumber(): JsonField = body._debtorAccountNumber()
-
/**
* Returns the raw JSON value of [debtorAddress].
*
@@ -150,14 +151,6 @@ private constructor(
*/
fun _debtorName(): JsonField = body._debtorName()
- /**
- * Returns the raw JSON value of [debtorRoutingNumber].
- *
- * Unlike [debtorRoutingNumber], this method doesn't throw if the JSON field has an unexpected
- * type.
- */
- fun _debtorRoutingNumber(): JsonField = body._debtorRoutingNumber()
-
/**
* Returns the raw JSON value of [unstructuredRemittanceInformation].
*
@@ -167,6 +160,30 @@ private constructor(
fun _unstructuredRemittanceInformation(): JsonField =
body._unstructuredRemittanceInformation()
+ /**
+ * Returns the raw JSON value of [debtorAccountNumber].
+ *
+ * Unlike [debtorAccountNumber], this method doesn't throw if the JSON field has an unexpected
+ * type.
+ */
+ fun _debtorAccountNumber(): JsonField = body._debtorAccountNumber()
+
+ /**
+ * Returns the raw JSON value of [debtorExternalAccountId].
+ *
+ * Unlike [debtorExternalAccountId], this method doesn't throw if the JSON field has an
+ * unexpected type.
+ */
+ fun _debtorExternalAccountId(): JsonField = body._debtorExternalAccountId()
+
+ /**
+ * Returns the raw JSON value of [debtorRoutingNumber].
+ *
+ * Unlike [debtorRoutingNumber], this method doesn't throw if the JSON field has an unexpected
+ * type.
+ */
+ fun _debtorRoutingNumber(): JsonField = body._debtorRoutingNumber()
+
fun _additionalBodyProperties(): Map = body._additionalProperties()
/** Additional headers to send with the request. */
@@ -189,10 +206,8 @@ private constructor(
* .amount()
* .creditorAddress()
* .creditorName()
- * .debtorAccountNumber()
* .debtorAddress()
* .debtorName()
- * .debtorRoutingNumber()
* .unstructuredRemittanceInformation()
* ```
*/
@@ -224,7 +239,7 @@ private constructor(
* - [amount]
* - [creditorAddress]
* - [creditorName]
- * - [debtorAccountNumber]
+ * - [debtorAddress]
* - etc.
*/
fun body(body: Body) = apply { this.body = body.toBuilder() }
@@ -286,22 +301,6 @@ private constructor(
body.creditorName(creditorName)
}
- /** The debtor's account number. */
- fun debtorAccountNumber(debtorAccountNumber: String) = apply {
- body.debtorAccountNumber(debtorAccountNumber)
- }
-
- /**
- * Sets [Builder.debtorAccountNumber] to an arbitrary JSON value.
- *
- * You should usually call [Builder.debtorAccountNumber] with a well-typed [String] value
- * instead. This method is primarily for setting the field to an undocumented or not yet
- * supported value.
- */
- fun debtorAccountNumber(debtorAccountNumber: JsonField) = apply {
- body.debtorAccountNumber(debtorAccountNumber)
- }
-
/** The debtor's address. */
fun debtorAddress(debtorAddress: DebtorAddress) = apply {
body.debtorAddress(debtorAddress)
@@ -330,22 +329,6 @@ private constructor(
*/
fun debtorName(debtorName: JsonField) = apply { body.debtorName(debtorName) }
- /** The debtor's routing number. */
- fun debtorRoutingNumber(debtorRoutingNumber: String) = apply {
- body.debtorRoutingNumber(debtorRoutingNumber)
- }
-
- /**
- * Sets [Builder.debtorRoutingNumber] to an arbitrary JSON value.
- *
- * You should usually call [Builder.debtorRoutingNumber] with a well-typed [String] value
- * instead. This method is primarily for setting the field to an undocumented or not yet
- * supported value.
- */
- fun debtorRoutingNumber(debtorRoutingNumber: JsonField) = apply {
- body.debtorRoutingNumber(debtorRoutingNumber)
- }
-
/** Remittance information the debtor will see as part of the request. */
fun unstructuredRemittanceInformation(unstructuredRemittanceInformation: String) = apply {
body.unstructuredRemittanceInformation(unstructuredRemittanceInformation)
@@ -362,6 +345,57 @@ private constructor(
unstructuredRemittanceInformation: JsonField
) = apply { body.unstructuredRemittanceInformation(unstructuredRemittanceInformation) }
+ /** The debtor's account number. */
+ fun debtorAccountNumber(debtorAccountNumber: String) = apply {
+ body.debtorAccountNumber(debtorAccountNumber)
+ }
+
+ /**
+ * Sets [Builder.debtorAccountNumber] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.debtorAccountNumber] with a well-typed [String] value
+ * instead. This method is primarily for setting the field to an undocumented or not yet
+ * supported value.
+ */
+ fun debtorAccountNumber(debtorAccountNumber: JsonField) = apply {
+ body.debtorAccountNumber(debtorAccountNumber)
+ }
+
+ /**
+ * The ID of an External Account to initiate a transfer to. If this parameter is provided,
+ * `debtor_account_number` and `debtor_routing_number` must be absent.
+ */
+ fun debtorExternalAccountId(debtorExternalAccountId: String) = apply {
+ body.debtorExternalAccountId(debtorExternalAccountId)
+ }
+
+ /**
+ * 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 {
+ body.debtorExternalAccountId(debtorExternalAccountId)
+ }
+
+ /** The debtor's routing number. */
+ fun debtorRoutingNumber(debtorRoutingNumber: String) = apply {
+ body.debtorRoutingNumber(debtorRoutingNumber)
+ }
+
+ /**
+ * Sets [Builder.debtorRoutingNumber] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.debtorRoutingNumber] with a well-typed [String] value
+ * instead. This method is primarily for setting the field to an undocumented or not yet
+ * supported value.
+ */
+ fun debtorRoutingNumber(debtorRoutingNumber: JsonField) = apply {
+ body.debtorRoutingNumber(debtorRoutingNumber)
+ }
+
fun additionalBodyProperties(additionalBodyProperties: Map) = apply {
body.additionalProperties(additionalBodyProperties)
}
@@ -490,10 +524,8 @@ private constructor(
* .amount()
* .creditorAddress()
* .creditorName()
- * .debtorAccountNumber()
* .debtorAddress()
* .debtorName()
- * .debtorRoutingNumber()
* .unstructuredRemittanceInformation()
* ```
*
@@ -519,11 +551,12 @@ private constructor(
private val amount: JsonField,
private val creditorAddress: JsonField,
private val creditorName: JsonField,
- private val debtorAccountNumber: JsonField,
private val debtorAddress: JsonField,
private val debtorName: JsonField,
- private val debtorRoutingNumber: JsonField,
private val unstructuredRemittanceInformation: JsonField,
+ private val debtorAccountNumber: JsonField,
+ private val debtorExternalAccountId: JsonField,
+ private val debtorRoutingNumber: JsonField,
private val additionalProperties: MutableMap,
) {
@@ -539,31 +572,35 @@ private constructor(
@JsonProperty("creditor_name")
@ExcludeMissing
creditorName: JsonField = JsonMissing.of(),
- @JsonProperty("debtor_account_number")
- @ExcludeMissing
- debtorAccountNumber: JsonField = JsonMissing.of(),
@JsonProperty("debtor_address")
@ExcludeMissing
debtorAddress: JsonField = JsonMissing.of(),
@JsonProperty("debtor_name")
@ExcludeMissing
debtorName: JsonField = JsonMissing.of(),
- @JsonProperty("debtor_routing_number")
- @ExcludeMissing
- debtorRoutingNumber: JsonField = JsonMissing.of(),
@JsonProperty("unstructured_remittance_information")
@ExcludeMissing
unstructuredRemittanceInformation: JsonField = JsonMissing.of(),
+ @JsonProperty("debtor_account_number")
+ @ExcludeMissing
+ debtorAccountNumber: JsonField = JsonMissing.of(),
+ @JsonProperty("debtor_external_account_id")
+ @ExcludeMissing
+ debtorExternalAccountId: JsonField = JsonMissing.of(),
+ @JsonProperty("debtor_routing_number")
+ @ExcludeMissing
+ debtorRoutingNumber: JsonField = JsonMissing.of(),
) : this(
accountNumberId,
amount,
creditorAddress,
creditorName,
- debtorAccountNumber,
debtorAddress,
debtorName,
- debtorRoutingNumber,
unstructuredRemittanceInformation,
+ debtorAccountNumber,
+ debtorExternalAccountId,
+ debtorRoutingNumber,
mutableMapOf(),
)
@@ -599,14 +636,6 @@ private constructor(
*/
fun creditorName(): String = creditorName.getRequired("creditor_name")
- /**
- * The debtor's account number.
- *
- * @throws IncreaseInvalidDataException if the JSON field has an unexpected type or is
- * unexpectedly missing or null (e.g. if the server responded with an unexpected value).
- */
- fun debtorAccountNumber(): String = debtorAccountNumber.getRequired("debtor_account_number")
-
/**
* The debtor's address.
*
@@ -624,21 +653,41 @@ private constructor(
fun debtorName(): String = debtorName.getRequired("debtor_name")
/**
- * The debtor's routing number.
+ * Remittance information the debtor will see as part of the request.
*
* @throws IncreaseInvalidDataException if the JSON field has an unexpected type or is
* unexpectedly missing or null (e.g. if the server responded with an unexpected value).
*/
- fun debtorRoutingNumber(): String = debtorRoutingNumber.getRequired("debtor_routing_number")
+ fun unstructuredRemittanceInformation(): String =
+ unstructuredRemittanceInformation.getRequired("unstructured_remittance_information")
/**
- * Remittance information the debtor will see as part of the request.
+ * The debtor's account number.
*
- * @throws IncreaseInvalidDataException if the JSON field has an unexpected type or is
- * unexpectedly missing or null (e.g. if the server responded with an unexpected value).
+ * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if
+ * the server responded with an unexpected value).
*/
- fun unstructuredRemittanceInformation(): String =
- unstructuredRemittanceInformation.getRequired("unstructured_remittance_information")
+ fun debtorAccountNumber(): Optional =
+ debtorAccountNumber.getOptional("debtor_account_number")
+
+ /**
+ * The ID of an External Account to initiate a transfer to. If this parameter is provided,
+ * `debtor_account_number` and `debtor_routing_number` must be absent.
+ *
+ * @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 routing number.
+ *
+ * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if
+ * the server responded with an unexpected value).
+ */
+ fun debtorRoutingNumber(): Optional =
+ debtorRoutingNumber.getOptional("debtor_routing_number")
/**
* Returns the raw JSON value of [accountNumberId].
@@ -677,16 +726,6 @@ private constructor(
@ExcludeMissing
fun _creditorName(): JsonField = creditorName
- /**
- * Returns the raw JSON value of [debtorAccountNumber].
- *
- * Unlike [debtorAccountNumber], this method doesn't throw if the JSON field has an
- * unexpected type.
- */
- @JsonProperty("debtor_account_number")
- @ExcludeMissing
- fun _debtorAccountNumber(): JsonField = debtorAccountNumber
-
/**
* Returns the raw JSON value of [debtorAddress].
*
@@ -706,16 +745,6 @@ private constructor(
@ExcludeMissing
fun _debtorName(): JsonField = debtorName
- /**
- * Returns the raw JSON value of [debtorRoutingNumber].
- *
- * Unlike [debtorRoutingNumber], this method doesn't throw if the JSON field has an
- * unexpected type.
- */
- @JsonProperty("debtor_routing_number")
- @ExcludeMissing
- fun _debtorRoutingNumber(): JsonField = debtorRoutingNumber
-
/**
* Returns the raw JSON value of [unstructuredRemittanceInformation].
*
@@ -727,6 +756,36 @@ private constructor(
fun _unstructuredRemittanceInformation(): JsonField =
unstructuredRemittanceInformation
+ /**
+ * Returns the raw JSON value of [debtorAccountNumber].
+ *
+ * Unlike [debtorAccountNumber], this method doesn't throw if the JSON field has an
+ * unexpected type.
+ */
+ @JsonProperty("debtor_account_number")
+ @ExcludeMissing
+ fun _debtorAccountNumber(): JsonField = debtorAccountNumber
+
+ /**
+ * 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 [debtorRoutingNumber].
+ *
+ * Unlike [debtorRoutingNumber], this method doesn't throw if the JSON field has an
+ * unexpected type.
+ */
+ @JsonProperty("debtor_routing_number")
+ @ExcludeMissing
+ fun _debtorRoutingNumber(): JsonField = debtorRoutingNumber
+
@JsonAnySetter
private fun putAdditionalProperty(key: String, value: JsonValue) {
additionalProperties.put(key, value)
@@ -750,10 +809,8 @@ private constructor(
* .amount()
* .creditorAddress()
* .creditorName()
- * .debtorAccountNumber()
* .debtorAddress()
* .debtorName()
- * .debtorRoutingNumber()
* .unstructuredRemittanceInformation()
* ```
*/
@@ -767,11 +824,12 @@ private constructor(
private var amount: JsonField? = null
private var creditorAddress: JsonField? = null
private var creditorName: JsonField? = null
- private var debtorAccountNumber: JsonField? = null
private var debtorAddress: JsonField? = null
private var debtorName: JsonField? = null
- private var debtorRoutingNumber: JsonField? = null
private var unstructuredRemittanceInformation: JsonField? = null
+ private var debtorAccountNumber: JsonField = JsonMissing.of()
+ private var debtorExternalAccountId: JsonField = JsonMissing.of()
+ private var debtorRoutingNumber: JsonField = JsonMissing.of()
private var additionalProperties: MutableMap = mutableMapOf()
@JvmSynthetic
@@ -780,11 +838,12 @@ private constructor(
amount = body.amount
creditorAddress = body.creditorAddress
creditorName = body.creditorName
- debtorAccountNumber = body.debtorAccountNumber
debtorAddress = body.debtorAddress
debtorName = body.debtorName
- debtorRoutingNumber = body.debtorRoutingNumber
unstructuredRemittanceInformation = body.unstructuredRemittanceInformation
+ debtorAccountNumber = body.debtorAccountNumber
+ debtorExternalAccountId = body.debtorExternalAccountId
+ debtorRoutingNumber = body.debtorRoutingNumber
additionalProperties = body.additionalProperties.toMutableMap()
}
@@ -844,21 +903,6 @@ private constructor(
this.creditorName = creditorName
}
- /** The debtor's account number. */
- fun debtorAccountNumber(debtorAccountNumber: String) =
- debtorAccountNumber(JsonField.of(debtorAccountNumber))
-
- /**
- * Sets [Builder.debtorAccountNumber] to an arbitrary JSON value.
- *
- * You should usually call [Builder.debtorAccountNumber] with a well-typed [String]
- * value instead. This method is primarily for setting the field to an undocumented or
- * not yet supported value.
- */
- fun debtorAccountNumber(debtorAccountNumber: JsonField) = apply {
- this.debtorAccountNumber = debtorAccountNumber
- }
-
/** The debtor's address. */
fun debtorAddress(debtorAddress: DebtorAddress) =
debtorAddress(JsonField.of(debtorAddress))
@@ -886,21 +930,6 @@ private constructor(
*/
fun debtorName(debtorName: JsonField) = apply { this.debtorName = debtorName }
- /** The debtor's routing number. */
- fun debtorRoutingNumber(debtorRoutingNumber: String) =
- debtorRoutingNumber(JsonField.of(debtorRoutingNumber))
-
- /**
- * Sets [Builder.debtorRoutingNumber] to an arbitrary JSON value.
- *
- * You should usually call [Builder.debtorRoutingNumber] with a well-typed [String]
- * value instead. This method is primarily for setting the field to an undocumented or
- * not yet supported value.
- */
- fun debtorRoutingNumber(debtorRoutingNumber: JsonField) = apply {
- this.debtorRoutingNumber = debtorRoutingNumber
- }
-
/** Remittance information the debtor will see as part of the request. */
fun unstructuredRemittanceInformation(unstructuredRemittanceInformation: String) =
unstructuredRemittanceInformation(JsonField.of(unstructuredRemittanceInformation))
@@ -916,6 +945,54 @@ private constructor(
unstructuredRemittanceInformation: JsonField
) = apply { this.unstructuredRemittanceInformation = unstructuredRemittanceInformation }
+ /** The debtor's account number. */
+ fun debtorAccountNumber(debtorAccountNumber: String) =
+ debtorAccountNumber(JsonField.of(debtorAccountNumber))
+
+ /**
+ * Sets [Builder.debtorAccountNumber] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.debtorAccountNumber] with a well-typed [String]
+ * value instead. This method is primarily for setting the field to an undocumented or
+ * not yet supported value.
+ */
+ fun debtorAccountNumber(debtorAccountNumber: JsonField) = apply {
+ this.debtorAccountNumber = debtorAccountNumber
+ }
+
+ /**
+ * The ID of an External Account to initiate a transfer to. If this parameter is
+ * provided, `debtor_account_number` and `debtor_routing_number` must be absent.
+ */
+ fun debtorExternalAccountId(debtorExternalAccountId: String) =
+ debtorExternalAccountId(JsonField.of(debtorExternalAccountId))
+
+ /**
+ * 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 routing number. */
+ fun debtorRoutingNumber(debtorRoutingNumber: String) =
+ debtorRoutingNumber(JsonField.of(debtorRoutingNumber))
+
+ /**
+ * Sets [Builder.debtorRoutingNumber] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.debtorRoutingNumber] with a well-typed [String]
+ * value instead. This method is primarily for setting the field to an undocumented or
+ * not yet supported value.
+ */
+ fun debtorRoutingNumber(debtorRoutingNumber: JsonField) = apply {
+ this.debtorRoutingNumber = debtorRoutingNumber
+ }
+
fun additionalProperties(additionalProperties: Map) = apply {
this.additionalProperties.clear()
putAllAdditionalProperties(additionalProperties)
@@ -946,10 +1023,8 @@ private constructor(
* .amount()
* .creditorAddress()
* .creditorName()
- * .debtorAccountNumber()
* .debtorAddress()
* .debtorName()
- * .debtorRoutingNumber()
* .unstructuredRemittanceInformation()
* ```
*
@@ -961,14 +1036,15 @@ private constructor(
checkRequired("amount", amount),
checkRequired("creditorAddress", creditorAddress),
checkRequired("creditorName", creditorName),
- checkRequired("debtorAccountNumber", debtorAccountNumber),
checkRequired("debtorAddress", debtorAddress),
checkRequired("debtorName", debtorName),
- checkRequired("debtorRoutingNumber", debtorRoutingNumber),
checkRequired(
"unstructuredRemittanceInformation",
unstructuredRemittanceInformation,
),
+ debtorAccountNumber,
+ debtorExternalAccountId,
+ debtorRoutingNumber,
additionalProperties.toMutableMap(),
)
}
@@ -984,11 +1060,12 @@ private constructor(
amount()
creditorAddress().validate()
creditorName()
- debtorAccountNumber()
debtorAddress().validate()
debtorName()
- debtorRoutingNumber()
unstructuredRemittanceInformation()
+ debtorAccountNumber()
+ debtorExternalAccountId()
+ debtorRoutingNumber()
validated = true
}
@@ -1012,11 +1089,12 @@ private constructor(
(if (amount.asKnown().isPresent) 1 else 0) +
(creditorAddress.asKnown().getOrNull()?.validity() ?: 0) +
(if (creditorName.asKnown().isPresent) 1 else 0) +
- (if (debtorAccountNumber.asKnown().isPresent) 1 else 0) +
(debtorAddress.asKnown().getOrNull()?.validity() ?: 0) +
(if (debtorName.asKnown().isPresent) 1 else 0) +
- (if (debtorRoutingNumber.asKnown().isPresent) 1 else 0) +
- (if (unstructuredRemittanceInformation.asKnown().isPresent) 1 else 0)
+ (if (unstructuredRemittanceInformation.asKnown().isPresent) 1 else 0) +
+ (if (debtorAccountNumber.asKnown().isPresent) 1 else 0) +
+ (if (debtorExternalAccountId.asKnown().isPresent) 1 else 0) +
+ (if (debtorRoutingNumber.asKnown().isPresent) 1 else 0)
override fun equals(other: Any?): Boolean {
if (this === other) {
@@ -1028,11 +1106,12 @@ private constructor(
amount == other.amount &&
creditorAddress == other.creditorAddress &&
creditorName == other.creditorName &&
- debtorAccountNumber == other.debtorAccountNumber &&
debtorAddress == other.debtorAddress &&
debtorName == other.debtorName &&
- debtorRoutingNumber == other.debtorRoutingNumber &&
unstructuredRemittanceInformation == other.unstructuredRemittanceInformation &&
+ debtorAccountNumber == other.debtorAccountNumber &&
+ debtorExternalAccountId == other.debtorExternalAccountId &&
+ debtorRoutingNumber == other.debtorRoutingNumber &&
additionalProperties == other.additionalProperties
}
@@ -1042,11 +1121,12 @@ private constructor(
amount,
creditorAddress,
creditorName,
- debtorAccountNumber,
debtorAddress,
debtorName,
- debtorRoutingNumber,
unstructuredRemittanceInformation,
+ debtorAccountNumber,
+ debtorExternalAccountId,
+ debtorRoutingNumber,
additionalProperties,
)
}
@@ -1054,7 +1134,7 @@ private constructor(
override fun hashCode(): Int = hashCode
override fun toString() =
- "Body{accountNumberId=$accountNumberId, amount=$amount, creditorAddress=$creditorAddress, creditorName=$creditorName, debtorAccountNumber=$debtorAccountNumber, debtorAddress=$debtorAddress, debtorName=$debtorName, debtorRoutingNumber=$debtorRoutingNumber, unstructuredRemittanceInformation=$unstructuredRemittanceInformation, additionalProperties=$additionalProperties}"
+ "Body{accountNumberId=$accountNumberId, amount=$amount, creditorAddress=$creditorAddress, creditorName=$creditorName, debtorAddress=$debtorAddress, debtorName=$debtorName, unstructuredRemittanceInformation=$unstructuredRemittanceInformation, debtorAccountNumber=$debtorAccountNumber, debtorExternalAccountId=$debtorExternalAccountId, debtorRoutingNumber=$debtorRoutingNumber, additionalProperties=$additionalProperties}"
}
/** The creditor's address. */
diff --git a/increase-java-core/src/test/kotlin/com/increase/api/models/wiredrawdownrequests/WireDrawdownRequestCreateParamsTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/models/wiredrawdownrequests/WireDrawdownRequestCreateParamsTest.kt
index 8e65ff33b..953c6cbd9 100644
--- a/increase-java-core/src/test/kotlin/com/increase/api/models/wiredrawdownrequests/WireDrawdownRequestCreateParamsTest.kt
+++ b/increase-java-core/src/test/kotlin/com/increase/api/models/wiredrawdownrequests/WireDrawdownRequestCreateParamsTest.kt
@@ -23,7 +23,6 @@ internal class WireDrawdownRequestCreateParamsTest {
.build()
)
.creditorName("National Phonograph Company")
- .debtorAccountNumber("987654321")
.debtorAddress(
WireDrawdownRequestCreateParams.DebtorAddress.builder()
.city("New York")
@@ -35,8 +34,10 @@ internal class WireDrawdownRequestCreateParamsTest {
.build()
)
.debtorName("Ian Crease")
- .debtorRoutingNumber("101050001")
.unstructuredRemittanceInformation("Invoice 29582")
+ .debtorAccountNumber("987654321")
+ .debtorExternalAccountId("debtor_external_account_id")
+ .debtorRoutingNumber("101050001")
.build()
}
@@ -57,7 +58,6 @@ internal class WireDrawdownRequestCreateParamsTest {
.build()
)
.creditorName("National Phonograph Company")
- .debtorAccountNumber("987654321")
.debtorAddress(
WireDrawdownRequestCreateParams.DebtorAddress.builder()
.city("New York")
@@ -69,8 +69,10 @@ internal class WireDrawdownRequestCreateParamsTest {
.build()
)
.debtorName("Ian Crease")
- .debtorRoutingNumber("101050001")
.unstructuredRemittanceInformation("Invoice 29582")
+ .debtorAccountNumber("987654321")
+ .debtorExternalAccountId("debtor_external_account_id")
+ .debtorRoutingNumber("101050001")
.build()
val body = params._body()
@@ -89,7 +91,6 @@ internal class WireDrawdownRequestCreateParamsTest {
.build()
)
assertThat(body.creditorName()).isEqualTo("National Phonograph Company")
- assertThat(body.debtorAccountNumber()).isEqualTo("987654321")
assertThat(body.debtorAddress())
.isEqualTo(
WireDrawdownRequestCreateParams.DebtorAddress.builder()
@@ -102,8 +103,10 @@ internal class WireDrawdownRequestCreateParamsTest {
.build()
)
assertThat(body.debtorName()).isEqualTo("Ian Crease")
- assertThat(body.debtorRoutingNumber()).isEqualTo("101050001")
assertThat(body.unstructuredRemittanceInformation()).isEqualTo("Invoice 29582")
+ assertThat(body.debtorAccountNumber()).contains("987654321")
+ assertThat(body.debtorExternalAccountId()).contains("debtor_external_account_id")
+ assertThat(body.debtorRoutingNumber()).contains("101050001")
}
@Test
@@ -120,7 +123,6 @@ internal class WireDrawdownRequestCreateParamsTest {
.build()
)
.creditorName("National Phonograph Company")
- .debtorAccountNumber("987654321")
.debtorAddress(
WireDrawdownRequestCreateParams.DebtorAddress.builder()
.city("New York")
@@ -129,7 +131,6 @@ internal class WireDrawdownRequestCreateParamsTest {
.build()
)
.debtorName("Ian Crease")
- .debtorRoutingNumber("101050001")
.unstructuredRemittanceInformation("Invoice 29582")
.build()
@@ -146,7 +147,6 @@ internal class WireDrawdownRequestCreateParamsTest {
.build()
)
assertThat(body.creditorName()).isEqualTo("National Phonograph Company")
- assertThat(body.debtorAccountNumber()).isEqualTo("987654321")
assertThat(body.debtorAddress())
.isEqualTo(
WireDrawdownRequestCreateParams.DebtorAddress.builder()
@@ -156,7 +156,6 @@ internal class WireDrawdownRequestCreateParamsTest {
.build()
)
assertThat(body.debtorName()).isEqualTo("Ian Crease")
- assertThat(body.debtorRoutingNumber()).isEqualTo("101050001")
assertThat(body.unstructuredRemittanceInformation()).isEqualTo("Invoice 29582")
}
}
diff --git a/increase-java-core/src/test/kotlin/com/increase/api/services/async/WireDrawdownRequestServiceAsyncTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/services/async/WireDrawdownRequestServiceAsyncTest.kt
index c1ebbd5c4..68f966318 100644
--- a/increase-java-core/src/test/kotlin/com/increase/api/services/async/WireDrawdownRequestServiceAsyncTest.kt
+++ b/increase-java-core/src/test/kotlin/com/increase/api/services/async/WireDrawdownRequestServiceAsyncTest.kt
@@ -36,7 +36,6 @@ internal class WireDrawdownRequestServiceAsyncTest {
.build()
)
.creditorName("National Phonograph Company")
- .debtorAccountNumber("987654321")
.debtorAddress(
WireDrawdownRequestCreateParams.DebtorAddress.builder()
.city("New York")
@@ -48,8 +47,10 @@ internal class WireDrawdownRequestServiceAsyncTest {
.build()
)
.debtorName("Ian Crease")
- .debtorRoutingNumber("101050001")
.unstructuredRemittanceInformation("Invoice 29582")
+ .debtorAccountNumber("987654321")
+ .debtorExternalAccountId("debtor_external_account_id")
+ .debtorRoutingNumber("101050001")
.build()
)
diff --git a/increase-java-core/src/test/kotlin/com/increase/api/services/blocking/WireDrawdownRequestServiceTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/services/blocking/WireDrawdownRequestServiceTest.kt
index 2ae36ad33..2b12197e8 100644
--- a/increase-java-core/src/test/kotlin/com/increase/api/services/blocking/WireDrawdownRequestServiceTest.kt
+++ b/increase-java-core/src/test/kotlin/com/increase/api/services/blocking/WireDrawdownRequestServiceTest.kt
@@ -36,7 +36,6 @@ internal class WireDrawdownRequestServiceTest {
.build()
)
.creditorName("National Phonograph Company")
- .debtorAccountNumber("987654321")
.debtorAddress(
WireDrawdownRequestCreateParams.DebtorAddress.builder()
.city("New York")
@@ -48,8 +47,10 @@ internal class WireDrawdownRequestServiceTest {
.build()
)
.debtorName("Ian Crease")
- .debtorRoutingNumber("101050001")
.unstructuredRemittanceInformation("Invoice 29582")
+ .debtorAccountNumber("987654321")
+ .debtorExternalAccountId("debtor_external_account_id")
+ .debtorRoutingNumber("101050001")
.build()
)