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.474.0"
".": "0.475.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: 236
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-2d7155feee87cb1c64ae2b6f31d769c46725b615f1622558f998f2a637cfb57c.yml
openapi_spec_hash: c3117360164f38ece4a984800813813c
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-4a9671050881b7d7579bd118589b25ed43dccb69677f5ab8576df6f70de9a0dc.yml
openapi_spec_hash: b72da714aeef1e6652e6cc595ef65f94
config_hash: 25d7d7aa4882db6189b4b53e8e249e80
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.475.0 (2026-03-13)

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

### Features

* **api:** api update ([7da1a0e](https://github.com/Increase/increase-java/commit/7da1a0ec2805ae121053fb31cf0032d6562e5a68))

## 0.474.0 (2026-03-12)

Full Changelog: [v0.473.0...v0.474.0](https://github.com/Increase/increase-java/compare/v0.473.0...v0.474.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.474.0)
[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.474.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.474.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.475.0)
[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.475.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.475.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.474.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.475.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.474.0")
implementation("com.increase.api:increase-java:0.475.0")
```

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

subprojects {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ import kotlin.jvm.optionals.getOrNull
class IntrafiBalance
@JsonCreator(mode = JsonCreator.Mode.DISABLED)
private constructor(
private val id: JsonField<String>,
private val balances: JsonField<List<Balance>>,
private val currency: JsonField<Currency>,
private val effectiveDate: JsonField<LocalDate>,
Expand All @@ -39,7 +38,6 @@ private constructor(

@JsonCreator
private constructor(
@JsonProperty("id") @ExcludeMissing id: JsonField<String> = JsonMissing.of(),
@JsonProperty("balances")
@ExcludeMissing
balances: JsonField<List<Balance>> = JsonMissing.of(),
Expand All @@ -51,15 +49,7 @@ private constructor(
@ExcludeMissing
totalBalance: JsonField<Long> = JsonMissing.of(),
@JsonProperty("type") @ExcludeMissing type: JsonField<Type> = JsonMissing.of(),
) : this(id, balances, currency, effectiveDate, totalBalance, type, mutableMapOf())

/**
* The identifier of this balance.
*
* @throws IncreaseInvalidDataException 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 id(): String = id.getRequired("id")
) : this(balances, currency, effectiveDate, totalBalance, type, mutableMapOf())

/**
* Each entry represents a balance held at a different bank. IntraFi separates the total balance
Expand Down Expand Up @@ -104,13 +94,6 @@ private constructor(
*/
fun type(): Type = type.getRequired("type")

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

/**
* Returns the raw JSON value of [balances].
*
Expand Down Expand Up @@ -169,7 +152,6 @@ private constructor(
*
* The following fields are required:
* ```java
* .id()
* .balances()
* .currency()
* .effectiveDate()
Expand All @@ -183,7 +165,6 @@ private constructor(
/** A builder for [IntrafiBalance]. */
class Builder internal constructor() {

private var id: JsonField<String>? = null
private var balances: JsonField<MutableList<Balance>>? = null
private var currency: JsonField<Currency>? = null
private var effectiveDate: JsonField<LocalDate>? = null
Expand All @@ -193,7 +174,6 @@ private constructor(

@JvmSynthetic
internal fun from(intrafiBalance: IntrafiBalance) = apply {
id = intrafiBalance.id
balances = intrafiBalance.balances.map { it.toMutableList() }
currency = intrafiBalance.currency
effectiveDate = intrafiBalance.effectiveDate
Expand All @@ -202,17 +182,6 @@ private constructor(
additionalProperties = intrafiBalance.additionalProperties.toMutableMap()
}

/** The identifier of this balance. */
fun id(id: String) = id(JsonField.of(id))

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

/**
* Each entry represents a balance held at a different bank. IntraFi separates the total
* balance across many participating banks in the network.
Expand Down Expand Up @@ -323,7 +292,6 @@ private constructor(
*
* The following fields are required:
* ```java
* .id()
* .balances()
* .currency()
* .effectiveDate()
Expand All @@ -335,7 +303,6 @@ private constructor(
*/
fun build(): IntrafiBalance =
IntrafiBalance(
checkRequired("id", id),
checkRequired("balances", balances).map { it.toImmutable() },
checkRequired("currency", currency),
checkRequired("effectiveDate", effectiveDate),
Expand All @@ -352,7 +319,6 @@ private constructor(
return@apply
}

id()
balances().forEach { it.validate() }
currency().validate()
effectiveDate()
Expand All @@ -376,8 +342,7 @@ private constructor(
*/
@JvmSynthetic
internal fun validity(): Int =
(if (id.asKnown().isPresent) 1 else 0) +
(balances.asKnown().getOrNull()?.sumOf { it.validity().toInt() } ?: 0) +
(balances.asKnown().getOrNull()?.sumOf { it.validity().toInt() } ?: 0) +
(currency.asKnown().getOrNull()?.validity() ?: 0) +
(if (effectiveDate.asKnown().isPresent) 1 else 0) +
(if (totalBalance.asKnown().isPresent) 1 else 0) +
Expand All @@ -386,7 +351,6 @@ private constructor(
class Balance
@JsonCreator(mode = JsonCreator.Mode.DISABLED)
private constructor(
private val id: JsonField<String>,
private val balance: JsonField<Long>,
private val bank: JsonField<String>,
private val bankLocation: JsonField<BankLocation>,
Expand All @@ -396,7 +360,6 @@ private constructor(

@JsonCreator
private constructor(
@JsonProperty("id") @ExcludeMissing id: JsonField<String> = JsonMissing.of(),
@JsonProperty("balance") @ExcludeMissing balance: JsonField<Long> = JsonMissing.of(),
@JsonProperty("bank") @ExcludeMissing bank: JsonField<String> = JsonMissing.of(),
@JsonProperty("bank_location")
Expand All @@ -405,15 +368,7 @@ private constructor(
@JsonProperty("fdic_certificate_number")
@ExcludeMissing
fdicCertificateNumber: JsonField<String> = JsonMissing.of(),
) : this(id, balance, bank, bankLocation, fdicCertificateNumber, mutableMapOf())

/**
* The identifier of this balance.
*
* @throws IncreaseInvalidDataException 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 id(): String = id.getRequired("id")
) : this(balance, bank, bankLocation, fdicCertificateNumber, mutableMapOf())

/**
* The balance, in minor units of `currency`, held with this bank.
Expand Down Expand Up @@ -450,13 +405,6 @@ private constructor(
fun fdicCertificateNumber(): String =
fdicCertificateNumber.getRequired("fdic_certificate_number")

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

/**
* Returns the raw JSON value of [balance].
*
Expand Down Expand Up @@ -510,7 +458,6 @@ private constructor(
*
* The following fields are required:
* ```java
* .id()
* .balance()
* .bank()
* .bankLocation()
Expand All @@ -523,7 +470,6 @@ private constructor(
/** A builder for [Balance]. */
class Builder internal constructor() {

private var id: JsonField<String>? = null
private var balance: JsonField<Long>? = null
private var bank: JsonField<String>? = null
private var bankLocation: JsonField<BankLocation>? = null
Expand All @@ -532,26 +478,13 @@ private constructor(

@JvmSynthetic
internal fun from(balance: Balance) = apply {
id = balance.id
this.balance = balance.balance
bank = balance.bank
bankLocation = balance.bankLocation
fdicCertificateNumber = balance.fdicCertificateNumber
additionalProperties = balance.additionalProperties.toMutableMap()
}

/** The identifier of this balance. */
fun id(id: String) = id(JsonField.of(id))

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

/** The balance, in minor units of `currency`, held with this bank. */
fun balance(balance: Long) = balance(JsonField.of(balance))

Expand Down Expand Up @@ -640,7 +573,6 @@ private constructor(
*
* The following fields are required:
* ```java
* .id()
* .balance()
* .bank()
* .bankLocation()
Expand All @@ -651,7 +583,6 @@ private constructor(
*/
fun build(): Balance =
Balance(
checkRequired("id", id),
checkRequired("balance", balance),
checkRequired("bank", bank),
checkRequired("bankLocation", bankLocation),
Expand All @@ -667,7 +598,6 @@ private constructor(
return@apply
}

id()
balance()
bank()
bankLocation().ifPresent { it.validate() }
Expand All @@ -691,8 +621,7 @@ private constructor(
*/
@JvmSynthetic
internal fun validity(): Int =
(if (id.asKnown().isPresent) 1 else 0) +
(if (balance.asKnown().isPresent) 1 else 0) +
(if (balance.asKnown().isPresent) 1 else 0) +
(if (bank.asKnown().isPresent) 1 else 0) +
(bankLocation.asKnown().getOrNull()?.validity() ?: 0) +
(if (fdicCertificateNumber.asKnown().isPresent) 1 else 0)
Expand Down Expand Up @@ -906,7 +835,6 @@ private constructor(
}

return other is Balance &&
id == other.id &&
balance == other.balance &&
bank == other.bank &&
bankLocation == other.bankLocation &&
Expand All @@ -915,20 +843,13 @@ private constructor(
}

private val hashCode: Int by lazy {
Objects.hash(
id,
balance,
bank,
bankLocation,
fdicCertificateNumber,
additionalProperties,
)
Objects.hash(balance, bank, bankLocation, fdicCertificateNumber, additionalProperties)
}

override fun hashCode(): Int = hashCode

override fun toString() =
"Balance{id=$id, balance=$balance, bank=$bank, bankLocation=$bankLocation, fdicCertificateNumber=$fdicCertificateNumber, additionalProperties=$additionalProperties}"
"Balance{balance=$balance, bank=$bank, bankLocation=$bankLocation, fdicCertificateNumber=$fdicCertificateNumber, additionalProperties=$additionalProperties}"
}

/** The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the account currency. */
Expand Down Expand Up @@ -1187,7 +1108,6 @@ private constructor(
}

return other is IntrafiBalance &&
id == other.id &&
balances == other.balances &&
currency == other.currency &&
effectiveDate == other.effectiveDate &&
Expand All @@ -1197,19 +1117,11 @@ private constructor(
}

private val hashCode: Int by lazy {
Objects.hash(
id,
balances,
currency,
effectiveDate,
totalBalance,
type,
additionalProperties,
)
Objects.hash(balances, currency, effectiveDate, totalBalance, type, additionalProperties)
}

override fun hashCode(): Int = hashCode

override fun toString() =
"IntrafiBalance{id=$id, balances=$balances, currency=$currency, effectiveDate=$effectiveDate, totalBalance=$totalBalance, type=$type, additionalProperties=$additionalProperties}"
"IntrafiBalance{balances=$balances, currency=$currency, effectiveDate=$effectiveDate, totalBalance=$totalBalance, type=$type, additionalProperties=$additionalProperties}"
}
Loading
Loading