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.294.0"
".": "0.295.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: 215
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-b2b1b8766fa7146f21f8d4d52ff033e8650a6b25d1d161679959cca0d4153211.yml
openapi_spec_hash: 17af6a2d612ce076f58c585565f98c22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-47271d8ef6b398d5273312e3c39405688f782f8ec811ddee55283f5c0bd1a355.yml
openapi_spec_hash: 304a3d8409f0cc03144052411acab7a1
config_hash: 0b0a2503208283b283fc5bc6df6a07a5
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.295.0 (2025-08-22)

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

### Features

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

## 0.294.0 (2025-08-22)

Full Changelog: [v0.293.0...v0.294.0](https://github.com/Increase/increase-java/compare/v0.293.0...v0.294.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.294.0)
[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.294.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.294.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.295.0)
[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.295.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.295.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.294.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.295.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.294.0")
implementation("com.increase.api:increase-java:0.295.0")
```

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

subprojects {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import kotlin.jvm.optionals.getOrNull
class Account
private constructor(
private val id: JsonField<String>,
private val accountRevenueRate: JsonField<String>,
private val bank: JsonField<Bank>,
private val closedAt: JsonField<OffsetDateTime>,
private val createdAt: JsonField<OffsetDateTime>,
Expand All @@ -47,6 +48,9 @@ private constructor(
@JsonCreator
private constructor(
@JsonProperty("id") @ExcludeMissing id: JsonField<String> = JsonMissing.of(),
@JsonProperty("account_revenue_rate")
@ExcludeMissing
accountRevenueRate: JsonField<String> = JsonMissing.of(),
@JsonProperty("bank") @ExcludeMissing bank: JsonField<Bank> = JsonMissing.of(),
@JsonProperty("closed_at")
@ExcludeMissing
Expand Down Expand Up @@ -77,6 +81,7 @@ private constructor(
@JsonProperty("type") @ExcludeMissing type: JsonField<Type> = JsonMissing.of(),
) : this(
id,
accountRevenueRate,
bank,
closedAt,
createdAt,
Expand All @@ -102,6 +107,16 @@ private constructor(
*/
fun id(): String = id.getRequired("id")

/**
* The account revenue rate currently being earned on the account, as a string containing a
* decimal number. For example, a 1% account revenue rate would be represented as "0.01".
*
* @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if the
* server responded with an unexpected value).
*/
fun accountRevenueRate(): Optional<String> =
accountRevenueRate.getOptional("account_revenue_rate")

/**
* The bank the Account is with.
*
Expand Down Expand Up @@ -182,7 +197,7 @@ private constructor(
interestAccruedAt.getOptional("interest_accrued_at")

/**
* The Interest Rate currently being earned on the account, as a string containing a decimal
* The interest rate currently being earned on the account, as a string containing a decimal
* number. For example, a 1% interest rate would be represented as "0.01".
*
* @throws IncreaseInvalidDataException if the JSON field has an unexpected type or is
Expand Down Expand Up @@ -230,6 +245,16 @@ private constructor(
*/
@JsonProperty("id") @ExcludeMissing fun _id(): JsonField<String> = id

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

/**
* Returns the raw JSON value of [bank].
*
Expand Down Expand Up @@ -362,6 +387,7 @@ private constructor(
* The following fields are required:
* ```java
* .id()
* .accountRevenueRate()
* .bank()
* .closedAt()
* .createdAt()
Expand All @@ -385,6 +411,7 @@ private constructor(
class Builder internal constructor() {

private var id: JsonField<String>? = null
private var accountRevenueRate: JsonField<String>? = null
private var bank: JsonField<Bank>? = null
private var closedAt: JsonField<OffsetDateTime>? = null
private var createdAt: JsonField<OffsetDateTime>? = null
Expand All @@ -404,6 +431,7 @@ private constructor(
@JvmSynthetic
internal fun from(account: Account) = apply {
id = account.id
accountRevenueRate = account.accountRevenueRate
bank = account.bank
closedAt = account.closedAt
createdAt = account.createdAt
Expand Down Expand Up @@ -432,6 +460,30 @@ private constructor(
*/
fun id(id: JsonField<String>) = apply { this.id = id }

/**
* The account revenue rate currently being earned on the account, as a string containing a
* decimal number. For example, a 1% account revenue rate would be represented as "0.01".
*/
fun accountRevenueRate(accountRevenueRate: String?) =
accountRevenueRate(JsonField.ofNullable(accountRevenueRate))

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

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

/** The bank the Account is with. */
fun bank(bank: Bank) = bank(JsonField.of(bank))

Expand Down Expand Up @@ -588,7 +640,7 @@ private constructor(
}

/**
* The Interest Rate currently being earned on the account, as a string containing a decimal
* The interest rate currently being earned on the account, as a string containing a decimal
* number. For example, a 1% interest rate would be represented as "0.01".
*/
fun interestRate(interestRate: String) = interestRate(JsonField.of(interestRate))
Expand Down Expand Up @@ -681,6 +733,7 @@ private constructor(
* The following fields are required:
* ```java
* .id()
* .accountRevenueRate()
* .bank()
* .closedAt()
* .createdAt()
Expand All @@ -702,6 +755,7 @@ private constructor(
fun build(): Account =
Account(
checkRequired("id", id),
checkRequired("accountRevenueRate", accountRevenueRate),
checkRequired("bank", bank),
checkRequired("closedAt", closedAt),
checkRequired("createdAt", createdAt),
Expand All @@ -728,6 +782,7 @@ private constructor(
}

id()
accountRevenueRate()
bank().validate()
closedAt()
createdAt()
Expand Down Expand Up @@ -761,6 +816,7 @@ private constructor(
@JvmSynthetic
internal fun validity(): Int =
(if (id.asKnown().isPresent) 1 else 0) +
(if (accountRevenueRate.asKnown().isPresent) 1 else 0) +
(bank.asKnown().getOrNull()?.validity() ?: 0) +
(if (closedAt.asKnown().isPresent) 1 else 0) +
(if (createdAt.asKnown().isPresent) 1 else 0) +
Expand Down Expand Up @@ -1352,6 +1408,7 @@ private constructor(

return other is Account &&
id == other.id &&
accountRevenueRate == other.accountRevenueRate &&
bank == other.bank &&
closedAt == other.closedAt &&
createdAt == other.createdAt &&
Expand All @@ -1372,6 +1429,7 @@ private constructor(
private val hashCode: Int by lazy {
Objects.hash(
id,
accountRevenueRate,
bank,
closedAt,
createdAt,
Expand All @@ -1393,5 +1451,5 @@ private constructor(
override fun hashCode(): Int = hashCode

override fun toString() =
"Account{id=$id, bank=$bank, closedAt=$closedAt, createdAt=$createdAt, currency=$currency, entityId=$entityId, idempotencyKey=$idempotencyKey, informationalEntityId=$informationalEntityId, interestAccrued=$interestAccrued, interestAccruedAt=$interestAccruedAt, interestRate=$interestRate, name=$name, programId=$programId, status=$status, type=$type, additionalProperties=$additionalProperties}"
"Account{id=$id, accountRevenueRate=$accountRevenueRate, bank=$bank, closedAt=$closedAt, createdAt=$createdAt, currency=$currency, entityId=$entityId, idempotencyKey=$idempotencyKey, informationalEntityId=$informationalEntityId, interestAccrued=$interestAccrued, interestAccruedAt=$interestAccruedAt, interestRate=$interestRate, name=$name, programId=$programId, status=$status, type=$type, additionalProperties=$additionalProperties}"
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ internal class AccountListPageResponseTest {
.addData(
Account.builder()
.id("account_in71c4amph0vgo2qllky")
.accountRevenueRate(null)
.bank(Account.Bank.FIRST_INTERNET_BANK)
.closedAt(null)
.createdAt(OffsetDateTime.parse("2020-01-31T23:59:59Z"))
Expand All @@ -41,6 +42,7 @@ internal class AccountListPageResponseTest {
.containsExactly(
Account.builder()
.id("account_in71c4amph0vgo2qllky")
.accountRevenueRate(null)
.bank(Account.Bank.FIRST_INTERNET_BANK)
.closedAt(null)
.createdAt(OffsetDateTime.parse("2020-01-31T23:59:59Z"))
Expand Down Expand Up @@ -68,6 +70,7 @@ internal class AccountListPageResponseTest {
.addData(
Account.builder()
.id("account_in71c4amph0vgo2qllky")
.accountRevenueRate(null)
.bank(Account.Bank.FIRST_INTERNET_BANK)
.closedAt(null)
.createdAt(OffsetDateTime.parse("2020-01-31T23:59:59Z"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ internal class AccountTest {
val account =
Account.builder()
.id("account_in71c4amph0vgo2qllky")
.accountRevenueRate(null)
.bank(Account.Bank.FIRST_INTERNET_BANK)
.closedAt(null)
.createdAt(OffsetDateTime.parse("2020-01-31T23:59:59Z"))
Expand All @@ -33,6 +34,7 @@ internal class AccountTest {
.build()

assertThat(account.id()).isEqualTo("account_in71c4amph0vgo2qllky")
assertThat(account.accountRevenueRate()).isEmpty
assertThat(account.bank()).isEqualTo(Account.Bank.FIRST_INTERNET_BANK)
assertThat(account.closedAt()).isEmpty
assertThat(account.createdAt()).isEqualTo(OffsetDateTime.parse("2020-01-31T23:59:59Z"))
Expand All @@ -55,6 +57,7 @@ internal class AccountTest {
val account =
Account.builder()
.id("account_in71c4amph0vgo2qllky")
.accountRevenueRate(null)
.bank(Account.Bank.FIRST_INTERNET_BANK)
.closedAt(null)
.createdAt(OffsetDateTime.parse("2020-01-31T23:59:59Z"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ internal class ProGuardCompatibilityTest {
val account =
Account.builder()
.id("account_in71c4amph0vgo2qllky")
.accountRevenueRate(null)
.bank(Account.Bank.FIRST_INTERNET_BANK)
.closedAt(null)
.createdAt(OffsetDateTime.parse("2020-01-31T23:59:59Z"))
Expand Down
Loading