Skip to content

Commit 88bdc78

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
docs: add more documentation (#450)
1 parent 7edecd8 commit 88bdc78

File tree

161 files changed

+850
-8
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

161 files changed

+850
-8
lines changed

buildSrc/src/main/kotlin/lithic.kotlin.gradle.kts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,12 @@ configure<SpotlessExtension> {
2121

2222
tasks.withType<KotlinCompile>().configureEach {
2323
kotlinOptions {
24-
allWarningsAsErrors = true
25-
freeCompilerArgs = listOf("-Xjvm-default=all", "-Xjdk-release=1.8")
24+
freeCompilerArgs = listOf(
25+
"-Xjvm-default=all",
26+
"-Xjdk-release=1.8",
27+
// Suppress deprecation warnings because we may still reference and test deprecated members.
28+
"-Xsuppress-warning=DEPRECATION"
29+
)
2630
jvmTarget = "1.8"
2731
}
2832
}

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

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,15 @@ private constructor(
8888
* removed from the schema in a future release. Use the `/auth_rules` endpoints to fetch Auth
8989
* Rule information instead.
9090
*/
91+
@Deprecated("deprecated")
9192
fun authRuleTokens(): Optional<List<String>> =
9293
Optional.ofNullable(authRuleTokens.getNullable("auth_rule_tokens"))
9394

9495
/** 3-digit alphabetic ISO 4217 code for the currency of the cardholder. */
9596
fun cardholderCurrency(): Optional<String> =
9697
Optional.ofNullable(cardholderCurrency.getNullable("cardholder_currency"))
9798

99+
@Deprecated("deprecated")
98100
fun verificationAddress(): Optional<VerificationAddress> =
99101
Optional.ofNullable(verificationAddress.getNullable("verification_address"))
100102

@@ -142,6 +144,7 @@ private constructor(
142144
* removed from the schema in a future release. Use the `/auth_rules` endpoints to fetch Auth
143145
* Rule information instead.
144146
*/
147+
@Deprecated("deprecated")
145148
@JsonProperty("auth_rule_tokens")
146149
@ExcludeMissing
147150
fun _authRuleTokens(): JsonField<List<String>> = authRuleTokens
@@ -151,6 +154,7 @@ private constructor(
151154
@ExcludeMissing
152155
fun _cardholderCurrency(): JsonField<String> = cardholderCurrency
153156

157+
@Deprecated("deprecated")
154158
@JsonProperty("verification_address")
155159
@ExcludeMissing
156160
fun _verificationAddress(): JsonField<VerificationAddress> = verificationAddress
@@ -293,6 +297,7 @@ private constructor(
293297
* be removed from the schema in a future release. Use the `/auth_rules` endpoints to fetch
294298
* Auth Rule information instead.
295299
*/
300+
@Deprecated("deprecated")
296301
fun authRuleTokens(authRuleTokens: List<String>) =
297302
authRuleTokens(JsonField.of(authRuleTokens))
298303

@@ -302,6 +307,7 @@ private constructor(
302307
* be removed from the schema in a future release. Use the `/auth_rules` endpoints to fetch
303308
* Auth Rule information instead.
304309
*/
310+
@Deprecated("deprecated")
305311
fun authRuleTokens(authRuleTokens: JsonField<List<String>>) = apply {
306312
this.authRuleTokens = authRuleTokens.map { it.toMutableList() }
307313
}
@@ -312,6 +318,7 @@ private constructor(
312318
* be removed from the schema in a future release. Use the `/auth_rules` endpoints to fetch
313319
* Auth Rule information instead.
314320
*/
321+
@Deprecated("deprecated")
315322
fun addAuthRuleToken(authRuleToken: String) = apply {
316323
authRuleTokens =
317324
(authRuleTokens ?: JsonField.of(mutableListOf())).apply {
@@ -334,9 +341,11 @@ private constructor(
334341
this.cardholderCurrency = cardholderCurrency
335342
}
336343

344+
@Deprecated("deprecated")
337345
fun verificationAddress(verificationAddress: VerificationAddress) =
338346
verificationAddress(JsonField.of(verificationAddress))
339347

348+
@Deprecated("deprecated")
340349
fun verificationAddress(verificationAddress: JsonField<VerificationAddress>) = apply {
341350
this.verificationAddress = verificationAddress
342351
}
@@ -518,6 +527,16 @@ private constructor(
518527
"SpendLimit{daily=$daily, lifetime=$lifetime, monthly=$monthly, additionalProperties=$additionalProperties}"
519528
}
520529

530+
/**
531+
* Account state:
532+
* - `ACTIVE` - Account is able to transact and create new cards.
533+
* - `PAUSED` - Account will not be able to transact or create new cards. It can be set back to
534+
* `ACTIVE`.
535+
* - `CLOSED` - Account will not be able to transact or create new cards. `CLOSED` accounts are
536+
* also unable to be transitioned to `ACTIVE` or `PAUSED` states. `CLOSED` accounts result
537+
* from failing to pass KYB/KYC or Lithic closing for risk/compliance reasons. Please contact
538+
* [support@lithic.com](mailto:support@lithic.com) if you believe this was in error.
539+
*/
521540
class State
522541
@JsonCreator
523542
private constructor(
@@ -764,6 +783,7 @@ private constructor(
764783
"AccountHolder{token=$token, businessAccountToken=$businessAccountToken, email=$email, phoneNumber=$phoneNumber, additionalProperties=$additionalProperties}"
765784
}
766785

786+
@Deprecated("deprecated")
767787
@NoAutoDetect
768788
class VerificationAddress
769789
@JsonCreator

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import com.lithic.api.core.Enum
77
import com.lithic.api.core.JsonField
88
import com.lithic.api.errors.LithicInvalidDataException
99

10+
/** Type of account financial account */
1011
class AccountFinancialAccountType
1112
@JsonCreator
1213
private constructor(

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

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1349,6 +1349,7 @@ private constructor(
13491349
"AccountHolderIndividualResponse{address=$address, dob=$dob, email=$email, entityToken=$entityToken, firstName=$firstName, lastName=$lastName, phoneNumber=$phoneNumber, additionalProperties=$additionalProperties}"
13501350
}
13511351

1352+
/** The type of KYC exemption for a KYC-Exempt Account Holder. */
13521353
class ExemptionType
13531354
@JsonCreator
13541355
private constructor(
@@ -1406,6 +1407,14 @@ private constructor(
14061407
override fun toString() = value.toString()
14071408
}
14081409

1410+
/**
1411+
* <Deprecated. Use verification_application.status instead>
1412+
*
1413+
* KYC and KYB evaluation states.
1414+
*
1415+
* Note:
1416+
* - `PENDING_REVIEW` is only applicable for the `KYB_BASIC` workflow.
1417+
*/
14091418
class Status
14101419
@JsonCreator
14111420
private constructor(
@@ -1592,6 +1601,12 @@ private constructor(
15921601
override fun toString() = value.toString()
15931602
}
15941603

1604+
/**
1605+
* The type of Account Holder. If the type is "INDIVIDUAL", the "individual" attribute will be
1606+
* present. If the type is "BUSINESS" then the "business_entity", "control_person",
1607+
* "beneficial_owner_individuals", "beneficial_owner_entities", "nature_of_business", and
1608+
* "website_url" attributes will be present.
1609+
*/
15951610
class UserType
15961611
@JsonCreator
15971612
private constructor(
@@ -1835,6 +1850,12 @@ private constructor(
18351850
)
18361851
}
18371852

1853+
/**
1854+
* KYC and KYB evaluation states.
1855+
*
1856+
* Note:
1857+
* - `PENDING_REVIEW` is only applicable for the `KYB_BASIC` workflow.
1858+
*/
18381859
class Status
18391860
@JsonCreator
18401861
private constructor(

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,12 @@ private constructor(
304304
)
305305
}
306306

307+
/**
308+
* KYC and KYB evaluation states.
309+
*
310+
* Note:
311+
* - `PENDING_REVIEW` is only applicable for the `KYB_BASIC` workflow.
312+
*/
307313
class Status
308314
@JsonCreator
309315
private constructor(
@@ -379,6 +385,7 @@ private constructor(
379385
override fun toString() = value.toString()
380386
}
381387

388+
/** Status Reasons for KYC/KYB enrollment states */
382389
class StatusReasons
383390
@JsonCreator
384391
private constructor(

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import java.util.Optional
1919
import java.util.stream.Stream
2020
import java.util.stream.StreamSupport
2121

22+
/** Get a list of individual or business account holders and their KYC or KYB evaluation status. */
2223
class AccountHolderListPage
2324
private constructor(
2425
private val accountHoldersService: AccountHolderService,

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import java.util.concurrent.CompletableFuture
2020
import java.util.concurrent.Executor
2121
import java.util.function.Predicate
2222

23+
/** Get a list of individual or business account holders and their KYC or KYB evaluation status. */
2324
class AccountHolderListPageAsync
2425
private constructor(
2526
private val accountHoldersService: AccountHolderServiceAsync,

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,7 @@ constructor(
485485
)
486486
}
487487

488+
/** An account holder document's upload status for use within the simulation. */
488489
class Status
489490
@JsonCreator
490491
private constructor(
@@ -554,6 +555,10 @@ constructor(
554555
override fun toString() = value.toString()
555556
}
556557

558+
/**
559+
* Status reason that will be associated with the simulated account holder status. Only required
560+
* for a `REJECTED` status or `PARTIAL_APPROVAL` status.
561+
*/
557562
class DocumentUploadStatusReasons
558563
@JsonCreator
559564
private constructor(

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,7 @@ constructor(
443443
)
444444
}
445445

446+
/** An account holder's status for use within the simulation. */
446447
class Status
447448
@JsonCreator
448449
private constructor(

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

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1886,6 +1886,10 @@ private constructor(
18861886
"Individual{address=$address, dob=$dob, email=$email, firstName=$firstName, governmentId=$governmentId, lastName=$lastName, phoneNumber=$phoneNumber, additionalProperties=$additionalProperties}"
18871887
}
18881888

1889+
/**
1890+
* The type of KYC exemption for a KYC-Exempt Account Holder. "None" if the account holder is
1891+
* not KYC-Exempt.
1892+
*/
18891893
class ExemptionType
18901894
@JsonCreator
18911895
private constructor(
@@ -1943,6 +1947,14 @@ private constructor(
19431947
override fun toString() = value.toString()
19441948
}
19451949

1950+
/**
1951+
* <Deprecated. Use verification_application.status instead>
1952+
*
1953+
* KYC and KYB evaluation states.
1954+
*
1955+
* Note: `PENDING_RESUBMIT` and `PENDING_DOCUMENT` are only applicable for the `ADVANCED`
1956+
* workflow.
1957+
*/
19461958
class Status
19471959
@JsonCreator
19481960
private constructor(
@@ -2012,6 +2024,7 @@ private constructor(
20122024
override fun toString() = value.toString()
20132025
}
20142026

2027+
/** Status Reasons for KYC/KYB enrollment states */
20152028
class StatusReasons
20162029
@JsonCreator
20172030
private constructor(
@@ -2250,6 +2263,15 @@ private constructor(
22502263
override fun toString() = value.toString()
22512264
}
22522265

2266+
/**
2267+
* The type of Account Holder. If the type is "INDIVIDUAL", the "individual" attribute will be
2268+
* present.
2269+
*
2270+
* If the type is "BUSINESS" then the "business_entity", "control_person",
2271+
* "beneficial_owner_individuals", "beneficial_owner_entities",
2272+
*
2273+
* "nature_of_business", and "website_url" attributes will be present.
2274+
*/
22532275
class UserType
22542276
@JsonCreator
22552277
private constructor(
@@ -2486,6 +2508,12 @@ private constructor(
24862508
)
24872509
}
24882510

2511+
/**
2512+
* KYC and KYB evaluation states.
2513+
*
2514+
* Note: `PENDING_RESUBMIT` and `PENDING_DOCUMENT` are only applicable for the `ADVANCED`
2515+
* workflow.
2516+
*/
24892517
class Status
24902518
@JsonCreator
24912519
private constructor(
@@ -2555,6 +2583,7 @@ private constructor(
25552583
override fun toString() = value.toString()
25562584
}
25572585

2586+
/** Status Reasons for KYC/KYB enrollment states */
25582587
class StatusReasons
25592588
@JsonCreator
25602589
private constructor(

0 commit comments

Comments
 (0)