diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 092529719..9bd53bbf4 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.289.0" + ".": "0.289.1" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 58c33cafa..4858ae4ea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## 0.289.1 (2025-08-20) + +Full Changelog: [v0.289.0...v0.289.1](https://github.com/Increase/increase-java/compare/v0.289.0...v0.289.1) + +### Bug Fixes + +* **client:** ensure correct binary content type ([3f0018a](https://github.com/Increase/increase-java/commit/3f0018aacd63a0925f71acaac851cc80b43a22dd)) + + +### Chores + +* **client:** rename parameter ([3f0018a](https://github.com/Increase/increase-java/commit/3f0018aacd63a0925f71acaac851cc80b43a22dd)) + ## 0.289.0 (2025-08-20) Full Changelog: [v0.288.0...v0.289.0](https://github.com/Increase/increase-java/compare/v0.288.0...v0.289.0) diff --git a/README.md b/README.md index 507ffa904..51cddacbb 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,8 @@ -[![Maven Central](https://img.shields.io/maven-central/v/com.increase.api/increase-java)](https://central.sonatype.com/artifact/com.increase.api/increase-java/0.289.0) -[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.289.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.289.0) +[![Maven Central](https://img.shields.io/maven-central/v/com.increase.api/increase-java)](https://central.sonatype.com/artifact/com.increase.api/increase-java/0.289.1) +[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.289.1/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.289.1) @@ -13,7 +13,7 @@ The Increase Java SDK is similar to the Increase Kotlin SDK but with minor diffe -The REST API documentation can be found on [increase.com](https://increase.com/documentation). Javadocs are available on [javadoc.io](https://javadoc.io/doc/com.increase.api/increase-java/0.289.0). +The REST API documentation can be found on [increase.com](https://increase.com/documentation). Javadocs are available on [javadoc.io](https://javadoc.io/doc/com.increase.api/increase-java/0.289.1). @@ -24,7 +24,7 @@ The REST API documentation can be found on [increase.com](https://increase.com/d ### Gradle ```kotlin -implementation("com.increase.api:increase-java:0.289.0") +implementation("com.increase.api:increase-java:0.289.1") ``` ### Maven @@ -33,7 +33,7 @@ implementation("com.increase.api:increase-java:0.289.0") com.increase.api increase-java - 0.289.0 + 0.289.1 ``` diff --git a/build.gradle.kts b/build.gradle.kts index 28c673521..4aa9210c4 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -8,7 +8,7 @@ repositories { allprojects { group = "com.increase.api" - version = "0.289.0" // x-release-please-version + version = "0.289.1" // x-release-please-version } subprojects { diff --git a/increase-java-core/src/main/kotlin/com/increase/api/models/files/FileCreateParams.kt b/increase-java-core/src/main/kotlin/com/increase/api/models/files/FileCreateParams.kt index 999bd1438..d124b0136 100644 --- a/increase-java-core/src/main/kotlin/com/increase/api/models/files/FileCreateParams.kt +++ b/increase-java-core/src/main/kotlin/com/increase/api/models/files/FileCreateParams.kt @@ -162,7 +162,7 @@ private constructor( * [RFC 7578](https://datatracker.ietf.org/doc/html/rfc7578) which defines file transfers * for the multipart/form-data protocol. */ - fun file(file: Path) = apply { body.file(file) } + fun file(path: Path) = apply { body.file(path) } /** What the File will be used for in Increase's systems. */ fun purpose(purpose: Purpose) = apply { body.purpose(purpose) } @@ -461,11 +461,11 @@ private constructor( * [RFC 7578](https://datatracker.ietf.org/doc/html/rfc7578) which defines file * transfers for the multipart/form-data protocol. */ - fun file(file: Path) = + fun file(path: Path) = file( MultipartField.builder() - .value(file.inputStream()) - .filename(file.name) + .value(path.inputStream()) + .filename(path.name) .build() )