@@ -39,6 +39,7 @@ private constructor(
39
39
private val currency: JsonField <Currency >,
40
40
private val externalAccountId: JsonField <String >,
41
41
private val idempotencyKey: JsonField <String >,
42
+ private val inboundWireDrawdownRequestId: JsonField <String >,
42
43
private val messageToRecipient: JsonField <String >,
43
44
private val network: JsonField <Network >,
44
45
private val originatorAddressLine1: JsonField <String >,
@@ -93,6 +94,9 @@ private constructor(
93
94
@JsonProperty(" idempotency_key" )
94
95
@ExcludeMissing
95
96
idempotencyKey: JsonField <String > = JsonMissing .of(),
97
+ @JsonProperty(" inbound_wire_drawdown_request_id" )
98
+ @ExcludeMissing
99
+ inboundWireDrawdownRequestId: JsonField <String > = JsonMissing .of(),
96
100
@JsonProperty(" message_to_recipient" )
97
101
@ExcludeMissing
98
102
messageToRecipient: JsonField <String > = JsonMissing .of(),
@@ -143,6 +147,7 @@ private constructor(
143
147
currency,
144
148
externalAccountId,
145
149
idempotencyKey,
150
+ inboundWireDrawdownRequestId,
146
151
messageToRecipient,
147
152
network,
148
153
originatorAddressLine1,
@@ -289,6 +294,15 @@ private constructor(
289
294
*/
290
295
fun idempotencyKey (): String? = idempotencyKey.getNullable(" idempotency_key" )
291
296
297
+ /* *
298
+ * The ID of an Inbound Wire Drawdown Request in response to which this transfer was sent.
299
+ *
300
+ * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if the
301
+ * server responded with an unexpected value).
302
+ */
303
+ fun inboundWireDrawdownRequestId (): String? =
304
+ inboundWireDrawdownRequestId.getNullable(" inbound_wire_drawdown_request_id" )
305
+
292
306
/* *
293
307
* The message that will show on the recipient's bank statement.
294
308
*
@@ -536,6 +550,16 @@ private constructor(
536
550
@ExcludeMissing
537
551
fun _idempotencyKey (): JsonField <String > = idempotencyKey
538
552
553
+ /* *
554
+ * Returns the raw JSON value of [inboundWireDrawdownRequestId].
555
+ *
556
+ * Unlike [inboundWireDrawdownRequestId], this method doesn't throw if the JSON field has an
557
+ * unexpected type.
558
+ */
559
+ @JsonProperty(" inbound_wire_drawdown_request_id" )
560
+ @ExcludeMissing
561
+ fun _inboundWireDrawdownRequestId (): JsonField <String > = inboundWireDrawdownRequestId
562
+
539
563
/* *
540
564
* Returns the raw JSON value of [messageToRecipient].
541
565
*
@@ -694,6 +718,7 @@ private constructor(
694
718
* .currency()
695
719
* .externalAccountId()
696
720
* .idempotencyKey()
721
+ * .inboundWireDrawdownRequestId()
697
722
* .messageToRecipient()
698
723
* .network()
699
724
* .originatorAddressLine1()
@@ -731,6 +756,7 @@ private constructor(
731
756
private var currency: JsonField <Currency >? = null
732
757
private var externalAccountId: JsonField <String >? = null
733
758
private var idempotencyKey: JsonField <String >? = null
759
+ private var inboundWireDrawdownRequestId: JsonField <String >? = null
734
760
private var messageToRecipient: JsonField <String >? = null
735
761
private var network: JsonField <Network >? = null
736
762
private var originatorAddressLine1: JsonField <String >? = null
@@ -763,6 +789,7 @@ private constructor(
763
789
currency = wireTransfer.currency
764
790
externalAccountId = wireTransfer.externalAccountId
765
791
idempotencyKey = wireTransfer.idempotencyKey
792
+ inboundWireDrawdownRequestId = wireTransfer.inboundWireDrawdownRequestId
766
793
messageToRecipient = wireTransfer.messageToRecipient
767
794
network = wireTransfer.network
768
795
originatorAddressLine1 = wireTransfer.originatorAddressLine1
@@ -997,6 +1024,23 @@ private constructor(
997
1024
this .idempotencyKey = idempotencyKey
998
1025
}
999
1026
1027
+ /* *
1028
+ * The ID of an Inbound Wire Drawdown Request in response to which this transfer was sent.
1029
+ */
1030
+ fun inboundWireDrawdownRequestId (inboundWireDrawdownRequestId : String? ) =
1031
+ inboundWireDrawdownRequestId(JsonField .ofNullable(inboundWireDrawdownRequestId))
1032
+
1033
+ /* *
1034
+ * Sets [Builder.inboundWireDrawdownRequestId] to an arbitrary JSON value.
1035
+ *
1036
+ * You should usually call [Builder.inboundWireDrawdownRequestId] with a well-typed [String]
1037
+ * value instead. This method is primarily for setting the field to an undocumented or not
1038
+ * yet supported value.
1039
+ */
1040
+ fun inboundWireDrawdownRequestId (inboundWireDrawdownRequestId : JsonField <String >) = apply {
1041
+ this .inboundWireDrawdownRequestId = inboundWireDrawdownRequestId
1042
+ }
1043
+
1000
1044
/* * The message that will show on the recipient's bank statement. */
1001
1045
fun messageToRecipient (messageToRecipient : String? ) =
1002
1046
messageToRecipient(JsonField .ofNullable(messageToRecipient))
@@ -1237,6 +1281,7 @@ private constructor(
1237
1281
* .currency()
1238
1282
* .externalAccountId()
1239
1283
* .idempotencyKey()
1284
+ * .inboundWireDrawdownRequestId()
1240
1285
* .messageToRecipient()
1241
1286
* .network()
1242
1287
* .originatorAddressLine1()
@@ -1272,6 +1317,7 @@ private constructor(
1272
1317
checkRequired(" currency" , currency),
1273
1318
checkRequired(" externalAccountId" , externalAccountId),
1274
1319
checkRequired(" idempotencyKey" , idempotencyKey),
1320
+ checkRequired(" inboundWireDrawdownRequestId" , inboundWireDrawdownRequestId),
1275
1321
checkRequired(" messageToRecipient" , messageToRecipient),
1276
1322
checkRequired(" network" , network),
1277
1323
checkRequired(" originatorAddressLine1" , originatorAddressLine1),
@@ -1312,6 +1358,7 @@ private constructor(
1312
1358
currency().validate()
1313
1359
externalAccountId()
1314
1360
idempotencyKey()
1361
+ inboundWireDrawdownRequestId()
1315
1362
messageToRecipient()
1316
1363
network().validate()
1317
1364
originatorAddressLine1()
@@ -1358,6 +1405,7 @@ private constructor(
1358
1405
(currency.asKnown()?.validity() ? : 0 ) +
1359
1406
(if (externalAccountId.asKnown() == null ) 0 else 1 ) +
1360
1407
(if (idempotencyKey.asKnown() == null ) 0 else 1 ) +
1408
+ (if (inboundWireDrawdownRequestId.asKnown() == null ) 0 else 1 ) +
1361
1409
(if (messageToRecipient.asKnown() == null ) 0 else 1 ) +
1362
1410
(network.asKnown()?.validity() ? : 0 ) +
1363
1411
(if (originatorAddressLine1.asKnown() == null ) 0 else 1 ) +
@@ -4504,15 +4552,15 @@ private constructor(
4504
4552
return true
4505
4553
}
4506
4554
4507
- return /* spotless:off */ other is WireTransfer && id == other.id && accountId == other.accountId && accountNumber == other.accountNumber && amount == other.amount && approval == other.approval && beneficiaryAddressLine1 == other.beneficiaryAddressLine1 && beneficiaryAddressLine2 == other.beneficiaryAddressLine2 && beneficiaryAddressLine3 == other.beneficiaryAddressLine3 && beneficiaryName == other.beneficiaryName && cancellation == other.cancellation && createdAt == other.createdAt && createdBy == other.createdBy && currency == other.currency && externalAccountId == other.externalAccountId && idempotencyKey == other.idempotencyKey && messageToRecipient == other.messageToRecipient && network == other.network && originatorAddressLine1 == other.originatorAddressLine1 && originatorAddressLine2 == other.originatorAddressLine2 && originatorAddressLine3 == other.originatorAddressLine3 && originatorName == other.originatorName && pendingTransactionId == other.pendingTransactionId && reversal == other.reversal && routingNumber == other.routingNumber && sourceAccountNumberId == other.sourceAccountNumberId && status == other.status && submission == other.submission && transactionId == other.transactionId && type == other.type && additionalProperties == other.additionalProperties /* spotless:on */
4555
+ return /* spotless:off */ other is WireTransfer && id == other.id && accountId == other.accountId && accountNumber == other.accountNumber && amount == other.amount && approval == other.approval && beneficiaryAddressLine1 == other.beneficiaryAddressLine1 && beneficiaryAddressLine2 == other.beneficiaryAddressLine2 && beneficiaryAddressLine3 == other.beneficiaryAddressLine3 && beneficiaryName == other.beneficiaryName && cancellation == other.cancellation && createdAt == other.createdAt && createdBy == other.createdBy && currency == other.currency && externalAccountId == other.externalAccountId && idempotencyKey == other.idempotencyKey && inboundWireDrawdownRequestId == other.inboundWireDrawdownRequestId && messageToRecipient == other.messageToRecipient && network == other.network && originatorAddressLine1 == other.originatorAddressLine1 && originatorAddressLine2 == other.originatorAddressLine2 && originatorAddressLine3 == other.originatorAddressLine3 && originatorName == other.originatorName && pendingTransactionId == other.pendingTransactionId && reversal == other.reversal && routingNumber == other.routingNumber && sourceAccountNumberId == other.sourceAccountNumberId && status == other.status && submission == other.submission && transactionId == other.transactionId && type == other.type && additionalProperties == other.additionalProperties /* spotless:on */
4508
4556
}
4509
4557
4510
4558
/* spotless:off */
4511
- private val hashCode: Int by lazy { Objects .hash(id, accountId, accountNumber, amount, approval, beneficiaryAddressLine1, beneficiaryAddressLine2, beneficiaryAddressLine3, beneficiaryName, cancellation, createdAt, createdBy, currency, externalAccountId, idempotencyKey, messageToRecipient, network, originatorAddressLine1, originatorAddressLine2, originatorAddressLine3, originatorName, pendingTransactionId, reversal, routingNumber, sourceAccountNumberId, status, submission, transactionId, type, additionalProperties) }
4559
+ private val hashCode: Int by lazy { Objects .hash(id, accountId, accountNumber, amount, approval, beneficiaryAddressLine1, beneficiaryAddressLine2, beneficiaryAddressLine3, beneficiaryName, cancellation, createdAt, createdBy, currency, externalAccountId, idempotencyKey, inboundWireDrawdownRequestId, messageToRecipient, network, originatorAddressLine1, originatorAddressLine2, originatorAddressLine3, originatorName, pendingTransactionId, reversal, routingNumber, sourceAccountNumberId, status, submission, transactionId, type, additionalProperties) }
4512
4560
/* spotless:on */
4513
4561
4514
4562
override fun hashCode (): Int = hashCode
4515
4563
4516
4564
override fun toString () =
4517
- " WireTransfer{id=$id , accountId=$accountId , accountNumber=$accountNumber , amount=$amount , approval=$approval , beneficiaryAddressLine1=$beneficiaryAddressLine1 , beneficiaryAddressLine2=$beneficiaryAddressLine2 , beneficiaryAddressLine3=$beneficiaryAddressLine3 , beneficiaryName=$beneficiaryName , cancellation=$cancellation , createdAt=$createdAt , createdBy=$createdBy , currency=$currency , externalAccountId=$externalAccountId , idempotencyKey=$idempotencyKey , messageToRecipient=$messageToRecipient , network=$network , originatorAddressLine1=$originatorAddressLine1 , originatorAddressLine2=$originatorAddressLine2 , originatorAddressLine3=$originatorAddressLine3 , originatorName=$originatorName , pendingTransactionId=$pendingTransactionId , reversal=$reversal , routingNumber=$routingNumber , sourceAccountNumberId=$sourceAccountNumberId , status=$status , submission=$submission , transactionId=$transactionId , type=$type , additionalProperties=$additionalProperties }"
4565
+ "WireTransfer{id=$id, accountId=$accountId, accountNumber=$accountNumber, amount=$amount, approval=$approval, beneficiaryAddressLine1=$beneficiaryAddressLine1, beneficiaryAddressLine2=$beneficiaryAddressLine2, beneficiaryAddressLine3=$beneficiaryAddressLine3, beneficiaryName=$beneficiaryName, cancellation=$cancellation, createdAt=$createdAt, createdBy=$createdBy, currency=$currency, externalAccountId=$externalAccountId, idempotencyKey=$idempotencyKey, inboundWireDrawdownRequestId=$inboundWireDrawdownRequestId, messageToRecipient=$messageToRecipient, network=$network, originatorAddressLine1=$originatorAddressLine1, originatorAddressLine2=$originatorAddressLine2, originatorAddressLine3=$originatorAddressLine3, originatorName=$originatorName, pendingTransactionId=$pendingTransactionId, reversal=$reversal, routingNumber=$routingNumber, sourceAccountNumberId=$sourceAccountNumberId, status=$status, submission=$submission, transactionId=$transactionId, type=$type, additionalProperties=$additionalProperties}"
4518
4566
}
0 commit comments