diff --git a/.release-please-manifest.json b/.release-please-manifest.json index a24ae611f..033d6f3df 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.131.0" + ".": "0.131.1" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 189b2dd2a..f99c3ec70 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 214 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic/lithic-9e397c65ffb81e2928b8ecf979769a79131ae6058b6fb373a5e930dc8a168732.yml -openapi_spec_hash: 93aea3855d2d1c390107d223762aa818 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic/lithic-1514911f233cb8bf0d6752c45bfa53a61b8f9b8ff215a4ea94a95f9505911000.yml +openapi_spec_hash: 9820a9c9a4ff778c627041eb53fd4ee5 config_hash: 5bb913c05ebeb301ec925b16e75bb251 diff --git a/CHANGELOG.md b/CHANGELOG.md index 98d31de2f..7902d3ce7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.131.1 (2026-07-11) + +Full Changelog: [v0.131.0...v0.131.1](https://github.com/lithic-com/lithic-java/compare/v0.131.0...v0.131.1) + +### Documentation + +* **api:** clarify simulateClearing supports multiple calls ([326d02d](https://github.com/lithic-com/lithic-java/commit/326d02d42d76d0f79391d693a9bdd4068e784b94)) + ## 0.131.0 (2026-06-29) Full Changelog: [v0.130.0...v0.131.0](https://github.com/lithic-com/lithic-java/compare/v0.130.0...v0.131.0) diff --git a/README.md b/README.md index 2a94f696a..941253fbe 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,8 @@ -[![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.131.0) -[![javadoc](https://javadoc.io/badge2/com.lithic.api/lithic-java/0.131.0/javadoc.svg)](https://javadoc.io/doc/com.lithic.api/lithic-java/0.131.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.131.1) +[![javadoc](https://javadoc.io/badge2/com.lithic.api/lithic-java/0.131.1/javadoc.svg)](https://javadoc.io/doc/com.lithic.api/lithic-java/0.131.1) @@ -22,7 +22,7 @@ Use the Lithic MCP Server to enable AI assistants to interact with this API, all -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.131.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.131.1). @@ -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.131.0") +implementation("com.lithic.api:lithic-java:0.131.1") ``` ### Maven @@ -42,7 +42,7 @@ implementation("com.lithic.api:lithic-java:0.131.0") com.lithic.api lithic-java - 0.131.0 + 0.131.1 ``` diff --git a/build.gradle.kts b/build.gradle.kts index 2bed69f41..830fd521c 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -8,7 +8,7 @@ repositories { allprojects { group = "com.lithic.api" - version = "0.131.0" // x-release-please-version + version = "0.131.1" // x-release-please-version } subprojects { diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/TransactionSimulateClearingParams.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/TransactionSimulateClearingParams.kt index c55973a8d..ba0dac9d5 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/TransactionSimulateClearingParams.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/TransactionSimulateClearingParams.kt @@ -23,8 +23,9 @@ import java.util.Optional * Clears an existing authorization, either debit or credit. After this event, the transaction * transitions from `PENDING` to `SETTLED` status. * - * If `amount` is not set, the full amount of the transaction will be cleared. Transactions that - * have already cleared, either partially or fully, cannot be cleared again using this endpoint. + * If `amount` is not set, the full amount of the transaction will be cleared. This endpoint may be + * called multiple times against the same authorization to simulate a multiple-completion scenario, + * with each call creating a separate clearing event. */ class TransactionSimulateClearingParams private constructor( @@ -48,8 +49,9 @@ private constructor( * result in a -100 amount in the transaction, if the original authorization is a credit * authorization. * - * If `amount` is not set, the full amount of the transaction will be cleared. Transactions that - * have already cleared, either partially or fully, cannot be cleared again using this endpoint. + * If `amount` is not set, the full amount of the transaction will be cleared. This endpoint may + * be called multiple times against the same authorization to simulate a multiple-completion + * scenario, with each call creating a separate clearing event. * * @throws LithicInvalidDataException if the JSON field has an unexpected type (e.g. if the * server responded with an unexpected value). @@ -138,9 +140,9 @@ private constructor( * field will result in a -100 amount in the transaction, if the original authorization is a * credit authorization. * - * If `amount` is not set, the full amount of the transaction will be cleared. Transactions - * that have already cleared, either partially or fully, cannot be cleared again using this - * endpoint. + * If `amount` is not set, the full amount of the transaction will be cleared. This endpoint + * may be called multiple times against the same authorization to simulate a + * multiple-completion scenario, with each call creating a separate clearing event. */ fun amount(amount: Long) = apply { body.amount(amount) } @@ -324,9 +326,9 @@ private constructor( * field will result in a -100 amount in the transaction, if the original authorization is a * credit authorization. * - * If `amount` is not set, the full amount of the transaction will be cleared. Transactions - * that have already cleared, either partially or fully, cannot be cleared again using this - * endpoint. + * If `amount` is not set, the full amount of the transaction will be cleared. This endpoint + * may be called multiple times against the same authorization to simulate a + * multiple-completion scenario, with each call creating a separate clearing event. * * @throws LithicInvalidDataException if the JSON field has an unexpected type (e.g. if the * server responded with an unexpected value). @@ -405,9 +407,9 @@ private constructor( * this field will result in a -100 amount in the transaction, if the original * authorization is a credit authorization. * - * If `amount` is not set, the full amount of the transaction will be cleared. - * Transactions that have already cleared, either partially or fully, cannot be cleared - * again using this endpoint. + * If `amount` is not set, the full amount of the transaction will be cleared. This + * endpoint may be called multiple times against the same authorization to simulate a + * multiple-completion scenario, with each call creating a separate clearing event. */ fun amount(amount: Long) = amount(JsonField.of(amount)) diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/services/async/TransactionServiceAsync.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/services/async/TransactionServiceAsync.kt index 334a63c3f..923a3b83c 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/services/async/TransactionServiceAsync.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/services/async/TransactionServiceAsync.kt @@ -217,8 +217,9 @@ interface TransactionServiceAsync { * Clears an existing authorization, either debit or credit. After this event, the transaction * transitions from `PENDING` to `SETTLED` status. * - * If `amount` is not set, the full amount of the transaction will be cleared. Transactions that - * have already cleared, either partially or fully, cannot be cleared again using this endpoint. + * If `amount` is not set, the full amount of the transaction will be cleared. This endpoint may + * be called multiple times against the same authorization to simulate a multiple-completion + * scenario, with each call creating a separate clearing event. */ fun simulateClearing( params: TransactionSimulateClearingParams diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/services/blocking/TransactionService.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/services/blocking/TransactionService.kt index 69b54af87..2a8e7c3bb 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/services/blocking/TransactionService.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/services/blocking/TransactionService.kt @@ -206,8 +206,9 @@ interface TransactionService { * Clears an existing authorization, either debit or credit. After this event, the transaction * transitions from `PENDING` to `SETTLED` status. * - * If `amount` is not set, the full amount of the transaction will be cleared. Transactions that - * have already cleared, either partially or fully, cannot be cleared again using this endpoint. + * If `amount` is not set, the full amount of the transaction will be cleared. This endpoint may + * be called multiple times against the same authorization to simulate a multiple-completion + * scenario, with each call creating a separate clearing event. */ fun simulateClearing( params: TransactionSimulateClearingParams