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.378.0"
".": "0.379.0"
}
6 changes: 3 additions & 3 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 230
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-6f7d8729d517e528b4a2bad402f49122fdf982be7b2df213c393e0d692cef7e7.yml
openapi_spec_hash: bd048174c7a122d23818810434e7881d
config_hash: dd86da070cc89eb6d3868bf23764c847
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-6b5ac6804e3261a05214c5891c95222ef1b5e9003f211ab32db1d03a7531835a.yml
openapi_spec_hash: 611c8d38ba7122a428f57f3069aac84a
config_hash: ff2eb5f192b4de36611b37b27961c2d8
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.379.0 (2025-12-15)

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

### Features

* **api:** api update ([4af75e8](https://github.com/Increase/increase-java/commit/4af75e81dfa91862fec120234a02a0a38732c6ce))

## 0.378.0 (2025-12-09)

Full Changelog: [v0.377.0...v0.378.0](https://github.com/Increase/increase-java/compare/v0.377.0...v0.378.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.378.0)
[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.378.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.378.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.379.0)
[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.379.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.379.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.378.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.379.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.378.0")
implementation("com.increase.api:increase-java:0.379.0")
```

### Maven
Expand All @@ -33,7 +33,7 @@ implementation("com.increase.api:increase-java:0.378.0")
<dependency>
<groupId>com.increase.api</groupId>
<artifactId>increase-java</artifactId>
<version>0.378.0</version>
<version>0.379.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.378.0" // x-release-please-version
version = "0.379.0" // x-release-please-version
}

subprojects {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -897,6 +897,7 @@ private constructor(
private constructor(
private val address: JsonField<Address>,
private val beneficialOwners: JsonField<List<BeneficialOwner>>,
private val email: JsonField<String>,
private val incorporationState: JsonField<String>,
private val industryCode: JsonField<String>,
private val name: JsonField<String>,
Expand All @@ -911,6 +912,7 @@ private constructor(
@JsonProperty("beneficial_owners")
@ExcludeMissing
beneficialOwners: JsonField<List<BeneficialOwner>> = JsonMissing.of(),
@JsonProperty("email") @ExcludeMissing email: JsonField<String> = JsonMissing.of(),
@JsonProperty("incorporation_state")
@ExcludeMissing
incorporationState: JsonField<String> = JsonMissing.of(),
Expand All @@ -925,6 +927,7 @@ private constructor(
) : this(
address,
beneficialOwners,
email,
incorporationState,
industryCode,
name,
Expand All @@ -950,6 +953,14 @@ private constructor(
fun beneficialOwners(): List<BeneficialOwner> =
beneficialOwners.getRequired("beneficial_owners")

/**
* An email address for the business.
*
* @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if
* the server responded with an unexpected value).
*/
fun email(): Optional<String> = email.getOptional("email")

/**
* The two-letter United States Postal Service (USPS) abbreviation for the corporation's
* state of incorporation.
Expand Down Expand Up @@ -1010,6 +1021,13 @@ private constructor(
@ExcludeMissing
fun _beneficialOwners(): JsonField<List<BeneficialOwner>> = beneficialOwners

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

/**
* Returns the raw JSON value of [incorporationState].
*
Expand Down Expand Up @@ -1075,6 +1093,7 @@ private constructor(
* ```java
* .address()
* .beneficialOwners()
* .email()
* .incorporationState()
* .industryCode()
* .name()
Expand All @@ -1090,6 +1109,7 @@ private constructor(

private var address: JsonField<Address>? = null
private var beneficialOwners: JsonField<MutableList<BeneficialOwner>>? = null
private var email: JsonField<String>? = null
private var incorporationState: JsonField<String>? = null
private var industryCode: JsonField<String>? = null
private var name: JsonField<String>? = null
Expand All @@ -1101,6 +1121,7 @@ private constructor(
internal fun from(corporation: Corporation) = apply {
address = corporation.address
beneficialOwners = corporation.beneficialOwners.map { it.toMutableList() }
email = corporation.email
incorporationState = corporation.incorporationState
industryCode = corporation.industryCode
name = corporation.name
Expand Down Expand Up @@ -1151,6 +1172,21 @@ private constructor(
}
}

/** An email address for the business. */
fun email(email: String?) = email(JsonField.ofNullable(email))

/** Alias for calling [Builder.email] with `email.orElse(null)`. */
fun email(email: Optional<String>) = email(email.getOrNull())

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

/**
* The two-letter United States Postal Service (USPS) abbreviation for the corporation's
* state of incorporation.
Expand Down Expand Up @@ -1272,6 +1308,7 @@ private constructor(
* ```java
* .address()
* .beneficialOwners()
* .email()
* .incorporationState()
* .industryCode()
* .name()
Expand All @@ -1285,6 +1322,7 @@ private constructor(
Corporation(
checkRequired("address", address),
checkRequired("beneficialOwners", beneficialOwners).map { it.toImmutable() },
checkRequired("email", email),
checkRequired("incorporationState", incorporationState),
checkRequired("industryCode", industryCode),
checkRequired("name", name),
Expand All @@ -1303,6 +1341,7 @@ private constructor(

address().validate()
beneficialOwners().forEach { it.validate() }
email()
incorporationState()
industryCode()
name()
Expand All @@ -1329,6 +1368,7 @@ private constructor(
internal fun validity(): Int =
(address.asKnown().getOrNull()?.validity() ?: 0) +
(beneficialOwners.asKnown().getOrNull()?.sumOf { it.validity().toInt() } ?: 0) +
(if (email.asKnown().isPresent) 1 else 0) +
(if (incorporationState.asKnown().isPresent) 1 else 0) +
(if (industryCode.asKnown().isPresent) 1 else 0) +
(if (name.asKnown().isPresent) 1 else 0) +
Expand Down Expand Up @@ -3216,6 +3256,7 @@ private constructor(
return other is Corporation &&
address == other.address &&
beneficialOwners == other.beneficialOwners &&
email == other.email &&
incorporationState == other.incorporationState &&
industryCode == other.industryCode &&
name == other.name &&
Expand All @@ -3228,6 +3269,7 @@ private constructor(
Objects.hash(
address,
beneficialOwners,
email,
incorporationState,
industryCode,
name,
Expand All @@ -3240,7 +3282,7 @@ private constructor(
override fun hashCode(): Int = hashCode

override fun toString() =
"Corporation{address=$address, beneficialOwners=$beneficialOwners, incorporationState=$incorporationState, industryCode=$industryCode, name=$name, taxIdentifier=$taxIdentifier, website=$website, additionalProperties=$additionalProperties}"
"Corporation{address=$address, beneficialOwners=$beneficialOwners, email=$email, incorporationState=$incorporationState, industryCode=$industryCode, name=$name, taxIdentifier=$taxIdentifier, website=$website, additionalProperties=$additionalProperties}"
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1332,6 +1332,7 @@ private constructor(
private val taxIdentifier: JsonField<String>,
private val beneficialOwnershipExemptionReason:
JsonField<BeneficialOwnershipExemptionReason>,
private val email: JsonField<String>,
private val incorporationState: JsonField<String>,
private val industryCode: JsonField<String>,
private val website: JsonField<String>,
Expand All @@ -1352,6 +1353,7 @@ private constructor(
@ExcludeMissing
beneficialOwnershipExemptionReason: JsonField<BeneficialOwnershipExemptionReason> =
JsonMissing.of(),
@JsonProperty("email") @ExcludeMissing email: JsonField<String> = JsonMissing.of(),
@JsonProperty("incorporation_state")
@ExcludeMissing
incorporationState: JsonField<String> = JsonMissing.of(),
Expand All @@ -1365,6 +1367,7 @@ private constructor(
name,
taxIdentifier,
beneficialOwnershipExemptionReason,
email,
incorporationState,
industryCode,
website,
Expand Down Expand Up @@ -1418,6 +1421,15 @@ private constructor(
fun beneficialOwnershipExemptionReason(): Optional<BeneficialOwnershipExemptionReason> =
beneficialOwnershipExemptionReason.getOptional("beneficial_ownership_exemption_reason")

/**
* An email address for the business. Not every program requires an email for submitted
* Entities.
*
* @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if
* the server responded with an unexpected value).
*/
fun email(): Optional<String> = email.getOptional("email")

/**
* The two-letter United States Postal Service (USPS) abbreviation for the corporation's
* state of incorporation.
Expand Down Expand Up @@ -1492,6 +1504,13 @@ private constructor(
fun _beneficialOwnershipExemptionReason(): JsonField<BeneficialOwnershipExemptionReason> =
beneficialOwnershipExemptionReason

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

/**
* Returns the raw JSON value of [incorporationState].
*
Expand Down Expand Up @@ -1557,6 +1576,7 @@ private constructor(
private var beneficialOwnershipExemptionReason:
JsonField<BeneficialOwnershipExemptionReason> =
JsonMissing.of()
private var email: JsonField<String> = JsonMissing.of()
private var incorporationState: JsonField<String> = JsonMissing.of()
private var industryCode: JsonField<String> = JsonMissing.of()
private var website: JsonField<String> = JsonMissing.of()
Expand All @@ -1569,6 +1589,7 @@ private constructor(
name = corporation.name
taxIdentifier = corporation.taxIdentifier
beneficialOwnershipExemptionReason = corporation.beneficialOwnershipExemptionReason
email = corporation.email
incorporationState = corporation.incorporationState
industryCode = corporation.industryCode
website = corporation.website
Expand Down Expand Up @@ -1669,6 +1690,21 @@ private constructor(
this.beneficialOwnershipExemptionReason = beneficialOwnershipExemptionReason
}

/**
* An email address for the business. Not every program requires an email for submitted
* Entities.
*/
fun email(email: String) = email(JsonField.of(email))

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

/**
* The two-letter United States Postal Service (USPS) abbreviation for the corporation's
* state of incorporation.
Expand Down Expand Up @@ -1759,6 +1795,7 @@ private constructor(
checkRequired("name", name),
checkRequired("taxIdentifier", taxIdentifier),
beneficialOwnershipExemptionReason,
email,
incorporationState,
industryCode,
website,
Expand All @@ -1778,6 +1815,7 @@ private constructor(
name()
taxIdentifier()
beneficialOwnershipExemptionReason().ifPresent { it.validate() }
email()
incorporationState()
industryCode()
website()
Expand Down Expand Up @@ -1805,6 +1843,7 @@ private constructor(
(if (name.asKnown().isPresent) 1 else 0) +
(if (taxIdentifier.asKnown().isPresent) 1 else 0) +
(beneficialOwnershipExemptionReason.asKnown().getOrNull()?.validity() ?: 0) +
(if (email.asKnown().isPresent) 1 else 0) +
(if (incorporationState.asKnown().isPresent) 1 else 0) +
(if (industryCode.asKnown().isPresent) 1 else 0) +
(if (website.asKnown().isPresent) 1 else 0)
Expand Down Expand Up @@ -5014,6 +5053,7 @@ private constructor(
name == other.name &&
taxIdentifier == other.taxIdentifier &&
beneficialOwnershipExemptionReason == other.beneficialOwnershipExemptionReason &&
email == other.email &&
incorporationState == other.incorporationState &&
industryCode == other.industryCode &&
website == other.website &&
Expand All @@ -5027,6 +5067,7 @@ private constructor(
name,
taxIdentifier,
beneficialOwnershipExemptionReason,
email,
incorporationState,
industryCode,
website,
Expand All @@ -5037,7 +5078,7 @@ private constructor(
override fun hashCode(): Int = hashCode

override fun toString() =
"Corporation{address=$address, beneficialOwners=$beneficialOwners, name=$name, taxIdentifier=$taxIdentifier, beneficialOwnershipExemptionReason=$beneficialOwnershipExemptionReason, incorporationState=$incorporationState, industryCode=$industryCode, website=$website, additionalProperties=$additionalProperties}"
"Corporation{address=$address, beneficialOwners=$beneficialOwners, name=$name, taxIdentifier=$taxIdentifier, beneficialOwnershipExemptionReason=$beneficialOwnershipExemptionReason, email=$email, incorporationState=$incorporationState, industryCode=$industryCode, website=$website, additionalProperties=$additionalProperties}"
}

/**
Expand Down
Loading
Loading