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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
configured_endpoints: 258
openapi_spec_hash: 0ea7abef2ca205d64ab8597eea538946
config_hash: b0e46656e84a8c26907fbe6dc8116a3d
configured_endpoints: 260
openapi_spec_hash: 8212916730daf470f100a5c3c5fa1489
config_hash: 3f6bda53c3a322ad2f6e7b5177be7280
Original file line number Diff line number Diff line change
Expand Up @@ -309,10 +309,10 @@ private constructor(
/**
* The name by which the recipient knows you.
*
* @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if the
* server responded with an unexpected value).
* @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 companyName(): Optional<String> = companyName.getOptional("company_name")
fun companyName(): String = companyName.getRequired("company_name")

/**
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which the transfer
Expand Down Expand Up @@ -398,10 +398,10 @@ private constructor(
* The name of the transfer recipient. This value is informational and not verified by the
* recipient's bank.
*
* @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if the
* server responded with an unexpected value).
* @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 individualName(): Optional<String> = individualName.getOptional("individual_name")
fun individualName(): String = individualName.getRequired("individual_name")

/**
* The transfer's network.
Expand Down Expand Up @@ -1199,10 +1199,7 @@ private constructor(
fun companyId(companyId: JsonField<String>) = apply { this.companyId = companyId }

/** The name by which the recipient knows you. */
fun companyName(companyName: String?) = companyName(JsonField.ofNullable(companyName))

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

/**
* Sets [Builder.companyName] to an arbitrary JSON value.
Expand Down Expand Up @@ -1372,12 +1369,7 @@ private constructor(
* The name of the transfer recipient. This value is informational and not verified by the
* recipient's bank.
*/
fun individualName(individualName: String?) =
individualName(JsonField.ofNullable(individualName))

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

/**
* Sets [Builder.individualName] to an arbitrary JSON value.
Expand Down
Loading
Loading