Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.320.0"
".": "0.321.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 217
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-5d85239e5d724254ab22d922c6cad05e1c361c791ef4a578e1165158bd967753.yml
openapi_spec_hash: b2c90485c02d643ad09954f4d88dbc25
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-387c9e5ff5305d470ddf290a424b9d0f087fa295b56cf82265f2dfe8355a589a.yml
openapi_spec_hash: 2c624b8535be90329028f6b10281a313
config_hash: e1885b38eded054b77308a024c5d80cc
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.321.0 (2025-09-08)

Full Changelog: [v0.320.0...v0.321.0](https://github.com/Increase/increase-java/compare/v0.320.0...v0.321.0)

### Features

* **api:** api update ([2868e76](https://github.com/Increase/increase-java/commit/2868e76c6099c395932c7fc5cee620b4a6e22edf))

## 0.320.0 (2025-09-08)

Full Changelog: [v0.319.0...v0.320.0](https://github.com/Increase/increase-java/compare/v0.319.0...v0.320.0)
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

<!-- x-release-please-start-version -->

[![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.320.0)
[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.320.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.320.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.321.0)
[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.321.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.321.0)

<!-- x-release-please-end -->

Expand All @@ -13,7 +13,7 @@ The Increase Java SDK is similar to the Increase Kotlin SDK but with minor diffe

<!-- x-release-please-start-version -->

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.320.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.321.0).

<!-- x-release-please-end -->

Expand All @@ -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.320.0")
implementation("com.increase.api:increase-java:0.321.0")
```

### Maven
Expand All @@ -33,7 +33,7 @@ implementation("com.increase.api:increase-java:0.320.0")
<dependency>
<groupId>com.increase.api</groupId>
<artifactId>increase-java</artifactId>
<version>0.320.0</version>
<version>0.321.0</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ repositories {

allprojects {
group = "com.increase.api"
version = "0.320.0" // x-release-please-version
version = "0.321.0" // x-release-please-version
}

subprojects {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,15 @@ private constructor(
*/
fun corporation(): Optional<Corporation> = body.corporation()

/**
* When your user last confirmed the Entity's details. Depending on your program, you may be
* required to affirmatively confirm details with your users on an annual basis.
*
* @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if the
* server responded with an unexpected value).
*/
fun detailsConfirmedAt(): Optional<OffsetDateTime> = body.detailsConfirmedAt()

/**
* Details of the government authority entity to update. If you specify this parameter and the
* entity is not a government authority, the request will fail.
Expand Down Expand Up @@ -95,6 +104,14 @@ private constructor(
*/
fun _corporation(): JsonField<Corporation> = body._corporation()

/**
* Returns the raw JSON value of [detailsConfirmedAt].
*
* Unlike [detailsConfirmedAt], this method doesn't throw if the JSON field has an unexpected
* type.
*/
fun _detailsConfirmedAt(): JsonField<OffsetDateTime> = body._detailsConfirmedAt()

/**
* Returns the raw JSON value of [governmentAuthority].
*
Expand Down Expand Up @@ -179,10 +196,10 @@ private constructor(
* This is generally only useful if you are already constructing the body separately.
* Otherwise, it's more convenient to use the top-level setters instead:
* - [corporation]
* - [detailsConfirmedAt]
* - [governmentAuthority]
* - [naturalPerson]
* - [riskRating]
* - [thirdPartyVerification]
* - etc.
*/
fun body(body: Body) = apply { this.body = body.toBuilder() }
Expand All @@ -204,6 +221,25 @@ private constructor(
body.corporation(corporation)
}

/**
* When your user last confirmed the Entity's details. Depending on your program, you may be
* required to affirmatively confirm details with your users on an annual basis.
*/
fun detailsConfirmedAt(detailsConfirmedAt: OffsetDateTime) = apply {
body.detailsConfirmedAt(detailsConfirmedAt)
}

/**
* Sets [Builder.detailsConfirmedAt] to an arbitrary JSON value.
*
* You should usually call [Builder.detailsConfirmedAt] with a well-typed [OffsetDateTime]
* value instead. This method is primarily for setting the field to an undocumented or not
* yet supported value.
*/
fun detailsConfirmedAt(detailsConfirmedAt: JsonField<OffsetDateTime>) = apply {
body.detailsConfirmedAt(detailsConfirmedAt)
}

/**
* Details of the government authority entity to update. If you specify this parameter and
* the entity is not a government authority, the request will fail.
Expand Down Expand Up @@ -437,6 +473,7 @@ private constructor(
class Body
private constructor(
private val corporation: JsonField<Corporation>,
private val detailsConfirmedAt: JsonField<OffsetDateTime>,
private val governmentAuthority: JsonField<GovernmentAuthority>,
private val naturalPerson: JsonField<NaturalPerson>,
private val riskRating: JsonField<RiskRating>,
Expand All @@ -450,6 +487,9 @@ private constructor(
@JsonProperty("corporation")
@ExcludeMissing
corporation: JsonField<Corporation> = JsonMissing.of(),
@JsonProperty("details_confirmed_at")
@ExcludeMissing
detailsConfirmedAt: JsonField<OffsetDateTime> = JsonMissing.of(),
@JsonProperty("government_authority")
@ExcludeMissing
governmentAuthority: JsonField<GovernmentAuthority> = JsonMissing.of(),
Expand All @@ -465,6 +505,7 @@ private constructor(
@JsonProperty("trust") @ExcludeMissing trust: JsonField<Trust> = JsonMissing.of(),
) : this(
corporation,
detailsConfirmedAt,
governmentAuthority,
naturalPerson,
riskRating,
Expand All @@ -482,6 +523,16 @@ private constructor(
*/
fun corporation(): Optional<Corporation> = corporation.getOptional("corporation")

/**
* When your user last confirmed the Entity's details. Depending on your program, you may be
* required to affirmatively confirm details with your users on an annual basis.
*
* @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if
* the server responded with an unexpected value).
*/
fun detailsConfirmedAt(): Optional<OffsetDateTime> =
detailsConfirmedAt.getOptional("details_confirmed_at")

/**
* Details of the government authority entity to update. If you specify this parameter and
* the entity is not a government authority, the request will fail.
Expand Down Expand Up @@ -538,6 +589,16 @@ private constructor(
@ExcludeMissing
fun _corporation(): JsonField<Corporation> = corporation

/**
* Returns the raw JSON value of [detailsConfirmedAt].
*
* Unlike [detailsConfirmedAt], this method doesn't throw if the JSON field has an
* unexpected type.
*/
@JsonProperty("details_confirmed_at")
@ExcludeMissing
fun _detailsConfirmedAt(): JsonField<OffsetDateTime> = detailsConfirmedAt

/**
* Returns the raw JSON value of [governmentAuthority].
*
Expand Down Expand Up @@ -606,6 +667,7 @@ private constructor(
class Builder internal constructor() {

private var corporation: JsonField<Corporation> = JsonMissing.of()
private var detailsConfirmedAt: JsonField<OffsetDateTime> = JsonMissing.of()
private var governmentAuthority: JsonField<GovernmentAuthority> = JsonMissing.of()
private var naturalPerson: JsonField<NaturalPerson> = JsonMissing.of()
private var riskRating: JsonField<RiskRating> = JsonMissing.of()
Expand All @@ -616,6 +678,7 @@ private constructor(
@JvmSynthetic
internal fun from(body: Body) = apply {
corporation = body.corporation
detailsConfirmedAt = body.detailsConfirmedAt
governmentAuthority = body.governmentAuthority
naturalPerson = body.naturalPerson
riskRating = body.riskRating
Expand All @@ -641,6 +704,24 @@ private constructor(
this.corporation = corporation
}

/**
* When your user last confirmed the Entity's details. Depending on your program, you
* may be required to affirmatively confirm details with your users on an annual basis.
*/
fun detailsConfirmedAt(detailsConfirmedAt: OffsetDateTime) =
detailsConfirmedAt(JsonField.of(detailsConfirmedAt))

/**
* Sets [Builder.detailsConfirmedAt] to an arbitrary JSON value.
*
* You should usually call [Builder.detailsConfirmedAt] with a well-typed
* [OffsetDateTime] value instead. This method is primarily for setting the field to an
* undocumented or not yet supported value.
*/
fun detailsConfirmedAt(detailsConfirmedAt: JsonField<OffsetDateTime>) = apply {
this.detailsConfirmedAt = detailsConfirmedAt
}

/**
* Details of the government authority entity to update. If you specify this parameter
* and the entity is not a government authority, the request will fail.
Expand Down Expand Up @@ -756,6 +837,7 @@ private constructor(
fun build(): Body =
Body(
corporation,
detailsConfirmedAt,
governmentAuthority,
naturalPerson,
riskRating,
Expand All @@ -773,6 +855,7 @@ private constructor(
}

corporation().ifPresent { it.validate() }
detailsConfirmedAt()
governmentAuthority().ifPresent { it.validate() }
naturalPerson().ifPresent { it.validate() }
riskRating().ifPresent { it.validate() }
Expand All @@ -798,6 +881,7 @@ private constructor(
@JvmSynthetic
internal fun validity(): Int =
(corporation.asKnown().getOrNull()?.validity() ?: 0) +
(if (detailsConfirmedAt.asKnown().isPresent) 1 else 0) +
(governmentAuthority.asKnown().getOrNull()?.validity() ?: 0) +
(naturalPerson.asKnown().getOrNull()?.validity() ?: 0) +
(riskRating.asKnown().getOrNull()?.validity() ?: 0) +
Expand All @@ -811,6 +895,7 @@ private constructor(

return other is Body &&
corporation == other.corporation &&
detailsConfirmedAt == other.detailsConfirmedAt &&
governmentAuthority == other.governmentAuthority &&
naturalPerson == other.naturalPerson &&
riskRating == other.riskRating &&
Expand All @@ -822,6 +907,7 @@ private constructor(
private val hashCode: Int by lazy {
Objects.hash(
corporation,
detailsConfirmedAt,
governmentAuthority,
naturalPerson,
riskRating,
Expand All @@ -834,7 +920,7 @@ private constructor(
override fun hashCode(): Int = hashCode

override fun toString() =
"Body{corporation=$corporation, governmentAuthority=$governmentAuthority, naturalPerson=$naturalPerson, riskRating=$riskRating, thirdPartyVerification=$thirdPartyVerification, trust=$trust, additionalProperties=$additionalProperties}"
"Body{corporation=$corporation, detailsConfirmedAt=$detailsConfirmedAt, governmentAuthority=$governmentAuthority, naturalPerson=$naturalPerson, riskRating=$riskRating, thirdPartyVerification=$thirdPartyVerification, trust=$trust, additionalProperties=$additionalProperties}"
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ internal class EntityUpdateParamsTest {
.name("x")
.build()
)
.detailsConfirmedAt(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
.governmentAuthority(
EntityUpdateParams.GovernmentAuthority.builder()
.address(
Expand Down Expand Up @@ -113,6 +114,7 @@ internal class EntityUpdateParamsTest {
.name("x")
.build()
)
.detailsConfirmedAt(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
.governmentAuthority(
EntityUpdateParams.GovernmentAuthority.builder()
.address(
Expand Down Expand Up @@ -187,6 +189,8 @@ internal class EntityUpdateParamsTest {
.name("x")
.build()
)
assertThat(body.detailsConfirmedAt())
.contains(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
assertThat(body.governmentAuthority())
.contains(
EntityUpdateParams.GovernmentAuthority.builder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,7 @@ internal class EntityServiceAsyncTest {
.name("x")
.build()
)
.detailsConfirmedAt(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
.governmentAuthority(
EntityUpdateParams.GovernmentAuthority.builder()
.address(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,7 @@ internal class EntityServiceTest {
.name("x")
.build()
)
.detailsConfirmedAt(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
.governmentAuthority(
EntityUpdateParams.GovernmentAuthority.builder()
.address(
Expand Down
Loading