@@ -3698,6 +3698,7 @@ private constructor(
36983698 private val creditor: JsonField <WirePartyDetails >,
36993699 private val debtor: JsonField <WirePartyDetails >,
37003700 private val messageId: JsonField <String >,
3701+ private val remittanceInformation: JsonField <String >,
37013702 private val additionalProperties: MutableMap <String , JsonValue >,
37023703 ) {
37033704
@@ -3718,7 +3719,18 @@ private constructor(
37183719 @JsonProperty(" message_id" )
37193720 @ExcludeMissing
37203721 messageId: JsonField <String > = JsonMissing .of(),
3721- ) : this (wireMessageType, wireNetwork, creditor, debtor, messageId, mutableMapOf ())
3722+ @JsonProperty(" remittance_information" )
3723+ @ExcludeMissing
3724+ remittanceInformation: JsonField <String > = JsonMissing .of(),
3725+ ) : this (
3726+ wireMessageType,
3727+ wireNetwork,
3728+ creditor,
3729+ debtor,
3730+ messageId,
3731+ remittanceInformation,
3732+ mutableMapOf (),
3733+ )
37223734
37233735 /* *
37243736 * Type of wire message
@@ -3759,6 +3771,15 @@ private constructor(
37593771 */
37603772 fun messageId (): Optional <String > = messageId.getOptional(" message_id" )
37613773
3774+ /* *
3775+ * Payment details or invoice reference
3776+ *
3777+ * @throws LithicInvalidDataException if the JSON field has an unexpected type (e.g. if
3778+ * the server responded with an unexpected value).
3779+ */
3780+ fun remittanceInformation (): Optional <String > =
3781+ remittanceInformation.getOptional(" remittance_information" )
3782+
37623783 /* *
37633784 * Returns the raw JSON value of [wireMessageType].
37643785 *
@@ -3808,6 +3829,16 @@ private constructor(
38083829 @ExcludeMissing
38093830 fun _messageId (): JsonField <String > = messageId
38103831
3832+ /* *
3833+ * Returns the raw JSON value of [remittanceInformation].
3834+ *
3835+ * Unlike [remittanceInformation], this method doesn't throw if the JSON field has an
3836+ * unexpected type.
3837+ */
3838+ @JsonProperty(" remittance_information" )
3839+ @ExcludeMissing
3840+ fun _remittanceInformation (): JsonField <String > = remittanceInformation
3841+
38113842 @JsonAnySetter
38123843 private fun putAdditionalProperty (key : String , value : JsonValue ) {
38133844 additionalProperties.put(key, value)
@@ -3842,6 +3873,7 @@ private constructor(
38423873 private var creditor: JsonField <WirePartyDetails > = JsonMissing .of()
38433874 private var debtor: JsonField <WirePartyDetails > = JsonMissing .of()
38443875 private var messageId: JsonField <String > = JsonMissing .of()
3876+ private var remittanceInformation: JsonField <String > = JsonMissing .of()
38453877 private var additionalProperties: MutableMap <String , JsonValue > = mutableMapOf ()
38463878
38473879 @JvmSynthetic
@@ -3851,6 +3883,7 @@ private constructor(
38513883 creditor = wireMethodAttributes.creditor
38523884 debtor = wireMethodAttributes.debtor
38533885 messageId = wireMethodAttributes.messageId
3886+ remittanceInformation = wireMethodAttributes.remittanceInformation
38543887 additionalProperties = wireMethodAttributes.additionalProperties.toMutableMap()
38553888 }
38563889
@@ -3931,6 +3964,28 @@ private constructor(
39313964 */
39323965 fun messageId (messageId : JsonField <String >) = apply { this .messageId = messageId }
39333966
3967+ /* * Payment details or invoice reference */
3968+ fun remittanceInformation (remittanceInformation : String? ) =
3969+ remittanceInformation(JsonField .ofNullable(remittanceInformation))
3970+
3971+ /* *
3972+ * Alias for calling [Builder.remittanceInformation] with
3973+ * `remittanceInformation.orElse(null)`.
3974+ */
3975+ fun remittanceInformation (remittanceInformation : Optional <String >) =
3976+ remittanceInformation(remittanceInformation.getOrNull())
3977+
3978+ /* *
3979+ * Sets [Builder.remittanceInformation] to an arbitrary JSON value.
3980+ *
3981+ * You should usually call [Builder.remittanceInformation] with a well-typed
3982+ * [String] value instead. This method is primarily for setting the field to an
3983+ * undocumented or not yet supported value.
3984+ */
3985+ fun remittanceInformation (remittanceInformation : JsonField <String >) = apply {
3986+ this .remittanceInformation = remittanceInformation
3987+ }
3988+
39343989 fun additionalProperties (additionalProperties : Map <String , JsonValue >) = apply {
39353990 this .additionalProperties.clear()
39363991 putAllAdditionalProperties(additionalProperties)
@@ -3973,6 +4028,7 @@ private constructor(
39734028 creditor,
39744029 debtor,
39754030 messageId,
4031+ remittanceInformation,
39764032 additionalProperties.toMutableMap(),
39774033 )
39784034 }
@@ -3989,6 +4045,7 @@ private constructor(
39894045 creditor().ifPresent { it.validate() }
39904046 debtor().ifPresent { it.validate() }
39914047 messageId()
4048+ remittanceInformation()
39924049 validated = true
39934050 }
39944051
@@ -4012,7 +4069,8 @@ private constructor(
40124069 (wireNetwork.asKnown().getOrNull()?.validity() ? : 0 ) +
40134070 (creditor.asKnown().getOrNull()?.validity() ? : 0 ) +
40144071 (debtor.asKnown().getOrNull()?.validity() ? : 0 ) +
4015- (if (messageId.asKnown().isPresent) 1 else 0 )
4072+ (if (messageId.asKnown().isPresent) 1 else 0 ) +
4073+ (if (remittanceInformation.asKnown().isPresent) 1 else 0 )
40164074
40174075 /* * Type of wire transfer */
40184076 class WireNetwork
@@ -4158,6 +4216,7 @@ private constructor(
41584216 creditor == other.creditor &&
41594217 debtor == other.debtor &&
41604218 messageId == other.messageId &&
4219+ remittanceInformation == other.remittanceInformation &&
41614220 additionalProperties == other.additionalProperties
41624221 }
41634222
@@ -4168,14 +4227,15 @@ private constructor(
41684227 creditor,
41694228 debtor,
41704229 messageId,
4230+ remittanceInformation,
41714231 additionalProperties,
41724232 )
41734233 }
41744234
41754235 override fun hashCode (): Int = hashCode
41764236
41774237 override fun toString () =
4178- " WireMethodAttributes{wireMessageType=$wireMessageType , wireNetwork=$wireNetwork , creditor=$creditor , debtor=$debtor , messageId=$messageId , additionalProperties=$additionalProperties }"
4238+ " WireMethodAttributes{wireMessageType=$wireMessageType , wireNetwork=$wireNetwork , creditor=$creditor , debtor=$debtor , messageId=$messageId , remittanceInformation= $remittanceInformation , additionalProperties=$additionalProperties }"
41794239 }
41804240 }
41814241
0 commit comments