Skip to content
Open
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
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
timeout-minutes: 15
name: lint
runs-on: ${{ github.repository == 'stainless-sdks/lithic-java' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
if: (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')

steps:
- uses: actions/checkout@v6
Expand All @@ -46,7 +46,7 @@ jobs:
contents: read
id-token: write
runs-on: ${{ github.repository == 'stainless-sdks/lithic-java' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
if: (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')

steps:
- uses: actions/checkout@v6
Expand Down
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.122.0"
".": "0.123.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 190
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-17c04dd1b0508b380c21e3acc3d4cd1e86b590f81d14fa26d1973b236f660e38.yml
openapi_spec_hash: f8ddee07358d2c938450a6889fbf7940
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-eb2cf51467f505a1d29c3ca40b9595ecbf6d6a3743f53bc42a52c8135a252ff0.yml
openapi_spec_hash: 2fbd71b69d71138b3e54432a38d759ed
config_hash: edbdfefeb0d3d927c2f9fe3402793215
23 changes: 23 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,28 @@
# Changelog

## 0.123.0 (2026-03-25)

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

### Features

* **api:** add override_company_name parameter to payment create ([899a3be](https://github.com/lithic-com/lithic-java/commit/899a3be4a06965cf3a37cf4ddf6f8581fac9351a))


### Bug Fixes

* **types:** make data and has_more required in AccountActivityListPageResponse ([5feba92](https://github.com/lithic-com/lithic-java/commit/5feba92cc13a3877fb2769d8808e65959b4b12b9))


### Chores

* **ci:** skip lint on metadata-only changes ([c266aa2](https://github.com/lithic-com/lithic-java/commit/c266aa2a776ae772b05a025dab383477ec5c2d0d))


### Documentation

* **api:** update natureOfBusiness and qrCodeUrl parameter descriptions ([2fe328d](https://github.com/lithic-com/lithic-java/commit/2fe328dff29b7df2d9096274e5725e1bf37df25f))

## 0.122.0 (2026-03-23)

Full Changelog: [v0.121.0...v0.122.0](https://github.com/lithic-com/lithic-java/compare/v0.121.0...v0.122.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.122.0)
[![javadoc](https://javadoc.io/badge2/com.lithic.api/lithic-java/0.122.0/javadoc.svg)](https://javadoc.io/doc/com.lithic.api/lithic-java/0.122.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.123.0)
[![javadoc](https://javadoc.io/badge2/com.lithic.api/lithic-java/0.123.0/javadoc.svg)](https://javadoc.io/doc/com.lithic.api/lithic-java/0.123.0)

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

Expand All @@ -22,7 +22,7 @@ Use the Lithic MCP Server to enable AI assistants to interact with this API, all

<!-- 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.122.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.123.0).

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

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

```kotlin
implementation("com.lithic.api:lithic-java:0.122.0")
implementation("com.lithic.api:lithic-java:0.123.0")
```

### Maven
Expand All @@ -42,7 +42,7 @@ implementation("com.lithic.api:lithic-java:0.122.0")
<dependency>
<groupId>com.lithic.api</groupId>
<artifactId>lithic-java</artifactId>
<version>0.122.0</version>
<version>0.123.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.122.0" // x-release-please-version
version = "0.123.0" // x-release-please-version
}

subprojects {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ import com.lithic.api.core.JsonField
import com.lithic.api.core.JsonMissing
import com.lithic.api.core.JsonValue
import com.lithic.api.core.checkKnown
import com.lithic.api.core.checkRequired
import com.lithic.api.core.toImmutable
import com.lithic.api.errors.LithicInvalidDataException
import java.util.Collections
import java.util.Objects
import java.util.Optional
import kotlin.jvm.optionals.getOrNull

/** A response containing a list of transactions */
Expand All @@ -36,18 +36,18 @@ private constructor(
) : this(data, hasMore, mutableMapOf())

/**
* @throws LithicInvalidDataException if the JSON field has an unexpected type (e.g. if the
* server responded with an unexpected value).
* @throws LithicInvalidDataException if the JSON field has an unexpected type or is
* unexpectedly missing or null (e.g. if the server responded with an unexpected value).
*/
fun data(): Optional<List<AccountActivityListResponse>> = data.getOptional("data")
fun data(): List<AccountActivityListResponse> = data.getRequired("data")

/**
* Indicates if there are more transactions available for pagination
*
* @throws LithicInvalidDataException if the JSON field has an unexpected type (e.g. if the
* server responded with an unexpected value).
* @throws LithicInvalidDataException if the JSON field has an unexpected type or is
* unexpectedly missing or null (e.g. if the server responded with an unexpected value).
*/
fun hasMore(): Optional<Boolean> = hasMore.getOptional("has_more")
fun hasMore(): Boolean = hasMore.getRequired("has_more")

/**
* Returns the raw JSON value of [data].
Expand Down Expand Up @@ -82,6 +82,12 @@ private constructor(
/**
* Returns a mutable builder for constructing an instance of
* [AccountActivityListPageResponse].
*
* The following fields are required:
* ```java
* .data()
* .hasMore()
* ```
*/
@JvmStatic fun builder() = Builder()
}
Expand All @@ -90,7 +96,7 @@ private constructor(
class Builder internal constructor() {

private var data: JsonField<MutableList<AccountActivityListResponse>>? = null
private var hasMore: JsonField<Boolean> = JsonMissing.of()
private var hasMore: JsonField<Boolean>? = null
private var additionalProperties: MutableMap<String, JsonValue> = mutableMapOf()

@JvmSynthetic
Expand Down Expand Up @@ -193,11 +199,19 @@ private constructor(
* Returns an immutable instance of [AccountActivityListPageResponse].
*
* Further updates to this [Builder] will not mutate the returned instance.
*
* The following fields are required:
* ```java
* .data()
* .hasMore()
* ```
*
* @throws IllegalStateException if any required field is unset.
*/
fun build(): AccountActivityListPageResponse =
AccountActivityListPageResponse(
(data ?: JsonMissing.of()).map { it.toImmutable() },
hasMore,
checkRequired("data", data).map { it.toImmutable() },
checkRequired("hasMore", hasMore),
additionalProperties.toMutableMap(),
)
}
Expand All @@ -209,7 +223,7 @@ private constructor(
return@apply
}

data().ifPresent { it.forEach { it.validate() } }
data().forEach { it.validate() }
hasMore()
validated = true
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ private constructor(
fun _shippingAddress(): JsonValue = shippingAddress

/**
* Shipping method for all cards in this bulk order
* Shipping method for all cards in this bulk order. BULK_PRIORITY, BULK_2_DAY, and BULK_EXPRESS
* are only available with Perfect Plastic Printing
*
* @throws LithicInvalidDataException if the JSON field has an unexpected type or is
* unexpectedly missing or null (e.g. if the server responded with an unexpected value).
Expand Down Expand Up @@ -330,7 +331,10 @@ private constructor(
this.shippingAddress = shippingAddress
}

/** Shipping method for all cards in this bulk order */
/**
* Shipping method for all cards in this bulk order. BULK_PRIORITY, BULK_2_DAY, and
* BULK_EXPRESS are only available with Perfect Plastic Printing
*/
fun shippingMethod(shippingMethod: ShippingMethod) =
shippingMethod(JsonField.of(shippingMethod))

Expand Down Expand Up @@ -463,7 +467,10 @@ private constructor(
(status.asKnown().getOrNull()?.validity() ?: 0) +
(if (updated.asKnown().isPresent) 1 else 0)

/** Shipping method for all cards in this bulk order */
/**
* Shipping method for all cards in this bulk order. BULK_PRIORITY, BULK_2_DAY, and BULK_EXPRESS
* are only available with Perfect Plastic Printing
*/
class ShippingMethod @JsonCreator private constructor(private val value: JsonField<String>) :
Enum {

Expand All @@ -481,12 +488,21 @@ private constructor(

@JvmField val BULK_EXPEDITED = of("BULK_EXPEDITED")

@JvmField val BULK_PRIORITY = of("BULK_PRIORITY")

@JvmField val BULK_2_DAY = of("BULK_2_DAY")

@JvmField val BULK_EXPRESS = of("BULK_EXPRESS")

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

/** An enum containing [ShippingMethod]'s known values. */
enum class Known {
BULK_EXPEDITED
BULK_EXPEDITED,
BULK_PRIORITY,
BULK_2_DAY,
BULK_EXPRESS,
}

/**
Expand All @@ -500,6 +516,9 @@ private constructor(
*/
enum class Value {
BULK_EXPEDITED,
BULK_PRIORITY,
BULK_2_DAY,
BULK_EXPRESS,
/**
* An enum member indicating that [ShippingMethod] was instantiated with an unknown
* value.
Expand All @@ -517,6 +536,9 @@ private constructor(
fun value(): Value =
when (this) {
BULK_EXPEDITED -> Value.BULK_EXPEDITED
BULK_PRIORITY -> Value.BULK_PRIORITY
BULK_2_DAY -> Value.BULK_2_DAY
BULK_EXPRESS -> Value.BULK_EXPRESS
else -> Value._UNKNOWN
}

Expand All @@ -532,6 +554,9 @@ private constructor(
fun known(): Known =
when (this) {
BULK_EXPEDITED -> Known.BULK_EXPEDITED
BULK_PRIORITY -> Known.BULK_PRIORITY
BULK_2_DAY -> Known.BULK_2_DAY
BULK_EXPRESS -> Known.BULK_EXPRESS
else -> throw LithicInvalidDataException("Unknown ShippingMethod: $value")
}

Expand Down
Loading
Loading