diff --git a/.release-please-manifest.json b/.release-please-manifest.json
index b5b696492..d7478872e 100644
--- a/.release-please-manifest.json
+++ b/.release-please-manifest.json
@@ -1,3 +1,3 @@
{
- ".": "0.511.0"
+ ".": "0.512.0"
}
\ No newline at end of file
diff --git a/.stats.yml b/.stats.yml
index 2dd3ad7c7..6d176607d 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-ff1d99efd9eeb980f386d87e7d4c422890073b2dd12759044b444227f76dbe96.yml
-openapi_spec_hash: 1b8389213a95f495dcc6d381451e5c4c
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-e1702c4a3b65baa3aa2cd31f032b23eb84c83c663aaffba72794320adcfd164d.yml
+openapi_spec_hash: 57d3d06ec298932f6384d1f03c9ec0a8
config_hash: d48e9f65bcf642f92610034d6c43f07a
diff --git a/CHANGELOG.md b/CHANGELOG.md
index cc3e6a2b2..f85209a61 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,13 @@
# Changelog
+## 0.512.0 (2026-04-12)
+
+Full Changelog: [v0.511.0...v0.512.0](https://github.com/Increase/increase-java/compare/v0.511.0...v0.512.0)
+
+### Features
+
+* **api:** api update ([0832765](https://github.com/Increase/increase-java/commit/0832765ccb0bbf9ef029ba0081c49befdbbe9be2))
+
## 0.511.0 (2026-04-11)
Full Changelog: [v0.510.0...v0.511.0](https://github.com/Increase/increase-java/compare/v0.510.0...v0.511.0)
diff --git a/README.md b/README.md
index d1051f07c..6f3f23adf 100644
--- a/README.md
+++ b/README.md
@@ -2,8 +2,8 @@
-[](https://central.sonatype.com/artifact/com.increase.api/increase-java/0.511.0)
-[](https://javadoc.io/doc/com.increase.api/increase-java/0.511.0)
+[](https://central.sonatype.com/artifact/com.increase.api/increase-java/0.512.0)
+[](https://javadoc.io/doc/com.increase.api/increase-java/0.512.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.511.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.512.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.511.0")
+implementation("com.increase.api:increase-java:0.512.0")
```
### Maven
@@ -33,7 +33,7 @@ implementation("com.increase.api:increase-java:0.511.0")
com.increase.api
increase-java
- 0.511.0
+ 0.512.0
```
diff --git a/build.gradle.kts b/build.gradle.kts
index 89e6d32f1..de5fe5828 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -8,7 +8,7 @@ repositories {
allprojects {
group = "com.increase.api"
- version = "0.511.0" // x-release-please-version
+ version = "0.512.0" // x-release-please-version
}
subprojects {
diff --git a/increase-java-core/src/main/kotlin/com/increase/api/models/beneficialowners/EntityBeneficialOwner.kt b/increase-java-core/src/main/kotlin/com/increase/api/models/beneficialowners/EntityBeneficialOwner.kt
index d630b1c76..379847e76 100644
--- a/increase-java-core/src/main/kotlin/com/increase/api/models/beneficialowners/EntityBeneficialOwner.kt
+++ b/increase-java-core/src/main/kotlin/com/increase/api/models/beneficialowners/EntityBeneficialOwner.kt
@@ -527,10 +527,11 @@ private constructor(
/**
* A means of verifying the person's identity.
*
- * @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).
+ * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if
+ * the server responded with an unexpected value).
*/
- fun identification(): Identification = identification.getRequired("identification")
+ fun identification(): Optional =
+ identification.getOptional("identification")
/**
* The person's legal name.
@@ -646,8 +647,12 @@ private constructor(
}
/** A means of verifying the person's identity. */
- fun identification(identification: Identification) =
- identification(JsonField.of(identification))
+ fun identification(identification: Identification?) =
+ identification(JsonField.ofNullable(identification))
+
+ /** Alias for calling [Builder.identification] with `identification.orElse(null)`. */
+ fun identification(identification: Optional) =
+ identification(identification.getOrNull())
/**
* Sets [Builder.identification] to an arbitrary JSON value.
@@ -725,7 +730,7 @@ private constructor(
address().validate()
dateOfBirth()
- identification().validate()
+ identification().ifPresent { it.validate() }
name()
validated = true
}
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 ab5133d05..882f6fdb6 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
@@ -2193,11 +2193,11 @@ private constructor(
/**
* A means of verifying the person's identity.
*
- * @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).
+ * @throws IncreaseInvalidDataException if the JSON field has an unexpected type
+ * (e.g. if the server responded with an unexpected value).
*/
- fun identification(): Identification = identification.getRequired("identification")
+ fun identification(): Optional =
+ identification.getOptional("identification")
/**
* The person's legal name.
@@ -2319,8 +2319,15 @@ private constructor(
}
/** A means of verifying the person's identity. */
- fun identification(identification: Identification) =
- identification(JsonField.of(identification))
+ fun identification(identification: Identification?) =
+ identification(JsonField.ofNullable(identification))
+
+ /**
+ * Alias for calling [Builder.identification] with
+ * `identification.orElse(null)`.
+ */
+ fun identification(identification: Optional) =
+ identification(identification.getOrNull())
/**
* Sets [Builder.identification] to an arbitrary JSON value.
@@ -2401,7 +2408,7 @@ private constructor(
address().validate()
dateOfBirth()
- identification().validate()
+ identification().ifPresent { it.validate() }
name()
validated = true
}
@@ -5190,11 +5197,11 @@ private constructor(
/**
* A means of verifying the person's identity.
*
- * @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).
+ * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g.
+ * if the server responded with an unexpected value).
*/
- fun identification(): Identification = identification.getRequired("identification")
+ fun identification(): Optional =
+ identification.getOptional("identification")
/**
* The person's legal name.
@@ -5312,8 +5319,14 @@ private constructor(
}
/** A means of verifying the person's identity. */
- fun identification(identification: Identification) =
- identification(JsonField.of(identification))
+ fun identification(identification: Identification?) =
+ identification(JsonField.ofNullable(identification))
+
+ /**
+ * Alias for calling [Builder.identification] with `identification.orElse(null)`.
+ */
+ fun identification(identification: Optional) =
+ identification(identification.getOrNull())
/**
* Sets [Builder.identification] to an arbitrary JSON value.
@@ -5394,7 +5407,7 @@ private constructor(
address().validate()
dateOfBirth()
- identification().validate()
+ identification().ifPresent { it.validate() }
name()
validated = true
}
@@ -6284,10 +6297,11 @@ private constructor(
/**
* A means of verifying the person's identity.
*
- * @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).
+ * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if
+ * the server responded with an unexpected value).
*/
- fun identification(): Identification = identification.getRequired("identification")
+ fun identification(): Optional =
+ identification.getOptional("identification")
/**
* The person's legal name.
@@ -6403,8 +6417,12 @@ private constructor(
}
/** A means of verifying the person's identity. */
- fun identification(identification: Identification) =
- identification(JsonField.of(identification))
+ fun identification(identification: Identification?) =
+ identification(JsonField.ofNullable(identification))
+
+ /** Alias for calling [Builder.identification] with `identification.orElse(null)`. */
+ fun identification(identification: Optional) =
+ identification(identification.getOrNull())
/**
* Sets [Builder.identification] to an arbitrary JSON value.
@@ -6482,7 +6500,7 @@ private constructor(
address().validate()
dateOfBirth()
- identification().validate()
+ identification().ifPresent { it.validate() }
name()
validated = true
}
@@ -9592,11 +9610,11 @@ private constructor(
/**
* A means of verifying the person's identity.
*
- * @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).
+ * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g.
+ * if the server responded with an unexpected value).
*/
- fun identification(): Identification = identification.getRequired("identification")
+ fun identification(): Optional =
+ identification.getOptional("identification")
/**
* The person's legal name.
@@ -9714,8 +9732,14 @@ private constructor(
}
/** A means of verifying the person's identity. */
- fun identification(identification: Identification) =
- identification(JsonField.of(identification))
+ fun identification(identification: Identification?) =
+ identification(JsonField.ofNullable(identification))
+
+ /**
+ * Alias for calling [Builder.identification] with `identification.orElse(null)`.
+ */
+ fun identification(identification: Optional) =
+ identification(identification.getOrNull())
/**
* Sets [Builder.identification] to an arbitrary JSON value.
@@ -9796,7 +9820,7 @@ private constructor(
address().validate()
dateOfBirth()
- identification().validate()
+ identification().ifPresent { it.validate() }
name()
validated = true
}
@@ -10877,11 +10901,11 @@ private constructor(
/**
* A means of verifying the person's identity.
*
- * @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).
+ * @throws IncreaseInvalidDataException if the JSON field has an unexpected type
+ * (e.g. if the server responded with an unexpected value).
*/
- fun identification(): Identification = identification.getRequired("identification")
+ fun identification(): Optional =
+ identification.getOptional("identification")
/**
* The person's legal name.
@@ -11003,8 +11027,15 @@ private constructor(
}
/** A means of verifying the person's identity. */
- fun identification(identification: Identification) =
- identification(JsonField.of(identification))
+ fun identification(identification: Identification?) =
+ identification(JsonField.ofNullable(identification))
+
+ /**
+ * Alias for calling [Builder.identification] with
+ * `identification.orElse(null)`.
+ */
+ fun identification(identification: Optional) =
+ identification(identification.getOrNull())
/**
* Sets [Builder.identification] to an arbitrary JSON value.
@@ -11085,7 +11116,7 @@ private constructor(
address().validate()
dateOfBirth()
- identification().validate()
+ identification().ifPresent { it.validate() }
name()
validated = true
}