Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.97.0"
".": "0.97.1"
}
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## 0.97.1 (2025-07-24)

Full Changelog: [v0.97.0...v0.97.1](https://github.com/lithic-com/lithic-java/compare/v0.97.0...v0.97.1)

### Bug Fixes

* **client:** accidental mutability of some classes ([fc619ca](https://github.com/lithic-com/lithic-java/commit/fc619cadba3ade9214c2638bb9f9c5c224925a9d))


### Chores

* **internal:** remove unnecessary `[...]` in `[@see](https://github.com/see)` ([47d67f7](https://github.com/lithic-com/lithic-java/commit/47d67f774679aed9f823bf66237895ac21c8a2ae))

## 0.97.0 (2025-07-23)

Full Changelog: [v0.96.1...v0.97.0](https://github.com/lithic-com/lithic-java/compare/v0.96.1...v0.97.0)
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

<!-- x-release-please-start-version -->

[![Maven Central](https://img.shields.io/maven-central/v/com.lithic.api/lithic-java)](https://central.sonatype.com/artifact/com.lithic.api/lithic-java/0.97.0)
[![javadoc](https://javadoc.io/badge2/com.lithic.api/lithic-java/0.97.0/javadoc.svg)](https://javadoc.io/doc/com.lithic.api/lithic-java/0.97.0)
[![Maven Central](https://img.shields.io/maven-central/v/com.lithic.api/lithic-java)](https://central.sonatype.com/artifact/com.lithic.api/lithic-java/0.97.1)
[![javadoc](https://javadoc.io/badge2/com.lithic.api/lithic-java/0.97.1/javadoc.svg)](https://javadoc.io/doc/com.lithic.api/lithic-java/0.97.1)

<!-- x-release-please-end -->

Expand All @@ -13,7 +13,7 @@ The Lithic Java SDK is similar to the Lithic Kotlin SDK but with minor differenc

<!-- x-release-please-start-version -->

The REST API documentation can be found on [docs.lithic.com](https://docs.lithic.com). Javadocs are available on [javadoc.io](https://javadoc.io/doc/com.lithic.api/lithic-java/0.97.0).
The REST API documentation can be found on [docs.lithic.com](https://docs.lithic.com). Javadocs are available on [javadoc.io](https://javadoc.io/doc/com.lithic.api/lithic-java/0.97.1).

<!-- x-release-please-end -->

Expand All @@ -24,7 +24,7 @@ The REST API documentation can be found on [docs.lithic.com](https://docs.lithic
### Gradle

```kotlin
implementation("com.lithic.api:lithic-java:0.97.0")
implementation("com.lithic.api:lithic-java:0.97.1")
```

### Maven
Expand All @@ -33,7 +33,7 @@ implementation("com.lithic.api:lithic-java:0.97.0")
<dependency>
<groupId>com.lithic.api</groupId>
<artifactId>lithic-java</artifactId>
<version>0.97.0</version>
<version>0.97.1</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ repositories {

allprojects {
group = "com.lithic.api"
version = "0.97.0" // x-release-please-version
version = "0.97.1" // x-release-please-version
}

subprojects {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,17 +136,17 @@ interface LithicClient {
/** Status of api */
fun apiStatus(): ApiStatus = apiStatus(ClientApiStatusParams.none())

/** @see [apiStatus] */
/** @see apiStatus */
fun apiStatus(
params: ClientApiStatusParams = ClientApiStatusParams.none(),
requestOptions: RequestOptions = RequestOptions.none(),
): ApiStatus

/** @see [apiStatus] */
/** @see apiStatus */
fun apiStatus(params: ClientApiStatusParams = ClientApiStatusParams.none()): ApiStatus =
apiStatus(params, RequestOptions.none())

/** @see [apiStatus] */
/** @see apiStatus */
fun apiStatus(requestOptions: RequestOptions): ApiStatus =
apiStatus(ClientApiStatusParams.none(), requestOptions)

Expand Down Expand Up @@ -236,20 +236,20 @@ interface LithicClient {
@MustBeClosed
fun apiStatus(): HttpResponseFor<ApiStatus> = apiStatus(ClientApiStatusParams.none())

/** @see [apiStatus] */
/** @see apiStatus */
@MustBeClosed
fun apiStatus(
params: ClientApiStatusParams = ClientApiStatusParams.none(),
requestOptions: RequestOptions = RequestOptions.none(),
): HttpResponseFor<ApiStatus>

/** @see [apiStatus] */
/** @see apiStatus */
@MustBeClosed
fun apiStatus(
params: ClientApiStatusParams = ClientApiStatusParams.none()
): HttpResponseFor<ApiStatus> = apiStatus(params, RequestOptions.none())

/** @see [apiStatus] */
/** @see apiStatus */
@MustBeClosed
fun apiStatus(requestOptions: RequestOptions): HttpResponseFor<ApiStatus> =
apiStatus(ClientApiStatusParams.none(), requestOptions)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,18 +136,18 @@ interface LithicClientAsync {
/** Status of api */
fun apiStatus(): CompletableFuture<ApiStatus> = apiStatus(ClientApiStatusParams.none())

/** @see [apiStatus] */
/** @see apiStatus */
fun apiStatus(
params: ClientApiStatusParams = ClientApiStatusParams.none(),
requestOptions: RequestOptions = RequestOptions.none(),
): CompletableFuture<ApiStatus>

/** @see [apiStatus] */
/** @see apiStatus */
fun apiStatus(
params: ClientApiStatusParams = ClientApiStatusParams.none()
): CompletableFuture<ApiStatus> = apiStatus(params, RequestOptions.none())

/** @see [apiStatus] */
/** @see apiStatus */
fun apiStatus(requestOptions: RequestOptions): CompletableFuture<ApiStatus> =
apiStatus(ClientApiStatusParams.none(), requestOptions)

Expand Down Expand Up @@ -239,18 +239,18 @@ interface LithicClientAsync {
fun apiStatus(): CompletableFuture<HttpResponseFor<ApiStatus>> =
apiStatus(ClientApiStatusParams.none())

/** @see [apiStatus] */
/** @see apiStatus */
fun apiStatus(
params: ClientApiStatusParams = ClientApiStatusParams.none(),
requestOptions: RequestOptions = RequestOptions.none(),
): CompletableFuture<HttpResponseFor<ApiStatus>>

/** @see [apiStatus] */
/** @see apiStatus */
fun apiStatus(
params: ClientApiStatusParams = ClientApiStatusParams.none()
): CompletableFuture<HttpResponseFor<ApiStatus>> = apiStatus(params, RequestOptions.none())

/** @see [apiStatus] */
/** @see apiStatus */
fun apiStatus(
requestOptions: RequestOptions
): CompletableFuture<HttpResponseFor<ApiStatus>> =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import java.util.Objects
import java.util.Optional
import kotlin.jvm.optionals.getOrNull

/** @see [AccountHolderService.list] */
/** @see AccountHolderService.list */
class AccountHolderListPage
private constructor(
private val service: AccountHolderService,
Expand All @@ -21,15 +21,15 @@ private constructor(
/**
* Delegates to [AccountHolderListPageResponse], but gracefully handles missing data.
*
* @see [AccountHolderListPageResponse.data]
* @see AccountHolderListPageResponse.data
*/
fun data(): List<AccountHolder> =
response._data().getOptional("data").getOrNull() ?: emptyList()

/**
* Delegates to [AccountHolderListPageResponse], but gracefully handles missing data.
*
* @see [AccountHolderListPageResponse.hasMore]
* @see AccountHolderListPageResponse.hasMore
*/
fun hasMore(): Optional<Boolean> = response._hasMore().getOptional("has_more")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import java.util.concurrent.CompletableFuture
import java.util.concurrent.Executor
import kotlin.jvm.optionals.getOrNull

/** @see [AccountHolderServiceAsync.list] */
/** @see AccountHolderServiceAsync.list */
class AccountHolderListPageAsync
private constructor(
private val service: AccountHolderServiceAsync,
Expand All @@ -24,15 +24,15 @@ private constructor(
/**
* Delegates to [AccountHolderListPageResponse], but gracefully handles missing data.
*
* @see [AccountHolderListPageResponse.data]
* @see AccountHolderListPageResponse.data
*/
fun data(): List<AccountHolder> =
response._data().getOptional("data").getOrNull() ?: emptyList()

/**
* Delegates to [AccountHolderListPageResponse], but gracefully handles missing data.
*
* @see [AccountHolderListPageResponse.hasMore]
* @see AccountHolderListPageResponse.hasMore
*/
fun hasMore(): Optional<Boolean> = response._hasMore().getOptional("has_more")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import java.util.Objects
import java.util.Optional
import kotlin.jvm.optionals.getOrNull

/** @see [AccountService.list] */
/** @see AccountService.list */
class AccountListPage
private constructor(
private val service: AccountService,
Expand All @@ -21,14 +21,14 @@ private constructor(
/**
* Delegates to [AccountListPageResponse], but gracefully handles missing data.
*
* @see [AccountListPageResponse.data]
* @see AccountListPageResponse.data
*/
fun data(): List<Account> = response._data().getOptional("data").getOrNull() ?: emptyList()

/**
* Delegates to [AccountListPageResponse], but gracefully handles missing data.
*
* @see [AccountListPageResponse.hasMore]
* @see AccountListPageResponse.hasMore
*/
fun hasMore(): Optional<Boolean> = response._hasMore().getOptional("has_more")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import java.util.concurrent.CompletableFuture
import java.util.concurrent.Executor
import kotlin.jvm.optionals.getOrNull

/** @see [AccountServiceAsync.list] */
/** @see AccountServiceAsync.list */
class AccountListPageAsync
private constructor(
private val service: AccountServiceAsync,
Expand All @@ -24,14 +24,14 @@ private constructor(
/**
* Delegates to [AccountListPageResponse], but gracefully handles missing data.
*
* @see [AccountListPageResponse.data]
* @see AccountListPageResponse.data
*/
fun data(): List<Account> = response._data().getOptional("data").getOrNull() ?: emptyList()

/**
* Delegates to [AccountListPageResponse], but gracefully handles missing data.
*
* @see [AccountListPageResponse.hasMore]
* @see AccountListPageResponse.hasMore
*/
fun hasMore(): Optional<Boolean> = response._hasMore().getOptional("has_more")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import java.util.Objects
import java.util.Optional
import kotlin.jvm.optionals.getOrNull

/** @see [AggregateBalanceService.list] */
/** @see AggregateBalanceService.list */
class AggregateBalanceListPage
private constructor(
private val service: AggregateBalanceService,
Expand All @@ -21,15 +21,15 @@ private constructor(
/**
* Delegates to [AggregateBalanceListPageResponse], but gracefully handles missing data.
*
* @see [AggregateBalanceListPageResponse.data]
* @see AggregateBalanceListPageResponse.data
*/
fun data(): List<AggregateBalance> =
response._data().getOptional("data").getOrNull() ?: emptyList()

/**
* Delegates to [AggregateBalanceListPageResponse], but gracefully handles missing data.
*
* @see [AggregateBalanceListPageResponse.hasMore]
* @see AggregateBalanceListPageResponse.hasMore
*/
fun hasMore(): Optional<Boolean> = response._hasMore().getOptional("has_more")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import java.util.concurrent.CompletableFuture
import java.util.concurrent.Executor
import kotlin.jvm.optionals.getOrNull

/** @see [AggregateBalanceServiceAsync.list] */
/** @see AggregateBalanceServiceAsync.list */
class AggregateBalanceListPageAsync
private constructor(
private val service: AggregateBalanceServiceAsync,
Expand All @@ -24,15 +24,15 @@ private constructor(
/**
* Delegates to [AggregateBalanceListPageResponse], but gracefully handles missing data.
*
* @see [AggregateBalanceListPageResponse.data]
* @see AggregateBalanceListPageResponse.data
*/
fun data(): List<AggregateBalance> =
response._data().getOptional("data").getOrNull() ?: emptyList()

/**
* Delegates to [AggregateBalanceListPageResponse], but gracefully handles missing data.
*
* @see [AggregateBalanceListPageResponse.hasMore]
* @see AggregateBalanceListPageResponse.hasMore
*/
fun hasMore(): Optional<Boolean> = response._hasMore().getOptional("has_more")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import com.lithic.api.core.JsonMissing
import com.lithic.api.core.JsonValue
import com.lithic.api.core.allMaxBy
import com.lithic.api.core.getOrThrow
import com.lithic.api.core.toImmutable
import com.lithic.api.errors.LithicInvalidDataException
import java.util.Collections
import java.util.Objects
Expand Down Expand Up @@ -589,7 +590,8 @@ private constructor(

/** An array of strings, to be used with `IS_ONE_OF` or `IS_NOT_ONE_OF` */
@JvmStatic
fun ofListOfStrings(listOfStrings: List<String>) = Value(listOfStrings = listOfStrings)
fun ofListOfStrings(listOfStrings: List<String>) =
Value(listOfStrings = listOfStrings.toImmutable())
}

/** An interface that defines how to map each variant of [Value] to a value of type [T]. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import java.util.Objects
import java.util.Optional
import kotlin.jvm.optionals.getOrNull

/** @see [V2Service.list] */
/** @see V2Service.list */
class AuthRuleV2ListPage
private constructor(
private val service: V2Service,
Expand All @@ -21,15 +21,15 @@ private constructor(
/**
* Delegates to [AuthRuleV2ListPageResponse], but gracefully handles missing data.
*
* @see [AuthRuleV2ListPageResponse.data]
* @see AuthRuleV2ListPageResponse.data
*/
fun data(): List<V2ListResponse> =
response._data().getOptional("data").getOrNull() ?: emptyList()

/**
* Delegates to [AuthRuleV2ListPageResponse], but gracefully handles missing data.
*
* @see [AuthRuleV2ListPageResponse.hasMore]
* @see AuthRuleV2ListPageResponse.hasMore
*/
fun hasMore(): Optional<Boolean> = response._hasMore().getOptional("has_more")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import java.util.concurrent.CompletableFuture
import java.util.concurrent.Executor
import kotlin.jvm.optionals.getOrNull

/** @see [V2ServiceAsync.list] */
/** @see V2ServiceAsync.list */
class AuthRuleV2ListPageAsync
private constructor(
private val service: V2ServiceAsync,
Expand All @@ -24,15 +24,15 @@ private constructor(
/**
* Delegates to [AuthRuleV2ListPageResponse], but gracefully handles missing data.
*
* @see [AuthRuleV2ListPageResponse.data]
* @see AuthRuleV2ListPageResponse.data
*/
fun data(): List<V2ListResponse> =
response._data().getOptional("data").getOrNull() ?: emptyList()

/**
* Delegates to [AuthRuleV2ListPageResponse], but gracefully handles missing data.
*
* @see [AuthRuleV2ListPageResponse.hasMore]
* @see AuthRuleV2ListPageResponse.hasMore
*/
fun hasMore(): Optional<Boolean> = response._hasMore().getOptional("has_more")

Expand Down
Loading