diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 2c7ce2d54..405aab598 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.502.0" + ".": "0.503.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 5c2b86552..f65638cfc 100644 --- a/.stats.yml +++ b/.stats.yml @@ -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 diff --git a/CHANGELOG.md b/CHANGELOG.md index a88f8abc3..8213ae1c6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/README.md b/README.md index d637a0d47..8f5a13e50 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,8 @@ -[![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) @@ -13,7 +13,7 @@ The Increase Java SDK is similar to the Increase Kotlin SDK but with minor diffe -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). @@ -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 @@ -33,7 +33,7 @@ implementation("com.increase.api:increase-java:0.502.0") com.increase.api increase-java - 0.502.0 + 0.503.0 ``` diff --git a/build.gradle.kts b/build.gradle.kts index 47043d8d2..8c0b803d1 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -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 { diff --git a/increase-java-core/src/main/kotlin/com/increase/api/models/accounts/Account.kt b/increase-java-core/src/main/kotlin/com/increase/api/models/accounts/Account.kt index 17e1323dc..0d10eeabe 100644 --- a/increase-java-core/src/main/kotlin/com/increase/api/models/accounts/Account.kt +++ b/increase-java-core/src/main/kotlin/com/increase/api/models/accounts/Account.kt @@ -37,8 +37,6 @@ private constructor( private val funding: JsonField, private val idempotencyKey: JsonField, private val informationalEntityId: JsonField, - private val interestAccrued: JsonField, - private val interestAccruedAt: JsonField, private val interestRate: JsonField, private val loan: JsonField, private val name: JsonField, @@ -70,12 +68,6 @@ private constructor( @JsonProperty("informational_entity_id") @ExcludeMissing informationalEntityId: JsonField = JsonMissing.of(), - @JsonProperty("interest_accrued") - @ExcludeMissing - interestAccrued: JsonField = JsonMissing.of(), - @JsonProperty("interest_accrued_at") - @ExcludeMissing - interestAccruedAt: JsonField = JsonMissing.of(), @JsonProperty("interest_rate") @ExcludeMissing interestRate: JsonField = JsonMissing.of(), @@ -95,8 +87,6 @@ private constructor( funding, idempotencyKey, informationalEntityId, - interestAccrued, - interestAccruedAt, interestRate, loan, name, @@ -193,25 +183,6 @@ private constructor( fun informationalEntityId(): Optional = 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 = - 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". @@ -342,25 +313,6 @@ private constructor( @ExcludeMissing fun _informationalEntityId(): JsonField = 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 = 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 = interestAccruedAt - /** * Returns the raw JSON value of [interestRate]. * @@ -434,8 +386,6 @@ private constructor( * .funding() * .idempotencyKey() * .informationalEntityId() - * .interestAccrued() - * .interestAccruedAt() * .interestRate() * .loan() * .name() @@ -460,8 +410,6 @@ private constructor( private var funding: JsonField? = null private var idempotencyKey: JsonField? = null private var informationalEntityId: JsonField? = null - private var interestAccrued: JsonField? = null - private var interestAccruedAt: JsonField? = null private var interestRate: JsonField? = null private var loan: JsonField? = null private var name: JsonField? = null @@ -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 @@ -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) = 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) = - 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) = 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". @@ -812,8 +718,6 @@ private constructor( * .funding() * .idempotencyKey() * .informationalEntityId() - * .interestAccrued() - * .interestAccruedAt() * .interestRate() * .loan() * .name() @@ -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), @@ -865,8 +767,6 @@ private constructor( funding().validate() idempotencyKey() informationalEntityId() - interestAccrued() - interestAccruedAt() interestRate() loan().ifPresent { it.validate() } name() @@ -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) + @@ -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 && @@ -2145,8 +2041,6 @@ private constructor( funding, idempotencyKey, informationalEntityId, - interestAccrued, - interestAccruedAt, interestRate, loan, name, @@ -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}" } diff --git a/increase-java-core/src/test/kotlin/com/increase/api/models/accounts/AccountListPageResponseTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/models/accounts/AccountListPageResponseTest.kt index 1e777abdb..afb5f1ab8 100644 --- a/increase-java-core/src/test/kotlin/com/increase/api/models/accounts/AccountListPageResponseTest.kt +++ b/increase-java-core/src/test/kotlin/com/increase/api/models/accounts/AccountListPageResponseTest.kt @@ -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() @@ -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() @@ -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() diff --git a/increase-java-core/src/test/kotlin/com/increase/api/models/accounts/AccountTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/models/accounts/AccountTest.kt index eab8abc39..87b57ea84 100644 --- a/increase-java-core/src/test/kotlin/com/increase/api/models/accounts/AccountTest.kt +++ b/increase-java-core/src/test/kotlin/com/increase/api/models/accounts/AccountTest.kt @@ -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() @@ -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( @@ -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() diff --git a/increase-java-proguard-test/src/test/kotlin/com/increase/api/proguard/ProGuardCompatibilityTest.kt b/increase-java-proguard-test/src/test/kotlin/com/increase/api/proguard/ProGuardCompatibilityTest.kt index c6a591f77..bcd7c1c00 100644 --- a/increase-java-proguard-test/src/test/kotlin/com/increase/api/proguard/ProGuardCompatibilityTest.kt +++ b/increase-java-proguard-test/src/test/kotlin/com/increase/api/proguard/ProGuardCompatibilityTest.kt @@ -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()