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.502.0"
".": "0.503.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-31046e3fe86098c429a87dc861cf42dae0252314abf90021a804e748f9c16417.yml
openapi_spec_hash: 78fe78704879172326e842c27ee09a3a
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-034ee94321ac334412e7368a7c6acc06d5606e92b09ca6873dd4cbfbb0628cb3.yml
openapi_spec_hash: e842e88e09648392440cf613433dacdc
config_hash: 4945e03affdf289484733306e4797f81
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.503.0 (2026-04-03)

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

### Features

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

## 0.502.0 (2026-04-03)

Full Changelog: [v0.501.0...v0.502.0](https://github.com/Increase/increase-java/compare/v0.501.0...v0.502.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.502.0)
[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.502.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.502.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.503.0)
[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.503.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.503.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.502.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.503.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.502.0")
implementation("com.increase.api:increase-java:0.503.0")
```

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

subprojects {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ private constructor(
private val funding: JsonField<Funding>,
private val idempotencyKey: JsonField<String>,
private val informationalEntityId: JsonField<String>,
private val interestAccrued: JsonField<String>,
private val interestAccruedAt: JsonField<LocalDate>,
private val interestRate: JsonField<String>,
private val loan: JsonField<Loan>,
private val name: JsonField<String>,
Expand Down Expand Up @@ -70,12 +68,6 @@ private constructor(
@JsonProperty("informational_entity_id")
@ExcludeMissing
informationalEntityId: JsonField<String> = JsonMissing.of(),
@JsonProperty("interest_accrued")
@ExcludeMissing
interestAccrued: JsonField<String> = JsonMissing.of(),
@JsonProperty("interest_accrued_at")
@ExcludeMissing
interestAccruedAt: JsonField<LocalDate> = JsonMissing.of(),
@JsonProperty("interest_rate")
@ExcludeMissing
interestRate: JsonField<String> = JsonMissing.of(),
Expand All @@ -95,8 +87,6 @@ private constructor(
funding,
idempotencyKey,
informationalEntityId,
interestAccrued,
interestAccruedAt,
interestRate,
loan,
name,
Expand Down Expand Up @@ -193,25 +183,6 @@ private constructor(
fun informationalEntityId(): Optional<String> =
informationalEntityId.getOptional("informational_entity_id")

/**
* The interest accrued but not yet paid, expressed as a string containing a floating-point
* value.
*
* @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 interestAccrued(): String = interestAccrued.getRequired("interest_accrued")

/**
* The latest [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date on which interest was
* accrued.
*
* @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if the
* server responded with an unexpected value).
*/
fun interestAccruedAt(): Optional<LocalDate> =
interestAccruedAt.getOptional("interest_accrued_at")

/**
* 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".
Expand Down Expand Up @@ -342,25 +313,6 @@ private constructor(
@ExcludeMissing
fun _informationalEntityId(): JsonField<String> = informationalEntityId

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

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

/**
* Returns the raw JSON value of [interestRate].
*
Expand Down Expand Up @@ -434,8 +386,6 @@ private constructor(
* .funding()
* .idempotencyKey()
* .informationalEntityId()
* .interestAccrued()
* .interestAccruedAt()
* .interestRate()
* .loan()
* .name()
Expand All @@ -460,8 +410,6 @@ private constructor(
private var funding: JsonField<Funding>? = null
private var idempotencyKey: JsonField<String>? = null
private var informationalEntityId: JsonField<String>? = null
private var interestAccrued: JsonField<String>? = null
private var interestAccruedAt: JsonField<LocalDate>? = null
private var interestRate: JsonField<String>? = null
private var loan: JsonField<Loan>? = null
private var name: JsonField<String>? = null
Expand All @@ -482,8 +430,6 @@ private constructor(
funding = account.funding
idempotencyKey = account.idempotencyKey
informationalEntityId = account.informationalEntityId
interestAccrued = account.interestAccrued
interestAccruedAt = account.interestAccruedAt
interestRate = account.interestRate
loan = account.loan
name = account.name
Expand Down Expand Up @@ -655,46 +601,6 @@ private constructor(
this.informationalEntityId = informationalEntityId
}

/**
* The interest accrued but not yet paid, expressed as a string containing a floating-point
* value.
*/
fun interestAccrued(interestAccrued: String) =
interestAccrued(JsonField.of(interestAccrued))

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

/**
* The latest [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date on which interest was
* accrued.
*/
fun interestAccruedAt(interestAccruedAt: LocalDate?) =
interestAccruedAt(JsonField.ofNullable(interestAccruedAt))

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

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

/**
* 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".
Expand Down Expand Up @@ -812,8 +718,6 @@ private constructor(
* .funding()
* .idempotencyKey()
* .informationalEntityId()
* .interestAccrued()
* .interestAccruedAt()
* .interestRate()
* .loan()
* .name()
Expand All @@ -836,8 +740,6 @@ private constructor(
checkRequired("funding", funding),
checkRequired("idempotencyKey", idempotencyKey),
checkRequired("informationalEntityId", informationalEntityId),
checkRequired("interestAccrued", interestAccrued),
checkRequired("interestAccruedAt", interestAccruedAt),
checkRequired("interestRate", interestRate),
checkRequired("loan", loan),
checkRequired("name", name),
Expand Down Expand Up @@ -865,8 +767,6 @@ private constructor(
funding().validate()
idempotencyKey()
informationalEntityId()
interestAccrued()
interestAccruedAt()
interestRate()
loan().ifPresent { it.validate() }
name()
Expand Down Expand Up @@ -901,8 +801,6 @@ private constructor(
(funding.asKnown().getOrNull()?.validity() ?: 0) +
(if (idempotencyKey.asKnown().isPresent) 1 else 0) +
(if (informationalEntityId.asKnown().isPresent) 1 else 0) +
(if (interestAccrued.asKnown().isPresent) 1 else 0) +
(if (interestAccruedAt.asKnown().isPresent) 1 else 0) +
(if (interestRate.asKnown().isPresent) 1 else 0) +
(loan.asKnown().getOrNull()?.validity() ?: 0) +
(if (name.asKnown().isPresent) 1 else 0) +
Expand Down Expand Up @@ -2122,8 +2020,6 @@ private constructor(
funding == other.funding &&
idempotencyKey == other.idempotencyKey &&
informationalEntityId == other.informationalEntityId &&
interestAccrued == other.interestAccrued &&
interestAccruedAt == other.interestAccruedAt &&
interestRate == other.interestRate &&
loan == other.loan &&
name == other.name &&
Expand All @@ -2145,8 +2041,6 @@ private constructor(
funding,
idempotencyKey,
informationalEntityId,
interestAccrued,
interestAccruedAt,
interestRate,
loan,
name,
Expand All @@ -2160,5 +2054,5 @@ private constructor(
override fun hashCode(): Int = hashCode

override fun toString() =
"Account{id=$id, accountRevenueRate=$accountRevenueRate, bank=$bank, closedAt=$closedAt, createdAt=$createdAt, currency=$currency, entityId=$entityId, funding=$funding, idempotencyKey=$idempotencyKey, informationalEntityId=$informationalEntityId, interestAccrued=$interestAccrued, interestAccruedAt=$interestAccruedAt, interestRate=$interestRate, loan=$loan, 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, funding=$funding, idempotencyKey=$idempotencyKey, informationalEntityId=$informationalEntityId, interestRate=$interestRate, loan=$loan, name=$name, programId=$programId, status=$status, type=$type, additionalProperties=$additionalProperties}"
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ internal class AccountListPageResponseTest {
.funding(Account.Funding.DEPOSITS)
.idempotencyKey(null)
.informationalEntityId(null)
.interestAccrued("0.01")
.interestAccruedAt(LocalDate.parse("2020-01-31"))
.interestRate("0.055")
.loan(
Account.Loan.builder()
Expand Down Expand Up @@ -61,8 +59,6 @@ internal class AccountListPageResponseTest {
.funding(Account.Funding.DEPOSITS)
.idempotencyKey(null)
.informationalEntityId(null)
.interestAccrued("0.01")
.interestAccruedAt(LocalDate.parse("2020-01-31"))
.interestRate("0.055")
.loan(
Account.Loan.builder()
Expand Down Expand Up @@ -99,8 +95,6 @@ internal class AccountListPageResponseTest {
.funding(Account.Funding.DEPOSITS)
.idempotencyKey(null)
.informationalEntityId(null)
.interestAccrued("0.01")
.interestAccruedAt(LocalDate.parse("2020-01-31"))
.interestRate("0.055")
.loan(
Account.Loan.builder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ internal class AccountTest {
.funding(Account.Funding.DEPOSITS)
.idempotencyKey(null)
.informationalEntityId(null)
.interestAccrued("0.01")
.interestAccruedAt(LocalDate.parse("2020-01-31"))
.interestRate("0.055")
.loan(
Account.Loan.builder()
Expand All @@ -53,8 +51,6 @@ internal class AccountTest {
assertThat(account.funding()).isEqualTo(Account.Funding.DEPOSITS)
assertThat(account.idempotencyKey()).isEmpty
assertThat(account.informationalEntityId()).isEmpty
assertThat(account.interestAccrued()).isEqualTo("0.01")
assertThat(account.interestAccruedAt()).contains(LocalDate.parse("2020-01-31"))
assertThat(account.interestRate()).isEqualTo("0.055")
assertThat(account.loan())
.contains(
Expand Down Expand Up @@ -87,8 +83,6 @@ internal class AccountTest {
.funding(Account.Funding.DEPOSITS)
.idempotencyKey(null)
.informationalEntityId(null)
.interestAccrued("0.01")
.interestAccruedAt(LocalDate.parse("2020-01-31"))
.interestRate("0.055")
.loan(
Account.Loan.builder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,6 @@ internal class ProGuardCompatibilityTest {
.funding(Account.Funding.DEPOSITS)
.idempotencyKey(null)
.informationalEntityId(null)
.interestAccrued("0.01")
.interestAccruedAt(LocalDate.parse("2020-01-31"))
.interestRate("0.055")
.loan(
Account.Loan.builder()
Expand Down
Loading