diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 45f593991..c3829d835 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.474.0" + ".": "0.475.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 61f8a56f6..3edafa840 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-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 diff --git a/CHANGELOG.md b/CHANGELOG.md index 4c94d905f..b9b231eba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/README.md b/README.md index 0771a9a78..8ec9d2fde 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.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) @@ -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.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). @@ -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 @@ -33,7 +33,7 @@ implementation("com.increase.api:increase-java:0.474.0") com.increase.api increase-java - 0.474.0 + 0.475.0 ``` diff --git a/build.gradle.kts b/build.gradle.kts index e7dbdcf38..865d200e0 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -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 { diff --git a/increase-java-core/src/main/kotlin/com/increase/api/models/intrafibalances/IntrafiBalance.kt b/increase-java-core/src/main/kotlin/com/increase/api/models/intrafibalances/IntrafiBalance.kt index 12f169c36..6054a2901 100644 --- a/increase-java-core/src/main/kotlin/com/increase/api/models/intrafibalances/IntrafiBalance.kt +++ b/increase-java-core/src/main/kotlin/com/increase/api/models/intrafibalances/IntrafiBalance.kt @@ -28,7 +28,6 @@ import kotlin.jvm.optionals.getOrNull class IntrafiBalance @JsonCreator(mode = JsonCreator.Mode.DISABLED) private constructor( - private val id: JsonField, private val balances: JsonField>, private val currency: JsonField, private val effectiveDate: JsonField, @@ -39,7 +38,6 @@ private constructor( @JsonCreator private constructor( - @JsonProperty("id") @ExcludeMissing id: JsonField = JsonMissing.of(), @JsonProperty("balances") @ExcludeMissing balances: JsonField> = JsonMissing.of(), @@ -51,15 +49,7 @@ private constructor( @ExcludeMissing totalBalance: JsonField = JsonMissing.of(), @JsonProperty("type") @ExcludeMissing type: JsonField = 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 @@ -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 = id - /** * Returns the raw JSON value of [balances]. * @@ -169,7 +152,6 @@ private constructor( * * The following fields are required: * ```java - * .id() * .balances() * .currency() * .effectiveDate() @@ -183,7 +165,6 @@ private constructor( /** A builder for [IntrafiBalance]. */ class Builder internal constructor() { - private var id: JsonField? = null private var balances: JsonField>? = null private var currency: JsonField? = null private var effectiveDate: JsonField? = null @@ -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 @@ -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) = 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. @@ -323,7 +292,6 @@ private constructor( * * The following fields are required: * ```java - * .id() * .balances() * .currency() * .effectiveDate() @@ -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), @@ -352,7 +319,6 @@ private constructor( return@apply } - id() balances().forEach { it.validate() } currency().validate() effectiveDate() @@ -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) + @@ -386,7 +351,6 @@ private constructor( class Balance @JsonCreator(mode = JsonCreator.Mode.DISABLED) private constructor( - private val id: JsonField, private val balance: JsonField, private val bank: JsonField, private val bankLocation: JsonField, @@ -396,7 +360,6 @@ private constructor( @JsonCreator private constructor( - @JsonProperty("id") @ExcludeMissing id: JsonField = JsonMissing.of(), @JsonProperty("balance") @ExcludeMissing balance: JsonField = JsonMissing.of(), @JsonProperty("bank") @ExcludeMissing bank: JsonField = JsonMissing.of(), @JsonProperty("bank_location") @@ -405,15 +368,7 @@ private constructor( @JsonProperty("fdic_certificate_number") @ExcludeMissing fdicCertificateNumber: JsonField = 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. @@ -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 = id - /** * Returns the raw JSON value of [balance]. * @@ -510,7 +458,6 @@ private constructor( * * The following fields are required: * ```java - * .id() * .balance() * .bank() * .bankLocation() @@ -523,7 +470,6 @@ private constructor( /** A builder for [Balance]. */ class Builder internal constructor() { - private var id: JsonField? = null private var balance: JsonField? = null private var bank: JsonField? = null private var bankLocation: JsonField? = null @@ -532,7 +478,6 @@ private constructor( @JvmSynthetic internal fun from(balance: Balance) = apply { - id = balance.id this.balance = balance.balance bank = balance.bank bankLocation = balance.bankLocation @@ -540,18 +485,6 @@ private constructor( 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) = apply { this.id = id } - /** The balance, in minor units of `currency`, held with this bank. */ fun balance(balance: Long) = balance(JsonField.of(balance)) @@ -640,7 +573,6 @@ private constructor( * * The following fields are required: * ```java - * .id() * .balance() * .bank() * .bankLocation() @@ -651,7 +583,6 @@ private constructor( */ fun build(): Balance = Balance( - checkRequired("id", id), checkRequired("balance", balance), checkRequired("bank", bank), checkRequired("bankLocation", bankLocation), @@ -667,7 +598,6 @@ private constructor( return@apply } - id() balance() bank() bankLocation().ifPresent { it.validate() } @@ -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) @@ -906,7 +835,6 @@ private constructor( } return other is Balance && - id == other.id && balance == other.balance && bank == other.bank && bankLocation == other.bankLocation && @@ -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. */ @@ -1187,7 +1108,6 @@ private constructor( } return other is IntrafiBalance && - id == other.id && balances == other.balances && currency == other.currency && effectiveDate == other.effectiveDate && @@ -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}" } diff --git a/increase-java-core/src/test/kotlin/com/increase/api/models/intrafibalances/IntrafiBalanceTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/models/intrafibalances/IntrafiBalanceTest.kt index 9d61bbf79..0229b335d 100644 --- a/increase-java-core/src/test/kotlin/com/increase/api/models/intrafibalances/IntrafiBalanceTest.kt +++ b/increase-java-core/src/test/kotlin/com/increase/api/models/intrafibalances/IntrafiBalanceTest.kt @@ -14,10 +14,8 @@ internal class IntrafiBalanceTest { fun create() { val intrafiBalance = IntrafiBalance.builder() - .id("intrafi_balance_8lgtn3pz0ktekaekw29t") .addBalance( IntrafiBalance.Balance.builder() - .id("intrafi_detailed_balance_qp4v28t1htqu5lsp0rz8") .balance(1750L) .bank("Example Bank") .bankLocation( @@ -35,11 +33,9 @@ internal class IntrafiBalanceTest { .type(IntrafiBalance.Type.INTRAFI_BALANCE) .build() - assertThat(intrafiBalance.id()).isEqualTo("intrafi_balance_8lgtn3pz0ktekaekw29t") assertThat(intrafiBalance.balances()) .containsExactly( IntrafiBalance.Balance.builder() - .id("intrafi_detailed_balance_qp4v28t1htqu5lsp0rz8") .balance(1750L) .bank("Example Bank") .bankLocation( @@ -62,10 +58,8 @@ internal class IntrafiBalanceTest { val jsonMapper = jsonMapper() val intrafiBalance = IntrafiBalance.builder() - .id("intrafi_balance_8lgtn3pz0ktekaekw29t") .addBalance( IntrafiBalance.Balance.builder() - .id("intrafi_detailed_balance_qp4v28t1htqu5lsp0rz8") .balance(1750L) .bank("Example Bank") .bankLocation(