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.103.0"
".": "0.104.0"
}
6 changes: 3 additions & 3 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 169
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-117e0ee9b030a2efc3b09e189e445fb1a26fd32f1c563f385b9d7071a959c550.yml
openapi_spec_hash: e529a3fa8c3a79d3664db391683334c3
config_hash: 22e4b128e110e2767daa9d95428ebf9d
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-1d44bb7fad99487af1161eb24dfd5369440eda7e80ed237cbc1acc6802a7d212.yml
openapi_spec_hash: 1b6b6215b60094b76b91c56b925a251a
config_hash: ac676e77c8ca051c7aad978c26e96345
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.104.0 (2025-09-09)

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

### Features

* **api:** adds support for unpauseing external bank accounts ([1dadb0f](https://github.com/lithic-com/lithic-java/commit/1dadb0f3e894c3ab7c38bf263e6974e81381d971))

## 0.103.0 (2025-09-03)

Full Changelog: [v0.102.2...v0.103.0](https://github.com/lithic-com/lithic-java/compare/v0.102.2...v0.103.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.103.0)
[![javadoc](https://javadoc.io/badge2/com.lithic.api/lithic-java/0.103.0/javadoc.svg)](https://javadoc.io/doc/com.lithic.api/lithic-java/0.103.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.104.0)
[![javadoc](https://javadoc.io/badge2/com.lithic.api/lithic-java/0.104.0/javadoc.svg)](https://javadoc.io/doc/com.lithic.api/lithic-java/0.104.0)

<!-- 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.103.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.104.0).

<!-- 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.103.0")
implementation("com.lithic.api:lithic-java:0.104.0")
```

### Maven
Expand All @@ -33,7 +33,7 @@ implementation("com.lithic.api:lithic-java:0.103.0")
<dependency>
<groupId>com.lithic.api</groupId>
<artifactId>lithic-java</artifactId>
<version>0.103.0</version>
<version>0.104.0</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.103.0" // x-release-please-version
version = "0.104.0" // x-release-please-version
}

subprojects {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import com.lithic.api.core.JsonField
import com.lithic.api.core.Params
import com.lithic.api.core.http.Headers
import com.lithic.api.core.http.QueryParams
import com.lithic.api.core.toImmutable
import com.lithic.api.errors.LithicInvalidDataException
import java.time.OffsetDateTime
import java.time.format.DateTimeFormatter
Expand All @@ -27,9 +26,9 @@ private constructor(
private val endingBefore: String?,
private val financialAccountToken: String?,
private val pageSize: Long?,
private val result: List<Result>?,
private val result: Result?,
private val startingAfter: String?,
private val status: List<Status>?,
private val status: Status?,
private val additionalHeaders: Headers,
private val additionalQueryParams: QueryParams,
) : Params {
Expand Down Expand Up @@ -68,7 +67,7 @@ private constructor(
fun pageSize(): Optional<Long> = Optional.ofNullable(pageSize)

/** Filter by transaction result */
fun result(): Optional<List<Result>> = Optional.ofNullable(result)
fun result(): Optional<Result> = Optional.ofNullable(result)

/**
* A cursor representing an item's token after which a page of results should begin. Used to
Expand All @@ -77,7 +76,7 @@ private constructor(
fun startingAfter(): Optional<String> = Optional.ofNullable(startingAfter)

/** Filter by transaction status */
fun status(): Optional<List<Status>> = Optional.ofNullable(status)
fun status(): Optional<Status> = Optional.ofNullable(status)

/** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
Expand Down Expand Up @@ -108,9 +107,9 @@ private constructor(
private var endingBefore: String? = null
private var financialAccountToken: String? = null
private var pageSize: Long? = null
private var result: MutableList<Result>? = null
private var result: Result? = null
private var startingAfter: String? = null
private var status: MutableList<Status>? = null
private var status: Status? = null
private var additionalHeaders: Headers.Builder = Headers.builder()
private var additionalQueryParams: QueryParams.Builder = QueryParams.builder()

Expand All @@ -124,9 +123,9 @@ private constructor(
endingBefore = accountActivityListParams.endingBefore
financialAccountToken = accountActivityListParams.financialAccountToken
pageSize = accountActivityListParams.pageSize
result = accountActivityListParams.result?.toMutableList()
result = accountActivityListParams.result
startingAfter = accountActivityListParams.startingAfter
status = accountActivityListParams.status?.toMutableList()
status = accountActivityListParams.status
additionalHeaders = accountActivityListParams.additionalHeaders.toBuilder()
additionalQueryParams = accountActivityListParams.additionalQueryParams.toBuilder()
}
Expand Down Expand Up @@ -208,19 +207,10 @@ private constructor(
fun pageSize(pageSize: Optional<Long>) = pageSize(pageSize.getOrNull())

/** Filter by transaction result */
fun result(result: List<Result>?) = apply { this.result = result?.toMutableList() }
fun result(result: Result?) = apply { this.result = result }

/** Alias for calling [Builder.result] with `result.orElse(null)`. */
fun result(result: Optional<List<Result>>) = result(result.getOrNull())

/**
* Adds a single [Result] to [Builder.result].
*
* @throws IllegalStateException if the field was previously set to a non-list.
*/
fun addResult(result: Result) = apply {
this.result = (this.result ?: mutableListOf()).apply { add(result) }
}
fun result(result: Optional<Result>) = result(result.getOrNull())

/**
* A cursor representing an item's token after which a page of results should begin. Used to
Expand All @@ -233,19 +223,10 @@ private constructor(
startingAfter(startingAfter.getOrNull())

/** Filter by transaction status */
fun status(status: List<Status>?) = apply { this.status = status?.toMutableList() }
fun status(status: Status?) = apply { this.status = status }

/** Alias for calling [Builder.status] with `status.orElse(null)`. */
fun status(status: Optional<List<Status>>) = status(status.getOrNull())

/**
* Adds a single [Status] to [Builder.status].
*
* @throws IllegalStateException if the field was previously set to a non-list.
*/
fun addStatus(status: Status) = apply {
this.status = (this.status ?: mutableListOf()).apply { add(status) }
}
fun status(status: Optional<Status>) = status(status.getOrNull())

fun additionalHeaders(additionalHeaders: Headers) = apply {
this.additionalHeaders.clear()
Expand Down Expand Up @@ -360,9 +341,9 @@ private constructor(
endingBefore,
financialAccountToken,
pageSize,
result?.toImmutable(),
result,
startingAfter,
status?.toImmutable(),
status,
additionalHeaders.build(),
additionalQueryParams.build(),
)
Expand All @@ -381,9 +362,9 @@ private constructor(
endingBefore?.let { put("ending_before", it) }
financialAccountToken?.let { put("financial_account_token", it) }
pageSize?.let { put("page_size", it.toString()) }
result?.let { put("result", it.joinToString(",") { it.toString() }) }
result?.let { put("result", it.toString()) }
startingAfter?.let { put("starting_after", it) }
status?.let { put("status", it.joinToString(",") { it.toString() }) }
status?.let { put("status", it.toString()) }
putAll(additionalQueryParams)
}
.build()
Expand Down Expand Up @@ -585,6 +566,7 @@ private constructor(
override fun toString() = value.toString()
}

/** Filter by transaction result */
class Result @JsonCreator private constructor(private val value: JsonField<String>) : Enum {

/**
Expand Down Expand Up @@ -710,6 +692,7 @@ private constructor(
override fun toString() = value.toString()
}

/** Filter by transaction status */
class Status @JsonCreator private constructor(private val value: JsonField<String>) : Enum {

/**
Expand All @@ -730,14 +713,14 @@ private constructor(

@JvmField val PENDING = of("PENDING")

@JvmField val SETTLED = of("SETTLED")

@JvmField val VOIDED = of("VOIDED")

@JvmField val RETURNED = of("RETURNED")

@JvmField val REVERSED = of("REVERSED")

@JvmField val SETTLED = of("SETTLED")

@JvmField val VOIDED = of("VOIDED")

@JvmStatic fun of(value: String) = Status(JsonField.of(value))
}

Expand All @@ -746,10 +729,10 @@ private constructor(
DECLINED,
EXPIRED,
PENDING,
SETTLED,
VOIDED,
RETURNED,
REVERSED,
SETTLED,
VOIDED,
}

/**
Expand All @@ -765,10 +748,10 @@ private constructor(
DECLINED,
EXPIRED,
PENDING,
SETTLED,
VOIDED,
RETURNED,
REVERSED,
SETTLED,
VOIDED,
/** An enum member indicating that [Status] was instantiated with an unknown value. */
_UNKNOWN,
}
Expand All @@ -785,10 +768,10 @@ private constructor(
DECLINED -> Value.DECLINED
EXPIRED -> Value.EXPIRED
PENDING -> Value.PENDING
SETTLED -> Value.SETTLED
VOIDED -> Value.VOIDED
RETURNED -> Value.RETURNED
REVERSED -> Value.REVERSED
SETTLED -> Value.SETTLED
VOIDED -> Value.VOIDED
else -> Value._UNKNOWN
}

Expand All @@ -806,10 +789,10 @@ private constructor(
DECLINED -> Known.DECLINED
EXPIRED -> Known.EXPIRED
PENDING -> Known.PENDING
SETTLED -> Known.SETTLED
VOIDED -> Known.VOIDED
RETURNED -> Known.RETURNED
REVERSED -> Known.REVERSED
SETTLED -> Known.SETTLED
VOIDED -> Known.VOIDED
else -> throw LithicInvalidDataException("Unknown Status: $value")
}

Expand Down
Loading
Loading