Skip to content

Commit 36f4569

Browse files
feat(api)!: removes AccountHolder resubmit endpoint and KYC_ADVANCED workflow (#416)
1 parent b4b4afb commit 36f4569

18 files changed

+482
-1434
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
configured_endpoints: 154
1+
configured_endpoints: 153

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

Lines changed: 8 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,6 @@ private constructor(
137137
* KYC and KYB evaluation states.
138138
*
139139
* Note:
140-
* - `PENDING_RESUBMIT` and `PENDING_DOCUMENT` are only applicable for the `KYC_ADVANCED`
141-
* workflow.
142140
* - `PENDING_REVIEW` is only applicable for the `KYB_BASIC` workflow.
143141
*/
144142
fun status(): Optional<Status> = Optional.ofNullable(status.getNullable("status"))
@@ -165,8 +163,8 @@ private constructor(
165163
Optional.ofNullable(verificationApplication.getNullable("verification_application"))
166164

167165
/**
168-
* Only present for "KYB_BASIC" and "KYC_ADVANCED" workflows. A list of documents required for
169-
* the account holder to be approved.
166+
* Only present for "KYB_BASIC" workflow. A list of documents required for the account holder to
167+
* be approved.
170168
*/
171169
fun requiredDocuments(): Optional<List<RequiredDocument>> =
172170
Optional.ofNullable(requiredDocuments.getNullable("required_documents"))
@@ -259,8 +257,6 @@ private constructor(
259257
* KYC and KYB evaluation states.
260258
*
261259
* Note:
262-
* - `PENDING_RESUBMIT` and `PENDING_DOCUMENT` are only applicable for the `KYC_ADVANCED`
263-
* workflow.
264260
* - `PENDING_REVIEW` is only applicable for the `KYB_BASIC` workflow.
265261
*/
266262
@JsonProperty("status") @ExcludeMissing fun _status() = status
@@ -287,8 +283,8 @@ private constructor(
287283
fun _verificationApplication() = verificationApplication
288284

289285
/**
290-
* Only present for "KYB_BASIC" and "KYC_ADVANCED" workflows. A list of documents required for
291-
* the account holder to be approved.
286+
* Only present for "KYB_BASIC" workflow. A list of documents required for the account holder to
287+
* be approved.
292288
*/
293289
@JsonProperty("required_documents") @ExcludeMissing fun _requiredDocuments() = requiredDocuments
294290

@@ -592,8 +588,6 @@ private constructor(
592588
* KYC and KYB evaluation states.
593589
*
594590
* Note:
595-
* - `PENDING_RESUBMIT` and `PENDING_DOCUMENT` are only applicable for the `KYC_ADVANCED`
596-
* workflow.
597591
* - `PENDING_REVIEW` is only applicable for the `KYB_BASIC` workflow.
598592
*/
599593
fun status(status: Status) = status(JsonField.of(status))
@@ -604,8 +598,6 @@ private constructor(
604598
* KYC and KYB evaluation states.
605599
*
606600
* Note:
607-
* - `PENDING_RESUBMIT` and `PENDING_DOCUMENT` are only applicable for the `KYC_ADVANCED`
608-
* workflow.
609601
* - `PENDING_REVIEW` is only applicable for the `KYB_BASIC` workflow.
610602
*/
611603
@JsonProperty("status")
@@ -667,15 +659,15 @@ private constructor(
667659
) = apply { this.verificationApplication = verificationApplication }
668660

669661
/**
670-
* Only present for "KYB_BASIC" and "KYC_ADVANCED" workflows. A list of documents required
671-
* for the account holder to be approved.
662+
* Only present for "KYB_BASIC" workflow. A list of documents required for the account
663+
* holder to be approved.
672664
*/
673665
fun requiredDocuments(requiredDocuments: List<RequiredDocument>) =
674666
requiredDocuments(JsonField.of(requiredDocuments))
675667

676668
/**
677-
* Only present for "KYB_BASIC" and "KYC_ADVANCED" workflows. A list of documents required
678-
* for the account holder to be approved.
669+
* Only present for "KYB_BASIC" workflow. A list of documents required for the account
670+
* holder to be approved.
679671
*/
680672
@JsonProperty("required_documents")
681673
@ExcludeMissing
@@ -1528,8 +1520,6 @@ private constructor(
15281520
* KYC and KYB evaluation states.
15291521
*
15301522
* Note:
1531-
* - `PENDING_RESUBMIT` and `PENDING_DOCUMENT` are only applicable for the `KYC_ADVANCED`
1532-
* workflow.
15331523
* - `PENDING_REVIEW` is only applicable for the `KYB_BASIC` workflow.
15341524
*/
15351525
fun status(): Optional<Status> = Optional.ofNullable(status.getNullable("status"))
@@ -1549,8 +1539,6 @@ private constructor(
15491539
* KYC and KYB evaluation states.
15501540
*
15511541
* Note:
1552-
* - `PENDING_RESUBMIT` and `PENDING_DOCUMENT` are only applicable for the `KYC_ADVANCED`
1553-
* workflow.
15541542
* - `PENDING_REVIEW` is only applicable for the `KYB_BASIC` workflow.
15551543
*/
15561544
@JsonProperty("status") @ExcludeMissing fun _status() = status
@@ -1613,8 +1601,6 @@ private constructor(
16131601
* KYC and KYB evaluation states.
16141602
*
16151603
* Note:
1616-
* - `PENDING_RESUBMIT` and `PENDING_DOCUMENT` are only applicable for the
1617-
* `KYC_ADVANCED` workflow.
16181604
* - `PENDING_REVIEW` is only applicable for the `KYB_BASIC` workflow.
16191605
*/
16201606
fun status(status: Status) = status(JsonField.of(status))
@@ -1623,8 +1609,6 @@ private constructor(
16231609
* KYC and KYB evaluation states.
16241610
*
16251611
* Note:
1626-
* - `PENDING_RESUBMIT` and `PENDING_DOCUMENT` are only applicable for the
1627-
* `KYC_ADVANCED` workflow.
16281612
* - `PENDING_REVIEW` is only applicable for the `KYB_BASIC` workflow.
16291613
*/
16301614
@JsonProperty("status")

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

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ private constructor(
5151
* KYC and KYB evaluation states.
5252
*
5353
* Note:
54-
* - `PENDING_RESUBMIT` and `PENDING_DOCUMENT` are only applicable for the `KYC_ADVANCED`
55-
* workflow.
5654
* - `PENDING_REVIEW` is only applicable for the `KYB_BASIC` workflow.
5755
*/
5856
fun status(): Status = status.getRequired("status")
@@ -61,8 +59,8 @@ private constructor(
6159
fun statusReasons(): List<StatusReasons> = statusReasons.getRequired("status_reasons")
6260

6361
/**
64-
* Only present for "KYB_BASIC" and "KYC_ADVANCED" workflows. A list of documents required for
65-
* the account holder to be approved.
62+
* Only present for "KYB_BASIC" workflow. A list of documents required for the account holder to
63+
* be approved.
6664
*/
6765
fun requiredDocuments(): Optional<List<RequiredDocument>> =
6866
Optional.ofNullable(requiredDocuments.getNullable("required_documents"))
@@ -86,8 +84,6 @@ private constructor(
8684
* KYC and KYB evaluation states.
8785
*
8886
* Note:
89-
* - `PENDING_RESUBMIT` and `PENDING_DOCUMENT` are only applicable for the `KYC_ADVANCED`
90-
* workflow.
9187
* - `PENDING_REVIEW` is only applicable for the `KYB_BASIC` workflow.
9288
*/
9389
@JsonProperty("status") @ExcludeMissing fun _status() = status
@@ -96,8 +92,8 @@ private constructor(
9692
@JsonProperty("status_reasons") @ExcludeMissing fun _statusReasons() = statusReasons
9793

9894
/**
99-
* Only present for "KYB_BASIC" and "KYC_ADVANCED" workflows. A list of documents required for
100-
* the account holder to be approved.
95+
* Only present for "KYB_BASIC" workflow. A list of documents required for the account holder to
96+
* be approved.
10197
*/
10298
@JsonProperty("required_documents") @ExcludeMissing fun _requiredDocuments() = requiredDocuments
10399

@@ -187,8 +183,6 @@ private constructor(
187183
* KYC and KYB evaluation states.
188184
*
189185
* Note:
190-
* - `PENDING_RESUBMIT` and `PENDING_DOCUMENT` are only applicable for the `KYC_ADVANCED`
191-
* workflow.
192186
* - `PENDING_REVIEW` is only applicable for the `KYB_BASIC` workflow.
193187
*/
194188
fun status(status: Status) = status(JsonField.of(status))
@@ -197,8 +191,6 @@ private constructor(
197191
* KYC and KYB evaluation states.
198192
*
199193
* Note:
200-
* - `PENDING_RESUBMIT` and `PENDING_DOCUMENT` are only applicable for the `KYC_ADVANCED`
201-
* workflow.
202194
* - `PENDING_REVIEW` is only applicable for the `KYB_BASIC` workflow.
203195
*/
204196
@JsonProperty("status")
@@ -217,15 +209,15 @@ private constructor(
217209
}
218210

219211
/**
220-
* Only present for "KYB_BASIC" and "KYC_ADVANCED" workflows. A list of documents required
221-
* for the account holder to be approved.
212+
* Only present for "KYB_BASIC" workflow. A list of documents required for the account
213+
* holder to be approved.
222214
*/
223215
fun requiredDocuments(requiredDocuments: List<RequiredDocument>) =
224216
requiredDocuments(JsonField.of(requiredDocuments))
225217

226218
/**
227-
* Only present for "KYB_BASIC" and "KYC_ADVANCED" workflows. A list of documents required
228-
* for the account holder to be approved.
219+
* Only present for "KYB_BASIC" workflow. A list of documents required for the account
220+
* holder to be approved.
229221
*/
230222
@JsonProperty("required_documents")
231223
@ExcludeMissing

0 commit comments

Comments
 (0)