From d0473828f55a6543ee20f268e2e42116a73d6a66 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 22 Aug 2025 16:25:52 +0000 Subject: [PATCH 1/2] feat(api): api update --- .stats.yml | 4 +- .../increase/api/models/accounts/Account.kt | 64 ++++++++++++++++++- .../accounts/AccountListPageResponseTest.kt | 3 + .../api/models/accounts/AccountTest.kt | 3 + .../api/proguard/ProGuardCompatibilityTest.kt | 1 + 5 files changed, 70 insertions(+), 5 deletions(-) diff --git a/.stats.yml b/.stats.yml index 5ff82d3b6..267b1ca2c 100644 --- a/.stats.yml +++ b/.stats.yml @@ -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 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 752483606..66543ae9a 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 @@ -27,6 +27,7 @@ import kotlin.jvm.optionals.getOrNull class Account private constructor( private val id: JsonField, + private val accountRevenueRate: JsonField, private val bank: JsonField, private val closedAt: JsonField, private val createdAt: JsonField, @@ -47,6 +48,9 @@ private constructor( @JsonCreator private constructor( @JsonProperty("id") @ExcludeMissing id: JsonField = JsonMissing.of(), + @JsonProperty("account_revenue_rate") + @ExcludeMissing + accountRevenueRate: JsonField = JsonMissing.of(), @JsonProperty("bank") @ExcludeMissing bank: JsonField = JsonMissing.of(), @JsonProperty("closed_at") @ExcludeMissing @@ -77,6 +81,7 @@ private constructor( @JsonProperty("type") @ExcludeMissing type: JsonField = JsonMissing.of(), ) : this( id, + accountRevenueRate, bank, closedAt, createdAt, @@ -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 = + accountRevenueRate.getOptional("account_revenue_rate") + /** * The bank the Account is with. * @@ -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 @@ -230,6 +245,16 @@ private constructor( */ @JsonProperty("id") @ExcludeMissing fun _id(): JsonField = 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 = accountRevenueRate + /** * Returns the raw JSON value of [bank]. * @@ -362,6 +387,7 @@ private constructor( * The following fields are required: * ```java * .id() + * .accountRevenueRate() * .bank() * .closedAt() * .createdAt() @@ -385,6 +411,7 @@ private constructor( class Builder internal constructor() { private var id: JsonField? = null + private var accountRevenueRate: JsonField? = null private var bank: JsonField? = null private var closedAt: JsonField? = null private var createdAt: JsonField? = null @@ -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 @@ -432,6 +460,30 @@ private constructor( */ fun id(id: JsonField) = 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) = + 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) = apply { + this.accountRevenueRate = accountRevenueRate + } + /** The bank the Account is with. */ fun bank(bank: Bank) = bank(JsonField.of(bank)) @@ -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)) @@ -681,6 +733,7 @@ private constructor( * The following fields are required: * ```java * .id() + * .accountRevenueRate() * .bank() * .closedAt() * .createdAt() @@ -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), @@ -728,6 +782,7 @@ private constructor( } id() + accountRevenueRate() bank().validate() closedAt() createdAt() @@ -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) + @@ -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 && @@ -1372,6 +1429,7 @@ private constructor( private val hashCode: Int by lazy { Objects.hash( id, + accountRevenueRate, bank, closedAt, createdAt, @@ -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}" } 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 a9247438f..a9a2fab89 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 @@ -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")) @@ -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")) @@ -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")) 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 9d851b54c..04a6ca32f 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 @@ -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")) @@ -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")) @@ -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")) 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 6de79bce7..3f267be4e 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 @@ -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")) From 47bc1ecc41ce8cfbb17e0323f1b2eee23a72070b Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 22 Aug 2025 16:26:19 +0000 Subject: [PATCH 2/2] release: 0.295.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ README.md | 10 +++++----- build.gradle.kts | 2 +- 4 files changed, 15 insertions(+), 7 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index ec9c98a35..07070f383 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.294.0" + ".": "0.295.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 5d0731d46..33c3a1950 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/README.md b/README.md index 6fe4c6cb9..383137723 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.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) @@ -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.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). @@ -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 @@ -33,7 +33,7 @@ implementation("com.increase.api:increase-java:0.294.0") com.increase.api increase-java - 0.294.0 + 0.295.0 ``` diff --git a/build.gradle.kts b/build.gradle.kts index bdbdba9b7..dc40bf51b 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -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 {