com.increase.api.models.SimulationInboundAchTransferCreateParams.kt Maven / Gradle / Ivy
The newest version!
// File generated from our OpenAPI spec by Stainless.
package com.increase.api.models
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.fasterxml.jackson.databind.annotation.JsonDeserialize
import com.increase.api.core.Enum
import com.increase.api.core.ExcludeMissing
import com.increase.api.core.JsonField
import com.increase.api.core.JsonValue
import com.increase.api.core.NoAutoDetect
import com.increase.api.core.toUnmodifiable
import com.increase.api.errors.IncreaseInvalidDataException
import com.increase.api.models.*
import java.time.OffsetDateTime
import java.util.Objects
class SimulationInboundAchTransferCreateParams
constructor(
private val accountNumberId: String,
private val amount: Long,
private val companyDescriptiveDate: String?,
private val companyDiscretionaryData: String?,
private val companyEntryDescription: String?,
private val companyId: String?,
private val companyName: String?,
private val receiverIdNumber: String?,
private val receiverName: String?,
private val resolveAt: OffsetDateTime?,
private val standardEntryClassCode: StandardEntryClassCode?,
private val additionalQueryParams: Map>,
private val additionalHeaders: Map>,
private val additionalBodyProperties: Map,
) {
fun accountNumberId(): String = accountNumberId
fun amount(): Long = amount
fun companyDescriptiveDate(): String? = companyDescriptiveDate
fun companyDiscretionaryData(): String? = companyDiscretionaryData
fun companyEntryDescription(): String? = companyEntryDescription
fun companyId(): String? = companyId
fun companyName(): String? = companyName
fun receiverIdNumber(): String? = receiverIdNumber
fun receiverName(): String? = receiverName
fun resolveAt(): OffsetDateTime? = resolveAt
fun standardEntryClassCode(): StandardEntryClassCode? = standardEntryClassCode
internal fun getBody(): SimulationInboundAchTransferCreateBody {
return SimulationInboundAchTransferCreateBody(
accountNumberId,
amount,
companyDescriptiveDate,
companyDiscretionaryData,
companyEntryDescription,
companyId,
companyName,
receiverIdNumber,
receiverName,
resolveAt,
standardEntryClassCode,
additionalBodyProperties,
)
}
internal fun getQueryParams(): Map> = additionalQueryParams
internal fun getHeaders(): Map> = additionalHeaders
@JsonDeserialize(builder = SimulationInboundAchTransferCreateBody.Builder::class)
@NoAutoDetect
class SimulationInboundAchTransferCreateBody
internal constructor(
private val accountNumberId: String?,
private val amount: Long?,
private val companyDescriptiveDate: String?,
private val companyDiscretionaryData: String?,
private val companyEntryDescription: String?,
private val companyId: String?,
private val companyName: String?,
private val receiverIdNumber: String?,
private val receiverName: String?,
private val resolveAt: OffsetDateTime?,
private val standardEntryClassCode: StandardEntryClassCode?,
private val additionalProperties: Map,
) {
private var hashCode: Int = 0
/** The identifier of the Account Number the inbound ACH Transfer is for. */
@JsonProperty("account_number_id") fun accountNumberId(): String? = accountNumberId
/**
* The transfer amount in cents. A positive amount originates a credit transfer pushing
* funds to the receiving account. A negative amount originates a debit transfer pulling
* funds from the receiving account.
*/
@JsonProperty("amount") fun amount(): Long? = amount
/** The description of the date of the transfer. */
@JsonProperty("company_descriptive_date")
fun companyDescriptiveDate(): String? = companyDescriptiveDate
/** Data associated with the transfer set by the sender. */
@JsonProperty("company_discretionary_data")
fun companyDiscretionaryData(): String? = companyDiscretionaryData
/** The description of the transfer set by the sender. */
@JsonProperty("company_entry_description")
fun companyEntryDescription(): String? = companyEntryDescription
/** The sender's company ID. */
@JsonProperty("company_id") fun companyId(): String? = companyId
/** The name of the sender. */
@JsonProperty("company_name") fun companyName(): String? = companyName
/** The ID of the receiver of the transfer. */
@JsonProperty("receiver_id_number") fun receiverIdNumber(): String? = receiverIdNumber
/** The name of the receiver of the transfer. */
@JsonProperty("receiver_name") fun receiverName(): String? = receiverName
/**
* The time at which the transfer should be resolved. If not provided will resolve
* immediately.
*/
@JsonProperty("resolve_at") fun resolveAt(): OffsetDateTime? = resolveAt
/** The standard entry class code for the transfer. */
@JsonProperty("standard_entry_class_code")
fun standardEntryClassCode(): StandardEntryClassCode? = standardEntryClassCode
@JsonAnyGetter
@ExcludeMissing
fun _additionalProperties(): Map = additionalProperties
fun toBuilder() = Builder().from(this)
override fun equals(other: Any?): Boolean {
if (this === other) {
return true
}
return other is SimulationInboundAchTransferCreateBody &&
this.accountNumberId == other.accountNumberId &&
this.amount == other.amount &&
this.companyDescriptiveDate == other.companyDescriptiveDate &&
this.companyDiscretionaryData == other.companyDiscretionaryData &&
this.companyEntryDescription == other.companyEntryDescription &&
this.companyId == other.companyId &&
this.companyName == other.companyName &&
this.receiverIdNumber == other.receiverIdNumber &&
this.receiverName == other.receiverName &&
this.resolveAt == other.resolveAt &&
this.standardEntryClassCode == other.standardEntryClassCode &&
this.additionalProperties == other.additionalProperties
}
override fun hashCode(): Int {
if (hashCode == 0) {
hashCode =
Objects.hash(
accountNumberId,
amount,
companyDescriptiveDate,
companyDiscretionaryData,
companyEntryDescription,
companyId,
companyName,
receiverIdNumber,
receiverName,
resolveAt,
standardEntryClassCode,
additionalProperties,
)
}
return hashCode
}
override fun toString() =
"SimulationInboundAchTransferCreateBody{accountNumberId=$accountNumberId, amount=$amount, companyDescriptiveDate=$companyDescriptiveDate, companyDiscretionaryData=$companyDiscretionaryData, companyEntryDescription=$companyEntryDescription, companyId=$companyId, companyName=$companyName, receiverIdNumber=$receiverIdNumber, receiverName=$receiverName, resolveAt=$resolveAt, standardEntryClassCode=$standardEntryClassCode, additionalProperties=$additionalProperties}"
companion object {
fun builder() = Builder()
}
class Builder {
private var accountNumberId: String? = null
private var amount: Long? = null
private var companyDescriptiveDate: String? = null
private var companyDiscretionaryData: String? = null
private var companyEntryDescription: String? = null
private var companyId: String? = null
private var companyName: String? = null
private var receiverIdNumber: String? = null
private var receiverName: String? = null
private var resolveAt: OffsetDateTime? = null
private var standardEntryClassCode: StandardEntryClassCode? = null
private var additionalProperties: MutableMap = mutableMapOf()
internal fun from(
simulationInboundAchTransferCreateBody: SimulationInboundAchTransferCreateBody
) = apply {
this.accountNumberId = simulationInboundAchTransferCreateBody.accountNumberId
this.amount = simulationInboundAchTransferCreateBody.amount
this.companyDescriptiveDate =
simulationInboundAchTransferCreateBody.companyDescriptiveDate
this.companyDiscretionaryData =
simulationInboundAchTransferCreateBody.companyDiscretionaryData
this.companyEntryDescription =
simulationInboundAchTransferCreateBody.companyEntryDescription
this.companyId = simulationInboundAchTransferCreateBody.companyId
this.companyName = simulationInboundAchTransferCreateBody.companyName
this.receiverIdNumber = simulationInboundAchTransferCreateBody.receiverIdNumber
this.receiverName = simulationInboundAchTransferCreateBody.receiverName
this.resolveAt = simulationInboundAchTransferCreateBody.resolveAt
this.standardEntryClassCode =
simulationInboundAchTransferCreateBody.standardEntryClassCode
additionalProperties(simulationInboundAchTransferCreateBody.additionalProperties)
}
/** The identifier of the Account Number the inbound ACH Transfer is for. */
@JsonProperty("account_number_id")
fun accountNumberId(accountNumberId: String) = apply {
this.accountNumberId = accountNumberId
}
/**
* The transfer amount in cents. A positive amount originates a credit transfer pushing
* funds to the receiving account. A negative amount originates a debit transfer pulling
* funds from the receiving account.
*/
@JsonProperty("amount") fun amount(amount: Long) = apply { this.amount = amount }
/** The description of the date of the transfer. */
@JsonProperty("company_descriptive_date")
fun companyDescriptiveDate(companyDescriptiveDate: String) = apply {
this.companyDescriptiveDate = companyDescriptiveDate
}
/** Data associated with the transfer set by the sender. */
@JsonProperty("company_discretionary_data")
fun companyDiscretionaryData(companyDiscretionaryData: String) = apply {
this.companyDiscretionaryData = companyDiscretionaryData
}
/** The description of the transfer set by the sender. */
@JsonProperty("company_entry_description")
fun companyEntryDescription(companyEntryDescription: String) = apply {
this.companyEntryDescription = companyEntryDescription
}
/** The sender's company ID. */
@JsonProperty("company_id")
fun companyId(companyId: String) = apply { this.companyId = companyId }
/** The name of the sender. */
@JsonProperty("company_name")
fun companyName(companyName: String) = apply { this.companyName = companyName }
/** The ID of the receiver of the transfer. */
@JsonProperty("receiver_id_number")
fun receiverIdNumber(receiverIdNumber: String) = apply {
this.receiverIdNumber = receiverIdNumber
}
/** The name of the receiver of the transfer. */
@JsonProperty("receiver_name")
fun receiverName(receiverName: String) = apply { this.receiverName = receiverName }
/**
* The time at which the transfer should be resolved. If not provided will resolve
* immediately.
*/
@JsonProperty("resolve_at")
fun resolveAt(resolveAt: OffsetDateTime) = apply { this.resolveAt = resolveAt }
/** The standard entry class code for the transfer. */
@JsonProperty("standard_entry_class_code")
fun standardEntryClassCode(standardEntryClassCode: StandardEntryClassCode) = apply {
this.standardEntryClassCode = standardEntryClassCode
}
fun additionalProperties(additionalProperties: Map) = apply {
this.additionalProperties.clear()
this.additionalProperties.putAll(additionalProperties)
}
@JsonAnySetter
fun putAdditionalProperty(key: String, value: JsonValue) = apply {
this.additionalProperties.put(key, value)
}
fun putAllAdditionalProperties(additionalProperties: Map) = apply {
this.additionalProperties.putAll(additionalProperties)
}
fun build(): SimulationInboundAchTransferCreateBody =
SimulationInboundAchTransferCreateBody(
checkNotNull(accountNumberId) {
"`accountNumberId` is required but was not set"
},
checkNotNull(amount) { "`amount` is required but was not set" },
companyDescriptiveDate,
companyDiscretionaryData,
companyEntryDescription,
companyId,
companyName,
receiverIdNumber,
receiverName,
resolveAt,
standardEntryClassCode,
additionalProperties.toUnmodifiable(),
)
}
}
fun _additionalQueryParams(): Map> = additionalQueryParams
fun _additionalHeaders(): Map> = additionalHeaders
fun _additionalBodyProperties(): Map = additionalBodyProperties
override fun equals(other: Any?): Boolean {
if (this === other) {
return true
}
return other is SimulationInboundAchTransferCreateParams &&
this.accountNumberId == other.accountNumberId &&
this.amount == other.amount &&
this.companyDescriptiveDate == other.companyDescriptiveDate &&
this.companyDiscretionaryData == other.companyDiscretionaryData &&
this.companyEntryDescription == other.companyEntryDescription &&
this.companyId == other.companyId &&
this.companyName == other.companyName &&
this.receiverIdNumber == other.receiverIdNumber &&
this.receiverName == other.receiverName &&
this.resolveAt == other.resolveAt &&
this.standardEntryClassCode == other.standardEntryClassCode &&
this.additionalQueryParams == other.additionalQueryParams &&
this.additionalHeaders == other.additionalHeaders &&
this.additionalBodyProperties == other.additionalBodyProperties
}
override fun hashCode(): Int {
return Objects.hash(
accountNumberId,
amount,
companyDescriptiveDate,
companyDiscretionaryData,
companyEntryDescription,
companyId,
companyName,
receiverIdNumber,
receiverName,
resolveAt,
standardEntryClassCode,
additionalQueryParams,
additionalHeaders,
additionalBodyProperties,
)
}
override fun toString() =
"SimulationInboundAchTransferCreateParams{accountNumberId=$accountNumberId, amount=$amount, companyDescriptiveDate=$companyDescriptiveDate, companyDiscretionaryData=$companyDiscretionaryData, companyEntryDescription=$companyEntryDescription, companyId=$companyId, companyName=$companyName, receiverIdNumber=$receiverIdNumber, receiverName=$receiverName, resolveAt=$resolveAt, standardEntryClassCode=$standardEntryClassCode, additionalQueryParams=$additionalQueryParams, additionalHeaders=$additionalHeaders, additionalBodyProperties=$additionalBodyProperties}"
fun toBuilder() = Builder().from(this)
companion object {
fun builder() = Builder()
}
@NoAutoDetect
class Builder {
private var accountNumberId: String? = null
private var amount: Long? = null
private var companyDescriptiveDate: String? = null
private var companyDiscretionaryData: String? = null
private var companyEntryDescription: String? = null
private var companyId: String? = null
private var companyName: String? = null
private var receiverIdNumber: String? = null
private var receiverName: String? = null
private var resolveAt: OffsetDateTime? = null
private var standardEntryClassCode: StandardEntryClassCode? = null
private var additionalQueryParams: MutableMap> = mutableMapOf()
private var additionalHeaders: MutableMap> = mutableMapOf()
private var additionalBodyProperties: MutableMap = mutableMapOf()
internal fun from(
simulationInboundAchTransferCreateParams: SimulationInboundAchTransferCreateParams
) = apply {
this.accountNumberId = simulationInboundAchTransferCreateParams.accountNumberId
this.amount = simulationInboundAchTransferCreateParams.amount
this.companyDescriptiveDate =
simulationInboundAchTransferCreateParams.companyDescriptiveDate
this.companyDiscretionaryData =
simulationInboundAchTransferCreateParams.companyDiscretionaryData
this.companyEntryDescription =
simulationInboundAchTransferCreateParams.companyEntryDescription
this.companyId = simulationInboundAchTransferCreateParams.companyId
this.companyName = simulationInboundAchTransferCreateParams.companyName
this.receiverIdNumber = simulationInboundAchTransferCreateParams.receiverIdNumber
this.receiverName = simulationInboundAchTransferCreateParams.receiverName
this.resolveAt = simulationInboundAchTransferCreateParams.resolveAt
this.standardEntryClassCode =
simulationInboundAchTransferCreateParams.standardEntryClassCode
additionalQueryParams(simulationInboundAchTransferCreateParams.additionalQueryParams)
additionalHeaders(simulationInboundAchTransferCreateParams.additionalHeaders)
additionalBodyProperties(
simulationInboundAchTransferCreateParams.additionalBodyProperties
)
}
/** The identifier of the Account Number the inbound ACH Transfer is for. */
fun accountNumberId(accountNumberId: String) = apply {
this.accountNumberId = accountNumberId
}
/**
* The transfer amount in cents. A positive amount originates a credit transfer pushing
* funds to the receiving account. A negative amount originates a debit transfer pulling
* funds from the receiving account.
*/
fun amount(amount: Long) = apply { this.amount = amount }
/** The description of the date of the transfer. */
fun companyDescriptiveDate(companyDescriptiveDate: String) = apply {
this.companyDescriptiveDate = companyDescriptiveDate
}
/** Data associated with the transfer set by the sender. */
fun companyDiscretionaryData(companyDiscretionaryData: String) = apply {
this.companyDiscretionaryData = companyDiscretionaryData
}
/** The description of the transfer set by the sender. */
fun companyEntryDescription(companyEntryDescription: String) = apply {
this.companyEntryDescription = companyEntryDescription
}
/** The sender's company ID. */
fun companyId(companyId: String) = apply { this.companyId = companyId }
/** The name of the sender. */
fun companyName(companyName: String) = apply { this.companyName = companyName }
/** The ID of the receiver of the transfer. */
fun receiverIdNumber(receiverIdNumber: String) = apply {
this.receiverIdNumber = receiverIdNumber
}
/** The name of the receiver of the transfer. */
fun receiverName(receiverName: String) = apply { this.receiverName = receiverName }
/**
* The time at which the transfer should be resolved. If not provided will resolve
* immediately.
*/
fun resolveAt(resolveAt: OffsetDateTime) = apply { this.resolveAt = resolveAt }
/** The standard entry class code for the transfer. */
fun standardEntryClassCode(standardEntryClassCode: StandardEntryClassCode) = apply {
this.standardEntryClassCode = standardEntryClassCode
}
fun additionalQueryParams(additionalQueryParams: Map>) = apply {
this.additionalQueryParams.clear()
putAllQueryParams(additionalQueryParams)
}
fun putQueryParam(name: String, value: String) = apply {
this.additionalQueryParams.getOrPut(name) { mutableListOf() }.add(value)
}
fun putQueryParams(name: String, values: Iterable) = apply {
this.additionalQueryParams.getOrPut(name) { mutableListOf() }.addAll(values)
}
fun putAllQueryParams(additionalQueryParams: Map>) = apply {
additionalQueryParams.forEach(this::putQueryParams)
}
fun removeQueryParam(name: String) = apply {
this.additionalQueryParams.put(name, mutableListOf())
}
fun additionalHeaders(additionalHeaders: Map>) = apply {
this.additionalHeaders.clear()
putAllHeaders(additionalHeaders)
}
fun putHeader(name: String, value: String) = apply {
this.additionalHeaders.getOrPut(name) { mutableListOf() }.add(value)
}
fun putHeaders(name: String, values: Iterable) = apply {
this.additionalHeaders.getOrPut(name) { mutableListOf() }.addAll(values)
}
fun putAllHeaders(additionalHeaders: Map>) = apply {
additionalHeaders.forEach(this::putHeaders)
}
fun removeHeader(name: String) = apply { this.additionalHeaders.put(name, mutableListOf()) }
fun additionalBodyProperties(additionalBodyProperties: Map) = apply {
this.additionalBodyProperties.clear()
this.additionalBodyProperties.putAll(additionalBodyProperties)
}
fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply {
this.additionalBodyProperties.put(key, value)
}
fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) =
apply {
this.additionalBodyProperties.putAll(additionalBodyProperties)
}
fun build(): SimulationInboundAchTransferCreateParams =
SimulationInboundAchTransferCreateParams(
checkNotNull(accountNumberId) { "`accountNumberId` is required but was not set" },
checkNotNull(amount) { "`amount` is required but was not set" },
companyDescriptiveDate,
companyDiscretionaryData,
companyEntryDescription,
companyId,
companyName,
receiverIdNumber,
receiverName,
resolveAt,
standardEntryClassCode,
additionalQueryParams.mapValues { it.value.toUnmodifiable() }.toUnmodifiable(),
additionalHeaders.mapValues { it.value.toUnmodifiable() }.toUnmodifiable(),
additionalBodyProperties.toUnmodifiable(),
)
}
class StandardEntryClassCode
@JsonCreator
private constructor(
private val value: JsonField,
) : Enum {
@com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value
override fun equals(other: Any?): Boolean {
if (this === other) {
return true
}
return other is StandardEntryClassCode && this.value == other.value
}
override fun hashCode() = value.hashCode()
override fun toString() = value.toString()
companion object {
val CORPORATE_CREDIT_OR_DEBIT =
StandardEntryClassCode(JsonField.of("corporate_credit_or_debit"))
val CORPORATE_TRADE_EXCHANGE =
StandardEntryClassCode(JsonField.of("corporate_trade_exchange"))
val PREARRANGED_PAYMENTS_AND_DEPOSIT =
StandardEntryClassCode(JsonField.of("prearranged_payments_and_deposit"))
val INTERNET_INITIATED = StandardEntryClassCode(JsonField.of("internet_initiated"))
val POINT_OF_SALE = StandardEntryClassCode(JsonField.of("point_of_sale"))
val TELEPHONE_INITIATED = StandardEntryClassCode(JsonField.of("telephone_initiated"))
val CUSTOMER_INITIATED = StandardEntryClassCode(JsonField.of("customer_initiated"))
val ACCOUNTS_RECEIVABLE = StandardEntryClassCode(JsonField.of("accounts_receivable"))
val MACHINE_TRANSFER = StandardEntryClassCode(JsonField.of("machine_transfer"))
val SHARED_NETWORK_TRANSACTION =
StandardEntryClassCode(JsonField.of("shared_network_transaction"))
val REPRESENTED_CHECK = StandardEntryClassCode(JsonField.of("represented_check"))
val BACK_OFFICE_CONVERSION =
StandardEntryClassCode(JsonField.of("back_office_conversion"))
val POINT_OF_PURCHASE = StandardEntryClassCode(JsonField.of("point_of_purchase"))
val CHECK_TRUNCATION = StandardEntryClassCode(JsonField.of("check_truncation"))
val DESTROYED_CHECK = StandardEntryClassCode(JsonField.of("destroyed_check"))
val INTERNATIONAL_ACH_TRANSACTION =
StandardEntryClassCode(JsonField.of("international_ach_transaction"))
fun of(value: String) = StandardEntryClassCode(JsonField.of(value))
}
enum class Known {
CORPORATE_CREDIT_OR_DEBIT,
CORPORATE_TRADE_EXCHANGE,
PREARRANGED_PAYMENTS_AND_DEPOSIT,
INTERNET_INITIATED,
POINT_OF_SALE,
TELEPHONE_INITIATED,
CUSTOMER_INITIATED,
ACCOUNTS_RECEIVABLE,
MACHINE_TRANSFER,
SHARED_NETWORK_TRANSACTION,
REPRESENTED_CHECK,
BACK_OFFICE_CONVERSION,
POINT_OF_PURCHASE,
CHECK_TRUNCATION,
DESTROYED_CHECK,
INTERNATIONAL_ACH_TRANSACTION,
}
enum class Value {
CORPORATE_CREDIT_OR_DEBIT,
CORPORATE_TRADE_EXCHANGE,
PREARRANGED_PAYMENTS_AND_DEPOSIT,
INTERNET_INITIATED,
POINT_OF_SALE,
TELEPHONE_INITIATED,
CUSTOMER_INITIATED,
ACCOUNTS_RECEIVABLE,
MACHINE_TRANSFER,
SHARED_NETWORK_TRANSACTION,
REPRESENTED_CHECK,
BACK_OFFICE_CONVERSION,
POINT_OF_PURCHASE,
CHECK_TRUNCATION,
DESTROYED_CHECK,
INTERNATIONAL_ACH_TRANSACTION,
_UNKNOWN,
}
fun value(): Value =
when (this) {
CORPORATE_CREDIT_OR_DEBIT -> Value.CORPORATE_CREDIT_OR_DEBIT
CORPORATE_TRADE_EXCHANGE -> Value.CORPORATE_TRADE_EXCHANGE
PREARRANGED_PAYMENTS_AND_DEPOSIT -> Value.PREARRANGED_PAYMENTS_AND_DEPOSIT
INTERNET_INITIATED -> Value.INTERNET_INITIATED
POINT_OF_SALE -> Value.POINT_OF_SALE
TELEPHONE_INITIATED -> Value.TELEPHONE_INITIATED
CUSTOMER_INITIATED -> Value.CUSTOMER_INITIATED
ACCOUNTS_RECEIVABLE -> Value.ACCOUNTS_RECEIVABLE
MACHINE_TRANSFER -> Value.MACHINE_TRANSFER
SHARED_NETWORK_TRANSACTION -> Value.SHARED_NETWORK_TRANSACTION
REPRESENTED_CHECK -> Value.REPRESENTED_CHECK
BACK_OFFICE_CONVERSION -> Value.BACK_OFFICE_CONVERSION
POINT_OF_PURCHASE -> Value.POINT_OF_PURCHASE
CHECK_TRUNCATION -> Value.CHECK_TRUNCATION
DESTROYED_CHECK -> Value.DESTROYED_CHECK
INTERNATIONAL_ACH_TRANSACTION -> Value.INTERNATIONAL_ACH_TRANSACTION
else -> Value._UNKNOWN
}
fun known(): Known =
when (this) {
CORPORATE_CREDIT_OR_DEBIT -> Known.CORPORATE_CREDIT_OR_DEBIT
CORPORATE_TRADE_EXCHANGE -> Known.CORPORATE_TRADE_EXCHANGE
PREARRANGED_PAYMENTS_AND_DEPOSIT -> Known.PREARRANGED_PAYMENTS_AND_DEPOSIT
INTERNET_INITIATED -> Known.INTERNET_INITIATED
POINT_OF_SALE -> Known.POINT_OF_SALE
TELEPHONE_INITIATED -> Known.TELEPHONE_INITIATED
CUSTOMER_INITIATED -> Known.CUSTOMER_INITIATED
ACCOUNTS_RECEIVABLE -> Known.ACCOUNTS_RECEIVABLE
MACHINE_TRANSFER -> Known.MACHINE_TRANSFER
SHARED_NETWORK_TRANSACTION -> Known.SHARED_NETWORK_TRANSACTION
REPRESENTED_CHECK -> Known.REPRESENTED_CHECK
BACK_OFFICE_CONVERSION -> Known.BACK_OFFICE_CONVERSION
POINT_OF_PURCHASE -> Known.POINT_OF_PURCHASE
CHECK_TRUNCATION -> Known.CHECK_TRUNCATION
DESTROYED_CHECK -> Known.DESTROYED_CHECK
INTERNATIONAL_ACH_TRANSACTION -> Known.INTERNATIONAL_ACH_TRANSACTION
else -> throw IncreaseInvalidDataException("Unknown StandardEntryClassCode: $value")
}
fun asString(): String = _value().asStringOrThrow()
}
}