@@ -712,6 +712,10 @@ private constructor(
712712 @JsonProperty(" inbound_funds_hold" )
713713 @ExcludeMissing
714714 private val inboundFundsHold: JsonField <InboundFundsHold > = JsonMissing .of(),
715+ @JsonProperty(" inbound_wire_transfer_reversal" )
716+ @ExcludeMissing
717+ private val inboundWireTransferReversal: JsonField <InboundWireTransferReversal > =
718+ JsonMissing .of(),
715719 @JsonProperty(" other" ) @ExcludeMissing private val other: JsonValue = JsonMissing .of(),
716720 @JsonProperty(" real_time_payments_transfer_instruction" )
717721 @ExcludeMissing
@@ -775,6 +779,15 @@ private constructor(
775779 fun inboundFundsHold (): Optional <InboundFundsHold > =
776780 Optional .ofNullable(inboundFundsHold.getNullable(" inbound_funds_hold" ))
777781
782+ /* *
783+ * An Inbound Wire Transfer Reversal object. This field will be present in the JSON response
784+ * if and only if `category` is equal to `inbound_wire_transfer_reversal`.
785+ */
786+ fun inboundWireTransferReversal (): Optional <InboundWireTransferReversal > =
787+ Optional .ofNullable(
788+ inboundWireTransferReversal.getNullable(" inbound_wire_transfer_reversal" )
789+ )
790+
778791 /* *
779792 * If the category of this Transaction source is equal to `other`, this field will contain
780793 * an empty object, otherwise it will contain null.
@@ -855,6 +868,15 @@ private constructor(
855868 @ExcludeMissing
856869 fun _inboundFundsHold (): JsonField <InboundFundsHold > = inboundFundsHold
857870
871+ /* *
872+ * An Inbound Wire Transfer Reversal object. This field will be present in the JSON response
873+ * if and only if `category` is equal to `inbound_wire_transfer_reversal`.
874+ */
875+ @JsonProperty(" inbound_wire_transfer_reversal" )
876+ @ExcludeMissing
877+ fun _inboundWireTransferReversal (): JsonField <InboundWireTransferReversal > =
878+ inboundWireTransferReversal
879+
858880 /* *
859881 * A Real-Time Payments Transfer Instruction object. This field will be present in the JSON
860882 * response if and only if `category` is equal to `real_time_payments_transfer_instruction`.
@@ -890,6 +912,7 @@ private constructor(
890912 checkDepositInstruction().ifPresent { it.validate() }
891913 checkTransferInstruction().ifPresent { it.validate() }
892914 inboundFundsHold().ifPresent { it.validate() }
915+ inboundWireTransferReversal().ifPresent { it.validate() }
893916 realTimePaymentsTransferInstruction().ifPresent { it.validate() }
894917 wireTransferInstruction().ifPresent { it.validate() }
895918 validated = true
@@ -912,6 +935,7 @@ private constructor(
912935 private var checkDepositInstruction: JsonField <CheckDepositInstruction >? = null
913936 private var checkTransferInstruction: JsonField <CheckTransferInstruction >? = null
914937 private var inboundFundsHold: JsonField <InboundFundsHold >? = null
938+ private var inboundWireTransferReversal: JsonField <InboundWireTransferReversal >? = null
915939 private var other: JsonValue ? = null
916940 private var realTimePaymentsTransferInstruction:
917941 JsonField <RealTimePaymentsTransferInstruction >? =
@@ -928,6 +952,7 @@ private constructor(
928952 checkDepositInstruction = source.checkDepositInstruction
929953 checkTransferInstruction = source.checkTransferInstruction
930954 inboundFundsHold = source.inboundFundsHold
955+ inboundWireTransferReversal = source.inboundWireTransferReversal
931956 other = source.other
932957 realTimePaymentsTransferInstruction = source.realTimePaymentsTransferInstruction
933958 wireTransferInstruction = source.wireTransferInstruction
@@ -1083,6 +1108,30 @@ private constructor(
10831108 this .inboundFundsHold = inboundFundsHold
10841109 }
10851110
1111+ /* *
1112+ * An Inbound Wire Transfer Reversal object. This field will be present in the JSON
1113+ * response if and only if `category` is equal to `inbound_wire_transfer_reversal`.
1114+ */
1115+ fun inboundWireTransferReversal (
1116+ inboundWireTransferReversal : InboundWireTransferReversal ?
1117+ ) = inboundWireTransferReversal(JsonField .ofNullable(inboundWireTransferReversal))
1118+
1119+ /* *
1120+ * An Inbound Wire Transfer Reversal object. This field will be present in the JSON
1121+ * response if and only if `category` is equal to `inbound_wire_transfer_reversal`.
1122+ */
1123+ fun inboundWireTransferReversal (
1124+ inboundWireTransferReversal : Optional <InboundWireTransferReversal >
1125+ ) = inboundWireTransferReversal(inboundWireTransferReversal.orElse(null ))
1126+
1127+ /* *
1128+ * An Inbound Wire Transfer Reversal object. This field will be present in the JSON
1129+ * response if and only if `category` is equal to `inbound_wire_transfer_reversal`.
1130+ */
1131+ fun inboundWireTransferReversal (
1132+ inboundWireTransferReversal : JsonField <InboundWireTransferReversal >
1133+ ) = apply { this .inboundWireTransferReversal = inboundWireTransferReversal }
1134+
10861135 /* *
10871136 * If the category of this Transaction source is equal to `other`, this field will
10881137 * contain an empty object, otherwise it will contain null.
@@ -1175,6 +1224,7 @@ private constructor(
11751224 checkRequired(" checkDepositInstruction" , checkDepositInstruction),
11761225 checkRequired(" checkTransferInstruction" , checkTransferInstruction),
11771226 checkRequired(" inboundFundsHold" , inboundFundsHold),
1227+ checkRequired(" inboundWireTransferReversal" , inboundWireTransferReversal),
11781228 checkRequired(" other" , other),
11791229 checkRequired(
11801230 " realTimePaymentsTransferInstruction" ,
@@ -7115,6 +7165,122 @@ private constructor(
71157165 " InboundFundsHold{id=$id , amount=$amount , automaticallyReleasesAt=$automaticallyReleasesAt , createdAt=$createdAt , currency=$currency , heldTransactionId=$heldTransactionId , pendingTransactionId=$pendingTransactionId , releasedAt=$releasedAt , status=$status , type=$type , additionalProperties=$additionalProperties }"
71167166 }
71177167
7168+ /* *
7169+ * An Inbound Wire Transfer Reversal object. This field will be present in the JSON response
7170+ * if and only if `category` is equal to `inbound_wire_transfer_reversal`.
7171+ */
7172+ @NoAutoDetect
7173+ class InboundWireTransferReversal
7174+ @JsonCreator
7175+ private constructor (
7176+ @JsonProperty(" inbound_wire_transfer_id" )
7177+ @ExcludeMissing
7178+ private val inboundWireTransferId: JsonField <String > = JsonMissing .of(),
7179+ @JsonAnySetter
7180+ private val additionalProperties: Map <String , JsonValue > = immutableEmptyMap(),
7181+ ) {
7182+
7183+ /* * The ID of the Inbound Wire Transfer that is being reversed. */
7184+ fun inboundWireTransferId (): String =
7185+ inboundWireTransferId.getRequired(" inbound_wire_transfer_id" )
7186+
7187+ /* * The ID of the Inbound Wire Transfer that is being reversed. */
7188+ @JsonProperty(" inbound_wire_transfer_id" )
7189+ @ExcludeMissing
7190+ fun _inboundWireTransferId (): JsonField <String > = inboundWireTransferId
7191+
7192+ @JsonAnyGetter
7193+ @ExcludeMissing
7194+ fun _additionalProperties (): Map <String , JsonValue > = additionalProperties
7195+
7196+ private var validated: Boolean = false
7197+
7198+ fun validate (): InboundWireTransferReversal = apply {
7199+ if (validated) {
7200+ return @apply
7201+ }
7202+
7203+ inboundWireTransferId()
7204+ validated = true
7205+ }
7206+
7207+ fun toBuilder () = Builder ().from(this )
7208+
7209+ companion object {
7210+
7211+ @JvmStatic fun builder () = Builder ()
7212+ }
7213+
7214+ /* * A builder for [InboundWireTransferReversal]. */
7215+ class Builder internal constructor() {
7216+
7217+ private var inboundWireTransferId: JsonField <String >? = null
7218+ private var additionalProperties: MutableMap <String , JsonValue > = mutableMapOf ()
7219+
7220+ @JvmSynthetic
7221+ internal fun from (inboundWireTransferReversal : InboundWireTransferReversal ) =
7222+ apply {
7223+ inboundWireTransferId = inboundWireTransferReversal.inboundWireTransferId
7224+ additionalProperties =
7225+ inboundWireTransferReversal.additionalProperties.toMutableMap()
7226+ }
7227+
7228+ /* * The ID of the Inbound Wire Transfer that is being reversed. */
7229+ fun inboundWireTransferId (inboundWireTransferId : String ) =
7230+ inboundWireTransferId(JsonField .of(inboundWireTransferId))
7231+
7232+ /* * The ID of the Inbound Wire Transfer that is being reversed. */
7233+ fun inboundWireTransferId (inboundWireTransferId : JsonField <String >) = apply {
7234+ this .inboundWireTransferId = inboundWireTransferId
7235+ }
7236+
7237+ fun additionalProperties (additionalProperties : Map <String , JsonValue >) = apply {
7238+ this .additionalProperties.clear()
7239+ putAllAdditionalProperties(additionalProperties)
7240+ }
7241+
7242+ fun putAdditionalProperty (key : String , value : JsonValue ) = apply {
7243+ additionalProperties.put(key, value)
7244+ }
7245+
7246+ fun putAllAdditionalProperties (additionalProperties : Map <String , JsonValue >) =
7247+ apply {
7248+ this .additionalProperties.putAll(additionalProperties)
7249+ }
7250+
7251+ fun removeAdditionalProperty (key : String ) = apply {
7252+ additionalProperties.remove(key)
7253+ }
7254+
7255+ fun removeAllAdditionalProperties (keys : Set <String >) = apply {
7256+ keys.forEach(::removeAdditionalProperty)
7257+ }
7258+
7259+ fun build (): InboundWireTransferReversal =
7260+ InboundWireTransferReversal (
7261+ checkRequired(" inboundWireTransferId" , inboundWireTransferId),
7262+ additionalProperties.toImmutable()
7263+ )
7264+ }
7265+
7266+ override fun equals (other : Any? ): Boolean {
7267+ if (this == = other) {
7268+ return true
7269+ }
7270+
7271+ return /* spotless:off */ other is InboundWireTransferReversal && inboundWireTransferId == other.inboundWireTransferId && additionalProperties == other.additionalProperties /* spotless:on */
7272+ }
7273+
7274+ /* spotless:off */
7275+ private val hashCode: Int by lazy { Objects .hash(inboundWireTransferId, additionalProperties) }
7276+ /* spotless:on */
7277+
7278+ override fun hashCode (): Int = hashCode
7279+
7280+ override fun toString () =
7281+ " InboundWireTransferReversal{inboundWireTransferId=$inboundWireTransferId , additionalProperties=$additionalProperties }"
7282+ }
7283+
71187284 /* *
71197285 * A Real-Time Payments Transfer Instruction object. This field will be present in the JSON
71207286 * response if and only if `category` is equal to `real_time_payments_transfer_instruction`.
@@ -7483,17 +7649,17 @@ private constructor(
74837649 return true
74847650 }
74857651
7486- return /* spotless:off */ other is Source && accountTransferInstruction == other.accountTransferInstruction && achTransferInstruction == other.achTransferInstruction && cardAuthorization == other.cardAuthorization && category == other.category && checkDepositInstruction == other.checkDepositInstruction && checkTransferInstruction == other.checkTransferInstruction && inboundFundsHold == other.inboundFundsHold && this .other == other.other && realTimePaymentsTransferInstruction == other.realTimePaymentsTransferInstruction && wireTransferInstruction == other.wireTransferInstruction && additionalProperties == other.additionalProperties /* spotless:on */
7652+ return /* spotless:off */ other is Source && accountTransferInstruction == other.accountTransferInstruction && achTransferInstruction == other.achTransferInstruction && cardAuthorization == other.cardAuthorization && category == other.category && checkDepositInstruction == other.checkDepositInstruction && checkTransferInstruction == other.checkTransferInstruction && inboundFundsHold == other.inboundFundsHold && inboundWireTransferReversal == other.inboundWireTransferReversal && this .other == other.other && realTimePaymentsTransferInstruction == other.realTimePaymentsTransferInstruction && wireTransferInstruction == other.wireTransferInstruction && additionalProperties == other.additionalProperties /* spotless:on */
74877653 }
74887654
74897655 /* spotless:off */
7490- private val hashCode: Int by lazy { Objects .hash(accountTransferInstruction, achTransferInstruction, cardAuthorization, category, checkDepositInstruction, checkTransferInstruction, inboundFundsHold, other, realTimePaymentsTransferInstruction, wireTransferInstruction, additionalProperties) }
7656+ private val hashCode: Int by lazy { Objects .hash(accountTransferInstruction, achTransferInstruction, cardAuthorization, category, checkDepositInstruction, checkTransferInstruction, inboundFundsHold, inboundWireTransferReversal, other, realTimePaymentsTransferInstruction, wireTransferInstruction, additionalProperties) }
74917657 /* spotless:on */
74927658
74937659 override fun hashCode (): Int = hashCode
74947660
74957661 override fun toString () =
7496- " Source{accountTransferInstruction=$accountTransferInstruction , achTransferInstruction=$achTransferInstruction , cardAuthorization=$cardAuthorization , category=$category , checkDepositInstruction=$checkDepositInstruction , checkTransferInstruction=$checkTransferInstruction , inboundFundsHold=$inboundFundsHold , other=$other , realTimePaymentsTransferInstruction=$realTimePaymentsTransferInstruction , wireTransferInstruction=$wireTransferInstruction , additionalProperties=$additionalProperties }"
7662+ " Source{accountTransferInstruction=$accountTransferInstruction , achTransferInstruction=$achTransferInstruction , cardAuthorization=$cardAuthorization , category=$category , checkDepositInstruction=$checkDepositInstruction , checkTransferInstruction=$checkTransferInstruction , inboundFundsHold=$inboundFundsHold , inboundWireTransferReversal= $inboundWireTransferReversal , other=$other , realTimePaymentsTransferInstruction=$realTimePaymentsTransferInstruction , wireTransferInstruction=$wireTransferInstruction , additionalProperties=$additionalProperties }"
74977663 }
74987664
74997665 /* * Whether the Pending Transaction has been confirmed and has an associated Transaction. */
0 commit comments