diff --git a/.release-please-manifest.json b/.release-please-manifest.json
index 6db6d4bca..2ba9753d1 100644
--- a/.release-please-manifest.json
+++ b/.release-please-manifest.json
@@ -1,3 +1,3 @@
{
- ".": "0.351.0"
+ ".": "0.352.0"
}
\ No newline at end of file
diff --git a/.stats.yml b/.stats.yml
index 748c5a918..ac4f56fb9 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-f55c7bc0881d1c7bcc906156155a0e43c6b8866050f778db3befebe14d42208f.yml
-openapi_spec_hash: 78c5274b08b5e7ae5e16da80d733bc10
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-39280e79454a4e6c0e7161b5d92520a3edfc335cce9b198565e57c94daa31b04.yml
+openapi_spec_hash: f992030218a4415fcec934bf482cb7ae
config_hash: eb2035151c7b49c2f12caf55469b8f9a
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 4826f5b86..9af384343 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,13 @@
# Changelog
+## 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)
+
+### Features
+
+* **api:** api update ([43d6d70](https://github.com/Increase/increase-java/commit/43d6d70689edda40dfc1c3917a3c0a204956260e))
+
## 0.351.0 (2025-11-05)
Full Changelog: [v0.350.0...v0.351.0](https://github.com/Increase/increase-java/compare/v0.350.0...v0.351.0)
diff --git a/README.md b/README.md
index e82e7f530..fb95fb4af 100644
--- a/README.md
+++ b/README.md
@@ -2,8 +2,8 @@
-[](https://central.sonatype.com/artifact/com.increase.api/increase-java/0.351.0)
-[](https://javadoc.io/doc/com.increase.api/increase-java/0.351.0)
+[](https://central.sonatype.com/artifact/com.increase.api/increase-java/0.352.0)
+[](https://javadoc.io/doc/com.increase.api/increase-java/0.352.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.351.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.352.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.351.0")
+implementation("com.increase.api:increase-java:0.352.0")
```
### Maven
@@ -33,7 +33,7 @@ implementation("com.increase.api:increase-java:0.351.0")
com.increase.api
increase-java
- 0.351.0
+ 0.352.0
```
diff --git a/build.gradle.kts b/build.gradle.kts
index fc4505d2f..80dae649c 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -8,7 +8,7 @@ repositories {
allprojects {
group = "com.increase.api"
- version = "0.351.0" // x-release-please-version
+ version = "0.352.0" // x-release-please-version
}
subprojects {
diff --git a/increase-java-core/src/main/kotlin/com/increase/api/models/checktransfers/CheckTransfer.kt b/increase-java-core/src/main/kotlin/com/increase/api/models/checktransfers/CheckTransfer.kt
index e853b4ae4..6710e07d2 100644
--- a/increase-java-core/src/main/kotlin/com/increase/api/models/checktransfers/CheckTransfer.kt
+++ b/increase-java-core/src/main/kotlin/com/increase/api/models/checktransfers/CheckTransfer.kt
@@ -15,6 +15,7 @@ import com.increase.api.core.checkKnown
import com.increase.api.core.checkRequired
import com.increase.api.core.toImmutable
import com.increase.api.errors.IncreaseInvalidDataException
+import java.time.LocalDate
import java.time.OffsetDateTime
import java.util.Collections
import java.util.Objects
@@ -49,6 +50,7 @@ private constructor(
private val submission: JsonField,
private val thirdParty: JsonField,
private val type: JsonField,
+ private val validUntilDate: JsonField,
private val additionalProperties: MutableMap,
) {
@@ -110,6 +112,9 @@ private constructor(
@ExcludeMissing
thirdParty: JsonField = JsonMissing.of(),
@JsonProperty("type") @ExcludeMissing type: JsonField = JsonMissing.of(),
+ @JsonProperty("valid_until_date")
+ @ExcludeMissing
+ validUntilDate: JsonField = JsonMissing.of(),
) : this(
id,
accountId,
@@ -135,6 +140,7 @@ private constructor(
submission,
thirdParty,
type,
+ validUntilDate,
mutableMapOf(),
)
@@ -346,6 +352,16 @@ private constructor(
*/
fun type(): Type = type.getRequired("type")
+ /**
+ * If set, the check will be valid on or before this date. After this date, the check transfer
+ * will be stopped and deposits will not be accepted. For checks printed by Increase, this date
+ * is included on the check as its expiry.
+ *
+ * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if the
+ * server responded with an unexpected value).
+ */
+ fun validUntilDate(): Optional = validUntilDate.getOptional("valid_until_date")
+
/**
* Returns the raw JSON value of [id].
*
@@ -549,6 +565,15 @@ private constructor(
*/
@JsonProperty("type") @ExcludeMissing fun _type(): JsonField = type
+ /**
+ * Returns the raw JSON value of [validUntilDate].
+ *
+ * Unlike [validUntilDate], this method doesn't throw if the JSON field has an unexpected type.
+ */
+ @JsonProperty("valid_until_date")
+ @ExcludeMissing
+ fun _validUntilDate(): JsonField = validUntilDate
+
@JsonAnySetter
private fun putAdditionalProperty(key: String, value: JsonValue) {
additionalProperties.put(key, value)
@@ -592,6 +617,7 @@ private constructor(
* .submission()
* .thirdParty()
* .type()
+ * .validUntilDate()
* ```
*/
@JvmStatic fun builder() = Builder()
@@ -624,6 +650,7 @@ private constructor(
private var submission: JsonField? = null
private var thirdParty: JsonField? = null
private var type: JsonField? = null
+ private var validUntilDate: JsonField? = null
private var additionalProperties: MutableMap = mutableMapOf()
@JvmSynthetic
@@ -652,6 +679,7 @@ private constructor(
submission = checkTransfer.submission
thirdParty = checkTransfer.thirdParty
type = checkTransfer.type
+ validUntilDate = checkTransfer.validUntilDate
additionalProperties = checkTransfer.additionalProperties.toMutableMap()
}
@@ -1063,6 +1091,29 @@ private constructor(
*/
fun type(type: JsonField) = apply { this.type = type }
+ /**
+ * If set, the check will be valid on or before this date. After this date, the check
+ * transfer will be stopped and deposits will not be accepted. For checks printed by
+ * Increase, this date is included on the check as its expiry.
+ */
+ fun validUntilDate(validUntilDate: LocalDate?) =
+ validUntilDate(JsonField.ofNullable(validUntilDate))
+
+ /** Alias for calling [Builder.validUntilDate] with `validUntilDate.orElse(null)`. */
+ fun validUntilDate(validUntilDate: Optional) =
+ validUntilDate(validUntilDate.getOrNull())
+
+ /**
+ * Sets [Builder.validUntilDate] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.validUntilDate] with a well-typed [LocalDate] value
+ * instead. This method is primarily for setting the field to an undocumented or not yet
+ * supported value.
+ */
+ fun validUntilDate(validUntilDate: JsonField) = apply {
+ this.validUntilDate = validUntilDate
+ }
+
fun additionalProperties(additionalProperties: Map) = apply {
this.additionalProperties.clear()
putAllAdditionalProperties(additionalProperties)
@@ -1113,6 +1164,7 @@ private constructor(
* .submission()
* .thirdParty()
* .type()
+ * .validUntilDate()
* ```
*
* @throws IllegalStateException if any required field is unset.
@@ -1143,6 +1195,7 @@ private constructor(
checkRequired("submission", submission),
checkRequired("thirdParty", thirdParty),
checkRequired("type", type),
+ checkRequired("validUntilDate", validUntilDate),
additionalProperties.toMutableMap(),
)
}
@@ -1178,6 +1231,7 @@ private constructor(
submission().ifPresent { it.validate() }
thirdParty().ifPresent { it.validate() }
type().validate()
+ validUntilDate()
validated = true
}
@@ -1219,7 +1273,8 @@ private constructor(
(stopPaymentRequest.asKnown().getOrNull()?.validity() ?: 0) +
(submission.asKnown().getOrNull()?.validity() ?: 0) +
(thirdParty.asKnown().getOrNull()?.validity() ?: 0) +
- (type.asKnown().getOrNull()?.validity() ?: 0)
+ (type.asKnown().getOrNull()?.validity() ?: 0) +
+ (if (validUntilDate.asKnown().isPresent) 1 else 0)
/**
* If your account requires approvals for transfers and the transfer was approved, this will
@@ -7384,6 +7439,7 @@ private constructor(
submission == other.submission &&
thirdParty == other.thirdParty &&
type == other.type &&
+ validUntilDate == other.validUntilDate &&
additionalProperties == other.additionalProperties
}
@@ -7413,6 +7469,7 @@ private constructor(
submission,
thirdParty,
type,
+ validUntilDate,
additionalProperties,
)
}
@@ -7420,5 +7477,5 @@ private constructor(
override fun hashCode(): Int = hashCode
override fun toString() =
- "CheckTransfer{id=$id, accountId=$accountId, accountNumber=$accountNumber, amount=$amount, approval=$approval, approvedInboundCheckDepositId=$approvedInboundCheckDepositId, balanceCheck=$balanceCheck, cancellation=$cancellation, checkNumber=$checkNumber, createdAt=$createdAt, createdBy=$createdBy, currency=$currency, fulfillmentMethod=$fulfillmentMethod, idempotencyKey=$idempotencyKey, mailing=$mailing, pendingTransactionId=$pendingTransactionId, physicalCheck=$physicalCheck, routingNumber=$routingNumber, sourceAccountNumberId=$sourceAccountNumberId, status=$status, stopPaymentRequest=$stopPaymentRequest, submission=$submission, thirdParty=$thirdParty, type=$type, additionalProperties=$additionalProperties}"
+ "CheckTransfer{id=$id, accountId=$accountId, accountNumber=$accountNumber, amount=$amount, approval=$approval, approvedInboundCheckDepositId=$approvedInboundCheckDepositId, balanceCheck=$balanceCheck, cancellation=$cancellation, checkNumber=$checkNumber, createdAt=$createdAt, createdBy=$createdBy, currency=$currency, fulfillmentMethod=$fulfillmentMethod, idempotencyKey=$idempotencyKey, mailing=$mailing, pendingTransactionId=$pendingTransactionId, physicalCheck=$physicalCheck, routingNumber=$routingNumber, sourceAccountNumberId=$sourceAccountNumberId, status=$status, stopPaymentRequest=$stopPaymentRequest, submission=$submission, thirdParty=$thirdParty, type=$type, validUntilDate=$validUntilDate, additionalProperties=$additionalProperties}"
}
diff --git a/increase-java-core/src/main/kotlin/com/increase/api/models/checktransfers/CheckTransferCreateParams.kt b/increase-java-core/src/main/kotlin/com/increase/api/models/checktransfers/CheckTransferCreateParams.kt
index 52bf09fa0..ee943d95f 100644
--- a/increase-java-core/src/main/kotlin/com/increase/api/models/checktransfers/CheckTransferCreateParams.kt
+++ b/increase-java-core/src/main/kotlin/com/increase/api/models/checktransfers/CheckTransferCreateParams.kt
@@ -18,6 +18,7 @@ import com.increase.api.core.http.Headers
import com.increase.api.core.http.QueryParams
import com.increase.api.core.toImmutable
import com.increase.api.errors.IncreaseInvalidDataException
+import java.time.LocalDate
import java.util.Collections
import java.util.Objects
import java.util.Optional
@@ -110,6 +111,16 @@ private constructor(
*/
fun thirdParty(): Optional = body.thirdParty()
+ /**
+ * If provided, the check will be valid on or before this date. After this date, the check
+ * transfer will be stopped and deposits will not be accepted. For checks printed by Increase,
+ * this date is included on the check as its expiry.
+ *
+ * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if the
+ * server responded with an unexpected value).
+ */
+ fun validUntilDate(): Optional = body.validUntilDate()
+
/**
* Returns the raw JSON value of [accountId].
*
@@ -175,6 +186,13 @@ private constructor(
*/
fun _thirdParty(): JsonField = body._thirdParty()
+ /**
+ * Returns the raw JSON value of [validUntilDate].
+ *
+ * Unlike [validUntilDate], this method doesn't throw if the JSON field has an unexpected type.
+ */
+ fun _validUntilDate(): JsonField = body._validUntilDate()
+
fun _additionalBodyProperties(): Map = body._additionalProperties()
/** Additional headers to send with the request. */
@@ -372,6 +390,26 @@ private constructor(
*/
fun thirdParty(thirdParty: JsonField) = apply { body.thirdParty(thirdParty) }
+ /**
+ * If provided, the check will be valid on or before this date. After this date, the check
+ * transfer will be stopped and deposits will not be accepted. For checks printed by
+ * Increase, this date is included on the check as its expiry.
+ */
+ fun validUntilDate(validUntilDate: LocalDate) = apply {
+ body.validUntilDate(validUntilDate)
+ }
+
+ /**
+ * Sets [Builder.validUntilDate] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.validUntilDate] with a well-typed [LocalDate] value
+ * instead. This method is primarily for setting the field to an undocumented or not yet
+ * supported value.
+ */
+ fun validUntilDate(validUntilDate: JsonField) = apply {
+ body.validUntilDate(validUntilDate)
+ }
+
fun additionalBodyProperties(additionalBodyProperties: Map) = apply {
body.additionalProperties(additionalBodyProperties)
}
@@ -530,6 +568,7 @@ private constructor(
private val physicalCheck: JsonField,
private val requireApproval: JsonField,
private val thirdParty: JsonField,
+ private val validUntilDate: JsonField,
private val additionalProperties: MutableMap,
) {
@@ -560,6 +599,9 @@ private constructor(
@JsonProperty("third_party")
@ExcludeMissing
thirdParty: JsonField = JsonMissing.of(),
+ @JsonProperty("valid_until_date")
+ @ExcludeMissing
+ validUntilDate: JsonField = JsonMissing.of(),
) : this(
accountId,
amount,
@@ -570,6 +612,7 @@ private constructor(
physicalCheck,
requireApproval,
thirdParty,
+ validUntilDate,
mutableMapOf(),
)
@@ -655,6 +698,16 @@ private constructor(
*/
fun thirdParty(): Optional = thirdParty.getOptional("third_party")
+ /**
+ * If provided, the check will be valid on or before this date. After this date, the check
+ * transfer will be stopped and deposits will not be accepted. For checks printed by
+ * Increase, this date is included on the check as its expiry.
+ *
+ * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if
+ * the server responded with an unexpected value).
+ */
+ fun validUntilDate(): Optional = validUntilDate.getOptional("valid_until_date")
+
/**
* Returns the raw JSON value of [accountId].
*
@@ -737,6 +790,16 @@ private constructor(
@ExcludeMissing
fun _thirdParty(): JsonField = thirdParty
+ /**
+ * Returns the raw JSON value of [validUntilDate].
+ *
+ * Unlike [validUntilDate], this method doesn't throw if the JSON field has an unexpected
+ * type.
+ */
+ @JsonProperty("valid_until_date")
+ @ExcludeMissing
+ fun _validUntilDate(): JsonField = validUntilDate
+
@JsonAnySetter
private fun putAdditionalProperty(key: String, value: JsonValue) {
additionalProperties.put(key, value)
@@ -777,6 +840,7 @@ private constructor(
private var physicalCheck: JsonField = JsonMissing.of()
private var requireApproval: JsonField = JsonMissing.of()
private var thirdParty: JsonField = JsonMissing.of()
+ private var validUntilDate: JsonField = JsonMissing.of()
private var additionalProperties: MutableMap = mutableMapOf()
@JvmSynthetic
@@ -790,6 +854,7 @@ private constructor(
physicalCheck = body.physicalCheck
requireApproval = body.requireApproval
thirdParty = body.thirdParty
+ validUntilDate = body.validUntilDate
additionalProperties = body.additionalProperties.toMutableMap()
}
@@ -937,6 +1002,25 @@ private constructor(
this.thirdParty = thirdParty
}
+ /**
+ * If provided, the check will be valid on or before this date. After this date, the
+ * check transfer will be stopped and deposits will not be accepted. For checks printed
+ * by Increase, this date is included on the check as its expiry.
+ */
+ fun validUntilDate(validUntilDate: LocalDate) =
+ validUntilDate(JsonField.of(validUntilDate))
+
+ /**
+ * Sets [Builder.validUntilDate] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.validUntilDate] with a well-typed [LocalDate] value
+ * instead. This method is primarily for setting the field to an undocumented or not yet
+ * supported value.
+ */
+ fun validUntilDate(validUntilDate: JsonField) = apply {
+ this.validUntilDate = validUntilDate
+ }
+
fun additionalProperties(additionalProperties: Map) = apply {
this.additionalProperties.clear()
putAllAdditionalProperties(additionalProperties)
@@ -982,6 +1066,7 @@ private constructor(
physicalCheck,
requireApproval,
thirdParty,
+ validUntilDate,
additionalProperties.toMutableMap(),
)
}
@@ -1002,6 +1087,7 @@ private constructor(
physicalCheck().ifPresent { it.validate() }
requireApproval()
thirdParty().ifPresent { it.validate() }
+ validUntilDate()
validated = true
}
@@ -1029,7 +1115,8 @@ private constructor(
(if (checkNumber.asKnown().isPresent) 1 else 0) +
(physicalCheck.asKnown().getOrNull()?.validity() ?: 0) +
(if (requireApproval.asKnown().isPresent) 1 else 0) +
- (thirdParty.asKnown().getOrNull()?.validity() ?: 0)
+ (thirdParty.asKnown().getOrNull()?.validity() ?: 0) +
+ (if (validUntilDate.asKnown().isPresent) 1 else 0)
override fun equals(other: Any?): Boolean {
if (this === other) {
@@ -1046,6 +1133,7 @@ private constructor(
physicalCheck == other.physicalCheck &&
requireApproval == other.requireApproval &&
thirdParty == other.thirdParty &&
+ validUntilDate == other.validUntilDate &&
additionalProperties == other.additionalProperties
}
@@ -1060,6 +1148,7 @@ private constructor(
physicalCheck,
requireApproval,
thirdParty,
+ validUntilDate,
additionalProperties,
)
}
@@ -1067,7 +1156,7 @@ private constructor(
override fun hashCode(): Int = hashCode
override fun toString() =
- "Body{accountId=$accountId, amount=$amount, fulfillmentMethod=$fulfillmentMethod, sourceAccountNumberId=$sourceAccountNumberId, balanceCheck=$balanceCheck, checkNumber=$checkNumber, physicalCheck=$physicalCheck, requireApproval=$requireApproval, thirdParty=$thirdParty, additionalProperties=$additionalProperties}"
+ "Body{accountId=$accountId, amount=$amount, fulfillmentMethod=$fulfillmentMethod, sourceAccountNumberId=$sourceAccountNumberId, balanceCheck=$balanceCheck, checkNumber=$checkNumber, physicalCheck=$physicalCheck, requireApproval=$requireApproval, thirdParty=$thirdParty, validUntilDate=$validUntilDate, additionalProperties=$additionalProperties}"
}
/** Whether Increase will print and mail the check or if you will do it yourself. */
diff --git a/increase-java-core/src/test/kotlin/com/increase/api/models/checktransfers/CheckTransferCreateParamsTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/models/checktransfers/CheckTransferCreateParamsTest.kt
index 18a5ec6e4..a2186b38a 100644
--- a/increase-java-core/src/test/kotlin/com/increase/api/models/checktransfers/CheckTransferCreateParamsTest.kt
+++ b/increase-java-core/src/test/kotlin/com/increase/api/models/checktransfers/CheckTransferCreateParamsTest.kt
@@ -2,6 +2,7 @@
package com.increase.api.models.checktransfers
+import java.time.LocalDate
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
@@ -54,6 +55,7 @@ internal class CheckTransferCreateParamsTest {
)
.requireApproval(true)
.thirdParty(CheckTransferCreateParams.ThirdParty.builder().recipientName("x").build())
+ .validUntilDate(LocalDate.parse("2019-12-27"))
.build()
}
@@ -107,6 +109,7 @@ internal class CheckTransferCreateParamsTest {
.thirdParty(
CheckTransferCreateParams.ThirdParty.builder().recipientName("x").build()
)
+ .validUntilDate(LocalDate.parse("2019-12-27"))
.build()
val body = params._body()
@@ -158,6 +161,7 @@ internal class CheckTransferCreateParamsTest {
assertThat(body.requireApproval()).contains(true)
assertThat(body.thirdParty())
.contains(CheckTransferCreateParams.ThirdParty.builder().recipientName("x").build())
+ assertThat(body.validUntilDate()).contains(LocalDate.parse("2019-12-27"))
}
@Test
diff --git a/increase-java-core/src/test/kotlin/com/increase/api/models/checktransfers/CheckTransferListPageResponseTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/models/checktransfers/CheckTransferListPageResponseTest.kt
index f1b756cfa..42adbcee0 100644
--- a/increase-java-core/src/test/kotlin/com/increase/api/models/checktransfers/CheckTransferListPageResponseTest.kt
+++ b/increase-java-core/src/test/kotlin/com/increase/api/models/checktransfers/CheckTransferListPageResponseTest.kt
@@ -160,6 +160,7 @@ internal class CheckTransferListPageResponseTest {
.build()
)
.type(CheckTransfer.Type.CHECK_TRANSFER)
+ .validUntilDate(null)
.build()
)
.nextCursor("v57w5d")
@@ -308,6 +309,7 @@ internal class CheckTransferListPageResponseTest {
CheckTransfer.ThirdParty.builder().recipientName("recipient_name").build()
)
.type(CheckTransfer.Type.CHECK_TRANSFER)
+ .validUntilDate(null)
.build()
)
assertThat(checkTransferListPageResponse.nextCursor()).contains("v57w5d")
@@ -464,6 +466,7 @@ internal class CheckTransferListPageResponseTest {
.build()
)
.type(CheckTransfer.Type.CHECK_TRANSFER)
+ .validUntilDate(null)
.build()
)
.nextCursor("v57w5d")
diff --git a/increase-java-core/src/test/kotlin/com/increase/api/models/checktransfers/CheckTransferTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/models/checktransfers/CheckTransferTest.kt
index de3f5a2eb..c4eb8806d 100644
--- a/increase-java-core/src/test/kotlin/com/increase/api/models/checktransfers/CheckTransferTest.kt
+++ b/increase-java-core/src/test/kotlin/com/increase/api/models/checktransfers/CheckTransferTest.kt
@@ -149,6 +149,7 @@ internal class CheckTransferTest {
CheckTransfer.ThirdParty.builder().recipientName("recipient_name").build()
)
.type(CheckTransfer.Type.CHECK_TRANSFER)
+ .validUntilDate(null)
.build()
assertThat(checkTransfer.id()).isEqualTo("check_transfer_30b43acfu9vw8fyc4f5")
@@ -290,6 +291,7 @@ internal class CheckTransferTest {
assertThat(checkTransfer.thirdParty())
.contains(CheckTransfer.ThirdParty.builder().recipientName("recipient_name").build())
assertThat(checkTransfer.type()).isEqualTo(CheckTransfer.Type.CHECK_TRANSFER)
+ assertThat(checkTransfer.validUntilDate()).isEmpty
}
@Test
@@ -432,6 +434,7 @@ internal class CheckTransferTest {
CheckTransfer.ThirdParty.builder().recipientName("recipient_name").build()
)
.type(CheckTransfer.Type.CHECK_TRANSFER)
+ .validUntilDate(null)
.build()
val roundtrippedCheckTransfer =
diff --git a/increase-java-core/src/test/kotlin/com/increase/api/services/async/CheckTransferServiceAsyncTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/services/async/CheckTransferServiceAsyncTest.kt
index 6f02ccc1c..74729f083 100644
--- a/increase-java-core/src/test/kotlin/com/increase/api/services/async/CheckTransferServiceAsyncTest.kt
+++ b/increase-java-core/src/test/kotlin/com/increase/api/services/async/CheckTransferServiceAsyncTest.kt
@@ -6,6 +6,7 @@ import com.increase.api.TestServerExtension
import com.increase.api.client.okhttp.IncreaseOkHttpClientAsync
import com.increase.api.models.checktransfers.CheckTransferCreateParams
import com.increase.api.models.checktransfers.CheckTransferStopPaymentParams
+import java.time.LocalDate
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.extension.ExtendWith
@@ -71,6 +72,7 @@ internal class CheckTransferServiceAsyncTest {
.thirdParty(
CheckTransferCreateParams.ThirdParty.builder().recipientName("x").build()
)
+ .validUntilDate(LocalDate.parse("2019-12-27"))
.build()
)
diff --git a/increase-java-core/src/test/kotlin/com/increase/api/services/blocking/CheckTransferServiceTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/services/blocking/CheckTransferServiceTest.kt
index 9842dafb7..353a1d286 100644
--- a/increase-java-core/src/test/kotlin/com/increase/api/services/blocking/CheckTransferServiceTest.kt
+++ b/increase-java-core/src/test/kotlin/com/increase/api/services/blocking/CheckTransferServiceTest.kt
@@ -6,6 +6,7 @@ import com.increase.api.TestServerExtension
import com.increase.api.client.okhttp.IncreaseOkHttpClient
import com.increase.api.models.checktransfers.CheckTransferCreateParams
import com.increase.api.models.checktransfers.CheckTransferStopPaymentParams
+import java.time.LocalDate
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.extension.ExtendWith
@@ -71,6 +72,7 @@ internal class CheckTransferServiceTest {
.thirdParty(
CheckTransferCreateParams.ThirdParty.builder().recipientName("x").build()
)
+ .validUntilDate(LocalDate.parse("2019-12-27"))
.build()
)