Skip to content

Commit b21d55c

Browse files
feat(api): deprecate auth rule apply endpoint and fix several schemas
1 parent 7757427 commit b21d55c

File tree

87 files changed

+16184
-10540
lines changed

Some content is hidden

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

87 files changed

+16184
-10540
lines changed

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 169
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-461a5622f5cf2e4e38fab8b899fa619cfa1bff349e3a485b8e4396c3d5b1282f.yml
3-
openapi_spec_hash: 5314a4458e7ebfc7b374bca71966a6e4
4-
config_hash: 8ac73ccdb428816c89c84802c794a3f8
1+
configured_endpoints: 168
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-c10c01eac94b422808bb16cc1044c67c980791b6d1360b01628d13c5a745dfeb.yml
3+
openapi_spec_hash: 9e6642fdb875a6aa6037c107917ebff4
4+
config_hash: 0b45ea129fca7c4755ef61eb97baa096

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

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -678,8 +678,15 @@ private constructor(
678678
* businesses. Pass the account_token of the enrolled business associated with the
679679
* AUTHORIZED_USER in this field.
680680
*/
681-
fun businessAccountToken(businessAccountToken: String) =
682-
businessAccountToken(JsonField.of(businessAccountToken))
681+
fun businessAccountToken(businessAccountToken: String?) =
682+
businessAccountToken(JsonField.ofNullable(businessAccountToken))
683+
684+
/**
685+
* Alias for calling [Builder.businessAccountToken] with
686+
* `businessAccountToken.orElse(null)`.
687+
*/
688+
fun businessAccountToken(businessAccountToken: Optional<String>) =
689+
businessAccountToken(businessAccountToken.getOrNull())
683690

684691
/**
685692
* Sets [Builder.businessAccountToken] to an arbitrary JSON value.

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

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -866,8 +866,15 @@ private constructor(
866866
* users of businesses. Pass the account_token of the enrolled business associated with
867867
* the AUTHORIZED_USER in this field.
868868
*/
869-
fun businessAccountToken(businessAccountToken: String) =
870-
businessAccountToken(JsonField.of(businessAccountToken))
869+
fun businessAccountToken(businessAccountToken: String?) =
870+
businessAccountToken(JsonField.ofNullable(businessAccountToken))
871+
872+
/**
873+
* Alias for calling [Builder.businessAccountToken] with
874+
* `businessAccountToken.orElse(null)`.
875+
*/
876+
fun businessAccountToken(businessAccountToken: Optional<String>) =
877+
businessAccountToken(businessAccountToken.getOrNull())
871878

872879
/**
873880
* Sets [Builder.businessAccountToken] to an arbitrary JSON value.
@@ -3994,8 +4001,15 @@ private constructor(
39944001
fun address(address: JsonField<Address>) = apply { this.address = address }
39954002

39964003
/** The token for the business account that the account holder is associated with */
3997-
fun businessAccountToken(businessAccountToken: String) =
3998-
businessAccountToken(JsonField.of(businessAccountToken))
4004+
fun businessAccountToken(businessAccountToken: String?) =
4005+
businessAccountToken(JsonField.ofNullable(businessAccountToken))
4006+
4007+
/**
4008+
* Alias for calling [Builder.businessAccountToken] with
4009+
* `businessAccountToken.orElse(null)`.
4010+
*/
4011+
fun businessAccountToken(businessAccountToken: Optional<String>) =
4012+
businessAccountToken(businessAccountToken.getOrNull())
39994013

40004014
/**
40014015
* Sets [Builder.businessAccountToken] to an arbitrary JSON value.

0 commit comments

Comments
 (0)