diff --git a/.release-please-manifest.json b/.release-please-manifest.json index a2487af7f..ea7f7e9bd 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.538.0" + ".": "0.539.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 73e838e27..e94784dad 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 238 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase/increase-5753cd7d30cb546d3e2ff7408c24febe5f251f4a50017960a21746a50c9b7f67.yml -openapi_spec_hash: 0efa1759effd642f1f39107a0de6b5e7 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase/increase-8444ba4d474e25e8bd4474e53e985998c050b982eac5693a3168116c578bea64.yml +openapi_spec_hash: 8a7faa0b93068b32ed26567fcf2c7158 config_hash: 20a19f4f8eba684f97ba7cdc0007f818 diff --git a/CHANGELOG.md b/CHANGELOG.md index b5a259bbf..6dc21eeb1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.539.0 (2026-05-02) + +Full Changelog: [v0.538.0...v0.539.0](https://github.com/Increase/increase-java/compare/v0.538.0...v0.539.0) + +### Features + +* **api:** api update ([01b9beb](https://github.com/Increase/increase-java/commit/01b9beba8d3350a8cb26551348d52eb7b45f2581)) + ## 0.538.0 (2026-05-01) Full Changelog: [v0.537.0...v0.538.0](https://github.com/Increase/increase-java/compare/v0.537.0...v0.538.0) diff --git a/README.md b/README.md index 4ebe67496..e70dd8f86 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.538.0) -[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.538.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.538.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.539.0) +[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.539.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.539.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.538.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.539.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.538.0") +implementation("com.increase.api:increase-java:0.539.0") ``` ### Maven @@ -33,7 +33,7 @@ implementation("com.increase.api:increase-java:0.538.0") com.increase.api increase-java - 0.538.0 + 0.539.0 ``` diff --git a/build.gradle.kts b/build.gradle.kts index c8477686e..3082825b7 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -8,7 +8,7 @@ repositories { allprojects { group = "com.increase.api" - version = "0.538.0" // x-release-please-version + version = "0.539.0" // x-release-please-version } subprojects { diff --git a/increase-java-core/src/main/kotlin/com/increase/api/models/entities/EntityCreateParams.kt b/increase-java-core/src/main/kotlin/com/increase/api/models/entities/EntityCreateParams.kt index 16840d510..2e1bab767 100644 --- a/increase-java-core/src/main/kotlin/com/increase/api/models/entities/EntityCreateParams.kt +++ b/increase-java-core/src/main/kotlin/com/increase/api/models/entities/EntityCreateParams.kt @@ -1556,7 +1556,7 @@ private constructor( fun industryCode(): Optional = industryCode.getOptional("industry_code") /** - * The website of the corporation. + * A website for the business. Not every program requires a website for submitted Entities. * * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if * the server responded with an unexpected value). @@ -1850,7 +1850,10 @@ private constructor( this.industryCode = industryCode } - /** The website of the corporation. */ + /** + * A website for the business. Not every program requires a website for submitted + * Entities. + */ fun website(website: String) = website(JsonField.of(website)) /** @@ -5685,7 +5688,8 @@ private constructor( fun taxIdentifier(): String = taxIdentifier.getRequired("tax_identifier") /** - * The website of the government authority. + * A website for the government authority. Not every program requires a website for + * submitted Entities. * * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if * the server responded with an unexpected value). @@ -5874,7 +5878,10 @@ private constructor( this.taxIdentifier = taxIdentifier } - /** The website of the government authority. */ + /** + * A website for the government authority. Not every program requires a website for + * submitted Entities. + */ fun website(website: String) = website(JsonField.of(website)) /** diff --git a/increase-java-core/src/main/kotlin/com/increase/api/models/entities/EntityUpdateParams.kt b/increase-java-core/src/main/kotlin/com/increase/api/models/entities/EntityUpdateParams.kt index 818af4d96..87a844626 100644 --- a/increase-java-core/src/main/kotlin/com/increase/api/models/entities/EntityUpdateParams.kt +++ b/increase-java-core/src/main/kotlin/com/increase/api/models/entities/EntityUpdateParams.kt @@ -1046,6 +1046,7 @@ private constructor( private val industryCode: JsonField, private val legalIdentifier: JsonField, private val name: JsonField, + private val website: JsonField, private val additionalProperties: MutableMap, ) { @@ -1063,6 +1064,7 @@ private constructor( @ExcludeMissing legalIdentifier: JsonField = JsonMissing.of(), @JsonProperty("name") @ExcludeMissing name: JsonField = JsonMissing.of(), + @JsonProperty("website") @ExcludeMissing website: JsonField = JsonMissing.of(), ) : this( address, email, @@ -1070,6 +1072,7 @@ private constructor( industryCode, legalIdentifier, name, + website, mutableMapOf(), ) @@ -1130,6 +1133,14 @@ private constructor( */ fun name(): Optional = name.getOptional("name") + /** + * A website for the business. Not every program requires a website for submitted Entities. + * + * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if + * the server responded with an unexpected value). + */ + fun website(): Optional = website.getOptional("website") + /** * Returns the raw JSON value of [address]. * @@ -1181,6 +1192,13 @@ private constructor( */ @JsonProperty("name") @ExcludeMissing fun _name(): JsonField = name + /** + * Returns the raw JSON value of [website]. + * + * Unlike [website], this method doesn't throw if the JSON field has an unexpected type. + */ + @JsonProperty("website") @ExcludeMissing fun _website(): JsonField = website + @JsonAnySetter private fun putAdditionalProperty(key: String, value: JsonValue) { additionalProperties.put(key, value) @@ -1208,6 +1226,7 @@ private constructor( private var industryCode: JsonField = JsonMissing.of() private var legalIdentifier: JsonField = JsonMissing.of() private var name: JsonField = JsonMissing.of() + private var website: JsonField = JsonMissing.of() private var additionalProperties: MutableMap = mutableMapOf() @JvmSynthetic @@ -1218,6 +1237,7 @@ private constructor( industryCode = corporation.industryCode legalIdentifier = corporation.legalIdentifier name = corporation.name + website = corporation.website additionalProperties = corporation.additionalProperties.toMutableMap() } @@ -1318,6 +1338,21 @@ private constructor( */ fun name(name: JsonField) = apply { this.name = name } + /** + * A website for the business. Not every program requires a website for submitted + * Entities. + */ + fun website(website: String) = website(JsonField.of(website)) + + /** + * Sets [Builder.website] to an arbitrary JSON value. + * + * You should usually call [Builder.website] with a well-typed [String] value instead. + * This method is primarily for setting the field to an undocumented or not yet + * supported value. + */ + fun website(website: JsonField) = apply { this.website = website } + fun additionalProperties(additionalProperties: Map) = apply { this.additionalProperties.clear() putAllAdditionalProperties(additionalProperties) @@ -1350,6 +1385,7 @@ private constructor( industryCode, legalIdentifier, name, + website, additionalProperties.toMutableMap(), ) } @@ -1367,6 +1403,7 @@ private constructor( industryCode() legalIdentifier().ifPresent { it.validate() } name() + website() validated = true } @@ -1391,7 +1428,8 @@ private constructor( (if (incorporationState.asKnown().isPresent) 1 else 0) + (if (industryCode.asKnown().isPresent) 1 else 0) + (legalIdentifier.asKnown().getOrNull()?.validity() ?: 0) + - (if (name.asKnown().isPresent) 1 else 0) + (if (name.asKnown().isPresent) 1 else 0) + + (if (website.asKnown().isPresent) 1 else 0) /** * The entity's physical address. Mail receiving locations like PO Boxes and PMB's are @@ -2138,6 +2176,7 @@ private constructor( industryCode == other.industryCode && legalIdentifier == other.legalIdentifier && name == other.name && + website == other.website && additionalProperties == other.additionalProperties } @@ -2149,6 +2188,7 @@ private constructor( industryCode, legalIdentifier, name, + website, additionalProperties, ) } @@ -2156,7 +2196,7 @@ private constructor( override fun hashCode(): Int = hashCode override fun toString() = - "Corporation{address=$address, email=$email, incorporationState=$incorporationState, industryCode=$industryCode, legalIdentifier=$legalIdentifier, name=$name, additionalProperties=$additionalProperties}" + "Corporation{address=$address, email=$email, incorporationState=$incorporationState, industryCode=$industryCode, legalIdentifier=$legalIdentifier, name=$name, website=$website, additionalProperties=$additionalProperties}" } /** diff --git a/increase-java-core/src/test/kotlin/com/increase/api/models/entities/EntityUpdateParamsTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/models/entities/EntityUpdateParamsTest.kt index 45da57360..23f3c8b3a 100644 --- a/increase-java-core/src/test/kotlin/com/increase/api/models/entities/EntityUpdateParamsTest.kt +++ b/increase-java-core/src/test/kotlin/com/increase/api/models/entities/EntityUpdateParamsTest.kt @@ -39,6 +39,7 @@ internal class EntityUpdateParamsTest { .build() ) .name("x") + .website("website") .build() ) .detailsConfirmedAt(OffsetDateTime.parse("2019-12-27T18:11:19.117Z")) @@ -181,6 +182,7 @@ internal class EntityUpdateParamsTest { .build() ) .name("x") + .website("website") .build() ) .detailsConfirmedAt(OffsetDateTime.parse("2019-12-27T18:11:19.117Z")) @@ -312,6 +314,7 @@ internal class EntityUpdateParamsTest { .build() ) .name("x") + .website("website") .build() ) assertThat(body.detailsConfirmedAt()) diff --git a/increase-java-core/src/test/kotlin/com/increase/api/services/async/EntityServiceAsyncTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/services/async/EntityServiceAsyncTest.kt index b2365763f..e275e9e6e 100644 --- a/increase-java-core/src/test/kotlin/com/increase/api/services/async/EntityServiceAsyncTest.kt +++ b/increase-java-core/src/test/kotlin/com/increase/api/services/async/EntityServiceAsyncTest.kt @@ -523,6 +523,7 @@ internal class EntityServiceAsyncTest { .build() ) .name("x") + .website("website") .build() ) .detailsConfirmedAt(OffsetDateTime.parse("2019-12-27T18:11:19.117Z")) diff --git a/increase-java-core/src/test/kotlin/com/increase/api/services/blocking/EntityServiceTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/services/blocking/EntityServiceTest.kt index 8a2397d54..0a7659f02 100644 --- a/increase-java-core/src/test/kotlin/com/increase/api/services/blocking/EntityServiceTest.kt +++ b/increase-java-core/src/test/kotlin/com/increase/api/services/blocking/EntityServiceTest.kt @@ -521,6 +521,7 @@ internal class EntityServiceTest { .build() ) .name("x") + .website("website") .build() ) .detailsConfirmedAt(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))