From 3a6646a998f30469c0d7a49b2f25902ed2b35b03 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 25 Mar 2026 22:01:38 +0000 Subject: [PATCH 1/2] feat(api): api update --- .stats.yml | 4 +- .../increase/api/models/entities/Entity.kt | 645 +++++++++++---- .../api/models/entities/EntityCreateParams.kt | 740 +++++++++++------- .../api/models/entities/EntityUpdateParams.kt | 284 ++++--- .../models/entities/EntityCreateParamsTest.kt | 45 +- .../entities/EntityListPageResponseTest.kt | 21 + .../api/models/entities/EntityTest.kt | 21 + .../models/entities/EntityUpdateParamsTest.kt | 18 +- .../services/async/EntityServiceAsyncTest.kt | 21 +- .../services/blocking/EntityServiceTest.kt | 21 +- 10 files changed, 1236 insertions(+), 584 deletions(-) diff --git a/.stats.yml b/.stats.yml index 5d64e13d4..8ba24b693 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-e2a6ff4685a5e09babcce1fb8bac1f373d707d5b5aa82aae375d923de890e56e.yml -openapi_spec_hash: 244249a4dfb6c746c161a704764d7630 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-b51c9307c5fd4c662426ca9bbdbe00d0721edcb2eb899d4b9a3539aa01623873.yml +openapi_spec_hash: e5767b8639a1573ae70b25be22cc77a3 config_hash: 0997ade8b52ec04e82d5b0c3b61bb51e 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 c8dfc175f..81b85df6d 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 @@ -1488,6 +1488,7 @@ private constructor( @JsonCreator(mode = JsonCreator.Mode.DISABLED) private constructor( private val city: JsonField, + private val country: JsonField, private val line1: JsonField, private val line2: JsonField, private val state: JsonField, @@ -1498,20 +1499,31 @@ private constructor( @JsonCreator private constructor( @JsonProperty("city") @ExcludeMissing city: JsonField = JsonMissing.of(), + @JsonProperty("country") + @ExcludeMissing + country: JsonField = JsonMissing.of(), @JsonProperty("line1") @ExcludeMissing line1: JsonField = JsonMissing.of(), @JsonProperty("line2") @ExcludeMissing line2: JsonField = JsonMissing.of(), @JsonProperty("state") @ExcludeMissing state: JsonField = JsonMissing.of(), @JsonProperty("zip") @ExcludeMissing zip: JsonField = JsonMissing.of(), - ) : this(city, line1, line2, state, zip, mutableMapOf()) + ) : this(city, country, line1, line2, state, zip, mutableMapOf()) /** - * The city of the address. + * The city, district, town, or village of the address. + * + * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. + * if the server responded with an unexpected value). + */ + fun city(): Optional = city.getOptional("city") + + /** + * The two-letter ISO 3166-1 alpha-2 code for the country of the address. * * @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 city(): String = city.getRequired("city") + fun country(): String = country.getRequired("country") /** * The first line of the address. @@ -1531,23 +1543,21 @@ private constructor( fun line2(): Optional = line2.getOptional("line2") /** - * The two-letter United States Postal Service (USPS) abbreviation for the state of the - * address. + * The two-letter United States Postal Service (USPS) abbreviation for the US state, + * province, or region of the address. * - * @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 state(): String = state.getRequired("state") + fun state(): Optional = state.getOptional("state") /** - * The ZIP code of the address. + * The ZIP or postal code of the address. * - * @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 zip(): String = zip.getRequired("zip") + fun zip(): Optional = zip.getOptional("zip") /** * Returns the raw JSON value of [city]. @@ -1556,6 +1566,13 @@ private constructor( */ @JsonProperty("city") @ExcludeMissing fun _city(): JsonField = city + /** + * Returns the raw JSON value of [country]. + * + * Unlike [country], this method doesn't throw if the JSON field has an unexpected type. + */ + @JsonProperty("country") @ExcludeMissing fun _country(): JsonField = country + /** * Returns the raw JSON value of [line1]. * @@ -1604,6 +1621,7 @@ private constructor( * The following fields are required: * ```java * .city() + * .country() * .line1() * .line2() * .state() @@ -1617,6 +1635,7 @@ private constructor( class Builder internal constructor() { private var city: JsonField? = null + private var country: JsonField? = null private var line1: JsonField? = null private var line2: JsonField? = null private var state: JsonField? = null @@ -1626,6 +1645,7 @@ private constructor( @JvmSynthetic internal fun from(address: Address) = apply { city = address.city + country = address.country line1 = address.line1 line2 = address.line2 state = address.state @@ -1633,8 +1653,11 @@ private constructor( additionalProperties = address.additionalProperties.toMutableMap() } - /** The city of the address. */ - fun city(city: String) = city(JsonField.of(city)) + /** The city, district, town, or village of the address. */ + fun city(city: String?) = city(JsonField.ofNullable(city)) + + /** Alias for calling [Builder.city] with `city.orElse(null)`. */ + fun city(city: Optional) = city(city.getOrNull()) /** * Sets [Builder.city] to an arbitrary JSON value. @@ -1645,6 +1668,18 @@ private constructor( */ fun city(city: JsonField) = apply { this.city = city } + /** The two-letter ISO 3166-1 alpha-2 code for the country of the address. */ + fun country(country: String) = country(JsonField.of(country)) + + /** + * Sets [Builder.country] to an arbitrary JSON value. + * + * You should usually call [Builder.country] with a well-typed [String] value + * instead. This method is primarily for setting the field to an undocumented or not + * yet supported value. + */ + fun country(country: JsonField) = apply { this.country = country } + /** The first line of the address. */ fun line1(line1: String) = line1(JsonField.of(line1)) @@ -1673,10 +1708,13 @@ private constructor( fun line2(line2: JsonField) = apply { this.line2 = line2 } /** - * The two-letter United States Postal Service (USPS) abbreviation for the state of - * the address. + * The two-letter United States Postal Service (USPS) abbreviation for the US state, + * province, or region of the address. */ - fun state(state: String) = state(JsonField.of(state)) + fun state(state: String?) = state(JsonField.ofNullable(state)) + + /** Alias for calling [Builder.state] with `state.orElse(null)`. */ + fun state(state: Optional) = state(state.getOrNull()) /** * Sets [Builder.state] to an arbitrary JSON value. @@ -1687,8 +1725,11 @@ private constructor( */ fun state(state: JsonField) = apply { this.state = state } - /** The ZIP code of the address. */ - fun zip(zip: String) = zip(JsonField.of(zip)) + /** The ZIP or postal code of the address. */ + fun zip(zip: String?) = zip(JsonField.ofNullable(zip)) + + /** Alias for calling [Builder.zip] with `zip.orElse(null)`. */ + fun zip(zip: Optional) = zip(zip.getOrNull()) /** * Sets [Builder.zip] to an arbitrary JSON value. @@ -1729,6 +1770,7 @@ private constructor( * The following fields are required: * ```java * .city() + * .country() * .line1() * .line2() * .state() @@ -1740,6 +1782,7 @@ private constructor( fun build(): Address = Address( checkRequired("city", city), + checkRequired("country", country), checkRequired("line1", line1), checkRequired("line2", line2), checkRequired("state", state), @@ -1756,6 +1799,7 @@ private constructor( } city() + country() line1() line2() state() @@ -1780,6 +1824,7 @@ private constructor( @JvmSynthetic internal fun validity(): Int = (if (city.asKnown().isPresent) 1 else 0) + + (if (country.asKnown().isPresent) 1 else 0) + (if (line1.asKnown().isPresent) 1 else 0) + (if (line2.asKnown().isPresent) 1 else 0) + (if (state.asKnown().isPresent) 1 else 0) + @@ -1792,6 +1837,7 @@ private constructor( return other is Address && city == other.city && + country == other.country && line1 == other.line1 && line2 == other.line2 && state == other.state && @@ -1800,13 +1846,13 @@ private constructor( } private val hashCode: Int by lazy { - Objects.hash(city, line1, line2, state, zip, additionalProperties) + Objects.hash(city, country, line1, line2, state, zip, additionalProperties) } override fun hashCode(): Int = hashCode override fun toString() = - "Address{city=$city, line1=$line1, line2=$line2, state=$state, zip=$zip, additionalProperties=$additionalProperties}" + "Address{city=$city, country=$country, line1=$line1, line2=$line2, state=$state, zip=$zip, additionalProperties=$additionalProperties}" } class BeneficialOwner @@ -4132,6 +4178,7 @@ private constructor( @JsonCreator(mode = JsonCreator.Mode.DISABLED) private constructor( private val city: JsonField, + private val country: JsonField, private val line1: JsonField, private val line2: JsonField, private val state: JsonField, @@ -4142,20 +4189,31 @@ private constructor( @JsonCreator private constructor( @JsonProperty("city") @ExcludeMissing city: JsonField = JsonMissing.of(), + @JsonProperty("country") + @ExcludeMissing + country: JsonField = JsonMissing.of(), @JsonProperty("line1") @ExcludeMissing line1: JsonField = JsonMissing.of(), @JsonProperty("line2") @ExcludeMissing line2: JsonField = JsonMissing.of(), @JsonProperty("state") @ExcludeMissing state: JsonField = JsonMissing.of(), @JsonProperty("zip") @ExcludeMissing zip: JsonField = JsonMissing.of(), - ) : this(city, line1, line2, state, zip, mutableMapOf()) + ) : this(city, country, line1, line2, state, zip, mutableMapOf()) + + /** + * The city, district, town, or village of the address. + * + * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. + * if the server responded with an unexpected value). + */ + fun city(): Optional = city.getOptional("city") /** - * The city of the address. + * The two-letter ISO 3166-1 alpha-2 code for the country of the address. * * @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 city(): String = city.getRequired("city") + fun country(): String = country.getRequired("country") /** * The first line of the address. @@ -4175,23 +4233,21 @@ private constructor( fun line2(): Optional = line2.getOptional("line2") /** - * The two-letter United States Postal Service (USPS) abbreviation for the state of the - * address. + * The two-letter United States Postal Service (USPS) abbreviation for the US state, + * province, or region of the address. * - * @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 state(): String = state.getRequired("state") + fun state(): Optional = state.getOptional("state") /** - * The ZIP code of the address. + * The ZIP or postal code of the address. * - * @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 zip(): String = zip.getRequired("zip") + fun zip(): Optional = zip.getOptional("zip") /** * Returns the raw JSON value of [city]. @@ -4200,6 +4256,13 @@ private constructor( */ @JsonProperty("city") @ExcludeMissing fun _city(): JsonField = city + /** + * Returns the raw JSON value of [country]. + * + * Unlike [country], this method doesn't throw if the JSON field has an unexpected type. + */ + @JsonProperty("country") @ExcludeMissing fun _country(): JsonField = country + /** * Returns the raw JSON value of [line1]. * @@ -4248,6 +4311,7 @@ private constructor( * The following fields are required: * ```java * .city() + * .country() * .line1() * .line2() * .state() @@ -4261,6 +4325,7 @@ private constructor( class Builder internal constructor() { private var city: JsonField? = null + private var country: JsonField? = null private var line1: JsonField? = null private var line2: JsonField? = null private var state: JsonField? = null @@ -4270,6 +4335,7 @@ private constructor( @JvmSynthetic internal fun from(address: Address) = apply { city = address.city + country = address.country line1 = address.line1 line2 = address.line2 state = address.state @@ -4277,8 +4343,11 @@ private constructor( additionalProperties = address.additionalProperties.toMutableMap() } - /** The city of the address. */ - fun city(city: String) = city(JsonField.of(city)) + /** The city, district, town, or village of the address. */ + fun city(city: String?) = city(JsonField.ofNullable(city)) + + /** Alias for calling [Builder.city] with `city.orElse(null)`. */ + fun city(city: Optional) = city(city.getOrNull()) /** * Sets [Builder.city] to an arbitrary JSON value. @@ -4289,6 +4358,18 @@ private constructor( */ fun city(city: JsonField) = apply { this.city = city } + /** The two-letter ISO 3166-1 alpha-2 code for the country of the address. */ + fun country(country: String) = country(JsonField.of(country)) + + /** + * Sets [Builder.country] to an arbitrary JSON value. + * + * You should usually call [Builder.country] with a well-typed [String] value + * instead. This method is primarily for setting the field to an undocumented or not + * yet supported value. + */ + fun country(country: JsonField) = apply { this.country = country } + /** The first line of the address. */ fun line1(line1: String) = line1(JsonField.of(line1)) @@ -4317,10 +4398,13 @@ private constructor( fun line2(line2: JsonField) = apply { this.line2 = line2 } /** - * The two-letter United States Postal Service (USPS) abbreviation for the state of - * the address. + * The two-letter United States Postal Service (USPS) abbreviation for the US state, + * province, or region of the address. */ - fun state(state: String) = state(JsonField.of(state)) + fun state(state: String?) = state(JsonField.ofNullable(state)) + + /** Alias for calling [Builder.state] with `state.orElse(null)`. */ + fun state(state: Optional) = state(state.getOrNull()) /** * Sets [Builder.state] to an arbitrary JSON value. @@ -4331,8 +4415,11 @@ private constructor( */ fun state(state: JsonField) = apply { this.state = state } - /** The ZIP code of the address. */ - fun zip(zip: String) = zip(JsonField.of(zip)) + /** The ZIP or postal code of the address. */ + fun zip(zip: String?) = zip(JsonField.ofNullable(zip)) + + /** Alias for calling [Builder.zip] with `zip.orElse(null)`. */ + fun zip(zip: Optional) = zip(zip.getOrNull()) /** * Sets [Builder.zip] to an arbitrary JSON value. @@ -4373,6 +4460,7 @@ private constructor( * The following fields are required: * ```java * .city() + * .country() * .line1() * .line2() * .state() @@ -4384,6 +4472,7 @@ private constructor( fun build(): Address = Address( checkRequired("city", city), + checkRequired("country", country), checkRequired("line1", line1), checkRequired("line2", line2), checkRequired("state", state), @@ -4400,6 +4489,7 @@ private constructor( } city() + country() line1() line2() state() @@ -4424,6 +4514,7 @@ private constructor( @JvmSynthetic internal fun validity(): Int = (if (city.asKnown().isPresent) 1 else 0) + + (if (country.asKnown().isPresent) 1 else 0) + (if (line1.asKnown().isPresent) 1 else 0) + (if (line2.asKnown().isPresent) 1 else 0) + (if (state.asKnown().isPresent) 1 else 0) + @@ -4436,6 +4527,7 @@ private constructor( return other is Address && city == other.city && + country == other.country && line1 == other.line1 && line2 == other.line2 && state == other.state && @@ -4444,13 +4536,13 @@ private constructor( } private val hashCode: Int by lazy { - Objects.hash(city, line1, line2, state, zip, additionalProperties) + Objects.hash(city, country, line1, line2, state, zip, additionalProperties) } override fun hashCode(): Int = hashCode override fun toString() = - "Address{city=$city, line1=$line1, line2=$line2, state=$state, zip=$zip, additionalProperties=$additionalProperties}" + "Address{city=$city, country=$country, line1=$line1, line2=$line2, state=$state, zip=$zip, additionalProperties=$additionalProperties}" } class AuthorizedPerson @@ -5333,6 +5425,7 @@ private constructor( @JsonCreator(mode = JsonCreator.Mode.DISABLED) private constructor( private val city: JsonField, + private val country: JsonField, private val line1: JsonField, private val line2: JsonField, private val state: JsonField, @@ -5345,6 +5438,9 @@ private constructor( @JsonProperty("city") @ExcludeMissing city: JsonField = JsonMissing.of(), + @JsonProperty("country") + @ExcludeMissing + country: JsonField = JsonMissing.of(), @JsonProperty("line1") @ExcludeMissing line1: JsonField = JsonMissing.of(), @@ -5355,16 +5451,24 @@ private constructor( @ExcludeMissing state: JsonField = JsonMissing.of(), @JsonProperty("zip") @ExcludeMissing zip: JsonField = JsonMissing.of(), - ) : this(city, line1, line2, state, zip, mutableMapOf()) + ) : this(city, country, line1, line2, state, zip, mutableMapOf()) /** - * The city of the address. + * The city, district, town, or village of the address. + * + * @throws IncreaseInvalidDataException if the JSON field has an unexpected type + * (e.g. if the server responded with an unexpected value). + */ + fun city(): Optional = city.getOptional("city") + + /** + * The two-letter ISO 3166-1 alpha-2 code for the country of the address. * * @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 city(): String = city.getRequired("city") + fun country(): String = country.getRequired("country") /** * The first line of the address. @@ -5384,23 +5488,21 @@ private constructor( fun line2(): Optional = line2.getOptional("line2") /** - * The two-letter United States Postal Service (USPS) abbreviation for the state of - * the address. + * The two-letter United States Postal Service (USPS) abbreviation for the US state, + * province, or region of the address. * - * @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 state(): String = state.getRequired("state") + fun state(): Optional = state.getOptional("state") /** - * The ZIP code of the address. + * The ZIP or postal code of the address. * - * @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 zip(): String = zip.getRequired("zip") + fun zip(): Optional = zip.getOptional("zip") /** * Returns the raw JSON value of [city]. @@ -5410,6 +5512,14 @@ private constructor( */ @JsonProperty("city") @ExcludeMissing fun _city(): JsonField = city + /** + * Returns the raw JSON value of [country]. + * + * Unlike [country], this method doesn't throw if the JSON field has an unexpected + * type. + */ + @JsonProperty("country") @ExcludeMissing fun _country(): JsonField = country + /** * Returns the raw JSON value of [line1]. * @@ -5461,6 +5571,7 @@ private constructor( * The following fields are required: * ```java * .city() + * .country() * .line1() * .line2() * .state() @@ -5474,6 +5585,7 @@ private constructor( class Builder internal constructor() { private var city: JsonField? = null + private var country: JsonField? = null private var line1: JsonField? = null private var line2: JsonField? = null private var state: JsonField? = null @@ -5483,6 +5595,7 @@ private constructor( @JvmSynthetic internal fun from(address: Address) = apply { city = address.city + country = address.country line1 = address.line1 line2 = address.line2 state = address.state @@ -5490,8 +5603,11 @@ private constructor( additionalProperties = address.additionalProperties.toMutableMap() } - /** The city of the address. */ - fun city(city: String) = city(JsonField.of(city)) + /** The city, district, town, or village of the address. */ + fun city(city: String?) = city(JsonField.ofNullable(city)) + + /** Alias for calling [Builder.city] with `city.orElse(null)`. */ + fun city(city: Optional) = city(city.getOrNull()) /** * Sets [Builder.city] to an arbitrary JSON value. @@ -5502,6 +5618,18 @@ private constructor( */ fun city(city: JsonField) = apply { this.city = city } + /** The two-letter ISO 3166-1 alpha-2 code for the country of the address. */ + fun country(country: String) = country(JsonField.of(country)) + + /** + * Sets [Builder.country] to an arbitrary JSON value. + * + * You should usually call [Builder.country] with a well-typed [String] value + * instead. This method is primarily for setting the field to an undocumented or + * not yet supported value. + */ + fun country(country: JsonField) = apply { this.country = country } + /** The first line of the address. */ fun line1(line1: String) = line1(JsonField.of(line1)) @@ -5530,10 +5658,13 @@ private constructor( fun line2(line2: JsonField) = apply { this.line2 = line2 } /** - * The two-letter United States Postal Service (USPS) abbreviation for the state - * of the address. + * The two-letter United States Postal Service (USPS) abbreviation for the US + * state, province, or region of the address. */ - fun state(state: String) = state(JsonField.of(state)) + fun state(state: String?) = state(JsonField.ofNullable(state)) + + /** Alias for calling [Builder.state] with `state.orElse(null)`. */ + fun state(state: Optional) = state(state.getOrNull()) /** * Sets [Builder.state] to an arbitrary JSON value. @@ -5544,8 +5675,11 @@ private constructor( */ fun state(state: JsonField) = apply { this.state = state } - /** The ZIP code of the address. */ - fun zip(zip: String) = zip(JsonField.of(zip)) + /** The ZIP or postal code of the address. */ + fun zip(zip: String?) = zip(JsonField.ofNullable(zip)) + + /** Alias for calling [Builder.zip] with `zip.orElse(null)`. */ + fun zip(zip: Optional) = zip(zip.getOrNull()) /** * Sets [Builder.zip] to an arbitrary JSON value. @@ -5586,6 +5720,7 @@ private constructor( * The following fields are required: * ```java * .city() + * .country() * .line1() * .line2() * .state() @@ -5597,6 +5732,7 @@ private constructor( fun build(): Address = Address( checkRequired("city", city), + checkRequired("country", country), checkRequired("line1", line1), checkRequired("line2", line2), checkRequired("state", state), @@ -5613,6 +5749,7 @@ private constructor( } city() + country() line1() line2() state() @@ -5637,6 +5774,7 @@ private constructor( @JvmSynthetic internal fun validity(): Int = (if (city.asKnown().isPresent) 1 else 0) + + (if (country.asKnown().isPresent) 1 else 0) + (if (line1.asKnown().isPresent) 1 else 0) + (if (line2.asKnown().isPresent) 1 else 0) + (if (state.asKnown().isPresent) 1 else 0) + @@ -5649,6 +5787,7 @@ private constructor( return other is Address && city == other.city && + country == other.country && line1 == other.line1 && line2 == other.line2 && state == other.state && @@ -5657,13 +5796,13 @@ private constructor( } private val hashCode: Int by lazy { - Objects.hash(city, line1, line2, state, zip, additionalProperties) + Objects.hash(city, country, line1, line2, state, zip, additionalProperties) } override fun hashCode(): Int = hashCode override fun toString() = - "Address{city=$city, line1=$line1, line2=$line2, state=$state, zip=$zip, additionalProperties=$additionalProperties}" + "Address{city=$city, country=$country, line1=$line1, line2=$line2, state=$state, zip=$zip, additionalProperties=$additionalProperties}" } /** A means of verifying the person's identity. */ @@ -6374,6 +6513,7 @@ private constructor( @JsonCreator(mode = JsonCreator.Mode.DISABLED) private constructor( private val city: JsonField, + private val country: JsonField, private val line1: JsonField, private val line2: JsonField, private val state: JsonField, @@ -6384,20 +6524,31 @@ private constructor( @JsonCreator private constructor( @JsonProperty("city") @ExcludeMissing city: JsonField = JsonMissing.of(), + @JsonProperty("country") + @ExcludeMissing + country: JsonField = JsonMissing.of(), @JsonProperty("line1") @ExcludeMissing line1: JsonField = JsonMissing.of(), @JsonProperty("line2") @ExcludeMissing line2: JsonField = JsonMissing.of(), @JsonProperty("state") @ExcludeMissing state: JsonField = JsonMissing.of(), @JsonProperty("zip") @ExcludeMissing zip: JsonField = JsonMissing.of(), - ) : this(city, line1, line2, state, zip, mutableMapOf()) + ) : this(city, country, line1, line2, state, zip, mutableMapOf()) /** - * The city of the address. + * The city, district, town, or village of the address. + * + * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. + * if the server responded with an unexpected value). + */ + fun city(): Optional = city.getOptional("city") + + /** + * The two-letter ISO 3166-1 alpha-2 code for the country of the address. * * @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 city(): String = city.getRequired("city") + fun country(): String = country.getRequired("country") /** * The first line of the address. @@ -6417,23 +6568,21 @@ private constructor( fun line2(): Optional = line2.getOptional("line2") /** - * The two-letter United States Postal Service (USPS) abbreviation for the state of the - * address. + * The two-letter United States Postal Service (USPS) abbreviation for the US state, + * province, or region of the address. * - * @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 state(): String = state.getRequired("state") + fun state(): Optional = state.getOptional("state") /** - * The ZIP code of the address. + * The ZIP or postal code of the address. * - * @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 zip(): String = zip.getRequired("zip") + fun zip(): Optional = zip.getOptional("zip") /** * Returns the raw JSON value of [city]. @@ -6442,6 +6591,13 @@ private constructor( */ @JsonProperty("city") @ExcludeMissing fun _city(): JsonField = city + /** + * Returns the raw JSON value of [country]. + * + * Unlike [country], this method doesn't throw if the JSON field has an unexpected type. + */ + @JsonProperty("country") @ExcludeMissing fun _country(): JsonField = country + /** * Returns the raw JSON value of [line1]. * @@ -6490,6 +6646,7 @@ private constructor( * The following fields are required: * ```java * .city() + * .country() * .line1() * .line2() * .state() @@ -6503,6 +6660,7 @@ private constructor( class Builder internal constructor() { private var city: JsonField? = null + private var country: JsonField? = null private var line1: JsonField? = null private var line2: JsonField? = null private var state: JsonField? = null @@ -6512,6 +6670,7 @@ private constructor( @JvmSynthetic internal fun from(address: Address) = apply { city = address.city + country = address.country line1 = address.line1 line2 = address.line2 state = address.state @@ -6519,8 +6678,11 @@ private constructor( additionalProperties = address.additionalProperties.toMutableMap() } - /** The city of the address. */ - fun city(city: String) = city(JsonField.of(city)) + /** The city, district, town, or village of the address. */ + fun city(city: String?) = city(JsonField.ofNullable(city)) + + /** Alias for calling [Builder.city] with `city.orElse(null)`. */ + fun city(city: Optional) = city(city.getOrNull()) /** * Sets [Builder.city] to an arbitrary JSON value. @@ -6531,6 +6693,18 @@ private constructor( */ fun city(city: JsonField) = apply { this.city = city } + /** The two-letter ISO 3166-1 alpha-2 code for the country of the address. */ + fun country(country: String) = country(JsonField.of(country)) + + /** + * Sets [Builder.country] to an arbitrary JSON value. + * + * You should usually call [Builder.country] with a well-typed [String] value + * instead. This method is primarily for setting the field to an undocumented or not + * yet supported value. + */ + fun country(country: JsonField) = apply { this.country = country } + /** The first line of the address. */ fun line1(line1: String) = line1(JsonField.of(line1)) @@ -6559,10 +6733,13 @@ private constructor( fun line2(line2: JsonField) = apply { this.line2 = line2 } /** - * The two-letter United States Postal Service (USPS) abbreviation for the state of - * the address. + * The two-letter United States Postal Service (USPS) abbreviation for the US state, + * province, or region of the address. */ - fun state(state: String) = state(JsonField.of(state)) + fun state(state: String?) = state(JsonField.ofNullable(state)) + + /** Alias for calling [Builder.state] with `state.orElse(null)`. */ + fun state(state: Optional) = state(state.getOrNull()) /** * Sets [Builder.state] to an arbitrary JSON value. @@ -6573,8 +6750,11 @@ private constructor( */ fun state(state: JsonField) = apply { this.state = state } - /** The ZIP code of the address. */ - fun zip(zip: String) = zip(JsonField.of(zip)) + /** The ZIP or postal code of the address. */ + fun zip(zip: String?) = zip(JsonField.ofNullable(zip)) + + /** Alias for calling [Builder.zip] with `zip.orElse(null)`. */ + fun zip(zip: Optional) = zip(zip.getOrNull()) /** * Sets [Builder.zip] to an arbitrary JSON value. @@ -6615,6 +6795,7 @@ private constructor( * The following fields are required: * ```java * .city() + * .country() * .line1() * .line2() * .state() @@ -6626,6 +6807,7 @@ private constructor( fun build(): Address = Address( checkRequired("city", city), + checkRequired("country", country), checkRequired("line1", line1), checkRequired("line2", line2), checkRequired("state", state), @@ -6642,6 +6824,7 @@ private constructor( } city() + country() line1() line2() state() @@ -6666,6 +6849,7 @@ private constructor( @JvmSynthetic internal fun validity(): Int = (if (city.asKnown().isPresent) 1 else 0) + + (if (country.asKnown().isPresent) 1 else 0) + (if (line1.asKnown().isPresent) 1 else 0) + (if (line2.asKnown().isPresent) 1 else 0) + (if (state.asKnown().isPresent) 1 else 0) + @@ -6678,6 +6862,7 @@ private constructor( return other is Address && city == other.city && + country == other.country && line1 == other.line1 && line2 == other.line2 && state == other.state && @@ -6686,13 +6871,13 @@ private constructor( } private val hashCode: Int by lazy { - Objects.hash(city, line1, line2, state, zip, additionalProperties) + Objects.hash(city, country, line1, line2, state, zip, additionalProperties) } override fun hashCode(): Int = hashCode override fun toString() = - "Address{city=$city, line1=$line1, line2=$line2, state=$state, zip=$zip, additionalProperties=$additionalProperties}" + "Address{city=$city, country=$country, line1=$line1, line2=$line2, state=$state, zip=$zip, additionalProperties=$additionalProperties}" } /** A means of verifying the person's identity. */ @@ -8857,6 +9042,7 @@ private constructor( @JsonCreator(mode = JsonCreator.Mode.DISABLED) private constructor( private val city: JsonField, + private val country: JsonField, private val line1: JsonField, private val line2: JsonField, private val state: JsonField, @@ -8867,20 +9053,31 @@ private constructor( @JsonCreator private constructor( @JsonProperty("city") @ExcludeMissing city: JsonField = JsonMissing.of(), + @JsonProperty("country") + @ExcludeMissing + country: JsonField = JsonMissing.of(), @JsonProperty("line1") @ExcludeMissing line1: JsonField = JsonMissing.of(), @JsonProperty("line2") @ExcludeMissing line2: JsonField = JsonMissing.of(), @JsonProperty("state") @ExcludeMissing state: JsonField = JsonMissing.of(), @JsonProperty("zip") @ExcludeMissing zip: JsonField = JsonMissing.of(), - ) : this(city, line1, line2, state, zip, mutableMapOf()) + ) : this(city, country, line1, line2, state, zip, mutableMapOf()) + + /** + * The city, district, town, or village of the address. + * + * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. + * if the server responded with an unexpected value). + */ + fun city(): Optional = city.getOptional("city") /** - * The city of the address. + * The two-letter ISO 3166-1 alpha-2 code for the country of the address. * * @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 city(): String = city.getRequired("city") + fun country(): String = country.getRequired("country") /** * The first line of the address. @@ -8900,23 +9097,21 @@ private constructor( fun line2(): Optional = line2.getOptional("line2") /** - * The two-letter United States Postal Service (USPS) abbreviation for the state of the - * address. + * The two-letter United States Postal Service (USPS) abbreviation for the US state, + * province, or region of the address. * - * @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 state(): String = state.getRequired("state") + fun state(): Optional = state.getOptional("state") /** - * The ZIP code of the address. + * The ZIP or postal code of the address. * - * @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 zip(): String = zip.getRequired("zip") + fun zip(): Optional = zip.getOptional("zip") /** * Returns the raw JSON value of [city]. @@ -8925,6 +9120,13 @@ private constructor( */ @JsonProperty("city") @ExcludeMissing fun _city(): JsonField = city + /** + * Returns the raw JSON value of [country]. + * + * Unlike [country], this method doesn't throw if the JSON field has an unexpected type. + */ + @JsonProperty("country") @ExcludeMissing fun _country(): JsonField = country + /** * Returns the raw JSON value of [line1]. * @@ -8973,6 +9175,7 @@ private constructor( * The following fields are required: * ```java * .city() + * .country() * .line1() * .line2() * .state() @@ -8986,6 +9189,7 @@ private constructor( class Builder internal constructor() { private var city: JsonField? = null + private var country: JsonField? = null private var line1: JsonField? = null private var line2: JsonField? = null private var state: JsonField? = null @@ -8995,6 +9199,7 @@ private constructor( @JvmSynthetic internal fun from(address: Address) = apply { city = address.city + country = address.country line1 = address.line1 line2 = address.line2 state = address.state @@ -9002,8 +9207,11 @@ private constructor( additionalProperties = address.additionalProperties.toMutableMap() } - /** The city of the address. */ - fun city(city: String) = city(JsonField.of(city)) + /** The city, district, town, or village of the address. */ + fun city(city: String?) = city(JsonField.ofNullable(city)) + + /** Alias for calling [Builder.city] with `city.orElse(null)`. */ + fun city(city: Optional) = city(city.getOrNull()) /** * Sets [Builder.city] to an arbitrary JSON value. @@ -9014,6 +9222,18 @@ private constructor( */ fun city(city: JsonField) = apply { this.city = city } + /** The two-letter ISO 3166-1 alpha-2 code for the country of the address. */ + fun country(country: String) = country(JsonField.of(country)) + + /** + * Sets [Builder.country] to an arbitrary JSON value. + * + * You should usually call [Builder.country] with a well-typed [String] value + * instead. This method is primarily for setting the field to an undocumented or not + * yet supported value. + */ + fun country(country: JsonField) = apply { this.country = country } + /** The first line of the address. */ fun line1(line1: String) = line1(JsonField.of(line1)) @@ -9042,10 +9262,13 @@ private constructor( fun line2(line2: JsonField) = apply { this.line2 = line2 } /** - * The two-letter United States Postal Service (USPS) abbreviation for the state of - * the address. + * The two-letter United States Postal Service (USPS) abbreviation for the US state, + * province, or region of the address. */ - fun state(state: String) = state(JsonField.of(state)) + fun state(state: String?) = state(JsonField.ofNullable(state)) + + /** Alias for calling [Builder.state] with `state.orElse(null)`. */ + fun state(state: Optional) = state(state.getOrNull()) /** * Sets [Builder.state] to an arbitrary JSON value. @@ -9056,8 +9279,11 @@ private constructor( */ fun state(state: JsonField) = apply { this.state = state } - /** The ZIP code of the address. */ - fun zip(zip: String) = zip(JsonField.of(zip)) + /** The ZIP or postal code of the address. */ + fun zip(zip: String?) = zip(JsonField.ofNullable(zip)) + + /** Alias for calling [Builder.zip] with `zip.orElse(null)`. */ + fun zip(zip: Optional) = zip(zip.getOrNull()) /** * Sets [Builder.zip] to an arbitrary JSON value. @@ -9098,6 +9324,7 @@ private constructor( * The following fields are required: * ```java * .city() + * .country() * .line1() * .line2() * .state() @@ -9109,6 +9336,7 @@ private constructor( fun build(): Address = Address( checkRequired("city", city), + checkRequired("country", country), checkRequired("line1", line1), checkRequired("line2", line2), checkRequired("state", state), @@ -9125,6 +9353,7 @@ private constructor( } city() + country() line1() line2() state() @@ -9149,6 +9378,7 @@ private constructor( @JvmSynthetic internal fun validity(): Int = (if (city.asKnown().isPresent) 1 else 0) + + (if (country.asKnown().isPresent) 1 else 0) + (if (line1.asKnown().isPresent) 1 else 0) + (if (line2.asKnown().isPresent) 1 else 0) + (if (state.asKnown().isPresent) 1 else 0) + @@ -9161,6 +9391,7 @@ private constructor( return other is Address && city == other.city && + country == other.country && line1 == other.line1 && line2 == other.line2 && state == other.state && @@ -9169,13 +9400,13 @@ private constructor( } private val hashCode: Int by lazy { - Objects.hash(city, line1, line2, state, zip, additionalProperties) + Objects.hash(city, country, line1, line2, state, zip, additionalProperties) } override fun hashCode(): Int = hashCode override fun toString() = - "Address{city=$city, line1=$line1, line2=$line2, state=$state, zip=$zip, additionalProperties=$additionalProperties}" + "Address{city=$city, country=$country, line1=$line1, line2=$line2, state=$state, zip=$zip, additionalProperties=$additionalProperties}" } /** Whether the trust is `revocable` or `irrevocable`. */ @@ -9596,6 +9827,7 @@ private constructor( @JsonCreator(mode = JsonCreator.Mode.DISABLED) private constructor( private val city: JsonField, + private val country: JsonField, private val line1: JsonField, private val line2: JsonField, private val state: JsonField, @@ -9608,6 +9840,9 @@ private constructor( @JsonProperty("city") @ExcludeMissing city: JsonField = JsonMissing.of(), + @JsonProperty("country") + @ExcludeMissing + country: JsonField = JsonMissing.of(), @JsonProperty("line1") @ExcludeMissing line1: JsonField = JsonMissing.of(), @@ -9618,16 +9853,24 @@ private constructor( @ExcludeMissing state: JsonField = JsonMissing.of(), @JsonProperty("zip") @ExcludeMissing zip: JsonField = JsonMissing.of(), - ) : this(city, line1, line2, state, zip, mutableMapOf()) + ) : this(city, country, line1, line2, state, zip, mutableMapOf()) /** - * The city of the address. + * The city, district, town, or village of the address. + * + * @throws IncreaseInvalidDataException if the JSON field has an unexpected type + * (e.g. if the server responded with an unexpected value). + */ + fun city(): Optional = city.getOptional("city") + + /** + * The two-letter ISO 3166-1 alpha-2 code for the country of the address. * * @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 city(): String = city.getRequired("city") + fun country(): String = country.getRequired("country") /** * The first line of the address. @@ -9647,23 +9890,21 @@ private constructor( fun line2(): Optional = line2.getOptional("line2") /** - * The two-letter United States Postal Service (USPS) abbreviation for the state of - * the address. + * The two-letter United States Postal Service (USPS) abbreviation for the US state, + * province, or region of the address. * - * @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 state(): String = state.getRequired("state") + fun state(): Optional = state.getOptional("state") /** - * The ZIP code of the address. + * The ZIP or postal code of the address. * - * @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 zip(): String = zip.getRequired("zip") + fun zip(): Optional = zip.getOptional("zip") /** * Returns the raw JSON value of [city]. @@ -9673,6 +9914,14 @@ private constructor( */ @JsonProperty("city") @ExcludeMissing fun _city(): JsonField = city + /** + * Returns the raw JSON value of [country]. + * + * Unlike [country], this method doesn't throw if the JSON field has an unexpected + * type. + */ + @JsonProperty("country") @ExcludeMissing fun _country(): JsonField = country + /** * Returns the raw JSON value of [line1]. * @@ -9724,6 +9973,7 @@ private constructor( * The following fields are required: * ```java * .city() + * .country() * .line1() * .line2() * .state() @@ -9737,6 +9987,7 @@ private constructor( class Builder internal constructor() { private var city: JsonField? = null + private var country: JsonField? = null private var line1: JsonField? = null private var line2: JsonField? = null private var state: JsonField? = null @@ -9746,6 +9997,7 @@ private constructor( @JvmSynthetic internal fun from(address: Address) = apply { city = address.city + country = address.country line1 = address.line1 line2 = address.line2 state = address.state @@ -9753,8 +10005,11 @@ private constructor( additionalProperties = address.additionalProperties.toMutableMap() } - /** The city of the address. */ - fun city(city: String) = city(JsonField.of(city)) + /** The city, district, town, or village of the address. */ + fun city(city: String?) = city(JsonField.ofNullable(city)) + + /** Alias for calling [Builder.city] with `city.orElse(null)`. */ + fun city(city: Optional) = city(city.getOrNull()) /** * Sets [Builder.city] to an arbitrary JSON value. @@ -9765,6 +10020,18 @@ private constructor( */ fun city(city: JsonField) = apply { this.city = city } + /** The two-letter ISO 3166-1 alpha-2 code for the country of the address. */ + fun country(country: String) = country(JsonField.of(country)) + + /** + * Sets [Builder.country] to an arbitrary JSON value. + * + * You should usually call [Builder.country] with a well-typed [String] value + * instead. This method is primarily for setting the field to an undocumented or + * not yet supported value. + */ + fun country(country: JsonField) = apply { this.country = country } + /** The first line of the address. */ fun line1(line1: String) = line1(JsonField.of(line1)) @@ -9793,10 +10060,13 @@ private constructor( fun line2(line2: JsonField) = apply { this.line2 = line2 } /** - * The two-letter United States Postal Service (USPS) abbreviation for the state - * of the address. + * The two-letter United States Postal Service (USPS) abbreviation for the US + * state, province, or region of the address. */ - fun state(state: String) = state(JsonField.of(state)) + fun state(state: String?) = state(JsonField.ofNullable(state)) + + /** Alias for calling [Builder.state] with `state.orElse(null)`. */ + fun state(state: Optional) = state(state.getOrNull()) /** * Sets [Builder.state] to an arbitrary JSON value. @@ -9807,8 +10077,11 @@ private constructor( */ fun state(state: JsonField) = apply { this.state = state } - /** The ZIP code of the address. */ - fun zip(zip: String) = zip(JsonField.of(zip)) + /** The ZIP or postal code of the address. */ + fun zip(zip: String?) = zip(JsonField.ofNullable(zip)) + + /** Alias for calling [Builder.zip] with `zip.orElse(null)`. */ + fun zip(zip: Optional) = zip(zip.getOrNull()) /** * Sets [Builder.zip] to an arbitrary JSON value. @@ -9849,6 +10122,7 @@ private constructor( * The following fields are required: * ```java * .city() + * .country() * .line1() * .line2() * .state() @@ -9860,6 +10134,7 @@ private constructor( fun build(): Address = Address( checkRequired("city", city), + checkRequired("country", country), checkRequired("line1", line1), checkRequired("line2", line2), checkRequired("state", state), @@ -9876,6 +10151,7 @@ private constructor( } city() + country() line1() line2() state() @@ -9900,6 +10176,7 @@ private constructor( @JvmSynthetic internal fun validity(): Int = (if (city.asKnown().isPresent) 1 else 0) + + (if (country.asKnown().isPresent) 1 else 0) + (if (line1.asKnown().isPresent) 1 else 0) + (if (line2.asKnown().isPresent) 1 else 0) + (if (state.asKnown().isPresent) 1 else 0) + @@ -9912,6 +10189,7 @@ private constructor( return other is Address && city == other.city && + country == other.country && line1 == other.line1 && line2 == other.line2 && state == other.state && @@ -9920,13 +10198,13 @@ private constructor( } private val hashCode: Int by lazy { - Objects.hash(city, line1, line2, state, zip, additionalProperties) + Objects.hash(city, country, line1, line2, state, zip, additionalProperties) } override fun hashCode(): Int = hashCode override fun toString() = - "Address{city=$city, line1=$line1, line2=$line2, state=$state, zip=$zip, additionalProperties=$additionalProperties}" + "Address{city=$city, country=$country, line1=$line1, line2=$line2, state=$state, zip=$zip, additionalProperties=$additionalProperties}" } /** A means of verifying the person's identity. */ @@ -10838,6 +11116,7 @@ private constructor( @JsonCreator(mode = JsonCreator.Mode.DISABLED) private constructor( private val city: JsonField, + private val country: JsonField, private val line1: JsonField, private val line2: JsonField, private val state: JsonField, @@ -10850,6 +11129,9 @@ private constructor( @JsonProperty("city") @ExcludeMissing city: JsonField = JsonMissing.of(), + @JsonProperty("country") + @ExcludeMissing + country: JsonField = JsonMissing.of(), @JsonProperty("line1") @ExcludeMissing line1: JsonField = JsonMissing.of(), @@ -10862,16 +11144,24 @@ private constructor( @JsonProperty("zip") @ExcludeMissing zip: JsonField = JsonMissing.of(), - ) : this(city, line1, line2, state, zip, mutableMapOf()) + ) : this(city, country, line1, line2, state, zip, mutableMapOf()) + + /** + * The city, district, town, or village of the address. + * + * @throws IncreaseInvalidDataException if the JSON field has an unexpected type + * (e.g. if the server responded with an unexpected value). + */ + fun city(): Optional = city.getOptional("city") /** - * The city of the address. + * The two-letter ISO 3166-1 alpha-2 code for the country of the address. * * @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 city(): String = city.getRequired("city") + fun country(): String = country.getRequired("country") /** * The first line of the address. @@ -10891,23 +11181,21 @@ private constructor( fun line2(): Optional = line2.getOptional("line2") /** - * The two-letter United States Postal Service (USPS) abbreviation for the state - * of the address. + * The two-letter United States Postal Service (USPS) abbreviation for the US + * state, province, or region of the address. * * @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). + * (e.g. if the server responded with an unexpected value). */ - fun state(): String = state.getRequired("state") + fun state(): Optional = state.getOptional("state") /** - * The ZIP code of the address. + * The ZIP or postal code of the address. * * @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). + * (e.g. if the server responded with an unexpected value). */ - fun zip(): String = zip.getRequired("zip") + fun zip(): Optional = zip.getOptional("zip") /** * Returns the raw JSON value of [city]. @@ -10917,6 +11205,16 @@ private constructor( */ @JsonProperty("city") @ExcludeMissing fun _city(): JsonField = city + /** + * Returns the raw JSON value of [country]. + * + * Unlike [country], this method doesn't throw if the JSON field has an + * unexpected type. + */ + @JsonProperty("country") + @ExcludeMissing + fun _country(): JsonField = country + /** * Returns the raw JSON value of [line1]. * @@ -10969,6 +11267,7 @@ private constructor( * The following fields are required: * ```java * .city() + * .country() * .line1() * .line2() * .state() @@ -10982,6 +11281,7 @@ private constructor( class Builder internal constructor() { private var city: JsonField? = null + private var country: JsonField? = null private var line1: JsonField? = null private var line2: JsonField? = null private var state: JsonField? = null @@ -10992,6 +11292,7 @@ private constructor( @JvmSynthetic internal fun from(address: Address) = apply { city = address.city + country = address.country line1 = address.line1 line2 = address.line2 state = address.state @@ -10999,8 +11300,11 @@ private constructor( additionalProperties = address.additionalProperties.toMutableMap() } - /** The city of the address. */ - fun city(city: String) = city(JsonField.of(city)) + /** The city, district, town, or village of the address. */ + fun city(city: String?) = city(JsonField.ofNullable(city)) + + /** Alias for calling [Builder.city] with `city.orElse(null)`. */ + fun city(city: Optional) = city(city.getOrNull()) /** * Sets [Builder.city] to an arbitrary JSON value. @@ -11011,6 +11315,20 @@ private constructor( */ fun city(city: JsonField) = apply { this.city = city } + /** + * The two-letter ISO 3166-1 alpha-2 code for the country of the address. + */ + fun country(country: String) = country(JsonField.of(country)) + + /** + * Sets [Builder.country] to an arbitrary JSON value. + * + * You should usually call [Builder.country] with a well-typed [String] + * value instead. This method is primarily for setting the field to an + * undocumented or not yet supported value. + */ + fun country(country: JsonField) = apply { this.country = country } + /** The first line of the address. */ fun line1(line1: String) = line1(JsonField.of(line1)) @@ -11040,9 +11358,12 @@ private constructor( /** * The two-letter United States Postal Service (USPS) abbreviation for the - * state of the address. + * US state, province, or region of the address. */ - fun state(state: String) = state(JsonField.of(state)) + fun state(state: String?) = state(JsonField.ofNullable(state)) + + /** Alias for calling [Builder.state] with `state.orElse(null)`. */ + fun state(state: Optional) = state(state.getOrNull()) /** * Sets [Builder.state] to an arbitrary JSON value. @@ -11053,8 +11374,11 @@ private constructor( */ fun state(state: JsonField) = apply { this.state = state } - /** The ZIP code of the address. */ - fun zip(zip: String) = zip(JsonField.of(zip)) + /** The ZIP or postal code of the address. */ + fun zip(zip: String?) = zip(JsonField.ofNullable(zip)) + + /** Alias for calling [Builder.zip] with `zip.orElse(null)`. */ + fun zip(zip: Optional) = zip(zip.getOrNull()) /** * Sets [Builder.zip] to an arbitrary JSON value. @@ -11095,6 +11419,7 @@ private constructor( * The following fields are required: * ```java * .city() + * .country() * .line1() * .line2() * .state() @@ -11106,6 +11431,7 @@ private constructor( fun build(): Address = Address( checkRequired("city", city), + checkRequired("country", country), checkRequired("line1", line1), checkRequired("line2", line2), checkRequired("state", state), @@ -11122,6 +11448,7 @@ private constructor( } city() + country() line1() line2() state() @@ -11146,6 +11473,7 @@ private constructor( @JvmSynthetic internal fun validity(): Int = (if (city.asKnown().isPresent) 1 else 0) + + (if (country.asKnown().isPresent) 1 else 0) + (if (line1.asKnown().isPresent) 1 else 0) + (if (line2.asKnown().isPresent) 1 else 0) + (if (state.asKnown().isPresent) 1 else 0) + @@ -11158,6 +11486,7 @@ private constructor( return other is Address && city == other.city && + country == other.country && line1 == other.line1 && line2 == other.line2 && state == other.state && @@ -11166,13 +11495,13 @@ private constructor( } private val hashCode: Int by lazy { - Objects.hash(city, line1, line2, state, zip, additionalProperties) + Objects.hash(city, country, line1, line2, state, zip, additionalProperties) } override fun hashCode(): Int = hashCode override fun toString() = - "Address{city=$city, line1=$line1, line2=$line2, state=$state, zip=$zip, additionalProperties=$additionalProperties}" + "Address{city=$city, country=$country, line1=$line1, line2=$line2, state=$state, zip=$zip, additionalProperties=$additionalProperties}" } /** A means of verifying the person's identity. */ diff --git a/increase-java-core/src/main/kotlin/com/increase/api/models/entities/EntityCreateParams.kt b/increase-java-core/src/main/kotlin/com/increase/api/models/entities/EntityCreateParams.kt index 3f48e653c..8eac7fde1 100644 --- a/increase-java-core/src/main/kotlin/com/increase/api/models/entities/EntityCreateParams.kt +++ b/increase-java-core/src/main/kotlin/com/increase/api/models/entities/EntityCreateParams.kt @@ -1964,24 +1964,28 @@ private constructor( @JsonCreator(mode = JsonCreator.Mode.DISABLED) private constructor( private val city: JsonField, + private val country: JsonField, private val line1: JsonField, + private val line2: JsonField, private val state: JsonField, private val zip: JsonField, - private val line2: JsonField, private val additionalProperties: MutableMap, ) { @JsonCreator private constructor( @JsonProperty("city") @ExcludeMissing city: JsonField = JsonMissing.of(), + @JsonProperty("country") + @ExcludeMissing + country: JsonField = JsonMissing.of(), @JsonProperty("line1") @ExcludeMissing line1: JsonField = JsonMissing.of(), + @JsonProperty("line2") @ExcludeMissing line2: JsonField = JsonMissing.of(), @JsonProperty("state") @ExcludeMissing state: JsonField = JsonMissing.of(), @JsonProperty("zip") @ExcludeMissing zip: JsonField = JsonMissing.of(), - @JsonProperty("line2") @ExcludeMissing line2: JsonField = JsonMissing.of(), - ) : this(city, line1, state, zip, line2, mutableMapOf()) + ) : this(city, country, line1, line2, state, zip, mutableMapOf()) /** - * The city of the address. + * The city, district, town, or village of the address. * * @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 @@ -1990,40 +1994,47 @@ private constructor( fun city(): String = city.getRequired("city") /** - * The first line of the address. This is usually the street number and street. + * The two-letter ISO 3166-1 alpha-2 code for the country of the address. * * @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 line1(): String = line1.getRequired("line1") + fun country(): String = country.getRequired("country") /** - * The two-letter United States Postal Service (USPS) abbreviation for the state of the - * address. + * The first line of the address. This is usually the street number and street. * * @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 state(): String = state.getRequired("state") + fun line1(): String = line1.getRequired("line1") /** - * The ZIP code of the address. + * The second line of the address. This might be the floor or room number. * - * @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 zip(): String = zip.getRequired("zip") + fun line2(): Optional = line2.getOptional("line2") /** - * The second line of the address. This might be the floor or room number. + * The two-letter United States Postal Service (USPS) abbreviation for the US state, + * province, or region of the address. Required in certain countries. * * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. * if the server responded with an unexpected value). */ - fun line2(): Optional = line2.getOptional("line2") + fun state(): Optional = state.getOptional("state") + + /** + * The ZIP or postal code of the address. Required in certain countries. + * + * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. + * if the server responded with an unexpected value). + */ + fun zip(): Optional = zip.getOptional("zip") /** * Returns the raw JSON value of [city]. @@ -2032,6 +2043,13 @@ private constructor( */ @JsonProperty("city") @ExcludeMissing fun _city(): JsonField = city + /** + * Returns the raw JSON value of [country]. + * + * Unlike [country], this method doesn't throw if the JSON field has an unexpected type. + */ + @JsonProperty("country") @ExcludeMissing fun _country(): JsonField = country + /** * Returns the raw JSON value of [line1]. * @@ -2039,6 +2057,13 @@ private constructor( */ @JsonProperty("line1") @ExcludeMissing fun _line1(): JsonField = line1 + /** + * Returns the raw JSON value of [line2]. + * + * Unlike [line2], this method doesn't throw if the JSON field has an unexpected type. + */ + @JsonProperty("line2") @ExcludeMissing fun _line2(): JsonField = line2 + /** * Returns the raw JSON value of [state]. * @@ -2053,13 +2078,6 @@ private constructor( */ @JsonProperty("zip") @ExcludeMissing fun _zip(): JsonField = zip - /** - * Returns the raw JSON value of [line2]. - * - * Unlike [line2], this method doesn't throw if the JSON field has an unexpected type. - */ - @JsonProperty("line2") @ExcludeMissing fun _line2(): JsonField = line2 - @JsonAnySetter private fun putAdditionalProperty(key: String, value: JsonValue) { additionalProperties.put(key, value) @@ -2080,9 +2098,8 @@ private constructor( * The following fields are required: * ```java * .city() + * .country() * .line1() - * .state() - * .zip() * ``` */ @JvmStatic fun builder() = Builder() @@ -2092,23 +2109,25 @@ private constructor( class Builder internal constructor() { private var city: JsonField? = null + private var country: JsonField? = null private var line1: JsonField? = null - private var state: JsonField? = null - private var zip: JsonField? = null private var line2: JsonField = JsonMissing.of() + private var state: JsonField = JsonMissing.of() + private var zip: JsonField = JsonMissing.of() private var additionalProperties: MutableMap = mutableMapOf() @JvmSynthetic internal fun from(address: Address) = apply { city = address.city + country = address.country line1 = address.line1 + line2 = address.line2 state = address.state zip = address.zip - line2 = address.line2 additionalProperties = address.additionalProperties.toMutableMap() } - /** The city of the address. */ + /** The city, district, town, or village of the address. */ fun city(city: String) = city(JsonField.of(city)) /** @@ -2120,6 +2139,18 @@ private constructor( */ fun city(city: JsonField) = apply { this.city = city } + /** The two-letter ISO 3166-1 alpha-2 code for the country of the address. */ + fun country(country: String) = country(JsonField.of(country)) + + /** + * Sets [Builder.country] to an arbitrary JSON value. + * + * You should usually call [Builder.country] with a well-typed [String] value + * instead. This method is primarily for setting the field to an undocumented or not + * yet supported value. + */ + fun country(country: JsonField) = apply { this.country = country } + /** The first line of the address. This is usually the street number and street. */ fun line1(line1: String) = line1(JsonField.of(line1)) @@ -2132,9 +2163,21 @@ private constructor( */ fun line1(line1: JsonField) = apply { this.line1 = line1 } + /** The second line of the address. This might be the floor or room number. */ + fun line2(line2: String) = line2(JsonField.of(line2)) + /** - * The two-letter United States Postal Service (USPS) abbreviation for the state of - * the address. + * Sets [Builder.line2] to an arbitrary JSON value. + * + * You should usually call [Builder.line2] with a well-typed [String] value instead. + * This method is primarily for setting the field to an undocumented or not yet + * supported value. + */ + fun line2(line2: JsonField) = apply { this.line2 = line2 } + + /** + * The two-letter United States Postal Service (USPS) abbreviation for the US state, + * province, or region of the address. Required in certain countries. */ fun state(state: String) = state(JsonField.of(state)) @@ -2147,7 +2190,7 @@ private constructor( */ fun state(state: JsonField) = apply { this.state = state } - /** The ZIP code of the address. */ + /** The ZIP or postal code of the address. Required in certain countries. */ fun zip(zip: String) = zip(JsonField.of(zip)) /** @@ -2159,18 +2202,6 @@ private constructor( */ fun zip(zip: JsonField) = apply { this.zip = zip } - /** The second line of the address. This might be the floor or room number. */ - fun line2(line2: String) = line2(JsonField.of(line2)) - - /** - * Sets [Builder.line2] to an arbitrary JSON value. - * - * You should usually call [Builder.line2] with a well-typed [String] value instead. - * This method is primarily for setting the field to an undocumented or not yet - * supported value. - */ - fun line2(line2: JsonField) = apply { this.line2 = line2 } - fun additionalProperties(additionalProperties: Map) = apply { this.additionalProperties.clear() putAllAdditionalProperties(additionalProperties) @@ -2201,9 +2232,8 @@ private constructor( * The following fields are required: * ```java * .city() + * .country() * .line1() - * .state() - * .zip() * ``` * * @throws IllegalStateException if any required field is unset. @@ -2211,10 +2241,11 @@ private constructor( fun build(): Address = Address( checkRequired("city", city), + checkRequired("country", country), checkRequired("line1", line1), - checkRequired("state", state), - checkRequired("zip", zip), line2, + state, + zip, additionalProperties.toMutableMap(), ) } @@ -2227,10 +2258,11 @@ private constructor( } city() + country() line1() + line2() state() zip() - line2() validated = true } @@ -2251,10 +2283,11 @@ private constructor( @JvmSynthetic internal fun validity(): Int = (if (city.asKnown().isPresent) 1 else 0) + + (if (country.asKnown().isPresent) 1 else 0) + (if (line1.asKnown().isPresent) 1 else 0) + + (if (line2.asKnown().isPresent) 1 else 0) + (if (state.asKnown().isPresent) 1 else 0) + - (if (zip.asKnown().isPresent) 1 else 0) + - (if (line2.asKnown().isPresent) 1 else 0) + (if (zip.asKnown().isPresent) 1 else 0) override fun equals(other: Any?): Boolean { if (this === other) { @@ -2263,21 +2296,22 @@ private constructor( return other is Address && city == other.city && + country == other.country && line1 == other.line1 && + line2 == other.line2 && state == other.state && zip == other.zip && - line2 == other.line2 && additionalProperties == other.additionalProperties } private val hashCode: Int by lazy { - Objects.hash(city, line1, state, zip, line2, additionalProperties) + Objects.hash(city, country, line1, line2, state, zip, additionalProperties) } override fun hashCode(): Int = hashCode override fun toString() = - "Address{city=$city, line1=$line1, state=$state, zip=$zip, line2=$line2, additionalProperties=$additionalProperties}" + "Address{city=$city, country=$country, line1=$line1, line2=$line2, state=$state, zip=$zip, additionalProperties=$additionalProperties}" } class BeneficialOwner @@ -7097,10 +7131,11 @@ private constructor( @JsonCreator(mode = JsonCreator.Mode.DISABLED) private constructor( private val city: JsonField, + private val country: JsonField, private val line1: JsonField, + private val line2: JsonField, private val state: JsonField, private val zip: JsonField, - private val line2: JsonField, private val additionalProperties: MutableMap, ) { @@ -7109,20 +7144,23 @@ private constructor( @JsonProperty("city") @ExcludeMissing city: JsonField = JsonMissing.of(), + @JsonProperty("country") + @ExcludeMissing + country: JsonField = JsonMissing.of(), @JsonProperty("line1") @ExcludeMissing line1: JsonField = JsonMissing.of(), + @JsonProperty("line2") + @ExcludeMissing + line2: JsonField = JsonMissing.of(), @JsonProperty("state") @ExcludeMissing state: JsonField = JsonMissing.of(), @JsonProperty("zip") @ExcludeMissing zip: JsonField = JsonMissing.of(), - @JsonProperty("line2") - @ExcludeMissing - line2: JsonField = JsonMissing.of(), - ) : this(city, line1, state, zip, line2, mutableMapOf()) + ) : this(city, country, line1, line2, state, zip, mutableMapOf()) /** - * The city of the address. + * The city, district, town, or village of the address. * * @throws IncreaseInvalidDataException if the JSON field has an unexpected type or * is unexpectedly missing or null (e.g. if the server responded with an @@ -7131,40 +7169,47 @@ private constructor( fun city(): String = city.getRequired("city") /** - * The first line of the address. This is usually the street number and street. + * The two-letter ISO 3166-1 alpha-2 code for the country of the address. * * @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 line1(): String = line1.getRequired("line1") + fun country(): String = country.getRequired("country") /** - * The two-letter United States Postal Service (USPS) abbreviation for the state of - * the address. + * The first line of the address. This is usually the street number and street. * * @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 state(): String = state.getRequired("state") + fun line1(): String = line1.getRequired("line1") /** - * The ZIP code of the address. + * The second line of the address. This might be the floor or room number. * - * @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 zip(): String = zip.getRequired("zip") + fun line2(): Optional = line2.getOptional("line2") /** - * The second line of the address. This might be the floor or room number. + * The two-letter United States Postal Service (USPS) abbreviation for the US state, + * province, or region of the address. Required in certain countries. * * @throws IncreaseInvalidDataException if the JSON field has an unexpected type * (e.g. if the server responded with an unexpected value). */ - fun line2(): Optional = line2.getOptional("line2") + fun state(): Optional = state.getOptional("state") + + /** + * The ZIP or postal code of the address. Required in certain countries. + * + * @throws IncreaseInvalidDataException if the JSON field has an unexpected type + * (e.g. if the server responded with an unexpected value). + */ + fun zip(): Optional = zip.getOptional("zip") /** * Returns the raw JSON value of [city]. @@ -7174,6 +7219,14 @@ private constructor( */ @JsonProperty("city") @ExcludeMissing fun _city(): JsonField = city + /** + * Returns the raw JSON value of [country]. + * + * Unlike [country], this method doesn't throw if the JSON field has an unexpected + * type. + */ + @JsonProperty("country") @ExcludeMissing fun _country(): JsonField = country + /** * Returns the raw JSON value of [line1]. * @@ -7182,6 +7235,14 @@ private constructor( */ @JsonProperty("line1") @ExcludeMissing fun _line1(): JsonField = line1 + /** + * Returns the raw JSON value of [line2]. + * + * Unlike [line2], this method doesn't throw if the JSON field has an unexpected + * type. + */ + @JsonProperty("line2") @ExcludeMissing fun _line2(): JsonField = line2 + /** * Returns the raw JSON value of [state]. * @@ -7197,14 +7258,6 @@ private constructor( */ @JsonProperty("zip") @ExcludeMissing fun _zip(): JsonField = zip - /** - * Returns the raw JSON value of [line2]. - * - * Unlike [line2], this method doesn't throw if the JSON field has an unexpected - * type. - */ - @JsonProperty("line2") @ExcludeMissing fun _line2(): JsonField = line2 - @JsonAnySetter private fun putAdditionalProperty(key: String, value: JsonValue) { additionalProperties.put(key, value) @@ -7225,9 +7278,8 @@ private constructor( * The following fields are required: * ```java * .city() + * .country() * .line1() - * .state() - * .zip() * ``` */ @JvmStatic fun builder() = Builder() @@ -7237,23 +7289,25 @@ private constructor( class Builder internal constructor() { private var city: JsonField? = null + private var country: JsonField? = null private var line1: JsonField? = null - private var state: JsonField? = null - private var zip: JsonField? = null private var line2: JsonField = JsonMissing.of() + private var state: JsonField = JsonMissing.of() + private var zip: JsonField = JsonMissing.of() private var additionalProperties: MutableMap = mutableMapOf() @JvmSynthetic internal fun from(address: Address) = apply { city = address.city + country = address.country line1 = address.line1 + line2 = address.line2 state = address.state zip = address.zip - line2 = address.line2 additionalProperties = address.additionalProperties.toMutableMap() } - /** The city of the address. */ + /** The city, district, town, or village of the address. */ fun city(city: String) = city(JsonField.of(city)) /** @@ -7265,6 +7319,18 @@ private constructor( */ fun city(city: JsonField) = apply { this.city = city } + /** The two-letter ISO 3166-1 alpha-2 code for the country of the address. */ + fun country(country: String) = country(JsonField.of(country)) + + /** + * Sets [Builder.country] to an arbitrary JSON value. + * + * You should usually call [Builder.country] with a well-typed [String] value + * instead. This method is primarily for setting the field to an undocumented or + * not yet supported value. + */ + fun country(country: JsonField) = apply { this.country = country } + /** * The first line of the address. This is usually the street number and street. */ @@ -7279,9 +7345,21 @@ private constructor( */ fun line1(line1: JsonField) = apply { this.line1 = line1 } + /** The second line of the address. This might be the floor or room number. */ + fun line2(line2: String) = line2(JsonField.of(line2)) + + /** + * Sets [Builder.line2] to an arbitrary JSON value. + * + * You should usually call [Builder.line2] with a well-typed [String] value + * instead. This method is primarily for setting the field to an undocumented or + * not yet supported value. + */ + fun line2(line2: JsonField) = apply { this.line2 = line2 } + /** - * The two-letter United States Postal Service (USPS) abbreviation for the state - * of the address. + * The two-letter United States Postal Service (USPS) abbreviation for the US + * state, province, or region of the address. Required in certain countries. */ fun state(state: String) = state(JsonField.of(state)) @@ -7294,7 +7372,7 @@ private constructor( */ fun state(state: JsonField) = apply { this.state = state } - /** The ZIP code of the address. */ + /** The ZIP or postal code of the address. Required in certain countries. */ fun zip(zip: String) = zip(JsonField.of(zip)) /** @@ -7306,18 +7384,6 @@ private constructor( */ fun zip(zip: JsonField) = apply { this.zip = zip } - /** The second line of the address. This might be the floor or room number. */ - fun line2(line2: String) = line2(JsonField.of(line2)) - - /** - * Sets [Builder.line2] to an arbitrary JSON value. - * - * You should usually call [Builder.line2] with a well-typed [String] value - * instead. This method is primarily for setting the field to an undocumented or - * not yet supported value. - */ - fun line2(line2: JsonField) = apply { this.line2 = line2 } - fun additionalProperties(additionalProperties: Map) = apply { this.additionalProperties.clear() putAllAdditionalProperties(additionalProperties) @@ -7348,9 +7414,8 @@ private constructor( * The following fields are required: * ```java * .city() + * .country() * .line1() - * .state() - * .zip() * ``` * * @throws IllegalStateException if any required field is unset. @@ -7358,10 +7423,11 @@ private constructor( fun build(): Address = Address( checkRequired("city", city), + checkRequired("country", country), checkRequired("line1", line1), - checkRequired("state", state), - checkRequired("zip", zip), line2, + state, + zip, additionalProperties.toMutableMap(), ) } @@ -7374,10 +7440,11 @@ private constructor( } city() + country() line1() + line2() state() zip() - line2() validated = true } @@ -7398,10 +7465,11 @@ private constructor( @JvmSynthetic internal fun validity(): Int = (if (city.asKnown().isPresent) 1 else 0) + + (if (country.asKnown().isPresent) 1 else 0) + (if (line1.asKnown().isPresent) 1 else 0) + + (if (line2.asKnown().isPresent) 1 else 0) + (if (state.asKnown().isPresent) 1 else 0) + - (if (zip.asKnown().isPresent) 1 else 0) + - (if (line2.asKnown().isPresent) 1 else 0) + (if (zip.asKnown().isPresent) 1 else 0) override fun equals(other: Any?): Boolean { if (this === other) { @@ -7410,21 +7478,22 @@ private constructor( return other is Address && city == other.city && + country == other.country && line1 == other.line1 && + line2 == other.line2 && state == other.state && zip == other.zip && - line2 == other.line2 && additionalProperties == other.additionalProperties } private val hashCode: Int by lazy { - Objects.hash(city, line1, state, zip, line2, additionalProperties) + Objects.hash(city, country, line1, line2, state, zip, additionalProperties) } override fun hashCode(): Int = hashCode override fun toString() = - "Address{city=$city, line1=$line1, state=$state, zip=$zip, line2=$line2, additionalProperties=$additionalProperties}" + "Address{city=$city, country=$country, line1=$line1, line2=$line2, state=$state, zip=$zip, additionalProperties=$additionalProperties}" } /** A means of verifying the person's identity. */ @@ -9298,24 +9367,28 @@ private constructor( @JsonCreator(mode = JsonCreator.Mode.DISABLED) private constructor( private val city: JsonField, + private val country: JsonField, private val line1: JsonField, + private val line2: JsonField, private val state: JsonField, private val zip: JsonField, - private val line2: JsonField, private val additionalProperties: MutableMap, ) { @JsonCreator private constructor( @JsonProperty("city") @ExcludeMissing city: JsonField = JsonMissing.of(), + @JsonProperty("country") + @ExcludeMissing + country: JsonField = JsonMissing.of(), @JsonProperty("line1") @ExcludeMissing line1: JsonField = JsonMissing.of(), + @JsonProperty("line2") @ExcludeMissing line2: JsonField = JsonMissing.of(), @JsonProperty("state") @ExcludeMissing state: JsonField = JsonMissing.of(), @JsonProperty("zip") @ExcludeMissing zip: JsonField = JsonMissing.of(), - @JsonProperty("line2") @ExcludeMissing line2: JsonField = JsonMissing.of(), - ) : this(city, line1, state, zip, line2, mutableMapOf()) + ) : this(city, country, line1, line2, state, zip, mutableMapOf()) /** - * The city of the address. + * The city, district, town, or village of the address. * * @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 @@ -9324,40 +9397,47 @@ private constructor( fun city(): String = city.getRequired("city") /** - * The first line of the address. This is usually the street number and street. + * The two-letter ISO 3166-1 alpha-2 code for the country of the address. * * @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 line1(): String = line1.getRequired("line1") + fun country(): String = country.getRequired("country") /** - * The two-letter United States Postal Service (USPS) abbreviation for the state of the - * address. + * The first line of the address. This is usually the street number and street. * * @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 state(): String = state.getRequired("state") + fun line1(): String = line1.getRequired("line1") /** - * The ZIP code of the address. + * The second line of the address. This might be the floor or room number. * - * @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 zip(): String = zip.getRequired("zip") + fun line2(): Optional = line2.getOptional("line2") /** - * The second line of the address. This might be the floor or room number. + * The two-letter United States Postal Service (USPS) abbreviation for the US state, + * province, or region of the address. Required in certain countries. * * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. * if the server responded with an unexpected value). */ - fun line2(): Optional = line2.getOptional("line2") + fun state(): Optional = state.getOptional("state") + + /** + * The ZIP or postal code of the address. Required in certain countries. + * + * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. + * if the server responded with an unexpected value). + */ + fun zip(): Optional = zip.getOptional("zip") /** * Returns the raw JSON value of [city]. @@ -9366,6 +9446,13 @@ private constructor( */ @JsonProperty("city") @ExcludeMissing fun _city(): JsonField = city + /** + * Returns the raw JSON value of [country]. + * + * Unlike [country], this method doesn't throw if the JSON field has an unexpected type. + */ + @JsonProperty("country") @ExcludeMissing fun _country(): JsonField = country + /** * Returns the raw JSON value of [line1]. * @@ -9374,25 +9461,25 @@ private constructor( @JsonProperty("line1") @ExcludeMissing fun _line1(): JsonField = line1 /** - * Returns the raw JSON value of [state]. + * Returns the raw JSON value of [line2]. * - * Unlike [state], this method doesn't throw if the JSON field has an unexpected type. + * Unlike [line2], this method doesn't throw if the JSON field has an unexpected type. */ - @JsonProperty("state") @ExcludeMissing fun _state(): JsonField = state + @JsonProperty("line2") @ExcludeMissing fun _line2(): JsonField = line2 /** - * Returns the raw JSON value of [zip]. + * Returns the raw JSON value of [state]. * - * Unlike [zip], this method doesn't throw if the JSON field has an unexpected type. + * Unlike [state], this method doesn't throw if the JSON field has an unexpected type. */ - @JsonProperty("zip") @ExcludeMissing fun _zip(): JsonField = zip + @JsonProperty("state") @ExcludeMissing fun _state(): JsonField = state /** - * Returns the raw JSON value of [line2]. + * Returns the raw JSON value of [zip]. * - * Unlike [line2], this method doesn't throw if the JSON field has an unexpected type. + * Unlike [zip], this method doesn't throw if the JSON field has an unexpected type. */ - @JsonProperty("line2") @ExcludeMissing fun _line2(): JsonField = line2 + @JsonProperty("zip") @ExcludeMissing fun _zip(): JsonField = zip @JsonAnySetter private fun putAdditionalProperty(key: String, value: JsonValue) { @@ -9414,9 +9501,8 @@ private constructor( * The following fields are required: * ```java * .city() + * .country() * .line1() - * .state() - * .zip() * ``` */ @JvmStatic fun builder() = Builder() @@ -9426,23 +9512,25 @@ private constructor( class Builder internal constructor() { private var city: JsonField? = null + private var country: JsonField? = null private var line1: JsonField? = null - private var state: JsonField? = null - private var zip: JsonField? = null private var line2: JsonField = JsonMissing.of() + private var state: JsonField = JsonMissing.of() + private var zip: JsonField = JsonMissing.of() private var additionalProperties: MutableMap = mutableMapOf() @JvmSynthetic internal fun from(address: Address) = apply { city = address.city + country = address.country line1 = address.line1 + line2 = address.line2 state = address.state zip = address.zip - line2 = address.line2 additionalProperties = address.additionalProperties.toMutableMap() } - /** The city of the address. */ + /** The city, district, town, or village of the address. */ fun city(city: String) = city(JsonField.of(city)) /** @@ -9454,6 +9542,18 @@ private constructor( */ fun city(city: JsonField) = apply { this.city = city } + /** The two-letter ISO 3166-1 alpha-2 code for the country of the address. */ + fun country(country: String) = country(JsonField.of(country)) + + /** + * Sets [Builder.country] to an arbitrary JSON value. + * + * You should usually call [Builder.country] with a well-typed [String] value + * instead. This method is primarily for setting the field to an undocumented or not + * yet supported value. + */ + fun country(country: JsonField) = apply { this.country = country } + /** The first line of the address. This is usually the street number and street. */ fun line1(line1: String) = line1(JsonField.of(line1)) @@ -9466,9 +9566,21 @@ private constructor( */ fun line1(line1: JsonField) = apply { this.line1 = line1 } + /** The second line of the address. This might be the floor or room number. */ + fun line2(line2: String) = line2(JsonField.of(line2)) + /** - * The two-letter United States Postal Service (USPS) abbreviation for the state of - * the address. + * Sets [Builder.line2] to an arbitrary JSON value. + * + * You should usually call [Builder.line2] with a well-typed [String] value instead. + * This method is primarily for setting the field to an undocumented or not yet + * supported value. + */ + fun line2(line2: JsonField) = apply { this.line2 = line2 } + + /** + * The two-letter United States Postal Service (USPS) abbreviation for the US state, + * province, or region of the address. Required in certain countries. */ fun state(state: String) = state(JsonField.of(state)) @@ -9481,7 +9593,7 @@ private constructor( */ fun state(state: JsonField) = apply { this.state = state } - /** The ZIP code of the address. */ + /** The ZIP or postal code of the address. Required in certain countries. */ fun zip(zip: String) = zip(JsonField.of(zip)) /** @@ -9493,18 +9605,6 @@ private constructor( */ fun zip(zip: JsonField) = apply { this.zip = zip } - /** The second line of the address. This might be the floor or room number. */ - fun line2(line2: String) = line2(JsonField.of(line2)) - - /** - * Sets [Builder.line2] to an arbitrary JSON value. - * - * You should usually call [Builder.line2] with a well-typed [String] value instead. - * This method is primarily for setting the field to an undocumented or not yet - * supported value. - */ - fun line2(line2: JsonField) = apply { this.line2 = line2 } - fun additionalProperties(additionalProperties: Map) = apply { this.additionalProperties.clear() putAllAdditionalProperties(additionalProperties) @@ -9535,9 +9635,8 @@ private constructor( * The following fields are required: * ```java * .city() + * .country() * .line1() - * .state() - * .zip() * ``` * * @throws IllegalStateException if any required field is unset. @@ -9545,10 +9644,11 @@ private constructor( fun build(): Address = Address( checkRequired("city", city), + checkRequired("country", country), checkRequired("line1", line1), - checkRequired("state", state), - checkRequired("zip", zip), line2, + state, + zip, additionalProperties.toMutableMap(), ) } @@ -9561,10 +9661,11 @@ private constructor( } city() + country() line1() + line2() state() zip() - line2() validated = true } @@ -9585,10 +9686,11 @@ private constructor( @JvmSynthetic internal fun validity(): Int = (if (city.asKnown().isPresent) 1 else 0) + + (if (country.asKnown().isPresent) 1 else 0) + (if (line1.asKnown().isPresent) 1 else 0) + + (if (line2.asKnown().isPresent) 1 else 0) + (if (state.asKnown().isPresent) 1 else 0) + - (if (zip.asKnown().isPresent) 1 else 0) + - (if (line2.asKnown().isPresent) 1 else 0) + (if (zip.asKnown().isPresent) 1 else 0) override fun equals(other: Any?): Boolean { if (this === other) { @@ -9597,21 +9699,22 @@ private constructor( return other is Address && city == other.city && + country == other.country && line1 == other.line1 && + line2 == other.line2 && state == other.state && zip == other.zip && - line2 == other.line2 && additionalProperties == other.additionalProperties } private val hashCode: Int by lazy { - Objects.hash(city, line1, state, zip, line2, additionalProperties) + Objects.hash(city, country, line1, line2, state, zip, additionalProperties) } override fun hashCode(): Int = hashCode override fun toString() = - "Address{city=$city, line1=$line1, state=$state, zip=$zip, line2=$line2, additionalProperties=$additionalProperties}" + "Address{city=$city, country=$country, line1=$line1, line2=$line2, state=$state, zip=$zip, additionalProperties=$additionalProperties}" } /** A means of verifying the person's identity. */ @@ -13822,10 +13925,11 @@ private constructor( @JsonCreator(mode = JsonCreator.Mode.DISABLED) private constructor( private val city: JsonField, + private val country: JsonField, private val line1: JsonField, + private val line2: JsonField, private val state: JsonField, private val zip: JsonField, - private val line2: JsonField, private val additionalProperties: MutableMap, ) { @@ -13834,22 +13938,25 @@ private constructor( @JsonProperty("city") @ExcludeMissing city: JsonField = JsonMissing.of(), + @JsonProperty("country") + @ExcludeMissing + country: JsonField = JsonMissing.of(), @JsonProperty("line1") @ExcludeMissing line1: JsonField = JsonMissing.of(), + @JsonProperty("line2") + @ExcludeMissing + line2: JsonField = JsonMissing.of(), @JsonProperty("state") @ExcludeMissing state: JsonField = JsonMissing.of(), @JsonProperty("zip") @ExcludeMissing zip: JsonField = JsonMissing.of(), - @JsonProperty("line2") - @ExcludeMissing - line2: JsonField = JsonMissing.of(), - ) : this(city, line1, state, zip, line2, mutableMapOf()) + ) : this(city, country, line1, line2, state, zip, mutableMapOf()) /** - * The city of the address. + * The city, district, town, or village of the address. * * @throws IncreaseInvalidDataException if the JSON field has an unexpected type * or is unexpectedly missing or null (e.g. if the server responded with an @@ -13858,40 +13965,47 @@ private constructor( fun city(): String = city.getRequired("city") /** - * The first line of the address. This is usually the street number and street. + * The two-letter ISO 3166-1 alpha-2 code for the country of the address. * * @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 line1(): String = line1.getRequired("line1") + fun country(): String = country.getRequired("country") /** - * The two-letter United States Postal Service (USPS) abbreviation for the state - * of the address. + * The first line of the address. This is usually the street number and street. * * @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 state(): String = state.getRequired("state") + fun line1(): String = line1.getRequired("line1") /** - * The ZIP code of the address. + * The second line of the address. This might be the floor or room number. * * @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). + * (e.g. if the server responded with an unexpected value). */ - fun zip(): String = zip.getRequired("zip") + fun line2(): Optional = line2.getOptional("line2") /** - * The second line of the address. This might be the floor or room number. + * The two-letter United States Postal Service (USPS) abbreviation for the US + * state, province, or region of the address. Required in certain countries. * * @throws IncreaseInvalidDataException if the JSON field has an unexpected type * (e.g. if the server responded with an unexpected value). */ - fun line2(): Optional = line2.getOptional("line2") + fun state(): Optional = state.getOptional("state") + + /** + * The ZIP or postal code of the address. Required in certain countries. + * + * @throws IncreaseInvalidDataException if the JSON field has an unexpected type + * (e.g. if the server responded with an unexpected value). + */ + fun zip(): Optional = zip.getOptional("zip") /** * Returns the raw JSON value of [city]. @@ -13901,6 +14015,16 @@ private constructor( */ @JsonProperty("city") @ExcludeMissing fun _city(): JsonField = city + /** + * Returns the raw JSON value of [country]. + * + * Unlike [country], this method doesn't throw if the JSON field has an + * unexpected type. + */ + @JsonProperty("country") + @ExcludeMissing + fun _country(): JsonField = country + /** * Returns the raw JSON value of [line1]. * @@ -13909,6 +14033,14 @@ private constructor( */ @JsonProperty("line1") @ExcludeMissing fun _line1(): JsonField = line1 + /** + * Returns the raw JSON value of [line2]. + * + * Unlike [line2], this method doesn't throw if the JSON field has an unexpected + * type. + */ + @JsonProperty("line2") @ExcludeMissing fun _line2(): JsonField = line2 + /** * Returns the raw JSON value of [state]. * @@ -13925,14 +14057,6 @@ private constructor( */ @JsonProperty("zip") @ExcludeMissing fun _zip(): JsonField = zip - /** - * Returns the raw JSON value of [line2]. - * - * Unlike [line2], this method doesn't throw if the JSON field has an unexpected - * type. - */ - @JsonProperty("line2") @ExcludeMissing fun _line2(): JsonField = line2 - @JsonAnySetter private fun putAdditionalProperty(key: String, value: JsonValue) { additionalProperties.put(key, value) @@ -13953,9 +14077,8 @@ private constructor( * The following fields are required: * ```java * .city() + * .country() * .line1() - * .state() - * .zip() * ``` */ @JvmStatic fun builder() = Builder() @@ -13965,24 +14088,26 @@ private constructor( class Builder internal constructor() { private var city: JsonField? = null + private var country: JsonField? = null private var line1: JsonField? = null - private var state: JsonField? = null - private var zip: JsonField? = null private var line2: JsonField = JsonMissing.of() + private var state: JsonField = JsonMissing.of() + private var zip: JsonField = JsonMissing.of() private var additionalProperties: MutableMap = mutableMapOf() @JvmSynthetic internal fun from(address: Address) = apply { city = address.city + country = address.country line1 = address.line1 + line2 = address.line2 state = address.state zip = address.zip - line2 = address.line2 additionalProperties = address.additionalProperties.toMutableMap() } - /** The city of the address. */ + /** The city, district, town, or village of the address. */ fun city(city: String) = city(JsonField.of(city)) /** @@ -13994,6 +14119,20 @@ private constructor( */ fun city(city: JsonField) = apply { this.city = city } + /** + * The two-letter ISO 3166-1 alpha-2 code for the country of the address. + */ + fun country(country: String) = country(JsonField.of(country)) + + /** + * Sets [Builder.country] to an arbitrary JSON value. + * + * You should usually call [Builder.country] with a well-typed [String] + * value instead. This method is primarily for setting the field to an + * undocumented or not yet supported value. + */ + fun country(country: JsonField) = apply { this.country = country } + /** * The first line of the address. This is usually the street number and * street. @@ -14009,9 +14148,24 @@ private constructor( */ fun line1(line1: JsonField) = apply { this.line1 = line1 } + /** + * The second line of the address. This might be the floor or room number. + */ + fun line2(line2: String) = line2(JsonField.of(line2)) + + /** + * Sets [Builder.line2] to an arbitrary JSON value. + * + * You should usually call [Builder.line2] with a well-typed [String] value + * instead. This method is primarily for setting the field to an + * undocumented or not yet supported value. + */ + fun line2(line2: JsonField) = apply { this.line2 = line2 } + /** * The two-letter United States Postal Service (USPS) abbreviation for the - * state of the address. + * US state, province, or region of the address. Required in certain + * countries. */ fun state(state: String) = state(JsonField.of(state)) @@ -14024,7 +14178,7 @@ private constructor( */ fun state(state: JsonField) = apply { this.state = state } - /** The ZIP code of the address. */ + /** The ZIP or postal code of the address. Required in certain countries. */ fun zip(zip: String) = zip(JsonField.of(zip)) /** @@ -14036,20 +14190,6 @@ private constructor( */ fun zip(zip: JsonField) = apply { this.zip = zip } - /** - * The second line of the address. This might be the floor or room number. - */ - fun line2(line2: String) = line2(JsonField.of(line2)) - - /** - * Sets [Builder.line2] to an arbitrary JSON value. - * - * You should usually call [Builder.line2] with a well-typed [String] value - * instead. This method is primarily for setting the field to an - * undocumented or not yet supported value. - */ - fun line2(line2: JsonField) = apply { this.line2 = line2 } - fun additionalProperties(additionalProperties: Map) = apply { this.additionalProperties.clear() @@ -14080,9 +14220,8 @@ private constructor( * The following fields are required: * ```java * .city() + * .country() * .line1() - * .state() - * .zip() * ``` * * @throws IllegalStateException if any required field is unset. @@ -14090,10 +14229,11 @@ private constructor( fun build(): Address = Address( checkRequired("city", city), + checkRequired("country", country), checkRequired("line1", line1), - checkRequired("state", state), - checkRequired("zip", zip), line2, + state, + zip, additionalProperties.toMutableMap(), ) } @@ -14106,10 +14246,11 @@ private constructor( } city() + country() line1() + line2() state() zip() - line2() validated = true } @@ -14130,10 +14271,11 @@ private constructor( @JvmSynthetic internal fun validity(): Int = (if (city.asKnown().isPresent) 1 else 0) + + (if (country.asKnown().isPresent) 1 else 0) + (if (line1.asKnown().isPresent) 1 else 0) + + (if (line2.asKnown().isPresent) 1 else 0) + (if (state.asKnown().isPresent) 1 else 0) + - (if (zip.asKnown().isPresent) 1 else 0) + - (if (line2.asKnown().isPresent) 1 else 0) + (if (zip.asKnown().isPresent) 1 else 0) override fun equals(other: Any?): Boolean { if (this === other) { @@ -14142,21 +14284,22 @@ private constructor( return other is Address && city == other.city && + country == other.country && line1 == other.line1 && + line2 == other.line2 && state == other.state && zip == other.zip && - line2 == other.line2 && additionalProperties == other.additionalProperties } private val hashCode: Int by lazy { - Objects.hash(city, line1, state, zip, line2, additionalProperties) + Objects.hash(city, country, line1, line2, state, zip, additionalProperties) } override fun hashCode(): Int = hashCode override fun toString() = - "Address{city=$city, line1=$line1, state=$state, zip=$zip, line2=$line2, additionalProperties=$additionalProperties}" + "Address{city=$city, country=$country, line1=$line1, line2=$line2, state=$state, zip=$zip, additionalProperties=$additionalProperties}" } /** A means of verifying the person's identity. */ @@ -16066,10 +16209,11 @@ private constructor( @JsonCreator(mode = JsonCreator.Mode.DISABLED) private constructor( private val city: JsonField, + private val country: JsonField, private val line1: JsonField, + private val line2: JsonField, private val state: JsonField, private val zip: JsonField, - private val line2: JsonField, private val additionalProperties: MutableMap, ) { @@ -16078,20 +16222,23 @@ private constructor( @JsonProperty("city") @ExcludeMissing city: JsonField = JsonMissing.of(), + @JsonProperty("country") + @ExcludeMissing + country: JsonField = JsonMissing.of(), @JsonProperty("line1") @ExcludeMissing line1: JsonField = JsonMissing.of(), + @JsonProperty("line2") + @ExcludeMissing + line2: JsonField = JsonMissing.of(), @JsonProperty("state") @ExcludeMissing state: JsonField = JsonMissing.of(), @JsonProperty("zip") @ExcludeMissing zip: JsonField = JsonMissing.of(), - @JsonProperty("line2") - @ExcludeMissing - line2: JsonField = JsonMissing.of(), - ) : this(city, line1, state, zip, line2, mutableMapOf()) + ) : this(city, country, line1, line2, state, zip, mutableMapOf()) /** - * The city of the address. + * The city, district, town, or village of the address. * * @throws IncreaseInvalidDataException if the JSON field has an unexpected type or * is unexpectedly missing or null (e.g. if the server responded with an @@ -16100,40 +16247,47 @@ private constructor( fun city(): String = city.getRequired("city") /** - * The first line of the address. This is usually the street number and street. + * The two-letter ISO 3166-1 alpha-2 code for the country of the address. * * @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 line1(): String = line1.getRequired("line1") + fun country(): String = country.getRequired("country") /** - * The two-letter United States Postal Service (USPS) abbreviation for the state of - * the address. + * The first line of the address. This is usually the street number and street. * * @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 state(): String = state.getRequired("state") + fun line1(): String = line1.getRequired("line1") /** - * The ZIP code of the address. + * The second line of the address. This might be the floor or room number. * - * @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 zip(): String = zip.getRequired("zip") + fun line2(): Optional = line2.getOptional("line2") /** - * The second line of the address. This might be the floor or room number. + * The two-letter United States Postal Service (USPS) abbreviation for the US state, + * province, or region of the address. Required in certain countries. * * @throws IncreaseInvalidDataException if the JSON field has an unexpected type * (e.g. if the server responded with an unexpected value). */ - fun line2(): Optional = line2.getOptional("line2") + fun state(): Optional = state.getOptional("state") + + /** + * The ZIP or postal code of the address. Required in certain countries. + * + * @throws IncreaseInvalidDataException if the JSON field has an unexpected type + * (e.g. if the server responded with an unexpected value). + */ + fun zip(): Optional = zip.getOptional("zip") /** * Returns the raw JSON value of [city]. @@ -16143,6 +16297,14 @@ private constructor( */ @JsonProperty("city") @ExcludeMissing fun _city(): JsonField = city + /** + * Returns the raw JSON value of [country]. + * + * Unlike [country], this method doesn't throw if the JSON field has an unexpected + * type. + */ + @JsonProperty("country") @ExcludeMissing fun _country(): JsonField = country + /** * Returns the raw JSON value of [line1]. * @@ -16151,6 +16313,14 @@ private constructor( */ @JsonProperty("line1") @ExcludeMissing fun _line1(): JsonField = line1 + /** + * Returns the raw JSON value of [line2]. + * + * Unlike [line2], this method doesn't throw if the JSON field has an unexpected + * type. + */ + @JsonProperty("line2") @ExcludeMissing fun _line2(): JsonField = line2 + /** * Returns the raw JSON value of [state]. * @@ -16166,14 +16336,6 @@ private constructor( */ @JsonProperty("zip") @ExcludeMissing fun _zip(): JsonField = zip - /** - * Returns the raw JSON value of [line2]. - * - * Unlike [line2], this method doesn't throw if the JSON field has an unexpected - * type. - */ - @JsonProperty("line2") @ExcludeMissing fun _line2(): JsonField = line2 - @JsonAnySetter private fun putAdditionalProperty(key: String, value: JsonValue) { additionalProperties.put(key, value) @@ -16194,9 +16356,8 @@ private constructor( * The following fields are required: * ```java * .city() + * .country() * .line1() - * .state() - * .zip() * ``` */ @JvmStatic fun builder() = Builder() @@ -16206,23 +16367,25 @@ private constructor( class Builder internal constructor() { private var city: JsonField? = null + private var country: JsonField? = null private var line1: JsonField? = null - private var state: JsonField? = null - private var zip: JsonField? = null private var line2: JsonField = JsonMissing.of() + private var state: JsonField = JsonMissing.of() + private var zip: JsonField = JsonMissing.of() private var additionalProperties: MutableMap = mutableMapOf() @JvmSynthetic internal fun from(address: Address) = apply { city = address.city + country = address.country line1 = address.line1 + line2 = address.line2 state = address.state zip = address.zip - line2 = address.line2 additionalProperties = address.additionalProperties.toMutableMap() } - /** The city of the address. */ + /** The city, district, town, or village of the address. */ fun city(city: String) = city(JsonField.of(city)) /** @@ -16234,6 +16397,18 @@ private constructor( */ fun city(city: JsonField) = apply { this.city = city } + /** The two-letter ISO 3166-1 alpha-2 code for the country of the address. */ + fun country(country: String) = country(JsonField.of(country)) + + /** + * Sets [Builder.country] to an arbitrary JSON value. + * + * You should usually call [Builder.country] with a well-typed [String] value + * instead. This method is primarily for setting the field to an undocumented or + * not yet supported value. + */ + fun country(country: JsonField) = apply { this.country = country } + /** * The first line of the address. This is usually the street number and street. */ @@ -16248,9 +16423,21 @@ private constructor( */ fun line1(line1: JsonField) = apply { this.line1 = line1 } + /** The second line of the address. This might be the floor or room number. */ + fun line2(line2: String) = line2(JsonField.of(line2)) + + /** + * Sets [Builder.line2] to an arbitrary JSON value. + * + * You should usually call [Builder.line2] with a well-typed [String] value + * instead. This method is primarily for setting the field to an undocumented or + * not yet supported value. + */ + fun line2(line2: JsonField) = apply { this.line2 = line2 } + /** - * The two-letter United States Postal Service (USPS) abbreviation for the state - * of the address. + * The two-letter United States Postal Service (USPS) abbreviation for the US + * state, province, or region of the address. Required in certain countries. */ fun state(state: String) = state(JsonField.of(state)) @@ -16263,7 +16450,7 @@ private constructor( */ fun state(state: JsonField) = apply { this.state = state } - /** The ZIP code of the address. */ + /** The ZIP or postal code of the address. Required in certain countries. */ fun zip(zip: String) = zip(JsonField.of(zip)) /** @@ -16275,18 +16462,6 @@ private constructor( */ fun zip(zip: JsonField) = apply { this.zip = zip } - /** The second line of the address. This might be the floor or room number. */ - fun line2(line2: String) = line2(JsonField.of(line2)) - - /** - * Sets [Builder.line2] to an arbitrary JSON value. - * - * You should usually call [Builder.line2] with a well-typed [String] value - * instead. This method is primarily for setting the field to an undocumented or - * not yet supported value. - */ - fun line2(line2: JsonField) = apply { this.line2 = line2 } - fun additionalProperties(additionalProperties: Map) = apply { this.additionalProperties.clear() putAllAdditionalProperties(additionalProperties) @@ -16317,9 +16492,8 @@ private constructor( * The following fields are required: * ```java * .city() + * .country() * .line1() - * .state() - * .zip() * ``` * * @throws IllegalStateException if any required field is unset. @@ -16327,10 +16501,11 @@ private constructor( fun build(): Address = Address( checkRequired("city", city), + checkRequired("country", country), checkRequired("line1", line1), - checkRequired("state", state), - checkRequired("zip", zip), line2, + state, + zip, additionalProperties.toMutableMap(), ) } @@ -16343,10 +16518,11 @@ private constructor( } city() + country() line1() + line2() state() zip() - line2() validated = true } @@ -16367,10 +16543,11 @@ private constructor( @JvmSynthetic internal fun validity(): Int = (if (city.asKnown().isPresent) 1 else 0) + + (if (country.asKnown().isPresent) 1 else 0) + (if (line1.asKnown().isPresent) 1 else 0) + + (if (line2.asKnown().isPresent) 1 else 0) + (if (state.asKnown().isPresent) 1 else 0) + - (if (zip.asKnown().isPresent) 1 else 0) + - (if (line2.asKnown().isPresent) 1 else 0) + (if (zip.asKnown().isPresent) 1 else 0) override fun equals(other: Any?): Boolean { if (this === other) { @@ -16379,21 +16556,22 @@ private constructor( return other is Address && city == other.city && + country == other.country && line1 == other.line1 && + line2 == other.line2 && state == other.state && zip == other.zip && - line2 == other.line2 && additionalProperties == other.additionalProperties } private val hashCode: Int by lazy { - Objects.hash(city, line1, state, zip, line2, additionalProperties) + Objects.hash(city, country, line1, line2, state, zip, additionalProperties) } override fun hashCode(): Int = hashCode override fun toString() = - "Address{city=$city, line1=$line1, state=$state, zip=$zip, line2=$line2, additionalProperties=$additionalProperties}" + "Address{city=$city, country=$country, line1=$line1, line2=$line2, state=$state, zip=$zip, additionalProperties=$additionalProperties}" } /** A means of verifying the person's identity. */ 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 743792e91..51cd42dec 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 @@ -1286,24 +1286,28 @@ private constructor( @JsonCreator(mode = JsonCreator.Mode.DISABLED) private constructor( private val city: JsonField, + private val country: JsonField, private val line1: JsonField, + private val line2: JsonField, private val state: JsonField, private val zip: JsonField, - private val line2: JsonField, private val additionalProperties: MutableMap, ) { @JsonCreator private constructor( @JsonProperty("city") @ExcludeMissing city: JsonField = JsonMissing.of(), + @JsonProperty("country") + @ExcludeMissing + country: JsonField = JsonMissing.of(), @JsonProperty("line1") @ExcludeMissing line1: JsonField = JsonMissing.of(), + @JsonProperty("line2") @ExcludeMissing line2: JsonField = JsonMissing.of(), @JsonProperty("state") @ExcludeMissing state: JsonField = JsonMissing.of(), @JsonProperty("zip") @ExcludeMissing zip: JsonField = JsonMissing.of(), - @JsonProperty("line2") @ExcludeMissing line2: JsonField = JsonMissing.of(), - ) : this(city, line1, state, zip, line2, mutableMapOf()) + ) : this(city, country, line1, line2, state, zip, mutableMapOf()) /** - * The city of the address. + * The city, district, town, or village of the address. * * @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 @@ -1312,40 +1316,47 @@ private constructor( fun city(): String = city.getRequired("city") /** - * The first line of the address. This is usually the street number and street. + * The two-letter ISO 3166-1 alpha-2 code for the country of the address. * * @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 line1(): String = line1.getRequired("line1") + fun country(): String = country.getRequired("country") /** - * The two-letter United States Postal Service (USPS) abbreviation for the state of the - * address. + * The first line of the address. This is usually the street number and street. * * @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 state(): String = state.getRequired("state") + fun line1(): String = line1.getRequired("line1") /** - * The ZIP code of the address. + * The second line of the address. This might be the floor or room number. * - * @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 zip(): String = zip.getRequired("zip") + fun line2(): Optional = line2.getOptional("line2") /** - * The second line of the address. This might be the floor or room number. + * The two-letter United States Postal Service (USPS) abbreviation for the US state, + * province, or region of the address. Required in certain countries. * * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. * if the server responded with an unexpected value). */ - fun line2(): Optional = line2.getOptional("line2") + fun state(): Optional = state.getOptional("state") + + /** + * The ZIP or postal code of the address. Required in certain countries. + * + * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. + * if the server responded with an unexpected value). + */ + fun zip(): Optional = zip.getOptional("zip") /** * Returns the raw JSON value of [city]. @@ -1354,6 +1365,13 @@ private constructor( */ @JsonProperty("city") @ExcludeMissing fun _city(): JsonField = city + /** + * Returns the raw JSON value of [country]. + * + * Unlike [country], this method doesn't throw if the JSON field has an unexpected type. + */ + @JsonProperty("country") @ExcludeMissing fun _country(): JsonField = country + /** * Returns the raw JSON value of [line1]. * @@ -1361,6 +1379,13 @@ private constructor( */ @JsonProperty("line1") @ExcludeMissing fun _line1(): JsonField = line1 + /** + * Returns the raw JSON value of [line2]. + * + * Unlike [line2], this method doesn't throw if the JSON field has an unexpected type. + */ + @JsonProperty("line2") @ExcludeMissing fun _line2(): JsonField = line2 + /** * Returns the raw JSON value of [state]. * @@ -1375,13 +1400,6 @@ private constructor( */ @JsonProperty("zip") @ExcludeMissing fun _zip(): JsonField = zip - /** - * Returns the raw JSON value of [line2]. - * - * Unlike [line2], this method doesn't throw if the JSON field has an unexpected type. - */ - @JsonProperty("line2") @ExcludeMissing fun _line2(): JsonField = line2 - @JsonAnySetter private fun putAdditionalProperty(key: String, value: JsonValue) { additionalProperties.put(key, value) @@ -1402,9 +1420,8 @@ private constructor( * The following fields are required: * ```java * .city() + * .country() * .line1() - * .state() - * .zip() * ``` */ @JvmStatic fun builder() = Builder() @@ -1414,23 +1431,25 @@ private constructor( class Builder internal constructor() { private var city: JsonField? = null + private var country: JsonField? = null private var line1: JsonField? = null - private var state: JsonField? = null - private var zip: JsonField? = null private var line2: JsonField = JsonMissing.of() + private var state: JsonField = JsonMissing.of() + private var zip: JsonField = JsonMissing.of() private var additionalProperties: MutableMap = mutableMapOf() @JvmSynthetic internal fun from(address: Address) = apply { city = address.city + country = address.country line1 = address.line1 + line2 = address.line2 state = address.state zip = address.zip - line2 = address.line2 additionalProperties = address.additionalProperties.toMutableMap() } - /** The city of the address. */ + /** The city, district, town, or village of the address. */ fun city(city: String) = city(JsonField.of(city)) /** @@ -1442,6 +1461,18 @@ private constructor( */ fun city(city: JsonField) = apply { this.city = city } + /** The two-letter ISO 3166-1 alpha-2 code for the country of the address. */ + fun country(country: String) = country(JsonField.of(country)) + + /** + * Sets [Builder.country] to an arbitrary JSON value. + * + * You should usually call [Builder.country] with a well-typed [String] value + * instead. This method is primarily for setting the field to an undocumented or not + * yet supported value. + */ + fun country(country: JsonField) = apply { this.country = country } + /** The first line of the address. This is usually the street number and street. */ fun line1(line1: String) = line1(JsonField.of(line1)) @@ -1454,9 +1485,21 @@ private constructor( */ fun line1(line1: JsonField) = apply { this.line1 = line1 } + /** The second line of the address. This might be the floor or room number. */ + fun line2(line2: String) = line2(JsonField.of(line2)) + /** - * The two-letter United States Postal Service (USPS) abbreviation for the state of - * the address. + * Sets [Builder.line2] to an arbitrary JSON value. + * + * You should usually call [Builder.line2] with a well-typed [String] value instead. + * This method is primarily for setting the field to an undocumented or not yet + * supported value. + */ + fun line2(line2: JsonField) = apply { this.line2 = line2 } + + /** + * The two-letter United States Postal Service (USPS) abbreviation for the US state, + * province, or region of the address. Required in certain countries. */ fun state(state: String) = state(JsonField.of(state)) @@ -1469,7 +1512,7 @@ private constructor( */ fun state(state: JsonField) = apply { this.state = state } - /** The ZIP code of the address. */ + /** The ZIP or postal code of the address. Required in certain countries. */ fun zip(zip: String) = zip(JsonField.of(zip)) /** @@ -1481,18 +1524,6 @@ private constructor( */ fun zip(zip: JsonField) = apply { this.zip = zip } - /** The second line of the address. This might be the floor or room number. */ - fun line2(line2: String) = line2(JsonField.of(line2)) - - /** - * Sets [Builder.line2] to an arbitrary JSON value. - * - * You should usually call [Builder.line2] with a well-typed [String] value instead. - * This method is primarily for setting the field to an undocumented or not yet - * supported value. - */ - fun line2(line2: JsonField) = apply { this.line2 = line2 } - fun additionalProperties(additionalProperties: Map) = apply { this.additionalProperties.clear() putAllAdditionalProperties(additionalProperties) @@ -1523,9 +1554,8 @@ private constructor( * The following fields are required: * ```java * .city() + * .country() * .line1() - * .state() - * .zip() * ``` * * @throws IllegalStateException if any required field is unset. @@ -1533,10 +1563,11 @@ private constructor( fun build(): Address = Address( checkRequired("city", city), + checkRequired("country", country), checkRequired("line1", line1), - checkRequired("state", state), - checkRequired("zip", zip), line2, + state, + zip, additionalProperties.toMutableMap(), ) } @@ -1549,10 +1580,11 @@ private constructor( } city() + country() line1() + line2() state() zip() - line2() validated = true } @@ -1573,10 +1605,11 @@ private constructor( @JvmSynthetic internal fun validity(): Int = (if (city.asKnown().isPresent) 1 else 0) + + (if (country.asKnown().isPresent) 1 else 0) + (if (line1.asKnown().isPresent) 1 else 0) + + (if (line2.asKnown().isPresent) 1 else 0) + (if (state.asKnown().isPresent) 1 else 0) + - (if (zip.asKnown().isPresent) 1 else 0) + - (if (line2.asKnown().isPresent) 1 else 0) + (if (zip.asKnown().isPresent) 1 else 0) override fun equals(other: Any?): Boolean { if (this === other) { @@ -1585,21 +1618,22 @@ private constructor( return other is Address && city == other.city && + country == other.country && line1 == other.line1 && + line2 == other.line2 && state == other.state && zip == other.zip && - line2 == other.line2 && additionalProperties == other.additionalProperties } private val hashCode: Int by lazy { - Objects.hash(city, line1, state, zip, line2, additionalProperties) + Objects.hash(city, country, line1, line2, state, zip, additionalProperties) } override fun hashCode(): Int = hashCode override fun toString() = - "Address{city=$city, line1=$line1, state=$state, zip=$zip, line2=$line2, additionalProperties=$additionalProperties}" + "Address{city=$city, country=$country, line1=$line1, line2=$line2, state=$state, zip=$zip, additionalProperties=$additionalProperties}" } override fun equals(other: Any?): Boolean { @@ -2320,24 +2354,28 @@ private constructor( @JsonCreator(mode = JsonCreator.Mode.DISABLED) private constructor( private val city: JsonField, + private val country: JsonField, private val line1: JsonField, + private val line2: JsonField, private val state: JsonField, private val zip: JsonField, - private val line2: JsonField, private val additionalProperties: MutableMap, ) { @JsonCreator private constructor( @JsonProperty("city") @ExcludeMissing city: JsonField = JsonMissing.of(), + @JsonProperty("country") + @ExcludeMissing + country: JsonField = JsonMissing.of(), @JsonProperty("line1") @ExcludeMissing line1: JsonField = JsonMissing.of(), + @JsonProperty("line2") @ExcludeMissing line2: JsonField = JsonMissing.of(), @JsonProperty("state") @ExcludeMissing state: JsonField = JsonMissing.of(), @JsonProperty("zip") @ExcludeMissing zip: JsonField = JsonMissing.of(), - @JsonProperty("line2") @ExcludeMissing line2: JsonField = JsonMissing.of(), - ) : this(city, line1, state, zip, line2, mutableMapOf()) + ) : this(city, country, line1, line2, state, zip, mutableMapOf()) /** - * The city of the address. + * The city, district, town, or village of the address. * * @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 @@ -2346,40 +2384,47 @@ private constructor( fun city(): String = city.getRequired("city") /** - * The first line of the address. This is usually the street number and street. + * The two-letter ISO 3166-1 alpha-2 code for the country of the address. * * @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 line1(): String = line1.getRequired("line1") + fun country(): String = country.getRequired("country") /** - * The two-letter United States Postal Service (USPS) abbreviation for the state of the - * address. + * The first line of the address. This is usually the street number and street. * * @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 state(): String = state.getRequired("state") + fun line1(): String = line1.getRequired("line1") /** - * The ZIP code of the address. + * The second line of the address. This might be the floor or room number. * - * @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 zip(): String = zip.getRequired("zip") + fun line2(): Optional = line2.getOptional("line2") /** - * The second line of the address. This might be the floor or room number. + * The two-letter United States Postal Service (USPS) abbreviation for the US state, + * province, or region of the address. Required in certain countries. * * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. * if the server responded with an unexpected value). */ - fun line2(): Optional = line2.getOptional("line2") + fun state(): Optional = state.getOptional("state") + + /** + * The ZIP or postal code of the address. Required in certain countries. + * + * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. + * if the server responded with an unexpected value). + */ + fun zip(): Optional = zip.getOptional("zip") /** * Returns the raw JSON value of [city]. @@ -2388,6 +2433,13 @@ private constructor( */ @JsonProperty("city") @ExcludeMissing fun _city(): JsonField = city + /** + * Returns the raw JSON value of [country]. + * + * Unlike [country], this method doesn't throw if the JSON field has an unexpected type. + */ + @JsonProperty("country") @ExcludeMissing fun _country(): JsonField = country + /** * Returns the raw JSON value of [line1]. * @@ -2395,6 +2447,13 @@ private constructor( */ @JsonProperty("line1") @ExcludeMissing fun _line1(): JsonField = line1 + /** + * Returns the raw JSON value of [line2]. + * + * Unlike [line2], this method doesn't throw if the JSON field has an unexpected type. + */ + @JsonProperty("line2") @ExcludeMissing fun _line2(): JsonField = line2 + /** * Returns the raw JSON value of [state]. * @@ -2409,13 +2468,6 @@ private constructor( */ @JsonProperty("zip") @ExcludeMissing fun _zip(): JsonField = zip - /** - * Returns the raw JSON value of [line2]. - * - * Unlike [line2], this method doesn't throw if the JSON field has an unexpected type. - */ - @JsonProperty("line2") @ExcludeMissing fun _line2(): JsonField = line2 - @JsonAnySetter private fun putAdditionalProperty(key: String, value: JsonValue) { additionalProperties.put(key, value) @@ -2436,9 +2488,8 @@ private constructor( * The following fields are required: * ```java * .city() + * .country() * .line1() - * .state() - * .zip() * ``` */ @JvmStatic fun builder() = Builder() @@ -2448,23 +2499,25 @@ private constructor( class Builder internal constructor() { private var city: JsonField? = null + private var country: JsonField? = null private var line1: JsonField? = null - private var state: JsonField? = null - private var zip: JsonField? = null private var line2: JsonField = JsonMissing.of() + private var state: JsonField = JsonMissing.of() + private var zip: JsonField = JsonMissing.of() private var additionalProperties: MutableMap = mutableMapOf() @JvmSynthetic internal fun from(address: Address) = apply { city = address.city + country = address.country line1 = address.line1 + line2 = address.line2 state = address.state zip = address.zip - line2 = address.line2 additionalProperties = address.additionalProperties.toMutableMap() } - /** The city of the address. */ + /** The city, district, town, or village of the address. */ fun city(city: String) = city(JsonField.of(city)) /** @@ -2476,6 +2529,18 @@ private constructor( */ fun city(city: JsonField) = apply { this.city = city } + /** The two-letter ISO 3166-1 alpha-2 code for the country of the address. */ + fun country(country: String) = country(JsonField.of(country)) + + /** + * Sets [Builder.country] to an arbitrary JSON value. + * + * You should usually call [Builder.country] with a well-typed [String] value + * instead. This method is primarily for setting the field to an undocumented or not + * yet supported value. + */ + fun country(country: JsonField) = apply { this.country = country } + /** The first line of the address. This is usually the street number and street. */ fun line1(line1: String) = line1(JsonField.of(line1)) @@ -2488,9 +2553,21 @@ private constructor( */ fun line1(line1: JsonField) = apply { this.line1 = line1 } + /** The second line of the address. This might be the floor or room number. */ + fun line2(line2: String) = line2(JsonField.of(line2)) + /** - * The two-letter United States Postal Service (USPS) abbreviation for the state of - * the address. + * Sets [Builder.line2] to an arbitrary JSON value. + * + * You should usually call [Builder.line2] with a well-typed [String] value instead. + * This method is primarily for setting the field to an undocumented or not yet + * supported value. + */ + fun line2(line2: JsonField) = apply { this.line2 = line2 } + + /** + * The two-letter United States Postal Service (USPS) abbreviation for the US state, + * province, or region of the address. Required in certain countries. */ fun state(state: String) = state(JsonField.of(state)) @@ -2503,7 +2580,7 @@ private constructor( */ fun state(state: JsonField) = apply { this.state = state } - /** The ZIP code of the address. */ + /** The ZIP or postal code of the address. Required in certain countries. */ fun zip(zip: String) = zip(JsonField.of(zip)) /** @@ -2515,18 +2592,6 @@ private constructor( */ fun zip(zip: JsonField) = apply { this.zip = zip } - /** The second line of the address. This might be the floor or room number. */ - fun line2(line2: String) = line2(JsonField.of(line2)) - - /** - * Sets [Builder.line2] to an arbitrary JSON value. - * - * You should usually call [Builder.line2] with a well-typed [String] value instead. - * This method is primarily for setting the field to an undocumented or not yet - * supported value. - */ - fun line2(line2: JsonField) = apply { this.line2 = line2 } - fun additionalProperties(additionalProperties: Map) = apply { this.additionalProperties.clear() putAllAdditionalProperties(additionalProperties) @@ -2557,9 +2622,8 @@ private constructor( * The following fields are required: * ```java * .city() + * .country() * .line1() - * .state() - * .zip() * ``` * * @throws IllegalStateException if any required field is unset. @@ -2567,10 +2631,11 @@ private constructor( fun build(): Address = Address( checkRequired("city", city), + checkRequired("country", country), checkRequired("line1", line1), - checkRequired("state", state), - checkRequired("zip", zip), line2, + state, + zip, additionalProperties.toMutableMap(), ) } @@ -2583,10 +2648,11 @@ private constructor( } city() + country() line1() + line2() state() zip() - line2() validated = true } @@ -2607,10 +2673,11 @@ private constructor( @JvmSynthetic internal fun validity(): Int = (if (city.asKnown().isPresent) 1 else 0) + + (if (country.asKnown().isPresent) 1 else 0) + (if (line1.asKnown().isPresent) 1 else 0) + + (if (line2.asKnown().isPresent) 1 else 0) + (if (state.asKnown().isPresent) 1 else 0) + - (if (zip.asKnown().isPresent) 1 else 0) + - (if (line2.asKnown().isPresent) 1 else 0) + (if (zip.asKnown().isPresent) 1 else 0) override fun equals(other: Any?): Boolean { if (this === other) { @@ -2619,21 +2686,22 @@ private constructor( return other is Address && city == other.city && + country == other.country && line1 == other.line1 && + line2 == other.line2 && state == other.state && zip == other.zip && - line2 == other.line2 && additionalProperties == other.additionalProperties } private val hashCode: Int by lazy { - Objects.hash(city, line1, state, zip, line2, additionalProperties) + Objects.hash(city, country, line1, line2, state, zip, additionalProperties) } override fun hashCode(): Int = hashCode override fun toString() = - "Address{city=$city, line1=$line1, state=$state, zip=$zip, line2=$line2, additionalProperties=$additionalProperties}" + "Address{city=$city, country=$country, line1=$line1, line2=$line2, state=$state, zip=$zip, additionalProperties=$additionalProperties}" } override fun equals(other: Any?): Boolean { diff --git a/increase-java-core/src/test/kotlin/com/increase/api/models/entities/EntityCreateParamsTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/models/entities/EntityCreateParamsTest.kt index 24aeb2076..1745775b6 100644 --- a/increase-java-core/src/test/kotlin/com/increase/api/models/entities/EntityCreateParamsTest.kt +++ b/increase-java-core/src/test/kotlin/com/increase/api/models/entities/EntityCreateParamsTest.kt @@ -19,10 +19,11 @@ internal class EntityCreateParamsTest { .address( EntityCreateParams.Corporation.Address.builder() .city("New York") + .country("x") .line1("33 Liberty Street") + .line2("x") .state("NY") .zip("10045") - .line2("x") .build() ) .addBeneficialOwner( @@ -150,10 +151,11 @@ internal class EntityCreateParamsTest { .address( EntityCreateParams.Joint.Individual.Address.builder() .city("x") + .country("x") .line1("x") + .line2("x") .state("x") .zip("x") - .line2("x") .build() ) .dateOfBirth(LocalDate.parse("2019-12-27")) @@ -205,10 +207,11 @@ internal class EntityCreateParamsTest { .address( EntityCreateParams.NaturalPerson.Address.builder() .city("x") + .country("x") .line1("x") + .line2("x") .state("x") .zip("x") - .line2("x") .build() ) .dateOfBirth(LocalDate.parse("2019-12-27")) @@ -296,10 +299,11 @@ internal class EntityCreateParamsTest { EntityCreateParams.Trust.Trustee.Individual.Address .builder() .city("x") + .country("x") .line1("x") + .line2("x") .state("x") .zip("x") - .line2("x") .build() ) .dateOfBirth(LocalDate.parse("2019-12-27")) @@ -361,10 +365,11 @@ internal class EntityCreateParamsTest { .address( EntityCreateParams.Trust.Grantor.Address.builder() .city("x") + .country("x") .line1("x") + .line2("x") .state("x") .zip("x") - .line2("x") .build() ) .dateOfBirth(LocalDate.parse("2019-12-27")) @@ -425,10 +430,11 @@ internal class EntityCreateParamsTest { .address( EntityCreateParams.Corporation.Address.builder() .city("New York") + .country("x") .line1("33 Liberty Street") + .line2("x") .state("NY") .zip("10045") - .line2("x") .build() ) .addBeneficialOwner( @@ -567,10 +573,11 @@ internal class EntityCreateParamsTest { .address( EntityCreateParams.Joint.Individual.Address.builder() .city("x") + .country("x") .line1("x") + .line2("x") .state("x") .zip("x") - .line2("x") .build() ) .dateOfBirth(LocalDate.parse("2019-12-27")) @@ -624,10 +631,11 @@ internal class EntityCreateParamsTest { .address( EntityCreateParams.NaturalPerson.Address.builder() .city("x") + .country("x") .line1("x") + .line2("x") .state("x") .zip("x") - .line2("x") .build() ) .dateOfBirth(LocalDate.parse("2019-12-27")) @@ -716,10 +724,11 @@ internal class EntityCreateParamsTest { EntityCreateParams.Trust.Trustee.Individual.Address .builder() .city("x") + .country("x") .line1("x") + .line2("x") .state("x") .zip("x") - .line2("x") .build() ) .dateOfBirth(LocalDate.parse("2019-12-27")) @@ -788,10 +797,11 @@ internal class EntityCreateParamsTest { .address( EntityCreateParams.Trust.Grantor.Address.builder() .city("x") + .country("x") .line1("x") + .line2("x") .state("x") .zip("x") - .line2("x") .build() ) .dateOfBirth(LocalDate.parse("2019-12-27")) @@ -850,10 +860,11 @@ internal class EntityCreateParamsTest { .address( EntityCreateParams.Corporation.Address.builder() .city("New York") + .country("x") .line1("33 Liberty Street") + .line2("x") .state("NY") .zip("10045") - .line2("x") .build() ) .addBeneficialOwner( @@ -983,10 +994,11 @@ internal class EntityCreateParamsTest { .address( EntityCreateParams.Joint.Individual.Address.builder() .city("x") + .country("x") .line1("x") + .line2("x") .state("x") .zip("x") - .line2("x") .build() ) .dateOfBirth(LocalDate.parse("2019-12-27")) @@ -1039,10 +1051,11 @@ internal class EntityCreateParamsTest { .address( EntityCreateParams.NaturalPerson.Address.builder() .city("x") + .country("x") .line1("x") + .line2("x") .state("x") .zip("x") - .line2("x") .build() ) .dateOfBirth(LocalDate.parse("2019-12-27")) @@ -1135,10 +1148,11 @@ internal class EntityCreateParamsTest { EntityCreateParams.Trust.Trustee.Individual.Address .builder() .city("x") + .country("x") .line1("x") + .line2("x") .state("x") .zip("x") - .line2("x") .build() ) .dateOfBirth(LocalDate.parse("2019-12-27")) @@ -1200,10 +1214,11 @@ internal class EntityCreateParamsTest { .address( EntityCreateParams.Trust.Grantor.Address.builder() .city("x") + .country("x") .line1("x") + .line2("x") .state("x") .zip("x") - .line2("x") .build() ) .dateOfBirth(LocalDate.parse("2019-12-27")) 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 df2539355..226d91ef2 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 @@ -24,6 +24,7 @@ internal class EntityListPageResponseTest { .address( Entity.Corporation.Address.builder() .city("New York") + .country("US") .line1("33 Liberty Street") .line2(null) .state("NY") @@ -96,6 +97,7 @@ internal class EntityListPageResponseTest { .address( Entity.GovernmentAuthority.Address.builder() .city("New York") + .country("US") .line1("33 Liberty Street") .line2(null) .state("NY") @@ -122,6 +124,7 @@ internal class EntityListPageResponseTest { .address( Entity.Joint.Individual.Address.builder() .city("New York") + .country("US") .line1("33 Liberty Street") .line2(null) .state("NY") @@ -149,6 +152,7 @@ internal class EntityListPageResponseTest { .address( Entity.NaturalPerson.Address.builder() .city("New York") + .country("US") .line1("33 Liberty Street") .line2(null) .state("NY") @@ -203,6 +207,7 @@ internal class EntityListPageResponseTest { .address( Entity.Trust.Address.builder() .city("New York") + .country("US") .line1("33 Liberty Street") .line2(null) .state("NY") @@ -217,6 +222,7 @@ internal class EntityListPageResponseTest { .address( Entity.Trust.Grantor.Address.builder() .city("New York") + .country("US") .line1("33 Liberty Street") .line2(null) .state("NY") @@ -246,6 +252,7 @@ internal class EntityListPageResponseTest { Entity.Trust.Trustee.Individual.Address .builder() .city("New York") + .country("US") .line1("33 Liberty Street") .line2(null) .state("NY") @@ -328,6 +335,7 @@ internal class EntityListPageResponseTest { .address( Entity.Corporation.Address.builder() .city("New York") + .country("US") .line1("33 Liberty Street") .line2(null) .state("NY") @@ -398,6 +406,7 @@ internal class EntityListPageResponseTest { .address( Entity.GovernmentAuthority.Address.builder() .city("New York") + .country("US") .line1("33 Liberty Street") .line2(null) .state("NY") @@ -424,6 +433,7 @@ internal class EntityListPageResponseTest { .address( Entity.Joint.Individual.Address.builder() .city("New York") + .country("US") .line1("33 Liberty Street") .line2(null) .state("NY") @@ -451,6 +461,7 @@ internal class EntityListPageResponseTest { .address( Entity.NaturalPerson.Address.builder() .city("New York") + .country("US") .line1("33 Liberty Street") .line2(null) .state("NY") @@ -505,6 +516,7 @@ internal class EntityListPageResponseTest { .address( Entity.Trust.Address.builder() .city("New York") + .country("US") .line1("33 Liberty Street") .line2(null) .state("NY") @@ -519,6 +531,7 @@ internal class EntityListPageResponseTest { .address( Entity.Trust.Grantor.Address.builder() .city("New York") + .country("US") .line1("33 Liberty Street") .line2(null) .state("NY") @@ -547,6 +560,7 @@ internal class EntityListPageResponseTest { .address( Entity.Trust.Trustee.Individual.Address.builder() .city("New York") + .country("US") .line1("33 Liberty Street") .line2(null) .state("NY") @@ -632,6 +646,7 @@ internal class EntityListPageResponseTest { .address( Entity.Corporation.Address.builder() .city("New York") + .country("US") .line1("33 Liberty Street") .line2(null) .state("NY") @@ -704,6 +719,7 @@ internal class EntityListPageResponseTest { .address( Entity.GovernmentAuthority.Address.builder() .city("New York") + .country("US") .line1("33 Liberty Street") .line2(null) .state("NY") @@ -730,6 +746,7 @@ internal class EntityListPageResponseTest { .address( Entity.Joint.Individual.Address.builder() .city("New York") + .country("US") .line1("33 Liberty Street") .line2(null) .state("NY") @@ -757,6 +774,7 @@ internal class EntityListPageResponseTest { .address( Entity.NaturalPerson.Address.builder() .city("New York") + .country("US") .line1("33 Liberty Street") .line2(null) .state("NY") @@ -811,6 +829,7 @@ internal class EntityListPageResponseTest { .address( Entity.Trust.Address.builder() .city("New York") + .country("US") .line1("33 Liberty Street") .line2(null) .state("NY") @@ -825,6 +844,7 @@ internal class EntityListPageResponseTest { .address( Entity.Trust.Grantor.Address.builder() .city("New York") + .country("US") .line1("33 Liberty Street") .line2(null) .state("NY") @@ -854,6 +874,7 @@ internal class EntityListPageResponseTest { Entity.Trust.Trustee.Individual.Address .builder() .city("New York") + .country("US") .line1("33 Liberty Street") .line2(null) .state("NY") 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 06bf252ca..b108bdd58 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 @@ -22,6 +22,7 @@ internal class EntityTest { .address( Entity.Corporation.Address.builder() .city("New York") + .country("US") .line1("33 Liberty Street") .line2(null) .state("NY") @@ -90,6 +91,7 @@ internal class EntityTest { .address( Entity.GovernmentAuthority.Address.builder() .city("New York") + .country("US") .line1("33 Liberty Street") .line2(null) .state("NY") @@ -116,6 +118,7 @@ internal class EntityTest { .address( Entity.Joint.Individual.Address.builder() .city("New York") + .country("US") .line1("33 Liberty Street") .line2(null) .state("NY") @@ -143,6 +146,7 @@ internal class EntityTest { .address( Entity.NaturalPerson.Address.builder() .city("New York") + .country("US") .line1("33 Liberty Street") .line2(null) .state("NY") @@ -197,6 +201,7 @@ internal class EntityTest { .address( Entity.Trust.Address.builder() .city("New York") + .country("US") .line1("33 Liberty Street") .line2(null) .state("NY") @@ -211,6 +216,7 @@ internal class EntityTest { .address( Entity.Trust.Grantor.Address.builder() .city("New York") + .country("US") .line1("33 Liberty Street") .line2(null) .state("NY") @@ -239,6 +245,7 @@ internal class EntityTest { .address( Entity.Trust.Trustee.Individual.Address.builder() .city("New York") + .country("US") .line1("33 Liberty Street") .line2(null) .state("NY") @@ -309,6 +316,7 @@ internal class EntityTest { .address( Entity.Corporation.Address.builder() .city("New York") + .country("US") .line1("33 Liberty Street") .line2(null) .state("NY") @@ -377,6 +385,7 @@ internal class EntityTest { .address( Entity.GovernmentAuthority.Address.builder() .city("New York") + .country("US") .line1("33 Liberty Street") .line2(null) .state("NY") @@ -404,6 +413,7 @@ internal class EntityTest { .address( Entity.Joint.Individual.Address.builder() .city("New York") + .country("US") .line1("33 Liberty Street") .line2(null) .state("NY") @@ -432,6 +442,7 @@ internal class EntityTest { .address( Entity.NaturalPerson.Address.builder() .city("New York") + .country("US") .line1("33 Liberty Street") .line2(null) .state("NY") @@ -490,6 +501,7 @@ internal class EntityTest { .address( Entity.Trust.Address.builder() .city("New York") + .country("US") .line1("33 Liberty Street") .line2(null) .state("NY") @@ -504,6 +516,7 @@ internal class EntityTest { .address( Entity.Trust.Grantor.Address.builder() .city("New York") + .country("US") .line1("33 Liberty Street") .line2(null) .state("NY") @@ -532,6 +545,7 @@ internal class EntityTest { .address( Entity.Trust.Trustee.Individual.Address.builder() .city("New York") + .country("US") .line1("33 Liberty Street") .line2(null) .state("NY") @@ -606,6 +620,7 @@ internal class EntityTest { .address( Entity.Corporation.Address.builder() .city("New York") + .country("US") .line1("33 Liberty Street") .line2(null) .state("NY") @@ -674,6 +689,7 @@ internal class EntityTest { .address( Entity.GovernmentAuthority.Address.builder() .city("New York") + .country("US") .line1("33 Liberty Street") .line2(null) .state("NY") @@ -700,6 +716,7 @@ internal class EntityTest { .address( Entity.Joint.Individual.Address.builder() .city("New York") + .country("US") .line1("33 Liberty Street") .line2(null) .state("NY") @@ -727,6 +744,7 @@ internal class EntityTest { .address( Entity.NaturalPerson.Address.builder() .city("New York") + .country("US") .line1("33 Liberty Street") .line2(null) .state("NY") @@ -781,6 +799,7 @@ internal class EntityTest { .address( Entity.Trust.Address.builder() .city("New York") + .country("US") .line1("33 Liberty Street") .line2(null) .state("NY") @@ -795,6 +814,7 @@ internal class EntityTest { .address( Entity.Trust.Grantor.Address.builder() .city("New York") + .country("US") .line1("33 Liberty Street") .line2(null) .state("NY") @@ -823,6 +843,7 @@ internal class EntityTest { .address( Entity.Trust.Trustee.Individual.Address.builder() .city("New York") + .country("US") .line1("33 Liberty Street") .line2(null) .state("NY") 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 3100850f4..94d9a2763 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 @@ -17,10 +17,11 @@ internal class EntityUpdateParamsTest { .address( EntityUpdateParams.Corporation.Address.builder() .city("New York") + .country("US") .line1("33 Liberty Street") + .line2("Unit 2") .state("NY") .zip("10045") - .line2("Unit 2") .build() ) .email("dev@stainless.com") @@ -50,10 +51,11 @@ internal class EntityUpdateParamsTest { .address( EntityUpdateParams.NaturalPerson.Address.builder() .city("x") + .country("x") .line1("x") + .line2("x") .state("x") .zip("x") - .line2("x") .build() ) .name("x") @@ -107,10 +109,11 @@ internal class EntityUpdateParamsTest { .address( EntityUpdateParams.Corporation.Address.builder() .city("New York") + .country("US") .line1("33 Liberty Street") + .line2("Unit 2") .state("NY") .zip("10045") - .line2("Unit 2") .build() ) .email("dev@stainless.com") @@ -140,10 +143,11 @@ internal class EntityUpdateParamsTest { .address( EntityUpdateParams.NaturalPerson.Address.builder() .city("x") + .country("x") .line1("x") + .line2("x") .state("x") .zip("x") - .line2("x") .build() ) .name("x") @@ -185,10 +189,11 @@ internal class EntityUpdateParamsTest { .address( EntityUpdateParams.Corporation.Address.builder() .city("New York") + .country("US") .line1("33 Liberty Street") + .line2("Unit 2") .state("NY") .zip("10045") - .line2("Unit 2") .build() ) .email("dev@stainless.com") @@ -221,10 +226,11 @@ internal class EntityUpdateParamsTest { .address( EntityUpdateParams.NaturalPerson.Address.builder() .city("x") + .country("x") .line1("x") + .line2("x") .state("x") .zip("x") - .line2("x") .build() ) .name("x") 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 9a1e2f5cb..e0f7c704c 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 @@ -32,10 +32,11 @@ internal class EntityServiceAsyncTest { .address( EntityCreateParams.Corporation.Address.builder() .city("New York") + .country("x") .line1("33 Liberty Street") + .line2("x") .state("NY") .zip("10045") - .line2("x") .build() ) .addBeneficialOwner( @@ -178,10 +179,11 @@ internal class EntityServiceAsyncTest { .address( EntityCreateParams.Joint.Individual.Address.builder() .city("x") + .country("x") .line1("x") + .line2("x") .state("x") .zip("x") - .line2("x") .build() ) .dateOfBirth(LocalDate.parse("2019-12-27")) @@ -236,10 +238,11 @@ internal class EntityServiceAsyncTest { .address( EntityCreateParams.NaturalPerson.Address.builder() .city("x") + .country("x") .line1("x") + .line2("x") .state("x") .zip("x") - .line2("x") .build() ) .dateOfBirth(LocalDate.parse("2019-12-27")) @@ -332,10 +335,11 @@ internal class EntityServiceAsyncTest { EntityCreateParams.Trust.Trustee.Individual.Address .builder() .city("x") + .country("x") .line1("x") + .line2("x") .state("x") .zip("x") - .line2("x") .build() ) .dateOfBirth(LocalDate.parse("2019-12-27")) @@ -404,10 +408,11 @@ internal class EntityServiceAsyncTest { .address( EntityCreateParams.Trust.Grantor.Address.builder() .city("x") + .country("x") .line1("x") + .line2("x") .state("x") .zip("x") - .line2("x") .build() ) .dateOfBirth(LocalDate.parse("2019-12-27")) @@ -498,10 +503,11 @@ internal class EntityServiceAsyncTest { .address( EntityUpdateParams.Corporation.Address.builder() .city("New York") + .country("US") .line1("33 Liberty Street") + .line2("Unit 2") .state("NY") .zip("10045") - .line2("Unit 2") .build() ) .email("dev@stainless.com") @@ -531,10 +537,11 @@ internal class EntityServiceAsyncTest { .address( EntityUpdateParams.NaturalPerson.Address.builder() .city("x") + .country("x") .line1("x") + .line2("x") .state("x") .zip("x") - .line2("x") .build() ) .name("x") 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 b9c4b466a..d0e86b465 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 @@ -32,10 +32,11 @@ internal class EntityServiceTest { .address( EntityCreateParams.Corporation.Address.builder() .city("New York") + .country("x") .line1("33 Liberty Street") + .line2("x") .state("NY") .zip("10045") - .line2("x") .build() ) .addBeneficialOwner( @@ -178,10 +179,11 @@ internal class EntityServiceTest { .address( EntityCreateParams.Joint.Individual.Address.builder() .city("x") + .country("x") .line1("x") + .line2("x") .state("x") .zip("x") - .line2("x") .build() ) .dateOfBirth(LocalDate.parse("2019-12-27")) @@ -236,10 +238,11 @@ internal class EntityServiceTest { .address( EntityCreateParams.NaturalPerson.Address.builder() .city("x") + .country("x") .line1("x") + .line2("x") .state("x") .zip("x") - .line2("x") .build() ) .dateOfBirth(LocalDate.parse("2019-12-27")) @@ -332,10 +335,11 @@ internal class EntityServiceTest { EntityCreateParams.Trust.Trustee.Individual.Address .builder() .city("x") + .country("x") .line1("x") + .line2("x") .state("x") .zip("x") - .line2("x") .build() ) .dateOfBirth(LocalDate.parse("2019-12-27")) @@ -404,10 +408,11 @@ internal class EntityServiceTest { .address( EntityCreateParams.Trust.Grantor.Address.builder() .city("x") + .country("x") .line1("x") + .line2("x") .state("x") .zip("x") - .line2("x") .build() ) .dateOfBirth(LocalDate.parse("2019-12-27")) @@ -496,10 +501,11 @@ internal class EntityServiceTest { .address( EntityUpdateParams.Corporation.Address.builder() .city("New York") + .country("US") .line1("33 Liberty Street") + .line2("Unit 2") .state("NY") .zip("10045") - .line2("Unit 2") .build() ) .email("dev@stainless.com") @@ -529,10 +535,11 @@ internal class EntityServiceTest { .address( EntityUpdateParams.NaturalPerson.Address.builder() .city("x") + .country("x") .line1("x") + .line2("x") .state("x") .zip("x") - .line2("x") .build() ) .name("x") From 36427dc0f405e3a07e5c298060f851a07ae160f7 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 25 Mar 2026 22:02:07 +0000 Subject: [PATCH 2/2] release: 0.495.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ README.md | 10 +++++----- build.gradle.kts | 2 +- 4 files changed, 15 insertions(+), 7 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index b6f0298a6..830a65746 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.494.0" + ".": "0.495.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index a25e120fb..92df7087d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 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) + +### Features + +* **api:** api update ([3a6646a](https://github.com/Increase/increase-java/commit/3a6646a998f30469c0d7a49b2f25902ed2b35b03)) + ## 0.494.0 (2026-03-25) Full Changelog: [v0.493.0...v0.494.0](https://github.com/Increase/increase-java/compare/v0.493.0...v0.494.0) diff --git a/README.md b/README.md index a3282876f..6bf195c65 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.494.0) -[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.494.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.494.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.495.0) +[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.495.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.495.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.494.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.495.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.494.0") +implementation("com.increase.api:increase-java:0.495.0") ``` ### Maven @@ -33,7 +33,7 @@ implementation("com.increase.api:increase-java:0.494.0") com.increase.api increase-java - 0.494.0 + 0.495.0 ``` diff --git a/build.gradle.kts b/build.gradle.kts index 46629b1af..7e1a01e1c 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -8,7 +8,7 @@ repositories { allprojects { group = "com.increase.api" - version = "0.494.0" // x-release-please-version + version = "0.495.0" // x-release-please-version } subprojects {