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.352.0"
".": "0.353.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: 228
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-39280e79454a4e6c0e7161b5d92520a3edfc335cce9b198565e57c94daa31b04.yml
openapi_spec_hash: f992030218a4415fcec934bf482cb7ae
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-c2b4fec66de664ded8acd9cbdd69566f17ca1d519136989a15bb67dcf039e793.yml
openapi_spec_hash: 4673ce2f217cc5598a122ad2d9404080
config_hash: eb2035151c7b49c2f12caf55469b8f9a
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.353.0 (2025-11-06)

Full Changelog: [v0.352.0...v0.353.0](https://github.com/Increase/increase-java/compare/v0.352.0...v0.353.0)

### Features

* **api:** api update ([ca1a423](https://github.com/Increase/increase-java/commit/ca1a4230681b212d62ae936b5970e7bc1f4afd0f))

## 0.352.0 (2025-11-06)

Full Changelog: [v0.351.0...v0.352.0](https://github.com/Increase/increase-java/compare/v0.351.0...v0.352.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.increase.api/increase-java)](https://central.sonatype.com/artifact/com.increase.api/increase-java/0.352.0)
[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.352.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.352.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.353.0)
[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.353.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.353.0)

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

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

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

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.352.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.353.0).

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

Expand All @@ -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.352.0")
implementation("com.increase.api:increase-java:0.353.0")
```

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

subprojects {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,7 @@ private constructor(
private constructor(
private val amount: JsonField<Long>,
private val backFileId: JsonField<String>,
private val checkDepositId: JsonField<String>,
private val frontFileId: JsonField<String>,
private val additionalProperties: MutableMap<String, JsonValue>,
) {
Expand All @@ -531,10 +532,13 @@ private constructor(
@JsonProperty("back_file_id")
@ExcludeMissing
backFileId: JsonField<String> = JsonMissing.of(),
@JsonProperty("check_deposit_id")
@ExcludeMissing
checkDepositId: JsonField<String> = JsonMissing.of(),
@JsonProperty("front_file_id")
@ExcludeMissing
frontFileId: JsonField<String> = JsonMissing.of(),
) : this(amount, backFileId, frontFileId, mutableMapOf())
) : this(amount, backFileId, checkDepositId, frontFileId, mutableMapOf())

/**
* The amount of the check.
Expand All @@ -552,6 +556,14 @@ private constructor(
*/
fun backFileId(): Optional<String> = backFileId.getOptional("back_file_id")

/**
* The identifier of the Check Deposit if this check was deposited.
*
* @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if
* the server responded with an unexpected value).
*/
fun checkDepositId(): Optional<String> = checkDepositId.getOptional("check_deposit_id")

/**
* The identifier for the File containing the front of the check.
*
Expand All @@ -576,6 +588,16 @@ private constructor(
@ExcludeMissing
fun _backFileId(): JsonField<String> = backFileId

/**
* Returns the raw JSON value of [checkDepositId].
*
* Unlike [checkDepositId], this method doesn't throw if the JSON field has an unexpected
* type.
*/
@JsonProperty("check_deposit_id")
@ExcludeMissing
fun _checkDepositId(): JsonField<String> = checkDepositId

/**
* Returns the raw JSON value of [frontFileId].
*
Expand Down Expand Up @@ -606,6 +628,7 @@ private constructor(
* ```java
* .amount()
* .backFileId()
* .checkDepositId()
* .frontFileId()
* ```
*/
Expand All @@ -617,13 +640,15 @@ private constructor(

private var amount: JsonField<Long>? = null
private var backFileId: JsonField<String>? = null
private var checkDepositId: JsonField<String>? = null
private var frontFileId: JsonField<String>? = null
private var additionalProperties: MutableMap<String, JsonValue> = mutableMapOf()

@JvmSynthetic
internal fun from(check: Check) = apply {
amount = check.amount
backFileId = check.backFileId
checkDepositId = check.checkDepositId
frontFileId = check.frontFileId
additionalProperties = check.additionalProperties.toMutableMap()
}
Expand Down Expand Up @@ -655,6 +680,25 @@ private constructor(
*/
fun backFileId(backFileId: JsonField<String>) = apply { this.backFileId = backFileId }

/** The identifier of the Check Deposit if this check was deposited. */
fun checkDepositId(checkDepositId: String?) =
checkDepositId(JsonField.ofNullable(checkDepositId))

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

/**
* Sets [Builder.checkDepositId] to an arbitrary JSON value.
*
* You should usually call [Builder.checkDepositId] with a well-typed [String] value
* instead. This method is primarily for setting the field to an undocumented or not yet
* supported value.
*/
fun checkDepositId(checkDepositId: JsonField<String>) = apply {
this.checkDepositId = checkDepositId
}

/** The identifier for the File containing the front of the check. */
fun frontFileId(frontFileId: String?) = frontFileId(JsonField.ofNullable(frontFileId))

Expand Down Expand Up @@ -700,6 +744,7 @@ private constructor(
* ```java
* .amount()
* .backFileId()
* .checkDepositId()
* .frontFileId()
* ```
*
Expand All @@ -709,6 +754,7 @@ private constructor(
Check(
checkRequired("amount", amount),
checkRequired("backFileId", backFileId),
checkRequired("checkDepositId", checkDepositId),
checkRequired("frontFileId", frontFileId),
additionalProperties.toMutableMap(),
)
Expand All @@ -723,6 +769,7 @@ private constructor(

amount()
backFileId()
checkDepositId()
frontFileId()
validated = true
}
Expand All @@ -745,6 +792,7 @@ private constructor(
internal fun validity(): Int =
(if (amount.asKnown().isPresent) 1 else 0) +
(if (backFileId.asKnown().isPresent) 1 else 0) +
(if (checkDepositId.asKnown().isPresent) 1 else 0) +
(if (frontFileId.asKnown().isPresent) 1 else 0)

override fun equals(other: Any?): Boolean {
Expand All @@ -755,18 +803,19 @@ private constructor(
return other is Check &&
amount == other.amount &&
backFileId == other.backFileId &&
checkDepositId == other.checkDepositId &&
frontFileId == other.frontFileId &&
additionalProperties == other.additionalProperties
}

private val hashCode: Int by lazy {
Objects.hash(amount, backFileId, frontFileId, additionalProperties)
Objects.hash(amount, backFileId, checkDepositId, frontFileId, additionalProperties)
}

override fun hashCode(): Int = hashCode

override fun toString() =
"Check{amount=$amount, backFileId=$backFileId, frontFileId=$frontFileId, additionalProperties=$additionalProperties}"
"Check{amount=$amount, backFileId=$backFileId, checkDepositId=$checkDepositId, frontFileId=$frontFileId, additionalProperties=$additionalProperties}"
}

/** If the mail item has been rejected, why it was rejected. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,15 @@ internal class InboundMailItemListPageResponseTest {
InboundMailItem.Check.builder()
.amount(1750L)
.backFileId("file_makxrc67oh9l6sg7w9yc")
.checkDepositId("check_deposit_f06n9gpg7sxn8t19lfc1")
.frontFileId("file_makxrc67oh9l6sg7w9yc")
.build()
)
.addCheck(
InboundMailItem.Check.builder()
.amount(1750L)
.backFileId("file_makxrc67oh9l6sg7w9yc")
.checkDepositId("check_deposit_f06n9gpg7sxn8t19lfc1")
.frontFileId("file_makxrc67oh9l6sg7w9yc")
.build()
)
Expand All @@ -51,13 +53,15 @@ internal class InboundMailItemListPageResponseTest {
InboundMailItem.Check.builder()
.amount(1750L)
.backFileId("file_makxrc67oh9l6sg7w9yc")
.checkDepositId("check_deposit_f06n9gpg7sxn8t19lfc1")
.frontFileId("file_makxrc67oh9l6sg7w9yc")
.build()
)
.addCheck(
InboundMailItem.Check.builder()
.amount(1750L)
.backFileId("file_makxrc67oh9l6sg7w9yc")
.checkDepositId("check_deposit_f06n9gpg7sxn8t19lfc1")
.frontFileId("file_makxrc67oh9l6sg7w9yc")
.build()
)
Expand Down Expand Up @@ -85,13 +89,15 @@ internal class InboundMailItemListPageResponseTest {
InboundMailItem.Check.builder()
.amount(1750L)
.backFileId("file_makxrc67oh9l6sg7w9yc")
.checkDepositId("check_deposit_f06n9gpg7sxn8t19lfc1")
.frontFileId("file_makxrc67oh9l6sg7w9yc")
.build()
)
.addCheck(
InboundMailItem.Check.builder()
.amount(1750L)
.backFileId("file_makxrc67oh9l6sg7w9yc")
.checkDepositId("check_deposit_f06n9gpg7sxn8t19lfc1")
.frontFileId("file_makxrc67oh9l6sg7w9yc")
.build()
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,15 @@ internal class InboundMailItemTest {
InboundMailItem.Check.builder()
.amount(1750L)
.backFileId("file_makxrc67oh9l6sg7w9yc")
.checkDepositId("check_deposit_f06n9gpg7sxn8t19lfc1")
.frontFileId("file_makxrc67oh9l6sg7w9yc")
.build()
)
.addCheck(
InboundMailItem.Check.builder()
.amount(1750L)
.backFileId("file_makxrc67oh9l6sg7w9yc")
.checkDepositId("check_deposit_f06n9gpg7sxn8t19lfc1")
.frontFileId("file_makxrc67oh9l6sg7w9yc")
.build()
)
Expand All @@ -44,11 +46,13 @@ internal class InboundMailItemTest {
InboundMailItem.Check.builder()
.amount(1750L)
.backFileId("file_makxrc67oh9l6sg7w9yc")
.checkDepositId("check_deposit_f06n9gpg7sxn8t19lfc1")
.frontFileId("file_makxrc67oh9l6sg7w9yc")
.build(),
InboundMailItem.Check.builder()
.amount(1750L)
.backFileId("file_makxrc67oh9l6sg7w9yc")
.checkDepositId("check_deposit_f06n9gpg7sxn8t19lfc1")
.frontFileId("file_makxrc67oh9l6sg7w9yc")
.build(),
)
Expand All @@ -72,13 +76,15 @@ internal class InboundMailItemTest {
InboundMailItem.Check.builder()
.amount(1750L)
.backFileId("file_makxrc67oh9l6sg7w9yc")
.checkDepositId("check_deposit_f06n9gpg7sxn8t19lfc1")
.frontFileId("file_makxrc67oh9l6sg7w9yc")
.build()
)
.addCheck(
InboundMailItem.Check.builder()
.amount(1750L)
.backFileId("file_makxrc67oh9l6sg7w9yc")
.checkDepositId("check_deposit_f06n9gpg7sxn8t19lfc1")
.frontFileId("file_makxrc67oh9l6sg7w9yc")
.build()
)
Expand Down
Loading