diff --git a/.release-please-manifest.json b/.release-please-manifest.json
index ae680287b..508a7081b 100644
--- a/.release-please-manifest.json
+++ b/.release-please-manifest.json
@@ -1,3 +1,3 @@
{
- ".": "0.102.2"
+ ".": "0.103.0"
}
\ No newline at end of file
diff --git a/.stats.yml b/.stats.yml
index 1297b8759..bfde9d73c 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 169
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-e16df7d65a6ababc8e0ca1f2a65070893d82d3b2b046394ab708d56fe717b3ad.yml
-openapi_spec_hash: ee82cf8fd5bb6b86abbae304f6c43934
-config_hash: c6d56596249e319c59d49d8e49a190b1
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-117e0ee9b030a2efc3b09e189e445fb1a26fd32f1c563f385b9d7071a959c550.yml
+openapi_spec_hash: e529a3fa8c3a79d3664db391683334c3
+config_hash: 22e4b128e110e2767daa9d95428ebf9d
diff --git a/CHANGELOG.md b/CHANGELOG.md
index e84bc4606..e96859fd2 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,13 @@
# Changelog
+## 0.103.0 (2025-09-03)
+
+Full Changelog: [v0.102.2...v0.103.0](https://github.com/lithic-com/lithic-java/compare/v0.102.2...v0.103.0)
+
+### Features
+
+* **api:** adds support for delegated KYB onboarding and more device details in 3DS Authentications ([bd0d218](https://github.com/lithic-com/lithic-java/commit/bd0d218d1258c9a8e0d964ce726e682a9c9251cc))
+
## 0.102.2 (2025-09-03)
Full Changelog: [v0.102.1...v0.102.2](https://github.com/lithic-com/lithic-java/compare/v0.102.1...v0.102.2)
diff --git a/README.md b/README.md
index 734513af3..cef9e62fb 100644
--- a/README.md
+++ b/README.md
@@ -2,8 +2,8 @@
-[](https://central.sonatype.com/artifact/com.lithic.api/lithic-java/0.102.2)
-[](https://javadoc.io/doc/com.lithic.api/lithic-java/0.102.2)
+[](https://central.sonatype.com/artifact/com.lithic.api/lithic-java/0.103.0)
+[](https://javadoc.io/doc/com.lithic.api/lithic-java/0.103.0)
@@ -13,7 +13,7 @@ The Lithic Java SDK is similar to the Lithic Kotlin SDK but with minor differenc
-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.102.2).
+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.103.0).
@@ -24,7 +24,7 @@ The REST API documentation can be found on [docs.lithic.com](https://docs.lithic
### Gradle
```kotlin
-implementation("com.lithic.api:lithic-java:0.102.2")
+implementation("com.lithic.api:lithic-java:0.103.0")
```
### Maven
@@ -33,7 +33,7 @@ implementation("com.lithic.api:lithic-java:0.102.2")
com.lithic.api
lithic-java
- 0.102.2
+ 0.103.0
```
diff --git a/build.gradle.kts b/build.gradle.kts
index ce35cde4c..c51a2cf97 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -8,7 +8,7 @@ repositories {
allprojects {
group = "com.lithic.api"
- version = "0.102.2" // x-release-please-version
+ version = "0.103.0" // x-release-please-version
}
subprojects {
diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountActivityListResponse.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountActivityListResponse.kt
index d9b6c8fd3..c75cd40ed 100644
--- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountActivityListResponse.kt
+++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountActivityListResponse.kt
@@ -4482,6 +4482,8 @@ private constructor(
@JvmField val TRANSFER = of("TRANSFER")
+ @JvmField val COLLECTION = of("COLLECTION")
+
@JvmStatic fun of(value: String) = BookTransferType(JsonField.of(value))
}
@@ -4520,6 +4522,7 @@ private constructor(
DISPUTE_WON,
SERVICE,
TRANSFER,
+ COLLECTION,
}
/**
@@ -4567,6 +4570,7 @@ private constructor(
DISPUTE_WON,
SERVICE,
TRANSFER,
+ COLLECTION,
/**
* An enum member indicating that [BookTransferType] was instantiated with an
* unknown value.
@@ -4616,6 +4620,7 @@ private constructor(
DISPUTE_WON -> Value.DISPUTE_WON
SERVICE -> Value.SERVICE
TRANSFER -> Value.TRANSFER
+ COLLECTION -> Value.COLLECTION
else -> Value._UNKNOWN
}
@@ -4663,6 +4668,7 @@ private constructor(
DISPUTE_WON -> Known.DISPUTE_WON
SERVICE -> Known.SERVICE
TRANSFER -> Known.TRANSFER
+ COLLECTION -> Known.COLLECTION
else -> throw LithicInvalidDataException("Unknown BookTransferType: $value")
}
@@ -7320,6 +7326,7 @@ private constructor(
private val currency: JsonField,
private val expectedReleaseDate: JsonField,
private val externalBankAccountToken: JsonField,
+ private val type: JsonField,
private val userDefinedId: JsonField,
private val additionalProperties: MutableMap,
) {
@@ -7380,6 +7387,7 @@ private constructor(
@JsonProperty("external_bank_account_token")
@ExcludeMissing
externalBankAccountToken: JsonField = JsonMissing.of(),
+ @JsonProperty("type") @ExcludeMissing type: JsonField = JsonMissing.of(),
@JsonProperty("user_defined_id")
@ExcludeMissing
userDefinedId: JsonField = JsonMissing.of(),
@@ -7404,6 +7412,7 @@ private constructor(
currency,
expectedReleaseDate,
externalBankAccountToken,
+ type,
userDefinedId,
mutableMapOf(),
)
@@ -7570,6 +7579,12 @@ private constructor(
fun externalBankAccountToken(): Optional =
externalBankAccountToken.getOptional("external_bank_account_token")
+ /**
+ * @throws LithicInvalidDataException if the JSON field has an unexpected type (e.g. if the
+ * server responded with an unexpected value).
+ */
+ fun type(): Optional = type.getOptional("type")
+
/**
* User-defined identifier
*
@@ -7749,6 +7764,13 @@ private constructor(
@ExcludeMissing
fun _externalBankAccountToken(): JsonField = externalBankAccountToken
+ /**
+ * Returns the raw JSON value of [type].
+ *
+ * Unlike [type], this method doesn't throw if the JSON field has an unexpected type.
+ */
+ @JsonProperty("type") @ExcludeMissing fun _type(): JsonField = type
+
/**
* Returns the raw JSON value of [userDefinedId].
*
@@ -7823,6 +7845,7 @@ private constructor(
private var currency: JsonField = JsonMissing.of()
private var expectedReleaseDate: JsonField = JsonMissing.of()
private var externalBankAccountToken: JsonField = JsonMissing.of()
+ private var type: JsonField = JsonMissing.of()
private var userDefinedId: JsonField = JsonMissing.of()
private var additionalProperties: MutableMap = mutableMapOf()
@@ -7848,6 +7871,7 @@ private constructor(
currency = paymentTransaction.currency
expectedReleaseDate = paymentTransaction.expectedReleaseDate
externalBankAccountToken = paymentTransaction.externalBankAccountToken
+ type = paymentTransaction.type
userDefinedId = paymentTransaction.userDefinedId
additionalProperties = paymentTransaction.additionalProperties.toMutableMap()
}
@@ -8149,6 +8173,17 @@ private constructor(
this.externalBankAccountToken = externalBankAccountToken
}
+ fun type(type: TransferType) = type(JsonField.of(type))
+
+ /**
+ * Sets [Builder.type] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.type] with a well-typed [TransferType] value
+ * instead. This method is primarily for setting the field to an undocumented or not yet
+ * supported value.
+ */
+ fun type(type: JsonField) = apply { this.type = type }
+
/** User-defined identifier */
fun userDefinedId(userDefinedId: String?) =
userDefinedId(JsonField.ofNullable(userDefinedId))
@@ -8237,6 +8272,7 @@ private constructor(
currency,
expectedReleaseDate,
externalBankAccountToken,
+ type,
userDefinedId,
additionalProperties.toMutableMap(),
)
@@ -8269,6 +8305,7 @@ private constructor(
currency()
expectedReleaseDate()
externalBankAccountToken()
+ type().ifPresent { it.validate() }
userDefinedId()
validated = true
}
@@ -8309,6 +8346,7 @@ private constructor(
(if (currency.asKnown().isPresent) 1 else 0) +
(if (expectedReleaseDate.asKnown().isPresent) 1 else 0) +
(if (externalBankAccountToken.asKnown().isPresent) 1 else 0) +
+ (type.asKnown().getOrNull()?.validity() ?: 0) +
(if (userDefinedId.asKnown().isPresent) 1 else 0)
/** Transaction category */
@@ -10694,67 +10732,42 @@ private constructor(
class WireMethodAttributes
private constructor(
- private val wireTransferType: JsonField,
- private val externalBankName: JsonField,
- private val externalBankRoutingNumber: JsonField,
- private val externalIndividualName: JsonField,
- private val imad: JsonField,
- private val lithicBankName: JsonField,
- private val lithicBankRoutingNumber: JsonField,
- private val lithicIndividualName: JsonField,
- private val omad: JsonField,
- private val previousTransfer: JsonField,
- private val wireToken: JsonField,
+ private val wireNetwork: JsonField,
+ private val creditor: JsonField,
+ private val debtor: JsonField,
+ private val messageId: JsonField,
+ private val remittanceInformation: JsonField,
+ private val wireMessageType: JsonField,
private val additionalProperties: MutableMap,
) {
@JsonCreator
private constructor(
- @JsonProperty("wire_transfer_type")
- @ExcludeMissing
- wireTransferType: JsonField = JsonMissing.of(),
- @JsonProperty("external_bank_name")
- @ExcludeMissing
- externalBankName: JsonField = JsonMissing.of(),
- @JsonProperty("external_bank_routing_number")
- @ExcludeMissing
- externalBankRoutingNumber: JsonField = JsonMissing.of(),
- @JsonProperty("external_individual_name")
- @ExcludeMissing
- externalIndividualName: JsonField = JsonMissing.of(),
- @JsonProperty("imad")
+ @JsonProperty("wire_network")
@ExcludeMissing
- imad: JsonField = JsonMissing.of(),
- @JsonProperty("lithic_bank_name")
+ wireNetwork: JsonField = JsonMissing.of(),
+ @JsonProperty("creditor")
@ExcludeMissing
- lithicBankName: JsonField = JsonMissing.of(),
- @JsonProperty("lithic_bank_routing_number")
+ creditor: JsonField = JsonMissing.of(),
+ @JsonProperty("debtor")
@ExcludeMissing
- lithicBankRoutingNumber: JsonField = JsonMissing.of(),
- @JsonProperty("lithic_individual_name")
+ debtor: JsonField = JsonMissing.of(),
+ @JsonProperty("message_id")
@ExcludeMissing
- lithicIndividualName: JsonField = JsonMissing.of(),
- @JsonProperty("omad")
+ messageId: JsonField = JsonMissing.of(),
+ @JsonProperty("remittance_information")
@ExcludeMissing
- omad: JsonField = JsonMissing.of(),
- @JsonProperty("previous_transfer")
+ remittanceInformation: JsonField = JsonMissing.of(),
+ @JsonProperty("wire_message_type")
@ExcludeMissing
- previousTransfer: JsonField = JsonMissing.of(),
- @JsonProperty("wire_token")
- @ExcludeMissing
- wireToken: JsonField = JsonMissing.of(),
+ wireMessageType: JsonField = JsonMissing.of(),
) : this(
- wireTransferType,
- externalBankName,
- externalBankRoutingNumber,
- externalIndividualName,
- imad,
- lithicBankName,
- lithicBankRoutingNumber,
- lithicIndividualName,
- omad,
- previousTransfer,
- wireToken,
+ wireNetwork,
+ creditor,
+ debtor,
+ messageId,
+ remittanceInformation,
+ wireMessageType,
mutableMapOf(),
)
@@ -10765,201 +10778,106 @@ private constructor(
* unexpectedly missing or null (e.g. if the server responded with an unexpected
* value).
*/
- fun wireTransferType(): WireTransferType =
- wireTransferType.getRequired("wire_transfer_type")
+ fun wireNetwork(): WireNetwork = wireNetwork.getRequired("wire_network")
/**
- * External bank name
- *
* @throws LithicInvalidDataException if the JSON field has an unexpected type (e.g.
* if the server responded with an unexpected value).
*/
- fun externalBankName(): Optional =
- externalBankName.getOptional("external_bank_name")
+ fun creditor(): Optional = creditor.getOptional("creditor")
/**
- * External bank routing number
- *
* @throws LithicInvalidDataException if the JSON field has an unexpected type (e.g.
* if the server responded with an unexpected value).
*/
- fun externalBankRoutingNumber(): Optional =
- externalBankRoutingNumber.getOptional("external_bank_routing_number")
+ fun debtor(): Optional = debtor.getOptional("debtor")
/**
- * External individual name
+ * Point to point reference identifier, as assigned by the instructing party, used
+ * for tracking the message through the Fedwire system
*
* @throws LithicInvalidDataException if the JSON field has an unexpected type (e.g.
* if the server responded with an unexpected value).
*/
- fun externalIndividualName(): Optional =
- externalIndividualName.getOptional("external_individual_name")
+ fun messageId(): Optional = messageId.getOptional("message_id")
/**
- * IMAD
+ * Payment details or invoice reference
*
* @throws LithicInvalidDataException if the JSON field has an unexpected type (e.g.
* if the server responded with an unexpected value).
*/
- fun imad(): Optional = imad.getOptional("imad")
+ fun remittanceInformation(): Optional =
+ remittanceInformation.getOptional("remittance_information")
/**
- * Lithic bank name
+ * Type of wire message
*
* @throws LithicInvalidDataException if the JSON field has an unexpected type (e.g.
* if the server responded with an unexpected value).
*/
- fun lithicBankName(): Optional =
- lithicBankName.getOptional("lithic_bank_name")
+ fun wireMessageType(): Optional =
+ wireMessageType.getOptional("wire_message_type")
/**
- * Lithic bank routing number
+ * Returns the raw JSON value of [wireNetwork].
*
- * @throws LithicInvalidDataException if the JSON field has an unexpected type (e.g.
- * if the server responded with an unexpected value).
- */
- fun lithicBankRoutingNumber(): Optional =
- lithicBankRoutingNumber.getOptional("lithic_bank_routing_number")
-
- /**
- * Lithic individual name
- *
- * @throws LithicInvalidDataException if the JSON field has an unexpected type (e.g.
- * if the server responded with an unexpected value).
- */
- fun lithicIndividualName(): Optional =
- lithicIndividualName.getOptional("lithic_individual_name")
-
- /**
- * OMAD
- *
- * @throws LithicInvalidDataException if the JSON field has an unexpected type (e.g.
- * if the server responded with an unexpected value).
- */
- fun omad(): Optional = omad.getOptional("omad")
-
- /**
- * UUID of previous transfer if this is a retry
- *
- * @throws LithicInvalidDataException if the JSON field has an unexpected type (e.g.
- * if the server responded with an unexpected value).
- */
- fun previousTransfer(): Optional =
- previousTransfer.getOptional("previous_transfer")
-
- /**
- * Wire token
- *
- * @throws LithicInvalidDataException if the JSON field has an unexpected type (e.g.
- * if the server responded with an unexpected value).
- */
- fun wireToken(): Optional = wireToken.getOptional("wire_token")
-
- /**
- * Returns the raw JSON value of [wireTransferType].
- *
- * Unlike [wireTransferType], this method doesn't throw if the JSON field has an
+ * Unlike [wireNetwork], this method doesn't throw if the JSON field has an
* unexpected type.
*/
- @JsonProperty("wire_transfer_type")
+ @JsonProperty("wire_network")
@ExcludeMissing
- fun _wireTransferType(): JsonField = wireTransferType
+ fun _wireNetwork(): JsonField = wireNetwork
/**
- * Returns the raw JSON value of [externalBankName].
+ * Returns the raw JSON value of [creditor].
*
- * Unlike [externalBankName], this method doesn't throw if the JSON field has an
- * unexpected type.
- */
- @JsonProperty("external_bank_name")
- @ExcludeMissing
- fun _externalBankName(): JsonField = externalBankName
-
- /**
- * Returns the raw JSON value of [externalBankRoutingNumber].
- *
- * Unlike [externalBankRoutingNumber], this method doesn't throw if the JSON field
- * has an unexpected type.
+ * Unlike [creditor], this method doesn't throw if the JSON field has an unexpected
+ * type.
*/
- @JsonProperty("external_bank_routing_number")
+ @JsonProperty("creditor")
@ExcludeMissing
- fun _externalBankRoutingNumber(): JsonField = externalBankRoutingNumber
+ fun _creditor(): JsonField = creditor
/**
- * Returns the raw JSON value of [externalIndividualName].
+ * Returns the raw JSON value of [debtor].
*
- * Unlike [externalIndividualName], this method doesn't throw if the JSON field has
- * an unexpected type.
+ * Unlike [debtor], this method doesn't throw if the JSON field has an unexpected
+ * type.
*/
- @JsonProperty("external_individual_name")
+ @JsonProperty("debtor")
@ExcludeMissing
- fun _externalIndividualName(): JsonField = externalIndividualName
+ fun _debtor(): JsonField = debtor
/**
- * Returns the raw JSON value of [imad].
+ * Returns the raw JSON value of [messageId].
*
- * Unlike [imad], this method doesn't throw if the JSON field has an unexpected
+ * Unlike [messageId], this method doesn't throw if the JSON field has an unexpected
* type.
*/
- @JsonProperty("imad") @ExcludeMissing fun _imad(): JsonField = imad
-
- /**
- * Returns the raw JSON value of [lithicBankName].
- *
- * Unlike [lithicBankName], this method doesn't throw if the JSON field has an
- * unexpected type.
- */
- @JsonProperty("lithic_bank_name")
+ @JsonProperty("message_id")
@ExcludeMissing
- fun _lithicBankName(): JsonField = lithicBankName
+ fun _messageId(): JsonField = messageId
/**
- * Returns the raw JSON value of [lithicBankRoutingNumber].
+ * Returns the raw JSON value of [remittanceInformation].
*
- * Unlike [lithicBankRoutingNumber], this method doesn't throw if the JSON field has
+ * Unlike [remittanceInformation], this method doesn't throw if the JSON field has
* an unexpected type.
*/
- @JsonProperty("lithic_bank_routing_number")
- @ExcludeMissing
- fun _lithicBankRoutingNumber(): JsonField = lithicBankRoutingNumber
-
- /**
- * Returns the raw JSON value of [lithicIndividualName].
- *
- * Unlike [lithicIndividualName], this method doesn't throw if the JSON field has an
- * unexpected type.
- */
- @JsonProperty("lithic_individual_name")
+ @JsonProperty("remittance_information")
@ExcludeMissing
- fun _lithicIndividualName(): JsonField = lithicIndividualName
+ fun _remittanceInformation(): JsonField = remittanceInformation
/**
- * Returns the raw JSON value of [omad].
+ * Returns the raw JSON value of [wireMessageType].
*
- * Unlike [omad], this method doesn't throw if the JSON field has an unexpected
- * type.
- */
- @JsonProperty("omad") @ExcludeMissing fun _omad(): JsonField = omad
-
- /**
- * Returns the raw JSON value of [previousTransfer].
- *
- * Unlike [previousTransfer], this method doesn't throw if the JSON field has an
+ * Unlike [wireMessageType], this method doesn't throw if the JSON field has an
* unexpected type.
*/
- @JsonProperty("previous_transfer")
+ @JsonProperty("wire_message_type")
@ExcludeMissing
- fun _previousTransfer(): JsonField = previousTransfer
-
- /**
- * Returns the raw JSON value of [wireToken].
- *
- * Unlike [wireToken], this method doesn't throw if the JSON field has an unexpected
- * type.
- */
- @JsonProperty("wire_token")
- @ExcludeMissing
- fun _wireToken(): JsonField = wireToken
+ fun _wireMessageType(): JsonField = wireMessageType
@JsonAnySetter
private fun putAdditionalProperty(key: String, value: JsonValue) {
@@ -10981,7 +10899,7 @@ private constructor(
*
* The following fields are required:
* ```java
- * .wireTransferType()
+ * .wireNetwork()
* ```
*/
@JvmStatic fun builder() = Builder()
@@ -10990,252 +10908,120 @@ private constructor(
/** A builder for [WireMethodAttributes]. */
class Builder internal constructor() {
- private var wireTransferType: JsonField? = null
- private var externalBankName: JsonField = JsonMissing.of()
- private var externalBankRoutingNumber: JsonField = JsonMissing.of()
- private var externalIndividualName: JsonField = JsonMissing.of()
- private var imad: JsonField = JsonMissing.of()
- private var lithicBankName: JsonField = JsonMissing.of()
- private var lithicBankRoutingNumber: JsonField = JsonMissing.of()
- private var lithicIndividualName: JsonField = JsonMissing.of()
- private var omad: JsonField = JsonMissing.of()
- private var previousTransfer: JsonField = JsonMissing.of()
- private var wireToken: JsonField = JsonMissing.of()
+ private var wireNetwork: JsonField? = null
+ private var creditor: JsonField = JsonMissing.of()
+ private var debtor: JsonField = JsonMissing.of()
+ private var messageId: JsonField = JsonMissing.of()
+ private var remittanceInformation: JsonField = JsonMissing.of()
+ private var wireMessageType: JsonField = JsonMissing.of()
private var additionalProperties: MutableMap = mutableMapOf()
@JvmSynthetic
internal fun from(wireMethodAttributes: WireMethodAttributes) = apply {
- wireTransferType = wireMethodAttributes.wireTransferType
- externalBankName = wireMethodAttributes.externalBankName
- externalBankRoutingNumber = wireMethodAttributes.externalBankRoutingNumber
- externalIndividualName = wireMethodAttributes.externalIndividualName
- imad = wireMethodAttributes.imad
- lithicBankName = wireMethodAttributes.lithicBankName
- lithicBankRoutingNumber = wireMethodAttributes.lithicBankRoutingNumber
- lithicIndividualName = wireMethodAttributes.lithicIndividualName
- omad = wireMethodAttributes.omad
- previousTransfer = wireMethodAttributes.previousTransfer
- wireToken = wireMethodAttributes.wireToken
+ wireNetwork = wireMethodAttributes.wireNetwork
+ creditor = wireMethodAttributes.creditor
+ debtor = wireMethodAttributes.debtor
+ messageId = wireMethodAttributes.messageId
+ remittanceInformation = wireMethodAttributes.remittanceInformation
+ wireMessageType = wireMethodAttributes.wireMessageType
additionalProperties =
wireMethodAttributes.additionalProperties.toMutableMap()
}
/** Type of wire transfer */
- fun wireTransferType(wireTransferType: WireTransferType) =
- wireTransferType(JsonField.of(wireTransferType))
+ fun wireNetwork(wireNetwork: WireNetwork) =
+ wireNetwork(JsonField.of(wireNetwork))
/**
- * Sets [Builder.wireTransferType] to an arbitrary JSON value.
+ * Sets [Builder.wireNetwork] to an arbitrary JSON value.
*
- * You should usually call [Builder.wireTransferType] with a well-typed
- * [WireTransferType] value instead. This method is primarily for setting the
- * field to an undocumented or not yet supported value.
+ * You should usually call [Builder.wireNetwork] with a well-typed [WireNetwork]
+ * value instead. This method is primarily for setting the field to an
+ * undocumented or not yet supported value.
*/
- fun wireTransferType(wireTransferType: JsonField) = apply {
- this.wireTransferType = wireTransferType
+ fun wireNetwork(wireNetwork: JsonField) = apply {
+ this.wireNetwork = wireNetwork
}
- /** External bank name */
- fun externalBankName(externalBankName: String?) =
- externalBankName(JsonField.ofNullable(externalBankName))
+ fun creditor(creditor: WirePartyDetails) = creditor(JsonField.of(creditor))
/**
- * Alias for calling [Builder.externalBankName] with
- * `externalBankName.orElse(null)`.
- */
- fun externalBankName(externalBankName: Optional) =
- externalBankName(externalBankName.getOrNull())
-
- /**
- * Sets [Builder.externalBankName] to an arbitrary JSON value.
+ * Sets [Builder.creditor] to an arbitrary JSON value.
*
- * You should usually call [Builder.externalBankName] with a well-typed [String]
- * value instead. This method is primarily for setting the field to an
- * undocumented or not yet supported value.
+ * You should usually call [Builder.creditor] with a well-typed
+ * [WirePartyDetails] value instead. This method is primarily for setting the
+ * field to an undocumented or not yet supported value.
*/
- fun externalBankName(externalBankName: JsonField) = apply {
- this.externalBankName = externalBankName
+ fun creditor(creditor: JsonField) = apply {
+ this.creditor = creditor
}
- /** External bank routing number */
- fun externalBankRoutingNumber(externalBankRoutingNumber: String?) =
- externalBankRoutingNumber(JsonField.ofNullable(externalBankRoutingNumber))
+ fun debtor(debtor: WirePartyDetails) = debtor(JsonField.of(debtor))
/**
- * Alias for calling [Builder.externalBankRoutingNumber] with
- * `externalBankRoutingNumber.orElse(null)`.
- */
- fun externalBankRoutingNumber(externalBankRoutingNumber: Optional) =
- externalBankRoutingNumber(externalBankRoutingNumber.getOrNull())
-
- /**
- * Sets [Builder.externalBankRoutingNumber] to an arbitrary JSON value.
+ * Sets [Builder.debtor] to an arbitrary JSON value.
*
- * You should usually call [Builder.externalBankRoutingNumber] with a well-typed
- * [String] value instead. This method is primarily for setting the field to an
+ * You should usually call [Builder.debtor] with a well-typed [WirePartyDetails]
+ * value instead. This method is primarily for setting the field to an
* undocumented or not yet supported value.
*/
- fun externalBankRoutingNumber(externalBankRoutingNumber: JsonField) =
- apply {
- this.externalBankRoutingNumber = externalBankRoutingNumber
- }
-
- /** External individual name */
- fun externalIndividualName(externalIndividualName: String?) =
- externalIndividualName(JsonField.ofNullable(externalIndividualName))
+ fun debtor(debtor: JsonField) = apply { this.debtor = debtor }
/**
- * Alias for calling [Builder.externalIndividualName] with
- * `externalIndividualName.orElse(null)`.
+ * Point to point reference identifier, as assigned by the instructing party,
+ * used for tracking the message through the Fedwire system
*/
- fun externalIndividualName(externalIndividualName: Optional) =
- externalIndividualName(externalIndividualName.getOrNull())
+ fun messageId(messageId: String?) = messageId(JsonField.ofNullable(messageId))
- /**
- * Sets [Builder.externalIndividualName] to an arbitrary JSON value.
- *
- * You should usually call [Builder.externalIndividualName] with a well-typed
- * [String] value instead. This method is primarily for setting the field to an
- * undocumented or not yet supported value.
- */
- fun externalIndividualName(externalIndividualName: JsonField) = apply {
- this.externalIndividualName = externalIndividualName
- }
-
- /** IMAD */
- fun imad(imad: String?) = imad(JsonField.ofNullable(imad))
-
- /** Alias for calling [Builder.imad] with `imad.orElse(null)`. */
- fun imad(imad: Optional) = imad(imad.getOrNull())
+ /** Alias for calling [Builder.messageId] with `messageId.orElse(null)`. */
+ fun messageId(messageId: Optional) = messageId(messageId.getOrNull())
/**
- * Sets [Builder.imad] to an arbitrary JSON value.
+ * Sets [Builder.messageId] to an arbitrary JSON value.
*
- * You should usually call [Builder.imad] with a well-typed [String] value
+ * You should usually call [Builder.messageId] with a well-typed [String] value
* instead. This method is primarily for setting the field to an undocumented or
* not yet supported value.
*/
- fun imad(imad: JsonField) = apply { this.imad = imad }
-
- /** Lithic bank name */
- fun lithicBankName(lithicBankName: String?) =
- lithicBankName(JsonField.ofNullable(lithicBankName))
-
- /**
- * Alias for calling [Builder.lithicBankName] with
- * `lithicBankName.orElse(null)`.
- */
- fun lithicBankName(lithicBankName: Optional) =
- lithicBankName(lithicBankName.getOrNull())
-
- /**
- * Sets [Builder.lithicBankName] to an arbitrary JSON value.
- *
- * You should usually call [Builder.lithicBankName] with a well-typed [String]
- * value instead. This method is primarily for setting the field to an
- * undocumented or not yet supported value.
- */
- fun lithicBankName(lithicBankName: JsonField) = apply {
- this.lithicBankName = lithicBankName
+ fun messageId(messageId: JsonField) = apply {
+ this.messageId = messageId
}
- /** Lithic bank routing number */
- fun lithicBankRoutingNumber(lithicBankRoutingNumber: String?) =
- lithicBankRoutingNumber(JsonField.ofNullable(lithicBankRoutingNumber))
-
- /**
- * Alias for calling [Builder.lithicBankRoutingNumber] with
- * `lithicBankRoutingNumber.orElse(null)`.
- */
- fun lithicBankRoutingNumber(lithicBankRoutingNumber: Optional) =
- lithicBankRoutingNumber(lithicBankRoutingNumber.getOrNull())
-
- /**
- * Sets [Builder.lithicBankRoutingNumber] to an arbitrary JSON value.
- *
- * You should usually call [Builder.lithicBankRoutingNumber] with a well-typed
- * [String] value instead. This method is primarily for setting the field to an
- * undocumented or not yet supported value.
- */
- fun lithicBankRoutingNumber(lithicBankRoutingNumber: JsonField) =
- apply {
- this.lithicBankRoutingNumber = lithicBankRoutingNumber
- }
-
- /** Lithic individual name */
- fun lithicIndividualName(lithicIndividualName: String?) =
- lithicIndividualName(JsonField.ofNullable(lithicIndividualName))
+ /** Payment details or invoice reference */
+ fun remittanceInformation(remittanceInformation: String?) =
+ remittanceInformation(JsonField.ofNullable(remittanceInformation))
/**
- * Alias for calling [Builder.lithicIndividualName] with
- * `lithicIndividualName.orElse(null)`.
+ * Alias for calling [Builder.remittanceInformation] with
+ * `remittanceInformation.orElse(null)`.
*/
- fun lithicIndividualName(lithicIndividualName: Optional) =
- lithicIndividualName(lithicIndividualName.getOrNull())
+ fun remittanceInformation(remittanceInformation: Optional) =
+ remittanceInformation(remittanceInformation.getOrNull())
/**
- * Sets [Builder.lithicIndividualName] to an arbitrary JSON value.
+ * Sets [Builder.remittanceInformation] to an arbitrary JSON value.
*
- * You should usually call [Builder.lithicIndividualName] with a well-typed
+ * You should usually call [Builder.remittanceInformation] with a well-typed
* [String] value instead. This method is primarily for setting the field to an
* undocumented or not yet supported value.
*/
- fun lithicIndividualName(lithicIndividualName: JsonField) = apply {
- this.lithicIndividualName = lithicIndividualName
+ fun remittanceInformation(remittanceInformation: JsonField) = apply {
+ this.remittanceInformation = remittanceInformation
}
- /** OMAD */
- fun omad(omad: String?) = omad(JsonField.ofNullable(omad))
-
- /** Alias for calling [Builder.omad] with `omad.orElse(null)`. */
- fun omad(omad: Optional) = omad(omad.getOrNull())
-
- /**
- * Sets [Builder.omad] to an arbitrary JSON value.
- *
- * You should usually call [Builder.omad] with a well-typed [String] value
- * instead. This method is primarily for setting the field to an undocumented or
- * not yet supported value.
- */
- fun omad(omad: JsonField) = apply { this.omad = omad }
-
- /** UUID of previous transfer if this is a retry */
- fun previousTransfer(previousTransfer: String?) =
- previousTransfer(JsonField.ofNullable(previousTransfer))
-
- /**
- * Alias for calling [Builder.previousTransfer] with
- * `previousTransfer.orElse(null)`.
- */
- fun previousTransfer(previousTransfer: Optional) =
- previousTransfer(previousTransfer.getOrNull())
+ /** Type of wire message */
+ fun wireMessageType(wireMessageType: String) =
+ wireMessageType(JsonField.of(wireMessageType))
/**
- * Sets [Builder.previousTransfer] to an arbitrary JSON value.
+ * Sets [Builder.wireMessageType] to an arbitrary JSON value.
*
- * You should usually call [Builder.previousTransfer] with a well-typed [String]
+ * You should usually call [Builder.wireMessageType] with a well-typed [String]
* value instead. This method is primarily for setting the field to an
* undocumented or not yet supported value.
*/
- fun previousTransfer(previousTransfer: JsonField) = apply {
- this.previousTransfer = previousTransfer
- }
-
- /** Wire token */
- fun wireToken(wireToken: String?) = wireToken(JsonField.ofNullable(wireToken))
-
- /** Alias for calling [Builder.wireToken] with `wireToken.orElse(null)`. */
- fun wireToken(wireToken: Optional) = wireToken(wireToken.getOrNull())
-
- /**
- * Sets [Builder.wireToken] to an arbitrary JSON value.
- *
- * You should usually call [Builder.wireToken] with a well-typed [String] value
- * instead. This method is primarily for setting the field to an undocumented or
- * not yet supported value.
- */
- fun wireToken(wireToken: JsonField) = apply {
- this.wireToken = wireToken
+ fun wireMessageType(wireMessageType: JsonField) = apply {
+ this.wireMessageType = wireMessageType
}
fun additionalProperties(additionalProperties: Map) = apply {
@@ -11267,24 +11053,19 @@ private constructor(
*
* The following fields are required:
* ```java
- * .wireTransferType()
+ * .wireNetwork()
* ```
*
* @throws IllegalStateException if any required field is unset.
*/
fun build(): WireMethodAttributes =
WireMethodAttributes(
- checkRequired("wireTransferType", wireTransferType),
- externalBankName,
- externalBankRoutingNumber,
- externalIndividualName,
- imad,
- lithicBankName,
- lithicBankRoutingNumber,
- lithicIndividualName,
- omad,
- previousTransfer,
- wireToken,
+ checkRequired("wireNetwork", wireNetwork),
+ creditor,
+ debtor,
+ messageId,
+ remittanceInformation,
+ wireMessageType,
additionalProperties.toMutableMap(),
)
}
@@ -11296,17 +11077,12 @@ private constructor(
return@apply
}
- wireTransferType().validate()
- externalBankName()
- externalBankRoutingNumber()
- externalIndividualName()
- imad()
- lithicBankName()
- lithicBankRoutingNumber()
- lithicIndividualName()
- omad()
- previousTransfer()
- wireToken()
+ wireNetwork().validate()
+ creditor().ifPresent { it.validate() }
+ debtor().ifPresent { it.validate() }
+ messageId()
+ remittanceInformation()
+ wireMessageType()
validated = true
}
@@ -11326,20 +11102,15 @@ private constructor(
*/
@JvmSynthetic
internal fun validity(): Int =
- (wireTransferType.asKnown().getOrNull()?.validity() ?: 0) +
- (if (externalBankName.asKnown().isPresent) 1 else 0) +
- (if (externalBankRoutingNumber.asKnown().isPresent) 1 else 0) +
- (if (externalIndividualName.asKnown().isPresent) 1 else 0) +
- (if (imad.asKnown().isPresent) 1 else 0) +
- (if (lithicBankName.asKnown().isPresent) 1 else 0) +
- (if (lithicBankRoutingNumber.asKnown().isPresent) 1 else 0) +
- (if (lithicIndividualName.asKnown().isPresent) 1 else 0) +
- (if (omad.asKnown().isPresent) 1 else 0) +
- (if (previousTransfer.asKnown().isPresent) 1 else 0) +
- (if (wireToken.asKnown().isPresent) 1 else 0)
+ (wireNetwork.asKnown().getOrNull()?.validity() ?: 0) +
+ (creditor.asKnown().getOrNull()?.validity() ?: 0) +
+ (debtor.asKnown().getOrNull()?.validity() ?: 0) +
+ (if (messageId.asKnown().isPresent) 1 else 0) +
+ (if (remittanceInformation.asKnown().isPresent) 1 else 0) +
+ (if (wireMessageType.asKnown().isPresent) 1 else 0)
/** Type of wire transfer */
- class WireTransferType
+ class WireNetwork
@JsonCreator
private constructor(private val value: JsonField) : Enum {
@@ -11360,20 +11131,20 @@ private constructor(
@JvmField val SWIFT = of("SWIFT")
- @JvmStatic fun of(value: String) = WireTransferType(JsonField.of(value))
+ @JvmStatic fun of(value: String) = WireNetwork(JsonField.of(value))
}
- /** An enum containing [WireTransferType]'s known values. */
+ /** An enum containing [WireNetwork]'s known values. */
enum class Known {
FEDWIRE,
SWIFT,
}
/**
- * An enum containing [WireTransferType]'s known values, as well as an
- * [_UNKNOWN] member.
+ * An enum containing [WireNetwork]'s known values, as well as an [_UNKNOWN]
+ * member.
*
- * An instance of [WireTransferType] can contain an unknown value in a couple of
+ * An instance of [WireNetwork] 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
@@ -11384,8 +11155,8 @@ private constructor(
FEDWIRE,
SWIFT,
/**
- * An enum member indicating that [WireTransferType] was instantiated with
- * an unknown value.
+ * An enum member indicating that [WireNetwork] was instantiated with an
+ * unknown value.
*/
_UNKNOWN,
}
@@ -11417,8 +11188,7 @@ private constructor(
when (this) {
FEDWIRE -> Known.FEDWIRE
SWIFT -> Known.SWIFT
- else ->
- throw LithicInvalidDataException("Unknown WireTransferType: $value")
+ else -> throw LithicInvalidDataException("Unknown WireNetwork: $value")
}
/**
@@ -11437,7 +11207,7 @@ private constructor(
private var validated: Boolean = false
- fun validate(): WireTransferType = apply {
+ fun validate(): WireNetwork = apply {
if (validated) {
return@apply
}
@@ -11468,7 +11238,7 @@ private constructor(
return true
}
- return other is WireTransferType && value == other.value
+ return other is WireNetwork && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -11482,33 +11252,23 @@ private constructor(
}
return other is WireMethodAttributes &&
- wireTransferType == other.wireTransferType &&
- externalBankName == other.externalBankName &&
- externalBankRoutingNumber == other.externalBankRoutingNumber &&
- externalIndividualName == other.externalIndividualName &&
- imad == other.imad &&
- lithicBankName == other.lithicBankName &&
- lithicBankRoutingNumber == other.lithicBankRoutingNumber &&
- lithicIndividualName == other.lithicIndividualName &&
- omad == other.omad &&
- previousTransfer == other.previousTransfer &&
- wireToken == other.wireToken &&
+ wireNetwork == other.wireNetwork &&
+ creditor == other.creditor &&
+ debtor == other.debtor &&
+ messageId == other.messageId &&
+ remittanceInformation == other.remittanceInformation &&
+ wireMessageType == other.wireMessageType &&
additionalProperties == other.additionalProperties
}
private val hashCode: Int by lazy {
Objects.hash(
- wireTransferType,
- externalBankName,
- externalBankRoutingNumber,
- externalIndividualName,
- imad,
- lithicBankName,
- lithicBankRoutingNumber,
- lithicIndividualName,
- omad,
- previousTransfer,
- wireToken,
+ wireNetwork,
+ creditor,
+ debtor,
+ messageId,
+ remittanceInformation,
+ wireMessageType,
additionalProperties,
)
}
@@ -11516,7 +11276,7 @@ private constructor(
override fun hashCode(): Int = hashCode
override fun toString() =
- "WireMethodAttributes{wireTransferType=$wireTransferType, externalBankName=$externalBankName, externalBankRoutingNumber=$externalBankRoutingNumber, externalIndividualName=$externalIndividualName, imad=$imad, lithicBankName=$lithicBankName, lithicBankRoutingNumber=$lithicBankRoutingNumber, lithicIndividualName=$lithicIndividualName, omad=$omad, previousTransfer=$previousTransfer, wireToken=$wireToken, additionalProperties=$additionalProperties}"
+ "WireMethodAttributes{wireNetwork=$wireNetwork, creditor=$creditor, debtor=$debtor, messageId=$messageId, remittanceInformation=$remittanceInformation, wireMessageType=$wireMessageType, additionalProperties=$additionalProperties}"
}
}
@@ -12173,6 +11933,173 @@ private constructor(
override fun toString() = value.toString()
}
+ class TransferType @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 ORIGINATION_CREDIT = of("ORIGINATION_CREDIT")
+
+ @JvmField val ORIGINATION_DEBIT = of("ORIGINATION_DEBIT")
+
+ @JvmField val RECEIPT_CREDIT = of("RECEIPT_CREDIT")
+
+ @JvmField val RECEIPT_DEBIT = of("RECEIPT_DEBIT")
+
+ @JvmField val WIRE_INBOUND_PAYMENT = of("WIRE_INBOUND_PAYMENT")
+
+ @JvmField val WIRE_INBOUND_ADMIN = of("WIRE_INBOUND_ADMIN")
+
+ @JvmField val WIRE_OUTBOUND_PAYMENT = of("WIRE_OUTBOUND_PAYMENT")
+
+ @JvmField val WIRE_OUTBOUND_ADMIN = of("WIRE_OUTBOUND_ADMIN")
+
+ @JvmStatic fun of(value: String) = TransferType(JsonField.of(value))
+ }
+
+ /** An enum containing [TransferType]'s known values. */
+ enum class Known {
+ ORIGINATION_CREDIT,
+ ORIGINATION_DEBIT,
+ RECEIPT_CREDIT,
+ RECEIPT_DEBIT,
+ WIRE_INBOUND_PAYMENT,
+ WIRE_INBOUND_ADMIN,
+ WIRE_OUTBOUND_PAYMENT,
+ WIRE_OUTBOUND_ADMIN,
+ }
+
+ /**
+ * An enum containing [TransferType]'s known values, as well as an [_UNKNOWN] member.
+ *
+ * An instance of [TransferType] 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 {
+ ORIGINATION_CREDIT,
+ ORIGINATION_DEBIT,
+ RECEIPT_CREDIT,
+ RECEIPT_DEBIT,
+ WIRE_INBOUND_PAYMENT,
+ WIRE_INBOUND_ADMIN,
+ WIRE_OUTBOUND_PAYMENT,
+ WIRE_OUTBOUND_ADMIN,
+ /**
+ * An enum member indicating that [TransferType] 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) {
+ ORIGINATION_CREDIT -> Value.ORIGINATION_CREDIT
+ ORIGINATION_DEBIT -> Value.ORIGINATION_DEBIT
+ RECEIPT_CREDIT -> Value.RECEIPT_CREDIT
+ RECEIPT_DEBIT -> Value.RECEIPT_DEBIT
+ WIRE_INBOUND_PAYMENT -> Value.WIRE_INBOUND_PAYMENT
+ WIRE_INBOUND_ADMIN -> Value.WIRE_INBOUND_ADMIN
+ WIRE_OUTBOUND_PAYMENT -> Value.WIRE_OUTBOUND_PAYMENT
+ WIRE_OUTBOUND_ADMIN -> Value.WIRE_OUTBOUND_ADMIN
+ 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) {
+ ORIGINATION_CREDIT -> Known.ORIGINATION_CREDIT
+ ORIGINATION_DEBIT -> Known.ORIGINATION_DEBIT
+ RECEIPT_CREDIT -> Known.RECEIPT_CREDIT
+ RECEIPT_DEBIT -> Known.RECEIPT_DEBIT
+ WIRE_INBOUND_PAYMENT -> Known.WIRE_INBOUND_PAYMENT
+ WIRE_INBOUND_ADMIN -> Known.WIRE_INBOUND_ADMIN
+ WIRE_OUTBOUND_PAYMENT -> Known.WIRE_OUTBOUND_PAYMENT
+ WIRE_OUTBOUND_ADMIN -> Known.WIRE_OUTBOUND_ADMIN
+ else -> throw LithicInvalidDataException("Unknown TransferType: $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
+
+ fun validate(): TransferType = 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 TransferType && value == other.value
+ }
+
+ override fun hashCode() = value.hashCode()
+
+ override fun toString() = value.toString()
+ }
+
override fun equals(other: Any?): Boolean {
if (this === other) {
return true
@@ -12199,6 +12126,7 @@ private constructor(
currency == other.currency &&
expectedReleaseDate == other.expectedReleaseDate &&
externalBankAccountToken == other.externalBankAccountToken &&
+ type == other.type &&
userDefinedId == other.userDefinedId &&
additionalProperties == other.additionalProperties
}
@@ -12225,6 +12153,7 @@ private constructor(
currency,
expectedReleaseDate,
externalBankAccountToken,
+ type,
userDefinedId,
additionalProperties,
)
@@ -12233,6 +12162,6 @@ private constructor(
override fun hashCode(): Int = hashCode
override fun toString() =
- "PaymentTransaction{token=$token, category=$category, created=$created, descriptor=$descriptor, direction=$direction, events=$events, family=$family, financialAccountToken=$financialAccountToken, method=$method, methodAttributes=$methodAttributes, pendingAmount=$pendingAmount, relatedAccountTokens=$relatedAccountTokens, result=$result, settledAmount=$settledAmount, source=$source, status=$status, updated=$updated, currency=$currency, expectedReleaseDate=$expectedReleaseDate, externalBankAccountToken=$externalBankAccountToken, userDefinedId=$userDefinedId, additionalProperties=$additionalProperties}"
+ "PaymentTransaction{token=$token, category=$category, created=$created, descriptor=$descriptor, direction=$direction, events=$events, family=$family, financialAccountToken=$financialAccountToken, method=$method, methodAttributes=$methodAttributes, pendingAmount=$pendingAmount, relatedAccountTokens=$relatedAccountTokens, result=$result, settledAmount=$settledAmount, source=$source, status=$status, updated=$updated, currency=$currency, expectedReleaseDate=$expectedReleaseDate, externalBankAccountToken=$externalBankAccountToken, type=$type, userDefinedId=$userDefinedId, additionalProperties=$additionalProperties}"
}
}
diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountActivityRetrieveTransactionResponse.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountActivityRetrieveTransactionResponse.kt
index 042108621..1e8946198 100644
--- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountActivityRetrieveTransactionResponse.kt
+++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountActivityRetrieveTransactionResponse.kt
@@ -4512,6 +4512,8 @@ private constructor(
@JvmField val TRANSFER = of("TRANSFER")
+ @JvmField val COLLECTION = of("COLLECTION")
+
@JvmStatic fun of(value: String) = BookTransferType(JsonField.of(value))
}
@@ -4550,6 +4552,7 @@ private constructor(
DISPUTE_WON,
SERVICE,
TRANSFER,
+ COLLECTION,
}
/**
@@ -4597,6 +4600,7 @@ private constructor(
DISPUTE_WON,
SERVICE,
TRANSFER,
+ COLLECTION,
/**
* An enum member indicating that [BookTransferType] was instantiated with an
* unknown value.
@@ -4646,6 +4650,7 @@ private constructor(
DISPUTE_WON -> Value.DISPUTE_WON
SERVICE -> Value.SERVICE
TRANSFER -> Value.TRANSFER
+ COLLECTION -> Value.COLLECTION
else -> Value._UNKNOWN
}
@@ -4693,6 +4698,7 @@ private constructor(
DISPUTE_WON -> Known.DISPUTE_WON
SERVICE -> Known.SERVICE
TRANSFER -> Known.TRANSFER
+ COLLECTION -> Known.COLLECTION
else -> throw LithicInvalidDataException("Unknown BookTransferType: $value")
}
@@ -7350,6 +7356,7 @@ private constructor(
private val currency: JsonField,
private val expectedReleaseDate: JsonField,
private val externalBankAccountToken: JsonField,
+ private val type: JsonField,
private val userDefinedId: JsonField,
private val additionalProperties: MutableMap,
) {
@@ -7410,6 +7417,7 @@ private constructor(
@JsonProperty("external_bank_account_token")
@ExcludeMissing
externalBankAccountToken: JsonField = JsonMissing.of(),
+ @JsonProperty("type") @ExcludeMissing type: JsonField = JsonMissing.of(),
@JsonProperty("user_defined_id")
@ExcludeMissing
userDefinedId: JsonField = JsonMissing.of(),
@@ -7434,6 +7442,7 @@ private constructor(
currency,
expectedReleaseDate,
externalBankAccountToken,
+ type,
userDefinedId,
mutableMapOf(),
)
@@ -7600,6 +7609,12 @@ private constructor(
fun externalBankAccountToken(): Optional =
externalBankAccountToken.getOptional("external_bank_account_token")
+ /**
+ * @throws LithicInvalidDataException if the JSON field has an unexpected type (e.g. if the
+ * server responded with an unexpected value).
+ */
+ fun type(): Optional = type.getOptional("type")
+
/**
* User-defined identifier
*
@@ -7779,6 +7794,13 @@ private constructor(
@ExcludeMissing
fun _externalBankAccountToken(): JsonField = externalBankAccountToken
+ /**
+ * Returns the raw JSON value of [type].
+ *
+ * Unlike [type], this method doesn't throw if the JSON field has an unexpected type.
+ */
+ @JsonProperty("type") @ExcludeMissing fun _type(): JsonField = type
+
/**
* Returns the raw JSON value of [userDefinedId].
*
@@ -7853,6 +7875,7 @@ private constructor(
private var currency: JsonField = JsonMissing.of()
private var expectedReleaseDate: JsonField = JsonMissing.of()
private var externalBankAccountToken: JsonField = JsonMissing.of()
+ private var type: JsonField = JsonMissing.of()
private var userDefinedId: JsonField = JsonMissing.of()
private var additionalProperties: MutableMap = mutableMapOf()
@@ -7878,6 +7901,7 @@ private constructor(
currency = paymentTransaction.currency
expectedReleaseDate = paymentTransaction.expectedReleaseDate
externalBankAccountToken = paymentTransaction.externalBankAccountToken
+ type = paymentTransaction.type
userDefinedId = paymentTransaction.userDefinedId
additionalProperties = paymentTransaction.additionalProperties.toMutableMap()
}
@@ -8179,6 +8203,17 @@ private constructor(
this.externalBankAccountToken = externalBankAccountToken
}
+ fun type(type: TransferType) = type(JsonField.of(type))
+
+ /**
+ * Sets [Builder.type] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.type] with a well-typed [TransferType] value
+ * instead. This method is primarily for setting the field to an undocumented or not yet
+ * supported value.
+ */
+ fun type(type: JsonField) = apply { this.type = type }
+
/** User-defined identifier */
fun userDefinedId(userDefinedId: String?) =
userDefinedId(JsonField.ofNullable(userDefinedId))
@@ -8267,6 +8302,7 @@ private constructor(
currency,
expectedReleaseDate,
externalBankAccountToken,
+ type,
userDefinedId,
additionalProperties.toMutableMap(),
)
@@ -8299,6 +8335,7 @@ private constructor(
currency()
expectedReleaseDate()
externalBankAccountToken()
+ type().ifPresent { it.validate() }
userDefinedId()
validated = true
}
@@ -8339,6 +8376,7 @@ private constructor(
(if (currency.asKnown().isPresent) 1 else 0) +
(if (expectedReleaseDate.asKnown().isPresent) 1 else 0) +
(if (externalBankAccountToken.asKnown().isPresent) 1 else 0) +
+ (type.asKnown().getOrNull()?.validity() ?: 0) +
(if (userDefinedId.asKnown().isPresent) 1 else 0)
/** Transaction category */
@@ -10724,67 +10762,42 @@ private constructor(
class WireMethodAttributes
private constructor(
- private val wireTransferType: JsonField,
- private val externalBankName: JsonField,
- private val externalBankRoutingNumber: JsonField,
- private val externalIndividualName: JsonField,
- private val imad: JsonField,
- private val lithicBankName: JsonField,
- private val lithicBankRoutingNumber: JsonField,
- private val lithicIndividualName: JsonField,
- private val omad: JsonField,
- private val previousTransfer: JsonField,
- private val wireToken: JsonField,
+ private val wireNetwork: JsonField,
+ private val creditor: JsonField,
+ private val debtor: JsonField,
+ private val messageId: JsonField,
+ private val remittanceInformation: JsonField,
+ private val wireMessageType: JsonField,
private val additionalProperties: MutableMap,
) {
@JsonCreator
private constructor(
- @JsonProperty("wire_transfer_type")
- @ExcludeMissing
- wireTransferType: JsonField = JsonMissing.of(),
- @JsonProperty("external_bank_name")
- @ExcludeMissing
- externalBankName: JsonField = JsonMissing.of(),
- @JsonProperty("external_bank_routing_number")
- @ExcludeMissing
- externalBankRoutingNumber: JsonField = JsonMissing.of(),
- @JsonProperty("external_individual_name")
- @ExcludeMissing
- externalIndividualName: JsonField = JsonMissing.of(),
- @JsonProperty("imad")
+ @JsonProperty("wire_network")
@ExcludeMissing
- imad: JsonField = JsonMissing.of(),
- @JsonProperty("lithic_bank_name")
+ wireNetwork: JsonField = JsonMissing.of(),
+ @JsonProperty("creditor")
@ExcludeMissing
- lithicBankName: JsonField = JsonMissing.of(),
- @JsonProperty("lithic_bank_routing_number")
+ creditor: JsonField = JsonMissing.of(),
+ @JsonProperty("debtor")
@ExcludeMissing
- lithicBankRoutingNumber: JsonField = JsonMissing.of(),
- @JsonProperty("lithic_individual_name")
+ debtor: JsonField = JsonMissing.of(),
+ @JsonProperty("message_id")
@ExcludeMissing
- lithicIndividualName: JsonField = JsonMissing.of(),
- @JsonProperty("omad")
+ messageId: JsonField = JsonMissing.of(),
+ @JsonProperty("remittance_information")
@ExcludeMissing
- omad: JsonField = JsonMissing.of(),
- @JsonProperty("previous_transfer")
+ remittanceInformation: JsonField = JsonMissing.of(),
+ @JsonProperty("wire_message_type")
@ExcludeMissing
- previousTransfer: JsonField = JsonMissing.of(),
- @JsonProperty("wire_token")
- @ExcludeMissing
- wireToken: JsonField = JsonMissing.of(),
+ wireMessageType: JsonField = JsonMissing.of(),
) : this(
- wireTransferType,
- externalBankName,
- externalBankRoutingNumber,
- externalIndividualName,
- imad,
- lithicBankName,
- lithicBankRoutingNumber,
- lithicIndividualName,
- omad,
- previousTransfer,
- wireToken,
+ wireNetwork,
+ creditor,
+ debtor,
+ messageId,
+ remittanceInformation,
+ wireMessageType,
mutableMapOf(),
)
@@ -10795,201 +10808,106 @@ private constructor(
* unexpectedly missing or null (e.g. if the server responded with an unexpected
* value).
*/
- fun wireTransferType(): WireTransferType =
- wireTransferType.getRequired("wire_transfer_type")
+ fun wireNetwork(): WireNetwork = wireNetwork.getRequired("wire_network")
/**
- * External bank name
- *
* @throws LithicInvalidDataException if the JSON field has an unexpected type (e.g.
* if the server responded with an unexpected value).
*/
- fun externalBankName(): Optional =
- externalBankName.getOptional("external_bank_name")
+ fun creditor(): Optional = creditor.getOptional("creditor")
/**
- * External bank routing number
- *
* @throws LithicInvalidDataException if the JSON field has an unexpected type (e.g.
* if the server responded with an unexpected value).
*/
- fun externalBankRoutingNumber(): Optional =
- externalBankRoutingNumber.getOptional("external_bank_routing_number")
+ fun debtor(): Optional = debtor.getOptional("debtor")
/**
- * External individual name
+ * Point to point reference identifier, as assigned by the instructing party, used
+ * for tracking the message through the Fedwire system
*
* @throws LithicInvalidDataException if the JSON field has an unexpected type (e.g.
* if the server responded with an unexpected value).
*/
- fun externalIndividualName(): Optional =
- externalIndividualName.getOptional("external_individual_name")
+ fun messageId(): Optional = messageId.getOptional("message_id")
/**
- * IMAD
+ * Payment details or invoice reference
*
* @throws LithicInvalidDataException if the JSON field has an unexpected type (e.g.
* if the server responded with an unexpected value).
*/
- fun imad(): Optional = imad.getOptional("imad")
+ fun remittanceInformation(): Optional =
+ remittanceInformation.getOptional("remittance_information")
/**
- * Lithic bank name
+ * Type of wire message
*
* @throws LithicInvalidDataException if the JSON field has an unexpected type (e.g.
* if the server responded with an unexpected value).
*/
- fun lithicBankName(): Optional =
- lithicBankName.getOptional("lithic_bank_name")
+ fun wireMessageType(): Optional =
+ wireMessageType.getOptional("wire_message_type")
/**
- * Lithic bank routing number
+ * Returns the raw JSON value of [wireNetwork].
*
- * @throws LithicInvalidDataException if the JSON field has an unexpected type (e.g.
- * if the server responded with an unexpected value).
- */
- fun lithicBankRoutingNumber(): Optional =
- lithicBankRoutingNumber.getOptional("lithic_bank_routing_number")
-
- /**
- * Lithic individual name
- *
- * @throws LithicInvalidDataException if the JSON field has an unexpected type (e.g.
- * if the server responded with an unexpected value).
- */
- fun lithicIndividualName(): Optional =
- lithicIndividualName.getOptional("lithic_individual_name")
-
- /**
- * OMAD
- *
- * @throws LithicInvalidDataException if the JSON field has an unexpected type (e.g.
- * if the server responded with an unexpected value).
- */
- fun omad(): Optional = omad.getOptional("omad")
-
- /**
- * UUID of previous transfer if this is a retry
- *
- * @throws LithicInvalidDataException if the JSON field has an unexpected type (e.g.
- * if the server responded with an unexpected value).
- */
- fun previousTransfer(): Optional =
- previousTransfer.getOptional("previous_transfer")
-
- /**
- * Wire token
- *
- * @throws LithicInvalidDataException if the JSON field has an unexpected type (e.g.
- * if the server responded with an unexpected value).
- */
- fun wireToken(): Optional = wireToken.getOptional("wire_token")
-
- /**
- * Returns the raw JSON value of [wireTransferType].
- *
- * Unlike [wireTransferType], this method doesn't throw if the JSON field has an
+ * Unlike [wireNetwork], this method doesn't throw if the JSON field has an
* unexpected type.
*/
- @JsonProperty("wire_transfer_type")
+ @JsonProperty("wire_network")
@ExcludeMissing
- fun _wireTransferType(): JsonField = wireTransferType
+ fun _wireNetwork(): JsonField = wireNetwork
/**
- * Returns the raw JSON value of [externalBankName].
+ * Returns the raw JSON value of [creditor].
*
- * Unlike [externalBankName], this method doesn't throw if the JSON field has an
- * unexpected type.
- */
- @JsonProperty("external_bank_name")
- @ExcludeMissing
- fun _externalBankName(): JsonField = externalBankName
-
- /**
- * Returns the raw JSON value of [externalBankRoutingNumber].
- *
- * Unlike [externalBankRoutingNumber], this method doesn't throw if the JSON field
- * has an unexpected type.
+ * Unlike [creditor], this method doesn't throw if the JSON field has an unexpected
+ * type.
*/
- @JsonProperty("external_bank_routing_number")
+ @JsonProperty("creditor")
@ExcludeMissing
- fun _externalBankRoutingNumber(): JsonField = externalBankRoutingNumber
+ fun _creditor(): JsonField = creditor
/**
- * Returns the raw JSON value of [externalIndividualName].
+ * Returns the raw JSON value of [debtor].
*
- * Unlike [externalIndividualName], this method doesn't throw if the JSON field has
- * an unexpected type.
+ * Unlike [debtor], this method doesn't throw if the JSON field has an unexpected
+ * type.
*/
- @JsonProperty("external_individual_name")
+ @JsonProperty("debtor")
@ExcludeMissing
- fun _externalIndividualName(): JsonField = externalIndividualName
+ fun _debtor(): JsonField = debtor
/**
- * Returns the raw JSON value of [imad].
+ * Returns the raw JSON value of [messageId].
*
- * Unlike [imad], this method doesn't throw if the JSON field has an unexpected
+ * Unlike [messageId], this method doesn't throw if the JSON field has an unexpected
* type.
*/
- @JsonProperty("imad") @ExcludeMissing fun _imad(): JsonField = imad
-
- /**
- * Returns the raw JSON value of [lithicBankName].
- *
- * Unlike [lithicBankName], this method doesn't throw if the JSON field has an
- * unexpected type.
- */
- @JsonProperty("lithic_bank_name")
+ @JsonProperty("message_id")
@ExcludeMissing
- fun _lithicBankName(): JsonField = lithicBankName
+ fun _messageId(): JsonField = messageId
/**
- * Returns the raw JSON value of [lithicBankRoutingNumber].
+ * Returns the raw JSON value of [remittanceInformation].
*
- * Unlike [lithicBankRoutingNumber], this method doesn't throw if the JSON field has
+ * Unlike [remittanceInformation], this method doesn't throw if the JSON field has
* an unexpected type.
*/
- @JsonProperty("lithic_bank_routing_number")
- @ExcludeMissing
- fun _lithicBankRoutingNumber(): JsonField = lithicBankRoutingNumber
-
- /**
- * Returns the raw JSON value of [lithicIndividualName].
- *
- * Unlike [lithicIndividualName], this method doesn't throw if the JSON field has an
- * unexpected type.
- */
- @JsonProperty("lithic_individual_name")
+ @JsonProperty("remittance_information")
@ExcludeMissing
- fun _lithicIndividualName(): JsonField = lithicIndividualName
+ fun _remittanceInformation(): JsonField = remittanceInformation
/**
- * Returns the raw JSON value of [omad].
+ * Returns the raw JSON value of [wireMessageType].
*
- * Unlike [omad], this method doesn't throw if the JSON field has an unexpected
- * type.
- */
- @JsonProperty("omad") @ExcludeMissing fun _omad(): JsonField = omad
-
- /**
- * Returns the raw JSON value of [previousTransfer].
- *
- * Unlike [previousTransfer], this method doesn't throw if the JSON field has an
+ * Unlike [wireMessageType], this method doesn't throw if the JSON field has an
* unexpected type.
*/
- @JsonProperty("previous_transfer")
+ @JsonProperty("wire_message_type")
@ExcludeMissing
- fun _previousTransfer(): JsonField = previousTransfer
-
- /**
- * Returns the raw JSON value of [wireToken].
- *
- * Unlike [wireToken], this method doesn't throw if the JSON field has an unexpected
- * type.
- */
- @JsonProperty("wire_token")
- @ExcludeMissing
- fun _wireToken(): JsonField = wireToken
+ fun _wireMessageType(): JsonField = wireMessageType
@JsonAnySetter
private fun putAdditionalProperty(key: String, value: JsonValue) {
@@ -11011,7 +10929,7 @@ private constructor(
*
* The following fields are required:
* ```java
- * .wireTransferType()
+ * .wireNetwork()
* ```
*/
@JvmStatic fun builder() = Builder()
@@ -11020,252 +10938,120 @@ private constructor(
/** A builder for [WireMethodAttributes]. */
class Builder internal constructor() {
- private var wireTransferType: JsonField? = null
- private var externalBankName: JsonField = JsonMissing.of()
- private var externalBankRoutingNumber: JsonField = JsonMissing.of()
- private var externalIndividualName: JsonField = JsonMissing.of()
- private var imad: JsonField = JsonMissing.of()
- private var lithicBankName: JsonField = JsonMissing.of()
- private var lithicBankRoutingNumber: JsonField = JsonMissing.of()
- private var lithicIndividualName: JsonField = JsonMissing.of()
- private var omad: JsonField = JsonMissing.of()
- private var previousTransfer: JsonField = JsonMissing.of()
- private var wireToken: JsonField = JsonMissing.of()
+ private var wireNetwork: JsonField? = null
+ private var creditor: JsonField = JsonMissing.of()
+ private var debtor: JsonField = JsonMissing.of()
+ private var messageId: JsonField = JsonMissing.of()
+ private var remittanceInformation: JsonField = JsonMissing.of()
+ private var wireMessageType: JsonField = JsonMissing.of()
private var additionalProperties: MutableMap = mutableMapOf()
@JvmSynthetic
internal fun from(wireMethodAttributes: WireMethodAttributes) = apply {
- wireTransferType = wireMethodAttributes.wireTransferType
- externalBankName = wireMethodAttributes.externalBankName
- externalBankRoutingNumber = wireMethodAttributes.externalBankRoutingNumber
- externalIndividualName = wireMethodAttributes.externalIndividualName
- imad = wireMethodAttributes.imad
- lithicBankName = wireMethodAttributes.lithicBankName
- lithicBankRoutingNumber = wireMethodAttributes.lithicBankRoutingNumber
- lithicIndividualName = wireMethodAttributes.lithicIndividualName
- omad = wireMethodAttributes.omad
- previousTransfer = wireMethodAttributes.previousTransfer
- wireToken = wireMethodAttributes.wireToken
+ wireNetwork = wireMethodAttributes.wireNetwork
+ creditor = wireMethodAttributes.creditor
+ debtor = wireMethodAttributes.debtor
+ messageId = wireMethodAttributes.messageId
+ remittanceInformation = wireMethodAttributes.remittanceInformation
+ wireMessageType = wireMethodAttributes.wireMessageType
additionalProperties =
wireMethodAttributes.additionalProperties.toMutableMap()
}
/** Type of wire transfer */
- fun wireTransferType(wireTransferType: WireTransferType) =
- wireTransferType(JsonField.of(wireTransferType))
+ fun wireNetwork(wireNetwork: WireNetwork) =
+ wireNetwork(JsonField.of(wireNetwork))
/**
- * Sets [Builder.wireTransferType] to an arbitrary JSON value.
+ * Sets [Builder.wireNetwork] to an arbitrary JSON value.
*
- * You should usually call [Builder.wireTransferType] with a well-typed
- * [WireTransferType] value instead. This method is primarily for setting the
- * field to an undocumented or not yet supported value.
+ * You should usually call [Builder.wireNetwork] with a well-typed [WireNetwork]
+ * value instead. This method is primarily for setting the field to an
+ * undocumented or not yet supported value.
*/
- fun wireTransferType(wireTransferType: JsonField) = apply {
- this.wireTransferType = wireTransferType
+ fun wireNetwork(wireNetwork: JsonField) = apply {
+ this.wireNetwork = wireNetwork
}
- /** External bank name */
- fun externalBankName(externalBankName: String?) =
- externalBankName(JsonField.ofNullable(externalBankName))
+ fun creditor(creditor: WirePartyDetails) = creditor(JsonField.of(creditor))
/**
- * Alias for calling [Builder.externalBankName] with
- * `externalBankName.orElse(null)`.
- */
- fun externalBankName(externalBankName: Optional) =
- externalBankName(externalBankName.getOrNull())
-
- /**
- * Sets [Builder.externalBankName] to an arbitrary JSON value.
+ * Sets [Builder.creditor] to an arbitrary JSON value.
*
- * You should usually call [Builder.externalBankName] with a well-typed [String]
- * value instead. This method is primarily for setting the field to an
- * undocumented or not yet supported value.
+ * You should usually call [Builder.creditor] with a well-typed
+ * [WirePartyDetails] value instead. This method is primarily for setting the
+ * field to an undocumented or not yet supported value.
*/
- fun externalBankName(externalBankName: JsonField) = apply {
- this.externalBankName = externalBankName
+ fun creditor(creditor: JsonField) = apply {
+ this.creditor = creditor
}
- /** External bank routing number */
- fun externalBankRoutingNumber(externalBankRoutingNumber: String?) =
- externalBankRoutingNumber(JsonField.ofNullable(externalBankRoutingNumber))
+ fun debtor(debtor: WirePartyDetails) = debtor(JsonField.of(debtor))
/**
- * Alias for calling [Builder.externalBankRoutingNumber] with
- * `externalBankRoutingNumber.orElse(null)`.
- */
- fun externalBankRoutingNumber(externalBankRoutingNumber: Optional) =
- externalBankRoutingNumber(externalBankRoutingNumber.getOrNull())
-
- /**
- * Sets [Builder.externalBankRoutingNumber] to an arbitrary JSON value.
+ * Sets [Builder.debtor] to an arbitrary JSON value.
*
- * You should usually call [Builder.externalBankRoutingNumber] with a well-typed
- * [String] value instead. This method is primarily for setting the field to an
+ * You should usually call [Builder.debtor] with a well-typed [WirePartyDetails]
+ * value instead. This method is primarily for setting the field to an
* undocumented or not yet supported value.
*/
- fun externalBankRoutingNumber(externalBankRoutingNumber: JsonField) =
- apply {
- this.externalBankRoutingNumber = externalBankRoutingNumber
- }
-
- /** External individual name */
- fun externalIndividualName(externalIndividualName: String?) =
- externalIndividualName(JsonField.ofNullable(externalIndividualName))
+ fun debtor(debtor: JsonField) = apply { this.debtor = debtor }
/**
- * Alias for calling [Builder.externalIndividualName] with
- * `externalIndividualName.orElse(null)`.
+ * Point to point reference identifier, as assigned by the instructing party,
+ * used for tracking the message through the Fedwire system
*/
- fun externalIndividualName(externalIndividualName: Optional) =
- externalIndividualName(externalIndividualName.getOrNull())
+ fun messageId(messageId: String?) = messageId(JsonField.ofNullable(messageId))
- /**
- * Sets [Builder.externalIndividualName] to an arbitrary JSON value.
- *
- * You should usually call [Builder.externalIndividualName] with a well-typed
- * [String] value instead. This method is primarily for setting the field to an
- * undocumented or not yet supported value.
- */
- fun externalIndividualName(externalIndividualName: JsonField) = apply {
- this.externalIndividualName = externalIndividualName
- }
-
- /** IMAD */
- fun imad(imad: String?) = imad(JsonField.ofNullable(imad))
-
- /** Alias for calling [Builder.imad] with `imad.orElse(null)`. */
- fun imad(imad: Optional) = imad(imad.getOrNull())
+ /** Alias for calling [Builder.messageId] with `messageId.orElse(null)`. */
+ fun messageId(messageId: Optional