@@ -43,6 +43,7 @@ private constructor(
4343 private val partyType: JsonField <PartyType >,
4444 private val routingDetails: JsonField <List <RoutingDetail >>,
4545 private val updatedAt: JsonField <OffsetDateTime >,
46+ private val vendorId: JsonField <String >,
4647 private val additionalProperties: MutableMap <String , JsonValue >,
4748) {
4849
@@ -94,6 +95,7 @@ private constructor(
9495 @JsonProperty(" updated_at" )
9596 @ExcludeMissing
9697 updatedAt: JsonField <OffsetDateTime > = JsonMissing .of(),
98+ @JsonProperty(" vendor_id" ) @ExcludeMissing vendorId: JsonField <String > = JsonMissing .of(),
9799 ) : this (
98100 id,
99101 accountCapabilities,
@@ -115,6 +117,7 @@ private constructor(
115117 partyType,
116118 routingDetails,
117119 updatedAt,
120+ vendorId,
118121 mutableMapOf (),
119122 )
120123
@@ -190,7 +193,7 @@ private constructor(
190193 fun ledgerAccountId (): Optional <String > = ledgerAccountId.getOptional(" ledger_account_id" )
191194
192195 /* *
193- * The Legal Entity associated to this account
196+ * The Legal Entity associated to this account.
194197 *
195198 * @throws ModernTreasuryInvalidDataException if the JSON field has an unexpected type (e.g. if
196199 * the server responded with an unexpected value).
@@ -274,6 +277,14 @@ private constructor(
274277 */
275278 fun updatedAt (): OffsetDateTime = updatedAt.getRequired(" updated_at" )
276279
280+ /* *
281+ * The vendor ID associated with this account.
282+ *
283+ * @throws ModernTreasuryInvalidDataException if the JSON field has an unexpected type (e.g. if
284+ * the server responded with an unexpected value).
285+ */
286+ fun vendorId (): Optional <String > = vendorId.getOptional(" vendor_id" )
287+
277288 /* *
278289 * Returns the raw JSON value of [id].
279290 *
@@ -439,6 +450,13 @@ private constructor(
439450 @ExcludeMissing
440451 fun _updatedAt (): JsonField <OffsetDateTime > = updatedAt
441452
453+ /* *
454+ * Returns the raw JSON value of [vendorId].
455+ *
456+ * Unlike [vendorId], this method doesn't throw if the JSON field has an unexpected type.
457+ */
458+ @JsonProperty(" vendor_id" ) @ExcludeMissing fun _vendorId (): JsonField <String > = vendorId
459+
442460 @JsonAnySetter
443461 private fun putAdditionalProperty (key : String , value : JsonValue ) {
444462 additionalProperties.put(key, value)
@@ -478,6 +496,7 @@ private constructor(
478496 * .partyType()
479497 * .routingDetails()
480498 * .updatedAt()
499+ * .vendorId()
481500 * ```
482501 */
483502 @JvmStatic fun builder () = Builder ()
@@ -506,6 +525,7 @@ private constructor(
506525 private var partyType: JsonField <PartyType >? = null
507526 private var routingDetails: JsonField <MutableList <RoutingDetail >>? = null
508527 private var updatedAt: JsonField <OffsetDateTime >? = null
528+ private var vendorId: JsonField <String >? = null
509529 private var additionalProperties: MutableMap <String , JsonValue > = mutableMapOf ()
510530
511531 @JvmSynthetic
@@ -530,6 +550,7 @@ private constructor(
530550 partyType = internalAccount.partyType
531551 routingDetails = internalAccount.routingDetails.map { it.toMutableList() }
532552 updatedAt = internalAccount.updatedAt
553+ vendorId = internalAccount.vendorId
533554 additionalProperties = internalAccount.additionalProperties.toMutableMap()
534555 }
535556
@@ -693,7 +714,7 @@ private constructor(
693714 this .ledgerAccountId = ledgerAccountId
694715 }
695716
696- /* * The Legal Entity associated to this account */
717+ /* * The Legal Entity associated to this account. */
697718 fun legalEntityId (legalEntityId : String? ) =
698719 legalEntityId(JsonField .ofNullable(legalEntityId))
699720
@@ -866,6 +887,20 @@ private constructor(
866887 */
867888 fun updatedAt (updatedAt : JsonField <OffsetDateTime >) = apply { this .updatedAt = updatedAt }
868889
890+ /* * The vendor ID associated with this account. */
891+ fun vendorId (vendorId : String? ) = vendorId(JsonField .ofNullable(vendorId))
892+
893+ /* * Alias for calling [Builder.vendorId] with `vendorId.orElse(null)`. */
894+ fun vendorId (vendorId : Optional <String >) = vendorId(vendorId.getOrNull())
895+
896+ /* *
897+ * Sets [Builder.vendorId] to an arbitrary JSON value.
898+ *
899+ * You should usually call [Builder.vendorId] with a well-typed [String] value instead. This
900+ * method is primarily for setting the field to an undocumented or not yet supported value.
901+ */
902+ fun vendorId (vendorId : JsonField <String >) = apply { this .vendorId = vendorId }
903+
869904 fun additionalProperties (additionalProperties : Map <String , JsonValue >) = apply {
870905 this .additionalProperties.clear()
871906 putAllAdditionalProperties(additionalProperties)
@@ -912,6 +947,7 @@ private constructor(
912947 * .partyType()
913948 * .routingDetails()
914949 * .updatedAt()
950+ * .vendorId()
915951 * ```
916952 *
917953 * @throws IllegalStateException if any required field is unset.
@@ -938,6 +974,7 @@ private constructor(
938974 checkRequired(" partyType" , partyType),
939975 checkRequired(" routingDetails" , routingDetails).map { it.toImmutable() },
940976 checkRequired(" updatedAt" , updatedAt),
977+ checkRequired(" vendorId" , vendorId),
941978 additionalProperties.toMutableMap(),
942979 )
943980 }
@@ -969,6 +1006,7 @@ private constructor(
9691006 partyType().ifPresent { it.validate() }
9701007 routingDetails().forEach { it.validate() }
9711008 updatedAt()
1009+ vendorId()
9721010 validated = true
9731011 }
9741012
@@ -1006,7 +1044,8 @@ private constructor(
10061044 (if (partyName.asKnown().isPresent) 1 else 0 ) +
10071045 (partyType.asKnown().getOrNull()?.validity() ? : 0 ) +
10081046 (routingDetails.asKnown().getOrNull()?.sumOf { it.validity().toInt() } ? : 0 ) +
1009- (if (updatedAt.asKnown().isPresent) 1 else 0 )
1047+ (if (updatedAt.asKnown().isPresent) 1 else 0 ) +
1048+ (if (vendorId.asKnown().isPresent) 1 else 0 )
10101049
10111050 class AccountCapability
10121051 private constructor (
@@ -2824,15 +2863,15 @@ private constructor(
28242863 return true
28252864 }
28262865
2827- return /* spotless:off */ other is InternalAccount && id == other.id && accountCapabilities == other.accountCapabilities && accountDetails == other.accountDetails && accountType == other.accountType && connection == other.connection && counterpartyId == other.counterpartyId && createdAt == other.createdAt && currency == other.currency && ledgerAccountId == other.ledgerAccountId && legalEntityId == other.legalEntityId && liveMode == other.liveMode && metadata == other.metadata && name == other.name && object_ == other.object_ && parentAccountId == other.parentAccountId && partyAddress == other.partyAddress && partyName == other.partyName && partyType == other.partyType && routingDetails == other.routingDetails && updatedAt == other.updatedAt && additionalProperties == other.additionalProperties /* spotless:on */
2866+ return /* spotless:off */ other is InternalAccount && id == other.id && accountCapabilities == other.accountCapabilities && accountDetails == other.accountDetails && accountType == other.accountType && connection == other.connection && counterpartyId == other.counterpartyId && createdAt == other.createdAt && currency == other.currency && ledgerAccountId == other.ledgerAccountId && legalEntityId == other.legalEntityId && liveMode == other.liveMode && metadata == other.metadata && name == other.name && object_ == other.object_ && parentAccountId == other.parentAccountId && partyAddress == other.partyAddress && partyName == other.partyName && partyType == other.partyType && routingDetails == other.routingDetails && updatedAt == other.updatedAt && vendorId == other.vendorId && additionalProperties == other.additionalProperties /* spotless:on */
28282867 }
28292868
28302869 /* spotless:off */
2831- private val hashCode: Int by lazy { Objects .hash(id, accountCapabilities, accountDetails, accountType, connection, counterpartyId, createdAt, currency, ledgerAccountId, legalEntityId, liveMode, metadata, name, object_, parentAccountId, partyAddress, partyName, partyType, routingDetails, updatedAt, additionalProperties) }
2870+ private val hashCode: Int by lazy { Objects .hash(id, accountCapabilities, accountDetails, accountType, connection, counterpartyId, createdAt, currency, ledgerAccountId, legalEntityId, liveMode, metadata, name, object_, parentAccountId, partyAddress, partyName, partyType, routingDetails, updatedAt, vendorId, additionalProperties) }
28322871 /* spotless:on */
28332872
28342873 override fun hashCode (): Int = hashCode
28352874
28362875 override fun toString () =
2837- " InternalAccount{id=$id , accountCapabilities=$accountCapabilities , accountDetails=$accountDetails , accountType=$accountType , connection=$connection , counterpartyId=$counterpartyId , createdAt=$createdAt , currency=$currency , ledgerAccountId=$ledgerAccountId , legalEntityId=$legalEntityId , liveMode=$liveMode , metadata=$metadata , name=$name , object_=$object_ , parentAccountId=$parentAccountId , partyAddress=$partyAddress , partyName=$partyName , partyType=$partyType , routingDetails=$routingDetails , updatedAt=$updatedAt , additionalProperties=$additionalProperties }"
2876+ " InternalAccount{id=$id , accountCapabilities=$accountCapabilities , accountDetails=$accountDetails , accountType=$accountType , connection=$connection , counterpartyId=$counterpartyId , createdAt=$createdAt , currency=$currency , ledgerAccountId=$ledgerAccountId , legalEntityId=$legalEntityId , liveMode=$liveMode , metadata=$metadata , name=$name , object_=$object_ , parentAccountId=$parentAccountId , partyAddress=$partyAddress , partyName=$partyName , partyType=$partyType , routingDetails=$routingDetails , updatedAt=$updatedAt , vendorId= $vendorId , additionalProperties=$additionalProperties }"
28382877}
0 commit comments