com.lithic.api.models.EventSubscriptionCreateParams.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lithic-java-core Show documentation
Show all versions of lithic-java-core Show documentation
The Lithic Developer API is designed to provide a predictable programmatic
interface for accessing your Lithic account through an API and transaction
webhooks. Note that your API key is a secret and should be treated as such.
Don't share it with anyone, including us. We will never ask you for it.
The newest version!
// File generated from our OpenAPI spec by Stainless.
package com.lithic.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.lithic.api.core.Enum
import com.lithic.api.core.ExcludeMissing
import com.lithic.api.core.JsonField
import com.lithic.api.core.JsonValue
import com.lithic.api.core.NoAutoDetect
import com.lithic.api.core.http.Headers
import com.lithic.api.core.http.QueryParams
import com.lithic.api.core.toImmutable
import com.lithic.api.errors.LithicInvalidDataException
import com.lithic.api.models.*
import java.util.Objects
import java.util.Optional
class EventSubscriptionCreateParams
constructor(
private val url: String,
private val description: String?,
private val disabled: Boolean?,
private val eventTypes: List?,
private val additionalHeaders: Headers,
private val additionalQueryParams: QueryParams,
private val additionalBodyProperties: Map,
) {
fun url(): String = url
fun description(): Optional = Optional.ofNullable(description)
fun disabled(): Optional = Optional.ofNullable(disabled)
fun eventTypes(): Optional> = Optional.ofNullable(eventTypes)
@JvmSynthetic
internal fun getBody(): EventSubscriptionCreateBody {
return EventSubscriptionCreateBody(
url,
description,
disabled,
eventTypes,
additionalBodyProperties,
)
}
@JvmSynthetic internal fun getHeaders(): Headers = additionalHeaders
@JvmSynthetic internal fun getQueryParams(): QueryParams = additionalQueryParams
@JsonDeserialize(builder = EventSubscriptionCreateBody.Builder::class)
@NoAutoDetect
class EventSubscriptionCreateBody
internal constructor(
private val url: String?,
private val description: String?,
private val disabled: Boolean?,
private val eventTypes: List?,
private val additionalProperties: Map,
) {
/** URL to which event webhooks will be sent. URL must be a valid HTTPS address. */
@JsonProperty("url") fun url(): String? = url
/** Event subscription description. */
@JsonProperty("description") fun description(): String? = description
/** Whether the event subscription is active (false) or inactive (true). */
@JsonProperty("disabled") fun disabled(): Boolean? = disabled
/**
* Indicates types of events that will be sent to this subscription. If left blank, all
* types will be sent.
*/
@JsonProperty("event_types") fun eventTypes(): List? = eventTypes
@JsonAnyGetter
@ExcludeMissing
fun _additionalProperties(): Map = additionalProperties
fun toBuilder() = Builder().from(this)
companion object {
@JvmStatic fun builder() = Builder()
}
class Builder {
private var url: String? = null
private var description: String? = null
private var disabled: Boolean? = null
private var eventTypes: List? = null
private var additionalProperties: MutableMap = mutableMapOf()
@JvmSynthetic
internal fun from(eventSubscriptionCreateBody: EventSubscriptionCreateBody) = apply {
this.url = eventSubscriptionCreateBody.url
this.description = eventSubscriptionCreateBody.description
this.disabled = eventSubscriptionCreateBody.disabled
this.eventTypes = eventSubscriptionCreateBody.eventTypes
additionalProperties(eventSubscriptionCreateBody.additionalProperties)
}
/** URL to which event webhooks will be sent. URL must be a valid HTTPS address. */
@JsonProperty("url") fun url(url: String) = apply { this.url = url }
/** Event subscription description. */
@JsonProperty("description")
fun description(description: String) = apply { this.description = description }
/** Whether the event subscription is active (false) or inactive (true). */
@JsonProperty("disabled")
fun disabled(disabled: Boolean) = apply { this.disabled = disabled }
/**
* Indicates types of events that will be sent to this subscription. If left blank, all
* types will be sent.
*/
@JsonProperty("event_types")
fun eventTypes(eventTypes: List) = apply { this.eventTypes = eventTypes }
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(): EventSubscriptionCreateBody =
EventSubscriptionCreateBody(
checkNotNull(url) { "`url` is required but was not set" },
description,
disabled,
eventTypes?.toImmutable(),
additionalProperties.toImmutable(),
)
}
override fun equals(other: Any?): Boolean {
if (this === other) {
return true
}
return /* spotless:off */ other is EventSubscriptionCreateBody && this.url == other.url && this.description == other.description && this.disabled == other.disabled && this.eventTypes == other.eventTypes && this.additionalProperties == other.additionalProperties /* spotless:on */
}
private var hashCode: Int = 0
override fun hashCode(): Int {
if (hashCode == 0) {
hashCode = /* spotless:off */ Objects.hash(url, description, disabled, eventTypes, additionalProperties) /* spotless:on */
}
return hashCode
}
override fun toString() =
"EventSubscriptionCreateBody{url=$url, description=$description, disabled=$disabled, eventTypes=$eventTypes, additionalProperties=$additionalProperties}"
}
fun _additionalHeaders(): Headers = additionalHeaders
fun _additionalQueryParams(): QueryParams = additionalQueryParams
fun _additionalBodyProperties(): Map = additionalBodyProperties
override fun equals(other: Any?): Boolean {
if (this === other) {
return true
}
return /* spotless:off */ other is EventSubscriptionCreateParams && this.url == other.url && this.description == other.description && this.disabled == other.disabled && this.eventTypes == other.eventTypes && this.additionalHeaders == other.additionalHeaders && this.additionalQueryParams == other.additionalQueryParams && this.additionalBodyProperties == other.additionalBodyProperties /* spotless:on */
}
override fun hashCode(): Int {
return /* spotless:off */ Objects.hash(url, description, disabled, eventTypes, additionalHeaders, additionalQueryParams, additionalBodyProperties) /* spotless:on */
}
override fun toString() =
"EventSubscriptionCreateParams{url=$url, description=$description, disabled=$disabled, eventTypes=$eventTypes, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams, additionalBodyProperties=$additionalBodyProperties}"
fun toBuilder() = Builder().from(this)
companion object {
@JvmStatic fun builder() = Builder()
}
@NoAutoDetect
class Builder {
private var url: String? = null
private var description: String? = null
private var disabled: Boolean? = null
private var eventTypes: MutableList = mutableListOf()
private var additionalHeaders: Headers.Builder = Headers.builder()
private var additionalQueryParams: QueryParams.Builder = QueryParams.builder()
private var additionalBodyProperties: MutableMap = mutableMapOf()
@JvmSynthetic
internal fun from(eventSubscriptionCreateParams: EventSubscriptionCreateParams) = apply {
this.url = eventSubscriptionCreateParams.url
this.description = eventSubscriptionCreateParams.description
this.disabled = eventSubscriptionCreateParams.disabled
this.eventTypes(eventSubscriptionCreateParams.eventTypes ?: listOf())
additionalHeaders(eventSubscriptionCreateParams.additionalHeaders)
additionalQueryParams(eventSubscriptionCreateParams.additionalQueryParams)
additionalBodyProperties(eventSubscriptionCreateParams.additionalBodyProperties)
}
/** URL to which event webhooks will be sent. URL must be a valid HTTPS address. */
fun url(url: String) = apply { this.url = url }
/** Event subscription description. */
fun description(description: String) = apply { this.description = description }
/** Whether the event subscription is active (false) or inactive (true). */
fun disabled(disabled: Boolean) = apply { this.disabled = disabled }
/**
* Indicates types of events that will be sent to this subscription. If left blank, all
* types will be sent.
*/
fun eventTypes(eventTypes: List) = apply {
this.eventTypes.clear()
this.eventTypes.addAll(eventTypes)
}
/**
* Indicates types of events that will be sent to this subscription. If left blank, all
* types will be sent.
*/
fun addEventType(eventType: EventType) = apply { this.eventTypes.add(eventType) }
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)
}
fun additionalBodyProperties(additionalBodyProperties: Map) = apply {
this.additionalBodyProperties.clear()
putAllAdditionalBodyProperties(additionalBodyProperties)
}
fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply {
additionalBodyProperties.put(key, value)
}
fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) =
apply {
this.additionalBodyProperties.putAll(additionalBodyProperties)
}
fun removeAdditionalBodyProperty(key: String) = apply {
additionalBodyProperties.remove(key)
}
fun removeAllAdditionalBodyProperties(keys: Set) = apply {
keys.forEach(::removeAdditionalBodyProperty)
}
fun build(): EventSubscriptionCreateParams =
EventSubscriptionCreateParams(
checkNotNull(url) { "`url` is required but was not set" },
description,
disabled,
if (eventTypes.size == 0) null else eventTypes.toImmutable(),
additionalHeaders.build(),
additionalQueryParams.build(),
additionalBodyProperties.toImmutable(),
)
}
class EventType
@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 /* spotless:off */ other is EventType && this.value == other.value /* spotless:on */
}
override fun hashCode() = value.hashCode()
override fun toString() = value.toString()
companion object {
@JvmField val ACCOUNT_HOLDER_CREATED = EventType(JsonField.of("account_holder.created"))
@JvmField val ACCOUNT_HOLDER_UPDATED = EventType(JsonField.of("account_holder.updated"))
@JvmField
val ACCOUNT_HOLDER_VERIFICATION = EventType(JsonField.of("account_holder.verification"))
@JvmField
val AUTH_RULES_PERFORMANCE_REPORT_CREATED =
EventType(JsonField.of("auth_rules.performance_report.created"))
@JvmField val BALANCE_UPDATED = EventType(JsonField.of("balance.updated"))
@JvmField
val BOOK_TRANSFER_TRANSACTION_CREATED =
EventType(JsonField.of("book_transfer_transaction.created"))
@JvmField val CARD_CREATED = EventType(JsonField.of("card.created"))
@JvmField val CARD_RENEWED = EventType(JsonField.of("card.renewed"))
@JvmField val CARD_REISSUED = EventType(JsonField.of("card.reissued"))
@JvmField val CARD_SHIPPED = EventType(JsonField.of("card.shipped"))
@JvmField
val CARD_TRANSACTION_UPDATED = EventType(JsonField.of("card_transaction.updated"))
@JvmField
val DIGITAL_WALLET_TOKENIZATION_APPROVAL_REQUEST =
EventType(JsonField.of("digital_wallet.tokenization_approval_request"))
@JvmField
val DIGITAL_WALLET_TOKENIZATION_RESULT =
EventType(JsonField.of("digital_wallet.tokenization_result"))
@JvmField
val DIGITAL_WALLET_TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE =
EventType(
JsonField.of("digital_wallet.tokenization_two_factor_authentication_code")
)
@JvmField
val DIGITAL_WALLET_TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE_SENT =
EventType(
JsonField.of("digital_wallet.tokenization_two_factor_authentication_code_sent")
)
@JvmField
val DIGITAL_WALLET_TOKENIZATION_UPDATED =
EventType(JsonField.of("digital_wallet.tokenization_updated"))
@JvmField val DISPUTE_UPDATED = EventType(JsonField.of("dispute.updated"))
@JvmField
val DISPUTE_EVIDENCE_UPLOAD_FAILED =
EventType(JsonField.of("dispute_evidence.upload_failed"))
@JvmField
val EXTERNAL_BANK_ACCOUNT_CREATED =
EventType(JsonField.of("external_bank_account.created"))
@JvmField
val EXTERNAL_BANK_ACCOUNT_UPDATED =
EventType(JsonField.of("external_bank_account.updated"))
@JvmField
val EXTERNAL_PAYMENT_CREATED = EventType(JsonField.of("external_payment.created"))
@JvmField
val EXTERNAL_PAYMENT_UPDATED = EventType(JsonField.of("external_payment.updated"))
@JvmField
val FINANCIAL_ACCOUNT_CREATED = EventType(JsonField.of("financial_account.created"))
@JvmField
val FINANCIAL_ACCOUNT_UPDATED = EventType(JsonField.of("financial_account.updated"))
@JvmField val LOAN_TAPE_CREATED = EventType(JsonField.of("loan_tape.created"))
@JvmField val LOAN_TAPE_UPDATED = EventType(JsonField.of("loan_tape.updated"))
@JvmField
val MANAGEMENT_OPERATION_CREATED =
EventType(JsonField.of("management_operation.created"))
@JvmField
val MANAGEMENT_OPERATION_UPDATED =
EventType(JsonField.of("management_operation.updated"))
@JvmField
val PAYMENT_TRANSACTION_CREATED = EventType(JsonField.of("payment_transaction.created"))
@JvmField
val PAYMENT_TRANSACTION_UPDATED = EventType(JsonField.of("payment_transaction.updated"))
@JvmField
val SETTLEMENT_REPORT_UPDATED = EventType(JsonField.of("settlement_report.updated"))
@JvmField val STATEMENTS_CREATED = EventType(JsonField.of("statements.created"))
@JvmField
val THREE_DS_AUTHENTICATION_CREATED =
EventType(JsonField.of("three_ds_authentication.created"))
@JvmField
val TOKENIZATION_APPROVAL_REQUEST =
EventType(JsonField.of("tokenization.approval_request"))
@JvmField val TOKENIZATION_RESULT = EventType(JsonField.of("tokenization.result"))
@JvmField
val TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE =
EventType(JsonField.of("tokenization.two_factor_authentication_code"))
@JvmField
val TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE_SENT =
EventType(JsonField.of("tokenization.two_factor_authentication_code_sent"))
@JvmField val TOKENIZATION_UPDATED = EventType(JsonField.of("tokenization.updated"))
@JvmStatic fun of(value: String) = EventType(JsonField.of(value))
}
enum class Known {
ACCOUNT_HOLDER_CREATED,
ACCOUNT_HOLDER_UPDATED,
ACCOUNT_HOLDER_VERIFICATION,
AUTH_RULES_PERFORMANCE_REPORT_CREATED,
BALANCE_UPDATED,
BOOK_TRANSFER_TRANSACTION_CREATED,
CARD_CREATED,
CARD_RENEWED,
CARD_REISSUED,
CARD_SHIPPED,
CARD_TRANSACTION_UPDATED,
DIGITAL_WALLET_TOKENIZATION_APPROVAL_REQUEST,
DIGITAL_WALLET_TOKENIZATION_RESULT,
DIGITAL_WALLET_TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE,
DIGITAL_WALLET_TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE_SENT,
DIGITAL_WALLET_TOKENIZATION_UPDATED,
DISPUTE_UPDATED,
DISPUTE_EVIDENCE_UPLOAD_FAILED,
EXTERNAL_BANK_ACCOUNT_CREATED,
EXTERNAL_BANK_ACCOUNT_UPDATED,
EXTERNAL_PAYMENT_CREATED,
EXTERNAL_PAYMENT_UPDATED,
FINANCIAL_ACCOUNT_CREATED,
FINANCIAL_ACCOUNT_UPDATED,
LOAN_TAPE_CREATED,
LOAN_TAPE_UPDATED,
MANAGEMENT_OPERATION_CREATED,
MANAGEMENT_OPERATION_UPDATED,
PAYMENT_TRANSACTION_CREATED,
PAYMENT_TRANSACTION_UPDATED,
SETTLEMENT_REPORT_UPDATED,
STATEMENTS_CREATED,
THREE_DS_AUTHENTICATION_CREATED,
TOKENIZATION_APPROVAL_REQUEST,
TOKENIZATION_RESULT,
TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE,
TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE_SENT,
TOKENIZATION_UPDATED,
}
enum class Value {
ACCOUNT_HOLDER_CREATED,
ACCOUNT_HOLDER_UPDATED,
ACCOUNT_HOLDER_VERIFICATION,
AUTH_RULES_PERFORMANCE_REPORT_CREATED,
BALANCE_UPDATED,
BOOK_TRANSFER_TRANSACTION_CREATED,
CARD_CREATED,
CARD_RENEWED,
CARD_REISSUED,
CARD_SHIPPED,
CARD_TRANSACTION_UPDATED,
DIGITAL_WALLET_TOKENIZATION_APPROVAL_REQUEST,
DIGITAL_WALLET_TOKENIZATION_RESULT,
DIGITAL_WALLET_TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE,
DIGITAL_WALLET_TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE_SENT,
DIGITAL_WALLET_TOKENIZATION_UPDATED,
DISPUTE_UPDATED,
DISPUTE_EVIDENCE_UPLOAD_FAILED,
EXTERNAL_BANK_ACCOUNT_CREATED,
EXTERNAL_BANK_ACCOUNT_UPDATED,
EXTERNAL_PAYMENT_CREATED,
EXTERNAL_PAYMENT_UPDATED,
FINANCIAL_ACCOUNT_CREATED,
FINANCIAL_ACCOUNT_UPDATED,
LOAN_TAPE_CREATED,
LOAN_TAPE_UPDATED,
MANAGEMENT_OPERATION_CREATED,
MANAGEMENT_OPERATION_UPDATED,
PAYMENT_TRANSACTION_CREATED,
PAYMENT_TRANSACTION_UPDATED,
SETTLEMENT_REPORT_UPDATED,
STATEMENTS_CREATED,
THREE_DS_AUTHENTICATION_CREATED,
TOKENIZATION_APPROVAL_REQUEST,
TOKENIZATION_RESULT,
TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE,
TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE_SENT,
TOKENIZATION_UPDATED,
_UNKNOWN,
}
fun value(): Value =
when (this) {
ACCOUNT_HOLDER_CREATED -> Value.ACCOUNT_HOLDER_CREATED
ACCOUNT_HOLDER_UPDATED -> Value.ACCOUNT_HOLDER_UPDATED
ACCOUNT_HOLDER_VERIFICATION -> Value.ACCOUNT_HOLDER_VERIFICATION
AUTH_RULES_PERFORMANCE_REPORT_CREATED -> Value.AUTH_RULES_PERFORMANCE_REPORT_CREATED
BALANCE_UPDATED -> Value.BALANCE_UPDATED
BOOK_TRANSFER_TRANSACTION_CREATED -> Value.BOOK_TRANSFER_TRANSACTION_CREATED
CARD_CREATED -> Value.CARD_CREATED
CARD_RENEWED -> Value.CARD_RENEWED
CARD_REISSUED -> Value.CARD_REISSUED
CARD_SHIPPED -> Value.CARD_SHIPPED
CARD_TRANSACTION_UPDATED -> Value.CARD_TRANSACTION_UPDATED
DIGITAL_WALLET_TOKENIZATION_APPROVAL_REQUEST ->
Value.DIGITAL_WALLET_TOKENIZATION_APPROVAL_REQUEST
DIGITAL_WALLET_TOKENIZATION_RESULT -> Value.DIGITAL_WALLET_TOKENIZATION_RESULT
DIGITAL_WALLET_TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE ->
Value.DIGITAL_WALLET_TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE
DIGITAL_WALLET_TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE_SENT ->
Value.DIGITAL_WALLET_TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE_SENT
DIGITAL_WALLET_TOKENIZATION_UPDATED -> Value.DIGITAL_WALLET_TOKENIZATION_UPDATED
DISPUTE_UPDATED -> Value.DISPUTE_UPDATED
DISPUTE_EVIDENCE_UPLOAD_FAILED -> Value.DISPUTE_EVIDENCE_UPLOAD_FAILED
EXTERNAL_BANK_ACCOUNT_CREATED -> Value.EXTERNAL_BANK_ACCOUNT_CREATED
EXTERNAL_BANK_ACCOUNT_UPDATED -> Value.EXTERNAL_BANK_ACCOUNT_UPDATED
EXTERNAL_PAYMENT_CREATED -> Value.EXTERNAL_PAYMENT_CREATED
EXTERNAL_PAYMENT_UPDATED -> Value.EXTERNAL_PAYMENT_UPDATED
FINANCIAL_ACCOUNT_CREATED -> Value.FINANCIAL_ACCOUNT_CREATED
FINANCIAL_ACCOUNT_UPDATED -> Value.FINANCIAL_ACCOUNT_UPDATED
LOAN_TAPE_CREATED -> Value.LOAN_TAPE_CREATED
LOAN_TAPE_UPDATED -> Value.LOAN_TAPE_UPDATED
MANAGEMENT_OPERATION_CREATED -> Value.MANAGEMENT_OPERATION_CREATED
MANAGEMENT_OPERATION_UPDATED -> Value.MANAGEMENT_OPERATION_UPDATED
PAYMENT_TRANSACTION_CREATED -> Value.PAYMENT_TRANSACTION_CREATED
PAYMENT_TRANSACTION_UPDATED -> Value.PAYMENT_TRANSACTION_UPDATED
SETTLEMENT_REPORT_UPDATED -> Value.SETTLEMENT_REPORT_UPDATED
STATEMENTS_CREATED -> Value.STATEMENTS_CREATED
THREE_DS_AUTHENTICATION_CREATED -> Value.THREE_DS_AUTHENTICATION_CREATED
TOKENIZATION_APPROVAL_REQUEST -> Value.TOKENIZATION_APPROVAL_REQUEST
TOKENIZATION_RESULT -> Value.TOKENIZATION_RESULT
TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE ->
Value.TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE
TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE_SENT ->
Value.TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE_SENT
TOKENIZATION_UPDATED -> Value.TOKENIZATION_UPDATED
else -> Value._UNKNOWN
}
fun known(): Known =
when (this) {
ACCOUNT_HOLDER_CREATED -> Known.ACCOUNT_HOLDER_CREATED
ACCOUNT_HOLDER_UPDATED -> Known.ACCOUNT_HOLDER_UPDATED
ACCOUNT_HOLDER_VERIFICATION -> Known.ACCOUNT_HOLDER_VERIFICATION
AUTH_RULES_PERFORMANCE_REPORT_CREATED -> Known.AUTH_RULES_PERFORMANCE_REPORT_CREATED
BALANCE_UPDATED -> Known.BALANCE_UPDATED
BOOK_TRANSFER_TRANSACTION_CREATED -> Known.BOOK_TRANSFER_TRANSACTION_CREATED
CARD_CREATED -> Known.CARD_CREATED
CARD_RENEWED -> Known.CARD_RENEWED
CARD_REISSUED -> Known.CARD_REISSUED
CARD_SHIPPED -> Known.CARD_SHIPPED
CARD_TRANSACTION_UPDATED -> Known.CARD_TRANSACTION_UPDATED
DIGITAL_WALLET_TOKENIZATION_APPROVAL_REQUEST ->
Known.DIGITAL_WALLET_TOKENIZATION_APPROVAL_REQUEST
DIGITAL_WALLET_TOKENIZATION_RESULT -> Known.DIGITAL_WALLET_TOKENIZATION_RESULT
DIGITAL_WALLET_TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE ->
Known.DIGITAL_WALLET_TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE
DIGITAL_WALLET_TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE_SENT ->
Known.DIGITAL_WALLET_TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE_SENT
DIGITAL_WALLET_TOKENIZATION_UPDATED -> Known.DIGITAL_WALLET_TOKENIZATION_UPDATED
DISPUTE_UPDATED -> Known.DISPUTE_UPDATED
DISPUTE_EVIDENCE_UPLOAD_FAILED -> Known.DISPUTE_EVIDENCE_UPLOAD_FAILED
EXTERNAL_BANK_ACCOUNT_CREATED -> Known.EXTERNAL_BANK_ACCOUNT_CREATED
EXTERNAL_BANK_ACCOUNT_UPDATED -> Known.EXTERNAL_BANK_ACCOUNT_UPDATED
EXTERNAL_PAYMENT_CREATED -> Known.EXTERNAL_PAYMENT_CREATED
EXTERNAL_PAYMENT_UPDATED -> Known.EXTERNAL_PAYMENT_UPDATED
FINANCIAL_ACCOUNT_CREATED -> Known.FINANCIAL_ACCOUNT_CREATED
FINANCIAL_ACCOUNT_UPDATED -> Known.FINANCIAL_ACCOUNT_UPDATED
LOAN_TAPE_CREATED -> Known.LOAN_TAPE_CREATED
LOAN_TAPE_UPDATED -> Known.LOAN_TAPE_UPDATED
MANAGEMENT_OPERATION_CREATED -> Known.MANAGEMENT_OPERATION_CREATED
MANAGEMENT_OPERATION_UPDATED -> Known.MANAGEMENT_OPERATION_UPDATED
PAYMENT_TRANSACTION_CREATED -> Known.PAYMENT_TRANSACTION_CREATED
PAYMENT_TRANSACTION_UPDATED -> Known.PAYMENT_TRANSACTION_UPDATED
SETTLEMENT_REPORT_UPDATED -> Known.SETTLEMENT_REPORT_UPDATED
STATEMENTS_CREATED -> Known.STATEMENTS_CREATED
THREE_DS_AUTHENTICATION_CREATED -> Known.THREE_DS_AUTHENTICATION_CREATED
TOKENIZATION_APPROVAL_REQUEST -> Known.TOKENIZATION_APPROVAL_REQUEST
TOKENIZATION_RESULT -> Known.TOKENIZATION_RESULT
TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE ->
Known.TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE
TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE_SENT ->
Known.TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE_SENT
TOKENIZATION_UPDATED -> Known.TOKENIZATION_UPDATED
else -> throw LithicInvalidDataException("Unknown EventType: $value")
}
fun asString(): String = _value().asStringOrThrow()
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy