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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
configured_endpoints: 260
openapi_spec_hash: 8212916730daf470f100a5c3c5fa1489
openapi_spec_hash: 57532e19ce76821230cf44fb24a3a556
config_hash: 3f6bda53c3a322ad2f6e7b5177be7280
Original file line number Diff line number Diff line change
Expand Up @@ -5134,6 +5134,7 @@ private constructor(
private constructor(
private val value: JsonField<String>,
private val category: JsonField<Category>,
private val issuedOn: JsonField<LocalDate>,
private val additionalProperties: MutableMap<String, JsonValue>,
) {

Expand All @@ -5143,7 +5144,10 @@ private constructor(
@JsonProperty("category")
@ExcludeMissing
category: JsonField<Category> = JsonMissing.of(),
) : this(value, category, mutableMapOf())
@JsonProperty("issued_on")
@ExcludeMissing
issuedOn: JsonField<LocalDate> = JsonMissing.of(),
) : this(value, category, issuedOn, mutableMapOf())

/**
* The legal identifier itself. For US Employer Identification Numbers, submit nine
Expand All @@ -5165,6 +5169,14 @@ private constructor(
*/
fun category(): Optional<Category> = category.getOptional("category")

/**
* The date on which the legal identifier was issued.
*
* @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g.
* if the server responded with an unexpected value).
*/
fun issuedOn(): Optional<LocalDate> = issuedOn.getOptional("issued_on")

/**
* Returns the raw JSON value of [value].
*
Expand All @@ -5182,6 +5194,16 @@ private constructor(
@ExcludeMissing
fun _category(): JsonField<Category> = category

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

@JsonAnySetter
private fun putAdditionalProperty(key: String, value: JsonValue) {
additionalProperties.put(key, value)
Expand Down Expand Up @@ -5212,12 +5234,14 @@ private constructor(

private var value: JsonField<String>? = null
private var category: JsonField<Category> = JsonMissing.of()
private var issuedOn: JsonField<LocalDate> = JsonMissing.of()
private var additionalProperties: MutableMap<String, JsonValue> = mutableMapOf()

@JvmSynthetic
internal fun from(legalIdentifier: LegalIdentifier) = apply {
value = legalIdentifier.value
category = legalIdentifier.category
issuedOn = legalIdentifier.issuedOn
additionalProperties = legalIdentifier.additionalProperties.toMutableMap()
}

Expand Down Expand Up @@ -5252,6 +5276,18 @@ private constructor(
*/
fun category(category: JsonField<Category>) = apply { this.category = category }

/** The date on which the legal identifier was issued. */
fun issuedOn(issuedOn: LocalDate) = issuedOn(JsonField.of(issuedOn))

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

fun additionalProperties(additionalProperties: Map<String, JsonValue>) = apply {
this.additionalProperties.clear()
putAllAdditionalProperties(additionalProperties)
Expand Down Expand Up @@ -5290,6 +5326,7 @@ private constructor(
LegalIdentifier(
checkRequired("value", value),
category,
issuedOn,
additionalProperties.toMutableMap(),
)
}
Expand All @@ -5313,6 +5350,7 @@ private constructor(

value()
category().ifPresent { it.validate() }
issuedOn()
validated = true
}

Expand All @@ -5333,7 +5371,8 @@ private constructor(
@JvmSynthetic
internal fun validity(): Int =
(if (value.asKnown().isPresent) 1 else 0) +
(category.asKnown().getOrNull()?.validity() ?: 0)
(category.asKnown().getOrNull()?.validity() ?: 0) +
(if (issuedOn.asKnown().isPresent) 1 else 0)

/** The category of the legal identifier. */
class Category @JsonCreator private constructor(private val value: JsonField<String>) :
Expand Down Expand Up @@ -5513,17 +5552,18 @@ private constructor(
return other is LegalIdentifier &&
value == other.value &&
category == other.category &&
issuedOn == other.issuedOn &&
additionalProperties == other.additionalProperties
}

private val hashCode: Int by lazy {
Objects.hash(value, category, additionalProperties)
Objects.hash(value, category, issuedOn, additionalProperties)
}

override fun hashCode(): Int = hashCode

override fun toString() =
"LegalIdentifier{value=$value, category=$category, additionalProperties=$additionalProperties}"
"LegalIdentifier{value=$value, category=$category, issuedOn=$issuedOn, additionalProperties=$additionalProperties}"
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1841,6 +1841,7 @@ private constructor(
private constructor(
private val value: JsonField<String>,
private val category: JsonField<Category>,
private val issuedOn: JsonField<LocalDate>,
private val additionalProperties: MutableMap<String, JsonValue>,
) {

Expand All @@ -1850,7 +1851,10 @@ private constructor(
@JsonProperty("category")
@ExcludeMissing
category: JsonField<Category> = JsonMissing.of(),
) : this(value, category, mutableMapOf())
@JsonProperty("issued_on")
@ExcludeMissing
issuedOn: JsonField<LocalDate> = JsonMissing.of(),
) : this(value, category, issuedOn, mutableMapOf())

/**
* The legal identifier itself. For US Employer Identification Numbers, submit nine
Expand All @@ -1872,6 +1876,14 @@ private constructor(
*/
fun category(): Optional<Category> = category.getOptional("category")

/**
* The date on which the legal identifier was issued.
*
* @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g.
* if the server responded with an unexpected value).
*/
fun issuedOn(): Optional<LocalDate> = issuedOn.getOptional("issued_on")

/**
* Returns the raw JSON value of [value].
*
Expand All @@ -1889,6 +1901,16 @@ private constructor(
@ExcludeMissing
fun _category(): JsonField<Category> = category

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

@JsonAnySetter
private fun putAdditionalProperty(key: String, value: JsonValue) {
additionalProperties.put(key, value)
Expand Down Expand Up @@ -1919,12 +1941,14 @@ private constructor(

private var value: JsonField<String>? = null
private var category: JsonField<Category> = JsonMissing.of()
private var issuedOn: JsonField<LocalDate> = JsonMissing.of()
private var additionalProperties: MutableMap<String, JsonValue> = mutableMapOf()

@JvmSynthetic
internal fun from(legalIdentifier: LegalIdentifier) = apply {
value = legalIdentifier.value
category = legalIdentifier.category
issuedOn = legalIdentifier.issuedOn
additionalProperties = legalIdentifier.additionalProperties.toMutableMap()
}

Expand Down Expand Up @@ -1959,6 +1983,18 @@ private constructor(
*/
fun category(category: JsonField<Category>) = apply { this.category = category }

/** The date on which the legal identifier was issued. */
fun issuedOn(issuedOn: LocalDate) = issuedOn(JsonField.of(issuedOn))

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

fun additionalProperties(additionalProperties: Map<String, JsonValue>) = apply {
this.additionalProperties.clear()
putAllAdditionalProperties(additionalProperties)
Expand Down Expand Up @@ -1997,6 +2033,7 @@ private constructor(
LegalIdentifier(
checkRequired("value", value),
category,
issuedOn,
additionalProperties.toMutableMap(),
)
}
Expand All @@ -2020,6 +2057,7 @@ private constructor(

value()
category().ifPresent { it.validate() }
issuedOn()
validated = true
}

Expand All @@ -2040,7 +2078,8 @@ private constructor(
@JvmSynthetic
internal fun validity(): Int =
(if (value.asKnown().isPresent) 1 else 0) +
(category.asKnown().getOrNull()?.validity() ?: 0)
(category.asKnown().getOrNull()?.validity() ?: 0) +
(if (issuedOn.asKnown().isPresent) 1 else 0)

/** The category of the legal identifier. */
class Category @JsonCreator private constructor(private val value: JsonField<String>) :
Expand Down Expand Up @@ -2220,17 +2259,18 @@ private constructor(
return other is LegalIdentifier &&
value == other.value &&
category == other.category &&
issuedOn == other.issuedOn &&
additionalProperties == other.additionalProperties
}

private val hashCode: Int by lazy {
Objects.hash(value, category, additionalProperties)
Objects.hash(value, category, issuedOn, additionalProperties)
}

override fun hashCode(): Int = hashCode

override fun toString() =
"LegalIdentifier{value=$value, category=$category, additionalProperties=$additionalProperties}"
"LegalIdentifier{value=$value, category=$category, issuedOn=$issuedOn, additionalProperties=$additionalProperties}"
}

override fun equals(other: Any?): Boolean {
Expand Down
Loading
Loading