diff --git a/.release-please-manifest.json b/.release-please-manifest.json
index 9140438b9..d6bd4944b 100644
--- a/.release-please-manifest.json
+++ b/.release-please-manifest.json
@@ -1,3 +1,3 @@
{
- ".": "0.466.0"
+ ".": "0.467.0"
}
\ No newline at end of file
diff --git a/.stats.yml b/.stats.yml
index 2c77a37fa..3bab826d6 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
-configured_endpoints: 238
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-1ce680832c1cad08fe72f9d4b9df37379affbe88f539448d991039474dce6674.yml
-openapi_spec_hash: 5d9c89c10f5987dc5596134d1f2c1668
-config_hash: e75db3094e90d5e48a2077b010b620f0
+configured_endpoints: 236
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-c289d5d6e979a7ac26b8475a36fb0f4fc74528eb5f5efc20848411443a6608cb.yml
+openapi_spec_hash: eeda9bd525ea98d52a27642bd26c4b89
+config_hash: e73b1147c039cb3d6a2c56ae5926bca8
diff --git a/CHANGELOG.md b/CHANGELOG.md
index cdc6af110..b249c0114 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,13 @@
# Changelog
+## 0.467.0 (2026-03-12)
+
+Full Changelog: [v0.466.0...v0.467.0](https://github.com/Increase/increase-java/compare/v0.466.0...v0.467.0)
+
+### Features
+
+* **api:** api update ([8212873](https://github.com/Increase/increase-java/commit/8212873313e7011a18b6a615e28b4051557bf35a))
+
## 0.466.0 (2026-03-12)
Full Changelog: [v0.465.0...v0.466.0](https://github.com/Increase/increase-java/compare/v0.465.0...v0.466.0)
diff --git a/README.md b/README.md
index ac5ecd10d..c9ed35810 100644
--- a/README.md
+++ b/README.md
@@ -2,8 +2,8 @@
-[](https://central.sonatype.com/artifact/com.increase.api/increase-java/0.466.0)
-[](https://javadoc.io/doc/com.increase.api/increase-java/0.466.0)
+[](https://central.sonatype.com/artifact/com.increase.api/increase-java/0.467.0)
+[](https://javadoc.io/doc/com.increase.api/increase-java/0.467.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.466.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.467.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.466.0")
+implementation("com.increase.api:increase-java:0.467.0")
```
### Maven
@@ -33,7 +33,7 @@ implementation("com.increase.api:increase-java:0.466.0")
com.increase.api
increase-java
- 0.466.0
+ 0.467.0
```
diff --git a/build.gradle.kts b/build.gradle.kts
index 2bf32b27d..2c4f5cc62 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -8,7 +8,7 @@ repositories {
allprojects {
group = "com.increase.api"
- version = "0.466.0" // x-release-please-version
+ version = "0.467.0" // x-release-please-version
}
subprojects {
diff --git a/increase-java-core/src/main/kotlin/com/increase/api/models/entities/EntityArchiveBeneficialOwnerParams.kt b/increase-java-core/src/main/kotlin/com/increase/api/models/entities/EntityArchiveBeneficialOwnerParams.kt
deleted file mode 100644
index 8ef93ec4e..000000000
--- a/increase-java-core/src/main/kotlin/com/increase/api/models/entities/EntityArchiveBeneficialOwnerParams.kt
+++ /dev/null
@@ -1,466 +0,0 @@
-// File generated from our OpenAPI spec by Stainless.
-
-package com.increase.api.models.entities
-
-import com.fasterxml.jackson.annotation.JsonAnyGetter
-import com.fasterxml.jackson.annotation.JsonAnySetter
-import com.fasterxml.jackson.annotation.JsonCreator
-import com.fasterxml.jackson.annotation.JsonProperty
-import com.increase.api.core.ExcludeMissing
-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.checkRequired
-import com.increase.api.core.http.Headers
-import com.increase.api.core.http.QueryParams
-import com.increase.api.errors.IncreaseInvalidDataException
-import java.util.Collections
-import java.util.Objects
-import java.util.Optional
-import kotlin.jvm.optionals.getOrNull
-
-/** Archive a beneficial owner for a corporate Entity */
-class EntityArchiveBeneficialOwnerParams
-private constructor(
- private val entityId: String?,
- private val body: Body,
- private val additionalHeaders: Headers,
- private val additionalQueryParams: QueryParams,
-) : Params {
-
- /** The identifier of the Entity associated with the Beneficial Owner that is being archived. */
- fun entityId(): Optional = Optional.ofNullable(entityId)
-
- /**
- * The identifying details of anyone controlling or owning 25% or more of the corporation.
- *
- * @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 beneficialOwnerId(): String = body.beneficialOwnerId()
-
- /**
- * Returns the raw JSON value of [beneficialOwnerId].
- *
- * Unlike [beneficialOwnerId], this method doesn't throw if the JSON field has an unexpected
- * type.
- */
- fun _beneficialOwnerId(): JsonField = body._beneficialOwnerId()
-
- fun _additionalBodyProperties(): Map = body._additionalProperties()
-
- /** Additional headers to send with the request. */
- fun _additionalHeaders(): Headers = additionalHeaders
-
- /** Additional query param to send with the request. */
- fun _additionalQueryParams(): QueryParams = additionalQueryParams
-
- fun toBuilder() = Builder().from(this)
-
- companion object {
-
- /**
- * Returns a mutable builder for constructing an instance of
- * [EntityArchiveBeneficialOwnerParams].
- *
- * The following fields are required:
- * ```java
- * .beneficialOwnerId()
- * ```
- */
- @JvmStatic fun builder() = Builder()
- }
-
- /** A builder for [EntityArchiveBeneficialOwnerParams]. */
- class Builder internal constructor() {
-
- private var entityId: String? = null
- private var body: Body.Builder = Body.builder()
- private var additionalHeaders: Headers.Builder = Headers.builder()
- private var additionalQueryParams: QueryParams.Builder = QueryParams.builder()
-
- @JvmSynthetic
- internal fun from(entityArchiveBeneficialOwnerParams: EntityArchiveBeneficialOwnerParams) =
- apply {
- entityId = entityArchiveBeneficialOwnerParams.entityId
- body = entityArchiveBeneficialOwnerParams.body.toBuilder()
- additionalHeaders = entityArchiveBeneficialOwnerParams.additionalHeaders.toBuilder()
- additionalQueryParams =
- entityArchiveBeneficialOwnerParams.additionalQueryParams.toBuilder()
- }
-
- /**
- * The identifier of the Entity associated with the Beneficial Owner that is being archived.
- */
- fun entityId(entityId: String?) = apply { this.entityId = entityId }
-
- /** Alias for calling [Builder.entityId] with `entityId.orElse(null)`. */
- fun entityId(entityId: Optional) = entityId(entityId.getOrNull())
-
- /**
- * Sets the entire request body.
- *
- * This is generally only useful if you are already constructing the body separately.
- * Otherwise, it's more convenient to use the top-level setters instead:
- * - [beneficialOwnerId]
- */
- fun body(body: Body) = apply { this.body = body.toBuilder() }
-
- /**
- * The identifying details of anyone controlling or owning 25% or more of the corporation.
- */
- fun beneficialOwnerId(beneficialOwnerId: String) = apply {
- body.beneficialOwnerId(beneficialOwnerId)
- }
-
- /**
- * Sets [Builder.beneficialOwnerId] to an arbitrary JSON value.
- *
- * You should usually call [Builder.beneficialOwnerId] with a well-typed [String] value
- * instead. This method is primarily for setting the field to an undocumented or not yet
- * supported value.
- */
- fun beneficialOwnerId(beneficialOwnerId: JsonField) = apply {
- body.beneficialOwnerId(beneficialOwnerId)
- }
-
- fun additionalBodyProperties(additionalBodyProperties: Map) = apply {
- body.additionalProperties(additionalBodyProperties)
- }
-
- fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply {
- body.putAdditionalProperty(key, value)
- }
-
- fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) =
- apply {
- body.putAllAdditionalProperties(additionalBodyProperties)
- }
-
- fun removeAdditionalBodyProperty(key: String) = apply { body.removeAdditionalProperty(key) }
-
- fun removeAllAdditionalBodyProperties(keys: Set) = apply {
- body.removeAllAdditionalProperties(keys)
- }
-
- fun additionalHeaders(additionalHeaders: Headers) = apply {
- this.additionalHeaders.clear()
- putAllAdditionalHeaders(additionalHeaders)
- }
-
- fun additionalHeaders(additionalHeaders: Map>) = apply {
- this.additionalHeaders.clear()
- putAllAdditionalHeaders(additionalHeaders)
- }
-
- fun putAdditionalHeader(name: String, value: String) = apply {
- additionalHeaders.put(name, value)
- }
-
- fun putAdditionalHeaders(name: String, values: Iterable) = apply {
- additionalHeaders.put(name, values)
- }
-
- fun putAllAdditionalHeaders(additionalHeaders: Headers) = apply {
- this.additionalHeaders.putAll(additionalHeaders)
- }
-
- fun putAllAdditionalHeaders(additionalHeaders: Map>) = apply {
- this.additionalHeaders.putAll(additionalHeaders)
- }
-
- fun replaceAdditionalHeaders(name: String, value: String) = apply {
- additionalHeaders.replace(name, value)
- }
-
- fun replaceAdditionalHeaders(name: String, values: Iterable) = apply {
- additionalHeaders.replace(name, values)
- }
-
- fun replaceAllAdditionalHeaders(additionalHeaders: Headers) = apply {
- this.additionalHeaders.replaceAll(additionalHeaders)
- }
-
- fun replaceAllAdditionalHeaders(additionalHeaders: Map>) = apply {
- this.additionalHeaders.replaceAll(additionalHeaders)
- }
-
- fun removeAdditionalHeaders(name: String) = apply { additionalHeaders.remove(name) }
-
- fun removeAllAdditionalHeaders(names: Set) = apply {
- additionalHeaders.removeAll(names)
- }
-
- fun additionalQueryParams(additionalQueryParams: QueryParams) = apply {
- this.additionalQueryParams.clear()
- putAllAdditionalQueryParams(additionalQueryParams)
- }
-
- fun additionalQueryParams(additionalQueryParams: Map>) = apply {
- this.additionalQueryParams.clear()
- putAllAdditionalQueryParams(additionalQueryParams)
- }
-
- fun putAdditionalQueryParam(key: String, value: String) = apply {
- additionalQueryParams.put(key, value)
- }
-
- fun putAdditionalQueryParams(key: String, values: Iterable) = apply {
- additionalQueryParams.put(key, values)
- }
-
- fun putAllAdditionalQueryParams(additionalQueryParams: QueryParams) = apply {
- this.additionalQueryParams.putAll(additionalQueryParams)
- }
-
- fun putAllAdditionalQueryParams(additionalQueryParams: Map>) =
- apply {
- this.additionalQueryParams.putAll(additionalQueryParams)
- }
-
- fun replaceAdditionalQueryParams(key: String, value: String) = apply {
- additionalQueryParams.replace(key, value)
- }
-
- fun replaceAdditionalQueryParams(key: String, values: Iterable) = apply {
- additionalQueryParams.replace(key, values)
- }
-
- fun replaceAllAdditionalQueryParams(additionalQueryParams: QueryParams) = apply {
- this.additionalQueryParams.replaceAll(additionalQueryParams)
- }
-
- fun replaceAllAdditionalQueryParams(additionalQueryParams: Map>) =
- apply {
- this.additionalQueryParams.replaceAll(additionalQueryParams)
- }
-
- fun removeAdditionalQueryParams(key: String) = apply { additionalQueryParams.remove(key) }
-
- fun removeAllAdditionalQueryParams(keys: Set) = apply {
- additionalQueryParams.removeAll(keys)
- }
-
- /**
- * Returns an immutable instance of [EntityArchiveBeneficialOwnerParams].
- *
- * Further updates to this [Builder] will not mutate the returned instance.
- *
- * The following fields are required:
- * ```java
- * .beneficialOwnerId()
- * ```
- *
- * @throws IllegalStateException if any required field is unset.
- */
- fun build(): EntityArchiveBeneficialOwnerParams =
- EntityArchiveBeneficialOwnerParams(
- entityId,
- body.build(),
- additionalHeaders.build(),
- additionalQueryParams.build(),
- )
- }
-
- fun _body(): Body = body
-
- fun _pathParam(index: Int): String =
- when (index) {
- 0 -> entityId ?: ""
- else -> ""
- }
-
- override fun _headers(): Headers = additionalHeaders
-
- override fun _queryParams(): QueryParams = additionalQueryParams
-
- class Body
- @JsonCreator(mode = JsonCreator.Mode.DISABLED)
- private constructor(
- private val beneficialOwnerId: JsonField,
- private val additionalProperties: MutableMap,
- ) {
-
- @JsonCreator
- private constructor(
- @JsonProperty("beneficial_owner_id")
- @ExcludeMissing
- beneficialOwnerId: JsonField = JsonMissing.of()
- ) : this(beneficialOwnerId, mutableMapOf())
-
- /**
- * The identifying details of anyone controlling or owning 25% or more of the corporation.
- *
- * @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 beneficialOwnerId(): String = beneficialOwnerId.getRequired("beneficial_owner_id")
-
- /**
- * Returns the raw JSON value of [beneficialOwnerId].
- *
- * Unlike [beneficialOwnerId], this method doesn't throw if the JSON field has an unexpected
- * type.
- */
- @JsonProperty("beneficial_owner_id")
- @ExcludeMissing
- fun _beneficialOwnerId(): JsonField = beneficialOwnerId
-
- @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 [Body].
- *
- * The following fields are required:
- * ```java
- * .beneficialOwnerId()
- * ```
- */
- @JvmStatic fun builder() = Builder()
- }
-
- /** A builder for [Body]. */
- class Builder internal constructor() {
-
- private var beneficialOwnerId: JsonField? = null
- private var additionalProperties: MutableMap = mutableMapOf()
-
- @JvmSynthetic
- internal fun from(body: Body) = apply {
- beneficialOwnerId = body.beneficialOwnerId
- additionalProperties = body.additionalProperties.toMutableMap()
- }
-
- /**
- * The identifying details of anyone controlling or owning 25% or more of the
- * corporation.
- */
- fun beneficialOwnerId(beneficialOwnerId: String) =
- beneficialOwnerId(JsonField.of(beneficialOwnerId))
-
- /**
- * Sets [Builder.beneficialOwnerId] to an arbitrary JSON value.
- *
- * You should usually call [Builder.beneficialOwnerId] with a well-typed [String] value
- * instead. This method is primarily for setting the field to an undocumented or not yet
- * supported value.
- */
- fun beneficialOwnerId(beneficialOwnerId: JsonField) = apply {
- this.beneficialOwnerId = beneficialOwnerId
- }
-
- 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 [Body].
- *
- * Further updates to this [Builder] will not mutate the returned instance.
- *
- * The following fields are required:
- * ```java
- * .beneficialOwnerId()
- * ```
- *
- * @throws IllegalStateException if any required field is unset.
- */
- fun build(): Body =
- Body(
- checkRequired("beneficialOwnerId", beneficialOwnerId),
- additionalProperties.toMutableMap(),
- )
- }
-
- private var validated: Boolean = false
-
- fun validate(): Body = apply {
- if (validated) {
- return@apply
- }
-
- beneficialOwnerId()
- 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 (beneficialOwnerId.asKnown().isPresent) 1 else 0)
-
- override fun equals(other: Any?): Boolean {
- if (this === other) {
- return true
- }
-
- return other is Body &&
- beneficialOwnerId == other.beneficialOwnerId &&
- additionalProperties == other.additionalProperties
- }
-
- private val hashCode: Int by lazy { Objects.hash(beneficialOwnerId, additionalProperties) }
-
- override fun hashCode(): Int = hashCode
-
- override fun toString() =
- "Body{beneficialOwnerId=$beneficialOwnerId, additionalProperties=$additionalProperties}"
- }
-
- override fun equals(other: Any?): Boolean {
- if (this === other) {
- return true
- }
-
- return other is EntityArchiveBeneficialOwnerParams &&
- entityId == other.entityId &&
- body == other.body &&
- additionalHeaders == other.additionalHeaders &&
- additionalQueryParams == other.additionalQueryParams
- }
-
- override fun hashCode(): Int =
- Objects.hash(entityId, body, additionalHeaders, additionalQueryParams)
-
- override fun toString() =
- "EntityArchiveBeneficialOwnerParams{entityId=$entityId, body=$body, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams}"
-}
diff --git a/increase-java-core/src/main/kotlin/com/increase/api/models/entities/EntityUpdateBeneficialOwnerAddressParams.kt b/increase-java-core/src/main/kotlin/com/increase/api/models/entities/EntityUpdateBeneficialOwnerAddressParams.kt
deleted file mode 100644
index 3ce9dd6e4..000000000
--- a/increase-java-core/src/main/kotlin/com/increase/api/models/entities/EntityUpdateBeneficialOwnerAddressParams.kt
+++ /dev/null
@@ -1,899 +0,0 @@
-// File generated from our OpenAPI spec by Stainless.
-
-package com.increase.api.models.entities
-
-import com.fasterxml.jackson.annotation.JsonAnyGetter
-import com.fasterxml.jackson.annotation.JsonAnySetter
-import com.fasterxml.jackson.annotation.JsonCreator
-import com.fasterxml.jackson.annotation.JsonProperty
-import com.increase.api.core.ExcludeMissing
-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.checkRequired
-import com.increase.api.core.http.Headers
-import com.increase.api.core.http.QueryParams
-import com.increase.api.errors.IncreaseInvalidDataException
-import java.util.Collections
-import java.util.Objects
-import java.util.Optional
-import kotlin.jvm.optionals.getOrNull
-
-/** Update the address for a beneficial owner belonging to a corporate Entity */
-class EntityUpdateBeneficialOwnerAddressParams
-private constructor(
- private val entityId: String?,
- private val body: Body,
- private val additionalHeaders: Headers,
- private val additionalQueryParams: QueryParams,
-) : Params {
-
- /**
- * The identifier of the Entity associated with the Beneficial Owner whose address is being
- * updated.
- */
- fun entityId(): Optional = Optional.ofNullable(entityId)
-
- /**
- * The individual's physical address. Mail receiving locations like PO Boxes and PMB's are
- * disallowed.
- *
- * @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 address(): Address = body.address()
-
- /**
- * The identifying details of anyone controlling or owning 25% or more of the corporation.
- *
- * @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 beneficialOwnerId(): String = body.beneficialOwnerId()
-
- /**
- * Returns the raw JSON value of [address].
- *
- * Unlike [address], this method doesn't throw if the JSON field has an unexpected type.
- */
- fun _address(): JsonField = body._address()
-
- /**
- * Returns the raw JSON value of [beneficialOwnerId].
- *
- * Unlike [beneficialOwnerId], this method doesn't throw if the JSON field has an unexpected
- * type.
- */
- fun _beneficialOwnerId(): JsonField = body._beneficialOwnerId()
-
- fun _additionalBodyProperties(): Map = body._additionalProperties()
-
- /** Additional headers to send with the request. */
- fun _additionalHeaders(): Headers = additionalHeaders
-
- /** Additional query param to send with the request. */
- fun _additionalQueryParams(): QueryParams = additionalQueryParams
-
- fun toBuilder() = Builder().from(this)
-
- companion object {
-
- /**
- * Returns a mutable builder for constructing an instance of
- * [EntityUpdateBeneficialOwnerAddressParams].
- *
- * The following fields are required:
- * ```java
- * .address()
- * .beneficialOwnerId()
- * ```
- */
- @JvmStatic fun builder() = Builder()
- }
-
- /** A builder for [EntityUpdateBeneficialOwnerAddressParams]. */
- class Builder internal constructor() {
-
- private var entityId: String? = null
- private var body: Body.Builder = Body.builder()
- private var additionalHeaders: Headers.Builder = Headers.builder()
- private var additionalQueryParams: QueryParams.Builder = QueryParams.builder()
-
- @JvmSynthetic
- internal fun from(
- entityUpdateBeneficialOwnerAddressParams: EntityUpdateBeneficialOwnerAddressParams
- ) = apply {
- entityId = entityUpdateBeneficialOwnerAddressParams.entityId
- body = entityUpdateBeneficialOwnerAddressParams.body.toBuilder()
- additionalHeaders =
- entityUpdateBeneficialOwnerAddressParams.additionalHeaders.toBuilder()
- additionalQueryParams =
- entityUpdateBeneficialOwnerAddressParams.additionalQueryParams.toBuilder()
- }
-
- /**
- * The identifier of the Entity associated with the Beneficial Owner whose address is being
- * updated.
- */
- fun entityId(entityId: String?) = apply { this.entityId = entityId }
-
- /** Alias for calling [Builder.entityId] with `entityId.orElse(null)`. */
- fun entityId(entityId: Optional) = entityId(entityId.getOrNull())
-
- /**
- * Sets the entire request body.
- *
- * This is generally only useful if you are already constructing the body separately.
- * Otherwise, it's more convenient to use the top-level setters instead:
- * - [address]
- * - [beneficialOwnerId]
- */
- fun body(body: Body) = apply { this.body = body.toBuilder() }
-
- /**
- * The individual's physical address. Mail receiving locations like PO Boxes and PMB's are
- * disallowed.
- */
- fun address(address: Address) = apply { body.address(address) }
-
- /**
- * Sets [Builder.address] to an arbitrary JSON value.
- *
- * You should usually call [Builder.address] with a well-typed [Address] value instead. This
- * method is primarily for setting the field to an undocumented or not yet supported value.
- */
- fun address(address: JsonField) = apply { body.address(address) }
-
- /**
- * The identifying details of anyone controlling or owning 25% or more of the corporation.
- */
- fun beneficialOwnerId(beneficialOwnerId: String) = apply {
- body.beneficialOwnerId(beneficialOwnerId)
- }
-
- /**
- * Sets [Builder.beneficialOwnerId] to an arbitrary JSON value.
- *
- * You should usually call [Builder.beneficialOwnerId] with a well-typed [String] value
- * instead. This method is primarily for setting the field to an undocumented or not yet
- * supported value.
- */
- fun beneficialOwnerId(beneficialOwnerId: JsonField) = apply {
- body.beneficialOwnerId(beneficialOwnerId)
- }
-
- fun additionalBodyProperties(additionalBodyProperties: Map) = apply {
- body.additionalProperties(additionalBodyProperties)
- }
-
- fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply {
- body.putAdditionalProperty(key, value)
- }
-
- fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) =
- apply {
- body.putAllAdditionalProperties(additionalBodyProperties)
- }
-
- fun removeAdditionalBodyProperty(key: String) = apply { body.removeAdditionalProperty(key) }
-
- fun removeAllAdditionalBodyProperties(keys: Set) = apply {
- body.removeAllAdditionalProperties(keys)
- }
-
- fun additionalHeaders(additionalHeaders: Headers) = apply {
- this.additionalHeaders.clear()
- putAllAdditionalHeaders(additionalHeaders)
- }
-
- fun additionalHeaders(additionalHeaders: Map>) = apply {
- this.additionalHeaders.clear()
- putAllAdditionalHeaders(additionalHeaders)
- }
-
- fun putAdditionalHeader(name: String, value: String) = apply {
- additionalHeaders.put(name, value)
- }
-
- fun putAdditionalHeaders(name: String, values: Iterable) = apply {
- additionalHeaders.put(name, values)
- }
-
- fun putAllAdditionalHeaders(additionalHeaders: Headers) = apply {
- this.additionalHeaders.putAll(additionalHeaders)
- }
-
- fun putAllAdditionalHeaders(additionalHeaders: Map>) = apply {
- this.additionalHeaders.putAll(additionalHeaders)
- }
-
- fun replaceAdditionalHeaders(name: String, value: String) = apply {
- additionalHeaders.replace(name, value)
- }
-
- fun replaceAdditionalHeaders(name: String, values: Iterable) = apply {
- additionalHeaders.replace(name, values)
- }
-
- fun replaceAllAdditionalHeaders(additionalHeaders: Headers) = apply {
- this.additionalHeaders.replaceAll(additionalHeaders)
- }
-
- fun replaceAllAdditionalHeaders(additionalHeaders: Map>) = apply {
- this.additionalHeaders.replaceAll(additionalHeaders)
- }
-
- fun removeAdditionalHeaders(name: String) = apply { additionalHeaders.remove(name) }
-
- fun removeAllAdditionalHeaders(names: Set) = apply {
- additionalHeaders.removeAll(names)
- }
-
- fun additionalQueryParams(additionalQueryParams: QueryParams) = apply {
- this.additionalQueryParams.clear()
- putAllAdditionalQueryParams(additionalQueryParams)
- }
-
- fun additionalQueryParams(additionalQueryParams: Map>) = apply {
- this.additionalQueryParams.clear()
- putAllAdditionalQueryParams(additionalQueryParams)
- }
-
- fun putAdditionalQueryParam(key: String, value: String) = apply {
- additionalQueryParams.put(key, value)
- }
-
- fun putAdditionalQueryParams(key: String, values: Iterable) = apply {
- additionalQueryParams.put(key, values)
- }
-
- fun putAllAdditionalQueryParams(additionalQueryParams: QueryParams) = apply {
- this.additionalQueryParams.putAll(additionalQueryParams)
- }
-
- fun putAllAdditionalQueryParams(additionalQueryParams: Map>) =
- apply {
- this.additionalQueryParams.putAll(additionalQueryParams)
- }
-
- fun replaceAdditionalQueryParams(key: String, value: String) = apply {
- additionalQueryParams.replace(key, value)
- }
-
- fun replaceAdditionalQueryParams(key: String, values: Iterable) = apply {
- additionalQueryParams.replace(key, values)
- }
-
- fun replaceAllAdditionalQueryParams(additionalQueryParams: QueryParams) = apply {
- this.additionalQueryParams.replaceAll(additionalQueryParams)
- }
-
- fun replaceAllAdditionalQueryParams(additionalQueryParams: Map>) =
- apply {
- this.additionalQueryParams.replaceAll(additionalQueryParams)
- }
-
- fun removeAdditionalQueryParams(key: String) = apply { additionalQueryParams.remove(key) }
-
- fun removeAllAdditionalQueryParams(keys: Set) = apply {
- additionalQueryParams.removeAll(keys)
- }
-
- /**
- * Returns an immutable instance of [EntityUpdateBeneficialOwnerAddressParams].
- *
- * Further updates to this [Builder] will not mutate the returned instance.
- *
- * The following fields are required:
- * ```java
- * .address()
- * .beneficialOwnerId()
- * ```
- *
- * @throws IllegalStateException if any required field is unset.
- */
- fun build(): EntityUpdateBeneficialOwnerAddressParams =
- EntityUpdateBeneficialOwnerAddressParams(
- entityId,
- body.build(),
- additionalHeaders.build(),
- additionalQueryParams.build(),
- )
- }
-
- fun _body(): Body = body
-
- fun _pathParam(index: Int): String =
- when (index) {
- 0 -> entityId ?: ""
- else -> ""
- }
-
- override fun _headers(): Headers = additionalHeaders
-
- override fun _queryParams(): QueryParams = additionalQueryParams
-
- class Body
- @JsonCreator(mode = JsonCreator.Mode.DISABLED)
- private constructor(
- private val address: JsonField,
- private val beneficialOwnerId: JsonField,
- private val additionalProperties: MutableMap,
- ) {
-
- @JsonCreator
- private constructor(
- @JsonProperty("address") @ExcludeMissing address: JsonField = JsonMissing.of(),
- @JsonProperty("beneficial_owner_id")
- @ExcludeMissing
- beneficialOwnerId: JsonField = JsonMissing.of(),
- ) : this(address, beneficialOwnerId, mutableMapOf())
-
- /**
- * The individual's physical address. Mail receiving locations like PO Boxes and PMB's are
- * disallowed.
- *
- * @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 address(): Address = address.getRequired("address")
-
- /**
- * The identifying details of anyone controlling or owning 25% or more of the corporation.
- *
- * @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 beneficialOwnerId(): String = beneficialOwnerId.getRequired("beneficial_owner_id")
-
- /**
- * Returns the raw JSON value of [address].
- *
- * Unlike [address], this method doesn't throw if the JSON field has an unexpected type.
- */
- @JsonProperty("address") @ExcludeMissing fun _address(): JsonField = address
-
- /**
- * Returns the raw JSON value of [beneficialOwnerId].
- *
- * Unlike [beneficialOwnerId], this method doesn't throw if the JSON field has an unexpected
- * type.
- */
- @JsonProperty("beneficial_owner_id")
- @ExcludeMissing
- fun _beneficialOwnerId(): JsonField = beneficialOwnerId
-
- @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 [Body].
- *
- * The following fields are required:
- * ```java
- * .address()
- * .beneficialOwnerId()
- * ```
- */
- @JvmStatic fun builder() = Builder()
- }
-
- /** A builder for [Body]. */
- class Builder internal constructor() {
-
- private var address: JsonField? = null
- private var beneficialOwnerId: JsonField? = null
- private var additionalProperties: MutableMap = mutableMapOf()
-
- @JvmSynthetic
- internal fun from(body: Body) = apply {
- address = body.address
- beneficialOwnerId = body.beneficialOwnerId
- additionalProperties = body.additionalProperties.toMutableMap()
- }
-
- /**
- * The individual's physical address. Mail receiving locations like PO Boxes and PMB's
- * are disallowed.
- */
- fun address(address: Address) = address(JsonField.of(address))
-
- /**
- * Sets [Builder.address] to an arbitrary JSON value.
- *
- * You should usually call [Builder.address] with a well-typed [Address] value instead.
- * This method is primarily for setting the field to an undocumented or not yet
- * supported value.
- */
- fun address(address: JsonField) = apply { this.address = address }
-
- /**
- * The identifying details of anyone controlling or owning 25% or more of the
- * corporation.
- */
- fun beneficialOwnerId(beneficialOwnerId: String) =
- beneficialOwnerId(JsonField.of(beneficialOwnerId))
-
- /**
- * Sets [Builder.beneficialOwnerId] to an arbitrary JSON value.
- *
- * You should usually call [Builder.beneficialOwnerId] with a well-typed [String] value
- * instead. This method is primarily for setting the field to an undocumented or not yet
- * supported value.
- */
- fun beneficialOwnerId(beneficialOwnerId: JsonField) = apply {
- this.beneficialOwnerId = beneficialOwnerId
- }
-
- 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 [Body].
- *
- * Further updates to this [Builder] will not mutate the returned instance.
- *
- * The following fields are required:
- * ```java
- * .address()
- * .beneficialOwnerId()
- * ```
- *
- * @throws IllegalStateException if any required field is unset.
- */
- fun build(): Body =
- Body(
- checkRequired("address", address),
- checkRequired("beneficialOwnerId", beneficialOwnerId),
- additionalProperties.toMutableMap(),
- )
- }
-
- private var validated: Boolean = false
-
- fun validate(): Body = apply {
- if (validated) {
- return@apply
- }
-
- address().validate()
- beneficialOwnerId()
- 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 =
- (address.asKnown().getOrNull()?.validity() ?: 0) +
- (if (beneficialOwnerId.asKnown().isPresent) 1 else 0)
-
- override fun equals(other: Any?): Boolean {
- if (this === other) {
- return true
- }
-
- return other is Body &&
- address == other.address &&
- beneficialOwnerId == other.beneficialOwnerId &&
- additionalProperties == other.additionalProperties
- }
-
- private val hashCode: Int by lazy {
- Objects.hash(address, beneficialOwnerId, additionalProperties)
- }
-
- override fun hashCode(): Int = hashCode
-
- override fun toString() =
- "Body{address=$address, beneficialOwnerId=$beneficialOwnerId, additionalProperties=$additionalProperties}"
- }
-
- /**
- * The individual's physical address. Mail receiving locations like PO Boxes and PMB's are
- * disallowed.
- */
- class Address
- @JsonCreator(mode = JsonCreator.Mode.DISABLED)
- private constructor(
- private val city: JsonField,
- private val country: JsonField,
- private val line1: JsonField,
- private val line2: JsonField,
- private val state: JsonField,
- private val zip: JsonField,
- private val additionalProperties: MutableMap,
- ) {
-
- @JsonCreator
- private constructor(
- @JsonProperty("city") @ExcludeMissing city: JsonField = JsonMissing.of(),
- @JsonProperty("country") @ExcludeMissing country: JsonField = JsonMissing.of(),
- @JsonProperty("line1") @ExcludeMissing line1: JsonField = JsonMissing.of(),
- @JsonProperty("line2") @ExcludeMissing line2: JsonField = JsonMissing.of(),
- @JsonProperty("state") @ExcludeMissing state: JsonField = JsonMissing.of(),
- @JsonProperty("zip") @ExcludeMissing zip: JsonField = JsonMissing.of(),
- ) : this(city, country, line1, line2, state, zip, mutableMapOf())
-
- /**
- * The city, district, town, or village of the address.
- *
- * @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 city(): String = city.getRequired("city")
-
- /**
- * The two-letter ISO 3166-1 alpha-2 code for the country of the address.
- *
- * @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 country(): String = country.getRequired("country")
-
- /**
- * The first line of the address. This is usually the street number and street.
- *
- * @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 line1(): String = line1.getRequired("line1")
-
- /**
- * The second line of the address. This might be the floor or room number.
- *
- * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if
- * the server responded with an unexpected value).
- */
- fun line2(): Optional = line2.getOptional("line2")
-
- /**
- * The two-letter United States Postal Service (USPS) abbreviation for the US state,
- * province, or region of the address. Required in certain countries.
- *
- * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if
- * the server responded with an unexpected value).
- */
- fun state(): Optional = state.getOptional("state")
-
- /**
- * The ZIP or postal code of the address. Required in certain countries.
- *
- * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if
- * the server responded with an unexpected value).
- */
- fun zip(): Optional = zip.getOptional("zip")
-
- /**
- * Returns the raw JSON value of [city].
- *
- * Unlike [city], this method doesn't throw if the JSON field has an unexpected type.
- */
- @JsonProperty("city") @ExcludeMissing fun _city(): JsonField = city
-
- /**
- * Returns the raw JSON value of [country].
- *
- * Unlike [country], this method doesn't throw if the JSON field has an unexpected type.
- */
- @JsonProperty("country") @ExcludeMissing fun _country(): JsonField = country
-
- /**
- * Returns the raw JSON value of [line1].
- *
- * Unlike [line1], this method doesn't throw if the JSON field has an unexpected type.
- */
- @JsonProperty("line1") @ExcludeMissing fun _line1(): JsonField = line1
-
- /**
- * Returns the raw JSON value of [line2].
- *
- * Unlike [line2], this method doesn't throw if the JSON field has an unexpected type.
- */
- @JsonProperty("line2") @ExcludeMissing fun _line2(): JsonField = line2
-
- /**
- * Returns the raw JSON value of [state].
- *
- * Unlike [state], this method doesn't throw if the JSON field has an unexpected type.
- */
- @JsonProperty("state") @ExcludeMissing fun _state(): JsonField = state
-
- /**
- * Returns the raw JSON value of [zip].
- *
- * Unlike [zip], this method doesn't throw if the JSON field has an unexpected type.
- */
- @JsonProperty("zip") @ExcludeMissing fun _zip(): JsonField = zip
-
- @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 [Address].
- *
- * The following fields are required:
- * ```java
- * .city()
- * .country()
- * .line1()
- * ```
- */
- @JvmStatic fun builder() = Builder()
- }
-
- /** A builder for [Address]. */
- class Builder internal constructor() {
-
- private var city: JsonField? = null
- private var country: JsonField? = null
- private var line1: JsonField? = null
- private var line2: JsonField = JsonMissing.of()
- private var state: JsonField = JsonMissing.of()
- private var zip: JsonField = JsonMissing.of()
- private var additionalProperties: MutableMap = mutableMapOf()
-
- @JvmSynthetic
- internal fun from(address: Address) = apply {
- city = address.city
- country = address.country
- line1 = address.line1
- line2 = address.line2
- state = address.state
- zip = address.zip
- additionalProperties = address.additionalProperties.toMutableMap()
- }
-
- /** The city, district, town, or village of the address. */
- fun city(city: String) = city(JsonField.of(city))
-
- /**
- * Sets [Builder.city] to an arbitrary JSON value.
- *
- * You should usually call [Builder.city] with a well-typed [String] value instead. This
- * method is primarily for setting the field to an undocumented or not yet supported
- * value.
- */
- fun city(city: JsonField) = apply { this.city = city }
-
- /** The two-letter ISO 3166-1 alpha-2 code for the country of the address. */
- fun country(country: String) = country(JsonField.of(country))
-
- /**
- * Sets [Builder.country] to an arbitrary JSON value.
- *
- * You should usually call [Builder.country] with a well-typed [String] value instead.
- * This method is primarily for setting the field to an undocumented or not yet
- * supported value.
- */
- fun country(country: JsonField) = apply { this.country = country }
-
- /** The first line of the address. This is usually the street number and street. */
- fun line1(line1: String) = line1(JsonField.of(line1))
-
- /**
- * Sets [Builder.line1] to an arbitrary JSON value.
- *
- * You should usually call [Builder.line1] with a well-typed [String] value instead.
- * This method is primarily for setting the field to an undocumented or not yet
- * supported value.
- */
- fun line1(line1: JsonField) = apply { this.line1 = line1 }
-
- /** The second line of the address. This might be the floor or room number. */
- fun line2(line2: String) = line2(JsonField.of(line2))
-
- /**
- * Sets [Builder.line2] to an arbitrary JSON value.
- *
- * You should usually call [Builder.line2] with a well-typed [String] value instead.
- * This method is primarily for setting the field to an undocumented or not yet
- * supported value.
- */
- fun line2(line2: JsonField) = apply { this.line2 = line2 }
-
- /**
- * The two-letter United States Postal Service (USPS) abbreviation for the US state,
- * province, or region of the address. Required in certain countries.
- */
- fun state(state: String) = state(JsonField.of(state))
-
- /**
- * Sets [Builder.state] to an arbitrary JSON value.
- *
- * You should usually call [Builder.state] with a well-typed [String] value instead.
- * This method is primarily for setting the field to an undocumented or not yet
- * supported value.
- */
- fun state(state: JsonField) = apply { this.state = state }
-
- /** The ZIP or postal code of the address. Required in certain countries. */
- fun zip(zip: String) = zip(JsonField.of(zip))
-
- /**
- * Sets [Builder.zip] to an arbitrary JSON value.
- *
- * You should usually call [Builder.zip] with a well-typed [String] value instead. This
- * method is primarily for setting the field to an undocumented or not yet supported
- * value.
- */
- fun zip(zip: JsonField) = apply { this.zip = zip }
-
- 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 [Address].
- *
- * Further updates to this [Builder] will not mutate the returned instance.
- *
- * The following fields are required:
- * ```java
- * .city()
- * .country()
- * .line1()
- * ```
- *
- * @throws IllegalStateException if any required field is unset.
- */
- fun build(): Address =
- Address(
- checkRequired("city", city),
- checkRequired("country", country),
- checkRequired("line1", line1),
- line2,
- state,
- zip,
- additionalProperties.toMutableMap(),
- )
- }
-
- private var validated: Boolean = false
-
- fun validate(): Address = apply {
- if (validated) {
- return@apply
- }
-
- city()
- country()
- line1()
- line2()
- state()
- zip()
- 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 (city.asKnown().isPresent) 1 else 0) +
- (if (country.asKnown().isPresent) 1 else 0) +
- (if (line1.asKnown().isPresent) 1 else 0) +
- (if (line2.asKnown().isPresent) 1 else 0) +
- (if (state.asKnown().isPresent) 1 else 0) +
- (if (zip.asKnown().isPresent) 1 else 0)
-
- override fun equals(other: Any?): Boolean {
- if (this === other) {
- return true
- }
-
- return other is Address &&
- city == other.city &&
- country == other.country &&
- line1 == other.line1 &&
- line2 == other.line2 &&
- state == other.state &&
- zip == other.zip &&
- additionalProperties == other.additionalProperties
- }
-
- private val hashCode: Int by lazy {
- Objects.hash(city, country, line1, line2, state, zip, additionalProperties)
- }
-
- override fun hashCode(): Int = hashCode
-
- override fun toString() =
- "Address{city=$city, country=$country, line1=$line1, line2=$line2, state=$state, zip=$zip, additionalProperties=$additionalProperties}"
- }
-
- override fun equals(other: Any?): Boolean {
- if (this === other) {
- return true
- }
-
- return other is EntityUpdateBeneficialOwnerAddressParams &&
- entityId == other.entityId &&
- body == other.body &&
- additionalHeaders == other.additionalHeaders &&
- additionalQueryParams == other.additionalQueryParams
- }
-
- override fun hashCode(): Int =
- Objects.hash(entityId, body, additionalHeaders, additionalQueryParams)
-
- override fun toString() =
- "EntityUpdateBeneficialOwnerAddressParams{entityId=$entityId, body=$body, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams}"
-}
diff --git a/increase-java-core/src/main/kotlin/com/increase/api/services/async/EntityServiceAsync.kt b/increase-java-core/src/main/kotlin/com/increase/api/services/async/EntityServiceAsync.kt
index 7663b656e..caea11956 100644
--- a/increase-java-core/src/main/kotlin/com/increase/api/services/async/EntityServiceAsync.kt
+++ b/increase-java-core/src/main/kotlin/com/increase/api/services/async/EntityServiceAsync.kt
@@ -6,14 +6,12 @@ import com.increase.api.core.ClientOptions
import com.increase.api.core.RequestOptions
import com.increase.api.core.http.HttpResponseFor
import com.increase.api.models.entities.Entity
-import com.increase.api.models.entities.EntityArchiveBeneficialOwnerParams
import com.increase.api.models.entities.EntityArchiveParams
import com.increase.api.models.entities.EntityCreateBeneficialOwnerParams
import com.increase.api.models.entities.EntityCreateParams
import com.increase.api.models.entities.EntityListPageAsync
import com.increase.api.models.entities.EntityListParams
import com.increase.api.models.entities.EntityRetrieveParams
-import com.increase.api.models.entities.EntityUpdateBeneficialOwnerAddressParams
import com.increase.api.models.entities.EntityUpdateParams
import java.util.concurrent.CompletableFuture
import java.util.function.Consumer
@@ -156,31 +154,6 @@ interface EntityServiceAsync {
fun archive(entityId: String, requestOptions: RequestOptions): CompletableFuture =
archive(entityId, EntityArchiveParams.none(), requestOptions)
- /** Archive a beneficial owner for a corporate Entity */
- fun archiveBeneficialOwner(
- entityId: String,
- params: EntityArchiveBeneficialOwnerParams,
- ): CompletableFuture = archiveBeneficialOwner(entityId, params, RequestOptions.none())
-
- /** @see archiveBeneficialOwner */
- fun archiveBeneficialOwner(
- entityId: String,
- params: EntityArchiveBeneficialOwnerParams,
- requestOptions: RequestOptions = RequestOptions.none(),
- ): CompletableFuture =
- archiveBeneficialOwner(params.toBuilder().entityId(entityId).build(), requestOptions)
-
- /** @see archiveBeneficialOwner */
- fun archiveBeneficialOwner(
- params: EntityArchiveBeneficialOwnerParams
- ): CompletableFuture = archiveBeneficialOwner(params, RequestOptions.none())
-
- /** @see archiveBeneficialOwner */
- fun archiveBeneficialOwner(
- params: EntityArchiveBeneficialOwnerParams,
- requestOptions: RequestOptions = RequestOptions.none(),
- ): CompletableFuture
-
/** Create a beneficial owner for a corporate Entity */
fun createBeneficialOwner(
entityId: String,
@@ -206,32 +179,6 @@ interface EntityServiceAsync {
requestOptions: RequestOptions = RequestOptions.none(),
): CompletableFuture
- /** Update the address for a beneficial owner belonging to a corporate Entity */
- fun updateBeneficialOwnerAddress(
- entityId: String,
- params: EntityUpdateBeneficialOwnerAddressParams,
- ): CompletableFuture =
- updateBeneficialOwnerAddress(entityId, params, RequestOptions.none())
-
- /** @see updateBeneficialOwnerAddress */
- fun updateBeneficialOwnerAddress(
- entityId: String,
- params: EntityUpdateBeneficialOwnerAddressParams,
- requestOptions: RequestOptions = RequestOptions.none(),
- ): CompletableFuture =
- updateBeneficialOwnerAddress(params.toBuilder().entityId(entityId).build(), requestOptions)
-
- /** @see updateBeneficialOwnerAddress */
- fun updateBeneficialOwnerAddress(
- params: EntityUpdateBeneficialOwnerAddressParams
- ): CompletableFuture = updateBeneficialOwnerAddress(params, RequestOptions.none())
-
- /** @see updateBeneficialOwnerAddress */
- fun updateBeneficialOwnerAddress(
- params: EntityUpdateBeneficialOwnerAddressParams,
- requestOptions: RequestOptions = RequestOptions.none(),
- ): CompletableFuture
-
/**
* A view of [EntityServiceAsync] that provides access to raw HTTP responses for each method.
*/
@@ -401,36 +348,6 @@ interface EntityServiceAsync {
): CompletableFuture> =
archive(entityId, EntityArchiveParams.none(), requestOptions)
- /**
- * Returns a raw HTTP response for `post /entities/{entity_id}/archive_beneficial_owner`,
- * but is otherwise the same as [EntityServiceAsync.archiveBeneficialOwner].
- */
- fun archiveBeneficialOwner(
- entityId: String,
- params: EntityArchiveBeneficialOwnerParams,
- ): CompletableFuture> =
- archiveBeneficialOwner(entityId, params, RequestOptions.none())
-
- /** @see archiveBeneficialOwner */
- fun archiveBeneficialOwner(
- entityId: String,
- params: EntityArchiveBeneficialOwnerParams,
- requestOptions: RequestOptions = RequestOptions.none(),
- ): CompletableFuture> =
- archiveBeneficialOwner(params.toBuilder().entityId(entityId).build(), requestOptions)
-
- /** @see archiveBeneficialOwner */
- fun archiveBeneficialOwner(
- params: EntityArchiveBeneficialOwnerParams
- ): CompletableFuture> =
- archiveBeneficialOwner(params, RequestOptions.none())
-
- /** @see archiveBeneficialOwner */
- fun archiveBeneficialOwner(
- params: EntityArchiveBeneficialOwnerParams,
- requestOptions: RequestOptions = RequestOptions.none(),
- ): CompletableFuture>
-
/**
* Returns a raw HTTP response for `post /entities/{entity_id}/create_beneficial_owner`, but
* is otherwise the same as [EntityServiceAsync.createBeneficialOwner].
@@ -460,39 +377,5 @@ interface EntityServiceAsync {
params: EntityCreateBeneficialOwnerParams,
requestOptions: RequestOptions = RequestOptions.none(),
): CompletableFuture>
-
- /**
- * Returns a raw HTTP response for `post
- * /entities/{entity_id}/update_beneficial_owner_address`, but is otherwise the same as
- * [EntityServiceAsync.updateBeneficialOwnerAddress].
- */
- fun updateBeneficialOwnerAddress(
- entityId: String,
- params: EntityUpdateBeneficialOwnerAddressParams,
- ): CompletableFuture> =
- updateBeneficialOwnerAddress(entityId, params, RequestOptions.none())
-
- /** @see updateBeneficialOwnerAddress */
- fun updateBeneficialOwnerAddress(
- entityId: String,
- params: EntityUpdateBeneficialOwnerAddressParams,
- requestOptions: RequestOptions = RequestOptions.none(),
- ): CompletableFuture> =
- updateBeneficialOwnerAddress(
- params.toBuilder().entityId(entityId).build(),
- requestOptions,
- )
-
- /** @see updateBeneficialOwnerAddress */
- fun updateBeneficialOwnerAddress(
- params: EntityUpdateBeneficialOwnerAddressParams
- ): CompletableFuture> =
- updateBeneficialOwnerAddress(params, RequestOptions.none())
-
- /** @see updateBeneficialOwnerAddress */
- fun updateBeneficialOwnerAddress(
- params: EntityUpdateBeneficialOwnerAddressParams,
- requestOptions: RequestOptions = RequestOptions.none(),
- ): CompletableFuture>
}
}
diff --git a/increase-java-core/src/main/kotlin/com/increase/api/services/async/EntityServiceAsyncImpl.kt b/increase-java-core/src/main/kotlin/com/increase/api/services/async/EntityServiceAsyncImpl.kt
index 19666c2dd..1d0a25348 100644
--- a/increase-java-core/src/main/kotlin/com/increase/api/services/async/EntityServiceAsyncImpl.kt
+++ b/increase-java-core/src/main/kotlin/com/increase/api/services/async/EntityServiceAsyncImpl.kt
@@ -17,7 +17,6 @@ import com.increase.api.core.http.json
import com.increase.api.core.http.parseable
import com.increase.api.core.prepareAsync
import com.increase.api.models.entities.Entity
-import com.increase.api.models.entities.EntityArchiveBeneficialOwnerParams
import com.increase.api.models.entities.EntityArchiveParams
import com.increase.api.models.entities.EntityCreateBeneficialOwnerParams
import com.increase.api.models.entities.EntityCreateParams
@@ -25,7 +24,6 @@ import com.increase.api.models.entities.EntityListPageAsync
import com.increase.api.models.entities.EntityListPageResponse
import com.increase.api.models.entities.EntityListParams
import com.increase.api.models.entities.EntityRetrieveParams
-import com.increase.api.models.entities.EntityUpdateBeneficialOwnerAddressParams
import com.increase.api.models.entities.EntityUpdateParams
import java.util.concurrent.CompletableFuture
import java.util.function.Consumer
@@ -78,13 +76,6 @@ class EntityServiceAsyncImpl internal constructor(private val clientOptions: Cli
// post /entities/{entity_id}/archive
withRawResponse().archive(params, requestOptions).thenApply { it.parse() }
- override fun archiveBeneficialOwner(
- params: EntityArchiveBeneficialOwnerParams,
- requestOptions: RequestOptions,
- ): CompletableFuture =
- // post /entities/{entity_id}/archive_beneficial_owner
- withRawResponse().archiveBeneficialOwner(params, requestOptions).thenApply { it.parse() }
-
override fun createBeneficialOwner(
params: EntityCreateBeneficialOwnerParams,
requestOptions: RequestOptions,
@@ -92,15 +83,6 @@ class EntityServiceAsyncImpl internal constructor(private val clientOptions: Cli
// post /entities/{entity_id}/create_beneficial_owner
withRawResponse().createBeneficialOwner(params, requestOptions).thenApply { it.parse() }
- override fun updateBeneficialOwnerAddress(
- params: EntityUpdateBeneficialOwnerAddressParams,
- requestOptions: RequestOptions,
- ): CompletableFuture =
- // post /entities/{entity_id}/update_beneficial_owner_address
- withRawResponse().updateBeneficialOwnerAddress(params, requestOptions).thenApply {
- it.parse()
- }
-
class WithRawResponseImpl internal constructor(private val clientOptions: ClientOptions) :
EntityServiceAsync.WithRawResponse {
@@ -280,40 +262,6 @@ class EntityServiceAsyncImpl internal constructor(private val clientOptions: Cli
}
}
- private val archiveBeneficialOwnerHandler: Handler =
- jsonHandler(clientOptions.jsonMapper)
-
- override fun archiveBeneficialOwner(
- params: EntityArchiveBeneficialOwnerParams,
- requestOptions: RequestOptions,
- ): CompletableFuture> {
- // We check here instead of in the params builder because this can be specified
- // positionally or in the params class.
- checkRequired("entityId", params.entityId().getOrNull())
- val request =
- HttpRequest.builder()
- .method(HttpMethod.POST)
- .baseUrl(clientOptions.baseUrl())
- .addPathSegments("entities", params._pathParam(0), "archive_beneficial_owner")
- .body(json(clientOptions.jsonMapper, params._body()))
- .build()
- .prepareAsync(clientOptions, params)
- val requestOptions = requestOptions.applyDefaults(RequestOptions.from(clientOptions))
- return request
- .thenComposeAsync { clientOptions.httpClient.executeAsync(it, requestOptions) }
- .thenApply { response ->
- errorHandler.handle(response).parseable {
- response
- .use { archiveBeneficialOwnerHandler.handle(it) }
- .also {
- if (requestOptions.responseValidation!!) {
- it.validate()
- }
- }
- }
- }
- }
-
private val createBeneficialOwnerHandler: Handler =
jsonHandler(clientOptions.jsonMapper)
@@ -347,43 +295,5 @@ class EntityServiceAsyncImpl internal constructor(private val clientOptions: Cli
}
}
}
-
- private val updateBeneficialOwnerAddressHandler: Handler =
- jsonHandler(clientOptions.jsonMapper)
-
- override fun updateBeneficialOwnerAddress(
- params: EntityUpdateBeneficialOwnerAddressParams,
- requestOptions: RequestOptions,
- ): CompletableFuture> {
- // We check here instead of in the params builder because this can be specified
- // positionally or in the params class.
- checkRequired("entityId", params.entityId().getOrNull())
- val request =
- HttpRequest.builder()
- .method(HttpMethod.POST)
- .baseUrl(clientOptions.baseUrl())
- .addPathSegments(
- "entities",
- params._pathParam(0),
- "update_beneficial_owner_address",
- )
- .body(json(clientOptions.jsonMapper, params._body()))
- .build()
- .prepareAsync(clientOptions, params)
- val requestOptions = requestOptions.applyDefaults(RequestOptions.from(clientOptions))
- return request
- .thenComposeAsync { clientOptions.httpClient.executeAsync(it, requestOptions) }
- .thenApply { response ->
- errorHandler.handle(response).parseable {
- response
- .use { updateBeneficialOwnerAddressHandler.handle(it) }
- .also {
- if (requestOptions.responseValidation!!) {
- it.validate()
- }
- }
- }
- }
- }
}
}
diff --git a/increase-java-core/src/main/kotlin/com/increase/api/services/blocking/EntityService.kt b/increase-java-core/src/main/kotlin/com/increase/api/services/blocking/EntityService.kt
index 79cdb087e..76e96fbba 100644
--- a/increase-java-core/src/main/kotlin/com/increase/api/services/blocking/EntityService.kt
+++ b/increase-java-core/src/main/kotlin/com/increase/api/services/blocking/EntityService.kt
@@ -7,14 +7,12 @@ import com.increase.api.core.ClientOptions
import com.increase.api.core.RequestOptions
import com.increase.api.core.http.HttpResponseFor
import com.increase.api.models.entities.Entity
-import com.increase.api.models.entities.EntityArchiveBeneficialOwnerParams
import com.increase.api.models.entities.EntityArchiveParams
import com.increase.api.models.entities.EntityCreateBeneficialOwnerParams
import com.increase.api.models.entities.EntityCreateParams
import com.increase.api.models.entities.EntityListPage
import com.increase.api.models.entities.EntityListParams
import com.increase.api.models.entities.EntityRetrieveParams
-import com.increase.api.models.entities.EntityUpdateBeneficialOwnerAddressParams
import com.increase.api.models.entities.EntityUpdateParams
import java.util.function.Consumer
@@ -143,30 +141,6 @@ interface EntityService {
fun archive(entityId: String, requestOptions: RequestOptions): Entity =
archive(entityId, EntityArchiveParams.none(), requestOptions)
- /** Archive a beneficial owner for a corporate Entity */
- fun archiveBeneficialOwner(
- entityId: String,
- params: EntityArchiveBeneficialOwnerParams,
- ): Entity = archiveBeneficialOwner(entityId, params, RequestOptions.none())
-
- /** @see archiveBeneficialOwner */
- fun archiveBeneficialOwner(
- entityId: String,
- params: EntityArchiveBeneficialOwnerParams,
- requestOptions: RequestOptions = RequestOptions.none(),
- ): Entity =
- archiveBeneficialOwner(params.toBuilder().entityId(entityId).build(), requestOptions)
-
- /** @see archiveBeneficialOwner */
- fun archiveBeneficialOwner(params: EntityArchiveBeneficialOwnerParams): Entity =
- archiveBeneficialOwner(params, RequestOptions.none())
-
- /** @see archiveBeneficialOwner */
- fun archiveBeneficialOwner(
- params: EntityArchiveBeneficialOwnerParams,
- requestOptions: RequestOptions = RequestOptions.none(),
- ): Entity
-
/** Create a beneficial owner for a corporate Entity */
fun createBeneficialOwner(entityId: String, params: EntityCreateBeneficialOwnerParams): Entity =
createBeneficialOwner(entityId, params, RequestOptions.none())
@@ -188,30 +162,6 @@ interface EntityService {
requestOptions: RequestOptions = RequestOptions.none(),
): Entity
- /** Update the address for a beneficial owner belonging to a corporate Entity */
- fun updateBeneficialOwnerAddress(
- entityId: String,
- params: EntityUpdateBeneficialOwnerAddressParams,
- ): Entity = updateBeneficialOwnerAddress(entityId, params, RequestOptions.none())
-
- /** @see updateBeneficialOwnerAddress */
- fun updateBeneficialOwnerAddress(
- entityId: String,
- params: EntityUpdateBeneficialOwnerAddressParams,
- requestOptions: RequestOptions = RequestOptions.none(),
- ): Entity =
- updateBeneficialOwnerAddress(params.toBuilder().entityId(entityId).build(), requestOptions)
-
- /** @see updateBeneficialOwnerAddress */
- fun updateBeneficialOwnerAddress(params: EntityUpdateBeneficialOwnerAddressParams): Entity =
- updateBeneficialOwnerAddress(params, RequestOptions.none())
-
- /** @see updateBeneficialOwnerAddress */
- fun updateBeneficialOwnerAddress(
- params: EntityUpdateBeneficialOwnerAddressParams,
- requestOptions: RequestOptions = RequestOptions.none(),
- ): Entity
-
/** A view of [EntityService] that provides access to raw HTTP responses for each method. */
interface WithRawResponse {
@@ -384,38 +334,6 @@ interface EntityService {
fun archive(entityId: String, requestOptions: RequestOptions): HttpResponseFor =
archive(entityId, EntityArchiveParams.none(), requestOptions)
- /**
- * Returns a raw HTTP response for `post /entities/{entity_id}/archive_beneficial_owner`,
- * but is otherwise the same as [EntityService.archiveBeneficialOwner].
- */
- @MustBeClosed
- fun archiveBeneficialOwner(
- entityId: String,
- params: EntityArchiveBeneficialOwnerParams,
- ): HttpResponseFor = archiveBeneficialOwner(entityId, params, RequestOptions.none())
-
- /** @see archiveBeneficialOwner */
- @MustBeClosed
- fun archiveBeneficialOwner(
- entityId: String,
- params: EntityArchiveBeneficialOwnerParams,
- requestOptions: RequestOptions = RequestOptions.none(),
- ): HttpResponseFor =
- archiveBeneficialOwner(params.toBuilder().entityId(entityId).build(), requestOptions)
-
- /** @see archiveBeneficialOwner */
- @MustBeClosed
- fun archiveBeneficialOwner(
- params: EntityArchiveBeneficialOwnerParams
- ): HttpResponseFor = archiveBeneficialOwner(params, RequestOptions.none())
-
- /** @see archiveBeneficialOwner */
- @MustBeClosed
- fun archiveBeneficialOwner(
- params: EntityArchiveBeneficialOwnerParams,
- requestOptions: RequestOptions = RequestOptions.none(),
- ): HttpResponseFor
-
/**
* Returns a raw HTTP response for `post /entities/{entity_id}/create_beneficial_owner`, but
* is otherwise the same as [EntityService.createBeneficialOwner].
@@ -447,42 +365,5 @@ interface EntityService {
params: EntityCreateBeneficialOwnerParams,
requestOptions: RequestOptions = RequestOptions.none(),
): HttpResponseFor
-
- /**
- * Returns a raw HTTP response for `post
- * /entities/{entity_id}/update_beneficial_owner_address`, but is otherwise the same as
- * [EntityService.updateBeneficialOwnerAddress].
- */
- @MustBeClosed
- fun updateBeneficialOwnerAddress(
- entityId: String,
- params: EntityUpdateBeneficialOwnerAddressParams,
- ): HttpResponseFor =
- updateBeneficialOwnerAddress(entityId, params, RequestOptions.none())
-
- /** @see updateBeneficialOwnerAddress */
- @MustBeClosed
- fun updateBeneficialOwnerAddress(
- entityId: String,
- params: EntityUpdateBeneficialOwnerAddressParams,
- requestOptions: RequestOptions = RequestOptions.none(),
- ): HttpResponseFor =
- updateBeneficialOwnerAddress(
- params.toBuilder().entityId(entityId).build(),
- requestOptions,
- )
-
- /** @see updateBeneficialOwnerAddress */
- @MustBeClosed
- fun updateBeneficialOwnerAddress(
- params: EntityUpdateBeneficialOwnerAddressParams
- ): HttpResponseFor = updateBeneficialOwnerAddress(params, RequestOptions.none())
-
- /** @see updateBeneficialOwnerAddress */
- @MustBeClosed
- fun updateBeneficialOwnerAddress(
- params: EntityUpdateBeneficialOwnerAddressParams,
- requestOptions: RequestOptions = RequestOptions.none(),
- ): HttpResponseFor
}
}
diff --git a/increase-java-core/src/main/kotlin/com/increase/api/services/blocking/EntityServiceImpl.kt b/increase-java-core/src/main/kotlin/com/increase/api/services/blocking/EntityServiceImpl.kt
index f6986074e..70496be92 100644
--- a/increase-java-core/src/main/kotlin/com/increase/api/services/blocking/EntityServiceImpl.kt
+++ b/increase-java-core/src/main/kotlin/com/increase/api/services/blocking/EntityServiceImpl.kt
@@ -17,7 +17,6 @@ import com.increase.api.core.http.json
import com.increase.api.core.http.parseable
import com.increase.api.core.prepare
import com.increase.api.models.entities.Entity
-import com.increase.api.models.entities.EntityArchiveBeneficialOwnerParams
import com.increase.api.models.entities.EntityArchiveParams
import com.increase.api.models.entities.EntityCreateBeneficialOwnerParams
import com.increase.api.models.entities.EntityCreateParams
@@ -25,7 +24,6 @@ import com.increase.api.models.entities.EntityListPage
import com.increase.api.models.entities.EntityListPageResponse
import com.increase.api.models.entities.EntityListParams
import com.increase.api.models.entities.EntityRetrieveParams
-import com.increase.api.models.entities.EntityUpdateBeneficialOwnerAddressParams
import com.increase.api.models.entities.EntityUpdateParams
import java.util.function.Consumer
import kotlin.jvm.optionals.getOrNull
@@ -62,13 +60,6 @@ class EntityServiceImpl internal constructor(private val clientOptions: ClientOp
// post /entities/{entity_id}/archive
withRawResponse().archive(params, requestOptions).parse()
- override fun archiveBeneficialOwner(
- params: EntityArchiveBeneficialOwnerParams,
- requestOptions: RequestOptions,
- ): Entity =
- // post /entities/{entity_id}/archive_beneficial_owner
- withRawResponse().archiveBeneficialOwner(params, requestOptions).parse()
-
override fun createBeneficialOwner(
params: EntityCreateBeneficialOwnerParams,
requestOptions: RequestOptions,
@@ -76,13 +67,6 @@ class EntityServiceImpl internal constructor(private val clientOptions: ClientOp
// post /entities/{entity_id}/create_beneficial_owner
withRawResponse().createBeneficialOwner(params, requestOptions).parse()
- override fun updateBeneficialOwnerAddress(
- params: EntityUpdateBeneficialOwnerAddressParams,
- requestOptions: RequestOptions,
- ): Entity =
- // post /entities/{entity_id}/update_beneficial_owner_address
- withRawResponse().updateBeneficialOwnerAddress(params, requestOptions).parse()
-
class WithRawResponseImpl internal constructor(private val clientOptions: ClientOptions) :
EntityService.WithRawResponse {
@@ -246,37 +230,6 @@ class EntityServiceImpl internal constructor(private val clientOptions: ClientOp
}
}
- private val archiveBeneficialOwnerHandler: Handler =
- jsonHandler(clientOptions.jsonMapper)
-
- override fun archiveBeneficialOwner(
- params: EntityArchiveBeneficialOwnerParams,
- requestOptions: RequestOptions,
- ): HttpResponseFor {
- // We check here instead of in the params builder because this can be specified
- // positionally or in the params class.
- checkRequired("entityId", params.entityId().getOrNull())
- val request =
- HttpRequest.builder()
- .method(HttpMethod.POST)
- .baseUrl(clientOptions.baseUrl())
- .addPathSegments("entities", params._pathParam(0), "archive_beneficial_owner")
- .body(json(clientOptions.jsonMapper, params._body()))
- .build()
- .prepare(clientOptions, params)
- val requestOptions = requestOptions.applyDefaults(RequestOptions.from(clientOptions))
- val response = clientOptions.httpClient.execute(request, requestOptions)
- return errorHandler.handle(response).parseable {
- response
- .use { archiveBeneficialOwnerHandler.handle(it) }
- .also {
- if (requestOptions.responseValidation!!) {
- it.validate()
- }
- }
- }
- }
-
private val createBeneficialOwnerHandler: Handler =
jsonHandler(clientOptions.jsonMapper)
@@ -307,40 +260,5 @@ class EntityServiceImpl internal constructor(private val clientOptions: ClientOp
}
}
}
-
- private val updateBeneficialOwnerAddressHandler: Handler =
- jsonHandler(clientOptions.jsonMapper)
-
- override fun updateBeneficialOwnerAddress(
- params: EntityUpdateBeneficialOwnerAddressParams,
- requestOptions: RequestOptions,
- ): HttpResponseFor {
- // We check here instead of in the params builder because this can be specified
- // positionally or in the params class.
- checkRequired("entityId", params.entityId().getOrNull())
- val request =
- HttpRequest.builder()
- .method(HttpMethod.POST)
- .baseUrl(clientOptions.baseUrl())
- .addPathSegments(
- "entities",
- params._pathParam(0),
- "update_beneficial_owner_address",
- )
- .body(json(clientOptions.jsonMapper, params._body()))
- .build()
- .prepare(clientOptions, params)
- val requestOptions = requestOptions.applyDefaults(RequestOptions.from(clientOptions))
- val response = clientOptions.httpClient.execute(request, requestOptions)
- return errorHandler.handle(response).parseable {
- response
- .use { updateBeneficialOwnerAddressHandler.handle(it) }
- .also {
- if (requestOptions.responseValidation!!) {
- it.validate()
- }
- }
- }
- }
}
}
diff --git a/increase-java-core/src/test/kotlin/com/increase/api/models/entities/EntityArchiveBeneficialOwnerParamsTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/models/entities/EntityArchiveBeneficialOwnerParamsTest.kt
deleted file mode 100644
index 475bb7ac6..000000000
--- a/increase-java-core/src/test/kotlin/com/increase/api/models/entities/EntityArchiveBeneficialOwnerParamsTest.kt
+++ /dev/null
@@ -1,44 +0,0 @@
-// File generated from our OpenAPI spec by Stainless.
-
-package com.increase.api.models.entities
-
-import org.assertj.core.api.Assertions.assertThat
-import org.junit.jupiter.api.Test
-
-internal class EntityArchiveBeneficialOwnerParamsTest {
-
- @Test
- fun create() {
- EntityArchiveBeneficialOwnerParams.builder()
- .entityId("entity_n8y8tnk2p9339ti393yi")
- .beneficialOwnerId("entity_setup_beneficial_owner_submission_vgkyk7dj5eb4sfhdbkx7")
- .build()
- }
-
- @Test
- fun pathParams() {
- val params =
- EntityArchiveBeneficialOwnerParams.builder()
- .entityId("entity_n8y8tnk2p9339ti393yi")
- .beneficialOwnerId("entity_setup_beneficial_owner_submission_vgkyk7dj5eb4sfhdbkx7")
- .build()
-
- assertThat(params._pathParam(0)).isEqualTo("entity_n8y8tnk2p9339ti393yi")
- // out-of-bound path param
- assertThat(params._pathParam(1)).isEqualTo("")
- }
-
- @Test
- fun body() {
- val params =
- EntityArchiveBeneficialOwnerParams.builder()
- .entityId("entity_n8y8tnk2p9339ti393yi")
- .beneficialOwnerId("entity_setup_beneficial_owner_submission_vgkyk7dj5eb4sfhdbkx7")
- .build()
-
- val body = params._body()
-
- assertThat(body.beneficialOwnerId())
- .isEqualTo("entity_setup_beneficial_owner_submission_vgkyk7dj5eb4sfhdbkx7")
- }
-}
diff --git a/increase-java-core/src/test/kotlin/com/increase/api/models/entities/EntityUpdateBeneficialOwnerAddressParamsTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/models/entities/EntityUpdateBeneficialOwnerAddressParamsTest.kt
deleted file mode 100644
index a1ec63b30..000000000
--- a/increase-java-core/src/test/kotlin/com/increase/api/models/entities/EntityUpdateBeneficialOwnerAddressParamsTest.kt
+++ /dev/null
@@ -1,111 +0,0 @@
-// File generated from our OpenAPI spec by Stainless.
-
-package com.increase.api.models.entities
-
-import org.assertj.core.api.Assertions.assertThat
-import org.junit.jupiter.api.Test
-
-internal class EntityUpdateBeneficialOwnerAddressParamsTest {
-
- @Test
- fun create() {
- EntityUpdateBeneficialOwnerAddressParams.builder()
- .entityId("entity_n8y8tnk2p9339ti393yi")
- .address(
- EntityUpdateBeneficialOwnerAddressParams.Address.builder()
- .city("New York")
- .country("US")
- .line1("33 Liberty Street")
- .line2("Unit 2")
- .state("NY")
- .zip("10045")
- .build()
- )
- .beneficialOwnerId("entity_setup_beneficial_owner_submission_vgkyk7dj5eb4sfhdbkx7")
- .build()
- }
-
- @Test
- fun pathParams() {
- val params =
- EntityUpdateBeneficialOwnerAddressParams.builder()
- .entityId("entity_n8y8tnk2p9339ti393yi")
- .address(
- EntityUpdateBeneficialOwnerAddressParams.Address.builder()
- .city("New York")
- .country("US")
- .line1("33 Liberty Street")
- .build()
- )
- .beneficialOwnerId("entity_setup_beneficial_owner_submission_vgkyk7dj5eb4sfhdbkx7")
- .build()
-
- assertThat(params._pathParam(0)).isEqualTo("entity_n8y8tnk2p9339ti393yi")
- // out-of-bound path param
- assertThat(params._pathParam(1)).isEqualTo("")
- }
-
- @Test
- fun body() {
- val params =
- EntityUpdateBeneficialOwnerAddressParams.builder()
- .entityId("entity_n8y8tnk2p9339ti393yi")
- .address(
- EntityUpdateBeneficialOwnerAddressParams.Address.builder()
- .city("New York")
- .country("US")
- .line1("33 Liberty Street")
- .line2("Unit 2")
- .state("NY")
- .zip("10045")
- .build()
- )
- .beneficialOwnerId("entity_setup_beneficial_owner_submission_vgkyk7dj5eb4sfhdbkx7")
- .build()
-
- val body = params._body()
-
- assertThat(body.address())
- .isEqualTo(
- EntityUpdateBeneficialOwnerAddressParams.Address.builder()
- .city("New York")
- .country("US")
- .line1("33 Liberty Street")
- .line2("Unit 2")
- .state("NY")
- .zip("10045")
- .build()
- )
- assertThat(body.beneficialOwnerId())
- .isEqualTo("entity_setup_beneficial_owner_submission_vgkyk7dj5eb4sfhdbkx7")
- }
-
- @Test
- fun bodyWithoutOptionalFields() {
- val params =
- EntityUpdateBeneficialOwnerAddressParams.builder()
- .entityId("entity_n8y8tnk2p9339ti393yi")
- .address(
- EntityUpdateBeneficialOwnerAddressParams.Address.builder()
- .city("New York")
- .country("US")
- .line1("33 Liberty Street")
- .build()
- )
- .beneficialOwnerId("entity_setup_beneficial_owner_submission_vgkyk7dj5eb4sfhdbkx7")
- .build()
-
- val body = params._body()
-
- assertThat(body.address())
- .isEqualTo(
- EntityUpdateBeneficialOwnerAddressParams.Address.builder()
- .city("New York")
- .country("US")
- .line1("33 Liberty Street")
- .build()
- )
- assertThat(body.beneficialOwnerId())
- .isEqualTo("entity_setup_beneficial_owner_submission_vgkyk7dj5eb4sfhdbkx7")
- }
-}
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 ef85dfb2a..7d719c1da 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
@@ -4,10 +4,8 @@ package com.increase.api.services.async
import com.increase.api.TestServerExtension
import com.increase.api.client.okhttp.IncreaseOkHttpClientAsync
-import com.increase.api.models.entities.EntityArchiveBeneficialOwnerParams
import com.increase.api.models.entities.EntityCreateBeneficialOwnerParams
import com.increase.api.models.entities.EntityCreateParams
-import com.increase.api.models.entities.EntityUpdateBeneficialOwnerAddressParams
import com.increase.api.models.entities.EntityUpdateParams
import java.time.LocalDate
import java.time.OffsetDateTime
@@ -598,29 +596,6 @@ internal class EntityServiceAsyncTest {
entity.validate()
}
- @Test
- fun archiveBeneficialOwner() {
- val client =
- IncreaseOkHttpClientAsync.builder()
- .baseUrl(TestServerExtension.BASE_URL)
- .apiKey("My API Key")
- .build()
- val entityServiceAsync = client.entities()
-
- val entityFuture =
- entityServiceAsync.archiveBeneficialOwner(
- EntityArchiveBeneficialOwnerParams.builder()
- .entityId("entity_n8y8tnk2p9339ti393yi")
- .beneficialOwnerId(
- "entity_setup_beneficial_owner_submission_vgkyk7dj5eb4sfhdbkx7"
- )
- .build()
- )
-
- val entity = entityFuture.get()
- entity.validate()
- }
-
@Test
fun createBeneficialOwner() {
val client =
@@ -718,37 +693,4 @@ internal class EntityServiceAsyncTest {
val entity = entityFuture.get()
entity.validate()
}
-
- @Test
- fun updateBeneficialOwnerAddress() {
- val client =
- IncreaseOkHttpClientAsync.builder()
- .baseUrl(TestServerExtension.BASE_URL)
- .apiKey("My API Key")
- .build()
- val entityServiceAsync = client.entities()
-
- val entityFuture =
- entityServiceAsync.updateBeneficialOwnerAddress(
- EntityUpdateBeneficialOwnerAddressParams.builder()
- .entityId("entity_n8y8tnk2p9339ti393yi")
- .address(
- EntityUpdateBeneficialOwnerAddressParams.Address.builder()
- .city("New York")
- .country("US")
- .line1("33 Liberty Street")
- .line2("Unit 2")
- .state("NY")
- .zip("10045")
- .build()
- )
- .beneficialOwnerId(
- "entity_setup_beneficial_owner_submission_vgkyk7dj5eb4sfhdbkx7"
- )
- .build()
- )
-
- val entity = entityFuture.get()
- entity.validate()
- }
}
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 2c822e1d8..c2ef29f19 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
@@ -4,10 +4,8 @@ package com.increase.api.services.blocking
import com.increase.api.TestServerExtension
import com.increase.api.client.okhttp.IncreaseOkHttpClient
-import com.increase.api.models.entities.EntityArchiveBeneficialOwnerParams
import com.increase.api.models.entities.EntityCreateBeneficialOwnerParams
import com.increase.api.models.entities.EntityCreateParams
-import com.increase.api.models.entities.EntityUpdateBeneficialOwnerAddressParams
import com.increase.api.models.entities.EntityUpdateParams
import java.time.LocalDate
import java.time.OffsetDateTime
@@ -593,28 +591,6 @@ internal class EntityServiceTest {
entity.validate()
}
- @Test
- fun archiveBeneficialOwner() {
- val client =
- IncreaseOkHttpClient.builder()
- .baseUrl(TestServerExtension.BASE_URL)
- .apiKey("My API Key")
- .build()
- val entityService = client.entities()
-
- val entity =
- entityService.archiveBeneficialOwner(
- EntityArchiveBeneficialOwnerParams.builder()
- .entityId("entity_n8y8tnk2p9339ti393yi")
- .beneficialOwnerId(
- "entity_setup_beneficial_owner_submission_vgkyk7dj5eb4sfhdbkx7"
- )
- .build()
- )
-
- entity.validate()
- }
-
@Test
fun createBeneficialOwner() {
val client =
@@ -711,36 +687,4 @@ internal class EntityServiceTest {
entity.validate()
}
-
- @Test
- fun updateBeneficialOwnerAddress() {
- val client =
- IncreaseOkHttpClient.builder()
- .baseUrl(TestServerExtension.BASE_URL)
- .apiKey("My API Key")
- .build()
- val entityService = client.entities()
-
- val entity =
- entityService.updateBeneficialOwnerAddress(
- EntityUpdateBeneficialOwnerAddressParams.builder()
- .entityId("entity_n8y8tnk2p9339ti393yi")
- .address(
- EntityUpdateBeneficialOwnerAddressParams.Address.builder()
- .city("New York")
- .country("US")
- .line1("33 Liberty Street")
- .line2("Unit 2")
- .state("NY")
- .zip("10045")
- .build()
- )
- .beneficialOwnerId(
- "entity_setup_beneficial_owner_submission_vgkyk7dj5eb4sfhdbkx7"
- )
- .build()
- )
-
- entity.validate()
- }
}