Skip to content

Commit c56d6b5

Browse files
feat(api): api update
1 parent 9bfd265 commit c56d6b5

File tree

8 files changed

+152
-8
lines changed

8 files changed

+152
-8
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 201
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-1a036361d5f4353d6fa381e4eddaa1bb2db893536cc2f092401fe3b44922f5cb.yml
3-
openapi_spec_hash: 9dba9c19b2647d2d1da5a3d0c1f9e26a
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-a027ea8bf72e85055306ceaf380c0311b8ed5e6e83962de0ccf48f62c85403fc.yml
3+
openapi_spec_hash: 5a69ed697dee32af7deae0c6ebf27377
44
config_hash: 97774f946585cecb19181a1817870d0b

increase-kotlin-core/src/main/kotlin/com/increase/api/models/wiretransfers/WireTransfer.kt

Lines changed: 51 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ private constructor(
3939
private val currency: JsonField<Currency>,
4040
private val externalAccountId: JsonField<String>,
4141
private val idempotencyKey: JsonField<String>,
42+
private val inboundWireDrawdownRequestId: JsonField<String>,
4243
private val messageToRecipient: JsonField<String>,
4344
private val network: JsonField<Network>,
4445
private val originatorAddressLine1: JsonField<String>,
@@ -93,6 +94,9 @@ private constructor(
9394
@JsonProperty("idempotency_key")
9495
@ExcludeMissing
9596
idempotencyKey: JsonField<String> = JsonMissing.of(),
97+
@JsonProperty("inbound_wire_drawdown_request_id")
98+
@ExcludeMissing
99+
inboundWireDrawdownRequestId: JsonField<String> = JsonMissing.of(),
96100
@JsonProperty("message_to_recipient")
97101
@ExcludeMissing
98102
messageToRecipient: JsonField<String> = JsonMissing.of(),
@@ -143,6 +147,7 @@ private constructor(
143147
currency,
144148
externalAccountId,
145149
idempotencyKey,
150+
inboundWireDrawdownRequestId,
146151
messageToRecipient,
147152
network,
148153
originatorAddressLine1,
@@ -289,6 +294,15 @@ private constructor(
289294
*/
290295
fun idempotencyKey(): String? = idempotencyKey.getNullable("idempotency_key")
291296

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+
292306
/**
293307
* The message that will show on the recipient's bank statement.
294308
*
@@ -536,6 +550,16 @@ private constructor(
536550
@ExcludeMissing
537551
fun _idempotencyKey(): JsonField<String> = idempotencyKey
538552

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+
539563
/**
540564
* Returns the raw JSON value of [messageToRecipient].
541565
*
@@ -694,6 +718,7 @@ private constructor(
694718
* .currency()
695719
* .externalAccountId()
696720
* .idempotencyKey()
721+
* .inboundWireDrawdownRequestId()
697722
* .messageToRecipient()
698723
* .network()
699724
* .originatorAddressLine1()
@@ -731,6 +756,7 @@ private constructor(
731756
private var currency: JsonField<Currency>? = null
732757
private var externalAccountId: JsonField<String>? = null
733758
private var idempotencyKey: JsonField<String>? = null
759+
private var inboundWireDrawdownRequestId: JsonField<String>? = null
734760
private var messageToRecipient: JsonField<String>? = null
735761
private var network: JsonField<Network>? = null
736762
private var originatorAddressLine1: JsonField<String>? = null
@@ -763,6 +789,7 @@ private constructor(
763789
currency = wireTransfer.currency
764790
externalAccountId = wireTransfer.externalAccountId
765791
idempotencyKey = wireTransfer.idempotencyKey
792+
inboundWireDrawdownRequestId = wireTransfer.inboundWireDrawdownRequestId
766793
messageToRecipient = wireTransfer.messageToRecipient
767794
network = wireTransfer.network
768795
originatorAddressLine1 = wireTransfer.originatorAddressLine1
@@ -997,6 +1024,23 @@ private constructor(
9971024
this.idempotencyKey = idempotencyKey
9981025
}
9991026

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+
10001044
/** The message that will show on the recipient's bank statement. */
10011045
fun messageToRecipient(messageToRecipient: String?) =
10021046
messageToRecipient(JsonField.ofNullable(messageToRecipient))
@@ -1237,6 +1281,7 @@ private constructor(
12371281
* .currency()
12381282
* .externalAccountId()
12391283
* .idempotencyKey()
1284+
* .inboundWireDrawdownRequestId()
12401285
* .messageToRecipient()
12411286
* .network()
12421287
* .originatorAddressLine1()
@@ -1272,6 +1317,7 @@ private constructor(
12721317
checkRequired("currency", currency),
12731318
checkRequired("externalAccountId", externalAccountId),
12741319
checkRequired("idempotencyKey", idempotencyKey),
1320+
checkRequired("inboundWireDrawdownRequestId", inboundWireDrawdownRequestId),
12751321
checkRequired("messageToRecipient", messageToRecipient),
12761322
checkRequired("network", network),
12771323
checkRequired("originatorAddressLine1", originatorAddressLine1),
@@ -1312,6 +1358,7 @@ private constructor(
13121358
currency().validate()
13131359
externalAccountId()
13141360
idempotencyKey()
1361+
inboundWireDrawdownRequestId()
13151362
messageToRecipient()
13161363
network().validate()
13171364
originatorAddressLine1()
@@ -1358,6 +1405,7 @@ private constructor(
13581405
(currency.asKnown()?.validity() ?: 0) +
13591406
(if (externalAccountId.asKnown() == null) 0 else 1) +
13601407
(if (idempotencyKey.asKnown() == null) 0 else 1) +
1408+
(if (inboundWireDrawdownRequestId.asKnown() == null) 0 else 1) +
13611409
(if (messageToRecipient.asKnown() == null) 0 else 1) +
13621410
(network.asKnown()?.validity() ?: 0) +
13631411
(if (originatorAddressLine1.asKnown() == null) 0 else 1) +
@@ -4504,15 +4552,15 @@ private constructor(
45044552
return true
45054553
}
45064554

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 */
45084556
}
45094557

45104558
/* 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) }
45124560
/* spotless:on */
45134561

45144562
override fun hashCode(): Int = hashCode
45154563

45164564
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}"
45184566
}

0 commit comments

Comments
 (0)