Skip to content

Commit 1dc17ba

Browse files
1 parent b1b2e86 commit 1dc17ba

9 files changed

Lines changed: 377 additions & 15 deletions

File tree

.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-529662462c00af160f74568fe26dbe576cf1fdc9f427e11bb1939bd8acdcb43f.yml
3-
openapi_spec_hash: a98631dfc66716d41ada4ddb199f7028
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-aca56b6e4da5b97e586e66392dd3cf433208cb964e25081a661dd41cf456a88a.yml
3+
openapi_spec_hash: 297b9f330d31db8e5832463a0ce455ba
44
config_hash: 99dad20b4a7d4a1390670762b9da4231

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

Lines changed: 49 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2608,6 +2608,7 @@ private constructor(
26082608
private val status: JsonField<Status>,
26092609
private val statusReasons: JsonField<List<StatusReasons>>,
26102610
private val updated: JsonField<OffsetDateTime>,
2611+
private val kyPassedAt: JsonField<OffsetDateTime>,
26112612
private val additionalProperties: MutableMap<String, JsonValue>,
26122613
) {
26132614

@@ -2623,7 +2624,10 @@ private constructor(
26232624
@JsonProperty("updated")
26242625
@ExcludeMissing
26252626
updated: JsonField<OffsetDateTime> = JsonMissing.of(),
2626-
) : this(created, status, statusReasons, updated, mutableMapOf())
2627+
@JsonProperty("ky_passed_at")
2628+
@ExcludeMissing
2629+
kyPassedAt: JsonField<OffsetDateTime> = JsonMissing.of(),
2630+
) : this(created, status, statusReasons, updated, kyPassedAt, mutableMapOf())
26272631

26282632
/**
26292633
* Timestamp of when the application was created.
@@ -2660,6 +2664,15 @@ private constructor(
26602664
*/
26612665
fun updated(): OffsetDateTime = updated.getRequired("updated")
26622666

2667+
/**
2668+
* Timestamp of when the application passed the verification process. Only present if
2669+
* `status` is `ACCEPTED`
2670+
*
2671+
* @throws LithicInvalidDataException if the JSON field has an unexpected type (e.g. if the
2672+
* server responded with an unexpected value).
2673+
*/
2674+
fun kyPassedAt(): Optional<OffsetDateTime> = kyPassedAt.getOptional("ky_passed_at")
2675+
26632676
/**
26642677
* Returns the raw JSON value of [created].
26652678
*
@@ -2691,6 +2704,15 @@ private constructor(
26912704
*/
26922705
@JsonProperty("updated") @ExcludeMissing fun _updated(): JsonField<OffsetDateTime> = updated
26932706

