diff --git a/.release-please-manifest.json b/.release-please-manifest.json
index 830a65746..9a47da071 100644
--- a/.release-please-manifest.json
+++ b/.release-please-manifest.json
@@ -1,3 +1,3 @@
{
- ".": "0.495.0"
+ ".": "0.496.0"
}
\ No newline at end of file
diff --git a/.stats.yml b/.stats.yml
index 8ba24b693..46d00e014 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 236
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-b51c9307c5fd4c662426ca9bbdbe00d0721edcb2eb899d4b9a3539aa01623873.yml
-openapi_spec_hash: e5767b8639a1573ae70b25be22cc77a3
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-57310f0e57b0996b79f938ef778b40e54f5b62cefb78c3e6405cefacfa704c66.yml
+openapi_spec_hash: c6d65e9ebf76cb81a5395b8ab4251a95
config_hash: 0997ade8b52ec04e82d5b0c3b61bb51e
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 92df7087d..88e8f23d3 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,18 @@
# Changelog
+## 0.496.0 (2026-03-27)
+
+Full Changelog: [v0.495.0...v0.496.0](https://github.com/Increase/increase-java/compare/v0.495.0...v0.496.0)
+
+### Features
+
+* **api:** api update ([cfa83b7](https://github.com/Increase/increase-java/commit/cfa83b7dcd2e7c525ca50fb3678edcd41a8eccc3))
+
+
+### Chores
+
+* **internal:** update multipart form array serialization ([aa6df97](https://github.com/Increase/increase-java/commit/aa6df97972b5889a2c847e746979eea9c87eaa0d))
+
## 0.495.0 (2026-03-25)
Full Changelog: [v0.494.0...v0.495.0](https://github.com/Increase/increase-java/compare/v0.494.0...v0.495.0)
diff --git a/README.md b/README.md
index 6bf195c65..0292cf3a6 100644
--- a/README.md
+++ b/README.md
@@ -2,8 +2,8 @@
-[](https://central.sonatype.com/artifact/com.increase.api/increase-java/0.495.0)
-[](https://javadoc.io/doc/com.increase.api/increase-java/0.495.0)
+[](https://central.sonatype.com/artifact/com.increase.api/increase-java/0.496.0)
+[](https://javadoc.io/doc/com.increase.api/increase-java/0.496.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.495.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.496.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.495.0")
+implementation("com.increase.api:increase-java:0.496.0")
```
### Maven
@@ -33,7 +33,7 @@ implementation("com.increase.api:increase-java:0.495.0")
com.increase.api
increase-java
- 0.495.0
+ 0.496.0
```
diff --git a/build.gradle.kts b/build.gradle.kts
index 7e1a01e1c..3899a5179 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -8,7 +8,7 @@ repositories {
allprojects {
group = "com.increase.api"
- version = "0.495.0" // x-release-please-version
+ version = "0.496.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 81b85df6d..ab5133d05 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
@@ -13364,7 +13364,7 @@ private constructor(
/**
* The entity's tax identifier could not be validated. Update the tax ID with
* the
- * [update an entity API](/documentation/api/entities#update-an-entity.corporation.tax_identifier).
+ * [update an entity API](/documentation/api/entities#update-an-entity.corporation.legal_identifier).
*/
@JvmField val ENTITY_TAX_IDENTIFIER = of("entity_tax_identifier")
@@ -13396,7 +13396,7 @@ private constructor(
/**
* The entity's tax identifier could not be validated. Update the tax ID with
* the
- * [update an entity API](/documentation/api/entities#update-an-entity.corporation.tax_identifier).
+ * [update an entity API](/documentation/api/entities#update-an-entity.corporation.legal_identifier).
*/
ENTITY_TAX_IDENTIFIER,
/**
@@ -13431,7 +13431,7 @@ private constructor(
/**
* The entity's tax identifier could not be validated. Update the tax ID with
* the
- * [update an entity API](/documentation/api/entities#update-an-entity.corporation.tax_identifier).
+ * [update an entity API](/documentation/api/entities#update-an-entity.corporation.legal_identifier).
*/
ENTITY_TAX_IDENTIFIER,
/**
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 51cd42dec..5aecf3f7c 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
@@ -935,8 +935,8 @@ private constructor(
private val email: JsonField,
private val incorporationState: JsonField,
private val industryCode: JsonField,
+ private val legalIdentifier: JsonField,
private val name: JsonField,
- private val taxIdentifier: JsonField,
private val additionalProperties: MutableMap,
) {
@@ -950,17 +950,17 @@ private constructor(
@JsonProperty("industry_code")
@ExcludeMissing
industryCode: JsonField = JsonMissing.of(),
- @JsonProperty("name") @ExcludeMissing name: JsonField = JsonMissing.of(),
- @JsonProperty("tax_identifier")
+ @JsonProperty("legal_identifier")
@ExcludeMissing
- taxIdentifier: JsonField = JsonMissing.of(),
+ legalIdentifier: JsonField = JsonMissing.of(),
+ @JsonProperty("name") @ExcludeMissing name: JsonField = JsonMissing.of(),
) : this(
address,
email,
incorporationState,
industryCode,
+ legalIdentifier,
name,
- taxIdentifier,
mutableMapOf(),
)
@@ -1004,20 +1004,22 @@ private constructor(
fun industryCode(): Optional = industryCode.getOptional("industry_code")
/**
- * The legal name of the corporation.
+ * The legal identifier of the corporation. This is usually the Employer Identification
+ * Number (EIN).
*
* @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if
* the server responded with an unexpected value).
*/
- fun name(): Optional = name.getOptional("name")
+ fun legalIdentifier(): Optional =
+ legalIdentifier.getOptional("legal_identifier")
/**
- * The Employer Identification Number (EIN) for the corporation.
+ * The legal name of the corporation.
*
* @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if
* the server responded with an unexpected value).
*/
- fun taxIdentifier(): Optional = taxIdentifier.getOptional("tax_identifier")
+ fun name(): Optional = name.getOptional("name")
/**
* Returns the raw JSON value of [address].
@@ -1054,21 +1056,21 @@ private constructor(
fun _industryCode(): JsonField = industryCode
/**
- * Returns the raw JSON value of [name].
+ * Returns the raw JSON value of [legalIdentifier].
*
- * Unlike [name], this method doesn't throw if the JSON field has an unexpected type.
+ * Unlike [legalIdentifier], this method doesn't throw if the JSON field has an unexpected
+ * type.
*/
- @JsonProperty("name") @ExcludeMissing fun _name(): JsonField = name
+ @JsonProperty("legal_identifier")
+ @ExcludeMissing
+ fun _legalIdentifier(): JsonField = legalIdentifier
/**
- * Returns the raw JSON value of [taxIdentifier].
+ * Returns the raw JSON value of [name].
*
- * Unlike [taxIdentifier], this method doesn't throw if the JSON field has an unexpected
- * type.
+ * Unlike [name], this method doesn't throw if the JSON field has an unexpected type.
*/
- @JsonProperty("tax_identifier")
- @ExcludeMissing
- fun _taxIdentifier(): JsonField = taxIdentifier
+ @JsonProperty("name") @ExcludeMissing fun _name(): JsonField = name
@JsonAnySetter
private fun putAdditionalProperty(key: String, value: JsonValue) {
@@ -1095,8 +1097,8 @@ private constructor(
private var email: JsonField = JsonMissing.of()
private var incorporationState: JsonField = JsonMissing.of()
private var industryCode: JsonField = JsonMissing.of()
+ private var legalIdentifier: JsonField = JsonMissing.of()
private var name: JsonField = JsonMissing.of()
- private var taxIdentifier: JsonField = JsonMissing.of()
private var additionalProperties: MutableMap = mutableMapOf()
@JvmSynthetic
@@ -1105,8 +1107,8 @@ private constructor(
email = corporation.email
incorporationState = corporation.incorporationState
industryCode = corporation.industryCode
+ legalIdentifier = corporation.legalIdentifier
name = corporation.name
- taxIdentifier = corporation.taxIdentifier
additionalProperties = corporation.additionalProperties.toMutableMap()
}
@@ -1177,6 +1179,24 @@ private constructor(
this.industryCode = industryCode
}
+ /**
+ * The legal identifier of the corporation. This is usually the Employer Identification
+ * Number (EIN).
+ */
+ fun legalIdentifier(legalIdentifier: LegalIdentifier) =
+ legalIdentifier(JsonField.of(legalIdentifier))
+
+ /**
+ * Sets [Builder.legalIdentifier] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.legalIdentifier] with a well-typed [LegalIdentifier]
+ * value instead. This method is primarily for setting the field to an undocumented or
+ * not yet supported value.
+ */
+ fun legalIdentifier(legalIdentifier: JsonField) = apply {
+ this.legalIdentifier = legalIdentifier
+ }
+
/** The legal name of the corporation. */
fun name(name: String) = name(JsonField.of(name))
@@ -1189,20 +1209,6 @@ private constructor(
*/
fun name(name: JsonField) = apply { this.name = name }
- /** The Employer Identification Number (EIN) for the corporation. */
- fun taxIdentifier(taxIdentifier: String) = taxIdentifier(JsonField.of(taxIdentifier))
-
- /**
- * Sets [Builder.taxIdentifier] to an arbitrary JSON value.
- *
- * You should usually call [Builder.taxIdentifier] with a well-typed [String] value
- * instead. This method is primarily for setting the field to an undocumented or not yet
- * supported value.
- */
- fun taxIdentifier(taxIdentifier: JsonField) = apply {
- this.taxIdentifier = taxIdentifier
- }
-
fun additionalProperties(additionalProperties: Map) = apply {
this.additionalProperties.clear()
putAllAdditionalProperties(additionalProperties)
@@ -1233,8 +1239,8 @@ private constructor(
email,
incorporationState,
industryCode,
+ legalIdentifier,
name,
- taxIdentifier,
additionalProperties.toMutableMap(),
)
}
@@ -1250,8 +1256,8 @@ private constructor(
email()
incorporationState()
industryCode()
+ legalIdentifier().ifPresent { it.validate() }
name()
- taxIdentifier()
validated = true
}
@@ -1275,8 +1281,8 @@ private constructor(
(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) +
- (if (taxIdentifier.asKnown().isPresent) 1 else 0)
+ (legalIdentifier.asKnown().getOrNull()?.validity() ?: 0) +
+ (if (name.asKnown().isPresent) 1 else 0)
/**
* The entity's physical address. Mail receiving locations like PO Boxes and PMB's are
@@ -1636,6 +1642,374 @@ private constructor(
"Address{city=$city, country=$country, line1=$line1, line2=$line2, state=$state, zip=$zip, additionalProperties=$additionalProperties}"
}
+ /**
+ * The legal identifier of the corporation. This is usually the Employer Identification
+ * Number (EIN).
+ */
+ class LegalIdentifier
+ @JsonCreator(mode = JsonCreator.Mode.DISABLED)
+ private constructor(
+ private val value: JsonField,
+ private val category: JsonField,
+ private val additionalProperties: MutableMap,
+ ) {
+
+ @JsonCreator
+ private constructor(
+ @JsonProperty("value") @ExcludeMissing value: JsonField = JsonMissing.of(),
+ @JsonProperty("category")
+ @ExcludeMissing
+ category: JsonField = JsonMissing.of(),
+ ) : this(value, category, mutableMapOf())
+
+ /**
+ * The identifier of the legal identifier.
+ *
+ * @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).
+ */
+ fun value(): String = value.getRequired("value")
+
+ /**
+ * The category of the legal identifier.
+ *
+ * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g.
+ * if the server responded with an unexpected value).
+ */
+ fun category(): Optional = category.getOptional("category")
+
+ /**
+ * Returns the raw JSON value of [value].
+ *
+ * Unlike [value], this method doesn't throw if the JSON field has an unexpected type.
+ */
+ @JsonProperty("value") @ExcludeMissing fun _value(): JsonField = value
+
+ /**
+ * Returns the raw JSON value of [category].
+ *
+ * Unlike [category], this method doesn't throw if the JSON field has an unexpected
+ * type.
+ */
+ @JsonProperty("category")
+ @ExcludeMissing
+ fun _category(): JsonField = category
+
+ @JsonAnySetter
+ private fun putAdditionalProperty(key: String, value: JsonValue) {
+ additionalProperties.put(key, value)
+ }
+
+ @JsonAnyGetter
+ @ExcludeMissing
+ fun _additionalProperties(): Map =
+ Collections.unmodifiableMap(additionalProperties)
+
+ fun toBuilder() = Builder().from(this)
+
+ companion object {
+
+ /**
+ * Returns a mutable builder for constructing an instance of [LegalIdentifier].
+ *
+ * The following fields are required:
+ * ```java
+ * .value()
+ * ```
+ */
+ @JvmStatic fun builder() = Builder()
+ }
+
+ /** A builder for [LegalIdentifier]. */
+ class Builder internal constructor() {
+
+ private var value: JsonField? = null
+ private var category: JsonField = JsonMissing.of()
+ private var additionalProperties: MutableMap = mutableMapOf()
+
+ @JvmSynthetic
+ internal fun from(legalIdentifier: LegalIdentifier) = apply {
+ value = legalIdentifier.value
+ category = legalIdentifier.category
+ additionalProperties = legalIdentifier.additionalProperties.toMutableMap()
+ }
+
+ /** The identifier of the legal identifier. */
+ fun value(value: String) = value(JsonField.of(value))
+
+ /**
+ * Sets [Builder.value] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.value] with a well-typed [String] value instead.
+ * This method is primarily for setting the field to an undocumented or not yet
+ * supported value.
+ */
+ fun value(value: JsonField) = apply { this.value = value }
+
+ /** The category of the legal identifier. */
+ fun category(category: Category) = category(JsonField.of(category))
+
+ /**
+ * Sets [Builder.category] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.category] with a well-typed [Category] value
+ * instead. This method is primarily for setting the field to an undocumented or not
+ * yet supported value.
+ */
+ fun category(category: JsonField) = apply { this.category = category }
+
+ fun additionalProperties(additionalProperties: Map) = apply {
+ this.additionalProperties.clear()
+ putAllAdditionalProperties(additionalProperties)
+ }
+
+ fun putAdditionalProperty(key: String, value: JsonValue) = apply {
+ additionalProperties.put(key, value)
+ }
+
+ fun putAllAdditionalProperties(additionalProperties: Map) =
+ apply {
+ this.additionalProperties.putAll(additionalProperties)
+ }
+
+ fun removeAdditionalProperty(key: String) = apply {
+ additionalProperties.remove(key)
+ }
+
+ fun removeAllAdditionalProperties(keys: Set) = apply {
+ keys.forEach(::removeAdditionalProperty)
+ }
+
+ /**
+ * Returns an immutable instance of [LegalIdentifier].
+ *
+ * Further updates to this [Builder] will not mutate the returned instance.
+ *
+ * The following fields are required:
+ * ```java
+ * .value()
+ * ```
+ *
+ * @throws IllegalStateException if any required field is unset.
+ */
+ fun build(): LegalIdentifier =
+ LegalIdentifier(
+ checkRequired("value", value),
+ category,
+ additionalProperties.toMutableMap(),
+ )
+ }
+
+ private var validated: Boolean = false
+
+ fun validate(): LegalIdentifier = apply {
+ if (validated) {
+ return@apply
+ }
+
+ value()
+ category().ifPresent { it.validate() }
+ validated = true
+ }
+
+ fun isValid(): Boolean =
+ try {
+ validate()
+ true
+ } catch (e: IncreaseInvalidDataException) {
+ false
+ }
+
+ /**
+ * Returns a score indicating how many valid values are contained in this object
+ * recursively.
+ *
+ * Used for best match union deserialization.
+ */
+ @JvmSynthetic
+ internal fun validity(): Int =
+ (if (value.asKnown().isPresent) 1 else 0) +
+ (category.asKnown().getOrNull()?.validity() ?: 0)
+
+ /** The category of the legal identifier. */
+ class Category @JsonCreator private constructor(private val value: JsonField) :
+ Enum {
+
+ /**
+ * Returns this class instance's raw value.
+ *
+ * This is usually only useful if this instance was deserialized from data that
+ * doesn't match any known member, and you want to know that value. For example, if
+ * the SDK is on an older version than the API, then the API may respond with new
+ * members that the SDK is unaware of.
+ */
+ @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value
+
+ companion object {
+
+ /**
+ * The Employer Identification Number (EIN) for the company. The EIN is a
+ * 9-digit number assigned by the IRS.
+ */
+ @JvmField
+ val US_EMPLOYER_IDENTIFICATION_NUMBER = of("us_employer_identification_number")
+
+ /**
+ * A legal identifier issued by a foreign government, like a tax identification
+ * number or registration number.
+ */
+ @JvmField val OTHER = of("other")
+
+ @JvmStatic fun of(value: String) = Category(JsonField.of(value))
+ }
+
+ /** An enum containing [Category]'s known values. */
+ enum class Known {
+ /**
+ * The Employer Identification Number (EIN) for the company. The EIN is a
+ * 9-digit number assigned by the IRS.
+ */
+ US_EMPLOYER_IDENTIFICATION_NUMBER,
+ /**
+ * A legal identifier issued by a foreign government, like a tax identification
+ * number or registration number.
+ */
+ OTHER,
+ }
+
+ /**
+ * An enum containing [Category]'s known values, as well as an [_UNKNOWN] member.
+ *
+ * An instance of [Category] can contain an unknown value in a couple of cases:
+ * - It was deserialized from data that doesn't match any known member. For example,
+ * if the SDK is on an older version than the API, then the API may respond with
+ * new members that the SDK is unaware of.
+ * - It was constructed with an arbitrary value using the [of] method.
+ */
+ enum class Value {
+ /**
+ * The Employer Identification Number (EIN) for the company. The EIN is a
+ * 9-digit number assigned by the IRS.
+ */
+ US_EMPLOYER_IDENTIFICATION_NUMBER,
+ /**
+ * A legal identifier issued by a foreign government, like a tax identification
+ * number or registration number.
+ */
+ OTHER,
+ /**
+ * An enum member indicating that [Category] was instantiated with an unknown
+ * value.
+ */
+ _UNKNOWN,
+ }
+
+ /**
+ * Returns an enum member corresponding to this class instance's value, or
+ * [Value._UNKNOWN] if the class was instantiated with an unknown value.
+ *
+ * Use the [known] method instead if you're certain the value is always known or if
+ * you want to throw for the unknown case.
+ */
+ fun value(): Value =
+ when (this) {
+ US_EMPLOYER_IDENTIFICATION_NUMBER -> Value.US_EMPLOYER_IDENTIFICATION_NUMBER
+ OTHER -> Value.OTHER
+ else -> Value._UNKNOWN
+ }
+
+ /**
+ * Returns an enum member corresponding to this class instance's value.
+ *
+ * Use the [value] method instead if you're uncertain the value is always known and
+ * don't want to throw for the unknown case.
+ *
+ * @throws IncreaseInvalidDataException if this class instance's value is a not a
+ * known member.
+ */
+ fun known(): Known =
+ when (this) {
+ US_EMPLOYER_IDENTIFICATION_NUMBER -> Known.US_EMPLOYER_IDENTIFICATION_NUMBER
+ OTHER -> Known.OTHER
+ else -> throw IncreaseInvalidDataException("Unknown Category: $value")
+ }
+
+ /**
+ * Returns this class instance's primitive wire representation.
+ *
+ * This differs from the [toString] method because that method is primarily for
+ * debugging and generally doesn't throw.
+ *
+ * @throws IncreaseInvalidDataException if this class instance's value does not have
+ * the expected primitive type.
+ */
+ fun asString(): String =
+ _value().asString().orElseThrow {
+ IncreaseInvalidDataException("Value is not a String")
+ }
+
+ private var validated: Boolean = false
+
+ fun validate(): Category = apply {
+ if (validated) {
+ return@apply
+ }
+
+ known()
+ validated = true
+ }
+
+ fun isValid(): Boolean =
+ try {
+ validate()
+ true
+ } catch (e: IncreaseInvalidDataException) {
+ false
+ }
+
+ /**
+ * Returns a score indicating how many valid values are contained in this object
+ * recursively.
+ *
+ * Used for best match union deserialization.
+ */
+ @JvmSynthetic internal fun validity(): Int = if (value() == Value._UNKNOWN) 0 else 1
+
+ override fun equals(other: Any?): Boolean {
+ if (this === other) {
+ return true
+ }
+
+ return other is Category && value == other.value
+ }
+
+ override fun hashCode() = value.hashCode()
+
+ override fun toString() = value.toString()
+ }
+
+ override fun equals(other: Any?): Boolean {
+ if (this === other) {
+ return true
+ }
+
+ return other is LegalIdentifier &&
+ value == other.value &&
+ category == other.category &&
+ additionalProperties == other.additionalProperties
+ }
+
+ private val hashCode: Int by lazy {
+ Objects.hash(value, category, additionalProperties)
+ }
+
+ override fun hashCode(): Int = hashCode
+
+ override fun toString() =
+ "LegalIdentifier{value=$value, category=$category, additionalProperties=$additionalProperties}"
+ }
+
override fun equals(other: Any?): Boolean {
if (this === other) {
return true
@@ -1646,8 +2020,8 @@ private constructor(
email == other.email &&
incorporationState == other.incorporationState &&
industryCode == other.industryCode &&
+ legalIdentifier == other.legalIdentifier &&
name == other.name &&
- taxIdentifier == other.taxIdentifier &&
additionalProperties == other.additionalProperties
}
@@ -1657,8 +2031,8 @@ private constructor(
email,
incorporationState,
industryCode,
+ legalIdentifier,
name,
- taxIdentifier,
additionalProperties,
)
}
@@ -1666,7 +2040,7 @@ private constructor(
override fun hashCode(): Int = hashCode
override fun toString() =
- "Corporation{address=$address, email=$email, incorporationState=$incorporationState, industryCode=$industryCode, name=$name, taxIdentifier=$taxIdentifier, additionalProperties=$additionalProperties}"
+ "Corporation{address=$address, email=$email, incorporationState=$incorporationState, industryCode=$industryCode, legalIdentifier=$legalIdentifier, name=$name, 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 94d9a2763..3d9d3ec2f 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
@@ -27,8 +27,16 @@ internal class EntityUpdateParamsTest {
.email("dev@stainless.com")
.incorporationState("x")
.industryCode("x")
+ .legalIdentifier(
+ EntityUpdateParams.Corporation.LegalIdentifier.builder()
+ .value("x")
+ .category(
+ EntityUpdateParams.Corporation.LegalIdentifier.Category
+ .US_EMPLOYER_IDENTIFICATION_NUMBER
+ )
+ .build()
+ )
.name("x")
- .taxIdentifier("x")
.build()
)
.detailsConfirmedAt(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
@@ -119,8 +127,16 @@ internal class EntityUpdateParamsTest {
.email("dev@stainless.com")
.incorporationState("x")
.industryCode("x")
+ .legalIdentifier(
+ EntityUpdateParams.Corporation.LegalIdentifier.builder()
+ .value("x")
+ .category(
+ EntityUpdateParams.Corporation.LegalIdentifier.Category
+ .US_EMPLOYER_IDENTIFICATION_NUMBER
+ )
+ .build()
+ )
.name("x")
- .taxIdentifier("x")
.build()
)
.detailsConfirmedAt(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
@@ -199,8 +215,16 @@ internal class EntityUpdateParamsTest {
.email("dev@stainless.com")
.incorporationState("x")
.industryCode("x")
+ .legalIdentifier(
+ EntityUpdateParams.Corporation.LegalIdentifier.builder()
+ .value("x")
+ .category(
+ EntityUpdateParams.Corporation.LegalIdentifier.Category
+ .US_EMPLOYER_IDENTIFICATION_NUMBER
+ )
+ .build()
+ )
.name("x")
- .taxIdentifier("x")
.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 e0f7c704c..ab68235ff 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
@@ -513,8 +513,16 @@ internal class EntityServiceAsyncTest {
.email("dev@stainless.com")
.incorporationState("x")
.industryCode("x")
+ .legalIdentifier(
+ EntityUpdateParams.Corporation.LegalIdentifier.builder()
+ .value("x")
+ .category(
+ EntityUpdateParams.Corporation.LegalIdentifier.Category
+ .US_EMPLOYER_IDENTIFICATION_NUMBER
+ )
+ .build()
+ )
.name("x")
- .taxIdentifier("x")
.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 d0e86b465..5eadb5c4d 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
@@ -511,8 +511,16 @@ internal class EntityServiceTest {
.email("dev@stainless.com")
.incorporationState("x")
.industryCode("x")
+ .legalIdentifier(
+ EntityUpdateParams.Corporation.LegalIdentifier.builder()
+ .value("x")
+ .category(
+ EntityUpdateParams.Corporation.LegalIdentifier.Category
+ .US_EMPLOYER_IDENTIFICATION_NUMBER
+ )
+ .build()
+ )
.name("x")
- .taxIdentifier("x")
.build()
)
.detailsConfirmedAt(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
diff --git a/scripts/mock b/scripts/mock
index 5f1bb802b..f99ce052a 100755
--- a/scripts/mock
+++ b/scripts/mock
@@ -24,7 +24,7 @@ if [ "$1" == "--daemon" ]; then
# Pre-install the package so the download doesn't eat into the startup timeout
npm exec --package=@stdy/cli@0.19.7 -- steady --version
- npm exec --package=@stdy/cli@0.19.7 -- steady --host 127.0.0.1 -p 4010 --validator-form-array-format=comma --validator-query-array-format=comma --validator-form-object-format=dots --validator-query-object-format=dots "$URL" &> .stdy.log &
+ npm exec --package=@stdy/cli@0.19.7 -- steady --host 127.0.0.1 -p 4010 --validator-query-array-format=comma --validator-form-array-format=comma --validator-query-object-format=dots --validator-form-object-format=dots "$URL" &> .stdy.log &
# Wait for server to come online via health endpoint (max 30s)
echo -n "Waiting for server"
@@ -48,5 +48,5 @@ if [ "$1" == "--daemon" ]; then
echo
else
- npm exec --package=@stdy/cli@0.19.7 -- steady --host 127.0.0.1 -p 4010 --validator-form-array-format=comma --validator-query-array-format=comma --validator-form-object-format=dots --validator-query-object-format=dots "$URL"
+ npm exec --package=@stdy/cli@0.19.7 -- steady --host 127.0.0.1 -p 4010 --validator-query-array-format=comma --validator-form-array-format=comma --validator-query-object-format=dots --validator-form-object-format=dots "$URL"
fi
diff --git a/scripts/test b/scripts/test
index fa1d9b892..ab57d1556 100755
--- a/scripts/test
+++ b/scripts/test
@@ -43,7 +43,7 @@ elif ! steady_is_running ; then
echo -e "To run the server, pass in the path or url of your OpenAPI"
echo -e "spec to the steady command:"
echo
- echo -e " \$ ${YELLOW}npm exec --package=@stdy/cli@0.19.7 -- steady path/to/your.openapi.yml --host 127.0.0.1 -p 4010 --validator-form-array-format=comma --validator-query-array-format=comma --validator-form-object-format=dots --validator-query-object-format=dots${NC}"
+ echo -e " \$ ${YELLOW}npm exec --package=@stdy/cli@0.19.7 -- steady path/to/your.openapi.yml --host 127.0.0.1 -p 4010 --validator-query-array-format=comma --validator-form-array-format=comma --validator-query-object-format=dots --validator-form-object-format=dots${NC}"
echo
exit 1