Skip to content

Commit 6843bb7

Browse files
chore(docs): small updates to doc strings on a few endpoints
1 parent c9d95e8 commit 6843bb7

File tree

4 files changed

+16
-6
lines changed

4 files changed

+16
-6
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: 169
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-1d44bb7fad99487af1161eb24dfd5369440eda7e80ed237cbc1acc6802a7d212.yml
3-
openapi_spec_hash: 1b6b6215b60094b76b91c56b925a251a
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-fbbce0ea11d3e86e532f705804f3d79e8eecfb8a7796e3a6ad3c50cccee14bb1.yml
3+
openapi_spec_hash: 3f44b97866ca74effe5e70fc9c64effb
44
config_hash: 768e8f0faa1a21e26b07e6cdc395cebf

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,9 @@ private constructor(
316316

317317
override fun ObjectCodec.deserialize(node: JsonNode): AccountActivityListResponse {
318318
val json = JsonValue.fromJsonNode(node)
319+
val family = json.asObject().getOrNull()?.get("family")?.asString()?.getOrNull()
320+
321+
when (family) {}
319322

320323
val bestMatches =
321324
sequenceOf(

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,9 @@ private constructor(
326326
node: JsonNode
327327
): AccountActivityRetrieveTransactionResponse {
328328
val json = JsonValue.fromJsonNode(node)
329+
val family = json.asObject().getOrNull()?.get("family")?.asString()?.getOrNull()
330+
331+
when (family) {}
329332

330333
val bestMatches =
331334
sequenceOf(

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

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ private constructor(
4444

4545
/**
4646
* Amount (in cents) to void. Typically this will match the amount in the original
47-
* authorization, but can be less.
47+
* authorization, but can be less. Applies to authorization reversals only. An authorization
48+
* expiry will always apply to the full pending amount.
4849
*
4950
* @throws LithicInvalidDataException if the JSON field has an unexpected type (e.g. if the
5051
* server responded with an unexpected value).
@@ -144,7 +145,8 @@ private constructor(
144145

145146
/**
146147
* Amount (in cents) to void. Typically this will match the amount in the original
147-
* authorization, but can be less.
148+
* authorization, but can be less. Applies to authorization reversals only. An authorization
149+
* expiry will always apply to the full pending amount.
148150
*/
149151
fun amount(amount: Long) = apply { body.amount(amount) }
150152

@@ -339,7 +341,8 @@ private constructor(
339341

340342
/**
341343
* Amount (in cents) to void. Typically this will match the amount in the original
342-
* authorization, but can be less.
344+
* authorization, but can be less. Applies to authorization reversals only. An authorization
345+
* expiry will always apply to the full pending amount.
343346
*
344347
* @throws LithicInvalidDataException if the JSON field has an unexpected type (e.g. if the
345348
* server responded with an unexpected value).
@@ -432,7 +435,8 @@ private constructor(
432435

433436
/**
434437
* Amount (in cents) to void. Typically this will match the amount in the original
435-
* authorization, but can be less.
438+
* authorization, but can be less. Applies to authorization reversals only. An
439+
* authorization expiry will always apply to the full pending amount.
436440
*/
437441
fun amount(amount: Long) = amount(JsonField.of(amount))
438442

0 commit comments

Comments
 (0)