Skip to content

Commit c0d9bec

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
chore(api): updates to documentation and additional filter for status on Transactions (#440)
- updates to documentation for Accounts & AccountHolders - adds status filter to Transactions
1 parent 43dc083 commit c0d9bec

21 files changed

+329
-203
lines changed

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,12 @@ import java.util.Objects
2121
import java.util.Optional
2222

2323
/**
24-
* Run an individual or business's information through the Customer Identification Program (CIP).
25-
* All calls to this endpoint will return an immediate response - though in some cases, the response
26-
* may indicate the enrollment is under review or further action will be needed to complete the
27-
* account enrollment process. This endpoint can only be used on accounts that are part of the
28-
* program that the calling API key manages.
24+
* Create an account holder and initiate the appropriate onboarding workflow. Account holders and
25+
* accounts have a 1:1 relationship. When an account holder is successfully created an associated
26+
* account is also created. All calls to this endpoint will return an immediate response - though in
27+
* some cases, the response may indicate the enrollment is under review or further action will be
28+
* needed to complete the account enrollment process. This endpoint can only be used on accounts
29+
* that are part of the program that the calling API key manages.
2930
*/
3031
class AccountHolderCreateParams
3132
constructor(

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

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

426426
@JvmField val ITIN_LETTER = of("ITIN_LETTER")
427427

428+
@JvmField val FINCEN_BOI_REPORT = of("FINCEN_BOI_REPORT")
429+
428430
@JvmStatic fun of(value: String) = DocumentType(JsonField.of(value))
429431
}
430432

@@ -447,6 +449,7 @@ constructor(
447449
UTILITY_BILL_STATEMENT,
448450
SSN_CARD,
449451
ITIN_LETTER,
452+
FINCEN_BOI_REPORT,
450453
}
451454

452455
enum class Value {
@@ -468,6 +471,7 @@ constructor(
468471
UTILITY_BILL_STATEMENT,
469472
SSN_CARD,
470473
ITIN_LETTER,
474+
FINCEN_BOI_REPORT,
471475
_UNKNOWN,
472476
}
473477

@@ -491,6 +495,7 @@ constructor(
491495
UTILITY_BILL_STATEMENT -> Value.UTILITY_BILL_STATEMENT
492496
SSN_CARD -> Value.SSN_CARD
493497
ITIN_LETTER -> Value.ITIN_LETTER
498+
FINCEN_BOI_REPORT -> Value.FINCEN_BOI_REPORT
494499
else -> Value._UNKNOWN
495500
}
496501

@@ -514,6 +519,7 @@ constructor(
514519
UTILITY_BILL_STATEMENT -> Known.UTILITY_BILL_STATEMENT
515520
SSN_CARD -> Known.SSN_CARD
516521
ITIN_LETTER -> Known.ITIN_LETTER
522+
FINCEN_BOI_REPORT -> Known.FINCEN_BOI_REPORT
517523
else -> throw LithicInvalidDataException("Unknown DocumentType: $value")
518524
}
519525

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

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

159159
/**
160160
* The available spend limit (in cents) relative to the daily limit configured on the
161-
* Account.
161+
* Account (e.g. 100000 would be a $1,000 limit).
162162
*/
163163
fun daily(): Optional<Long> = Optional.ofNullable(daily.getNullable("daily"))
164164

@@ -176,7 +176,7 @@ private constructor(
176176

177177
/**
178178
* The available spend limit (in cents) relative to the daily limit configured on the
179-
* Account.
179+
* Account (e.g. 100000 would be a $1,000 limit).
180180
*/
181181
@JsonProperty("daily") @ExcludeMissing fun _daily(): JsonField<Long> = daily
182182

@@ -233,13 +233,13 @@ private constructor(
233233

234234
/**
235235
* The available spend limit (in cents) relative to the daily limit configured on the
236-
* Account.
236+
* Account (e.g. 100000 would be a $1,000 limit).
237237
*/
238238
fun daily(daily: Long) = daily(JsonField.of(daily))
239239

240240
/**
241241
* The available spend limit (in cents) relative to the daily limit configured on the
242-
* Account.
242+
* Account (e.g. 100000 would be a $1,000 limit).
243243
*/
244244
fun daily(daily: JsonField<Long>) = apply { this.daily = daily }
245245

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

Lines changed: 82 additions & 80 deletions
Large diffs are not rendered by default.

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ private constructor(
107107
fun pinStatus(): PinStatus = pinStatus.getRequired("pin_status")
108108

109109
/**
110-
* Amount (in cents) to limit approved authorizations. Transaction requests above the spend
111-
* limit will be declined.
110+
* Amount (in cents) to limit approved authorizations (e.g. 100000 would be a $1,000 limit).
111+
* Transaction requests above the spend limit will be declined.
112112
*/
113113
fun spendLimit(): Long = spendLimit.getRequired("spend_limit")
114114

@@ -255,8 +255,8 @@ private constructor(
255255
@JsonProperty("pin_status") @ExcludeMissing fun _pinStatus(): JsonField<PinStatus> = pinStatus
256256

257257
/**
258-
* Amount (in cents) to limit approved authorizations. Transaction requests above the spend
259-
* limit will be declined.
258+
* Amount (in cents) to limit approved authorizations (e.g. 100000 would be a $1,000 limit).
259+
* Transaction requests above the spend limit will be declined.
260260
*/
261261
@JsonProperty("spend_limit") @ExcludeMissing fun _spendLimit(): JsonField<Long> = spendLimit
262262

@@ -534,14 +534,14 @@ private constructor(
534534
fun pinStatus(pinStatus: JsonField<PinStatus>) = apply { this.pinStatus = pinStatus }
535535

536536
/**
537-
* Amount (in cents) to limit approved authorizations. Transaction requests above the spend
538-
* limit will be declined.
537+
* Amount (in cents) to limit approved authorizations (e.g. 100000 would be a $1,000 limit).
538+
* Transaction requests above the spend limit will be declined.
539539
*/
540540
fun spendLimit(spendLimit: Long) = spendLimit(JsonField.of(spendLimit))
541541

542542
/**
543-
* Amount (in cents) to limit approved authorizations. Transaction requests above the spend
544-
* limit will be declined.
543+
* Amount (in cents) to limit approved authorizations (e.g. 100000 would be a $1,000 limit).
544+
* Transaction requests above the spend limit will be declined.
545545
*/
546546
fun spendLimit(spendLimit: JsonField<Long>) = apply { this.spendLimit = spendLimit }
547547

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ import java.util.Optional
2626
* `shipping_address`. The card token will be unchanged. The card's type will be altered to
2727
* `PHYSICAL`. The card will be set to state `PENDING_FULFILLMENT` and fulfilled at next fulfillment
2828
* cycle. Virtual cards created on card programs which do not support physical cards cannot be
29-
* converted. The card program cannot be changed as part of the conversion. Cards must be in a state
30-
* of either `OPEN` or `PAUSED` to be converted. Only applies to cards of type `VIRTUAL` (or
31-
* existing cards with deprecated types of `DIGITAL_WALLET` and `UNLOCKED`).
29+
* converted. The card program cannot be changed as part of the conversion. Cards must be in an
30+
* `OPEN` state to be converted. Only applies to cards of type `VIRTUAL` (or existing cards with
31+
* deprecated types of `DIGITAL_WALLET` and `UNLOCKED`).
3232
*/
3333
class CardConvertPhysicalParams
3434
constructor(

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

Lines changed: 38 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,10 @@ constructor(
133133
fun shippingMethod(): Optional<ShippingMethod> = body.shippingMethod()
134134

135135
/**
136-
* Amount (in cents) to limit approved authorizations. Transaction requests above the spend
137-
* limit will be declined. Note that a spend limit of 0 is effectively no limit, and should only
138-
* be used to reset or remove a prior limit. Only a limit of 1 or above will result in declined
139-
* transactions due to checks against the card limit.
136+
* Amount (in cents) to limit approved authorizations (e.g. 100000 would be a $1,000 limit).
137+
* Transaction requests above the spend limit will be declined. Note that a spend limit of 0 is
138+
* effectively no limit, and should only be used to reset or remove a prior limit. Only a limit
139+
* of 1 or above will result in declined transactions due to checks against the card limit.
140140
*/
141141
fun spendLimit(): Optional<Long> = body.spendLimit()
142142

@@ -262,10 +262,10 @@ constructor(
262262
fun _shippingMethod(): JsonField<ShippingMethod> = body._shippingMethod()
263263

264264
/**
265-
* Amount (in cents) to limit approved authorizations. Transaction requests above the spend
266-
* limit will be declined. Note that a spend limit of 0 is effectively no limit, and should only
267-
* be used to reset or remove a prior limit. Only a limit of 1 or above will result in declined
268-
* transactions due to checks against the card limit.
265+
* Amount (in cents) to limit approved authorizations (e.g. 100000 would be a $1,000 limit).
266+
* Transaction requests above the spend limit will be declined. Note that a spend limit of 0 is
267+
* effectively no limit, and should only be used to reset or remove a prior limit. Only a limit
268+
* of 1 or above will result in declined transactions due to checks against the card limit.
269269
*/
270270
fun _spendLimit(): JsonField<Long> = body._spendLimit()
271271

@@ -467,10 +467,11 @@ constructor(
467467
Optional.ofNullable(shippingMethod.getNullable("shipping_method"))
468468

469469
/**
470-
* Amount (in cents) to limit approved authorizations. Transaction requests above the spend
471-
* limit will be declined. Note that a spend limit of 0 is effectively no limit, and should
472-
* only be used to reset or remove a prior limit. Only a limit of 1 or above will result in
473-
* declined transactions due to checks against the card limit.
470+
* Amount (in cents) to limit approved authorizations (e.g. 100000 would be a $1,000 limit).
471+
* Transaction requests above the spend limit will be declined. Note that a spend limit of 0
472+
* is effectively no limit, and should only be used to reset or remove a prior limit. Only a
473+
* limit of 1 or above will result in declined transactions due to checks against the card
474+
* limit.
474475
*/
475476
fun spendLimit(): Optional<Long> =
476477
Optional.ofNullable(spendLimit.getNullable("spend_limit"))
@@ -615,10 +616,11 @@ constructor(
615616
fun _shippingMethod(): JsonField<ShippingMethod> = shippingMethod
616617

617618
/**
618-
* Amount (in cents) to limit approved authorizations. Transaction requests above the spend
619-
* limit will be declined. Note that a spend limit of 0 is effectively no limit, and should
620-
* only be used to reset or remove a prior limit. Only a limit of 1 or above will result in
621-
* declined transactions due to checks against the card limit.
619+
* Amount (in cents) to limit approved authorizations (e.g. 100000 would be a $1,000 limit).
620+
* Transaction requests above the spend limit will be declined. Note that a spend limit of 0
621+
* is effectively no limit, and should only be used to reset or remove a prior limit. Only a
622+
* limit of 1 or above will result in declined transactions due to checks against the card
623+
* limit.
622624
*/
623625
@JsonProperty("spend_limit") @ExcludeMissing fun _spendLimit(): JsonField<Long> = spendLimit
624626

@@ -957,18 +959,20 @@ constructor(
957959
}
958960

959961
/**
960-
* Amount (in cents) to limit approved authorizations. Transaction requests above the
961-
* spend limit will be declined. Note that a spend limit of 0 is effectively no limit,
962-
* and should only be used to reset or remove a prior limit. Only a limit of 1 or above
963-
* will result in declined transactions due to checks against the card limit.
962+
* Amount (in cents) to limit approved authorizations (e.g. 100000 would be a $1,000
963+
* limit). Transaction requests above the spend limit will be declined. Note that a
964+
* spend limit of 0 is effectively no limit, and should only be used to reset or remove
965+
* a prior limit. Only a limit of 1 or above will result in declined transactions due to
966+
* checks against the card limit.
964967
*/
965968
fun spendLimit(spendLimit: Long) = spendLimit(JsonField.of(spendLimit))
966969

967970
/**
968-
* Amount (in cents) to limit approved authorizations. Transaction requests above the
969-
* spend limit will be declined. Note that a spend limit of 0 is effectively no limit,
970-
* and should only be used to reset or remove a prior limit. Only a limit of 1 or above
971-
* will result in declined transactions due to checks against the card limit.
971+
* Amount (in cents) to limit approved authorizations (e.g. 100000 would be a $1,000
972+
* limit). Transaction requests above the spend limit will be declined. Note that a
973+
* spend limit of 0 is effectively no limit, and should only be used to reset or remove
974+
* a prior limit. Only a limit of 1 or above will result in declined transactions due to
975+
* checks against the card limit.
972976
*/
973977
fun spendLimit(spendLimit: JsonField<Long>) = apply { this.spendLimit = spendLimit }
974978

@@ -1333,18 +1337,20 @@ constructor(
13331337
}
13341338

13351339
/**
1336-
* Amount (in cents) to limit approved authorizations. Transaction requests above the spend
1337-
* limit will be declined. Note that a spend limit of 0 is effectively no limit, and should
1338-
* only be used to reset or remove a prior limit. Only a limit of 1 or above will result in
1339-
* declined transactions due to checks against the card limit.
1340+
* Amount (in cents) to limit approved authorizations (e.g. 100000 would be a $1,000 limit).
1341+
* Transaction requests above the spend limit will be declined. Note that a spend limit of 0
1342+
* is effectively no limit, and should only be used to reset or remove a prior limit. Only a
1343+
* limit of 1 or above will result in declined transactions due to checks against the card
1344+
* limit.
13401345
*/
13411346
fun spendLimit(spendLimit: Long) = apply { body.spendLimit(spendLimit) }
13421347

13431348
/**
1344-
* Amount (in cents) to limit approved authorizations. Transaction requests above the spend
1345-
* limit will be declined. Note that a spend limit of 0 is effectively no limit, and should
1346-
* only be used to reset or remove a prior limit. Only a limit of 1 or above will result in
1347-
* declined transactions due to checks against the card limit.
1349+
* Amount (in cents) to limit approved authorizations (e.g. 100000 would be a $1,000 limit).
1350+
* Transaction requests above the spend limit will be declined. Note that a spend limit of 0
1351+
* is effectively no limit, and should only be used to reset or remove a prior limit. Only a
1352+
* limit of 1 or above will result in declined transactions due to checks against the card
1353+
* limit.
13481354
*/
13491355
fun spendLimit(spendLimit: JsonField<Long>) = apply { body.spendLimit(spendLimit) }
13501356

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,8 @@ private constructor(
157157
) {
158158

159159
/**
160-
* The available spend limit (in cents) relative to the annual limit configured on the Card.
160+
* The available spend limit (in cents) relative to the annual limit configured on the Card
161+
* (e.g. 100000 would be a $1,000 limit).
161162
*/
162163
fun annually(): Optional<Long> = Optional.ofNullable(annually.getNullable("annually"))
163164

@@ -174,7 +175,8 @@ private constructor(
174175
fun monthly(): Optional<Long> = Optional.ofNullable(monthly.getNullable("monthly"))
175176

176177
/**
177-
* The available spend limit (in cents) relative to the annual limit configured on the Card.
178+
* The available spend limit (in cents) relative to the annual limit configured on the Card
179+
* (e.g. 100000 would be a $1,000 limit).
178180
*/
179181
@JsonProperty("annually") @ExcludeMissing fun _annually(): JsonField<Long> = annually
180182

@@ -231,13 +233,13 @@ private constructor(
231233

232234
/**
233235
* The available spend limit (in cents) relative to the annual limit configured on the
234-
* Card.
236+
* Card (e.g. 100000 would be a $1,000 limit).
235237
*/
236238
fun annually(annually: Long) = annually(JsonField.of(annually))
237239

238240
/**
239241
* The available spend limit (in cents) relative to the annual limit configured on the
240-
* Card.
242+
* Card (e.g. 100000 would be a $1,000 limit).
241243
*/
242244
fun annually(annually: JsonField<Long>) = apply { this.annually = annually }
243245

0 commit comments

Comments
 (0)