diff --git a/.release-please-manifest.json b/.release-please-manifest.json
index f6550ef3f..5d20cc498 100644
--- a/.release-please-manifest.json
+++ b/.release-please-manifest.json
@@ -1,3 +1,3 @@
{
- ".": "0.523.0"
+ ".": "0.524.0"
}
\ No newline at end of file
diff --git a/.stats.yml b/.stats.yml
index a9ea792a1..2715c40d0 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 241
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-f32b1daeaf102b8684a511b8ccc85e6f0f570177373dfada2bbd4ebca7a9412e.yml
-openapi_spec_hash: 34d241b13555cfaf70fc746e7437aed7
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-1f2c653a8b55e63d756d60f9110ceadb18f87a6039762b5ee31b5373bbc4499a.yml
+openapi_spec_hash: a7b01c23c92b07f280117e6ba6262a7e
config_hash: cb5b8736705c06b670f6a25484622d62
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 93603fbc3..31ebb62e7 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,13 @@
# Changelog
+## 0.524.0 (2026-04-20)
+
+Full Changelog: [v0.523.0...v0.524.0](https://github.com/Increase/increase-java/compare/v0.523.0...v0.524.0)
+
+### Features
+
+* **api:** api update ([6b0222a](https://github.com/Increase/increase-java/commit/6b0222afb0b2e68e9aaee8dd7f8133e780c6f843))
+
## 0.523.0 (2026-04-20)
Full Changelog: [v0.522.0...v0.523.0](https://github.com/Increase/increase-java/compare/v0.522.0...v0.523.0)
diff --git a/README.md b/README.md
index 70fe3b750..028d571c1 100644
--- a/README.md
+++ b/README.md
@@ -2,8 +2,8 @@
-[](https://central.sonatype.com/artifact/com.increase.api/increase-java/0.523.0)
-[](https://javadoc.io/doc/com.increase.api/increase-java/0.523.0)
+[](https://central.sonatype.com/artifact/com.increase.api/increase-java/0.524.0)
+[](https://javadoc.io/doc/com.increase.api/increase-java/0.524.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.523.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.524.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.523.0")
+implementation("com.increase.api:increase-java:0.524.0")
```
### Maven
@@ -33,7 +33,7 @@ implementation("com.increase.api:increase-java:0.523.0")
com.increase.api
increase-java
- 0.523.0
+ 0.524.0
```
diff --git a/build.gradle.kts b/build.gradle.kts
index ac4adcff7..03076e758 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -8,7 +8,7 @@ repositories {
allprojects {
group = "com.increase.api"
- version = "0.523.0" // x-release-please-version
+ version = "0.524.0" // x-release-please-version
}
subprojects {
diff --git a/increase-java-core/src/main/kotlin/com/increase/api/models/entities/EntityUpdateParams.kt b/increase-java-core/src/main/kotlin/com/increase/api/models/entities/EntityUpdateParams.kt
index 7b1a39a96..b2250db44 100644
--- a/increase-java-core/src/main/kotlin/com/increase/api/models/entities/EntityUpdateParams.kt
+++ b/increase-java-core/src/main/kotlin/com/increase/api/models/entities/EntityUpdateParams.kt
@@ -12,9 +12,11 @@ import com.increase.api.core.JsonField
import com.increase.api.core.JsonMissing
import com.increase.api.core.JsonValue
import com.increase.api.core.Params
+import com.increase.api.core.checkKnown
import com.increase.api.core.checkRequired
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.time.OffsetDateTime
@@ -80,6 +82,15 @@ private constructor(
*/
fun riskRating(): Optional = body.riskRating()
+ /**
+ * New terms that the Entity agreed to. Not all programs are required to submit this data. This
+ * will not archive previously submitted terms.
+ *
+ * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if the
+ * server responded with an unexpected value).
+ */
+ fun termsAgreements(): Optional> = body.termsAgreements()
+
/**
* If you are using a third-party service for identity verification, you can use this field to
* associate this Entity with the identifier that represents them in that service.
@@ -135,6 +146,13 @@ private constructor(
*/
fun _riskRating(): JsonField = body._riskRating()
+ /**
+ * Returns the raw JSON value of [termsAgreements].
+ *
+ * Unlike [termsAgreements], this method doesn't throw if the JSON field has an unexpected type.
+ */
+ fun _termsAgreements(): JsonField> = body._termsAgreements()
+
/**
* Returns the raw JSON value of [thirdPartyVerification].
*
@@ -294,6 +312,34 @@ private constructor(
*/
fun riskRating(riskRating: JsonField) = apply { body.riskRating(riskRating) }
+ /**
+ * New terms that the Entity agreed to. Not all programs are required to submit this data.
+ * This will not archive previously submitted terms.
+ */
+ fun termsAgreements(termsAgreements: List) = apply {
+ body.termsAgreements(termsAgreements)
+ }
+
+ /**
+ * Sets [Builder.termsAgreements] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.termsAgreements] with a well-typed
+ * `List` value instead. This method is primarily for setting the field to
+ * an undocumented or not yet supported value.
+ */
+ fun termsAgreements(termsAgreements: JsonField>) = apply {
+ body.termsAgreements(termsAgreements)
+ }
+
+ /**
+ * Adds a single [TermsAgreement] to [termsAgreements].
+ *
+ * @throws IllegalStateException if the field was previously set to a non-list.
+ */
+ fun addTermsAgreement(termsAgreement: TermsAgreement) = apply {
+ body.addTermsAgreement(termsAgreement)
+ }
+
/**
* If you are using a third-party service for identity verification, you can use this field
* to associate this Entity with the identifier that represents them in that service.
@@ -479,6 +525,7 @@ private constructor(
private val governmentAuthority: JsonField,
private val naturalPerson: JsonField,
private val riskRating: JsonField,
+ private val termsAgreements: JsonField>,
private val thirdPartyVerification: JsonField,
private val trust: JsonField,
private val additionalProperties: MutableMap,
@@ -501,6 +548,9 @@ private constructor(
@JsonProperty("risk_rating")
@ExcludeMissing
riskRating: JsonField = JsonMissing.of(),
+ @JsonProperty("terms_agreements")
+ @ExcludeMissing
+ termsAgreements: JsonField> = JsonMissing.of(),
@JsonProperty("third_party_verification")
@ExcludeMissing
thirdPartyVerification: JsonField = JsonMissing.of(),
@@ -511,6 +561,7 @@ private constructor(
governmentAuthority,
naturalPerson,
riskRating,
+ termsAgreements,
thirdPartyVerification,
trust,
mutableMapOf(),
@@ -563,6 +614,16 @@ private constructor(
*/
fun riskRating(): Optional = riskRating.getOptional("risk_rating")
+ /**
+ * New terms that the Entity agreed to. Not all programs are required to submit this data.
+ * This will not archive previously submitted terms.
+ *
+ * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if
+ * the server responded with an unexpected value).
+ */
+ fun termsAgreements(): Optional> =
+ termsAgreements.getOptional("terms_agreements")
+
/**
* If you are using a third-party service for identity verification, you can use this field
* to associate this Entity with the identifier that represents them in that service.
@@ -630,6 +691,16 @@ private constructor(
@ExcludeMissing
fun _riskRating(): JsonField = riskRating
+ /**
+ * Returns the raw JSON value of [termsAgreements].
+ *
+ * Unlike [termsAgreements], this method doesn't throw if the JSON field has an unexpected
+ * type.
+ */
+ @JsonProperty("terms_agreements")
+ @ExcludeMissing
+ fun _termsAgreements(): JsonField> = termsAgreements
+
/**
* Returns the raw JSON value of [thirdPartyVerification].
*
@@ -673,6 +744,7 @@ private constructor(
private var governmentAuthority: JsonField = JsonMissing.of()
private var naturalPerson: JsonField = JsonMissing.of()
private var riskRating: JsonField = JsonMissing.of()
+ private var termsAgreements: JsonField>? = null
private var thirdPartyVerification: JsonField = JsonMissing.of()
private var trust: JsonField = JsonMissing.of()
private var additionalProperties: MutableMap = mutableMapOf()
@@ -684,6 +756,7 @@ private constructor(
governmentAuthority = body.governmentAuthority
naturalPerson = body.naturalPerson
riskRating = body.riskRating
+ termsAgreements = body.termsAgreements.map { it.toMutableList() }
thirdPartyVerification = body.thirdPartyVerification
trust = body.trust
additionalProperties = body.additionalProperties.toMutableMap()
@@ -777,6 +850,36 @@ private constructor(
this.riskRating = riskRating
}
+ /**
+ * New terms that the Entity agreed to. Not all programs are required to submit this
+ * data. This will not archive previously submitted terms.
+ */
+ fun termsAgreements(termsAgreements: List) =
+ termsAgreements(JsonField.of(termsAgreements))
+
+ /**
+ * Sets [Builder.termsAgreements] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.termsAgreements] with a well-typed
+ * `List` value instead. This method is primarily for setting the field
+ * to an undocumented or not yet supported value.
+ */
+ fun termsAgreements(termsAgreements: JsonField>) = apply {
+ this.termsAgreements = termsAgreements.map { it.toMutableList() }
+ }
+
+ /**
+ * Adds a single [TermsAgreement] to [termsAgreements].
+ *
+ * @throws IllegalStateException if the field was previously set to a non-list.
+ */
+ fun addTermsAgreement(termsAgreement: TermsAgreement) = apply {
+ termsAgreements =
+ (termsAgreements ?: JsonField.of(mutableListOf())).also {
+ checkKnown("termsAgreements", it).add(termsAgreement)
+ }
+ }
+
/**
* If you are using a third-party service for identity verification, you can use this
* field to associate this Entity with the identifier that represents them in that
@@ -843,6 +946,7 @@ private constructor(
governmentAuthority,
naturalPerson,
riskRating,
+ (termsAgreements ?: JsonMissing.of()).map { it.toImmutable() },
thirdPartyVerification,
trust,
additionalProperties.toMutableMap(),
@@ -861,6 +965,7 @@ private constructor(
governmentAuthority().ifPresent { it.validate() }
naturalPerson().ifPresent { it.validate() }
riskRating().ifPresent { it.validate() }
+ termsAgreements().ifPresent { it.forEach { it.validate() } }
thirdPartyVerification().ifPresent { it.validate() }
trust().ifPresent { it.validate() }
validated = true
@@ -887,6 +992,7 @@ private constructor(
(governmentAuthority.asKnown().getOrNull()?.validity() ?: 0) +
(naturalPerson.asKnown().getOrNull()?.validity() ?: 0) +
(riskRating.asKnown().getOrNull()?.validity() ?: 0) +
+ (termsAgreements.asKnown().getOrNull()?.sumOf { it.validity().toInt() } ?: 0) +
(thirdPartyVerification.asKnown().getOrNull()?.validity() ?: 0) +
(trust.asKnown().getOrNull()?.validity() ?: 0)
@@ -901,6 +1007,7 @@ private constructor(
governmentAuthority == other.governmentAuthority &&
naturalPerson == other.naturalPerson &&
riskRating == other.riskRating &&
+ termsAgreements == other.termsAgreements &&
thirdPartyVerification == other.thirdPartyVerification &&
trust == other.trust &&
additionalProperties == other.additionalProperties
@@ -913,6 +1020,7 @@ private constructor(
governmentAuthority,
naturalPerson,
riskRating,
+ termsAgreements,
thirdPartyVerification,
trust,
additionalProperties,
@@ -922,7 +1030,7 @@ private constructor(
override fun hashCode(): Int = hashCode
override fun toString() =
- "Body{corporation=$corporation, detailsConfirmedAt=$detailsConfirmedAt, governmentAuthority=$governmentAuthority, naturalPerson=$naturalPerson, riskRating=$riskRating, thirdPartyVerification=$thirdPartyVerification, trust=$trust, additionalProperties=$additionalProperties}"
+ "Body{corporation=$corporation, detailsConfirmedAt=$detailsConfirmedAt, governmentAuthority=$governmentAuthority, naturalPerson=$naturalPerson, riskRating=$riskRating, termsAgreements=$termsAgreements, thirdPartyVerification=$thirdPartyVerification, trust=$trust, additionalProperties=$additionalProperties}"
}
/**
@@ -4996,6 +5104,251 @@ private constructor(
"RiskRating{ratedAt=$ratedAt, rating=$rating, additionalProperties=$additionalProperties}"
}
+ class TermsAgreement
+ @JsonCreator(mode = JsonCreator.Mode.DISABLED)
+ private constructor(
+ private val agreedAt: JsonField,
+ private val ipAddress: JsonField,
+ private val termsUrl: JsonField,
+ private val additionalProperties: MutableMap,
+ ) {
+
+ @JsonCreator
+ private constructor(
+ @JsonProperty("agreed_at")
+ @ExcludeMissing
+ agreedAt: JsonField = JsonMissing.of(),
+ @JsonProperty("ip_address")
+ @ExcludeMissing
+ ipAddress: JsonField = JsonMissing.of(),
+ @JsonProperty("terms_url")
+ @ExcludeMissing
+ termsUrl: JsonField = JsonMissing.of(),
+ ) : this(agreedAt, ipAddress, termsUrl, mutableMapOf())
+
+ /**
+ * The timestamp of when the Entity agreed to the terms.
+ *
+ * @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 agreedAt(): OffsetDateTime = agreedAt.getRequired("agreed_at")
+
+ /**
+ * The IP address the Entity accessed reviewed the terms from.
+ *
+ * @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 ipAddress(): String = ipAddress.getRequired("ip_address")
+
+ /**
+ * The URL of the terms agreement. This link will be provided by your bank partner.
+ *
+ * @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 termsUrl(): String = termsUrl.getRequired("terms_url")
+
+ /**
+ * Returns the raw JSON value of [agreedAt].
+ *
+ * Unlike [agreedAt], this method doesn't throw if the JSON field has an unexpected type.
+ */
+ @JsonProperty("agreed_at")
+ @ExcludeMissing
+ fun _agreedAt(): JsonField = agreedAt
+
+ /**
+ * Returns the raw JSON value of [ipAddress].
+ *
+ * Unlike [ipAddress], this method doesn't throw if the JSON field has an unexpected type.
+ */
+ @JsonProperty("ip_address") @ExcludeMissing fun _ipAddress(): JsonField = ipAddress
+
+ /**
+ * Returns the raw JSON value of [termsUrl].
+ *
+ * Unlike [termsUrl], this method doesn't throw if the JSON field has an unexpected type.
+ */
+ @JsonProperty("terms_url") @ExcludeMissing fun _termsUrl(): JsonField = termsUrl
+
+ @JsonAnySetter
+ private fun putAdditionalProperty(key: String, value: JsonValue) {
+ additionalProperties.put(key, value)
+ }
+
+ @JsonAnyGetter
+ @ExcludeMissing
+ fun _additionalProperties(): Map =
+ Collections.unmodifiableMap(additionalProperties)
+
+ fun toBuilder() = Builder().from(this)
+
+ companion object {
+
+ /**
+ * Returns a mutable builder for constructing an instance of [TermsAgreement].
+ *
+ * The following fields are required:
+ * ```java
+ * .agreedAt()
+ * .ipAddress()
+ * .termsUrl()
+ * ```
+ */
+ @JvmStatic fun builder() = Builder()
+ }
+
+ /** A builder for [TermsAgreement]. */
+ class Builder internal constructor() {
+
+ private var agreedAt: JsonField? = null
+ private var ipAddress: JsonField? = null
+ private var termsUrl: JsonField? = null
+ private var additionalProperties: MutableMap = mutableMapOf()
+
+ @JvmSynthetic
+ internal fun from(termsAgreement: TermsAgreement) = apply {
+ agreedAt = termsAgreement.agreedAt
+ ipAddress = termsAgreement.ipAddress
+ termsUrl = termsAgreement.termsUrl
+ additionalProperties = termsAgreement.additionalProperties.toMutableMap()
+ }
+
+ /** The timestamp of when the Entity agreed to the terms. */
+ fun agreedAt(agreedAt: OffsetDateTime) = agreedAt(JsonField.of(agreedAt))
+
+ /**
+ * Sets [Builder.agreedAt] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.agreedAt] with a well-typed [OffsetDateTime] value
+ * instead. This method is primarily for setting the field to an undocumented or not yet
+ * supported value.
+ */
+ fun agreedAt(agreedAt: JsonField) = apply { this.agreedAt = agreedAt }
+
+ /** The IP address the Entity accessed reviewed the terms from. */
+ fun ipAddress(ipAddress: String) = ipAddress(JsonField.of(ipAddress))
+
+ /**
+ * Sets [Builder.ipAddress] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.ipAddress] with a well-typed [String] value instead.
+ * This method is primarily for setting the field to an undocumented or not yet
+ * supported value.
+ */
+ fun ipAddress(ipAddress: JsonField) = apply { this.ipAddress = ipAddress }
+
+ /** The URL of the terms agreement. This link will be provided by your bank partner. */
+ fun termsUrl(termsUrl: String) = termsUrl(JsonField.of(termsUrl))
+
+ /**
+ * Sets [Builder.termsUrl] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.termsUrl] with a well-typed [String] value instead.
+ * This method is primarily for setting the field to an undocumented or not yet
+ * supported value.
+ */
+ fun termsUrl(termsUrl: JsonField) = apply { this.termsUrl = termsUrl }
+
+ fun additionalProperties(additionalProperties: Map) = apply {
+ this.additionalProperties.clear()
+ putAllAdditionalProperties(additionalProperties)
+ }
+
+ fun putAdditionalProperty(key: String, value: JsonValue) = apply {
+ additionalProperties.put(key, value)
+ }
+
+ fun putAllAdditionalProperties(additionalProperties: Map) = apply {
+ this.additionalProperties.putAll(additionalProperties)
+ }
+
+ fun removeAdditionalProperty(key: String) = apply { additionalProperties.remove(key) }
+
+ fun removeAllAdditionalProperties(keys: Set) = apply {
+ keys.forEach(::removeAdditionalProperty)
+ }
+
+ /**
+ * Returns an immutable instance of [TermsAgreement].
+ *
+ * Further updates to this [Builder] will not mutate the returned instance.
+ *
+ * The following fields are required:
+ * ```java
+ * .agreedAt()
+ * .ipAddress()
+ * .termsUrl()
+ * ```
+ *
+ * @throws IllegalStateException if any required field is unset.
+ */
+ fun build(): TermsAgreement =
+ TermsAgreement(
+ checkRequired("agreedAt", agreedAt),
+ checkRequired("ipAddress", ipAddress),
+ checkRequired("termsUrl", termsUrl),
+ additionalProperties.toMutableMap(),
+ )
+ }
+
+ private var validated: Boolean = false
+
+ fun validate(): TermsAgreement = apply {
+ if (validated) {
+ return@apply
+ }
+
+ agreedAt()
+ ipAddress()
+ termsUrl()
+ validated = true
+ }
+
+ fun isValid(): Boolean =
+ try {
+ validate()
+ true
+ } catch (e: IncreaseInvalidDataException) {
+ false
+ }
+
+ /**
+ * Returns a score indicating how many valid values are contained in this object
+ * recursively.
+ *
+ * Used for best match union deserialization.
+ */
+ @JvmSynthetic
+ internal fun validity(): Int =
+ (if (agreedAt.asKnown().isPresent) 1 else 0) +
+ (if (ipAddress.asKnown().isPresent) 1 else 0) +
+ (if (termsUrl.asKnown().isPresent) 1 else 0)
+
+ override fun equals(other: Any?): Boolean {
+ if (this === other) {
+ return true
+ }
+
+ return other is TermsAgreement &&
+ agreedAt == other.agreedAt &&
+ ipAddress == other.ipAddress &&
+ termsUrl == other.termsUrl &&
+ additionalProperties == other.additionalProperties
+ }
+
+ private val hashCode: Int by lazy {
+ Objects.hash(agreedAt, ipAddress, termsUrl, additionalProperties)
+ }
+
+ override fun hashCode(): Int = hashCode
+
+ override fun toString() =
+ "TermsAgreement{agreedAt=$agreedAt, ipAddress=$ipAddress, termsUrl=$termsUrl, additionalProperties=$additionalProperties}"
+ }
+
/**
* If you are using a third-party service for identity verification, you can use this field to
* associate this Entity with the identifier that represents them in that service.
diff --git a/increase-java-core/src/test/kotlin/com/increase/api/models/entities/EntityUpdateParamsTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/models/entities/EntityUpdateParamsTest.kt
index ebf80c63a..45da57360 100644
--- a/increase-java-core/src/test/kotlin/com/increase/api/models/entities/EntityUpdateParamsTest.kt
+++ b/increase-java-core/src/test/kotlin/com/increase/api/models/entities/EntityUpdateParamsTest.kt
@@ -4,6 +4,7 @@ package com.increase.api.models.entities
import java.time.LocalDate
import java.time.OffsetDateTime
+import kotlin.jvm.optionals.getOrNull
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
@@ -111,6 +112,13 @@ internal class EntityUpdateParamsTest {
.rating(EntityUpdateParams.RiskRating.Rating.LOW)
.build()
)
+ .addTermsAgreement(
+ EntityUpdateParams.TermsAgreement.builder()
+ .agreedAt(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
+ .ipAddress("x")
+ .termsUrl("x")
+ .build()
+ )
.thirdPartyVerification(
EntityUpdateParams.ThirdPartyVerification.builder()
.reference("x")
@@ -247,6 +255,13 @@ internal class EntityUpdateParamsTest {
.rating(EntityUpdateParams.RiskRating.Rating.LOW)
.build()
)
+ .addTermsAgreement(
+ EntityUpdateParams.TermsAgreement.builder()
+ .agreedAt(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
+ .ipAddress("x")
+ .termsUrl("x")
+ .build()
+ )
.thirdPartyVerification(
EntityUpdateParams.ThirdPartyVerification.builder()
.reference("x")
@@ -374,6 +389,14 @@ internal class EntityUpdateParamsTest {
.rating(EntityUpdateParams.RiskRating.Rating.LOW)
.build()
)
+ assertThat(body.termsAgreements().getOrNull())
+ .containsExactly(
+ EntityUpdateParams.TermsAgreement.builder()
+ .agreedAt(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
+ .ipAddress("x")
+ .termsUrl("x")
+ .build()
+ )
assertThat(body.thirdPartyVerification())
.contains(
EntityUpdateParams.ThirdPartyVerification.builder()
diff --git a/increase-java-core/src/test/kotlin/com/increase/api/services/async/EntityServiceAsyncTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/services/async/EntityServiceAsyncTest.kt
index 2dc6a5b0e..b2365763f 100644
--- a/increase-java-core/src/test/kotlin/com/increase/api/services/async/EntityServiceAsyncTest.kt
+++ b/increase-java-core/src/test/kotlin/com/increase/api/services/async/EntityServiceAsyncTest.kt
@@ -599,6 +599,13 @@ internal class EntityServiceAsyncTest {
.rating(EntityUpdateParams.RiskRating.Rating.LOW)
.build()
)
+ .addTermsAgreement(
+ EntityUpdateParams.TermsAgreement.builder()
+ .agreedAt(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
+ .ipAddress("x")
+ .termsUrl("x")
+ .build()
+ )
.thirdPartyVerification(
EntityUpdateParams.ThirdPartyVerification.builder()
.reference("x")
diff --git a/increase-java-core/src/test/kotlin/com/increase/api/services/blocking/EntityServiceTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/services/blocking/EntityServiceTest.kt
index 5ab6448d5..8a2397d54 100644
--- a/increase-java-core/src/test/kotlin/com/increase/api/services/blocking/EntityServiceTest.kt
+++ b/increase-java-core/src/test/kotlin/com/increase/api/services/blocking/EntityServiceTest.kt
@@ -597,6 +597,13 @@ internal class EntityServiceTest {
.rating(EntityUpdateParams.RiskRating.Rating.LOW)
.build()
)
+ .addTermsAgreement(
+ EntityUpdateParams.TermsAgreement.builder()
+ .agreedAt(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
+ .ipAddress("x")
+ .termsUrl("x")
+ .build()
+ )
.thirdPartyVerification(
EntityUpdateParams.ThirdPartyVerification.builder()
.reference("x")