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: 239
openapi_spec_hash: f0a8620e85b9d96f7ebd57a165897ee4
openapi_spec_hash: d69c3c426b210ddc3698bd8dfe135ba7
config_hash: 1ca082e374ef7000e2a5971e8da740e0
Original file line number Diff line number Diff line change
Expand Up @@ -10250,25 +10250,23 @@ private constructor(
) : this(address, dateOfBirth, identification, name, mutableMapOf())

/**
* The person's address.
* The grantor's 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 address(): Address = address.getRequired("address")
fun address(): Optional<Address> = address.getOptional("address")

/**
* The person's date of birth in YYYY-MM-DD format.
* The grantor's date of birth in YYYY-MM-DD format.
*
* @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 dateOfBirth(): LocalDate = dateOfBirth.getRequired("date_of_birth")
fun dateOfBirth(): Optional<LocalDate> = dateOfBirth.getOptional("date_of_birth")

/**
* A means of verifying the person's identity.
* A means of verifying the grantor's identity.
*
* @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g.
* if the server responded with an unexpected value).
Expand All @@ -10277,7 +10275,7 @@ private constructor(
identification.getOptional("identification")

/**
* The person's legal name.
* The grantor's legal name.
*
* @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
Expand Down Expand Up @@ -10365,8 +10363,11 @@ private constructor(
additionalProperties = grantor.additionalProperties.toMutableMap()
}

/** The person's address. */
fun address(address: Address) = address(JsonField.of(address))
/** The grantor's address. */
fun address(address: Address?) = address(JsonField.ofNullable(address))

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

/**
* Sets [Builder.address] to an arbitrary JSON value.
Expand All @@ -10377,8 +10378,13 @@ private constructor(
*/
fun address(address: JsonField<Address>) = apply { this.address = address }

/** The person's date of birth in YYYY-MM-DD format. */
fun dateOfBirth(dateOfBirth: LocalDate) = dateOfBirth(JsonField.of(dateOfBirth))
/** The grantor's date of birth in YYYY-MM-DD format. */
fun dateOfBirth(dateOfBirth: LocalDate?) =
dateOfBirth(JsonField.ofNullable(dateOfBirth))

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

/**
* Sets [Builder.dateOfBirth] to an arbitrary JSON value.
Expand All @@ -10391,7 +10397,7 @@ private constructor(
this.dateOfBirth = dateOfBirth
}

/** A means of verifying the person's identity. */
/** A means of verifying the grantor's identity. */
fun identification(identification: Identification?) =
identification(JsonField.ofNullable(identification))

Expand All @@ -10412,7 +10418,7 @@ private constructor(
this.identification = identification
}

/** The person's legal name. */
/** The grantor's legal name. */
fun name(name: String) = name(JsonField.of(name))

