Skip to content

Commit 7d05a12

Browse files
feat(api): add WIRE_DRAWDOWN_REQUEST transfer type
docs(api): clarify description of token / retry_token when it serves as idempotency key feat(api): remove unnecessary X-Lithic-Pagination header
1 parent 7e8636d commit 7d05a12

File tree

6 files changed

+49
-8
lines changed

6 files changed

+49
-8
lines changed

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 176
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-1916ba0e95ce59f0feeebd6f3d2130990c812be7eabcda6e23c5fa096db912c7.yml
3-
openapi_spec_hash: b465e7cb5c2dee36b5bdc6d540b2a530
4-
config_hash: a8a802e2c916a5d36a025bf64ab55ee7
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-854de7cc8f79e150ffe98f038ce9f39367010b2bdfffc9992be2738697dc4880.yml
3+
openapi_spec_hash: fd471b20f3eda1e00cdebf028cbfe867
4+
config_hash: 9dddee5f7af579864599849cb28a0770

lithic-java-core/src/main/kotlin/com/lithic/api/core/ClientOptions.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,6 @@ private constructor(
475475
headers.put("X-Stainless-Package-Version", getPackageVersion())
476476
headers.put("X-Stainless-Runtime", "JRE")
477477
headers.put("X-Stainless-Runtime-Version", getJavaVersion())
478-
headers.put("X-Lithic-Pagination", "cursor")
479478
apiKey.let {
480479
if (!it.isEmpty()) {
481480
headers.put("Authorization", it)

lithic-java-core/src/main/kotlin/com/lithic/api/models/BookTransferRetryParams.kt

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ private constructor(
3232
fun bookTransferToken(): Optional<String> = Optional.ofNullable(bookTransferToken)
3333

3434
/**
35-
* Globally unique identifier for the retry.
35+
* Customer-provided token that will serve as an idempotency token. This token will become the
36+
* transaction token.
3637
*
3738
* @throws LithicInvalidDataException if the JSON field has an unexpected type or is
3839
* unexpectedly missing or null (e.g. if the server responded with an unexpected value).
@@ -102,7 +103,10 @@ private constructor(
102103
*/
103104
fun body(body: RetryBookTransferRequest) = apply { this.body = body.toBuilder() }
104105

105-
/** Globally unique identifier for the retry. */
106+
/**
107+
* Customer-provided token that will serve as an idempotency token. This token will become
108+
* the transaction token.
109+
*/
106110
fun retryToken(retryToken: String) = apply { body.retryToken(retryToken) }
107111

108112
/**
@@ -279,7 +283,8 @@ private constructor(
279283
) : this(retryToken, mutableMapOf())
280284

281285
/**
282-
* Globally unique identifier for the retry.
286+
* Customer-provided token that will serve as an idempotency token. This token will become
287+
* the transaction token.
283288
*
284289
* @throws LithicInvalidDataException if the JSON field has an unexpected type or is
285290
* unexpectedly missing or null (e.g. if the server responded with an unexpected value).
@@ -332,7 +337,10 @@ private constructor(
332337
additionalProperties = retryBookTransferRequest.additionalProperties.toMutableMap()
333338
}
334339

335-
/** Globally unique identifier for the retry. */
340+
/**
341+
* Customer-provided token that will serve as an idempotency token. This token will
342+
* become the transaction token.
343+
*/
336344
fun retryToken(retryToken: String) = retryToken(JsonField.of(retryToken))
337345

338346
/**

lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalPaymentCreateParams.kt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ private constructor(
6161
fun paymentType(): ExternalPaymentDirection = body.paymentType()
6262

6363
/**
64+
* Customer-provided token that will serve as an idempotency token. This token will become the
65+
* transaction token.
66+
*
6467
* @throws LithicInvalidDataException if the JSON field has an unexpected type (e.g. if the
6568
* server responded with an unexpected value).
6669
*/
@@ -270,6 +273,10 @@ private constructor(
270273
body.paymentType(paymentType)
271274
}
272275

276+
/**
277+
* Customer-provided token that will serve as an idempotency token. This token will become
278+
* the transaction token.
279+
*/
273280
fun token(token: String) = apply { body.token(token) }
274281

275282
/**
@@ -548,6 +555,9 @@ private constructor(
548555
fun paymentType(): ExternalPaymentDirection = paymentType.getRequired("payment_type")
549556

550557
/**
558+
* Customer-provided token that will serve as an idempotency token. This token will become
559+
* the transaction token.
560+
*
551561
* @throws LithicInvalidDataException if the JSON field has an unexpected type (e.g. if the
552562
* server responded with an unexpected value).
553563
*/
@@ -774,6 +784,10 @@ private constructor(
774784
this.paymentType = paymentType
775785
}
776786

787+
/**
788+
* Customer-provided token that will serve as an idempotency token. This token will
789+
* become the transaction token.
790+
*/
777791
fun token(token: String) = token(JsonField.of(token))
778792

779793
/**

lithic-java-core/src/main/kotlin/com/lithic/api/models/ManagementOperationCreateParams.kt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ private constructor(
6767
fun financialAccountToken(): String = body.financialAccountToken()
6868

6969
/**
70+
* Customer-provided token that will serve as an idempotency token. This token will become the
71+
* transaction token.
72+
*
7073
* @throws LithicInvalidDataException if the JSON field has an unexpected type (e.g. if the
7174
* server responded with an unexpected value).
7275
*/
@@ -313,6 +316,10 @@ private constructor(
313316
body.financialAccountToken(financialAccountToken)
314317
}
315318

319+
/**
320+
* Customer-provided token that will serve as an idempotency token. This token will become
321+
* the transaction token.
322+
*/
316323
fun token(token: String) = apply { body.token(token) }
317324

318325
/**
@@ -617,6 +624,9 @@ private constructor(
617624
financialAccountToken.getRequired("financial_account_token")
618625

619626
/**
627+
* Customer-provided token that will serve as an idempotency token. This token will become
628+
* the transaction token.
629+
*
620630
* @throws LithicInvalidDataException if the JSON field has an unexpected type (e.g. if the
621631
* server responded with an unexpected value).
622632
*/
@@ -888,6 +898,10 @@ private constructor(
888898
this.financialAccountToken = financialAccountToken
889899
}
890900

901+
/**
902+
* Customer-provided token that will serve as an idempotency token. This token will
903+
* become the transaction token.
904+
*/
891905
fun token(token: String) = token(JsonField.of(token))
892906

893907
/**

lithic-java-core/src/main/kotlin/com/lithic/api/models/Payment.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4769,6 +4769,8 @@ private constructor(
47694769

47704770
@JvmField val WIRE_OUTBOUND_ADMIN = of("WIRE_OUTBOUND_ADMIN")
47714771

4772+
@JvmField val WIRE_DRAWDOWN_REQUEST = of("WIRE_DRAWDOWN_REQUEST")
4773+
47724774
@JvmStatic fun of(value: String) = TransferType(JsonField.of(value))
47734775
}
47744776

@@ -4782,6 +4784,7 @@ private constructor(
47824784
WIRE_INBOUND_ADMIN,
47834785
WIRE_OUTBOUND_PAYMENT,
47844786
WIRE_OUTBOUND_ADMIN,
4787+
WIRE_DRAWDOWN_REQUEST,
47854788
}
47864789

47874790
/**
@@ -4802,6 +4805,7 @@ private constructor(
48024805
WIRE_INBOUND_ADMIN,
48034806
WIRE_OUTBOUND_PAYMENT,
48044807
WIRE_OUTBOUND_ADMIN,
4808+
WIRE_DRAWDOWN_REQUEST,
48054809
/**
48064810
* An enum member indicating that [TransferType] was instantiated with an unknown value.
48074811
*/
@@ -4825,6 +4829,7 @@ private constructor(
48254829
WIRE_INBOUND_ADMIN -> Value.WIRE_INBOUND_ADMIN
48264830
WIRE_OUTBOUND_PAYMENT -> Value.WIRE_OUTBOUND_PAYMENT
48274831
WIRE_OUTBOUND_ADMIN -> Value.WIRE_OUTBOUND_ADMIN
4832+
WIRE_DRAWDOWN_REQUEST -> Value.WIRE_DRAWDOWN_REQUEST
48284833
else -> Value._UNKNOWN
48294834
}
48304835

@@ -4847,6 +4852,7 @@ private constructor(
48474852
WIRE_INBOUND_ADMIN -> Known.WIRE_INBOUND_ADMIN
48484853
WIRE_OUTBOUND_PAYMENT -> Known.WIRE_OUTBOUND_PAYMENT
48494854
WIRE_OUTBOUND_ADMIN -> Known.WIRE_OUTBOUND_ADMIN
4855+
WIRE_DRAWDOWN_REQUEST -> Known.WIRE_DRAWDOWN_REQUEST
48504856
else -> throw LithicInvalidDataException("Unknown TransferType: $value")
48514857
}
48524858

0 commit comments

Comments
 (0)