diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 52a15f125..1014297ec 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.513.0" + ".": "0.514.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index bec177ee6..fcb6c732c 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 241 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-a507102e6e65ff03ce152e53c8ca9ed97959b797ac87b00eca5d78be3c553502.yml -openapi_spec_hash: 442ee94177455e035d8e84c85f5006f7 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-ec147e2dbcccb835ada48a743903d43ab228330e476558ba74dc87f248345303.yml +openapi_spec_hash: 333fdaec2de515a123cc44401b432aa2 config_hash: d48e9f65bcf642f92610034d6c43f07a diff --git a/CHANGELOG.md b/CHANGELOG.md index 89be37aec..ee955e001 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.514.0 (2026-04-13) + +Full Changelog: [v0.513.0...v0.514.0](https://github.com/Increase/increase-java/compare/v0.513.0...v0.514.0) + +### Features + +* **api:** api update ([953132b](https://github.com/Increase/increase-java/commit/953132be899bec311a6cacb17957029d19812a5f)) + ## 0.513.0 (2026-04-12) Full Changelog: [v0.512.0...v0.513.0](https://github.com/Increase/increase-java/compare/v0.512.0...v0.513.0) diff --git a/README.md b/README.md index c7799c923..916e509ff 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.513.0) -[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.513.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.513.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.514.0) +[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.514.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.514.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.513.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.514.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.513.0") +implementation("com.increase.api:increase-java:0.514.0") ``` ### Maven @@ -33,7 +33,7 @@ implementation("com.increase.api:increase-java:0.513.0") com.increase.api increase-java - 0.513.0 + 0.514.0 ``` diff --git a/build.gradle.kts b/build.gradle.kts index ff1dfe307..4f31d9c09 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -8,7 +8,7 @@ repositories { allprojects { group = "com.increase.api" - version = "0.513.0" // x-release-please-version + version = "0.514.0" // x-release-please-version } subprojects { diff --git a/increase-java-core/src/main/kotlin/com/increase/api/models/entities/Entity.kt b/increase-java-core/src/main/kotlin/com/increase/api/models/entities/Entity.kt index 882f6fdb6..77e48d594 100644 --- a/increase-java-core/src/main/kotlin/com/increase/api/models/entities/Entity.kt +++ b/increase-java-core/src/main/kotlin/com/increase/api/models/entities/Entity.kt @@ -34,6 +34,7 @@ private constructor( private val id: JsonField, private val corporation: JsonField, private val createdAt: JsonField, + private val creatingEntityOnboardingSessionId: JsonField, private val description: JsonField, private val detailsConfirmedAt: JsonField, private val governmentAuthority: JsonField, @@ -61,6 +62,9 @@ private constructor( @JsonProperty("created_at") @ExcludeMissing createdAt: JsonField = JsonMissing.of(), + @JsonProperty("creating_entity_onboarding_session_id") + @ExcludeMissing + creatingEntityOnboardingSessionId: JsonField = JsonMissing.of(), @JsonProperty("description") @ExcludeMissing description: JsonField = JsonMissing.of(), @@ -102,6 +106,7 @@ private constructor( id, corporation, createdAt, + creatingEntityOnboardingSessionId, description, detailsConfirmedAt, governmentAuthority, @@ -144,6 +149,15 @@ private constructor( */ fun createdAt(): OffsetDateTime = createdAt.getRequired("created_at") + /** + * The identifier of the Entity Onboarding Session that was used to create this Entity, if any. + * + * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if the + * server responded with an unexpected value). + */ + fun creatingEntityOnboardingSessionId(): Optional = + creatingEntityOnboardingSessionId.getOptional("creating_entity_onboarding_session_id") + /** * The entity's description for display purposes. * @@ -303,6 +317,16 @@ private constructor( @ExcludeMissing fun _createdAt(): JsonField = createdAt + /** + * Returns the raw JSON value of [creatingEntityOnboardingSessionId]. + * + * Unlike [creatingEntityOnboardingSessionId], this method doesn't throw if the JSON field has + * an unexpected type. + */ + @JsonProperty("creating_entity_onboarding_session_id") + @ExcludeMissing + fun _creatingEntityOnboardingSessionId(): JsonField = creatingEntityOnboardingSessionId + /** * Returns the raw JSON value of [description]. * @@ -453,6 +477,7 @@ private constructor( * .id() * .corporation() * .createdAt() + * .creatingEntityOnboardingSessionId() * .description() * .detailsConfirmedAt() * .governmentAuthority() @@ -479,6 +504,7 @@ private constructor( private var id: JsonField? = null private var corporation: JsonField? = null private var createdAt: JsonField? = null + private var creatingEntityOnboardingSessionId: JsonField? = null private var description: JsonField? = null private var detailsConfirmedAt: JsonField? = null private var governmentAuthority: JsonField? = null @@ -502,6 +528,7 @@ private constructor( id = entity.id corporation = entity.corporation createdAt = entity.createdAt + creatingEntityOnboardingSessionId = entity.creatingEntityOnboardingSessionId description = entity.description detailsConfirmedAt = entity.detailsConfirmedAt governmentAuthority = entity.governmentAuthority @@ -566,6 +593,33 @@ private constructor( */ fun createdAt(createdAt: JsonField) = apply { this.createdAt = createdAt } + /** + * The identifier of the Entity Onboarding Session that was used to create this Entity, if + * any. + */ + fun creatingEntityOnboardingSessionId(creatingEntityOnboardingSessionId: String?) = + creatingEntityOnboardingSessionId( + JsonField.ofNullable(creatingEntityOnboardingSessionId) + ) + + /** + * Alias for calling [Builder.creatingEntityOnboardingSessionId] with + * `creatingEntityOnboardingSessionId.orElse(null)`. + */ + fun creatingEntityOnboardingSessionId(creatingEntityOnboardingSessionId: Optional) = + creatingEntityOnboardingSessionId(creatingEntityOnboardingSessionId.getOrNull()) + + /** + * Sets [Builder.creatingEntityOnboardingSessionId] to an arbitrary JSON value. + * + * You should usually call [Builder.creatingEntityOnboardingSessionId] with a well-typed + * [String] value instead. This method is primarily for setting the field to an undocumented + * or not yet supported value. + */ + fun creatingEntityOnboardingSessionId( + creatingEntityOnboardingSessionId: JsonField + ) = apply { this.creatingEntityOnboardingSessionId = creatingEntityOnboardingSessionId } + /** The entity's description for display purposes. */ fun description(description: String?) = description(JsonField.ofNullable(description)) @@ -889,6 +943,7 @@ private constructor( * .id() * .corporation() * .createdAt() + * .creatingEntityOnboardingSessionId() * .description() * .detailsConfirmedAt() * .governmentAuthority() @@ -913,6 +968,10 @@ private constructor( checkRequired("id", id), checkRequired("corporation", corporation), checkRequired("createdAt", createdAt), + checkRequired( + "creatingEntityOnboardingSessionId", + creatingEntityOnboardingSessionId, + ), checkRequired("description", description), checkRequired("detailsConfirmedAt", detailsConfirmedAt), checkRequired("governmentAuthority", governmentAuthority), @@ -944,6 +1003,7 @@ private constructor( id() corporation().ifPresent { it.validate() } createdAt() + creatingEntityOnboardingSessionId() description() detailsConfirmedAt() governmentAuthority().ifPresent { it.validate() } @@ -980,6 +1040,7 @@ private constructor( (if (id.asKnown().isPresent) 1 else 0) + (corporation.asKnown().getOrNull()?.validity() ?: 0) + (if (createdAt.asKnown().isPresent) 1 else 0) + + (if (creatingEntityOnboardingSessionId.asKnown().isPresent) 1 else 0) + (if (description.asKnown().isPresent) 1 else 0) + (if (detailsConfirmedAt.asKnown().isPresent) 1 else 0) + (governmentAuthority.asKnown().getOrNull()?.validity() ?: 0) + @@ -14197,6 +14258,7 @@ private constructor( id == other.id && corporation == other.corporation && createdAt == other.createdAt && + creatingEntityOnboardingSessionId == other.creatingEntityOnboardingSessionId && description == other.description && detailsConfirmedAt == other.detailsConfirmedAt && governmentAuthority == other.governmentAuthority && @@ -14220,6 +14282,7 @@ private constructor( id, corporation, createdAt, + creatingEntityOnboardingSessionId, description, detailsConfirmedAt, governmentAuthority, @@ -14242,5 +14305,5 @@ private constructor( override fun hashCode(): Int = hashCode override fun toString() = - "Entity{id=$id, corporation=$corporation, createdAt=$createdAt, description=$description, detailsConfirmedAt=$detailsConfirmedAt, governmentAuthority=$governmentAuthority, idempotencyKey=$idempotencyKey, joint=$joint, naturalPerson=$naturalPerson, riskRating=$riskRating, status=$status, structure=$structure, supplementalDocuments=$supplementalDocuments, termsAgreements=$termsAgreements, thirdPartyVerification=$thirdPartyVerification, trust=$trust, type=$type, validation=$validation, additionalProperties=$additionalProperties}" + "Entity{id=$id, corporation=$corporation, createdAt=$createdAt, creatingEntityOnboardingSessionId=$creatingEntityOnboardingSessionId, description=$description, detailsConfirmedAt=$detailsConfirmedAt, governmentAuthority=$governmentAuthority, idempotencyKey=$idempotencyKey, joint=$joint, naturalPerson=$naturalPerson, riskRating=$riskRating, status=$status, structure=$structure, supplementalDocuments=$supplementalDocuments, termsAgreements=$termsAgreements, thirdPartyVerification=$thirdPartyVerification, trust=$trust, type=$type, validation=$validation, additionalProperties=$additionalProperties}" } diff --git a/increase-java-core/src/test/kotlin/com/increase/api/models/entities/EntityListPageResponseTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/models/entities/EntityListPageResponseTest.kt index 226d91ef2..822add214 100644 --- a/increase-java-core/src/test/kotlin/com/increase/api/models/entities/EntityListPageResponseTest.kt +++ b/increase-java-core/src/test/kotlin/com/increase/api/models/entities/EntityListPageResponseTest.kt @@ -90,6 +90,7 @@ internal class EntityListPageResponseTest { .build() ) .createdAt(OffsetDateTime.parse("2020-01-31T23:59:59Z")) + .creatingEntityOnboardingSessionId(null) .description(null) .detailsConfirmedAt(null) .governmentAuthority( @@ -399,6 +400,7 @@ internal class EntityListPageResponseTest { .build() ) .createdAt(OffsetDateTime.parse("2020-01-31T23:59:59Z")) + .creatingEntityOnboardingSessionId(null) .description(null) .detailsConfirmedAt(null) .governmentAuthority( @@ -712,6 +714,7 @@ internal class EntityListPageResponseTest { .build() ) .createdAt(OffsetDateTime.parse("2020-01-31T23:59:59Z")) + .creatingEntityOnboardingSessionId(null) .description(null) .detailsConfirmedAt(null) .governmentAuthority( diff --git a/increase-java-core/src/test/kotlin/com/increase/api/models/entities/EntityTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/models/entities/EntityTest.kt index b108bdd58..120c4566d 100644 --- a/increase-java-core/src/test/kotlin/com/increase/api/models/entities/EntityTest.kt +++ b/increase-java-core/src/test/kotlin/com/increase/api/models/entities/EntityTest.kt @@ -84,6 +84,7 @@ internal class EntityTest { .build() ) .createdAt(OffsetDateTime.parse("2020-01-31T23:59:59Z")) + .creatingEntityOnboardingSessionId(null) .description(null) .detailsConfirmedAt(null) .governmentAuthority( @@ -377,6 +378,7 @@ internal class EntityTest { .build() ) assertThat(entity.createdAt()).isEqualTo(OffsetDateTime.parse("2020-01-31T23:59:59Z")) + assertThat(entity.creatingEntityOnboardingSessionId()).isEmpty assertThat(entity.description()).isEmpty assertThat(entity.detailsConfirmedAt()).isEmpty assertThat(entity.governmentAuthority()) @@ -682,6 +684,7 @@ internal class EntityTest { .build() ) .createdAt(OffsetDateTime.parse("2020-01-31T23:59:59Z")) + .creatingEntityOnboardingSessionId(null) .description(null) .detailsConfirmedAt(null) .governmentAuthority(