2707+
/**
2708+
* Returns the raw JSON value of [kyPassedAt].
2709+
*
2710+
* Unlike [kyPassedAt], this method doesn't throw if the JSON field has an unexpected type.
2711+
*/
2712+
@JsonProperty("ky_passed_at")
2713+
@ExcludeMissing
2714+
fun _kyPassedAt(): JsonField<OffsetDateTime> = kyPassedAt
2715+
26942716
@JsonAnySetter
26952717
private fun putAdditionalProperty(key: String, value: JsonValue) {
26962718
additionalProperties.put(key, value)
@@ -2726,6 +2748,7 @@ private constructor(
27262748
private var status: JsonField<Status>? = null
27272749
private var statusReasons: JsonField<MutableList<StatusReasons>>? = null
27282750
private var updated: JsonField<OffsetDateTime>? = null
2751+
private var kyPassedAt: JsonField<OffsetDateTime> = JsonMissing.of()
27292752
private var additionalProperties: MutableMap<String, JsonValue> = mutableMapOf()
27302753

27312754
@JvmSynthetic
@@ -2734,6 +2757,7 @@ private constructor(
27342757
status = verificationApplication.status
27352758
statusReasons = verificationApplication.statusReasons.map { it.toMutableList() }
27362759
updated = verificationApplication.updated
2760+
kyPassedAt = verificationApplication.kyPassedAt
27372761
additionalProperties = verificationApplication.additionalProperties.toMutableMap()
27382762
}
27392763

@@ -2805,6 +2829,23 @@ private constructor(
28052829
*/
28062830
fun updated(updated: JsonField<OffsetDateTime>) = apply { this.updated = updated }
28072831

2832+
/**
2833+
* Timestamp of when the application passed the verification process. Only present if
2834+
* `status` is `ACCEPTED`
2835+
*/
2836+
fun kyPassedAt(kyPassedAt: OffsetDateTime) = kyPassedAt(JsonField.of(kyPassedAt))
2837+
2838+
/**
2839+
* Sets [Builder.kyPassedAt] to an arbitrary JSON value.
2840+
*
2841+
* You should usually call [Builder.kyPassedAt] with a well-typed [OffsetDateTime] value
2842+
* instead. This method is primarily for setting the field to an undocumented or not yet
2843+
* supported value.
2844+
*/
2845+
fun kyPassedAt(kyPassedAt: JsonField<OffsetDateTime>) = apply {
2846+
this.kyPassedAt = kyPassedAt
2847+
}
2848+
28082849
fun additionalProperties(additionalProperties: Map<String, JsonValue>) = apply {
28092850
this.additionalProperties.clear()
28102851
putAllAdditionalProperties(additionalProperties)
@@ -2845,6 +2886,7 @@ private constructor(
28452886
checkRequired("status", status),
28462887
checkRequired("statusReasons", statusReasons).map { it.toImmutable() },
28472888
checkRequired("updated", updated),
2889+
kyPassedAt,
28482890
additionalProperties.toMutableMap(),
28492891
)
28502892
}
@@ -2860,6 +2902,7 @@ private constructor(
28602902
status().validate()
28612903
statusReasons().forEach { it.validate() }
28622904
updated()
2905+
kyPassedAt()
28632906
validated = true
28642907
}
28652908

@@ -2882,7 +2925,8 @@ private constructor(
28822925
(if (created.asKnown().isPresent) 1 else 0) +
28832926
(status.asKnown().getOrNull()?.validity() ?: 0) +
28842927
(statusReasons.asKnown().getOrNull()?.sumOf { it.validity().toInt() } ?: 0) +
2885-
(if (updated.asKnown().isPresent) 1 else 0)
2928+
(if (updated.asKnown().isPresent) 1 else 0) +
2929+
(if (kyPassedAt.asKnown().isPresent) 1 else 0)
28862930

28872931
/**
28882932
* KYC and KYB evaluation states.
@@ -3357,17 +3401,18 @@ private constructor(
33573401
status == other.status &&
33583402
statusReasons == other.statusReasons &&
33593403
updated == other.updated &&
3404+
kyPassedAt == other.kyPassedAt &&
33603405
additionalProperties == other.additionalProperties
33613406
}
33623407

33633408
private val hashCode: Int by lazy {
3364-
Objects.hash(created, status, statusReasons, updated, additionalProperties)
3409+
Objects.hash(created, status, statusReasons, updated, kyPassedAt, additionalProperties)
33653410
}
33663411

33673412
override fun hashCode(): Int = hashCode
33683413

33693414
override fun toString() =
3370-
"VerificationApplication{created=$created, status=$status, statusReasons=$statusReasons, updated=$updated, additionalProperties=$additionalProperties}"
3415+
"VerificationApplication{created=$created, status=$status, statusReasons=$statusReasons, updated=$updated, kyPassedAt=$kyPassedAt, additionalProperties=$additionalProperties}"
33713416
}
33723417

33733418
override fun equals(other: Any?): Boolean {

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

Lines changed: 57 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2849,6 +2849,7 @@ private constructor(
28492849
private val status: JsonField<Status>,
28502850
private val statusReasons: JsonField<List<StatusReasons>>,
28512851
private val updated: JsonField<OffsetDateTime>,
2852+
private val kyPassedAt: JsonField<OffsetDateTime>,
28522853
private val additionalProperties: MutableMap<String, JsonValue>,
28532854
) {
28542855

@@ -2866,7 +2867,10 @@ private constructor(
28662867
@JsonProperty("updated")
28672868
@ExcludeMissing
28682869
updated: JsonField<OffsetDateTime> = JsonMissing.of(),
2869-
) : this(created, status, statusReasons, updated, mutableMapOf())
2870+
@JsonProperty("ky_passed_at")
2871+
@ExcludeMissing
2872+
kyPassedAt: JsonField<OffsetDateTime> = JsonMissing.of(),
2873+
) : this(created, status, statusReasons, updated, kyPassedAt, mutableMapOf())
28702874

28712875
/**
28722876
* Timestamp of when the application was created.
@@ -2907,6 +2911,15 @@ private constructor(
29072911
*/
29082912
fun updated(): OffsetDateTime = updated.getRequired("updated")
29092913

2914+
/**
2915+
* Timestamp of when the application passed the verification process. Only present if
2916+
* `status` is `ACCEPTED`
2917+
*
2918+
* @throws LithicInvalidDataException if the JSON field has an unexpected type (e.g. if
2919+
* the server responded with an unexpected value).
2920+
*/
2921+
fun kyPassedAt(): Optional<OffsetDateTime> = kyPassedAt.getOptional("ky_passed_at")
2922+
29102923
/**
29112924
* Returns the raw JSON value of [created].
29122925
*
@@ -2942,6 +2955,16 @@ private constructor(
29422955
@ExcludeMissing
29432956
fun _updated(): JsonField<OffsetDateTime> = updated
29442957

2958+
/**
2959+
* Returns the raw JSON value of [kyPassedAt].
2960+
*
2961+
* Unlike [kyPassedAt], this method doesn't throw if the JSON field has an unexpected
2962+
* type.
2963+
*/
2964+
@JsonProperty("ky_passed_at")
2965+
@ExcludeMissing
2966+
fun _kyPassedAt(): JsonField<OffsetDateTime> = kyPassedAt
2967+
29452968
@JsonAnySetter
29462969
private fun putAdditionalProperty(key: String, value: JsonValue) {
29472970
additionalProperties.put(key, value)
@@ -2978,6 +3001,7 @@ private constructor(
29783001
private var status: JsonField<Status>? = null
29793002
private var statusReasons: JsonField<MutableList<StatusReasons>>? = null
29803003
private var updated: JsonField<OffsetDateTime>? = null
3004+
private var kyPassedAt: JsonField<OffsetDateTime> = JsonMissing.of()
29813005
private var additionalProperties: MutableMap<String, JsonValue> = mutableMapOf()
29823006

29833007
@JvmSynthetic
@@ -2986,6 +3010,7 @@ private constructor(
29863010
status = verificationApplication.status
29873011
statusReasons = verificationApplication.statusReasons.map { it.toMutableList() }
29883012
updated = verificationApplication.updated
3013+
kyPassedAt = verificationApplication.kyPassedAt
29893014
additionalProperties =
29903015
verificationApplication.additionalProperties.toMutableMap()
29913016
}
@@ -3058,6 +3083,23 @@ private constructor(
30583083
*/
30593084
fun updated(updated: JsonField<OffsetDateTime>) = apply { this.updated = updated }
30603085

3086+
/**
3087+
* Timestamp of when the application passed the verification process. Only present
3088+
* if `status` is `ACCEPTED`
3089+
*/
3090+
fun kyPassedAt(kyPassedAt: OffsetDateTime) = kyPassedAt(JsonField.of(kyPassedAt))
3091+
3092+
/**
3093+
* Sets [Builder.kyPassedAt] to an arbitrary JSON value.
3094+
*
3095+
* You should usually call [Builder.kyPassedAt] with a well-typed [OffsetDateTime]
3096+
* value instead. This method is primarily for setting the field to an undocumented
3097+
* or not yet supported value.
3098+
*/
3099+
fun kyPassedAt(kyPassedAt: JsonField<OffsetDateTime>) = apply {
3100+
this.kyPassedAt = kyPassedAt
3101+
}
3102+
30613103
fun additionalProperties(additionalProperties: Map<String, JsonValue>) = apply {
30623104
this.additionalProperties.clear()
30633105
putAllAdditionalProperties(additionalProperties)
@@ -3101,6 +3143,7 @@ private constructor(
31013143
checkRequired("status", status),
31023144
checkRequired("statusReasons", statusReasons).map { it.toImmutable() },
31033145
checkRequired("updated", updated),
3146+
kyPassedAt,
31043147
additionalProperties.toMutableMap(),
31053148
)
31063149
}
@@ -3116,6 +3159,7 @@ private constructor(
31163159
status().validate()
31173160
statusReasons().forEach { it.validate() }
31183161
updated()
3162+
kyPassedAt()
31193163
validated = true
31203164
}
31213165

@@ -3138,7 +3182,8 @@ private constructor(
31383182
(if (created.asKnown().isPresent) 1 else 0) +
31393183
(status.asKnown().getOrNull()?.validity() ?: 0) +
31403184
(statusReasons.asKnown().getOrNull()?.sumOf { it.validity().toInt() } ?: 0) +
3141-
(if (updated.asKnown().isPresent) 1 else 0)
3185+
(if (updated.asKnown().isPresent) 1 else 0) +
3186+
(if (kyPassedAt.asKnown().isPresent) 1 else 0)
31423187

31433188
/**
31443189
* KYC and KYB evaluation states.
@@ -3618,17 +3663,25 @@ private constructor(
36183663
status == other.status &&
36193664
statusReasons == other.statusReasons &&
36203665
updated == other.updated &&
3666+
kyPassedAt == other.kyPassedAt &&
36213667
additionalProperties == other.additionalProperties
36223668
}
36233669

36243670
private val hashCode: Int by lazy {
3625-
Objects.hash(created, status, statusReasons, updated, additionalProperties)
3671+
Objects.hash(
3672+
created,
3673+
status,
3674+
statusReasons,
3675+
updated,
3676+
kyPassedAt,
3677+
additionalProperties,
3678+
)
36263679
}
36273680

36283681
override fun hashCode(): Int = hashCode
36293682

36303683
override fun toString() =
3631-
"VerificationApplication{created=$created, status=$status, statusReasons=$statusReasons, updated=$updated, additionalProperties=$additionalProperties}"
3684+
"VerificationApplication{created=$created, status=$status, statusReasons=$statusReasons, updated=$updated, kyPassedAt=$kyPassedAt, additionalProperties=$additionalProperties}"
36323685
}
36333686

36343687
override fun equals(other: Any?): Boolean {

0 commit comments

Comments
 (0)