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.351.0"
".": "0.352.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-f55c7bc0881d1c7bcc906156155a0e43c6b8866050f778db3befebe14d42208f.yml
openapi_spec_hash: 78c5274b08b5e7ae5e16da80d733bc10
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-39280e79454a4e6c0e7161b5d92520a3edfc335cce9b198565e57c94daa31b04.yml
openapi_spec_hash: f992030218a4415fcec934bf482cb7ae
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.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)

### Features

* **api:** api update ([43d6d70](https://github.com/Increase/increase-java/commit/43d6d70689edda40dfc1c3917a3c0a204956260e))

## 0.351.0 (2025-11-05)

Full Changelog: [v0.350.0...v0.351.0](https://github.com/Increase/increase-java/compare/v0.350.0...v0.351.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.351.0)
[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.351.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.351.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.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)

<!-- 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.351.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.352.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.351.0")
implementation("com.increase.api:increase-java:0.352.0")
```

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

subprojects {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import com.increase.api.core.checkKnown
import com.increase.api.core.checkRequired
import com.increase.api.core.toImmutable
import com.increase.api.errors.IncreaseInvalidDataException
import java.time.LocalDate
import java.time.OffsetDateTime
import java.util.Collections
import java.util.Objects
Expand Down Expand Up @@ -49,6 +50,7 @@ private constructor(
private val submission: JsonField<Submission>,
private val thirdParty: JsonField<ThirdParty>,
private val type: JsonField<Type>,
private val validUntilDate: JsonField<LocalDate>,
private val additionalProperties: MutableMap<String, JsonValue>,
) {

Expand Down Expand Up @@ -110,6 +112,9 @@ private constructor(
@ExcludeMissing
thirdParty: JsonField<ThirdParty> = JsonMissing.of(),
@JsonProperty("type") @ExcludeMissing type: JsonField<Type> = JsonMissing.of(),
@JsonProperty("valid_until_date")
@ExcludeMissing
validUntilDate: JsonField<LocalDate> = JsonMissing.of(),
) : this(
id,
accountId,
Expand All @@ -135,6 +140,7 @@ private constructor(
submission,
thirdParty,
type,
validUntilDate,
mutableMapOf(),
)

Expand Down Expand Up @@ -346,6 +352,16 @@ private constructor(
*/
fun type(): Type = type.getRequired("type")

/**
* If set, the check will be valid on or before this date. After this date, the check transfer
* will be stopped and deposits will not be accepted. For checks printed by Increase, this date
* is included on the check as its expiry.
*
* @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if the
* server responded with an unexpected value).
*/
fun validUntilDate(): Optional<LocalDate> = validUntilDate.getOptional("valid_until_date")

/**
* Returns the raw JSON value of [id].
*
Expand Down Expand Up @@ -549,6 +565,15 @@ private constructor(
*/
@JsonProperty("type") @ExcludeMissing fun _type(): JsonField<Type> = type

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

@JsonAnySetter
private fun putAdditionalProperty(key: String, value: JsonValue) {
additionalProperties.put(key, value)
Expand Down Expand Up @@ -592,6 +617,7 @@ private constructor(
* .submission()
* .thirdParty()
* .type()
* .validUntilDate()
* ```
*/
@JvmStatic fun builder() = Builder()
Expand Down Expand Up @@ -624,6 +650,7 @@ private constructor(
private var submission: JsonField<Submission>? = null
private var thirdParty: JsonField<ThirdParty>? = null
private var type: JsonField<Type>? = null
private var validUntilDate: JsonField<LocalDate>? = null
private var additionalProperties: MutableMap<String, JsonValue> = mutableMapOf()

@JvmSynthetic
Expand Down Expand Up @@ -652,6 +679,7 @@ private constructor(
submission = checkTransfer.submission
thirdParty = checkTransfer.thirdParty
type = checkTransfer.type
validUntilDate = checkTransfer.validUntilDate
additionalProperties = checkTransfer.additionalProperties.toMutableMap()
}

Expand Down Expand Up @@ -1063,6 +1091,29 @@ private constructor(
*/
fun type(type: JsonField<Type>) = apply { this.type = type }

/**
* If set, the check will be valid on or before this date. After this date, the check
* transfer will be stopped and deposits will not be accepted. For checks printed by
* Increase, this date is included on the check as its expiry.
*/
fun validUntilDate(validUntilDate: LocalDate?) =
validUntilDate(JsonField.ofNullable(validUntilDate))

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

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

fun additionalProperties(additionalProperties: Map<String, JsonValue>) = apply {
this.additionalProperties.clear()
putAllAdditionalProperties(additionalProperties)
Expand Down Expand Up @@ -1113,6 +1164,7 @@ private constructor(
* .submission()
* .thirdParty()
* .type()
* .validUntilDate()
* ```
*
* @throws IllegalStateException if any required field is unset.
Expand Down Expand Up @@ -1143,6 +1195,7 @@ private constructor(
checkRequired("submission", submission),
checkRequired("thirdParty", thirdParty),
checkRequired("type", type),
checkRequired("validUntilDate", validUntilDate),
additionalProperties.toMutableMap(),
)
}
Expand Down Expand Up @@ -1178,6 +1231,7 @@ private constructor(
submission().ifPresent { it.validate() }
thirdParty().ifPresent { it.validate() }
type().validate()
validUntilDate()
validated = true
}

Expand Down Expand Up @@ -1219,7 +1273,8 @@ private constructor(
(stopPaymentRequest.asKnown().getOrNull()?.validity() ?: 0) +
(submission.asKnown().getOrNull()?.validity() ?: 0) +
(thirdParty.asKnown().getOrNull()?.validity() ?: 0) +
(type.asKnown().getOrNull()?.validity() ?: 0)
(type.asKnown().getOrNull()?.validity() ?: 0) +
(if (validUntilDate.asKnown().isPresent) 1 else 0)

/**
* If your account requires approvals for transfers and the transfer was approved, this will
Expand Down Expand Up @@ -7384,6 +7439,7 @@ private constructor(
submission == other.submission &&
thirdParty == other.thirdParty &&
type == other.type &&
validUntilDate == other.validUntilDate &&
additionalProperties == other.additionalProperties
}

Expand Down Expand Up @@ -7413,12 +7469,13 @@ private constructor(
submission,
thirdParty,
type,
validUntilDate,
additionalProperties,
)
}

override fun hashCode(): Int = hashCode

override fun toString() =
"CheckTransfer{id=$id, accountId=$accountId, accountNumber=$accountNumber, amount=$amount, approval=$approval, approvedInboundCheckDepositId=$approvedInboundCheckDepositId, balanceCheck=$balanceCheck, cancellation=$cancellation, checkNumber=$checkNumber, createdAt=$createdAt, createdBy=$createdBy, currency=$currency, fulfillmentMethod=$fulfillmentMethod, idempotencyKey=$idempotencyKey, mailing=$mailing, pendingTransactionId=$pendingTransactionId, physicalCheck=$physicalCheck, routingNumber=$routingNumber, sourceAccountNumberId=$sourceAccountNumberId, status=$status, stopPaymentRequest=$stopPaymentRequest, submission=$submission, thirdParty=$thirdParty, type=$type, additionalProperties=$additionalProperties}"
"CheckTransfer{id=$id, accountId=$accountId, accountNumber=$accountNumber, amount=$amount, approval=$approval, approvedInboundCheckDepositId=$approvedInboundCheckDepositId, balanceCheck=$balanceCheck, cancellation=$cancellation, checkNumber=$checkNumber, createdAt=$createdAt, createdBy=$createdBy, currency=$currency, fulfillmentMethod=$fulfillmentMethod, idempotencyKey=$idempotencyKey, mailing=$mailing, pendingTransactionId=$pendingTransactionId, physicalCheck=$physicalCheck, routingNumber=$routingNumber, sourceAccountNumberId=$sourceAccountNumberId, status=$status, stopPaymentRequest=$stopPaymentRequest, submission=$submission, thirdParty=$thirdParty, type=$type, validUntilDate=$validUntilDate, additionalProperties=$additionalProperties}"
}
Loading
Loading