/**
Expand Down Expand Up @@ -10488,7 +10494,7 @@ private constructor(
return@apply
}

address().validate()
address().ifPresent { it.validate() }
dateOfBirth()
identification().ifPresent { it.validate() }
name()
Expand Down Expand Up @@ -10516,7 +10522,7 @@ private constructor(
(identification.asKnown().getOrNull()?.validity() ?: 0) +
(if (name.asKnown().isPresent) 1 else 0)

/** The person's address. */
/** The grantor's address. */
class Address
@JsonCreator(mode = JsonCreator.Mode.DISABLED)
private constructor(
Expand Down Expand Up @@ -10911,7 +10917,7 @@ private constructor(
"Address{city=$city, country=$country, line1=$line1, line2=$line2, state=$state, zip=$zip, additionalProperties=$additionalProperties}"
}

/** A means of verifying the person's identity. */
/** A means of verifying the grantor's identity. */
class Identification
@JsonCreator(mode = JsonCreator.Mode.DISABLED)
private constructor(
Expand All @@ -10931,7 +10937,7 @@ private constructor(
) : this(method, numberLast4, mutableMapOf())

/**
* A method that can be used to verify the individual's identity.
* A method that can be used to verify the grantor's identity.
*
* @throws IncreaseInvalidDataException if the JSON field has an unexpected type or
* is unexpectedly missing or null (e.g. if the server responded with an
Expand All @@ -10941,7 +10947,7 @@ private constructor(

/**
* The last 4 digits of the identification number that can be used to verify the
* individual's identity.
* grantor's identity.
*
* @throws IncreaseInvalidDataException if the JSON field has an unexpected type or
* is unexpectedly missing or null (e.g. if the server responded with an
Expand Down Expand Up @@ -11007,7 +11013,7 @@ private constructor(
additionalProperties = identification.additionalProperties.toMutableMap()
}

/** A method that can be used to verify the individual's identity. */
/** A method that can be used to verify the grantor's identity. */
fun method(method: Method) = method(JsonField.of(method))

/**
Expand All @@ -11021,7 +11027,7 @@ private constructor(

/**
* The last 4 digits of the identification number that can be used to verify the
* individual's identity.
* grantor's identity.
*/
fun numberLast4(numberLast4: String) = numberLast4(JsonField.of(numberLast4))

Expand Down Expand Up @@ -11120,7 +11126,7 @@ private constructor(
(method.asKnown().getOrNull()?.validity() ?: 0) +
(if (numberLast4.asKnown().isPresent) 1 else 0)

/** A method that can be used to verify the individual's identity. */
/** A method that can be used to verify the grantor's identity. */
class Method
@JsonCreator
private constructor(private val value: JsonField<String>) : Enum {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16469,8 +16469,8 @@ private constructor(
) : this(address, dateOfBirth, identification, name, confirmedNoUsTaxId, mutableMapOf())

/**
* The individual's physical address. Mail receiving locations like PO Boxes and PMB's
* are disallowed.
* The grantor's physical address. Mail receiving locations like PO Boxes and PMB's are
* disallowed.
*
* @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
Expand All @@ -16479,7 +16479,7 @@ private constructor(
fun address(): Address = address.getRequired("address")

/**
* The person's date of birth in YYYY-MM-DD format.
* The grantor's date of birth in YYYY-MM-DD format.
*
* @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
Expand All @@ -16497,7 +16497,7 @@ private constructor(
fun identification(): Identification = identification.getRequired("identification")

/**
* The person's legal name.
* The grantor's legal name.
*
* @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
Expand Down Expand Up @@ -16609,8 +16609,8 @@ private constructor(
}

/**
* The individual's physical address. Mail receiving locations like PO Boxes and
* PMB's are disallowed.
* The grantor's physical address. Mail receiving locations like PO Boxes and PMB's
* are disallowed.
*/
fun address(address: Address) = address(JsonField.of(address))

Expand All @@ -16623,7 +16623,7 @@ private constructor(
*/
fun address(address: JsonField<Address>) = apply { this.address = address }

/** The person's date of birth in YYYY-MM-DD format. */
/** The grantor's date of birth in YYYY-MM-DD format. */
fun dateOfBirth(dateOfBirth: LocalDate) = dateOfBirth(JsonField.of(dateOfBirth))

/**
Expand Down Expand Up @@ -16652,7 +16652,7 @@ private constructor(
this.identification = identification
}

/** The person's legal name. */
/** The grantor's legal name. */
fun name(name: String) = name(JsonField.of(name))

/**
Expand Down Expand Up @@ -16780,8 +16780,8 @@ private constructor(
(if (confirmedNoUsTaxId.asKnown().isPresent) 1 else 0)

/**
* The individual's physical address. Mail receiving locations like PO Boxes and PMB's
* are disallowed.
* The grantor's physical address. Mail receiving locations like PO Boxes and PMB's are
* disallowed.
*/
class Address
@JsonCreator(mode = JsonCreator.Mode.DISABLED)
Expand Down
2 changes: 1 addition & 1 deletion scripts/mock

Large diffs are not rendered by default.

Loading