diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index dac8da6a2..e7622d9ad 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -18,7 +18,7 @@ jobs:
lint:
timeout-minutes: 15
name: lint
- runs-on: ${{ github.repository == 'stainless-sdks/lithic-java' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
+ runs-on: ${{ startsWith(github.repository, 'stainless-sdks/') && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')
steps:
@@ -45,7 +45,7 @@ jobs:
permissions:
contents: read
id-token: write
- runs-on: ${{ github.repository == 'stainless-sdks/lithic-java' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
+ runs-on: ${{ startsWith(github.repository, 'stainless-sdks/') && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')
steps:
@@ -88,7 +88,7 @@ jobs:
test:
timeout-minutes: 15
name: test
- runs-on: ${{ github.repository == 'stainless-sdks/lithic-java' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
+ runs-on: ${{ startsWith(github.repository, 'stainless-sdks/') && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
diff --git a/.release-please-manifest.json b/.release-please-manifest.json
index a24ae611f..b4da64f27 100644
--- a/.release-please-manifest.json
+++ b/.release-please-manifest.json
@@ -1,3 +1,3 @@
{
- ".": "0.131.0"
+ ".": "0.132.0"
}
\ No newline at end of file
diff --git a/.stats.yml b/.stats.yml
index 189b2dd2a..6174bfd2b 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 214
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic/lithic-9e397c65ffb81e2928b8ecf979769a79131ae6058b6fb373a5e930dc8a168732.yml
-openapi_spec_hash: 93aea3855d2d1c390107d223762aa818
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic/lithic-2d2600072500797474f0d7798c1a8b668bfbc4e0c6a8f076ca7b4cc7ad82058b.yml
+openapi_spec_hash: 7605eb6be77a3d150078916f0eb0e9ac
config_hash: 5bb913c05ebeb301ec925b16e75bb251
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 98d31de2f..5ed37e3a1 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,22 @@
# Changelog
+## 0.132.0 (2026-07-17)
+
+Full Changelog: [v0.131.0...v0.132.0](https://github.com/lithic-com/lithic-java/compare/v0.131.0...v0.132.0)
+
+### Features
+
+* **api:** add embed webhook event types ([6b438b7](https://github.com/lithic-com/lithic-java/commit/6b438b70afa7efc9b556f664177ab168a6fff71b))
+* **api:** add PAYMENT category to book transfers ([a362749](https://github.com/lithic-com/lithic-java/commit/a3627495919ac3272de3403e3b4e5a50155dd434))
+* **stlc:** configurable CI runner and private-production-repo support in workflow templates ([d0f208a](https://github.com/lithic-com/lithic-java/commit/d0f208a821f93589ce4a79baf636430386ad7a27))
+
+
+### Documentation
+
+* **api:** clarify dispute event type descriptions ([20fcf6f](https://github.com/lithic-com/lithic-java/commit/20fcf6fe25934101174fada2170592df451bd5ec))
+* **api:** clarify simulateClearing supports multiple calls ([326d02d](https://github.com/lithic-com/lithic-java/commit/326d02d42d76d0f79391d693a9bdd4068e784b94))
+* **api:** update category parameter description in external_payment list ([7afdd50](https://github.com/lithic-com/lithic-java/commit/7afdd50d02a66cc8e5fa76133d333c5ffbccab38))
+
## 0.131.0 (2026-06-29)
Full Changelog: [v0.130.0...v0.131.0](https://github.com/lithic-com/lithic-java/compare/v0.130.0...v0.131.0)
diff --git a/README.md b/README.md
index 2a94f696a..e0cf94193 100644
--- a/README.md
+++ b/README.md
@@ -2,8 +2,8 @@
-[](https://central.sonatype.com/artifact/com.lithic.api/lithic-java/0.131.0)
-[](https://javadoc.io/doc/com.lithic.api/lithic-java/0.131.0)
+[](https://central.sonatype.com/artifact/com.lithic.api/lithic-java/0.132.0)
+[](https://javadoc.io/doc/com.lithic.api/lithic-java/0.132.0)
@@ -22,7 +22,7 @@ Use the Lithic MCP Server to enable AI assistants to interact with this API, all
-The REST API documentation can be found on [docs.lithic.com](https://docs.lithic.com). Javadocs are available on [javadoc.io](https://javadoc.io/doc/com.lithic.api/lithic-java/0.131.0).
+The REST API documentation can be found on [docs.lithic.com](https://docs.lithic.com). Javadocs are available on [javadoc.io](https://javadoc.io/doc/com.lithic.api/lithic-java/0.132.0).
@@ -33,7 +33,7 @@ The REST API documentation can be found on [docs.lithic.com](https://docs.lithic
### Gradle
```kotlin
-implementation("com.lithic.api:lithic-java:0.131.0")
+implementation("com.lithic.api:lithic-java:0.132.0")
```
### Maven
@@ -42,7 +42,7 @@ implementation("com.lithic.api:lithic-java:0.131.0")
com.lithic.api
lithic-java
- 0.131.0
+ 0.132.0
```
diff --git a/build.gradle.kts b/build.gradle.kts
index 2bed69f41..3f9804eaf 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -8,7 +8,7 @@ repositories {
allprojects {
group = "com.lithic.api"
- version = "0.131.0" // x-release-please-version
+ version = "0.132.0" // x-release-please-version
}
subprojects {
diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/BookTransferCreateParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/BookTransferCreateParams.kt
index 6272f8821..32b237b6f 100644
--- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/BookTransferCreateParams.kt
+++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/BookTransferCreateParams.kt
@@ -1404,6 +1404,8 @@ private constructor(
@JvmField val BILL_PAYMENT = of("BILL_PAYMENT")
+ @JvmField val PAYMENT_FEE = of("PAYMENT_FEE")
+
@JvmField val CASH_BACK = of("CASH_BACK")
@JvmField val ACCOUNT_TO_ACCOUNT = of("ACCOUNT_TO_ACCOUNT")
@@ -1459,6 +1461,7 @@ private constructor(
INTEREST,
LATE_PAYMENT,
BILL_PAYMENT,
+ PAYMENT_FEE,
CASH_BACK,
ACCOUNT_TO_ACCOUNT,
CARD_TO_CARD,
@@ -1506,6 +1509,7 @@ private constructor(
INTEREST,
LATE_PAYMENT,
BILL_PAYMENT,
+ PAYMENT_FEE,
CASH_BACK,
ACCOUNT_TO_ACCOUNT,
CARD_TO_CARD,
@@ -1557,6 +1561,7 @@ private constructor(
INTEREST -> Value.INTEREST
LATE_PAYMENT -> Value.LATE_PAYMENT
BILL_PAYMENT -> Value.BILL_PAYMENT
+ PAYMENT_FEE -> Value.PAYMENT_FEE
CASH_BACK -> Value.CASH_BACK
ACCOUNT_TO_ACCOUNT -> Value.ACCOUNT_TO_ACCOUNT
CARD_TO_CARD -> Value.CARD_TO_CARD
@@ -1606,6 +1611,7 @@ private constructor(
INTEREST -> Known.INTEREST
LATE_PAYMENT -> Known.LATE_PAYMENT
BILL_PAYMENT -> Known.BILL_PAYMENT
+ PAYMENT_FEE -> Known.PAYMENT_FEE
CASH_BACK -> Known.CASH_BACK
ACCOUNT_TO_ACCOUNT -> Known.ACCOUNT_TO_ACCOUNT
CARD_TO_CARD -> Known.CARD_TO_CARD
diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/BookTransferResponse.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/BookTransferResponse.kt
index d69299aa8..a2a4d0906 100644
--- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/BookTransferResponse.kt
+++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/BookTransferResponse.kt
@@ -1801,6 +1801,8 @@ private constructor(
@JvmField val BILL_PAYMENT = of("BILL_PAYMENT")
+ @JvmField val PAYMENT_FEE = of("PAYMENT_FEE")
+
@JvmField val CASH_BACK = of("CASH_BACK")
@JvmField val ACCOUNT_TO_ACCOUNT = of("ACCOUNT_TO_ACCOUNT")
@@ -1856,6 +1858,7 @@ private constructor(
INTEREST,
LATE_PAYMENT,
BILL_PAYMENT,
+ PAYMENT_FEE,
CASH_BACK,
ACCOUNT_TO_ACCOUNT,
CARD_TO_CARD,
@@ -1904,6 +1907,7 @@ private constructor(
INTEREST,
LATE_PAYMENT,
BILL_PAYMENT,
+ PAYMENT_FEE,
CASH_BACK,
ACCOUNT_TO_ACCOUNT,
CARD_TO_CARD,
@@ -1955,6 +1959,7 @@ private constructor(
INTEREST -> Value.INTEREST
LATE_PAYMENT -> Value.LATE_PAYMENT
BILL_PAYMENT -> Value.BILL_PAYMENT
+ PAYMENT_FEE -> Value.PAYMENT_FEE
CASH_BACK -> Value.CASH_BACK
ACCOUNT_TO_ACCOUNT -> Value.ACCOUNT_TO_ACCOUNT
CARD_TO_CARD -> Value.CARD_TO_CARD
@@ -2004,6 +2009,7 @@ private constructor(
INTEREST -> Known.INTEREST
LATE_PAYMENT -> Known.LATE_PAYMENT
BILL_PAYMENT -> Known.BILL_PAYMENT
+ PAYMENT_FEE -> Known.PAYMENT_FEE
CASH_BACK -> Known.CASH_BACK
ACCOUNT_TO_ACCOUNT -> Known.ACCOUNT_TO_ACCOUNT
CARD_TO_CARD -> Known.CARD_TO_CARD
diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/CardEmbedParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/CardEmbedParams.kt
index 18393bab0..c0aaf22f8 100644
--- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/CardEmbedParams.kt
+++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/CardEmbedParams.kt
@@ -9,6 +9,9 @@ import com.lithic.api.core.http.QueryParams
import java.util.Objects
/**
+ * **Deprecated.** Use the modern embedded card flow instead: create a session with `POST
+ * /v1/cards/{card_token}/embed` and render it via `GET /v1/embed`.
+ *
* Handling full card PANs and CVV codes requires that you comply with the Payment Card Industry
* Data Security Standards (PCI DSS). Some clients choose to reduce their compliance obligations by
* leveraging our embedded card UI solution documented below.
@@ -30,6 +33,7 @@ import java.util.Objects
* iframe) on the server or make an ajax call from your front end code, but **do not ever embed your
* API key into front end code, as doing so introduces a serious security vulnerability**.
*/
+@Deprecated("deprecated")
class CardEmbedParams
private constructor(
private val embedRequest: String,
diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/EmbedSessionGeneratedWebhookEvent.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/EmbedSessionGeneratedWebhookEvent.kt
new file mode 100644
index 000000000..a62c75da3
--- /dev/null
+++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/EmbedSessionGeneratedWebhookEvent.kt
@@ -0,0 +1,853 @@
+// 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.lithic.api.core.Enum
+import com.lithic.api.core.ExcludeMissing
+import com.lithic.api.core.JsonField
+import com.lithic.api.core.JsonMissing
+import com.lithic.api.core.JsonValue
+import com.lithic.api.core.checkRequired
+import com.lithic.api.errors.LithicInvalidDataException
+import java.util.Collections
+import java.util.Objects
+import kotlin.jvm.optionals.getOrNull
+
+class EmbedSessionGeneratedWebhookEvent
+@JsonCreator(mode = JsonCreator.Mode.DISABLED)
+private constructor(
+ private val accountToken: JsonField,
+ private val cardToken: JsonField,
+ private val deviceDetails: JsonField,
+ private val eventType: JsonField,
+ private val sessionId: JsonField,
+ private val sessionType: JsonField,
+ private val additionalProperties: MutableMap,
+) {
+
+ @JsonCreator
+ private constructor(
+ @JsonProperty("account_token")
+ @ExcludeMissing
+ accountToken: JsonField = JsonMissing.of(),
+ @JsonProperty("card_token") @ExcludeMissing cardToken: JsonField = JsonMissing.of(),
+ @JsonProperty("device_details")
+ @ExcludeMissing
+ deviceDetails: JsonField = JsonMissing.of(),
+ @JsonProperty("event_type")
+ @ExcludeMissing
+ eventType: JsonField = JsonMissing.of(),
+ @JsonProperty("session_id") @ExcludeMissing sessionId: JsonField = JsonMissing.of(),
+ @JsonProperty("session_type")
+ @ExcludeMissing
+ sessionType: JsonField = JsonMissing.of(),
+ ) : this(
+ accountToken,
+ cardToken,
+ deviceDetails,
+ eventType,
+ sessionId,
+ sessionType,
+ mutableMapOf(),
+ )
+
+ /**
+ * The token of the account associated with the card
+ *
+ * @throws LithicInvalidDataException 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 accountToken(): String = accountToken.getRequired("account_token")
+
+ /**
+ * The token of the card associated with the embed session
+ *
+ * @throws LithicInvalidDataException 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 cardToken(): String = cardToken.getRequired("card_token")
+
+ /**
+ * Details about the request that generated the embed session
+ *
+ * @throws LithicInvalidDataException 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 deviceDetails(): EmbedDeviceDetails = deviceDetails.getRequired("device_details")
+
+ /**
+ * The type of event
+ *
+ * @throws LithicInvalidDataException 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 eventType(): EventType = eventType.getRequired("event_type")
+
+ /**
+ * The identifier shared by webhook events for the same embed session.
+ *
+ * @throws LithicInvalidDataException 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 sessionId(): String = sessionId.getRequired("session_id")
+
+ /**
+ * The type of embed session that was generated
+ *
+ * @throws LithicInvalidDataException 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 sessionType(): SessionType = sessionType.getRequired("session_type")
+
+ /**
+ * Returns the raw JSON value of [accountToken].
+ *
+ * Unlike [accountToken], this method doesn't throw if the JSON field has an unexpected type.
+ */
+ @JsonProperty("account_token")
+ @ExcludeMissing
+ fun _accountToken(): JsonField = accountToken
+
+ /**
+ * Returns the raw JSON value of [cardToken].
+ *
+ * Unlike [cardToken], this method doesn't throw if the JSON field has an unexpected type.
+ */
+ @JsonProperty("card_token") @ExcludeMissing fun _cardToken(): JsonField = cardToken
+
+ /**
+ * Returns the raw JSON value of [deviceDetails].
+ *
+ * Unlike [deviceDetails], this method doesn't throw if the JSON field has an unexpected type.
+ */
+ @JsonProperty("device_details")
+ @ExcludeMissing
+ fun _deviceDetails(): JsonField = deviceDetails
+
+ /**
+ * Returns the raw JSON value of [eventType].
+ *
+ * Unlike [eventType], this method doesn't throw if the JSON field has an unexpected type.
+ */
+ @JsonProperty("event_type") @ExcludeMissing fun _eventType(): JsonField = eventType
+
+ /**
+ * Returns the raw JSON value of [sessionId].
+ *
+ * Unlike [sessionId], this method doesn't throw if the JSON field has an unexpected type.
+ */
+ @JsonProperty("session_id") @ExcludeMissing fun _sessionId(): JsonField = sessionId
+
+ /**
+ * Returns the raw JSON value of [sessionType].
+ *
+ * Unlike [sessionType], this method doesn't throw if the JSON field has an unexpected type.
+ */
+ @JsonProperty("session_type")
+ @ExcludeMissing
+ fun _sessionType(): JsonField = sessionType
+
+ @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
+ * [EmbedSessionGeneratedWebhookEvent].
+ *
+ * The following fields are required:
+ * ```java
+ * .accountToken()
+ * .cardToken()
+ * .deviceDetails()
+ * .eventType()
+ * .sessionId()
+ * .sessionType()
+ * ```
+ */
+ @JvmStatic fun builder() = Builder()
+ }
+
+ /** A builder for [EmbedSessionGeneratedWebhookEvent]. */
+ class Builder internal constructor() {
+
+ private var accountToken: JsonField? = null
+ private var cardToken: JsonField? = null
+ private var deviceDetails: JsonField? = null
+ private var eventType: JsonField? = null
+ private var sessionId: JsonField? = null
+ private var sessionType: JsonField? = null
+ private var additionalProperties: MutableMap = mutableMapOf()
+
+ @JvmSynthetic
+ internal fun from(embedSessionGeneratedWebhookEvent: EmbedSessionGeneratedWebhookEvent) =
+ apply {
+ accountToken = embedSessionGeneratedWebhookEvent.accountToken
+ cardToken = embedSessionGeneratedWebhookEvent.cardToken
+ deviceDetails = embedSessionGeneratedWebhookEvent.deviceDetails
+ eventType = embedSessionGeneratedWebhookEvent.eventType
+ sessionId = embedSessionGeneratedWebhookEvent.sessionId
+ sessionType = embedSessionGeneratedWebhookEvent.sessionType
+ additionalProperties =
+ embedSessionGeneratedWebhookEvent.additionalProperties.toMutableMap()
+ }
+
+ /** The token of the account associated with the card */
+ fun accountToken(accountToken: String) = accountToken(JsonField.of(accountToken))
+
+ /**
+ * Sets [Builder.accountToken] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.accountToken] with a well-typed [String] value instead.
+ * This method is primarily for setting the field to an undocumented or not yet supported
+ * value.
+ */
+ fun accountToken(accountToken: JsonField) = apply {
+ this.accountToken = accountToken
+ }
+
+ /** The token of the card associated with the embed session */
+ fun cardToken(cardToken: String) = cardToken(JsonField.of(cardToken))
+
+ /**
+ * Sets [Builder.cardToken] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.cardToken] with a well-typed [String] value instead.
+ * This method is primarily for setting the field to an undocumented or not yet supported
+ * value.
+ */
+ fun cardToken(cardToken: JsonField) = apply { this.cardToken = cardToken }
+
+ /** Details about the request that generated the embed session */
+ fun deviceDetails(deviceDetails: EmbedDeviceDetails) =
+ deviceDetails(JsonField.of(deviceDetails))
+
+ /**
+ * Sets [Builder.deviceDetails] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.deviceDetails] with a well-typed [EmbedDeviceDetails]
+ * value instead. This method is primarily for setting the field to an undocumented or not
+ * yet supported value.
+ */
+ fun deviceDetails(deviceDetails: JsonField) = apply {
+ this.deviceDetails = deviceDetails
+ }
+
+ /** The type of event */
+ fun eventType(eventType: EventType) = eventType(JsonField.of(eventType))
+
+ /**
+ * Sets [Builder.eventType] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.eventType] with a well-typed [EventType] value instead.
+ * This method is primarily for setting the field to an undocumented or not yet supported
+ * value.
+ */
+ fun eventType(eventType: JsonField) = apply { this.eventType = eventType }
+
+ /** The identifier shared by webhook events for the same embed session. */
+ fun sessionId(sessionId: String) = sessionId(JsonField.of(sessionId))
+
+ /**
+ * Sets [Builder.sessionId] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.sessionId] with a well-typed [String] value instead.
+ * This method is primarily for setting the field to an undocumented or not yet supported
+ * value.
+ */
+ fun sessionId(sessionId: JsonField) = apply { this.sessionId = sessionId }
+
+ /** The type of embed session that was generated */
+ fun sessionType(sessionType: SessionType) = sessionType(JsonField.of(sessionType))
+
+ /**
+ * Sets [Builder.sessionType] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.sessionType] with a well-typed [SessionType] value
+ * instead. This method is primarily for setting the field to an undocumented or not yet
+ * supported value.
+ */
+ fun sessionType(sessionType: JsonField) = apply {
+ this.sessionType = sessionType
+ }
+
+ 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 [EmbedSessionGeneratedWebhookEvent].
+ *
+ * Further updates to this [Builder] will not mutate the returned instance.
+ *
+ * The following fields are required:
+ * ```java
+ * .accountToken()
+ * .cardToken()
+ * .deviceDetails()
+ * .eventType()
+ * .sessionId()
+ * .sessionType()
+ * ```
+ *
+ * @throws IllegalStateException if any required field is unset.
+ */
+ fun build(): EmbedSessionGeneratedWebhookEvent =
+ EmbedSessionGeneratedWebhookEvent(
+ checkRequired("accountToken", accountToken),
+ checkRequired("cardToken", cardToken),
+ checkRequired("deviceDetails", deviceDetails),
+ checkRequired("eventType", eventType),
+ checkRequired("sessionId", sessionId),
+ checkRequired("sessionType", sessionType),
+ additionalProperties.toMutableMap(),
+ )
+ }
+
+ private var validated: Boolean = false
+
+ /**
+ * Validates that the types of all values in this object match their expected types recursively.
+ *
+ * This method is _not_ forwards compatible with new types from the API for existing fields.
+ *
+ * @throws LithicInvalidDataException if any value type in this object doesn't match its
+ * expected type.
+ */
+ fun validate(): EmbedSessionGeneratedWebhookEvent = apply {
+ if (validated) {
+ return@apply
+ }
+
+ accountToken()
+ cardToken()
+ deviceDetails().validate()
+ eventType().validate()
+ sessionId()
+ sessionType().validate()
+ validated = true
+ }
+
+ fun isValid(): Boolean =
+ try {
+ validate()
+ true
+ } catch (e: LithicInvalidDataException) {
+ 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 (accountToken.asKnown().isPresent) 1 else 0) +
+ (if (cardToken.asKnown().isPresent) 1 else 0) +
+ (deviceDetails.asKnown().getOrNull()?.validity() ?: 0) +
+ (eventType.asKnown().getOrNull()?.validity() ?: 0) +
+ (if (sessionId.asKnown().isPresent) 1 else 0) +
+ (sessionType.asKnown().getOrNull()?.validity() ?: 0)
+
+ /** Details about the request that generated the embed session */
+ class EmbedDeviceDetails
+ @JsonCreator(mode = JsonCreator.Mode.DISABLED)
+ private constructor(
+ private val ipAddress: JsonField,
+ private val additionalProperties: MutableMap,
+ ) {
+
+ @JsonCreator
+ private constructor(
+ @JsonProperty("ip_address")
+ @ExcludeMissing
+ ipAddress: JsonField = JsonMissing.of()
+ ) : this(ipAddress, mutableMapOf())
+
+ /**
+ * The IP address recorded for the request that generated the event
+ *
+ * @throws LithicInvalidDataException if the JSON field has an unexpected type or is
+ * unexpectedly missing or null (e.g. if the server responded with an unexpected value).
+ */
+ fun ipAddress(): String = ipAddress.getRequired("ip_address")
+
+ /**
+ * Returns the raw JSON value of [ipAddress].
+ *
+ * Unlike [ipAddress], this method doesn't throw if the JSON field has an unexpected type.
+ */
+ @JsonProperty("ip_address") @ExcludeMissing fun _ipAddress(): JsonField = ipAddress
+
+ @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 [EmbedDeviceDetails].
+ *
+ * The following fields are required:
+ * ```java
+ * .ipAddress()
+ * ```
+ */
+ @JvmStatic fun builder() = Builder()
+ }
+
+ /** A builder for [EmbedDeviceDetails]. */
+ class Builder internal constructor() {
+
+ private var ipAddress: JsonField? = null
+ private var additionalProperties: MutableMap = mutableMapOf()
+
+ @JvmSynthetic
+ internal fun from(embedDeviceDetails: EmbedDeviceDetails) = apply {
+ ipAddress = embedDeviceDetails.ipAddress
+ additionalProperties = embedDeviceDetails.additionalProperties.toMutableMap()
+ }
+
+ /** The IP address recorded for the request that generated the event */
+ fun ipAddress(ipAddress: String) = ipAddress(JsonField.of(ipAddress))
+
+ /**
+ * Sets [Builder.ipAddress] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.ipAddress] with a well-typed [String] value instead.
+ * This method is primarily for setting the field to an undocumented or not yet
+ * supported value.
+ */
+ fun ipAddress(ipAddress: JsonField) = apply { this.ipAddress = ipAddress }
+
+ 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 [EmbedDeviceDetails].
+ *
+ * Further updates to this [Builder] will not mutate the returned instance.
+ *
+ * The following fields are required:
+ * ```java
+ * .ipAddress()
+ * ```
+ *
+ * @throws IllegalStateException if any required field is unset.
+ */
+ fun build(): EmbedDeviceDetails =
+ EmbedDeviceDetails(
+ checkRequired("ipAddress", ipAddress),
+ additionalProperties.toMutableMap(),
+ )
+ }
+
+ private var validated: Boolean = false
+
+ /**
+ * Validates that the types of all values in this object match their expected types
+ * recursively.
+ *
+ * This method is _not_ forwards compatible with new types from the API for existing fields.
+ *
+ * @throws LithicInvalidDataException if any value type in this object doesn't match its
+ * expected type.
+ */
+ fun validate(): EmbedDeviceDetails = apply {
+ if (validated) {
+ return@apply
+ }
+
+ ipAddress()
+ validated = true
+ }
+
+ fun isValid(): Boolean =
+ try {
+ validate()
+ true
+ } catch (e: LithicInvalidDataException) {
+ 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 (ipAddress.asKnown().isPresent) 1 else 0)
+
+ override fun equals(other: Any?): Boolean {
+ if (this === other) {
+ return true
+ }
+
+ return other is EmbedDeviceDetails &&
+ ipAddress == other.ipAddress &&
+ additionalProperties == other.additionalProperties
+ }
+
+ private val hashCode: Int by lazy { Objects.hash(ipAddress, additionalProperties) }
+
+ override fun hashCode(): Int = hashCode
+
+ override fun toString() =
+ "EmbedDeviceDetails{ipAddress=$ipAddress, additionalProperties=$additionalProperties}"
+ }
+
+ /** The type of event */
+ class EventType @JsonCreator private constructor(private val value: JsonField) : Enum {
+
+ /**
+ * Returns this class instance's raw value.
+ *
+ * This is usually only useful if this instance was deserialized from data that doesn't
+ * match any known member, and you want to know that value. For example, if the SDK is on an
+ * older version than the API, then the API may respond with new members that the SDK is
+ * unaware of.
+ */
+ @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value
+
+ companion object {
+
+ @JvmField val EMBED_SESSION_GENERATED = of("embed.session_generated")
+
+ @JvmStatic fun of(value: String) = EventType(JsonField.of(value))
+ }
+
+ /** An enum containing [EventType]'s known values. */
+ enum class Known {
+ EMBED_SESSION_GENERATED
+ }
+
+ /**
+ * An enum containing [EventType]'s known values, as well as an [_UNKNOWN] member.
+ *
+ * An instance of [EventType] can contain an unknown value in a couple of cases:
+ * - It was deserialized from data that doesn't match any known member. For example, if the
+ * SDK is on an older version than the API, then the API may respond with new members that
+ * the SDK is unaware of.
+ * - It was constructed with an arbitrary value using the [of] method.
+ */
+ enum class Value {
+ EMBED_SESSION_GENERATED,
+ /**
+ * An enum member indicating that [EventType] was instantiated with an unknown value.
+ */
+ _UNKNOWN,
+ }
+
+ /**
+ * Returns an enum member corresponding to this class instance's value, or [Value._UNKNOWN]
+ * if the class was instantiated with an unknown value.
+ *
+ * Use the [known] method instead if you're certain the value is always known or if you want
+ * to throw for the unknown case.
+ */
+ fun value(): Value =
+ when (this) {
+ EMBED_SESSION_GENERATED -> Value.EMBED_SESSION_GENERATED
+ else -> Value._UNKNOWN
+ }
+
+ /**
+ * Returns an enum member corresponding to this class instance's value.
+ *
+ * Use the [value] method instead if you're uncertain the value is always known and don't
+ * want to throw for the unknown case.
+ *
+ * @throws LithicInvalidDataException if this class instance's value is a not a known
+ * member.
+ */
+ fun known(): Known =
+ when (this) {
+ EMBED_SESSION_GENERATED -> Known.EMBED_SESSION_GENERATED
+ else -> throw LithicInvalidDataException("Unknown EventType: $value")
+ }
+
+ /**
+ * Returns this class instance's primitive wire representation.
+ *
+ * This differs from the [toString] method because that method is primarily for debugging
+ * and generally doesn't throw.
+ *
+ * @throws LithicInvalidDataException if this class instance's value does not have the
+ * expected primitive type.
+ */
+ fun asString(): String =
+ _value().asString().orElseThrow { LithicInvalidDataException("Value is not a String") }
+
+ private var validated: Boolean = false
+
+ /**
+ * Validates that the types of all values in this object match their expected types
+ * recursively.
+ *
+ * This method is _not_ forwards compatible with new types from the API for existing fields.
+ *
+ * @throws LithicInvalidDataException if any value type in this object doesn't match its
+ * expected type.
+ */
+ fun validate(): EventType = apply {
+ if (validated) {
+ return@apply
+ }
+
+ known()
+ validated = true
+ }
+
+ fun isValid(): Boolean =
+ try {
+ validate()
+ true
+ } catch (e: LithicInvalidDataException) {
+ 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 (value() == Value._UNKNOWN) 0 else 1
+
+ override fun equals(other: Any?): Boolean {
+ if (this === other) {
+ return true
+ }
+
+ return other is EventType && value == other.value
+ }
+
+ override fun hashCode() = value.hashCode()
+
+ override fun toString() = value.toString()
+ }
+
+ /** The type of embed session that was generated */
+ class SessionType @JsonCreator private constructor(private val value: JsonField) :
+ Enum {
+
+ /**
+ * Returns this class instance's raw value.
+ *
+ * This is usually only useful if this instance was deserialized from data that doesn't
+ * match any known member, and you want to know that value. For example, if the SDK is on an
+ * older version than the API, then the API may respond with new members that the SDK is
+ * unaware of.
+ */
+ @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value
+
+ companion object {
+
+ @JvmField val CARD_EMBED = of("CARD_EMBED")
+
+ @JvmField val PIN_SETTING_EMBED = of("PIN_SETTING_EMBED")
+
+ @JvmStatic fun of(value: String) = SessionType(JsonField.of(value))
+ }
+
+ /** An enum containing [SessionType]'s known values. */
+ enum class Known {
+ CARD_EMBED,
+ PIN_SETTING_EMBED,
+ }
+
+ /**
+ * An enum containing [SessionType]'s known values, as well as an [_UNKNOWN] member.
+ *
+ * An instance of [SessionType] can contain an unknown value in a couple of cases:
+ * - It was deserialized from data that doesn't match any known member. For example, if the
+ * SDK is on an older version than the API, then the API may respond with new members that
+ * the SDK is unaware of.
+ * - It was constructed with an arbitrary value using the [of] method.
+ */
+ enum class Value {
+ CARD_EMBED,
+ PIN_SETTING_EMBED,
+ /**
+ * An enum member indicating that [SessionType] was instantiated with an unknown value.
+ */
+ _UNKNOWN,
+ }
+
+ /**
+ * Returns an enum member corresponding to this class instance's value, or [Value._UNKNOWN]
+ * if the class was instantiated with an unknown value.
+ *
+ * Use the [known] method instead if you're certain the value is always known or if you want
+ * to throw for the unknown case.
+ */
+ fun value(): Value =
+ when (this) {
+ CARD_EMBED -> Value.CARD_EMBED
+ PIN_SETTING_EMBED -> Value.PIN_SETTING_EMBED
+ else -> Value._UNKNOWN
+ }
+
+ /**
+ * Returns an enum member corresponding to this class instance's value.
+ *
+ * Use the [value] method instead if you're uncertain the value is always known and don't
+ * want to throw for the unknown case.
+ *
+ * @throws LithicInvalidDataException if this class instance's value is a not a known
+ * member.
+ */
+ fun known(): Known =
+ when (this) {
+ CARD_EMBED -> Known.CARD_EMBED
+ PIN_SETTING_EMBED -> Known.PIN_SETTING_EMBED
+ else -> throw LithicInvalidDataException("Unknown SessionType: $value")
+ }
+
+ /**
+ * Returns this class instance's primitive wire representation.
+ *
+ * This differs from the [toString] method because that method is primarily for debugging
+ * and generally doesn't throw.
+ *
+ * @throws LithicInvalidDataException if this class instance's value does not have the
+ * expected primitive type.
+ */
+ fun asString(): String =
+ _value().asString().orElseThrow { LithicInvalidDataException("Value is not a String") }
+
+ private var validated: Boolean = false
+
+ /**
+ * Validates that the types of all values in this object match their expected types
+ * recursively.
+ *
+ * This method is _not_ forwards compatible with new types from the API for existing fields.
+ *
+ * @throws LithicInvalidDataException if any value type in this object doesn't match its
+ * expected type.
+ */
+ fun validate(): SessionType = apply {
+ if (validated) {
+ return@apply
+ }
+
+ known()
+ validated = true
+ }
+
+ fun isValid(): Boolean =
+ try {
+ validate()
+ true
+ } catch (e: LithicInvalidDataException) {
+ 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 (value() == Value._UNKNOWN) 0 else 1
+
+ override fun equals(other: Any?): Boolean {
+ if (this === other) {
+ return true
+ }
+
+ return other is SessionType && value == other.value
+ }
+
+ override fun hashCode() = value.hashCode()
+
+ override fun toString() = value.toString()
+ }
+
+ override fun equals(other: Any?): Boolean {
+ if (this === other) {
+ return true
+ }
+
+ return other is EmbedSessionGeneratedWebhookEvent &&
+ accountToken == other.accountToken &&
+ cardToken == other.cardToken &&
+ deviceDetails == other.deviceDetails &&
+ eventType == other.eventType &&
+ sessionId == other.sessionId &&
+ sessionType == other.sessionType &&
+ additionalProperties == other.additionalProperties
+ }
+
+ private val hashCode: Int by lazy {
+ Objects.hash(
+ accountToken,
+ cardToken,
+ deviceDetails,
+ eventType,
+ sessionId,
+ sessionType,
+ additionalProperties,
+ )
+ }
+
+ override fun hashCode(): Int = hashCode
+
+ override fun toString() =
+ "EmbedSessionGeneratedWebhookEvent{accountToken=$accountToken, cardToken=$cardToken, deviceDetails=$deviceDetails, eventType=$eventType, sessionId=$sessionId, sessionType=$sessionType, additionalProperties=$additionalProperties}"
+}
diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/EmbedViewedWebhookEvent.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/EmbedViewedWebhookEvent.kt
new file mode 100644
index 000000000..f0eb2759d
--- /dev/null
+++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/EmbedViewedWebhookEvent.kt
@@ -0,0 +1,857 @@
+// 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.lithic.api.core.Enum
+import com.lithic.api.core.ExcludeMissing
+import com.lithic.api.core.JsonField
+import com.lithic.api.core.JsonMissing
+import com.lithic.api.core.JsonValue
+import com.lithic.api.core.checkRequired
+import com.lithic.api.errors.LithicInvalidDataException
+import java.util.Collections
+import java.util.Objects
+import kotlin.jvm.optionals.getOrNull
+
+class EmbedViewedWebhookEvent
+@JsonCreator(mode = JsonCreator.Mode.DISABLED)
+private constructor(
+ private val accountToken: JsonField,
+ private val cardToken: JsonField,
+ private val deviceDetails: JsonField,
+ private val embedType: JsonField,
+ private val eventType: JsonField,
+ private val sessionId: JsonField,
+ private val additionalProperties: MutableMap,
+) {
+
+ @JsonCreator
+ private constructor(
+ @JsonProperty("account_token")
+ @ExcludeMissing
+ accountToken: JsonField = JsonMissing.of(),
+ @JsonProperty("card_token") @ExcludeMissing cardToken: JsonField = JsonMissing.of(),
+ @JsonProperty("device_details")
+ @ExcludeMissing
+ deviceDetails: JsonField = JsonMissing.of(),
+ @JsonProperty("embed_type")
+ @ExcludeMissing
+ embedType: JsonField = JsonMissing.of(),
+ @JsonProperty("event_type")
+ @ExcludeMissing
+ eventType: JsonField = JsonMissing.of(),
+ @JsonProperty("session_id") @ExcludeMissing sessionId: JsonField = JsonMissing.of(),
+ ) : this(
+ accountToken,
+ cardToken,
+ deviceDetails,
+ embedType,
+ eventType,
+ sessionId,
+ mutableMapOf(),
+ )
+
+ /**
+ * The token of the account associated with the card
+ *
+ * @throws LithicInvalidDataException 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 accountToken(): String = accountToken.getRequired("account_token")
+
+ /**
+ * The token of the card whose details were revealed
+ *
+ * @throws LithicInvalidDataException 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 cardToken(): String = cardToken.getRequired("card_token")
+
+ /**
+ * Details about the request that revealed the card detail
+ *
+ * @throws LithicInvalidDataException 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 deviceDetails(): EmbedDeviceDetails = deviceDetails.getRequired("device_details")
+
+ /**
+ * The type of card detail that was revealed
+ *
+ * @throws LithicInvalidDataException 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 embedType(): EmbedType = embedType.getRequired("embed_type")
+
+ /**
+ * The type of event
+ *
+ * @throws LithicInvalidDataException 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 eventType(): EventType = eventType.getRequired("event_type")
+
+ /**
+ * The identifier shared by webhook events for the same embed session.
+ *
+ * @throws LithicInvalidDataException 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 sessionId(): String = sessionId.getRequired("session_id")
+
+ /**
+ * Returns the raw JSON value of [accountToken].
+ *
+ * Unlike [accountToken], this method doesn't throw if the JSON field has an unexpected type.
+ */
+ @JsonProperty("account_token")
+ @ExcludeMissing
+ fun _accountToken(): JsonField = accountToken
+
+ /**
+ * Returns the raw JSON value of [cardToken].
+ *
+ * Unlike [cardToken], this method doesn't throw if the JSON field has an unexpected type.
+ */
+ @JsonProperty("card_token") @ExcludeMissing fun _cardToken(): JsonField = cardToken
+
+ /**
+ * Returns the raw JSON value of [deviceDetails].
+ *
+ * Unlike [deviceDetails], this method doesn't throw if the JSON field has an unexpected type.
+ */
+ @JsonProperty("device_details")
+ @ExcludeMissing
+ fun _deviceDetails(): JsonField = deviceDetails
+
+ /**
+ * Returns the raw JSON value of [embedType].
+ *
+ * Unlike [embedType], this method doesn't throw if the JSON field has an unexpected type.
+ */
+ @JsonProperty("embed_type") @ExcludeMissing fun _embedType(): JsonField = embedType
+
+ /**
+ * Returns the raw JSON value of [eventType].
+ *
+ * Unlike [eventType], this method doesn't throw if the JSON field has an unexpected type.
+ */
+ @JsonProperty("event_type") @ExcludeMissing fun _eventType(): JsonField = eventType
+
+ /**
+ * Returns the raw JSON value of [sessionId].
+ *
+ * Unlike [sessionId], this method doesn't throw if the JSON field has an unexpected type.
+ */
+ @JsonProperty("session_id") @ExcludeMissing fun _sessionId(): JsonField = sessionId
+
+ @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 [EmbedViewedWebhookEvent].
+ *
+ * The following fields are required:
+ * ```java
+ * .accountToken()
+ * .cardToken()
+ * .deviceDetails()
+ * .embedType()
+ * .eventType()
+ * .sessionId()
+ * ```
+ */
+ @JvmStatic fun builder() = Builder()
+ }
+
+ /** A builder for [EmbedViewedWebhookEvent]. */
+ class Builder internal constructor() {
+
+ private var accountToken: JsonField? = null
+ private var cardToken: JsonField? = null
+ private var deviceDetails: JsonField? = null
+ private var embedType: JsonField? = null
+ private var eventType: JsonField? = null
+ private var sessionId: JsonField? = null
+ private var additionalProperties: MutableMap = mutableMapOf()
+
+ @JvmSynthetic
+ internal fun from(embedViewedWebhookEvent: EmbedViewedWebhookEvent) = apply {
+ accountToken = embedViewedWebhookEvent.accountToken
+ cardToken = embedViewedWebhookEvent.cardToken
+ deviceDetails = embedViewedWebhookEvent.deviceDetails
+ embedType = embedViewedWebhookEvent.embedType
+ eventType = embedViewedWebhookEvent.eventType
+ sessionId = embedViewedWebhookEvent.sessionId
+ additionalProperties = embedViewedWebhookEvent.additionalProperties.toMutableMap()
+ }
+
+ /** The token of the account associated with the card */
+ fun accountToken(accountToken: String) = accountToken(JsonField.of(accountToken))
+
+ /**
+ * Sets [Builder.accountToken] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.accountToken] with a well-typed [String] value instead.
+ * This method is primarily for setting the field to an undocumented or not yet supported
+ * value.
+ */
+ fun accountToken(accountToken: JsonField) = apply {
+ this.accountToken = accountToken
+ }
+
+ /** The token of the card whose details were revealed */
+ fun cardToken(cardToken: String) = cardToken(JsonField.of(cardToken))
+
+ /**
+ * Sets [Builder.cardToken] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.cardToken] with a well-typed [String] value instead.
+ * This method is primarily for setting the field to an undocumented or not yet supported
+ * value.
+ */
+ fun cardToken(cardToken: JsonField) = apply { this.cardToken = cardToken }
+
+ /** Details about the request that revealed the card detail */
+ fun deviceDetails(deviceDetails: EmbedDeviceDetails) =
+ deviceDetails(JsonField.of(deviceDetails))
+
+ /**
+ * Sets [Builder.deviceDetails] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.deviceDetails] with a well-typed [EmbedDeviceDetails]
+ * value instead. This method is primarily for setting the field to an undocumented or not
+ * yet supported value.
+ */
+ fun deviceDetails(deviceDetails: JsonField) = apply {
+ this.deviceDetails = deviceDetails
+ }
+
+ /** The type of card detail that was revealed */
+ fun embedType(embedType: EmbedType) = embedType(JsonField.of(embedType))
+
+ /**
+ * Sets [Builder.embedType] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.embedType] with a well-typed [EmbedType] value instead.
+ * This method is primarily for setting the field to an undocumented or not yet supported
+ * value.
+ */
+ fun embedType(embedType: JsonField) = apply { this.embedType = embedType }
+
+ /** The type of event */
+ fun eventType(eventType: EventType) = eventType(JsonField.of(eventType))
+
+ /**
+ * Sets [Builder.eventType] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.eventType] with a well-typed [EventType] value instead.
+ * This method is primarily for setting the field to an undocumented or not yet supported
+ * value.
+ */
+ fun eventType(eventType: JsonField) = apply { this.eventType = eventType }
+
+ /** The identifier shared by webhook events for the same embed session. */
+ fun sessionId(sessionId: String) = sessionId(JsonField.of(sessionId))
+
+ /**
+ * Sets [Builder.sessionId] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.sessionId] with a well-typed [String] value instead.
+ * This method is primarily for setting the field to an undocumented or not yet supported
+ * value.
+ */
+ fun sessionId(sessionId: JsonField) = apply { this.sessionId = sessionId }
+
+ 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 [EmbedViewedWebhookEvent].
+ *
+ * Further updates to this [Builder] will not mutate the returned instance.
+ *
+ * The following fields are required:
+ * ```java
+ * .accountToken()
+ * .cardToken()
+ * .deviceDetails()
+ * .embedType()
+ * .eventType()
+ * .sessionId()
+ * ```
+ *
+ * @throws IllegalStateException if any required field is unset.
+ */
+ fun build(): EmbedViewedWebhookEvent =
+ EmbedViewedWebhookEvent(
+ checkRequired("accountToken", accountToken),
+ checkRequired("cardToken", cardToken),
+ checkRequired("deviceDetails", deviceDetails),
+ checkRequired("embedType", embedType),
+ checkRequired("eventType", eventType),
+ checkRequired("sessionId", sessionId),
+ additionalProperties.toMutableMap(),
+ )
+ }
+
+ private var validated: Boolean = false
+
+ /**
+ * Validates that the types of all values in this object match their expected types recursively.
+ *
+ * This method is _not_ forwards compatible with new types from the API for existing fields.
+ *
+ * @throws LithicInvalidDataException if any value type in this object doesn't match its
+ * expected type.
+ */
+ fun validate(): EmbedViewedWebhookEvent = apply {
+ if (validated) {
+ return@apply
+ }
+
+ accountToken()
+ cardToken()
+ deviceDetails().validate()
+ embedType().validate()
+ eventType().validate()
+ sessionId()
+ validated = true
+ }
+
+ fun isValid(): Boolean =
+ try {
+ validate()
+ true
+ } catch (e: LithicInvalidDataException) {
+ 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 (accountToken.asKnown().isPresent) 1 else 0) +
+ (if (cardToken.asKnown().isPresent) 1 else 0) +
+ (deviceDetails.asKnown().getOrNull()?.validity() ?: 0) +
+ (embedType.asKnown().getOrNull()?.validity() ?: 0) +
+ (eventType.asKnown().getOrNull()?.validity() ?: 0) +
+ (if (sessionId.asKnown().isPresent) 1 else 0)
+
+ /** Details about the request that revealed the card detail */
+ class EmbedDeviceDetails
+ @JsonCreator(mode = JsonCreator.Mode.DISABLED)
+ private constructor(
+ private val ipAddress: JsonField,
+ private val additionalProperties: MutableMap,
+ ) {
+
+ @JsonCreator
+ private constructor(
+ @JsonProperty("ip_address")
+ @ExcludeMissing
+ ipAddress: JsonField = JsonMissing.of()
+ ) : this(ipAddress, mutableMapOf())
+
+ /**
+ * The IP address recorded for the request that generated the event
+ *
+ * @throws LithicInvalidDataException if the JSON field has an unexpected type or is
+ * unexpectedly missing or null (e.g. if the server responded with an unexpected value).
+ */
+ fun ipAddress(): String = ipAddress.getRequired("ip_address")
+
+ /**
+ * Returns the raw JSON value of [ipAddress].
+ *
+ * Unlike [ipAddress], this method doesn't throw if the JSON field has an unexpected type.
+ */
+ @JsonProperty("ip_address") @ExcludeMissing fun _ipAddress(): JsonField = ipAddress
+
+ @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 [EmbedDeviceDetails].
+ *
+ * The following fields are required:
+ * ```java
+ * .ipAddress()
+ * ```
+ */
+ @JvmStatic fun builder() = Builder()
+ }
+
+ /** A builder for [EmbedDeviceDetails]. */
+ class Builder internal constructor() {
+
+ private var ipAddress: JsonField? = null
+ private var additionalProperties: MutableMap = mutableMapOf()
+
+ @JvmSynthetic
+ internal fun from(embedDeviceDetails: EmbedDeviceDetails) = apply {
+ ipAddress = embedDeviceDetails.ipAddress
+ additionalProperties = embedDeviceDetails.additionalProperties.toMutableMap()
+ }
+
+ /** The IP address recorded for the request that generated the event */
+ fun ipAddress(ipAddress: String) = ipAddress(JsonField.of(ipAddress))
+
+ /**
+ * Sets [Builder.ipAddress] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.ipAddress] with a well-typed [String] value instead.
+ * This method is primarily for setting the field to an undocumented or not yet
+ * supported value.
+ */
+ fun ipAddress(ipAddress: JsonField) = apply { this.ipAddress = ipAddress }
+
+ 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 [EmbedDeviceDetails].
+ *
+ * Further updates to this [Builder] will not mutate the returned instance.
+ *
+ * The following fields are required:
+ * ```java
+ * .ipAddress()
+ * ```
+ *
+ * @throws IllegalStateException if any required field is unset.
+ */
+ fun build(): EmbedDeviceDetails =
+ EmbedDeviceDetails(
+ checkRequired("ipAddress", ipAddress),
+ additionalProperties.toMutableMap(),
+ )
+ }
+
+ private var validated: Boolean = false
+
+ /**
+ * Validates that the types of all values in this object match their expected types
+ * recursively.
+ *
+ * This method is _not_ forwards compatible with new types from the API for existing fields.
+ *
+ * @throws LithicInvalidDataException if any value type in this object doesn't match its
+ * expected type.
+ */
+ fun validate(): EmbedDeviceDetails = apply {
+ if (validated) {
+ return@apply
+ }
+
+ ipAddress()
+ validated = true
+ }
+
+ fun isValid(): Boolean =
+ try {
+ validate()
+ true
+ } catch (e: LithicInvalidDataException) {
+ 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 (ipAddress.asKnown().isPresent) 1 else 0)
+
+ override fun equals(other: Any?): Boolean {
+ if (this === other) {
+ return true
+ }
+
+ return other is EmbedDeviceDetails &&
+ ipAddress == other.ipAddress &&
+ additionalProperties == other.additionalProperties
+ }
+
+ private val hashCode: Int by lazy { Objects.hash(ipAddress, additionalProperties) }
+
+ override fun hashCode(): Int = hashCode
+
+ override fun toString() =
+ "EmbedDeviceDetails{ipAddress=$ipAddress, additionalProperties=$additionalProperties}"
+ }
+
+ /** The type of card detail that was revealed */
+ class EmbedType @JsonCreator private constructor(private val value: JsonField) : Enum {
+
+ /**
+ * Returns this class instance's raw value.
+ *
+ * This is usually only useful if this instance was deserialized from data that doesn't
+ * match any known member, and you want to know that value. For example, if the SDK is on an
+ * older version than the API, then the API may respond with new members that the SDK is
+ * unaware of.
+ */
+ @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value
+
+ companion object {
+
+ @JvmField val PAN = of("PAN")
+
+ @JvmField val CVV = of("CVV")
+
+ @JvmField val EXP_MONTH = of("EXP_MONTH")
+
+ @JvmField val EXP_YEAR = of("EXP_YEAR")
+
+ @JvmStatic fun of(value: String) = EmbedType(JsonField.of(value))
+ }
+
+ /** An enum containing [EmbedType]'s known values. */
+ enum class Known {
+ PAN,
+ CVV,
+ EXP_MONTH,
+ EXP_YEAR,
+ }
+
+ /**
+ * An enum containing [EmbedType]'s known values, as well as an [_UNKNOWN] member.
+ *
+ * An instance of [EmbedType] can contain an unknown value in a couple of cases:
+ * - It was deserialized from data that doesn't match any known member. For example, if the
+ * SDK is on an older version than the API, then the API may respond with new members that
+ * the SDK is unaware of.
+ * - It was constructed with an arbitrary value using the [of] method.
+ */
+ enum class Value {
+ PAN,
+ CVV,
+ EXP_MONTH,
+ EXP_YEAR,
+ /**
+ * An enum member indicating that [EmbedType] was instantiated with an unknown value.
+ */
+ _UNKNOWN,
+ }
+
+ /**
+ * Returns an enum member corresponding to this class instance's value, or [Value._UNKNOWN]
+ * if the class was instantiated with an unknown value.
+ *
+ * Use the [known] method instead if you're certain the value is always known or if you want
+ * to throw for the unknown case.
+ */
+ fun value(): Value =
+ when (this) {
+ PAN -> Value.PAN
+ CVV -> Value.CVV
+ EXP_MONTH -> Value.EXP_MONTH
+ EXP_YEAR -> Value.EXP_YEAR
+ else -> Value._UNKNOWN
+ }
+
+ /**
+ * Returns an enum member corresponding to this class instance's value.
+ *
+ * Use the [value] method instead if you're uncertain the value is always known and don't
+ * want to throw for the unknown case.
+ *
+ * @throws LithicInvalidDataException if this class instance's value is a not a known
+ * member.
+ */
+ fun known(): Known =
+ when (this) {
+ PAN -> Known.PAN
+ CVV -> Known.CVV
+ EXP_MONTH -> Known.EXP_MONTH
+ EXP_YEAR -> Known.EXP_YEAR
+ else -> throw LithicInvalidDataException("Unknown EmbedType: $value")
+ }
+
+ /**
+ * Returns this class instance's primitive wire representation.
+ *
+ * This differs from the [toString] method because that method is primarily for debugging
+ * and generally doesn't throw.
+ *
+ * @throws LithicInvalidDataException if this class instance's value does not have the
+ * expected primitive type.
+ */
+ fun asString(): String =
+ _value().asString().orElseThrow { LithicInvalidDataException("Value is not a String") }
+
+ private var validated: Boolean = false
+
+ /**
+ * Validates that the types of all values in this object match their expected types
+ * recursively.
+ *
+ * This method is _not_ forwards compatible with new types from the API for existing fields.
+ *
+ * @throws LithicInvalidDataException if any value type in this object doesn't match its
+ * expected type.
+ */
+ fun validate(): EmbedType = apply {
+ if (validated) {
+ return@apply
+ }
+
+ known()
+ validated = true
+ }
+
+ fun isValid(): Boolean =
+ try {
+ validate()
+ true
+ } catch (e: LithicInvalidDataException) {
+ 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 (value() == Value._UNKNOWN) 0 else 1
+
+ override fun equals(other: Any?): Boolean {
+ if (this === other) {
+ return true
+ }
+
+ return other is EmbedType && value == other.value
+ }
+
+ override fun hashCode() = value.hashCode()
+
+ override fun toString() = value.toString()
+ }
+
+ /** The type of event */
+ class EventType @JsonCreator private constructor(private val value: JsonField) : Enum {
+
+ /**
+ * Returns this class instance's raw value.
+ *
+ * This is usually only useful if this instance was deserialized from data that doesn't
+ * match any known member, and you want to know that value. For example, if the SDK is on an
+ * older version than the API, then the API may respond with new members that the SDK is
+ * unaware of.
+ */
+ @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value
+
+ companion object {
+
+ @JvmField val EMBED_VIEWED = of("embed.viewed")
+
+ @JvmStatic fun of(value: String) = EventType(JsonField.of(value))
+ }
+
+ /** An enum containing [EventType]'s known values. */
+ enum class Known {
+ EMBED_VIEWED
+ }
+
+ /**
+ * An enum containing [EventType]'s known values, as well as an [_UNKNOWN] member.
+ *
+ * An instance of [EventType] can contain an unknown value in a couple of cases:
+ * - It was deserialized from data that doesn't match any known member. For example, if the
+ * SDK is on an older version than the API, then the API may respond with new members that
+ * the SDK is unaware of.
+ * - It was constructed with an arbitrary value using the [of] method.
+ */
+ enum class Value {
+ EMBED_VIEWED,
+ /**
+ * An enum member indicating that [EventType] was instantiated with an unknown value.
+ */
+ _UNKNOWN,
+ }
+
+ /**
+ * Returns an enum member corresponding to this class instance's value, or [Value._UNKNOWN]
+ * if the class was instantiated with an unknown value.
+ *
+ * Use the [known] method instead if you're certain the value is always known or if you want
+ * to throw for the unknown case.
+ */
+ fun value(): Value =
+ when (this) {
+ EMBED_VIEWED -> Value.EMBED_VIEWED
+ else -> Value._UNKNOWN
+ }
+
+ /**
+ * Returns an enum member corresponding to this class instance's value.
+ *
+ * Use the [value] method instead if you're uncertain the value is always known and don't
+ * want to throw for the unknown case.
+ *
+ * @throws LithicInvalidDataException if this class instance's value is a not a known
+ * member.
+ */
+ fun known(): Known =
+ when (this) {
+ EMBED_VIEWED -> Known.EMBED_VIEWED
+ else -> throw LithicInvalidDataException("Unknown EventType: $value")
+ }
+
+ /**
+ * Returns this class instance's primitive wire representation.
+ *
+ * This differs from the [toString] method because that method is primarily for debugging
+ * and generally doesn't throw.
+ *
+ * @throws LithicInvalidDataException if this class instance's value does not have the
+ * expected primitive type.
+ */
+ fun asString(): String =
+ _value().asString().orElseThrow { LithicInvalidDataException("Value is not a String") }
+
+ private var validated: Boolean = false
+
+ /**
+ * Validates that the types of all values in this object match their expected types
+ * recursively.
+ *
+ * This method is _not_ forwards compatible with new types from the API for existing fields.
+ *
+ * @throws LithicInvalidDataException if any value type in this object doesn't match its
+ * expected type.
+ */
+ fun validate(): EventType = apply {
+ if (validated) {
+ return@apply
+ }
+
+ known()
+ validated = true
+ }
+
+ fun isValid(): Boolean =
+ try {
+ validate()
+ true
+ } catch (e: LithicInvalidDataException) {
+ 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 (value() == Value._UNKNOWN) 0 else 1
+
+ override fun equals(other: Any?): Boolean {
+ if (this === other) {
+ return true
+ }
+
+ return other is EventType && value == other.value
+ }
+
+ override fun hashCode() = value.hashCode()
+
+ override fun toString() = value.toString()
+ }
+
+ override fun equals(other: Any?): Boolean {
+ if (this === other) {
+ return true
+ }
+
+ return other is EmbedViewedWebhookEvent &&
+ accountToken == other.accountToken &&
+ cardToken == other.cardToken &&
+ deviceDetails == other.deviceDetails &&
+ embedType == other.embedType &&
+ eventType == other.eventType &&
+ sessionId == other.sessionId &&
+ additionalProperties == other.additionalProperties
+ }
+
+ private val hashCode: Int by lazy {
+ Objects.hash(
+ accountToken,
+ cardToken,
+ deviceDetails,
+ embedType,
+ eventType,
+ sessionId,
+ additionalProperties,
+ )
+ }
+
+ override fun hashCode(): Int = hashCode
+
+ override fun toString() =
+ "EmbedViewedWebhookEvent{accountToken=$accountToken, cardToken=$cardToken, deviceDetails=$deviceDetails, embedType=$embedType, eventType=$eventType, sessionId=$sessionId, additionalProperties=$additionalProperties}"
+}
diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/Event.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/Event.kt
index 9aed3f5d2..478f8b46c 100644
--- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/Event.kt
+++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/Event.kt
@@ -63,7 +63,7 @@ private constructor(
/**
* The type of event that occurred. Possible values:
* - account_holder_document.updated: Occurs when an account holder's document upload status has
- * been updated
+ * been updated.
* - account_holder.created: Occurs when a new account_holder is created.
* - account_holder.updated: Occurs when an account_holder is updated.
* - account_holder.verification: Occurs when an asynchronous account_holder's verification is
@@ -113,10 +113,21 @@ private constructor(
*
* This event will be deprecated in the future. We recommend using `tokenization.updated`
* instead.
- * - dispute_evidence.upload_failed: Occurs when a dispute evidence upload fails.
- * - dispute_transaction.created: Occurs when a new dispute transaction is created
- * - dispute_transaction.updated: Occurs when a dispute transaction is updated
- * - dispute.updated: Occurs when a dispute is updated.
+ * - dispute_evidence.upload_failed: Occurs when an evidence upload fails for a dispute filed
+ * through the Chargebacks API (`/v1/disputes`).
+ *
+ * This event is not emitted for Managed Disputes.
+ * - dispute_transaction.created: Occurs when a new dispute transaction is created for a Managed
+ * Disputes case.
+ * - dispute_transaction.updated: Occurs when a dispute transaction for a Managed Disputes case
+ * is updated.
+ * - dispute.updated: Occurs when a dispute filed through the Chargebacks API (`/v1/disputes`)
+ * is created or updated.
+ *
+ * This event is not emitted for Managed Disputes. Use `dispute_transaction.created` and
+ * `dispute_transaction.updated` instead.
+ * - embed.session_generated: Occurs when a card embed session is successfully generated.
+ * - embed.viewed: Occurs when a card detail is successfully revealed through an embed.
* - external_bank_account.created: Occurs when an external bank account is created.
* - external_bank_account.updated: Occurs when an external bank account is updated.
* - external_payment.created: Occurs when an external payment is created.
@@ -135,7 +146,7 @@ private constructor(
* - payment_transaction.created: Occurs when a payment transaction is created.
* - payment_transaction.updated: Occurs when a payment transaction is updated.
* - settlement_report.updated: Occurs when a settlement report is created or updated.
- * - statements.created: Occurs when a statement has been created
+ * - statements.created: Occurs when a statement has been created.
* - three_ds_authentication.challenge: The `three_ds_authentication.challenge` event. Upon
* receiving this request, the Card Program should issue its own challenge to the cardholder.
* After a cardholder challenge is successfully completed, the Card Program needs to respond
@@ -271,7 +282,7 @@ private constructor(
/**
* The type of event that occurred. Possible values:
* - account_holder_document.updated: Occurs when an account holder's document upload status
- * has been updated
+ * has been updated.
* - account_holder.created: Occurs when a new account_holder is created.
* - account_holder.updated: Occurs when an account_holder is updated.
* - account_holder.verification: Occurs when an asynchronous account_holder's verification
@@ -325,10 +336,21 @@ private constructor(
*
* This event will be deprecated in the future. We recommend using `tokenization.updated`
* instead.
- * - dispute_evidence.upload_failed: Occurs when a dispute evidence upload fails.
- * - dispute_transaction.created: Occurs when a new dispute transaction is created
- * - dispute_transaction.updated: Occurs when a dispute transaction is updated
- * - dispute.updated: Occurs when a dispute is updated.
+ * - dispute_evidence.upload_failed: Occurs when an evidence upload fails for a dispute
+ * filed through the Chargebacks API (`/v1/disputes`).
+ *
+ * This event is not emitted for Managed Disputes.
+ * - dispute_transaction.created: Occurs when a new dispute transaction is created for a
+ * Managed Disputes case.
+ * - dispute_transaction.updated: Occurs when a dispute transaction for a Managed Disputes
+ * case is updated.
+ * - dispute.updated: Occurs when a dispute filed through the Chargebacks API
+ * (`/v1/disputes`) is created or updated.
+ *
+ * This event is not emitted for Managed Disputes. Use `dispute_transaction.created` and
+ * `dispute_transaction.updated` instead.
+ * - embed.session_generated: Occurs when a card embed session is successfully generated.
+ * - embed.viewed: Occurs when a card detail is successfully revealed through an embed.
* - external_bank_account.created: Occurs when an external bank account is created.
* - external_bank_account.updated: Occurs when an external bank account is updated.
* - external_payment.created: Occurs when an external payment is created.
@@ -347,7 +369,7 @@ private constructor(
* - payment_transaction.created: Occurs when a payment transaction is created.
* - payment_transaction.updated: Occurs when a payment transaction is updated.
* - settlement_report.updated: Occurs when a settlement report is created or updated.
- * - statements.created: Occurs when a statement has been created
+ * - statements.created: Occurs when a statement has been created.
* - three_ds_authentication.challenge: The `three_ds_authentication.challenge` event. Upon
* receiving this request, the Card Program should issue its own challenge to the
* cardholder. After a cardholder challenge is successfully completed, the Card Program
@@ -478,7 +500,7 @@ private constructor(
/**
* The type of event that occurred. Possible values:
* - account_holder_document.updated: Occurs when an account holder's document upload status has
- * been updated
+ * been updated.
* - account_holder.created: Occurs when a new account_holder is created.
* - account_holder.updated: Occurs when an account_holder is updated.
* - account_holder.verification: Occurs when an asynchronous account_holder's verification is
@@ -528,10 +550,21 @@ private constructor(
*
* This event will be deprecated in the future. We recommend using `tokenization.updated`
* instead.
- * - dispute_evidence.upload_failed: Occurs when a dispute evidence upload fails.
- * - dispute_transaction.created: Occurs when a new dispute transaction is created
- * - dispute_transaction.updated: Occurs when a dispute transaction is updated
- * - dispute.updated: Occurs when a dispute is updated.
+ * - dispute_evidence.upload_failed: Occurs when an evidence upload fails for a dispute filed
+ * through the Chargebacks API (`/v1/disputes`).
+ *
+ * This event is not emitted for Managed Disputes.
+ * - dispute_transaction.created: Occurs when a new dispute transaction is created for a Managed
+ * Disputes case.
+ * - dispute_transaction.updated: Occurs when a dispute transaction for a Managed Disputes case
+ * is updated.
+ * - dispute.updated: Occurs when a dispute filed through the Chargebacks API (`/v1/disputes`)
+ * is created or updated.
+ *
+ * This event is not emitted for Managed Disputes. Use `dispute_transaction.created` and
+ * `dispute_transaction.updated` instead.
+ * - embed.session_generated: Occurs when a card embed session is successfully generated.
+ * - embed.viewed: Occurs when a card detail is successfully revealed through an embed.
* - external_bank_account.created: Occurs when an external bank account is created.
* - external_bank_account.updated: Occurs when an external bank account is updated.
* - external_payment.created: Occurs when an external payment is created.
@@ -550,7 +583,7 @@ private constructor(
* - payment_transaction.created: Occurs when a payment transaction is created.
* - payment_transaction.updated: Occurs when a payment transaction is updated.
* - settlement_report.updated: Occurs when a settlement report is created or updated.
- * - statements.created: Occurs when a statement has been created
+ * - statements.created: Occurs when a statement has been created.
* - three_ds_authentication.challenge: The `three_ds_authentication.challenge` event. Upon
* receiving this request, the Card Program should issue its own challenge to the cardholder.
* After a cardholder challenge is successfully completed, the Card Program needs to respond
@@ -663,6 +696,10 @@ private constructor(
@JvmField val DISPUTE_UPDATED = of("dispute.updated")
+ @JvmField val EMBED_SESSION_GENERATED = of("embed.session_generated")
+
+ @JvmField val EMBED_VIEWED = of("embed.viewed")
+
@JvmField val EXTERNAL_BANK_ACCOUNT_CREATED = of("external_bank_account.created")
@JvmField val EXTERNAL_BANK_ACCOUNT_UPDATED = of("external_bank_account.updated")
@@ -759,6 +796,8 @@ private constructor(
DISPUTE_TRANSACTION_CREATED,
DISPUTE_TRANSACTION_UPDATED,
DISPUTE_UPDATED,
+ EMBED_SESSION_GENERATED,
+ EMBED_VIEWED,
EXTERNAL_BANK_ACCOUNT_CREATED,
EXTERNAL_BANK_ACCOUNT_UPDATED,
EXTERNAL_PAYMENT_CREATED,
@@ -830,6 +869,8 @@ private constructor(
DISPUTE_TRANSACTION_CREATED,
DISPUTE_TRANSACTION_UPDATED,
DISPUTE_UPDATED,
+ EMBED_SESSION_GENERATED,
+ EMBED_VIEWED,
EXTERNAL_BANK_ACCOUNT_CREATED,
EXTERNAL_BANK_ACCOUNT_UPDATED,
EXTERNAL_PAYMENT_CREATED,
@@ -908,6 +949,8 @@ private constructor(
DISPUTE_TRANSACTION_CREATED -> Value.DISPUTE_TRANSACTION_CREATED
DISPUTE_TRANSACTION_UPDATED -> Value.DISPUTE_TRANSACTION_UPDATED
DISPUTE_UPDATED -> Value.DISPUTE_UPDATED
+ EMBED_SESSION_GENERATED -> Value.EMBED_SESSION_GENERATED
+ EMBED_VIEWED -> Value.EMBED_VIEWED
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
@@ -987,6 +1030,8 @@ private constructor(
DISPUTE_TRANSACTION_CREATED -> Known.DISPUTE_TRANSACTION_CREATED
DISPUTE_TRANSACTION_UPDATED -> Known.DISPUTE_TRANSACTION_UPDATED
DISPUTE_UPDATED -> Known.DISPUTE_UPDATED
+ EMBED_SESSION_GENERATED -> Known.EMBED_SESSION_GENERATED
+ EMBED_VIEWED -> Known.EMBED_VIEWED
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
diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/EventListParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/EventListParams.kt
index e4bed4337..70417c1e4 100644
--- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/EventListParams.kt
+++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/EventListParams.kt
@@ -321,7 +321,7 @@ private constructor(
/**
* The type of event that occurred. Possible values:
* - account_holder_document.updated: Occurs when an account holder's document upload status has
- * been updated
+ * been updated.
* - account_holder.created: Occurs when a new account_holder is created.
* - account_holder.updated: Occurs when an account_holder is updated.
* - account_holder.verification: Occurs when an asynchronous account_holder's verification is
@@ -371,10 +371,21 @@ private constructor(
*
* This event will be deprecated in the future. We recommend using `tokenization.updated`
* instead.
- * - dispute_evidence.upload_failed: Occurs when a dispute evidence upload fails.
- * - dispute_transaction.created: Occurs when a new dispute transaction is created
- * - dispute_transaction.updated: Occurs when a dispute transaction is updated
- * - dispute.updated: Occurs when a dispute is updated.
+ * - dispute_evidence.upload_failed: Occurs when an evidence upload fails for a dispute filed
+ * through the Chargebacks API (`/v1/disputes`).
+ *
+ * This event is not emitted for Managed Disputes.
+ * - dispute_transaction.created: Occurs when a new dispute transaction is created for a Managed
+ * Disputes case.
+ * - dispute_transaction.updated: Occurs when a dispute transaction for a Managed Disputes case
+ * is updated.
+ * - dispute.updated: Occurs when a dispute filed through the Chargebacks API (`/v1/disputes`)
+ * is created or updated.
+ *
+ * This event is not emitted for Managed Disputes. Use `dispute_transaction.created` and
+ * `dispute_transaction.updated` instead.
+ * - embed.session_generated: Occurs when a card embed session is successfully generated.
+ * - embed.viewed: Occurs when a card detail is successfully revealed through an embed.
* - external_bank_account.created: Occurs when an external bank account is created.
* - external_bank_account.updated: Occurs when an external bank account is updated.
* - external_payment.created: Occurs when an external payment is created.
@@ -393,7 +404,7 @@ private constructor(
* - payment_transaction.created: Occurs when a payment transaction is created.
* - payment_transaction.updated: Occurs when a payment transaction is updated.
* - settlement_report.updated: Occurs when a settlement report is created or updated.
- * - statements.created: Occurs when a statement has been created
+ * - statements.created: Occurs when a statement has been created.
* - three_ds_authentication.challenge: The `three_ds_authentication.challenge` event. Upon
* receiving this request, the Card Program should issue its own challenge to the cardholder.
* After a cardholder challenge is successfully completed, the Card Program needs to respond
@@ -506,6 +517,10 @@ private constructor(
@JvmField val DISPUTE_UPDATED = of("dispute.updated")
+ @JvmField val EMBED_SESSION_GENERATED = of("embed.session_generated")
+
+ @JvmField val EMBED_VIEWED = of("embed.viewed")
+
@JvmField val EXTERNAL_BANK_ACCOUNT_CREATED = of("external_bank_account.created")
@JvmField val EXTERNAL_BANK_ACCOUNT_UPDATED = of("external_bank_account.updated")
@@ -602,6 +617,8 @@ private constructor(
DISPUTE_TRANSACTION_CREATED,
DISPUTE_TRANSACTION_UPDATED,
DISPUTE_UPDATED,
+ EMBED_SESSION_GENERATED,
+ EMBED_VIEWED,
EXTERNAL_BANK_ACCOUNT_CREATED,
EXTERNAL_BANK_ACCOUNT_UPDATED,
EXTERNAL_PAYMENT_CREATED,
@@ -673,6 +690,8 @@ private constructor(
DISPUTE_TRANSACTION_CREATED,
DISPUTE_TRANSACTION_UPDATED,
DISPUTE_UPDATED,
+ EMBED_SESSION_GENERATED,
+ EMBED_VIEWED,
EXTERNAL_BANK_ACCOUNT_CREATED,
EXTERNAL_BANK_ACCOUNT_UPDATED,
EXTERNAL_PAYMENT_CREATED,
@@ -751,6 +770,8 @@ private constructor(
DISPUTE_TRANSACTION_CREATED -> Value.DISPUTE_TRANSACTION_CREATED
DISPUTE_TRANSACTION_UPDATED -> Value.DISPUTE_TRANSACTION_UPDATED
DISPUTE_UPDATED -> Value.DISPUTE_UPDATED
+ EMBED_SESSION_GENERATED -> Value.EMBED_SESSION_GENERATED
+ EMBED_VIEWED -> Value.EMBED_VIEWED
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
@@ -830,6 +851,8 @@ private constructor(
DISPUTE_TRANSACTION_CREATED -> Known.DISPUTE_TRANSACTION_CREATED
DISPUTE_TRANSACTION_UPDATED -> Known.DISPUTE_TRANSACTION_UPDATED
DISPUTE_UPDATED -> Known.DISPUTE_UPDATED
+ EMBED_SESSION_GENERATED -> Known.EMBED_SESSION_GENERATED
+ EMBED_VIEWED -> Known.EMBED_VIEWED
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
diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/EventSubscription.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/EventSubscription.kt
index d71b5c602..2c364ac01 100644
--- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/EventSubscription.kt
+++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/EventSubscription.kt
@@ -331,7 +331,7 @@ private constructor(
/**
* The type of event that occurred. Possible values:
* - account_holder_document.updated: Occurs when an account holder's document upload status has
- * been updated
+ * been updated.
* - account_holder.created: Occurs when a new account_holder is created.
* - account_holder.updated: Occurs when an account_holder is updated.
* - account_holder.verification: Occurs when an asynchronous account_holder's verification is
@@ -381,10 +381,21 @@ private constructor(
*
* This event will be deprecated in the future. We recommend using `tokenization.updated`
* instead.
- * - dispute_evidence.upload_failed: Occurs when a dispute evidence upload fails.
- * - dispute_transaction.created: Occurs when a new dispute transaction is created
- * - dispute_transaction.updated: Occurs when a dispute transaction is updated
- * - dispute.updated: Occurs when a dispute is updated.
+ * - dispute_evidence.upload_failed: Occurs when an evidence upload fails for a dispute filed
+ * through the Chargebacks API (`/v1/disputes`).
+ *
+ * This event is not emitted for Managed Disputes.
+ * - dispute_transaction.created: Occurs when a new dispute transaction is created for a Managed
+ * Disputes case.
+ * - dispute_transaction.updated: Occurs when a dispute transaction for a Managed Disputes case
+ * is updated.
+ * - dispute.updated: Occurs when a dispute filed through the Chargebacks API (`/v1/disputes`)
+ * is created or updated.
+ *
+ * This event is not emitted for Managed Disputes. Use `dispute_transaction.created` and
+ * `dispute_transaction.updated` instead.
+ * - embed.session_generated: Occurs when a card embed session is successfully generated.
+ * - embed.viewed: Occurs when a card detail is successfully revealed through an embed.
* - external_bank_account.created: Occurs when an external bank account is created.
* - external_bank_account.updated: Occurs when an external bank account is updated.
* - external_payment.created: Occurs when an external payment is created.
@@ -403,7 +414,7 @@ private constructor(
* - payment_transaction.created: Occurs when a payment transaction is created.
* - payment_transaction.updated: Occurs when a payment transaction is updated.
* - settlement_report.updated: Occurs when a settlement report is created or updated.
- * - statements.created: Occurs when a statement has been created
+ * - statements.created: Occurs when a statement has been created.
* - three_ds_authentication.challenge: The `three_ds_authentication.challenge` event. Upon
* receiving this request, the Card Program should issue its own challenge to the cardholder.
* After a cardholder challenge is successfully completed, the Card Program needs to respond
@@ -516,6 +527,10 @@ private constructor(
@JvmField val DISPUTE_UPDATED = of("dispute.updated")
+ @JvmField val EMBED_SESSION_GENERATED = of("embed.session_generated")
+
+ @JvmField val EMBED_VIEWED = of("embed.viewed")
+
@JvmField val EXTERNAL_BANK_ACCOUNT_CREATED = of("external_bank_account.created")
@JvmField val EXTERNAL_BANK_ACCOUNT_UPDATED = of("external_bank_account.updated")
@@ -612,6 +627,8 @@ private constructor(
DISPUTE_TRANSACTION_CREATED,
DISPUTE_TRANSACTION_UPDATED,
DISPUTE_UPDATED,
+ EMBED_SESSION_GENERATED,
+ EMBED_VIEWED,
EXTERNAL_BANK_ACCOUNT_CREATED,
EXTERNAL_BANK_ACCOUNT_UPDATED,
EXTERNAL_PAYMENT_CREATED,
@@ -683,6 +700,8 @@ private constructor(
DISPUTE_TRANSACTION_CREATED,
DISPUTE_TRANSACTION_UPDATED,
DISPUTE_UPDATED,
+ EMBED_SESSION_GENERATED,
+ EMBED_VIEWED,
EXTERNAL_BANK_ACCOUNT_CREATED,
EXTERNAL_BANK_ACCOUNT_UPDATED,
EXTERNAL_PAYMENT_CREATED,
@@ -761,6 +780,8 @@ private constructor(
DISPUTE_TRANSACTION_CREATED -> Value.DISPUTE_TRANSACTION_CREATED
DISPUTE_TRANSACTION_UPDATED -> Value.DISPUTE_TRANSACTION_UPDATED
DISPUTE_UPDATED -> Value.DISPUTE_UPDATED
+ EMBED_SESSION_GENERATED -> Value.EMBED_SESSION_GENERATED
+ EMBED_VIEWED -> Value.EMBED_VIEWED
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
@@ -840,6 +861,8 @@ private constructor(
DISPUTE_TRANSACTION_CREATED -> Known.DISPUTE_TRANSACTION_CREATED
DISPUTE_TRANSACTION_UPDATED -> Known.DISPUTE_TRANSACTION_UPDATED
DISPUTE_UPDATED -> Known.DISPUTE_UPDATED
+ EMBED_SESSION_GENERATED -> Known.EMBED_SESSION_GENERATED
+ EMBED_VIEWED -> Known.EMBED_VIEWED
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
diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/EventSubscriptionCreateParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/EventSubscriptionCreateParams.kt
index 2d6c6594a..789263338 100644
--- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/EventSubscriptionCreateParams.kt
+++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/EventSubscriptionCreateParams.kt
@@ -654,7 +654,7 @@ private constructor(
/**
* The type of event that occurred. Possible values:
* - account_holder_document.updated: Occurs when an account holder's document upload status has
- * been updated
+ * been updated.
* - account_holder.created: Occurs when a new account_holder is created.
* - account_holder.updated: Occurs when an account_holder is updated.
* - account_holder.verification: Occurs when an asynchronous account_holder's verification is
@@ -704,10 +704,21 @@ private constructor(
*
* This event will be deprecated in the future. We recommend using `tokenization.updated`
* instead.
- * - dispute_evidence.upload_failed: Occurs when a dispute evidence upload fails.
- * - dispute_transaction.created: Occurs when a new dispute transaction is created
- * - dispute_transaction.updated: Occurs when a dispute transaction is updated
- * - dispute.updated: Occurs when a dispute is updated.
+ * - dispute_evidence.upload_failed: Occurs when an evidence upload fails for a dispute filed
+ * through the Chargebacks API (`/v1/disputes`).
+ *
+ * This event is not emitted for Managed Disputes.
+ * - dispute_transaction.created: Occurs when a new dispute transaction is created for a Managed
+ * Disputes case.
+ * - dispute_transaction.updated: Occurs when a dispute transaction for a Managed Disputes case
+ * is updated.
+ * - dispute.updated: Occurs when a dispute filed through the Chargebacks API (`/v1/disputes`)
+ * is created or updated.
+ *
+ * This event is not emitted for Managed Disputes. Use `dispute_transaction.created` and
+ * `dispute_transaction.updated` instead.
+ * - embed.session_generated: Occurs when a card embed session is successfully generated.
+ * - embed.viewed: Occurs when a card detail is successfully revealed through an embed.
* - external_bank_account.created: Occurs when an external bank account is created.
* - external_bank_account.updated: Occurs when an external bank account is updated.
* - external_payment.created: Occurs when an external payment is created.
@@ -726,7 +737,7 @@ private constructor(
* - payment_transaction.created: Occurs when a payment transaction is created.
* - payment_transaction.updated: Occurs when a payment transaction is updated.
* - settlement_report.updated: Occurs when a settlement report is created or updated.
- * - statements.created: Occurs when a statement has been created
+ * - statements.created: Occurs when a statement has been created.
* - three_ds_authentication.challenge: The `three_ds_authentication.challenge` event. Upon
* receiving this request, the Card Program should issue its own challenge to the cardholder.
* After a cardholder challenge is successfully completed, the Card Program needs to respond
@@ -839,6 +850,10 @@ private constructor(
@JvmField val DISPUTE_UPDATED = of("dispute.updated")
+ @JvmField val EMBED_SESSION_GENERATED = of("embed.session_generated")
+
+ @JvmField val EMBED_VIEWED = of("embed.viewed")
+
@JvmField val EXTERNAL_BANK_ACCOUNT_CREATED = of("external_bank_account.created")
@JvmField val EXTERNAL_BANK_ACCOUNT_UPDATED = of("external_bank_account.updated")
@@ -935,6 +950,8 @@ private constructor(
DISPUTE_TRANSACTION_CREATED,
DISPUTE_TRANSACTION_UPDATED,
DISPUTE_UPDATED,
+ EMBED_SESSION_GENERATED,
+ EMBED_VIEWED,
EXTERNAL_BANK_ACCOUNT_CREATED,
EXTERNAL_BANK_ACCOUNT_UPDATED,
EXTERNAL_PAYMENT_CREATED,
@@ -1006,6 +1023,8 @@ private constructor(
DISPUTE_TRANSACTION_CREATED,
DISPUTE_TRANSACTION_UPDATED,
DISPUTE_UPDATED,
+ EMBED_SESSION_GENERATED,
+ EMBED_VIEWED,
EXTERNAL_BANK_ACCOUNT_CREATED,
EXTERNAL_BANK_ACCOUNT_UPDATED,
EXTERNAL_PAYMENT_CREATED,
@@ -1084,6 +1103,8 @@ private constructor(
DISPUTE_TRANSACTION_CREATED -> Value.DISPUTE_TRANSACTION_CREATED
DISPUTE_TRANSACTION_UPDATED -> Value.DISPUTE_TRANSACTION_UPDATED
DISPUTE_UPDATED -> Value.DISPUTE_UPDATED
+ EMBED_SESSION_GENERATED -> Value.EMBED_SESSION_GENERATED
+ EMBED_VIEWED -> Value.EMBED_VIEWED
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
@@ -1163,6 +1184,8 @@ private constructor(
DISPUTE_TRANSACTION_CREATED -> Known.DISPUTE_TRANSACTION_CREATED
DISPUTE_TRANSACTION_UPDATED -> Known.DISPUTE_TRANSACTION_UPDATED
DISPUTE_UPDATED -> Known.DISPUTE_UPDATED
+ EMBED_SESSION_GENERATED -> Known.EMBED_SESSION_GENERATED
+ EMBED_VIEWED -> Known.EMBED_VIEWED
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
diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/EventSubscriptionSendSimulatedExampleParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/EventSubscriptionSendSimulatedExampleParams.kt
index 91b9d23b7..0bee59c6c 100644
--- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/EventSubscriptionSendSimulatedExampleParams.kt
+++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/EventSubscriptionSendSimulatedExampleParams.kt
@@ -511,6 +511,10 @@ private constructor(
@JvmField val DISPUTE_UPDATED = of("dispute.updated")
+ @JvmField val EMBED_SESSION_GENERATED = of("embed.session_generated")
+
+ @JvmField val EMBED_VIEWED = of("embed.viewed")
+
@JvmField val EXTERNAL_BANK_ACCOUNT_CREATED = of("external_bank_account.created")
@JvmField val EXTERNAL_BANK_ACCOUNT_UPDATED = of("external_bank_account.updated")
@@ -607,6 +611,8 @@ private constructor(
DISPUTE_TRANSACTION_CREATED,
DISPUTE_TRANSACTION_UPDATED,
DISPUTE_UPDATED,
+ EMBED_SESSION_GENERATED,
+ EMBED_VIEWED,
EXTERNAL_BANK_ACCOUNT_CREATED,
EXTERNAL_BANK_ACCOUNT_UPDATED,
EXTERNAL_PAYMENT_CREATED,
@@ -678,6 +684,8 @@ private constructor(
DISPUTE_TRANSACTION_CREATED,
DISPUTE_TRANSACTION_UPDATED,
DISPUTE_UPDATED,
+ EMBED_SESSION_GENERATED,
+ EMBED_VIEWED,
EXTERNAL_BANK_ACCOUNT_CREATED,
EXTERNAL_BANK_ACCOUNT_UPDATED,
EXTERNAL_PAYMENT_CREATED,
@@ -756,6 +764,8 @@ private constructor(
DISPUTE_TRANSACTION_CREATED -> Value.DISPUTE_TRANSACTION_CREATED
DISPUTE_TRANSACTION_UPDATED -> Value.DISPUTE_TRANSACTION_UPDATED
DISPUTE_UPDATED -> Value.DISPUTE_UPDATED
+ EMBED_SESSION_GENERATED -> Value.EMBED_SESSION_GENERATED
+ EMBED_VIEWED -> Value.EMBED_VIEWED
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
@@ -835,6 +845,8 @@ private constructor(
DISPUTE_TRANSACTION_CREATED -> Known.DISPUTE_TRANSACTION_CREATED
DISPUTE_TRANSACTION_UPDATED -> Known.DISPUTE_TRANSACTION_UPDATED
DISPUTE_UPDATED -> Known.DISPUTE_UPDATED
+ EMBED_SESSION_GENERATED -> Known.EMBED_SESSION_GENERATED
+ EMBED_VIEWED -> Known.EMBED_VIEWED
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
diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/EventSubscriptionUpdateParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/EventSubscriptionUpdateParams.kt
index cef49defd..eedd0e0bd 100644
--- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/EventSubscriptionUpdateParams.kt
+++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/EventSubscriptionUpdateParams.kt
@@ -677,7 +677,7 @@ private constructor(
/**
* The type of event that occurred. Possible values:
* - account_holder_document.updated: Occurs when an account holder's document upload status has
- * been updated
+ * been updated.
* - account_holder.created: Occurs when a new account_holder is created.
* - account_holder.updated: Occurs when an account_holder is updated.
* - account_holder.verification: Occurs when an asynchronous account_holder's verification is
@@ -727,10 +727,21 @@ private constructor(
*
* This event will be deprecated in the future. We recommend using `tokenization.updated`
* instead.
- * - dispute_evidence.upload_failed: Occurs when a dispute evidence upload fails.
- * - dispute_transaction.created: Occurs when a new dispute transaction is created
- * - dispute_transaction.updated: Occurs when a dispute transaction is updated
- * - dispute.updated: Occurs when a dispute is updated.
+ * - dispute_evidence.upload_failed: Occurs when an evidence upload fails for a dispute filed
+ * through the Chargebacks API (`/v1/disputes`).
+ *
+ * This event is not emitted for Managed Disputes.
+ * - dispute_transaction.created: Occurs when a new dispute transaction is created for a Managed
+ * Disputes case.
+ * - dispute_transaction.updated: Occurs when a dispute transaction for a Managed Disputes case
+ * is updated.
+ * - dispute.updated: Occurs when a dispute filed through the Chargebacks API (`/v1/disputes`)
+ * is created or updated.
+ *
+ * This event is not emitted for Managed Disputes. Use `dispute_transaction.created` and
+ * `dispute_transaction.updated` instead.
+ * - embed.session_generated: Occurs when a card embed session is successfully generated.
+ * - embed.viewed: Occurs when a card detail is successfully revealed through an embed.
* - external_bank_account.created: Occurs when an external bank account is created.
* - external_bank_account.updated: Occurs when an external bank account is updated.
* - external_payment.created: Occurs when an external payment is created.
@@ -749,7 +760,7 @@ private constructor(
* - payment_transaction.created: Occurs when a payment transaction is created.
* - payment_transaction.updated: Occurs when a payment transaction is updated.
* - settlement_report.updated: Occurs when a settlement report is created or updated.
- * - statements.created: Occurs when a statement has been created
+ * - statements.created: Occurs when a statement has been created.
* - three_ds_authentication.challenge: The `three_ds_authentication.challenge` event. Upon
* receiving this request, the Card Program should issue its own challenge to the cardholder.
* After a cardholder challenge is successfully completed, the Card Program needs to respond
@@ -862,6 +873,10 @@ private constructor(
@JvmField val DISPUTE_UPDATED = of("dispute.updated")
+ @JvmField val EMBED_SESSION_GENERATED = of("embed.session_generated")
+
+ @JvmField val EMBED_VIEWED = of("embed.viewed")
+
@JvmField val EXTERNAL_BANK_ACCOUNT_CREATED = of("external_bank_account.created")
@JvmField val EXTERNAL_BANK_ACCOUNT_UPDATED = of("external_bank_account.updated")
@@ -958,6 +973,8 @@ private constructor(
DISPUTE_TRANSACTION_CREATED,
DISPUTE_TRANSACTION_UPDATED,
DISPUTE_UPDATED,
+ EMBED_SESSION_GENERATED,
+ EMBED_VIEWED,
EXTERNAL_BANK_ACCOUNT_CREATED,
EXTERNAL_BANK_ACCOUNT_UPDATED,
EXTERNAL_PAYMENT_CREATED,
@@ -1029,6 +1046,8 @@ private constructor(
DISPUTE_TRANSACTION_CREATED,
DISPUTE_TRANSACTION_UPDATED,
DISPUTE_UPDATED,
+ EMBED_SESSION_GENERATED,
+ EMBED_VIEWED,
EXTERNAL_BANK_ACCOUNT_CREATED,
EXTERNAL_BANK_ACCOUNT_UPDATED,
EXTERNAL_PAYMENT_CREATED,
@@ -1107,6 +1126,8 @@ private constructor(
DISPUTE_TRANSACTION_CREATED -> Value.DISPUTE_TRANSACTION_CREATED
DISPUTE_TRANSACTION_UPDATED -> Value.DISPUTE_TRANSACTION_UPDATED
DISPUTE_UPDATED -> Value.DISPUTE_UPDATED
+ EMBED_SESSION_GENERATED -> Value.EMBED_SESSION_GENERATED
+ EMBED_VIEWED -> Value.EMBED_VIEWED
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
@@ -1186,6 +1207,8 @@ private constructor(
DISPUTE_TRANSACTION_CREATED -> Known.DISPUTE_TRANSACTION_CREATED
DISPUTE_TRANSACTION_UPDATED -> Known.DISPUTE_TRANSACTION_UPDATED
DISPUTE_UPDATED -> Known.DISPUTE_UPDATED
+ EMBED_SESSION_GENERATED -> Known.EMBED_SESSION_GENERATED
+ EMBED_VIEWED -> Known.EMBED_VIEWED
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
diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalPaymentListParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalPaymentListParams.kt
index 6bed53d3c..c4a356486 100644
--- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalPaymentListParams.kt
+++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalPaymentListParams.kt
@@ -40,7 +40,7 @@ private constructor(
fun businessAccountToken(): Optional = Optional.ofNullable(businessAccountToken)
- /** External Payment category to be returned. */
+ /** The external rail the funds moved on */
fun category(): Optional = Optional.ofNullable(category)
/**
@@ -146,7 +146,7 @@ private constructor(
fun businessAccountToken(businessAccountToken: Optional) =
businessAccountToken(businessAccountToken.getOrNull())
- /** External Payment category to be returned. */
+ /** The external rail the funds moved on */
fun category(category: ExternalPaymentCategory?) = apply { this.category = category }
/** Alias for calling [Builder.category] with `category.orElse(null)`. */
@@ -359,7 +359,7 @@ private constructor(
}
.build()
- /** External Payment category to be returned. */
+ /** The external rail the funds moved on */
class ExternalPaymentCategory
@JsonCreator
private constructor(private val value: JsonField) : Enum {
diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/ParsedWebhookEvent.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/ParsedWebhookEvent.kt
index b052da680..3bdbe366e 100644
--- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/ParsedWebhookEvent.kt
+++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/ParsedWebhookEvent.kt
@@ -86,6 +86,8 @@ private constructor(
null,
private val disputeUpdated: DisputeUpdatedWebhookEvent? = null,
private val disputeEvidenceUploadFailed: DisputeEvidenceUploadFailedWebhookEvent? = null,
+ private val embedSessionGenerated: EmbedSessionGeneratedWebhookEvent? = null,
+ private val embedViewed: EmbedViewedWebhookEvent? = null,
private val externalBankAccountCreated: ExternalBankAccountCreatedWebhookEvent? = null,
private val externalBankAccountUpdated: ExternalBankAccountUpdatedWebhookEvent? = null,
private val externalPaymentCreated: ExternalPaymentCreatedWebhookEvent? = null,
@@ -235,6 +237,11 @@ private constructor(
fun disputeEvidenceUploadFailed(): Optional =
Optional.ofNullable(disputeEvidenceUploadFailed)
+ fun embedSessionGenerated(): Optional =
+ Optional.ofNullable(embedSessionGenerated)
+
+ fun embedViewed(): Optional = Optional.ofNullable(embedViewed)
+
fun externalBankAccountCreated(): Optional =
Optional.ofNullable(externalBankAccountCreated)
@@ -406,6 +413,10 @@ private constructor(
fun isDisputeEvidenceUploadFailed(): Boolean = disputeEvidenceUploadFailed != null
+ fun isEmbedSessionGenerated(): Boolean = embedSessionGenerated != null
+
+ fun isEmbedViewed(): Boolean = embedViewed != null
+
fun isExternalBankAccountCreated(): Boolean = externalBankAccountCreated != null
fun isExternalBankAccountUpdated(): Boolean = externalBankAccountUpdated != null
@@ -582,6 +593,11 @@ private constructor(
fun asDisputeEvidenceUploadFailed(): DisputeEvidenceUploadFailedWebhookEvent =
disputeEvidenceUploadFailed.getOrThrow("disputeEvidenceUploadFailed")
+ fun asEmbedSessionGenerated(): EmbedSessionGeneratedWebhookEvent =
+ embedSessionGenerated.getOrThrow("embedSessionGenerated")
+
+ fun asEmbedViewed(): EmbedViewedWebhookEvent = embedViewed.getOrThrow("embedViewed")
+
fun asExternalBankAccountCreated(): ExternalBankAccountCreatedWebhookEvent =
externalBankAccountCreated.getOrThrow("externalBankAccountCreated")
@@ -778,6 +794,9 @@ private constructor(
disputeUpdated != null -> visitor.visitDisputeUpdated(disputeUpdated)
disputeEvidenceUploadFailed != null ->
visitor.visitDisputeEvidenceUploadFailed(disputeEvidenceUploadFailed)
+ embedSessionGenerated != null ->
+ visitor.visitEmbedSessionGenerated(embedSessionGenerated)
+ embedViewed != null -> visitor.visitEmbedViewed(embedViewed)
externalBankAccountCreated != null ->
visitor.visitExternalBankAccountCreated(externalBankAccountCreated)
externalBankAccountUpdated != null ->
@@ -1040,6 +1059,16 @@ private constructor(
disputeEvidenceUploadFailed.validate()
}
+ override fun visitEmbedSessionGenerated(
+ embedSessionGenerated: EmbedSessionGeneratedWebhookEvent
+ ) {
+ embedSessionGenerated.validate()
+ }
+
+ override fun visitEmbedViewed(embedViewed: EmbedViewedWebhookEvent) {
+ embedViewed.validate()
+ }
+
override fun visitExternalBankAccountCreated(
externalBankAccountCreated: ExternalBankAccountCreatedWebhookEvent
) {
@@ -1367,6 +1396,13 @@ private constructor(
disputeEvidenceUploadFailed: DisputeEvidenceUploadFailedWebhookEvent
) = disputeEvidenceUploadFailed.validity()
+ override fun visitEmbedSessionGenerated(
+ embedSessionGenerated: EmbedSessionGeneratedWebhookEvent
+ ) = embedSessionGenerated.validity()
+
+ override fun visitEmbedViewed(embedViewed: EmbedViewedWebhookEvent) =
+ embedViewed.validity()
+
override fun visitExternalBankAccountCreated(
externalBankAccountCreated: ExternalBankAccountCreatedWebhookEvent
) = externalBankAccountCreated.validity()
@@ -1535,6 +1571,8 @@ private constructor(
digitalWalletTokenizationUpdated == other.digitalWalletTokenizationUpdated &&
disputeUpdated == other.disputeUpdated &&
disputeEvidenceUploadFailed == other.disputeEvidenceUploadFailed &&
+ embedSessionGenerated == other.embedSessionGenerated &&
+ embedViewed == other.embedViewed &&
externalBankAccountCreated == other.externalBankAccountCreated &&
externalBankAccountUpdated == other.externalBankAccountUpdated &&
externalPaymentCreated == other.externalPaymentCreated &&
@@ -1605,6 +1643,8 @@ private constructor(
digitalWalletTokenizationUpdated,
disputeUpdated,
disputeEvidenceUploadFailed,
+ embedSessionGenerated,
+ embedViewed,
externalBankAccountCreated,
externalBankAccountUpdated,
externalPaymentCreated,
@@ -1694,6 +1734,9 @@ private constructor(
disputeUpdated != null -> "ParsedWebhookEvent{disputeUpdated=$disputeUpdated}"
disputeEvidenceUploadFailed != null ->
"ParsedWebhookEvent{disputeEvidenceUploadFailed=$disputeEvidenceUploadFailed}"
+ embedSessionGenerated != null ->
+ "ParsedWebhookEvent{embedSessionGenerated=$embedSessionGenerated}"
+ embedViewed != null -> "ParsedWebhookEvent{embedViewed=$embedViewed}"
externalBankAccountCreated != null ->
"ParsedWebhookEvent{externalBankAccountCreated=$externalBankAccountCreated}"
externalBankAccountUpdated != null ->
@@ -1946,6 +1989,14 @@ private constructor(
disputeEvidenceUploadFailed: DisputeEvidenceUploadFailedWebhookEvent
) = ParsedWebhookEvent(disputeEvidenceUploadFailed = disputeEvidenceUploadFailed)
+ @JvmStatic
+ fun ofEmbedSessionGenerated(embedSessionGenerated: EmbedSessionGeneratedWebhookEvent) =
+ ParsedWebhookEvent(embedSessionGenerated = embedSessionGenerated)
+
+ @JvmStatic
+ fun ofEmbedViewed(embedViewed: EmbedViewedWebhookEvent) =
+ ParsedWebhookEvent(embedViewed = embedViewed)
+
@JvmStatic
fun ofExternalBankAccountCreated(
externalBankAccountCreated: ExternalBankAccountCreatedWebhookEvent
@@ -2233,6 +2284,10 @@ private constructor(
disputeEvidenceUploadFailed: DisputeEvidenceUploadFailedWebhookEvent
): T
+ fun visitEmbedSessionGenerated(embedSessionGenerated: EmbedSessionGeneratedWebhookEvent): T
+
+ fun visitEmbedViewed(embedViewed: EmbedViewedWebhookEvent): T
+
fun visitExternalBankAccountCreated(
externalBankAccountCreated: ExternalBankAccountCreatedWebhookEvent
): T
@@ -2571,6 +2626,11 @@ private constructor(
?.let {
ParsedWebhookEvent(disputeEvidenceUploadFailed = it, _json = json)
},
+ tryDeserialize(node, jacksonTypeRef())
+ ?.let { ParsedWebhookEvent(embedSessionGenerated = it, _json = json) },
+ tryDeserialize(node, jacksonTypeRef())?.let {
+ ParsedWebhookEvent(embedViewed = it, _json = json)
+ },
tryDeserialize(
node,
jacksonTypeRef(),
@@ -2824,6 +2884,9 @@ private constructor(
value.disputeUpdated != null -> generator.writeObject(value.disputeUpdated)
value.disputeEvidenceUploadFailed != null ->
generator.writeObject(value.disputeEvidenceUploadFailed)
+ value.embedSessionGenerated != null ->
+ generator.writeObject(value.embedSessionGenerated)
+ value.embedViewed != null -> generator.writeObject(value.embedViewed)
value.externalBankAccountCreated != null ->
generator.writeObject(value.externalBankAccountCreated)
value.externalBankAccountUpdated != null ->
diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/TransactionSimulateClearingParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/TransactionSimulateClearingParams.kt
index c55973a8d..ba0dac9d5 100644
--- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/TransactionSimulateClearingParams.kt
+++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/TransactionSimulateClearingParams.kt
@@ -23,8 +23,9 @@ import java.util.Optional
* Clears an existing authorization, either debit or credit. After this event, the transaction
* transitions from `PENDING` to `SETTLED` status.
*
- * If `amount` is not set, the full amount of the transaction will be cleared. Transactions that
- * have already cleared, either partially or fully, cannot be cleared again using this endpoint.
+ * If `amount` is not set, the full amount of the transaction will be cleared. This endpoint may be
+ * called multiple times against the same authorization to simulate a multiple-completion scenario,
+ * with each call creating a separate clearing event.
*/
class TransactionSimulateClearingParams
private constructor(
@@ -48,8 +49,9 @@ private constructor(
* result in a -100 amount in the transaction, if the original authorization is a credit
* authorization.
*
- * If `amount` is not set, the full amount of the transaction will be cleared. Transactions that
- * have already cleared, either partially or fully, cannot be cleared again using this endpoint.
+ * If `amount` is not set, the full amount of the transaction will be cleared. This endpoint may
+ * be called multiple times against the same authorization to simulate a multiple-completion
+ * scenario, with each call creating a separate clearing event.
*
* @throws LithicInvalidDataException if the JSON field has an unexpected type (e.g. if the
* server responded with an unexpected value).
@@ -138,9 +140,9 @@ private constructor(
* field will result in a -100 amount in the transaction, if the original authorization is a
* credit authorization.
*
- * If `amount` is not set, the full amount of the transaction will be cleared. Transactions
- * that have already cleared, either partially or fully, cannot be cleared again using this
- * endpoint.
+ * If `amount` is not set, the full amount of the transaction will be cleared. This endpoint
+ * may be called multiple times against the same authorization to simulate a
+ * multiple-completion scenario, with each call creating a separate clearing event.
*/
fun amount(amount: Long) = apply { body.amount(amount) }
@@ -324,9 +326,9 @@ private constructor(
* field will result in a -100 amount in the transaction, if the original authorization is a
* credit authorization.
*
- * If `amount` is not set, the full amount of the transaction will be cleared. Transactions
- * that have already cleared, either partially or fully, cannot be cleared again using this
- * endpoint.
+ * If `amount` is not set, the full amount of the transaction will be cleared. This endpoint
+ * may be called multiple times against the same authorization to simulate a
+ * multiple-completion scenario, with each call creating a separate clearing event.
*
* @throws LithicInvalidDataException if the JSON field has an unexpected type (e.g. if the
* server responded with an unexpected value).
@@ -405,9 +407,9 @@ private constructor(
* this field will result in a -100 amount in the transaction, if the original
* authorization is a credit authorization.
*
- * If `amount` is not set, the full amount of the transaction will be cleared.
- * Transactions that have already cleared, either partially or fully, cannot be cleared
- * again using this endpoint.
+ * If `amount` is not set, the full amount of the transaction will be cleared. This
+ * endpoint may be called multiple times against the same authorization to simulate a
+ * multiple-completion scenario, with each call creating a separate clearing event.
*/
fun amount(amount: Long) = amount(JsonField.of(amount))
diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/services/async/CardServiceAsync.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/services/async/CardServiceAsync.kt
index bc5a87598..9ebf1fb98 100644
--- a/lithic-java-core/src/main/kotlin/com/lithic/api/services/async/CardServiceAsync.kt
+++ b/lithic-java-core/src/main/kotlin/com/lithic/api/services/async/CardServiceAsync.kt
@@ -181,6 +181,9 @@ interface CardServiceAsync {
): CompletableFuture
/**
+ * **Deprecated.** Use the modern embedded card flow instead: create a session with `POST
+ * /v1/cards/{card_token}/embed` and render it via `GET /v1/embed`.
+ *
* Handling full card PANs and CVV codes requires that you comply with the Payment Card Industry
* Data Security Standards (PCI DSS). Some clients choose to reduce their compliance obligations
* by leveraging our embedded card UI solution documented below.
@@ -203,10 +206,12 @@ interface CardServiceAsync {
* iframe) on the server or make an ajax call from your front end code, but **do not ever embed
* your API key into front end code, as doing so introduces a serious security vulnerability**.
*/
+ @Deprecated("deprecated")
fun embed(params: CardEmbedParams): CompletableFuture =
embed(params, RequestOptions.none())
/** @see embed */
+ @Deprecated("deprecated")
fun embed(
params: CardEmbedParams,
requestOptions: RequestOptions = RequestOptions.none(),
@@ -639,10 +644,12 @@ interface CardServiceAsync {
* Returns a raw HTTP response for `get /v1/embed/card`, but is otherwise the same as
* [CardServiceAsync.embed].
*/
+ @Deprecated("deprecated")
fun embed(params: CardEmbedParams): CompletableFuture> =
embed(params, RequestOptions.none())
/** @see embed */
+ @Deprecated("deprecated")
fun embed(
params: CardEmbedParams,
requestOptions: RequestOptions = RequestOptions.none(),
diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/services/async/CardServiceAsyncImpl.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/services/async/CardServiceAsyncImpl.kt
index 5aedc961a..784a71378 100644
--- a/lithic-java-core/src/main/kotlin/com/lithic/api/services/async/CardServiceAsyncImpl.kt
+++ b/lithic-java-core/src/main/kotlin/com/lithic/api/services/async/CardServiceAsyncImpl.kt
@@ -108,6 +108,7 @@ class CardServiceAsyncImpl internal constructor(private val clientOptions: Clien
// post /v1/cards/{card_token}/convert_physical
withRawResponse().convertPhysical(params, requestOptions).thenApply { it.parse() }
+ @Deprecated("deprecated")
override fun embed(
params: CardEmbedParams,
requestOptions: RequestOptions,
@@ -360,6 +361,7 @@ class CardServiceAsyncImpl internal constructor(private val clientOptions: Clien
private val embedHandler: Handler = stringHandler()
+ @Deprecated("deprecated")
override fun embed(
params: CardEmbedParams,
requestOptions: RequestOptions,
diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/services/async/TransactionServiceAsync.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/services/async/TransactionServiceAsync.kt
index 334a63c3f..923a3b83c 100644
--- a/lithic-java-core/src/main/kotlin/com/lithic/api/services/async/TransactionServiceAsync.kt
+++ b/lithic-java-core/src/main/kotlin/com/lithic/api/services/async/TransactionServiceAsync.kt
@@ -217,8 +217,9 @@ interface TransactionServiceAsync {
* Clears an existing authorization, either debit or credit. After this event, the transaction
* transitions from `PENDING` to `SETTLED` status.
*
- * If `amount` is not set, the full amount of the transaction will be cleared. Transactions that
- * have already cleared, either partially or fully, cannot be cleared again using this endpoint.
+ * If `amount` is not set, the full amount of the transaction will be cleared. This endpoint may
+ * be called multiple times against the same authorization to simulate a multiple-completion
+ * scenario, with each call creating a separate clearing event.
*/
fun simulateClearing(
params: TransactionSimulateClearingParams
diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/services/blocking/CardService.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/services/blocking/CardService.kt
index 4217f18e6..07f1b1d3c 100644
--- a/lithic-java-core/src/main/kotlin/com/lithic/api/services/blocking/CardService.kt
+++ b/lithic-java-core/src/main/kotlin/com/lithic/api/services/blocking/CardService.kt
@@ -167,6 +167,9 @@ interface CardService {
): Card
/**
+ * **Deprecated.** Use the modern embedded card flow instead: create a session with `POST
+ * /v1/cards/{card_token}/embed` and render it via `GET /v1/embed`.
+ *
* Handling full card PANs and CVV codes requires that you comply with the Payment Card Industry
* Data Security Standards (PCI DSS). Some clients choose to reduce their compliance obligations
* by leveraging our embedded card UI solution documented below.
@@ -189,9 +192,11 @@ interface CardService {
* iframe) on the server or make an ajax call from your front end code, but **do not ever embed
* your API key into front end code, as doing so introduces a serious security vulnerability**.
*/
+ @Deprecated("deprecated")
fun embed(params: CardEmbedParams): String = embed(params, RequestOptions.none())
/** @see embed */
+ @Deprecated("deprecated")
fun embed(
params: CardEmbedParams,
requestOptions: RequestOptions = RequestOptions.none(),
@@ -603,11 +608,13 @@ interface CardService {
* Returns a raw HTTP response for `get /v1/embed/card`, but is otherwise the same as
* [CardService.embed].
*/
+ @Deprecated("deprecated")
@MustBeClosed
fun embed(params: CardEmbedParams): HttpResponseFor =
embed(params, RequestOptions.none())
/** @see embed */
+ @Deprecated("deprecated")
@MustBeClosed
fun embed(
params: CardEmbedParams,
diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/services/blocking/CardServiceImpl.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/services/blocking/CardServiceImpl.kt
index 761159675..0d0dbf489 100644
--- a/lithic-java-core/src/main/kotlin/com/lithic/api/services/blocking/CardServiceImpl.kt
+++ b/lithic-java-core/src/main/kotlin/com/lithic/api/services/blocking/CardServiceImpl.kt
@@ -94,6 +94,7 @@ class CardServiceImpl internal constructor(private val clientOptions: ClientOpti
// post /v1/cards/{card_token}/convert_physical
withRawResponse().convertPhysical(params, requestOptions).parse()
+ @Deprecated("deprecated")
override fun embed(params: CardEmbedParams, requestOptions: RequestOptions): String =
// get /v1/embed/card
withRawResponse().embed(params, requestOptions).parse()
@@ -317,6 +318,7 @@ class CardServiceImpl internal constructor(private val clientOptions: ClientOpti
private val embedHandler: Handler = stringHandler()
+ @Deprecated("deprecated")
override fun embed(
params: CardEmbedParams,
requestOptions: RequestOptions,
diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/services/blocking/TransactionService.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/services/blocking/TransactionService.kt
index 69b54af87..2a8e7c3bb 100644
--- a/lithic-java-core/src/main/kotlin/com/lithic/api/services/blocking/TransactionService.kt
+++ b/lithic-java-core/src/main/kotlin/com/lithic/api/services/blocking/TransactionService.kt
@@ -206,8 +206,9 @@ interface TransactionService {
* Clears an existing authorization, either debit or credit. After this event, the transaction
* transitions from `PENDING` to `SETTLED` status.
*
- * If `amount` is not set, the full amount of the transaction will be cleared. Transactions that
- * have already cleared, either partially or fully, cannot be cleared again using this endpoint.
+ * If `amount` is not set, the full amount of the transaction will be cleared. This endpoint may
+ * be called multiple times against the same authorization to simulate a multiple-completion
+ * scenario, with each call creating a separate clearing event.
*/
fun simulateClearing(
params: TransactionSimulateClearingParams
diff --git a/lithic-java-core/src/test/kotlin/com/lithic/api/models/EmbedSessionGeneratedWebhookEventTest.kt b/lithic-java-core/src/test/kotlin/com/lithic/api/models/EmbedSessionGeneratedWebhookEventTest.kt
new file mode 100644
index 000000000..c6e8cc491
--- /dev/null
+++ b/lithic-java-core/src/test/kotlin/com/lithic/api/models/EmbedSessionGeneratedWebhookEventTest.kt
@@ -0,0 +1,72 @@
+// File generated from our OpenAPI spec by Stainless.
+
+package com.lithic.api.models
+
+import com.fasterxml.jackson.module.kotlin.jacksonTypeRef
+import com.lithic.api.core.jsonMapper
+import org.assertj.core.api.Assertions.assertThat
+import org.junit.jupiter.api.Test
+
+internal class EmbedSessionGeneratedWebhookEventTest {
+
+ @Test
+ fun create() {
+ val embedSessionGeneratedWebhookEvent =
+ EmbedSessionGeneratedWebhookEvent.builder()
+ .accountToken("9a352526-4e69-469a-80b8-e22c71ba3cf0")
+ .cardToken("4df9a19c-9e1e-40d1-b27a-05e01152ee07")
+ .deviceDetails(
+ EmbedSessionGeneratedWebhookEvent.EmbedDeviceDetails.builder()
+ .ipAddress("192.0.2.1")
+ .build()
+ )
+ .eventType(EmbedSessionGeneratedWebhookEvent.EventType.EMBED_SESSION_GENERATED)
+ .sessionId("4273ff06-3ce4-4092-8a1f-0340e33b6375")
+ .sessionType(EmbedSessionGeneratedWebhookEvent.SessionType.CARD_EMBED)
+ .build()
+
+ assertThat(embedSessionGeneratedWebhookEvent.accountToken())
+ .isEqualTo("9a352526-4e69-469a-80b8-e22c71ba3cf0")
+ assertThat(embedSessionGeneratedWebhookEvent.cardToken())
+ .isEqualTo("4df9a19c-9e1e-40d1-b27a-05e01152ee07")
+ assertThat(embedSessionGeneratedWebhookEvent.deviceDetails())
+ .isEqualTo(
+ EmbedSessionGeneratedWebhookEvent.EmbedDeviceDetails.builder()
+ .ipAddress("192.0.2.1")
+ .build()
+ )
+ assertThat(embedSessionGeneratedWebhookEvent.eventType())
+ .isEqualTo(EmbedSessionGeneratedWebhookEvent.EventType.EMBED_SESSION_GENERATED)
+ assertThat(embedSessionGeneratedWebhookEvent.sessionId())
+ .isEqualTo("4273ff06-3ce4-4092-8a1f-0340e33b6375")
+ assertThat(embedSessionGeneratedWebhookEvent.sessionType())
+ .isEqualTo(EmbedSessionGeneratedWebhookEvent.SessionType.CARD_EMBED)
+ }
+
+ @Test
+ fun roundtrip() {
+ val jsonMapper = jsonMapper()
+ val embedSessionGeneratedWebhookEvent =
+ EmbedSessionGeneratedWebhookEvent.builder()
+ .accountToken("9a352526-4e69-469a-80b8-e22c71ba3cf0")
+ .cardToken("4df9a19c-9e1e-40d1-b27a-05e01152ee07")
+ .deviceDetails(
+ EmbedSessionGeneratedWebhookEvent.EmbedDeviceDetails.builder()
+ .ipAddress("192.0.2.1")
+ .build()
+ )
+ .eventType(EmbedSessionGeneratedWebhookEvent.EventType.EMBED_SESSION_GENERATED)
+ .sessionId("4273ff06-3ce4-4092-8a1f-0340e33b6375")
+ .sessionType(EmbedSessionGeneratedWebhookEvent.SessionType.CARD_EMBED)
+ .build()
+
+ val roundtrippedEmbedSessionGeneratedWebhookEvent =
+ jsonMapper.readValue(
+ jsonMapper.writeValueAsString(embedSessionGeneratedWebhookEvent),
+ jacksonTypeRef(),
+ )
+
+ assertThat(roundtrippedEmbedSessionGeneratedWebhookEvent)
+ .isEqualTo(embedSessionGeneratedWebhookEvent)
+ }
+}
diff --git a/lithic-java-core/src/test/kotlin/com/lithic/api/models/EmbedViewedWebhookEventTest.kt b/lithic-java-core/src/test/kotlin/com/lithic/api/models/EmbedViewedWebhookEventTest.kt
new file mode 100644
index 000000000..577edb1d7
--- /dev/null
+++ b/lithic-java-core/src/test/kotlin/com/lithic/api/models/EmbedViewedWebhookEventTest.kt
@@ -0,0 +1,69 @@
+// File generated from our OpenAPI spec by Stainless.
+
+package com.lithic.api.models
+
+import com.fasterxml.jackson.module.kotlin.jacksonTypeRef
+import com.lithic.api.core.jsonMapper
+import org.assertj.core.api.Assertions.assertThat
+import org.junit.jupiter.api.Test
+
+internal class EmbedViewedWebhookEventTest {
+
+ @Test
+ fun create() {
+ val embedViewedWebhookEvent =
+ EmbedViewedWebhookEvent.builder()
+ .accountToken("9a352526-4e69-469a-80b8-e22c71ba3cf0")
+ .cardToken("4df9a19c-9e1e-40d1-b27a-05e01152ee07")
+ .deviceDetails(
+ EmbedViewedWebhookEvent.EmbedDeviceDetails.builder()
+ .ipAddress("192.0.2.1")
+ .build()
+ )
+ .embedType(EmbedViewedWebhookEvent.EmbedType.PAN)
+ .eventType(EmbedViewedWebhookEvent.EventType.EMBED_VIEWED)
+ .sessionId("4273ff06-3ce4-4092-8a1f-0340e33b6375")
+ .build()
+
+ assertThat(embedViewedWebhookEvent.accountToken())
+ .isEqualTo("9a352526-4e69-469a-80b8-e22c71ba3cf0")
+ assertThat(embedViewedWebhookEvent.cardToken())
+ .isEqualTo("4df9a19c-9e1e-40d1-b27a-05e01152ee07")
+ assertThat(embedViewedWebhookEvent.deviceDetails())
+ .isEqualTo(
+ EmbedViewedWebhookEvent.EmbedDeviceDetails.builder().ipAddress("192.0.2.1").build()
+ )
+ assertThat(embedViewedWebhookEvent.embedType())
+ .isEqualTo(EmbedViewedWebhookEvent.EmbedType.PAN)
+ assertThat(embedViewedWebhookEvent.eventType())
+ .isEqualTo(EmbedViewedWebhookEvent.EventType.EMBED_VIEWED)
+ assertThat(embedViewedWebhookEvent.sessionId())
+ .isEqualTo("4273ff06-3ce4-4092-8a1f-0340e33b6375")
+ }
+
+ @Test
+ fun roundtrip() {
+ val jsonMapper = jsonMapper()
+ val embedViewedWebhookEvent =
+ EmbedViewedWebhookEvent.builder()
+ .accountToken("9a352526-4e69-469a-80b8-e22c71ba3cf0")
+ .cardToken("4df9a19c-9e1e-40d1-b27a-05e01152ee07")
+ .deviceDetails(
+ EmbedViewedWebhookEvent.EmbedDeviceDetails.builder()
+ .ipAddress("192.0.2.1")
+ .build()
+ )
+ .embedType(EmbedViewedWebhookEvent.EmbedType.PAN)
+ .eventType(EmbedViewedWebhookEvent.EventType.EMBED_VIEWED)
+ .sessionId("4273ff06-3ce4-4092-8a1f-0340e33b6375")
+ .build()
+
+ val roundtrippedEmbedViewedWebhookEvent =
+ jsonMapper.readValue(
+ jsonMapper.writeValueAsString(embedViewedWebhookEvent),
+ jacksonTypeRef(),
+ )
+
+ assertThat(roundtrippedEmbedViewedWebhookEvent).isEqualTo(embedViewedWebhookEvent)
+ }
+}
diff --git a/lithic-java-core/src/test/kotlin/com/lithic/api/models/ParsedWebhookEventTest.kt b/lithic-java-core/src/test/kotlin/com/lithic/api/models/ParsedWebhookEventTest.kt
index 4a4e76790..da67e6c80 100644
--- a/lithic-java-core/src/test/kotlin/com/lithic/api/models/ParsedWebhookEventTest.kt
+++ b/lithic-java-core/src/test/kotlin/com/lithic/api/models/ParsedWebhookEventTest.kt
@@ -73,6 +73,8 @@ internal class ParsedWebhookEventTest {
assertThat(parsedWebhookEvent.digitalWalletTokenizationUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeEvidenceUploadFailed()).isEmpty
+ assertThat(parsedWebhookEvent.embedSessionGenerated()).isEmpty
+ assertThat(parsedWebhookEvent.embedViewed()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountCreated()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountUpdated()).isEmpty
assertThat(parsedWebhookEvent.externalPaymentCreated()).isEmpty
@@ -251,6 +253,8 @@ internal class ParsedWebhookEventTest {
assertThat(parsedWebhookEvent.digitalWalletTokenizationUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeEvidenceUploadFailed()).isEmpty
+ assertThat(parsedWebhookEvent.embedSessionGenerated()).isEmpty
+ assertThat(parsedWebhookEvent.embedViewed()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountCreated()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountUpdated()).isEmpty
assertThat(parsedWebhookEvent.externalPaymentCreated()).isEmpty
@@ -448,6 +452,8 @@ internal class ParsedWebhookEventTest {
assertThat(parsedWebhookEvent.digitalWalletTokenizationUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeEvidenceUploadFailed()).isEmpty
+ assertThat(parsedWebhookEvent.embedSessionGenerated()).isEmpty
+ assertThat(parsedWebhookEvent.embedViewed()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountCreated()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountUpdated()).isEmpty
assertThat(parsedWebhookEvent.externalPaymentCreated()).isEmpty
@@ -581,6 +587,8 @@ internal class ParsedWebhookEventTest {
assertThat(parsedWebhookEvent.digitalWalletTokenizationUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeEvidenceUploadFailed()).isEmpty
+ assertThat(parsedWebhookEvent.embedSessionGenerated()).isEmpty
+ assertThat(parsedWebhookEvent.embedViewed()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountCreated()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountUpdated()).isEmpty
assertThat(parsedWebhookEvent.externalPaymentCreated()).isEmpty
@@ -695,6 +703,8 @@ internal class ParsedWebhookEventTest {
assertThat(parsedWebhookEvent.digitalWalletTokenizationUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeEvidenceUploadFailed()).isEmpty
+ assertThat(parsedWebhookEvent.embedSessionGenerated()).isEmpty
+ assertThat(parsedWebhookEvent.embedViewed()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountCreated()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountUpdated()).isEmpty
assertThat(parsedWebhookEvent.externalPaymentCreated()).isEmpty
@@ -828,6 +838,8 @@ internal class ParsedWebhookEventTest {
assertThat(parsedWebhookEvent.digitalWalletTokenizationUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeEvidenceUploadFailed()).isEmpty
+ assertThat(parsedWebhookEvent.embedSessionGenerated()).isEmpty
+ assertThat(parsedWebhookEvent.embedViewed()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountCreated()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountUpdated()).isEmpty
assertThat(parsedWebhookEvent.externalPaymentCreated()).isEmpty
@@ -1162,6 +1174,8 @@ internal class ParsedWebhookEventTest {
assertThat(parsedWebhookEvent.digitalWalletTokenizationUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeEvidenceUploadFailed()).isEmpty
+ assertThat(parsedWebhookEvent.embedSessionGenerated()).isEmpty
+ assertThat(parsedWebhookEvent.embedViewed()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountCreated()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountUpdated()).isEmpty
assertThat(parsedWebhookEvent.externalPaymentCreated()).isEmpty
@@ -1711,6 +1725,8 @@ internal class ParsedWebhookEventTest {
assertThat(parsedWebhookEvent.digitalWalletTokenizationUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeEvidenceUploadFailed()).isEmpty
+ assertThat(parsedWebhookEvent.embedSessionGenerated()).isEmpty
+ assertThat(parsedWebhookEvent.embedViewed()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountCreated()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountUpdated()).isEmpty
assertThat(parsedWebhookEvent.externalPaymentCreated()).isEmpty
@@ -2069,6 +2085,8 @@ internal class ParsedWebhookEventTest {
assertThat(parsedWebhookEvent.digitalWalletTokenizationUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeEvidenceUploadFailed()).isEmpty
+ assertThat(parsedWebhookEvent.embedSessionGenerated()).isEmpty
+ assertThat(parsedWebhookEvent.embedViewed()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountCreated()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountUpdated()).isEmpty
assertThat(parsedWebhookEvent.externalPaymentCreated()).isEmpty
@@ -2225,6 +2243,8 @@ internal class ParsedWebhookEventTest {
assertThat(parsedWebhookEvent.digitalWalletTokenizationUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeEvidenceUploadFailed()).isEmpty
+ assertThat(parsedWebhookEvent.embedSessionGenerated()).isEmpty
+ assertThat(parsedWebhookEvent.embedViewed()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountCreated()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountUpdated()).isEmpty
assertThat(parsedWebhookEvent.externalPaymentCreated()).isEmpty
@@ -2389,6 +2409,8 @@ internal class ParsedWebhookEventTest {
assertThat(parsedWebhookEvent.digitalWalletTokenizationUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeEvidenceUploadFailed()).isEmpty
+ assertThat(parsedWebhookEvent.embedSessionGenerated()).isEmpty
+ assertThat(parsedWebhookEvent.embedViewed()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountCreated()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountUpdated()).isEmpty
assertThat(parsedWebhookEvent.externalPaymentCreated()).isEmpty
@@ -2549,6 +2571,8 @@ internal class ParsedWebhookEventTest {
assertThat(parsedWebhookEvent.digitalWalletTokenizationUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeEvidenceUploadFailed()).isEmpty
+ assertThat(parsedWebhookEvent.embedSessionGenerated()).isEmpty
+ assertThat(parsedWebhookEvent.embedViewed()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountCreated()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountUpdated()).isEmpty
assertThat(parsedWebhookEvent.externalPaymentCreated()).isEmpty
@@ -2743,6 +2767,8 @@ internal class ParsedWebhookEventTest {
assertThat(parsedWebhookEvent.digitalWalletTokenizationUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeEvidenceUploadFailed()).isEmpty
+ assertThat(parsedWebhookEvent.embedSessionGenerated()).isEmpty
+ assertThat(parsedWebhookEvent.embedViewed()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountCreated()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountUpdated()).isEmpty
assertThat(parsedWebhookEvent.externalPaymentCreated()).isEmpty
@@ -2889,6 +2915,8 @@ internal class ParsedWebhookEventTest {
assertThat(parsedWebhookEvent.digitalWalletTokenizationUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeEvidenceUploadFailed()).isEmpty
+ assertThat(parsedWebhookEvent.embedSessionGenerated()).isEmpty
+ assertThat(parsedWebhookEvent.embedViewed()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountCreated()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountUpdated()).isEmpty
assertThat(parsedWebhookEvent.externalPaymentCreated()).isEmpty
@@ -2988,6 +3016,8 @@ internal class ParsedWebhookEventTest {
assertThat(parsedWebhookEvent.digitalWalletTokenizationUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeEvidenceUploadFailed()).isEmpty
+ assertThat(parsedWebhookEvent.embedSessionGenerated()).isEmpty
+ assertThat(parsedWebhookEvent.embedViewed()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountCreated()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountUpdated()).isEmpty
assertThat(parsedWebhookEvent.externalPaymentCreated()).isEmpty
@@ -3090,6 +3120,8 @@ internal class ParsedWebhookEventTest {
assertThat(parsedWebhookEvent.digitalWalletTokenizationUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeEvidenceUploadFailed()).isEmpty
+ assertThat(parsedWebhookEvent.embedSessionGenerated()).isEmpty
+ assertThat(parsedWebhookEvent.embedViewed()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountCreated()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountUpdated()).isEmpty
assertThat(parsedWebhookEvent.externalPaymentCreated()).isEmpty
@@ -3192,6 +3224,8 @@ internal class ParsedWebhookEventTest {
assertThat(parsedWebhookEvent.digitalWalletTokenizationUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeEvidenceUploadFailed()).isEmpty
+ assertThat(parsedWebhookEvent.embedSessionGenerated()).isEmpty
+ assertThat(parsedWebhookEvent.embedViewed()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountCreated()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountUpdated()).isEmpty
assertThat(parsedWebhookEvent.externalPaymentCreated()).isEmpty
@@ -3295,6 +3329,8 @@ internal class ParsedWebhookEventTest {
assertThat(parsedWebhookEvent.digitalWalletTokenizationUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeEvidenceUploadFailed()).isEmpty
+ assertThat(parsedWebhookEvent.embedSessionGenerated()).isEmpty
+ assertThat(parsedWebhookEvent.embedViewed()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountCreated()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountUpdated()).isEmpty
assertThat(parsedWebhookEvent.externalPaymentCreated()).isEmpty
@@ -3400,6 +3436,8 @@ internal class ParsedWebhookEventTest {
assertThat(parsedWebhookEvent.digitalWalletTokenizationUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeEvidenceUploadFailed()).isEmpty
+ assertThat(parsedWebhookEvent.embedSessionGenerated()).isEmpty
+ assertThat(parsedWebhookEvent.embedViewed()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountCreated()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountUpdated()).isEmpty
assertThat(parsedWebhookEvent.externalPaymentCreated()).isEmpty
@@ -3727,6 +3765,8 @@ internal class ParsedWebhookEventTest {
assertThat(parsedWebhookEvent.digitalWalletTokenizationUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeEvidenceUploadFailed()).isEmpty
+ assertThat(parsedWebhookEvent.embedSessionGenerated()).isEmpty
+ assertThat(parsedWebhookEvent.embedViewed()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountCreated()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountUpdated()).isEmpty
assertThat(parsedWebhookEvent.externalPaymentCreated()).isEmpty
@@ -4123,6 +4163,8 @@ internal class ParsedWebhookEventTest {
assertThat(parsedWebhookEvent.digitalWalletTokenizationUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeEvidenceUploadFailed()).isEmpty
+ assertThat(parsedWebhookEvent.embedSessionGenerated()).isEmpty
+ assertThat(parsedWebhookEvent.embedViewed()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountCreated()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountUpdated()).isEmpty
assertThat(parsedWebhookEvent.externalPaymentCreated()).isEmpty
@@ -4334,6 +4376,8 @@ internal class ParsedWebhookEventTest {
assertThat(parsedWebhookEvent.digitalWalletTokenizationUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeEvidenceUploadFailed()).isEmpty
+ assertThat(parsedWebhookEvent.embedSessionGenerated()).isEmpty
+ assertThat(parsedWebhookEvent.embedViewed()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountCreated()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountUpdated()).isEmpty
assertThat(parsedWebhookEvent.externalPaymentCreated()).isEmpty
@@ -4504,6 +4548,8 @@ internal class ParsedWebhookEventTest {
assertThat(parsedWebhookEvent.digitalWalletTokenizationUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeEvidenceUploadFailed()).isEmpty
+ assertThat(parsedWebhookEvent.embedSessionGenerated()).isEmpty
+ assertThat(parsedWebhookEvent.embedViewed()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountCreated()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountUpdated()).isEmpty
assertThat(parsedWebhookEvent.externalPaymentCreated()).isEmpty
@@ -4636,6 +4682,8 @@ internal class ParsedWebhookEventTest {
assertThat(parsedWebhookEvent.digitalWalletTokenizationUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeEvidenceUploadFailed()).isEmpty
+ assertThat(parsedWebhookEvent.embedSessionGenerated()).isEmpty
+ assertThat(parsedWebhookEvent.embedViewed()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountCreated()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountUpdated()).isEmpty
assertThat(parsedWebhookEvent.externalPaymentCreated()).isEmpty
@@ -4767,6 +4815,8 @@ internal class ParsedWebhookEventTest {
assertThat(parsedWebhookEvent.digitalWalletTokenizationUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeEvidenceUploadFailed()).isEmpty
+ assertThat(parsedWebhookEvent.embedSessionGenerated()).isEmpty
+ assertThat(parsedWebhookEvent.embedViewed()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountCreated()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountUpdated()).isEmpty
assertThat(parsedWebhookEvent.externalPaymentCreated()).isEmpty
@@ -4899,6 +4949,8 @@ internal class ParsedWebhookEventTest {
assertThat(parsedWebhookEvent.digitalWalletTokenizationUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeEvidenceUploadFailed()).isEmpty
+ assertThat(parsedWebhookEvent.embedSessionGenerated()).isEmpty
+ assertThat(parsedWebhookEvent.embedViewed()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountCreated()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountUpdated()).isEmpty
assertThat(parsedWebhookEvent.externalPaymentCreated()).isEmpty
@@ -5031,6 +5083,8 @@ internal class ParsedWebhookEventTest {
assertThat(parsedWebhookEvent.digitalWalletTokenizationUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeEvidenceUploadFailed()).isEmpty
+ assertThat(parsedWebhookEvent.embedSessionGenerated()).isEmpty
+ assertThat(parsedWebhookEvent.embedViewed()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountCreated()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountUpdated()).isEmpty
assertThat(parsedWebhookEvent.externalPaymentCreated()).isEmpty
@@ -5230,6 +5284,8 @@ internal class ParsedWebhookEventTest {
assertThat(parsedWebhookEvent.digitalWalletTokenizationUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeEvidenceUploadFailed()).isEmpty
+ assertThat(parsedWebhookEvent.embedSessionGenerated()).isEmpty
+ assertThat(parsedWebhookEvent.embedViewed()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountCreated()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountUpdated()).isEmpty
assertThat(parsedWebhookEvent.externalPaymentCreated()).isEmpty
@@ -5444,6 +5500,8 @@ internal class ParsedWebhookEventTest {
assertThat(parsedWebhookEvent.digitalWalletTokenizationUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeEvidenceUploadFailed()).isEmpty
+ assertThat(parsedWebhookEvent.embedSessionGenerated()).isEmpty
+ assertThat(parsedWebhookEvent.embedViewed()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountCreated()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountUpdated()).isEmpty
assertThat(parsedWebhookEvent.externalPaymentCreated()).isEmpty
@@ -5601,6 +5659,8 @@ internal class ParsedWebhookEventTest {
assertThat(parsedWebhookEvent.digitalWalletTokenizationUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeEvidenceUploadFailed()).isEmpty
+ assertThat(parsedWebhookEvent.embedSessionGenerated()).isEmpty
+ assertThat(parsedWebhookEvent.embedViewed()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountCreated()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountUpdated()).isEmpty
assertThat(parsedWebhookEvent.externalPaymentCreated()).isEmpty
@@ -5741,6 +5801,8 @@ internal class ParsedWebhookEventTest {
assertThat(parsedWebhookEvent.digitalWalletTokenizationUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeEvidenceUploadFailed()).isEmpty
+ assertThat(parsedWebhookEvent.embedSessionGenerated()).isEmpty
+ assertThat(parsedWebhookEvent.embedViewed()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountCreated()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountUpdated()).isEmpty
assertThat(parsedWebhookEvent.externalPaymentCreated()).isEmpty
@@ -5907,6 +5969,8 @@ internal class ParsedWebhookEventTest {
.contains(digitalWalletTokenizationUpdated)
assertThat(parsedWebhookEvent.disputeUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeEvidenceUploadFailed()).isEmpty
+ assertThat(parsedWebhookEvent.embedSessionGenerated()).isEmpty
+ assertThat(parsedWebhookEvent.embedViewed()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountCreated()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountUpdated()).isEmpty
assertThat(parsedWebhookEvent.externalPaymentCreated()).isEmpty
@@ -6069,6 +6133,8 @@ internal class ParsedWebhookEventTest {
assertThat(parsedWebhookEvent.digitalWalletTokenizationUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeUpdated()).contains(disputeUpdated)
assertThat(parsedWebhookEvent.disputeEvidenceUploadFailed()).isEmpty
+ assertThat(parsedWebhookEvent.embedSessionGenerated()).isEmpty
+ assertThat(parsedWebhookEvent.embedViewed()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountCreated()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountUpdated()).isEmpty
assertThat(parsedWebhookEvent.externalPaymentCreated()).isEmpty
@@ -6194,6 +6260,8 @@ internal class ParsedWebhookEventTest {
assertThat(parsedWebhookEvent.disputeUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeEvidenceUploadFailed())
.contains(disputeEvidenceUploadFailed)
+ assertThat(parsedWebhookEvent.embedSessionGenerated()).isEmpty
+ assertThat(parsedWebhookEvent.embedViewed()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountCreated()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountUpdated()).isEmpty
assertThat(parsedWebhookEvent.externalPaymentCreated()).isEmpty
@@ -6255,6 +6323,238 @@ internal class ParsedWebhookEventTest {
assertThat(roundtrippedParsedWebhookEvent).isEqualTo(parsedWebhookEvent)
}
+ @Test
+ fun ofEmbedSessionGenerated() {
+ val embedSessionGenerated =
+ EmbedSessionGeneratedWebhookEvent.builder()
+ .accountToken("9a352526-4e69-469a-80b8-e22c71ba3cf0")
+ .cardToken("4df9a19c-9e1e-40d1-b27a-05e01152ee07")
+ .deviceDetails(
+ EmbedSessionGeneratedWebhookEvent.EmbedDeviceDetails.builder()
+ .ipAddress("192.0.2.1")
+ .build()
+ )
+ .eventType(EmbedSessionGeneratedWebhookEvent.EventType.EMBED_SESSION_GENERATED)
+ .sessionId("4273ff06-3ce4-4092-8a1f-0340e33b6375")
+ .sessionType(EmbedSessionGeneratedWebhookEvent.SessionType.CARD_EMBED)
+ .build()
+
+ val parsedWebhookEvent = ParsedWebhookEvent.ofEmbedSessionGenerated(embedSessionGenerated)
+
+ assertThat(parsedWebhookEvent.accountHolderCreated()).isEmpty
+ assertThat(parsedWebhookEvent.kybPayload()).isEmpty
+ assertThat(parsedWebhookEvent.kycPayload()).isEmpty
+ assertThat(parsedWebhookEvent.legacyPayload()).isEmpty
+ assertThat(parsedWebhookEvent.accountHolderVerification()).isEmpty
+ assertThat(parsedWebhookEvent.accountHolderDocumentUpdated()).isEmpty
+ assertThat(parsedWebhookEvent.cardAuthorizationApprovalRequest()).isEmpty
+ assertThat(parsedWebhookEvent.cardAuthorizationChallenge()).isEmpty
+ assertThat(parsedWebhookEvent.cardAuthorizationChallengeResponse()).isEmpty
+ assertThat(parsedWebhookEvent.authRulesBacktestReportCreated()).isEmpty
+ assertThat(parsedWebhookEvent.balanceUpdated()).isEmpty
+ assertThat(parsedWebhookEvent.bookTransferTransactionCreated()).isEmpty
+ assertThat(parsedWebhookEvent.bookTransferTransactionUpdated()).isEmpty
+ assertThat(parsedWebhookEvent.cardCreated()).isEmpty
+ assertThat(parsedWebhookEvent.cardConverted()).isEmpty
+ assertThat(parsedWebhookEvent.cardRenewed()).isEmpty
+ assertThat(parsedWebhookEvent.cardReissued()).isEmpty
+ assertThat(parsedWebhookEvent.cardShipped()).isEmpty
+ assertThat(parsedWebhookEvent.cardUpdated()).isEmpty
+ assertThat(parsedWebhookEvent.cardTransactionUpdated()).isEmpty
+ assertThat(parsedWebhookEvent.cardTransactionEnhancedDataCreated()).isEmpty
+ assertThat(parsedWebhookEvent.cardTransactionEnhancedDataUpdated()).isEmpty
+ assertThat(parsedWebhookEvent.claimCreated()).isEmpty
+ assertThat(parsedWebhookEvent.claimUpdated()).isEmpty
+ assertThat(parsedWebhookEvent.claimDocumentUploaded()).isEmpty
+ assertThat(parsedWebhookEvent.claimDocumentAccepted()).isEmpty
+ assertThat(parsedWebhookEvent.claimDocumentRejected()).isEmpty
+ assertThat(parsedWebhookEvent.digitalWalletTokenizationApprovalRequest()).isEmpty
+ assertThat(parsedWebhookEvent.digitalWalletTokenizationResult()).isEmpty
+ assertThat(parsedWebhookEvent.digitalWalletTokenizationTwoFactorAuthenticationCode())
+ .isEmpty
+ assertThat(parsedWebhookEvent.digitalWalletTokenizationTwoFactorAuthenticationCodeSent())
+ .isEmpty
+ assertThat(parsedWebhookEvent.digitalWalletTokenizationUpdated()).isEmpty
+ assertThat(parsedWebhookEvent.disputeUpdated()).isEmpty
+ assertThat(parsedWebhookEvent.disputeEvidenceUploadFailed()).isEmpty
+ assertThat(parsedWebhookEvent.embedSessionGenerated()).contains(embedSessionGenerated)
+ assertThat(parsedWebhookEvent.embedViewed()).isEmpty
+ assertThat(parsedWebhookEvent.externalBankAccountCreated()).isEmpty
+ assertThat(parsedWebhookEvent.externalBankAccountUpdated()).isEmpty
+ assertThat(parsedWebhookEvent.externalPaymentCreated()).isEmpty
+ assertThat(parsedWebhookEvent.externalPaymentUpdated()).isEmpty
+ assertThat(parsedWebhookEvent.financialAccountCreated()).isEmpty
+ assertThat(parsedWebhookEvent.financialAccountUpdated()).isEmpty
+ assertThat(parsedWebhookEvent.fundingEventCreated()).isEmpty
+ assertThat(parsedWebhookEvent.loanTapeCreated()).isEmpty
+ assertThat(parsedWebhookEvent.loanTapeUpdated()).isEmpty
+ assertThat(parsedWebhookEvent.managementOperationCreated()).isEmpty
+ assertThat(parsedWebhookEvent.managementOperationUpdated()).isEmpty
+ assertThat(parsedWebhookEvent.internalTransactionCreated()).isEmpty
+ assertThat(parsedWebhookEvent.internalTransactionUpdated()).isEmpty
+ assertThat(parsedWebhookEvent.networkTotalCreated()).isEmpty
+ assertThat(parsedWebhookEvent.networkTotalUpdated()).isEmpty
+ assertThat(parsedWebhookEvent.paymentTransactionCreated()).isEmpty
+ assertThat(parsedWebhookEvent.paymentTransactionUpdated()).isEmpty
+ assertThat(parsedWebhookEvent.settlementReportUpdated()).isEmpty
+ assertThat(parsedWebhookEvent.statementsCreated()).isEmpty
+ assertThat(parsedWebhookEvent.threeDSAuthenticationCreated()).isEmpty
+ assertThat(parsedWebhookEvent.threeDSAuthenticationUpdated()).isEmpty
+ assertThat(parsedWebhookEvent.threeDSAuthenticationChallenge()).isEmpty
+ assertThat(parsedWebhookEvent.tokenizationApprovalRequest()).isEmpty
+ assertThat(parsedWebhookEvent.tokenizationResult()).isEmpty
+ assertThat(parsedWebhookEvent.tokenizationTwoFactorAuthenticationCode()).isEmpty
+ assertThat(parsedWebhookEvent.tokenizationTwoFactorAuthenticationCodeSent()).isEmpty
+ assertThat(parsedWebhookEvent.tokenizationUpdated()).isEmpty
+ assertThat(parsedWebhookEvent.threeDSAuthenticationApprovalRequest()).isEmpty
+ assertThat(parsedWebhookEvent.disputeTransactionCreated()).isEmpty
+ assertThat(parsedWebhookEvent.disputeTransactionUpdated()).isEmpty
+ }
+
+ @Test
+ fun ofEmbedSessionGeneratedRoundtrip() {
+ val jsonMapper = jsonMapper()
+ val parsedWebhookEvent =
+ ParsedWebhookEvent.ofEmbedSessionGenerated(
+ EmbedSessionGeneratedWebhookEvent.builder()
+ .accountToken("9a352526-4e69-469a-80b8-e22c71ba3cf0")
+ .cardToken("4df9a19c-9e1e-40d1-b27a-05e01152ee07")
+ .deviceDetails(
+ EmbedSessionGeneratedWebhookEvent.EmbedDeviceDetails.builder()
+ .ipAddress("192.0.2.1")
+ .build()
+ )
+ .eventType(EmbedSessionGeneratedWebhookEvent.EventType.EMBED_SESSION_GENERATED)
+ .sessionId("4273ff06-3ce4-4092-8a1f-0340e33b6375")
+ .sessionType(EmbedSessionGeneratedWebhookEvent.SessionType.CARD_EMBED)
+ .build()
+ )
+
+ val roundtrippedParsedWebhookEvent =
+ jsonMapper.readValue(
+ jsonMapper.writeValueAsString(parsedWebhookEvent),
+ jacksonTypeRef(),
+ )
+
+ assertThat(roundtrippedParsedWebhookEvent).isEqualTo(parsedWebhookEvent)
+ }
+
+ @Test
+ fun ofEmbedViewed() {
+ val embedViewed =
+ EmbedViewedWebhookEvent.builder()
+ .accountToken("9a352526-4e69-469a-80b8-e22c71ba3cf0")
+ .cardToken("4df9a19c-9e1e-40d1-b27a-05e01152ee07")
+ .deviceDetails(
+ EmbedViewedWebhookEvent.EmbedDeviceDetails.builder()
+ .ipAddress("192.0.2.1")
+ .build()
+ )
+ .embedType(EmbedViewedWebhookEvent.EmbedType.PAN)
+ .eventType(EmbedViewedWebhookEvent.EventType.EMBED_VIEWED)
+ .sessionId("4273ff06-3ce4-4092-8a1f-0340e33b6375")
+ .build()
+
+ val parsedWebhookEvent = ParsedWebhookEvent.ofEmbedViewed(embedViewed)
+
+ assertThat(parsedWebhookEvent.accountHolderCreated()).isEmpty
+ assertThat(parsedWebhookEvent.kybPayload()).isEmpty
+ assertThat(parsedWebhookEvent.kycPayload()).isEmpty
+ assertThat(parsedWebhookEvent.legacyPayload()).isEmpty
+ assertThat(parsedWebhookEvent.accountHolderVerification()).isEmpty
+ assertThat(parsedWebhookEvent.accountHolderDocumentUpdated()).isEmpty
+ assertThat(parsedWebhookEvent.cardAuthorizationApprovalRequest()).isEmpty
+ assertThat(parsedWebhookEvent.cardAuthorizationChallenge()).isEmpty
+ assertThat(parsedWebhookEvent.cardAuthorizationChallengeResponse()).isEmpty
+ assertThat(parsedWebhookEvent.authRulesBacktestReportCreated()).isEmpty
+ assertThat(parsedWebhookEvent.balanceUpdated()).isEmpty
+ assertThat(parsedWebhookEvent.bookTransferTransactionCreated()).isEmpty
+ assertThat(parsedWebhookEvent.bookTransferTransactionUpdated()).isEmpty
+ assertThat(parsedWebhookEvent.cardCreated()).isEmpty
+ assertThat(parsedWebhookEvent.cardConverted()).isEmpty
+ assertThat(parsedWebhookEvent.cardRenewed()).isEmpty
+ assertThat(parsedWebhookEvent.cardReissued()).isEmpty
+ assertThat(parsedWebhookEvent.cardShipped()).isEmpty
+ assertThat(parsedWebhookEvent.cardUpdated()).isEmpty
+ assertThat(parsedWebhookEvent.cardTransactionUpdated()).isEmpty
+ assertThat(parsedWebhookEvent.cardTransactionEnhancedDataCreated()).isEmpty
+ assertThat(parsedWebhookEvent.cardTransactionEnhancedDataUpdated()).isEmpty
+ assertThat(parsedWebhookEvent.claimCreated()).isEmpty
+ assertThat(parsedWebhookEvent.claimUpdated()).isEmpty
+ assertThat(parsedWebhookEvent.claimDocumentUploaded()).isEmpty
+ assertThat(parsedWebhookEvent.claimDocumentAccepted()).isEmpty
+ assertThat(parsedWebhookEvent.claimDocumentRejected()).isEmpty
+ assertThat(parsedWebhookEvent.digitalWalletTokenizationApprovalRequest()).isEmpty
+ assertThat(parsedWebhookEvent.digitalWalletTokenizationResult()).isEmpty
+ assertThat(parsedWebhookEvent.digitalWalletTokenizationTwoFactorAuthenticationCode())
+ .isEmpty
+ assertThat(parsedWebhookEvent.digitalWalletTokenizationTwoFactorAuthenticationCodeSent())
+ .isEmpty
+ assertThat(parsedWebhookEvent.digitalWalletTokenizationUpdated()).isEmpty
+ assertThat(parsedWebhookEvent.disputeUpdated()).isEmpty
+ assertThat(parsedWebhookEvent.disputeEvidenceUploadFailed()).isEmpty
+ assertThat(parsedWebhookEvent.embedSessionGenerated()).isEmpty
+ assertThat(parsedWebhookEvent.embedViewed()).contains(embedViewed)
+ assertThat(parsedWebhookEvent.externalBankAccountCreated()).isEmpty
+ assertThat(parsedWebhookEvent.externalBankAccountUpdated()).isEmpty
+ assertThat(parsedWebhookEvent.externalPaymentCreated()).isEmpty
+ assertThat(parsedWebhookEvent.externalPaymentUpdated()).isEmpty
+ assertThat(parsedWebhookEvent.financialAccountCreated()).isEmpty
+ assertThat(parsedWebhookEvent.financialAccountUpdated()).isEmpty
+ assertThat(parsedWebhookEvent.fundingEventCreated()).isEmpty
+ assertThat(parsedWebhookEvent.loanTapeCreated()).isEmpty
+ assertThat(parsedWebhookEvent.loanTapeUpdated()).isEmpty
+ assertThat(parsedWebhookEvent.managementOperationCreated()).isEmpty
+ assertThat(parsedWebhookEvent.managementOperationUpdated()).isEmpty
+ assertThat(parsedWebhookEvent.internalTransactionCreated()).isEmpty
+ assertThat(parsedWebhookEvent.internalTransactionUpdated()).isEmpty
+ assertThat(parsedWebhookEvent.networkTotalCreated()).isEmpty
+ assertThat(parsedWebhookEvent.networkTotalUpdated()).isEmpty
+ assertThat(parsedWebhookEvent.paymentTransactionCreated()).isEmpty
+ assertThat(parsedWebhookEvent.paymentTransactionUpdated()).isEmpty
+ assertThat(parsedWebhookEvent.settlementReportUpdated()).isEmpty
+ assertThat(parsedWebhookEvent.statementsCreated()).isEmpty
+ assertThat(parsedWebhookEvent.threeDSAuthenticationCreated()).isEmpty
+ assertThat(parsedWebhookEvent.threeDSAuthenticationUpdated()).isEmpty
+ assertThat(parsedWebhookEvent.threeDSAuthenticationChallenge()).isEmpty
+ assertThat(parsedWebhookEvent.tokenizationApprovalRequest()).isEmpty
+ assertThat(parsedWebhookEvent.tokenizationResult()).isEmpty
+ assertThat(parsedWebhookEvent.tokenizationTwoFactorAuthenticationCode()).isEmpty
+ assertThat(parsedWebhookEvent.tokenizationTwoFactorAuthenticationCodeSent()).isEmpty
+ assertThat(parsedWebhookEvent.tokenizationUpdated()).isEmpty
+ assertThat(parsedWebhookEvent.threeDSAuthenticationApprovalRequest()).isEmpty
+ assertThat(parsedWebhookEvent.disputeTransactionCreated()).isEmpty
+ assertThat(parsedWebhookEvent.disputeTransactionUpdated()).isEmpty
+ }
+
+ @Test
+ fun ofEmbedViewedRoundtrip() {
+ val jsonMapper = jsonMapper()
+ val parsedWebhookEvent =
+ ParsedWebhookEvent.ofEmbedViewed(
+ EmbedViewedWebhookEvent.builder()
+ .accountToken("9a352526-4e69-469a-80b8-e22c71ba3cf0")
+ .cardToken("4df9a19c-9e1e-40d1-b27a-05e01152ee07")
+ .deviceDetails(
+ EmbedViewedWebhookEvent.EmbedDeviceDetails.builder()
+ .ipAddress("192.0.2.1")
+ .build()
+ )
+ .embedType(EmbedViewedWebhookEvent.EmbedType.PAN)
+ .eventType(EmbedViewedWebhookEvent.EventType.EMBED_VIEWED)
+ .sessionId("4273ff06-3ce4-4092-8a1f-0340e33b6375")
+ .build()
+ )
+
+ val roundtrippedParsedWebhookEvent =
+ jsonMapper.readValue(
+ jsonMapper.writeValueAsString(parsedWebhookEvent),
+ jacksonTypeRef(),
+ )
+
+ assertThat(roundtrippedParsedWebhookEvent).isEqualTo(parsedWebhookEvent)
+ }
+
@Test
fun ofExternalBankAccountCreated() {
val externalBankAccountCreated =
@@ -6334,6 +6634,8 @@ internal class ParsedWebhookEventTest {
assertThat(parsedWebhookEvent.digitalWalletTokenizationUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeEvidenceUploadFailed()).isEmpty
+ assertThat(parsedWebhookEvent.embedSessionGenerated()).isEmpty
+ assertThat(parsedWebhookEvent.embedViewed()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountCreated())
.contains(externalBankAccountCreated)
assertThat(parsedWebhookEvent.externalBankAccountUpdated()).isEmpty
@@ -6499,6 +6801,8 @@ internal class ParsedWebhookEventTest {
assertThat(parsedWebhookEvent.digitalWalletTokenizationUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeEvidenceUploadFailed()).isEmpty
+ assertThat(parsedWebhookEvent.embedSessionGenerated()).isEmpty
+ assertThat(parsedWebhookEvent.embedViewed()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountCreated()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountUpdated())
.contains(externalBankAccountUpdated)
@@ -6660,6 +6964,8 @@ internal class ParsedWebhookEventTest {
assertThat(parsedWebhookEvent.digitalWalletTokenizationUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeEvidenceUploadFailed()).isEmpty
+ assertThat(parsedWebhookEvent.embedSessionGenerated()).isEmpty
+ assertThat(parsedWebhookEvent.embedViewed()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountCreated()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountUpdated()).isEmpty
assertThat(parsedWebhookEvent.externalPaymentCreated()).contains(externalPaymentCreated)
@@ -6818,6 +7124,8 @@ internal class ParsedWebhookEventTest {
assertThat(parsedWebhookEvent.digitalWalletTokenizationUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeEvidenceUploadFailed()).isEmpty
+ assertThat(parsedWebhookEvent.embedSessionGenerated()).isEmpty
+ assertThat(parsedWebhookEvent.embedViewed()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountCreated()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountUpdated()).isEmpty
assertThat(parsedWebhookEvent.externalPaymentCreated()).isEmpty
@@ -6974,6 +7282,8 @@ internal class ParsedWebhookEventTest {
assertThat(parsedWebhookEvent.digitalWalletTokenizationUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeEvidenceUploadFailed()).isEmpty
+ assertThat(parsedWebhookEvent.embedSessionGenerated()).isEmpty
+ assertThat(parsedWebhookEvent.embedViewed()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountCreated()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountUpdated()).isEmpty
assertThat(parsedWebhookEvent.externalPaymentCreated()).isEmpty
@@ -7127,6 +7437,8 @@ internal class ParsedWebhookEventTest {
assertThat(parsedWebhookEvent.digitalWalletTokenizationUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeEvidenceUploadFailed()).isEmpty
+ assertThat(parsedWebhookEvent.embedSessionGenerated()).isEmpty
+ assertThat(parsedWebhookEvent.embedViewed()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountCreated()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountUpdated()).isEmpty
assertThat(parsedWebhookEvent.externalPaymentCreated()).isEmpty
@@ -7265,6 +7577,8 @@ internal class ParsedWebhookEventTest {
assertThat(parsedWebhookEvent.digitalWalletTokenizationUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeEvidenceUploadFailed()).isEmpty
+ assertThat(parsedWebhookEvent.embedSessionGenerated()).isEmpty
+ assertThat(parsedWebhookEvent.embedViewed()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountCreated()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountUpdated()).isEmpty
assertThat(parsedWebhookEvent.externalPaymentCreated()).isEmpty
@@ -7537,6 +7851,8 @@ internal class ParsedWebhookEventTest {
assertThat(parsedWebhookEvent.digitalWalletTokenizationUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeEvidenceUploadFailed()).isEmpty
+ assertThat(parsedWebhookEvent.embedSessionGenerated()).isEmpty
+ assertThat(parsedWebhookEvent.embedViewed()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountCreated()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountUpdated()).isEmpty
assertThat(parsedWebhookEvent.externalPaymentCreated()).isEmpty
@@ -7977,6 +8293,8 @@ internal class ParsedWebhookEventTest {
assertThat(parsedWebhookEvent.digitalWalletTokenizationUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeEvidenceUploadFailed()).isEmpty
+ assertThat(parsedWebhookEvent.embedSessionGenerated()).isEmpty
+ assertThat(parsedWebhookEvent.embedViewed()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountCreated()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountUpdated()).isEmpty
assertThat(parsedWebhookEvent.externalPaymentCreated()).isEmpty
@@ -8308,6 +8626,8 @@ internal class ParsedWebhookEventTest {
assertThat(parsedWebhookEvent.digitalWalletTokenizationUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeEvidenceUploadFailed()).isEmpty
+ assertThat(parsedWebhookEvent.embedSessionGenerated()).isEmpty
+ assertThat(parsedWebhookEvent.embedViewed()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountCreated()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountUpdated()).isEmpty
assertThat(parsedWebhookEvent.externalPaymentCreated()).isEmpty
@@ -8516,6 +8836,8 @@ internal class ParsedWebhookEventTest {
assertThat(parsedWebhookEvent.digitalWalletTokenizationUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeEvidenceUploadFailed()).isEmpty
+ assertThat(parsedWebhookEvent.embedSessionGenerated()).isEmpty
+ assertThat(parsedWebhookEvent.embedViewed()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountCreated()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountUpdated()).isEmpty
assertThat(parsedWebhookEvent.externalPaymentCreated()).isEmpty
@@ -8694,6 +9016,8 @@ internal class ParsedWebhookEventTest {
assertThat(parsedWebhookEvent.digitalWalletTokenizationUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeEvidenceUploadFailed()).isEmpty
+ assertThat(parsedWebhookEvent.embedSessionGenerated()).isEmpty
+ assertThat(parsedWebhookEvent.embedViewed()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountCreated()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountUpdated()).isEmpty
assertThat(parsedWebhookEvent.externalPaymentCreated()).isEmpty
@@ -8842,6 +9166,8 @@ internal class ParsedWebhookEventTest {
assertThat(parsedWebhookEvent.digitalWalletTokenizationUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeEvidenceUploadFailed()).isEmpty
+ assertThat(parsedWebhookEvent.embedSessionGenerated()).isEmpty
+ assertThat(parsedWebhookEvent.embedViewed()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountCreated()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountUpdated()).isEmpty
assertThat(parsedWebhookEvent.externalPaymentCreated()).isEmpty
@@ -8985,6 +9311,8 @@ internal class ParsedWebhookEventTest {
assertThat(parsedWebhookEvent.digitalWalletTokenizationUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeEvidenceUploadFailed()).isEmpty
+ assertThat(parsedWebhookEvent.embedSessionGenerated()).isEmpty
+ assertThat(parsedWebhookEvent.embedViewed()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountCreated()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountUpdated()).isEmpty
assertThat(parsedWebhookEvent.externalPaymentCreated()).isEmpty
@@ -9119,6 +9447,8 @@ internal class ParsedWebhookEventTest {
assertThat(parsedWebhookEvent.digitalWalletTokenizationUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeEvidenceUploadFailed()).isEmpty
+ assertThat(parsedWebhookEvent.embedSessionGenerated()).isEmpty
+ assertThat(parsedWebhookEvent.embedViewed()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountCreated()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountUpdated()).isEmpty
assertThat(parsedWebhookEvent.externalPaymentCreated()).isEmpty
@@ -9302,6 +9632,8 @@ internal class ParsedWebhookEventTest {
assertThat(parsedWebhookEvent.digitalWalletTokenizationUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeEvidenceUploadFailed()).isEmpty
+ assertThat(parsedWebhookEvent.embedSessionGenerated()).isEmpty
+ assertThat(parsedWebhookEvent.embedViewed()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountCreated()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountUpdated()).isEmpty
assertThat(parsedWebhookEvent.externalPaymentCreated()).isEmpty
@@ -9534,6 +9866,8 @@ internal class ParsedWebhookEventTest {
assertThat(parsedWebhookEvent.digitalWalletTokenizationUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeEvidenceUploadFailed()).isEmpty
+ assertThat(parsedWebhookEvent.embedSessionGenerated()).isEmpty
+ assertThat(parsedWebhookEvent.embedViewed()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountCreated()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountUpdated()).isEmpty
assertThat(parsedWebhookEvent.externalPaymentCreated()).isEmpty
@@ -9721,6 +10055,8 @@ internal class ParsedWebhookEventTest {
assertThat(parsedWebhookEvent.digitalWalletTokenizationUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeEvidenceUploadFailed()).isEmpty
+ assertThat(parsedWebhookEvent.embedSessionGenerated()).isEmpty
+ assertThat(parsedWebhookEvent.embedViewed()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountCreated()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountUpdated()).isEmpty
assertThat(parsedWebhookEvent.externalPaymentCreated()).isEmpty
@@ -9968,6 +10304,8 @@ internal class ParsedWebhookEventTest {
assertThat(parsedWebhookEvent.digitalWalletTokenizationUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeEvidenceUploadFailed()).isEmpty
+ assertThat(parsedWebhookEvent.embedSessionGenerated()).isEmpty
+ assertThat(parsedWebhookEvent.embedViewed()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountCreated()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountUpdated()).isEmpty
assertThat(parsedWebhookEvent.externalPaymentCreated()).isEmpty
@@ -10329,6 +10667,8 @@ internal class ParsedWebhookEventTest {
assertThat(parsedWebhookEvent.digitalWalletTokenizationUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeEvidenceUploadFailed()).isEmpty
+ assertThat(parsedWebhookEvent.embedSessionGenerated()).isEmpty
+ assertThat(parsedWebhookEvent.embedViewed()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountCreated()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountUpdated()).isEmpty
assertThat(parsedWebhookEvent.externalPaymentCreated()).isEmpty
@@ -10709,6 +11049,8 @@ internal class ParsedWebhookEventTest {
assertThat(parsedWebhookEvent.digitalWalletTokenizationUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeEvidenceUploadFailed()).isEmpty
+ assertThat(parsedWebhookEvent.embedSessionGenerated()).isEmpty
+ assertThat(parsedWebhookEvent.embedViewed()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountCreated()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountUpdated()).isEmpty
assertThat(parsedWebhookEvent.externalPaymentCreated()).isEmpty
@@ -11118,6 +11460,8 @@ internal class ParsedWebhookEventTest {
assertThat(parsedWebhookEvent.digitalWalletTokenizationUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeEvidenceUploadFailed()).isEmpty
+ assertThat(parsedWebhookEvent.embedSessionGenerated()).isEmpty
+ assertThat(parsedWebhookEvent.embedViewed()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountCreated()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountUpdated()).isEmpty
assertThat(parsedWebhookEvent.externalPaymentCreated()).isEmpty
@@ -11457,6 +11801,8 @@ internal class ParsedWebhookEventTest {
assertThat(parsedWebhookEvent.digitalWalletTokenizationUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeEvidenceUploadFailed()).isEmpty
+ assertThat(parsedWebhookEvent.embedSessionGenerated()).isEmpty
+ assertThat(parsedWebhookEvent.embedViewed()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountCreated()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountUpdated()).isEmpty
assertThat(parsedWebhookEvent.externalPaymentCreated()).isEmpty
@@ -11657,6 +12003,8 @@ internal class ParsedWebhookEventTest {
assertThat(parsedWebhookEvent.digitalWalletTokenizationUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeEvidenceUploadFailed()).isEmpty
+ assertThat(parsedWebhookEvent.embedSessionGenerated()).isEmpty
+ assertThat(parsedWebhookEvent.embedViewed()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountCreated()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountUpdated()).isEmpty
assertThat(parsedWebhookEvent.externalPaymentCreated()).isEmpty
@@ -11805,6 +12153,8 @@ internal class ParsedWebhookEventTest {
assertThat(parsedWebhookEvent.digitalWalletTokenizationUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeEvidenceUploadFailed()).isEmpty
+ assertThat(parsedWebhookEvent.embedSessionGenerated()).isEmpty
+ assertThat(parsedWebhookEvent.embedViewed()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountCreated()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountUpdated()).isEmpty
assertThat(parsedWebhookEvent.externalPaymentCreated()).isEmpty
@@ -11942,6 +12292,8 @@ internal class ParsedWebhookEventTest {
assertThat(parsedWebhookEvent.digitalWalletTokenizationUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeEvidenceUploadFailed()).isEmpty
+ assertThat(parsedWebhookEvent.embedSessionGenerated()).isEmpty
+ assertThat(parsedWebhookEvent.embedViewed()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountCreated()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountUpdated()).isEmpty
assertThat(parsedWebhookEvent.externalPaymentCreated()).isEmpty
@@ -12102,6 +12454,8 @@ internal class ParsedWebhookEventTest {
assertThat(parsedWebhookEvent.digitalWalletTokenizationUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeEvidenceUploadFailed()).isEmpty
+ assertThat(parsedWebhookEvent.embedSessionGenerated()).isEmpty
+ assertThat(parsedWebhookEvent.embedViewed()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountCreated()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountUpdated()).isEmpty
assertThat(parsedWebhookEvent.externalPaymentCreated()).isEmpty
@@ -12383,6 +12737,8 @@ internal class ParsedWebhookEventTest {
assertThat(parsedWebhookEvent.digitalWalletTokenizationUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeEvidenceUploadFailed()).isEmpty
+ assertThat(parsedWebhookEvent.embedSessionGenerated()).isEmpty
+ assertThat(parsedWebhookEvent.embedViewed()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountCreated()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountUpdated()).isEmpty
assertThat(parsedWebhookEvent.externalPaymentCreated()).isEmpty
@@ -12682,6 +13038,8 @@ internal class ParsedWebhookEventTest {
assertThat(parsedWebhookEvent.digitalWalletTokenizationUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeEvidenceUploadFailed()).isEmpty
+ assertThat(parsedWebhookEvent.embedSessionGenerated()).isEmpty
+ assertThat(parsedWebhookEvent.embedViewed()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountCreated()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountUpdated()).isEmpty
assertThat(parsedWebhookEvent.externalPaymentCreated()).isEmpty
@@ -12894,6 +13252,8 @@ internal class ParsedWebhookEventTest {
assertThat(parsedWebhookEvent.digitalWalletTokenizationUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeUpdated()).isEmpty
assertThat(parsedWebhookEvent.disputeEvidenceUploadFailed()).isEmpty
+ assertThat(parsedWebhookEvent.embedSessionGenerated()).isEmpty
+ assertThat(parsedWebhookEvent.embedViewed()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountCreated()).isEmpty
assertThat(parsedWebhookEvent.externalBankAccountUpdated()).isEmpty
assertThat(parsedWebhookEvent.externalPaymentCreated()).isEmpty