com.increase.api.services.blocking.EntityService.kt Maven / Gradle / Ivy
The newest version!
// File generated from our OpenAPI spec by Stainless.
@file:Suppress("OVERLOADS_INTERFACE") // See https://youtrack.jetbrains.com/issue/KT-36102
package com.increase.api.services.blocking
import com.increase.api.core.RequestOptions
import com.increase.api.models.Entity
import com.increase.api.models.EntityArchiveBeneficialOwnerParams
import com.increase.api.models.EntityArchiveParams
import com.increase.api.models.EntityConfirmParams
import com.increase.api.models.EntityCreateBeneficialOwnerParams
import com.increase.api.models.EntityCreateParams
import com.increase.api.models.EntityListPage
import com.increase.api.models.EntityListParams
import com.increase.api.models.EntityRetrieveParams
import com.increase.api.models.EntityUpdateAddressParams
import com.increase.api.models.EntityUpdateBeneficialOwnerAddressParams
import com.increase.api.models.EntityUpdateIndustryCodeParams
interface EntityService {
/** Create an Entity */
fun create(
params: EntityCreateParams,
requestOptions: RequestOptions = RequestOptions.none()
): Entity
/** Retrieve an Entity */
fun retrieve(
params: EntityRetrieveParams,
requestOptions: RequestOptions = RequestOptions.none()
): Entity
/** List Entities */
fun list(
params: EntityListParams,
requestOptions: RequestOptions = RequestOptions.none()
): EntityListPage
/** Archive an Entity */
fun archive(
params: EntityArchiveParams,
requestOptions: RequestOptions = RequestOptions.none()
): Entity
/** Archive a beneficial owner for a corporate Entity */
fun archiveBeneficialOwner(
params: EntityArchiveBeneficialOwnerParams,
requestOptions: RequestOptions = RequestOptions.none()
): Entity
/**
* Depending on your program, you may be required to re-confirm an Entity's details on a
* recurring basis. After making any required updates, call this endpoint to record that your
* user confirmed their details.
*/
fun confirm(
params: EntityConfirmParams,
requestOptions: RequestOptions = RequestOptions.none()
): Entity
/** Create a beneficial owner for a corporate Entity */
fun createBeneficialOwner(
params: EntityCreateBeneficialOwnerParams,
requestOptions: RequestOptions = RequestOptions.none()
): Entity
/** Update a Natural Person or Corporation's address */
fun updateAddress(
params: EntityUpdateAddressParams,
requestOptions: RequestOptions = RequestOptions.none()
): Entity
/** Update the address for a beneficial owner belonging to a corporate Entity */
fun updateBeneficialOwnerAddress(
params: EntityUpdateBeneficialOwnerAddressParams,
requestOptions: RequestOptions = RequestOptions.none()
): Entity
/** Update the industry code for a corporate Entity */
fun updateIndustryCode(
params: EntityUpdateIndustryCodeParams,
requestOptions: RequestOptions = RequestOptions.none()
): Entity
}