diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 869c71652..5739e4841 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.296.0" + ".": "0.297.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index f4bfa5a9c..c4ea22888 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 216 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-e692ae6a744df0b2e6df643237f2338fb9afc9f55d456afde4fc392bc61ac438.yml -openapi_spec_hash: 121549528ff41d1a1f7ddb76a3c391de +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-658e39148e80216f2f6064ec405b424afb64c63842e8f6c61f14100bb149d069.yml +openapi_spec_hash: 38618257a4272f341695cd522f3e6dce config_hash: 29e452035e915a07cd64333b10a83077 diff --git a/CHANGELOG.md b/CHANGELOG.md index 727d04cd4..37df74fc3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.297.0 (2025-08-25) + +Full Changelog: [v0.296.0...v0.297.0](https://github.com/Increase/increase-java/compare/v0.296.0...v0.297.0) + +### Features + +* **api:** api update ([9b20d89](https://github.com/Increase/increase-java/commit/9b20d89fc05b930d847996c048159c97ac718bbf)) + ## 0.296.0 (2025-08-25) Full Changelog: [v0.295.1...v0.296.0](https://github.com/Increase/increase-java/compare/v0.295.1...v0.296.0) diff --git a/README.md b/README.md index 0712e30ce..ce6162614 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.296.0) -[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.296.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.296.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.297.0) +[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.297.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.297.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.296.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.297.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.296.0") +implementation("com.increase.api:increase-java:0.297.0") ``` ### Maven @@ -33,7 +33,7 @@ implementation("com.increase.api:increase-java:0.296.0") com.increase.api increase-java - 0.296.0 + 0.297.0 ``` diff --git a/build.gradle.kts b/build.gradle.kts index 2e123a04e..6ab1f3a9a 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -8,7 +8,7 @@ repositories { allprojects { group = "com.increase.api" - version = "0.296.0" // x-release-please-version + version = "0.297.0" // x-release-please-version } subprojects { diff --git a/increase-java-core/src/main/kotlin/com/increase/api/models/inboundwiredrawdownrequests/InboundWireDrawdownRequest.kt b/increase-java-core/src/main/kotlin/com/increase/api/models/inboundwiredrawdownrequests/InboundWireDrawdownRequest.kt index 3ff076b8b..174240702 100644 --- a/increase-java-core/src/main/kotlin/com/increase/api/models/inboundwiredrawdownrequests/InboundWireDrawdownRequest.kt +++ b/increase-java-core/src/main/kotlin/com/increase/api/models/inboundwiredrawdownrequests/InboundWireDrawdownRequest.kt @@ -28,27 +28,25 @@ class InboundWireDrawdownRequest private constructor( private val id: JsonField, private val amount: JsonField, - private val beneficiaryAccountNumber: JsonField, - private val beneficiaryAddressLine1: JsonField, - private val beneficiaryAddressLine2: JsonField, - private val beneficiaryAddressLine3: JsonField, - private val beneficiaryName: JsonField, - private val beneficiaryRoutingNumber: JsonField, private val createdAt: JsonField, + private val creditorAccountNumber: JsonField, + private val creditorAddressLine1: JsonField, + private val creditorAddressLine2: JsonField, + private val creditorAddressLine3: JsonField, + private val creditorName: JsonField, + private val creditorRoutingNumber: JsonField, private val currency: JsonField, - private val messageToRecipient: JsonField, - private val originatorAccountNumber: JsonField, - private val originatorAddressLine1: JsonField, - private val originatorAddressLine2: JsonField, - private val originatorAddressLine3: JsonField, - private val originatorName: JsonField, - private val originatorRoutingNumber: JsonField, - private val originatorToBeneficiaryInformationLine1: JsonField, - private val originatorToBeneficiaryInformationLine2: JsonField, - private val originatorToBeneficiaryInformationLine3: JsonField, - private val originatorToBeneficiaryInformationLine4: JsonField, + private val debtorAddressLine1: JsonField, + private val debtorAddressLine2: JsonField, + private val debtorAddressLine3: JsonField, + private val debtorName: JsonField, + private val endToEndIdentification: JsonField, + private val inputMessageAccountabilityData: JsonField, + private val instructionIdentification: JsonField, private val recipientAccountNumberId: JsonField, private val type: JsonField, + private val uniqueEndToEndTransactionReference: JsonField, + private val unstructuredRemittanceInformation: JsonField, private val additionalProperties: MutableMap, ) { @@ -56,89 +54,81 @@ private constructor( private constructor( @JsonProperty("id") @ExcludeMissing id: JsonField = JsonMissing.of(), @JsonProperty("amount") @ExcludeMissing amount: JsonField = JsonMissing.of(), - @JsonProperty("beneficiary_account_number") + @JsonProperty("created_at") @ExcludeMissing - beneficiaryAccountNumber: JsonField = JsonMissing.of(), - @JsonProperty("beneficiary_address_line1") + createdAt: JsonField = JsonMissing.of(), + @JsonProperty("creditor_account_number") @ExcludeMissing - beneficiaryAddressLine1: JsonField = JsonMissing.of(), - @JsonProperty("beneficiary_address_line2") + creditorAccountNumber: JsonField = JsonMissing.of(), + @JsonProperty("creditor_address_line1") @ExcludeMissing - beneficiaryAddressLine2: JsonField = JsonMissing.of(), - @JsonProperty("beneficiary_address_line3") + creditorAddressLine1: JsonField = JsonMissing.of(), + @JsonProperty("creditor_address_line2") @ExcludeMissing - beneficiaryAddressLine3: JsonField = JsonMissing.of(), - @JsonProperty("beneficiary_name") + creditorAddressLine2: JsonField = JsonMissing.of(), + @JsonProperty("creditor_address_line3") @ExcludeMissing - beneficiaryName: JsonField = JsonMissing.of(), - @JsonProperty("beneficiary_routing_number") + creditorAddressLine3: JsonField = JsonMissing.of(), + @JsonProperty("creditor_name") @ExcludeMissing - beneficiaryRoutingNumber: JsonField = JsonMissing.of(), - @JsonProperty("created_at") + creditorName: JsonField = JsonMissing.of(), + @JsonProperty("creditor_routing_number") @ExcludeMissing - createdAt: JsonField = JsonMissing.of(), + creditorRoutingNumber: JsonField = JsonMissing.of(), @JsonProperty("currency") @ExcludeMissing currency: JsonField = JsonMissing.of(), - @JsonProperty("message_to_recipient") - @ExcludeMissing - messageToRecipient: JsonField = JsonMissing.of(), - @JsonProperty("originator_account_number") - @ExcludeMissing - originatorAccountNumber: JsonField = JsonMissing.of(), - @JsonProperty("originator_address_line1") - @ExcludeMissing - originatorAddressLine1: JsonField = JsonMissing.of(), - @JsonProperty("originator_address_line2") - @ExcludeMissing - originatorAddressLine2: JsonField = JsonMissing.of(), - @JsonProperty("originator_address_line3") + @JsonProperty("debtor_address_line1") @ExcludeMissing - originatorAddressLine3: JsonField = JsonMissing.of(), - @JsonProperty("originator_name") + debtorAddressLine1: JsonField = JsonMissing.of(), + @JsonProperty("debtor_address_line2") @ExcludeMissing - originatorName: JsonField = JsonMissing.of(), - @JsonProperty("originator_routing_number") + debtorAddressLine2: JsonField = JsonMissing.of(), + @JsonProperty("debtor_address_line3") @ExcludeMissing - originatorRoutingNumber: JsonField = JsonMissing.of(), - @JsonProperty("originator_to_beneficiary_information_line1") + debtorAddressLine3: JsonField = JsonMissing.of(), + @JsonProperty("debtor_name") @ExcludeMissing - originatorToBeneficiaryInformationLine1: JsonField = JsonMissing.of(), - @JsonProperty("originator_to_beneficiary_information_line2") + debtorName: JsonField = JsonMissing.of(), + @JsonProperty("end_to_end_identification") @ExcludeMissing - originatorToBeneficiaryInformationLine2: JsonField = JsonMissing.of(), - @JsonProperty("originator_to_beneficiary_information_line3") + endToEndIdentification: JsonField = JsonMissing.of(), + @JsonProperty("input_message_accountability_data") @ExcludeMissing - originatorToBeneficiaryInformationLine3: JsonField = JsonMissing.of(), - @JsonProperty("originator_to_beneficiary_information_line4") + inputMessageAccountabilityData: JsonField = JsonMissing.of(), + @JsonProperty("instruction_identification") @ExcludeMissing - originatorToBeneficiaryInformationLine4: JsonField = JsonMissing.of(), + instructionIdentification: JsonField = JsonMissing.of(), @JsonProperty("recipient_account_number_id") @ExcludeMissing recipientAccountNumberId: JsonField = JsonMissing.of(), @JsonProperty("type") @ExcludeMissing type: JsonField = JsonMissing.of(), + @JsonProperty("unique_end_to_end_transaction_reference") + @ExcludeMissing + uniqueEndToEndTransactionReference: JsonField = JsonMissing.of(), + @JsonProperty("unstructured_remittance_information") + @ExcludeMissing + unstructuredRemittanceInformation: JsonField = JsonMissing.of(), ) : this( id, amount, - beneficiaryAccountNumber, - beneficiaryAddressLine1, - beneficiaryAddressLine2, - beneficiaryAddressLine3, - beneficiaryName, - beneficiaryRoutingNumber, createdAt, + creditorAccountNumber, + creditorAddressLine1, + creditorAddressLine2, + creditorAddressLine3, + creditorName, + creditorRoutingNumber, currency, - messageToRecipient, - originatorAccountNumber, - originatorAddressLine1, - originatorAddressLine2, - originatorAddressLine3, - originatorName, - originatorRoutingNumber, - originatorToBeneficiaryInformationLine1, - originatorToBeneficiaryInformationLine2, - originatorToBeneficiaryInformationLine3, - originatorToBeneficiaryInformationLine4, + debtorAddressLine1, + debtorAddressLine2, + debtorAddressLine3, + debtorName, + endToEndIdentification, + inputMessageAccountabilityData, + instructionIdentification, recipientAccountNumberId, type, + uniqueEndToEndTransactionReference, + unstructuredRemittanceInformation, mutableMapOf(), ) @@ -159,66 +149,66 @@ private constructor( fun amount(): Long = amount.getRequired("amount") /** - * The drawdown request's beneficiary's account number. + * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which the inbound + * wire drawdown requested was created. * * @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 beneficiaryAccountNumber(): String = - beneficiaryAccountNumber.getRequired("beneficiary_account_number") + fun createdAt(): OffsetDateTime = createdAt.getRequired("created_at") /** - * Line 1 of the drawdown request's beneficiary's address. + * The creditor's account number. * - * @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 beneficiaryAddressLine1(): Optional = - beneficiaryAddressLine1.getOptional("beneficiary_address_line1") + fun creditorAccountNumber(): String = + creditorAccountNumber.getRequired("creditor_account_number") /** - * Line 2 of the drawdown request's beneficiary's address. + * A free-form address field set by the sender. * * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if the * server responded with an unexpected value). */ - fun beneficiaryAddressLine2(): Optional = - beneficiaryAddressLine2.getOptional("beneficiary_address_line2") + fun creditorAddressLine1(): Optional = + creditorAddressLine1.getOptional("creditor_address_line1") /** - * Line 3 of the drawdown request's beneficiary's address. + * A free-form address field set by the sender. * * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if the * server responded with an unexpected value). */ - fun beneficiaryAddressLine3(): Optional = - beneficiaryAddressLine3.getOptional("beneficiary_address_line3") + fun creditorAddressLine2(): Optional = + creditorAddressLine2.getOptional("creditor_address_line2") /** - * The drawdown request's beneficiary's name. + * A free-form address field set by the sender. * * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if the * server responded with an unexpected value). */ - fun beneficiaryName(): Optional = beneficiaryName.getOptional("beneficiary_name") + fun creditorAddressLine3(): Optional = + creditorAddressLine3.getOptional("creditor_address_line3") /** - * The drawdown request's beneficiary's routing number. + * A name set by the sender. * - * @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 beneficiaryRoutingNumber(): String = - beneficiaryRoutingNumber.getRequired("beneficiary_routing_number") + fun creditorName(): Optional = creditorName.getOptional("creditor_name") /** - * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which the inbound - * wire drawdown requested was created. + * The creditor's routing 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). */ - fun createdAt(): OffsetDateTime = createdAt.getRequired("created_at") + fun creditorRoutingNumber(): String = + creditorRoutingNumber.getRequired("creditor_routing_number") /** * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the amount being requested. @@ -230,110 +220,68 @@ private constructor( fun currency(): String = currency.getRequired("currency") /** - * A message from the drawdown request's originator. + * A free-form address field set by the sender. * * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if the * server responded with an unexpected value). */ - fun messageToRecipient(): Optional = - messageToRecipient.getOptional("message_to_recipient") + fun debtorAddressLine1(): Optional = + debtorAddressLine1.getOptional("debtor_address_line1") /** - * The drawdown request's originator's account number. + * A free-form address field set by the sender. * * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if the * server responded with an unexpected value). */ - fun originatorAccountNumber(): Optional = - originatorAccountNumber.getOptional("originator_account_number") + fun debtorAddressLine2(): Optional = + debtorAddressLine2.getOptional("debtor_address_line2") /** - * Line 1 of the drawdown request's originator's address. + * A free-form address field set by the sender. * * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if the * server responded with an unexpected value). */ - fun originatorAddressLine1(): Optional = - originatorAddressLine1.getOptional("originator_address_line1") + fun debtorAddressLine3(): Optional = + debtorAddressLine3.getOptional("debtor_address_line3") /** - * Line 2 of the drawdown request's originator's address. + * A name set by the sender. * * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if the * server responded with an unexpected value). */ - fun originatorAddressLine2(): Optional = - originatorAddressLine2.getOptional("originator_address_line2") + fun debtorName(): Optional = debtorName.getOptional("debtor_name") /** - * Line 3 of the drawdown request's originator's address. + * A free-form reference string set by the sender, to help identify the drawdown request. * * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if the * server responded with an unexpected value). */ - fun originatorAddressLine3(): Optional = - originatorAddressLine3.getOptional("originator_address_line3") + fun endToEndIdentification(): Optional = + endToEndIdentification.getOptional("end_to_end_identification") /** - * The drawdown request's originator's name. + * A unique identifier available to the originating and receiving banks, commonly abbreviated as + * IMAD. It is created when the wire is submitted to the Fedwire service and is helpful when + * debugging wires with the originating bank. * * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if the * server responded with an unexpected value). */ - fun originatorName(): Optional = originatorName.getOptional("originator_name") + fun inputMessageAccountabilityData(): Optional = + inputMessageAccountabilityData.getOptional("input_message_accountability_data") /** - * The drawdown request's originator's routing 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). - */ - fun originatorRoutingNumber(): String = - originatorRoutingNumber.getRequired("originator_routing_number") - - /** - * Line 1 of the information conveyed from the originator of the message to the beneficiary. + * The sending bank's identifier for the drawdown request. * * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if the * server responded with an unexpected value). */ - fun originatorToBeneficiaryInformationLine1(): Optional = - originatorToBeneficiaryInformationLine1.getOptional( - "originator_to_beneficiary_information_line1" - ) - - /** - * Line 2 of the information conveyed from the originator of the message to the beneficiary. - * - * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if the - * server responded with an unexpected value). - */ - fun originatorToBeneficiaryInformationLine2(): Optional = - originatorToBeneficiaryInformationLine2.getOptional( - "originator_to_beneficiary_information_line2" - ) - - /** - * Line 3 of the information conveyed from the originator of the message to the beneficiary. - * - * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if the - * server responded with an unexpected value). - */ - fun originatorToBeneficiaryInformationLine3(): Optional = - originatorToBeneficiaryInformationLine3.getOptional( - "originator_to_beneficiary_information_line3" - ) - - /** - * Line 4 of the information conveyed from the originator of the message to the beneficiary. - * - * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if the - * server responded with an unexpected value). - */ - fun originatorToBeneficiaryInformationLine4(): Optional = - originatorToBeneficiaryInformationLine4.getOptional( - "originator_to_beneficiary_information_line4" - ) + fun instructionIdentification(): Optional = + instructionIdentification.getOptional("instruction_identification") /** * The Account Number from which the recipient of this request is being requested to send funds. @@ -353,6 +301,26 @@ private constructor( */ fun type(): Type = type.getRequired("type") + /** + * The Unique End-to-end Transaction Reference + * ([UETR](https://www.swift.com/payments/what-unique-end-end-transaction-reference-uetr)) of + * the drawdown request. + * + * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if the + * server responded with an unexpected value). + */ + fun uniqueEndToEndTransactionReference(): Optional = + uniqueEndToEndTransactionReference.getOptional("unique_end_to_end_transaction_reference") + + /** + * A free-form message set by the sender. + * + * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if the + * server responded with an unexpected value). + */ + fun unstructuredRemittanceInformation(): Optional = + unstructuredRemittanceInformation.getOptional("unstructured_remittance_information") + /** * Returns the raw JSON value of [id]. * @@ -368,72 +336,72 @@ private constructor( @JsonProperty("amount") @ExcludeMissing fun _amount(): JsonField = amount /** - * Returns the raw JSON value of [beneficiaryAccountNumber]. + * Returns the raw JSON value of [createdAt]. * - * Unlike [beneficiaryAccountNumber], this method doesn't throw if the JSON field has an - * unexpected type. + * Unlike [createdAt], this method doesn't throw if the JSON field has an unexpected type. */ - @JsonProperty("beneficiary_account_number") + @JsonProperty("created_at") @ExcludeMissing - fun _beneficiaryAccountNumber(): JsonField = beneficiaryAccountNumber + fun _createdAt(): JsonField = createdAt /** - * Returns the raw JSON value of [beneficiaryAddressLine1]. + * Returns the raw JSON value of [creditorAccountNumber]. * - * Unlike [beneficiaryAddressLine1], this method doesn't throw if the JSON field has an - * unexpected type. + * Unlike [creditorAccountNumber], this method doesn't throw if the JSON field has an unexpected + * type. */ - @JsonProperty("beneficiary_address_line1") + @JsonProperty("creditor_account_number") @ExcludeMissing - fun _beneficiaryAddressLine1(): JsonField = beneficiaryAddressLine1 + fun _creditorAccountNumber(): JsonField = creditorAccountNumber /** - * Returns the raw JSON value of [beneficiaryAddressLine2]. + * Returns the raw JSON value of [creditorAddressLine1]. * - * Unlike [beneficiaryAddressLine2], this method doesn't throw if the JSON field has an - * unexpected type. + * Unlike [creditorAddressLine1], this method doesn't throw if the JSON field has an unexpected + * type. */ - @JsonProperty("beneficiary_address_line2") + @JsonProperty("creditor_address_line1") @ExcludeMissing - fun _beneficiaryAddressLine2(): JsonField = beneficiaryAddressLine2 + fun _creditorAddressLine1(): JsonField = creditorAddressLine1 /** - * Returns the raw JSON value of [beneficiaryAddressLine3]. + * Returns the raw JSON value of [creditorAddressLine2]. * - * Unlike [beneficiaryAddressLine3], this method doesn't throw if the JSON field has an - * unexpected type. + * Unlike [creditorAddressLine2], this method doesn't throw if the JSON field has an unexpected + * type. */ - @JsonProperty("beneficiary_address_line3") + @JsonProperty("creditor_address_line2") @ExcludeMissing - fun _beneficiaryAddressLine3(): JsonField = beneficiaryAddressLine3 + fun _creditorAddressLine2(): JsonField = creditorAddressLine2 /** - * Returns the raw JSON value of [beneficiaryName]. + * Returns the raw JSON value of [creditorAddressLine3]. * - * Unlike [beneficiaryName], this method doesn't throw if the JSON field has an unexpected type. + * Unlike [creditorAddressLine3], this method doesn't throw if the JSON field has an unexpected + * type. */ - @JsonProperty("beneficiary_name") + @JsonProperty("creditor_address_line3") @ExcludeMissing - fun _beneficiaryName(): JsonField = beneficiaryName + fun _creditorAddressLine3(): JsonField = creditorAddressLine3 /** - * Returns the raw JSON value of [beneficiaryRoutingNumber]. + * Returns the raw JSON value of [creditorName]. * - * Unlike [beneficiaryRoutingNumber], this method doesn't throw if the JSON field has an - * unexpected type. + * Unlike [creditorName], this method doesn't throw if the JSON field has an unexpected type. */ - @JsonProperty("beneficiary_routing_number") + @JsonProperty("creditor_name") @ExcludeMissing - fun _beneficiaryRoutingNumber(): JsonField = beneficiaryRoutingNumber + fun _creditorName(): JsonField = creditorName /** - * Returns the raw JSON value of [createdAt]. + * Returns the raw JSON value of [creditorRoutingNumber]. * - * Unlike [createdAt], this method doesn't throw if the JSON field has an unexpected type. + * Unlike [creditorRoutingNumber], this method doesn't throw if the JSON field has an unexpected + * type. */ - @JsonProperty("created_at") + @JsonProperty("creditor_routing_number") @ExcludeMissing - fun _createdAt(): JsonField = createdAt + fun _creditorRoutingNumber(): JsonField = creditorRoutingNumber /** * Returns the raw JSON value of [currency]. @@ -443,134 +411,109 @@ private constructor( @JsonProperty("currency") @ExcludeMissing fun _currency(): JsonField = currency /** - * Returns the raw JSON value of [messageToRecipient]. + * Returns the raw JSON value of [debtorAddressLine1]. * - * Unlike [messageToRecipient], this method doesn't throw if the JSON field has an unexpected + * Unlike [debtorAddressLine1], this method doesn't throw if the JSON field has an unexpected * type. */ - @JsonProperty("message_to_recipient") + @JsonProperty("debtor_address_line1") @ExcludeMissing - fun _messageToRecipient(): JsonField = messageToRecipient + fun _debtorAddressLine1(): JsonField = debtorAddressLine1 /** - * Returns the raw JSON value of [originatorAccountNumber]. + * Returns the raw JSON value of [debtorAddressLine2]. * - * Unlike [originatorAccountNumber], this method doesn't throw if the JSON field has an - * unexpected type. + * Unlike [debtorAddressLine2], this method doesn't throw if the JSON field has an unexpected + * type. */ - @JsonProperty("originator_account_number") + @JsonProperty("debtor_address_line2") @ExcludeMissing - fun _originatorAccountNumber(): JsonField = originatorAccountNumber + fun _debtorAddressLine2(): JsonField = debtorAddressLine2 /** - * Returns the raw JSON value of [originatorAddressLine1]. + * Returns the raw JSON value of [debtorAddressLine3]. * - * Unlike [originatorAddressLine1], this method doesn't throw if the JSON field has an - * unexpected type. + * Unlike [debtorAddressLine3], this method doesn't throw if the JSON field has an unexpected + * type. */ - @JsonProperty("originator_address_line1") + @JsonProperty("debtor_address_line3") @ExcludeMissing - fun _originatorAddressLine1(): JsonField = originatorAddressLine1 + fun _debtorAddressLine3(): JsonField = debtorAddressLine3 /** - * Returns the raw JSON value of [originatorAddressLine2]. + * Returns the raw JSON value of [debtorName]. * - * Unlike [originatorAddressLine2], this method doesn't throw if the JSON field has an - * unexpected type. + * Unlike [debtorName], this method doesn't throw if the JSON field has an unexpected type. */ - @JsonProperty("originator_address_line2") - @ExcludeMissing - fun _originatorAddressLine2(): JsonField = originatorAddressLine2 + @JsonProperty("debtor_name") @ExcludeMissing fun _debtorName(): JsonField = debtorName /** - * Returns the raw JSON value of [originatorAddressLine3]. + * Returns the raw JSON value of [endToEndIdentification]. * - * Unlike [originatorAddressLine3], this method doesn't throw if the JSON field has an + * Unlike [endToEndIdentification], this method doesn't throw if the JSON field has an * unexpected type. */ - @JsonProperty("originator_address_line3") + @JsonProperty("end_to_end_identification") @ExcludeMissing - fun _originatorAddressLine3(): JsonField = originatorAddressLine3 + fun _endToEndIdentification(): JsonField = endToEndIdentification /** - * Returns the raw JSON value of [originatorName]. + * Returns the raw JSON value of [inputMessageAccountabilityData]. * - * Unlike [originatorName], this method doesn't throw if the JSON field has an unexpected type. - */ - @JsonProperty("originator_name") - @ExcludeMissing - fun _originatorName(): JsonField = originatorName - - /** - * Returns the raw JSON value of [originatorRoutingNumber]. - * - * Unlike [originatorRoutingNumber], this method doesn't throw if the JSON field has an + * Unlike [inputMessageAccountabilityData], this method doesn't throw if the JSON field has an * unexpected type. */ - @JsonProperty("originator_routing_number") + @JsonProperty("input_message_accountability_data") @ExcludeMissing - fun _originatorRoutingNumber(): JsonField = originatorRoutingNumber + fun _inputMessageAccountabilityData(): JsonField = inputMessageAccountabilityData /** - * Returns the raw JSON value of [originatorToBeneficiaryInformationLine1]. + * Returns the raw JSON value of [instructionIdentification]. * - * Unlike [originatorToBeneficiaryInformationLine1], this method doesn't throw if the JSON field - * has an unexpected type. + * Unlike [instructionIdentification], this method doesn't throw if the JSON field has an + * unexpected type. */ - @JsonProperty("originator_to_beneficiary_information_line1") + @JsonProperty("instruction_identification") @ExcludeMissing - fun _originatorToBeneficiaryInformationLine1(): JsonField = - originatorToBeneficiaryInformationLine1 + fun _instructionIdentification(): JsonField = instructionIdentification /** - * Returns the raw JSON value of [originatorToBeneficiaryInformationLine2]. + * Returns the raw JSON value of [recipientAccountNumberId]. * - * Unlike [originatorToBeneficiaryInformationLine2], this method doesn't throw if the JSON field - * has an unexpected type. + * Unlike [recipientAccountNumberId], this method doesn't throw if the JSON field has an + * unexpected type. */ - @JsonProperty("originator_to_beneficiary_information_line2") + @JsonProperty("recipient_account_number_id") @ExcludeMissing - fun _originatorToBeneficiaryInformationLine2(): JsonField = - originatorToBeneficiaryInformationLine2 + fun _recipientAccountNumberId(): JsonField = recipientAccountNumberId /** - * Returns the raw JSON value of [originatorToBeneficiaryInformationLine3]. + * Returns the raw JSON value of [type]. * - * Unlike [originatorToBeneficiaryInformationLine3], this method doesn't throw if the JSON field - * has an unexpected type. + * Unlike [type], this method doesn't throw if the JSON field has an unexpected type. */ - @JsonProperty("originator_to_beneficiary_information_line3") - @ExcludeMissing - fun _originatorToBeneficiaryInformationLine3(): JsonField = - originatorToBeneficiaryInformationLine3 + @JsonProperty("type") @ExcludeMissing fun _type(): JsonField = type /** - * Returns the raw JSON value of [originatorToBeneficiaryInformationLine4]. + * Returns the raw JSON value of [uniqueEndToEndTransactionReference]. * - * Unlike [originatorToBeneficiaryInformationLine4], this method doesn't throw if the JSON field - * has an unexpected type. + * Unlike [uniqueEndToEndTransactionReference], this method doesn't throw if the JSON field has + * an unexpected type. */ - @JsonProperty("originator_to_beneficiary_information_line4") + @JsonProperty("unique_end_to_end_transaction_reference") @ExcludeMissing - fun _originatorToBeneficiaryInformationLine4(): JsonField = - originatorToBeneficiaryInformationLine4 + fun _uniqueEndToEndTransactionReference(): JsonField = + uniqueEndToEndTransactionReference /** - * Returns the raw JSON value of [recipientAccountNumberId]. + * Returns the raw JSON value of [unstructuredRemittanceInformation]. * - * Unlike [recipientAccountNumberId], this method doesn't throw if the JSON field has an - * unexpected type. + * Unlike [unstructuredRemittanceInformation], this method doesn't throw if the JSON field has + * an unexpected type. */ - @JsonProperty("recipient_account_number_id") + @JsonProperty("unstructured_remittance_information") @ExcludeMissing - fun _recipientAccountNumberId(): JsonField = recipientAccountNumberId - - /** - * Returns the raw JSON value of [type]. - * - * Unlike [type], this method doesn't throw if the JSON field has an unexpected type. - */ - @JsonProperty("type") @ExcludeMissing fun _type(): JsonField = type + fun _unstructuredRemittanceInformation(): JsonField = unstructuredRemittanceInformation @JsonAnySetter private fun putAdditionalProperty(key: String, value: JsonValue) { @@ -593,27 +536,25 @@ private constructor( * ```java * .id() * .amount() - * .beneficiaryAccountNumber() - * .beneficiaryAddressLine1() - * .beneficiaryAddressLine2() - * .beneficiaryAddressLine3() - * .beneficiaryName() - * .beneficiaryRoutingNumber() * .createdAt() + * .creditorAccountNumber() + * .creditorAddressLine1() + * .creditorAddressLine2() + * .creditorAddressLine3() + * .creditorName() + * .creditorRoutingNumber() * .currency() - * .messageToRecipient() - * .originatorAccountNumber() - * .originatorAddressLine1() - * .originatorAddressLine2() - * .originatorAddressLine3() - * .originatorName() - * .originatorRoutingNumber() - * .originatorToBeneficiaryInformationLine1() - * .originatorToBeneficiaryInformationLine2() - * .originatorToBeneficiaryInformationLine3() - * .originatorToBeneficiaryInformationLine4() + * .debtorAddressLine1() + * .debtorAddressLine2() + * .debtorAddressLine3() + * .debtorName() + * .endToEndIdentification() + * .inputMessageAccountabilityData() + * .instructionIdentification() * .recipientAccountNumberId() * .type() + * .uniqueEndToEndTransactionReference() + * .unstructuredRemittanceInformation() * ``` */ @JvmStatic fun builder() = Builder() @@ -624,58 +565,53 @@ private constructor( private var id: JsonField? = null private var amount: JsonField? = null - private var beneficiaryAccountNumber: JsonField? = null - private var beneficiaryAddressLine1: JsonField? = null - private var beneficiaryAddressLine2: JsonField? = null - private var beneficiaryAddressLine3: JsonField? = null - private var beneficiaryName: JsonField? = null - private var beneficiaryRoutingNumber: JsonField? = null private var createdAt: JsonField? = null + private var creditorAccountNumber: JsonField? = null + private var creditorAddressLine1: JsonField? = null + private var creditorAddressLine2: JsonField? = null + private var creditorAddressLine3: JsonField? = null + private var creditorName: JsonField? = null + private var creditorRoutingNumber: JsonField? = null private var currency: JsonField? = null - private var messageToRecipient: JsonField? = null - private var originatorAccountNumber: JsonField? = null - private var originatorAddressLine1: JsonField? = null - private var originatorAddressLine2: JsonField? = null - private var originatorAddressLine3: JsonField? = null - private var originatorName: JsonField? = null - private var originatorRoutingNumber: JsonField? = null - private var originatorToBeneficiaryInformationLine1: JsonField? = null - private var originatorToBeneficiaryInformationLine2: JsonField? = null - private var originatorToBeneficiaryInformationLine3: JsonField? = null - private var originatorToBeneficiaryInformationLine4: JsonField? = null + private var debtorAddressLine1: JsonField? = null + private var debtorAddressLine2: JsonField? = null + private var debtorAddressLine3: JsonField? = null + private var debtorName: JsonField? = null + private var endToEndIdentification: JsonField? = null + private var inputMessageAccountabilityData: JsonField? = null + private var instructionIdentification: JsonField? = null private var recipientAccountNumberId: JsonField? = null private var type: JsonField? = null + private var uniqueEndToEndTransactionReference: JsonField? = null + private var unstructuredRemittanceInformation: JsonField? = null private var additionalProperties: MutableMap = mutableMapOf() @JvmSynthetic internal fun from(inboundWireDrawdownRequest: InboundWireDrawdownRequest) = apply { id = inboundWireDrawdownRequest.id amount = inboundWireDrawdownRequest.amount - beneficiaryAccountNumber = inboundWireDrawdownRequest.beneficiaryAccountNumber - beneficiaryAddressLine1 = inboundWireDrawdownRequest.beneficiaryAddressLine1 - beneficiaryAddressLine2 = inboundWireDrawdownRequest.beneficiaryAddressLine2 - beneficiaryAddressLine3 = inboundWireDrawdownRequest.beneficiaryAddressLine3 - beneficiaryName = inboundWireDrawdownRequest.beneficiaryName - beneficiaryRoutingNumber = inboundWireDrawdownRequest.beneficiaryRoutingNumber createdAt = inboundWireDrawdownRequest.createdAt + creditorAccountNumber = inboundWireDrawdownRequest.creditorAccountNumber + creditorAddressLine1 = inboundWireDrawdownRequest.creditorAddressLine1 + creditorAddressLine2 = inboundWireDrawdownRequest.creditorAddressLine2 + creditorAddressLine3 = inboundWireDrawdownRequest.creditorAddressLine3 + creditorName = inboundWireDrawdownRequest.creditorName + creditorRoutingNumber = inboundWireDrawdownRequest.creditorRoutingNumber currency = inboundWireDrawdownRequest.currency - messageToRecipient = inboundWireDrawdownRequest.messageToRecipient - originatorAccountNumber = inboundWireDrawdownRequest.originatorAccountNumber - originatorAddressLine1 = inboundWireDrawdownRequest.originatorAddressLine1 - originatorAddressLine2 = inboundWireDrawdownRequest.originatorAddressLine2 - originatorAddressLine3 = inboundWireDrawdownRequest.originatorAddressLine3 - originatorName = inboundWireDrawdownRequest.originatorName - originatorRoutingNumber = inboundWireDrawdownRequest.originatorRoutingNumber - originatorToBeneficiaryInformationLine1 = - inboundWireDrawdownRequest.originatorToBeneficiaryInformationLine1 - originatorToBeneficiaryInformationLine2 = - inboundWireDrawdownRequest.originatorToBeneficiaryInformationLine2 - originatorToBeneficiaryInformationLine3 = - inboundWireDrawdownRequest.originatorToBeneficiaryInformationLine3 - originatorToBeneficiaryInformationLine4 = - inboundWireDrawdownRequest.originatorToBeneficiaryInformationLine4 + debtorAddressLine1 = inboundWireDrawdownRequest.debtorAddressLine1 + debtorAddressLine2 = inboundWireDrawdownRequest.debtorAddressLine2 + debtorAddressLine3 = inboundWireDrawdownRequest.debtorAddressLine3 + debtorName = inboundWireDrawdownRequest.debtorName + endToEndIdentification = inboundWireDrawdownRequest.endToEndIdentification + inputMessageAccountabilityData = + inboundWireDrawdownRequest.inputMessageAccountabilityData + instructionIdentification = inboundWireDrawdownRequest.instructionIdentification recipientAccountNumberId = inboundWireDrawdownRequest.recipientAccountNumberId type = inboundWireDrawdownRequest.type + uniqueEndToEndTransactionReference = + inboundWireDrawdownRequest.uniqueEndToEndTransactionReference + unstructuredRemittanceInformation = + inboundWireDrawdownRequest.unstructuredRemittanceInformation additionalProperties = inboundWireDrawdownRequest.additionalProperties.toMutableMap() } @@ -701,135 +637,133 @@ private constructor( */ fun amount(amount: JsonField) = apply { this.amount = amount } - /** The drawdown request's beneficiary's account number. */ - fun beneficiaryAccountNumber(beneficiaryAccountNumber: String) = - beneficiaryAccountNumber(JsonField.of(beneficiaryAccountNumber)) - /** - * Sets [Builder.beneficiaryAccountNumber] to an arbitrary JSON value. - * - * You should usually call [Builder.beneficiaryAccountNumber] with a well-typed [String] - * value instead. This method is primarily for setting the field to an undocumented or not - * yet supported value. + * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which the inbound + * wire drawdown requested was created. */ - fun beneficiaryAccountNumber(beneficiaryAccountNumber: JsonField) = apply { - this.beneficiaryAccountNumber = beneficiaryAccountNumber - } - - /** Line 1 of the drawdown request's beneficiary's address. */ - fun beneficiaryAddressLine1(beneficiaryAddressLine1: String?) = - beneficiaryAddressLine1(JsonField.ofNullable(beneficiaryAddressLine1)) + fun createdAt(createdAt: OffsetDateTime) = createdAt(JsonField.of(createdAt)) /** - * Alias for calling [Builder.beneficiaryAddressLine1] with - * `beneficiaryAddressLine1.orElse(null)`. + * Sets [Builder.createdAt] to an arbitrary JSON value. + * + * You should usually call [Builder.createdAt] with a well-typed [OffsetDateTime] value + * instead. This method is primarily for setting the field to an undocumented or not yet + * supported value. */ - fun beneficiaryAddressLine1(beneficiaryAddressLine1: Optional) = - beneficiaryAddressLine1(beneficiaryAddressLine1.getOrNull()) + fun createdAt(createdAt: JsonField) = apply { this.createdAt = createdAt } + + /** The creditor's account number. */ + fun creditorAccountNumber(creditorAccountNumber: String) = + creditorAccountNumber(JsonField.of(creditorAccountNumber)) /** - * Sets [Builder.beneficiaryAddressLine1] to an arbitrary JSON value. + * Sets [Builder.creditorAccountNumber] to an arbitrary JSON value. * - * You should usually call [Builder.beneficiaryAddressLine1] with a well-typed [String] - * value instead. This method is primarily for setting the field to an undocumented or not - * yet supported value. + * You should usually call [Builder.creditorAccountNumber] with a well-typed [String] value + * instead. This method is primarily for setting the field to an undocumented or not yet + * supported value. */ - fun beneficiaryAddressLine1(beneficiaryAddressLine1: JsonField) = apply { - this.beneficiaryAddressLine1 = beneficiaryAddressLine1 + fun creditorAccountNumber(creditorAccountNumber: JsonField) = apply { + this.creditorAccountNumber = creditorAccountNumber } - /** Line 2 of the drawdown request's beneficiary's address. */ - fun beneficiaryAddressLine2(beneficiaryAddressLine2: String?) = - beneficiaryAddressLine2(JsonField.ofNullable(beneficiaryAddressLine2)) + /** A free-form address field set by the sender. */ + fun creditorAddressLine1(creditorAddressLine1: String?) = + creditorAddressLine1(JsonField.ofNullable(creditorAddressLine1)) /** - * Alias for calling [Builder.beneficiaryAddressLine2] with - * `beneficiaryAddressLine2.orElse(null)`. + * Alias for calling [Builder.creditorAddressLine1] with + * `creditorAddressLine1.orElse(null)`. */ - fun beneficiaryAddressLine2(beneficiaryAddressLine2: Optional) = - beneficiaryAddressLine2(beneficiaryAddressLine2.getOrNull()) + fun creditorAddressLine1(creditorAddressLine1: Optional) = + creditorAddressLine1(creditorAddressLine1.getOrNull()) /** - * Sets [Builder.beneficiaryAddressLine2] to an arbitrary JSON value. + * Sets [Builder.creditorAddressLine1] to an arbitrary JSON value. * - * You should usually call [Builder.beneficiaryAddressLine2] with a well-typed [String] - * value instead. This method is primarily for setting the field to an undocumented or not - * yet supported value. + * You should usually call [Builder.creditorAddressLine1] with a well-typed [String] value + * instead. This method is primarily for setting the field to an undocumented or not yet + * supported value. */ - fun beneficiaryAddressLine2(beneficiaryAddressLine2: JsonField) = apply { - this.beneficiaryAddressLine2 = beneficiaryAddressLine2 + fun creditorAddressLine1(creditorAddressLine1: JsonField) = apply { + this.creditorAddressLine1 = creditorAddressLine1 } - /** Line 3 of the drawdown request's beneficiary's address. */ - fun beneficiaryAddressLine3(beneficiaryAddressLine3: String?) = - beneficiaryAddressLine3(JsonField.ofNullable(beneficiaryAddressLine3)) + /** A free-form address field set by the sender. */ + fun creditorAddressLine2(creditorAddressLine2: String?) = + creditorAddressLine2(JsonField.ofNullable(creditorAddressLine2)) /** - * Alias for calling [Builder.beneficiaryAddressLine3] with - * `beneficiaryAddressLine3.orElse(null)`. + * Alias for calling [Builder.creditorAddressLine2] with + * `creditorAddressLine2.orElse(null)`. */ - fun beneficiaryAddressLine3(beneficiaryAddressLine3: Optional) = - beneficiaryAddressLine3(beneficiaryAddressLine3.getOrNull()) + fun creditorAddressLine2(creditorAddressLine2: Optional) = + creditorAddressLine2(creditorAddressLine2.getOrNull()) /** - * Sets [Builder.beneficiaryAddressLine3] to an arbitrary JSON value. + * Sets [Builder.creditorAddressLine2] to an arbitrary JSON value. * - * You should usually call [Builder.beneficiaryAddressLine3] with a well-typed [String] - * value instead. This method is primarily for setting the field to an undocumented or not - * yet supported value. + * You should usually call [Builder.creditorAddressLine2] with a well-typed [String] value + * instead. This method is primarily for setting the field to an undocumented or not yet + * supported value. */ - fun beneficiaryAddressLine3(beneficiaryAddressLine3: JsonField) = apply { - this.beneficiaryAddressLine3 = beneficiaryAddressLine3 + fun creditorAddressLine2(creditorAddressLine2: JsonField) = apply { + this.creditorAddressLine2 = creditorAddressLine2 } - /** The drawdown request's beneficiary's name. */ - fun beneficiaryName(beneficiaryName: String?) = - beneficiaryName(JsonField.ofNullable(beneficiaryName)) + /** A free-form address field set by the sender. */ + fun creditorAddressLine3(creditorAddressLine3: String?) = + creditorAddressLine3(JsonField.ofNullable(creditorAddressLine3)) - /** Alias for calling [Builder.beneficiaryName] with `beneficiaryName.orElse(null)`. */ - fun beneficiaryName(beneficiaryName: Optional) = - beneficiaryName(beneficiaryName.getOrNull()) + /** + * Alias for calling [Builder.creditorAddressLine3] with + * `creditorAddressLine3.orElse(null)`. + */ + fun creditorAddressLine3(creditorAddressLine3: Optional) = + creditorAddressLine3(creditorAddressLine3.getOrNull()) /** - * Sets [Builder.beneficiaryName] to an arbitrary JSON value. + * Sets [Builder.creditorAddressLine3] to an arbitrary JSON value. * - * You should usually call [Builder.beneficiaryName] with a well-typed [String] value + * You should usually call [Builder.creditorAddressLine3] with a well-typed [String] value * instead. This method is primarily for setting the field to an undocumented or not yet * supported value. */ - fun beneficiaryName(beneficiaryName: JsonField) = apply { - this.beneficiaryName = beneficiaryName + fun creditorAddressLine3(creditorAddressLine3: JsonField) = apply { + this.creditorAddressLine3 = creditorAddressLine3 } - /** The drawdown request's beneficiary's routing number. */ - fun beneficiaryRoutingNumber(beneficiaryRoutingNumber: String) = - beneficiaryRoutingNumber(JsonField.of(beneficiaryRoutingNumber)) + /** A name set by the sender. */ + fun creditorName(creditorName: String?) = creditorName(JsonField.ofNullable(creditorName)) + + /** Alias for calling [Builder.creditorName] with `creditorName.orElse(null)`. */ + fun creditorName(creditorName: Optional) = creditorName(creditorName.getOrNull()) /** - * Sets [Builder.beneficiaryRoutingNumber] to an arbitrary JSON value. + * Sets [Builder.creditorName] to an arbitrary JSON value. * - * You should usually call [Builder.beneficiaryRoutingNumber] with a well-typed [String] - * value instead. This method is primarily for setting the field to an undocumented or not - * yet supported value. + * You should usually call [Builder.creditorName] with a well-typed [String] value instead. + * This method is primarily for setting the field to an undocumented or not yet supported + * value. */ - fun beneficiaryRoutingNumber(beneficiaryRoutingNumber: JsonField) = apply { - this.beneficiaryRoutingNumber = beneficiaryRoutingNumber + fun creditorName(creditorName: JsonField) = apply { + this.creditorName = creditorName } - /** - * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which the inbound - * wire drawdown requested was created. - */ - fun createdAt(createdAt: OffsetDateTime) = createdAt(JsonField.of(createdAt)) + /** The creditor's routing number. */ + fun creditorRoutingNumber(creditorRoutingNumber: String) = + creditorRoutingNumber(JsonField.of(creditorRoutingNumber)) /** - * Sets [Builder.createdAt] to an arbitrary JSON value. + * Sets [Builder.creditorRoutingNumber] to an arbitrary JSON value. * - * You should usually call [Builder.createdAt] with a well-typed [OffsetDateTime] value + * You should usually call [Builder.creditorRoutingNumber] with a well-typed [String] value * instead. This method is primarily for setting the field to an undocumented or not yet * supported value. */ - fun createdAt(createdAt: JsonField) = apply { this.createdAt = createdAt } + fun creditorRoutingNumber(creditorRoutingNumber: JsonField) = apply { + this.creditorRoutingNumber = creditorRoutingNumber + } /** * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the amount being @@ -845,283 +779,155 @@ private constructor( */ fun currency(currency: JsonField) = apply { this.currency = currency } - /** A message from the drawdown request's originator. */ - fun messageToRecipient(messageToRecipient: String?) = - messageToRecipient(JsonField.ofNullable(messageToRecipient)) - - /** - * Alias for calling [Builder.messageToRecipient] with `messageToRecipient.orElse(null)`. - */ - fun messageToRecipient(messageToRecipient: Optional) = - messageToRecipient(messageToRecipient.getOrNull()) - - /** - * Sets [Builder.messageToRecipient] to an arbitrary JSON value. - * - * You should usually call [Builder.messageToRecipient] with a well-typed [String] value - * instead. This method is primarily for setting the field to an undocumented or not yet - * supported value. - */ - fun messageToRecipient(messageToRecipient: JsonField) = apply { - this.messageToRecipient = messageToRecipient - } - - /** The drawdown request's originator's account number. */ - fun originatorAccountNumber(originatorAccountNumber: String?) = - originatorAccountNumber(JsonField.ofNullable(originatorAccountNumber)) + /** A free-form address field set by the sender. */ + fun debtorAddressLine1(debtorAddressLine1: String?) = + debtorAddressLine1(JsonField.ofNullable(debtorAddressLine1)) /** - * Alias for calling [Builder.originatorAccountNumber] with - * `originatorAccountNumber.orElse(null)`. + * Alias for calling [Builder.debtorAddressLine1] with `debtorAddressLine1.orElse(null)`. */ - fun originatorAccountNumber(originatorAccountNumber: Optional) = - originatorAccountNumber(originatorAccountNumber.getOrNull()) + fun debtorAddressLine1(debtorAddressLine1: Optional) = + debtorAddressLine1(debtorAddressLine1.getOrNull()) /** - * Sets [Builder.originatorAccountNumber] to an arbitrary JSON value. + * Sets [Builder.debtorAddressLine1] to an arbitrary JSON value. * - * You should usually call [Builder.originatorAccountNumber] with a well-typed [String] - * value instead. This method is primarily for setting the field to an undocumented or not - * yet supported value. - */ - fun originatorAccountNumber(originatorAccountNumber: JsonField) = apply { - this.originatorAccountNumber = originatorAccountNumber - } - - /** Line 1 of the drawdown request's originator's address. */ - fun originatorAddressLine1(originatorAddressLine1: String?) = - originatorAddressLine1(JsonField.ofNullable(originatorAddressLine1)) - - /** - * Alias for calling [Builder.originatorAddressLine1] with - * `originatorAddressLine1.orElse(null)`. - */ - fun originatorAddressLine1(originatorAddressLine1: Optional) = - originatorAddressLine1(originatorAddressLine1.getOrNull()) - - /** - * Sets [Builder.originatorAddressLine1] to an arbitrary JSON value. - * - * You should usually call [Builder.originatorAddressLine1] with a well-typed [String] value + * You should usually call [Builder.debtorAddressLine1] with a well-typed [String] value * instead. This method is primarily for setting the field to an undocumented or not yet * supported value. */ - fun originatorAddressLine1(originatorAddressLine1: JsonField) = apply { - this.originatorAddressLine1 = originatorAddressLine1 + fun debtorAddressLine1(debtorAddressLine1: JsonField) = apply { + this.debtorAddressLine1 = debtorAddressLine1 } - /** Line 2 of the drawdown request's originator's address. */ - fun originatorAddressLine2(originatorAddressLine2: String?) = - originatorAddressLine2(JsonField.ofNullable(originatorAddressLine2)) + /** A free-form address field set by the sender. */ + fun debtorAddressLine2(debtorAddressLine2: String?) = + debtorAddressLine2(JsonField.ofNullable(debtorAddressLine2)) /** - * Alias for calling [Builder.originatorAddressLine2] with - * `originatorAddressLine2.orElse(null)`. + * Alias for calling [Builder.debtorAddressLine2] with `debtorAddressLine2.orElse(null)`. */ - fun originatorAddressLine2(originatorAddressLine2: Optional) = - originatorAddressLine2(originatorAddressLine2.getOrNull()) + fun debtorAddressLine2(debtorAddressLine2: Optional) = + debtorAddressLine2(debtorAddressLine2.getOrNull()) /** - * Sets [Builder.originatorAddressLine2] to an arbitrary JSON value. + * Sets [Builder.debtorAddressLine2] to an arbitrary JSON value. * - * You should usually call [Builder.originatorAddressLine2] with a well-typed [String] value + * You should usually call [Builder.debtorAddressLine2] with a well-typed [String] value * instead. This method is primarily for setting the field to an undocumented or not yet * supported value. */ - fun originatorAddressLine2(originatorAddressLine2: JsonField) = apply { - this.originatorAddressLine2 = originatorAddressLine2 + fun debtorAddressLine2(debtorAddressLine2: JsonField) = apply { + this.debtorAddressLine2 = debtorAddressLine2 } - /** Line 3 of the drawdown request's originator's address. */ - fun originatorAddressLine3(originatorAddressLine3: String?) = - originatorAddressLine3(JsonField.ofNullable(originatorAddressLine3)) + /** A free-form address field set by the sender. */ + fun debtorAddressLine3(debtorAddressLine3: String?) = + debtorAddressLine3(JsonField.ofNullable(debtorAddressLine3)) /** - * Alias for calling [Builder.originatorAddressLine3] with - * `originatorAddressLine3.orElse(null)`. - */ - fun originatorAddressLine3(originatorAddressLine3: Optional) = - originatorAddressLine3(originatorAddressLine3.getOrNull()) - - /** - * Sets [Builder.originatorAddressLine3] to an arbitrary JSON value. - * - * You should usually call [Builder.originatorAddressLine3] with a well-typed [String] value - * instead. This method is primarily for setting the field to an undocumented or not yet - * supported value. + * Alias for calling [Builder.debtorAddressLine3] with `debtorAddressLine3.orElse(null)`. */ - fun originatorAddressLine3(originatorAddressLine3: JsonField) = apply { - this.originatorAddressLine3 = originatorAddressLine3 - } - - /** The drawdown request's originator's name. */ - fun originatorName(originatorName: String?) = - originatorName(JsonField.ofNullable(originatorName)) - - /** Alias for calling [Builder.originatorName] with `originatorName.orElse(null)`. */ - fun originatorName(originatorName: Optional) = - originatorName(originatorName.getOrNull()) + fun debtorAddressLine3(debtorAddressLine3: Optional) = + debtorAddressLine3(debtorAddressLine3.getOrNull()) /** - * Sets [Builder.originatorName] to an arbitrary JSON value. + * Sets [Builder.debtorAddressLine3] to an arbitrary JSON value. * - * You should usually call [Builder.originatorName] with a well-typed [String] value + * You should usually call [Builder.debtorAddressLine3] with a well-typed [String] value * instead. This method is primarily for setting the field to an undocumented or not yet * supported value. */ - fun originatorName(originatorName: JsonField) = apply { - this.originatorName = originatorName + fun debtorAddressLine3(debtorAddressLine3: JsonField) = apply { + this.debtorAddressLine3 = debtorAddressLine3 } - /** The drawdown request's originator's routing number. */ - fun originatorRoutingNumber(originatorRoutingNumber: String) = - originatorRoutingNumber(JsonField.of(originatorRoutingNumber)) - - /** - * Sets [Builder.originatorRoutingNumber] to an arbitrary JSON value. - * - * You should usually call [Builder.originatorRoutingNumber] with a well-typed [String] - * value instead. This method is primarily for setting the field to an undocumented or not - * yet supported value. - */ - fun originatorRoutingNumber(originatorRoutingNumber: JsonField) = apply { - this.originatorRoutingNumber = originatorRoutingNumber - } + /** A name set by the sender. */ + fun debtorName(debtorName: String?) = debtorName(JsonField.ofNullable(debtorName)) - /** - * Line 1 of the information conveyed from the originator of the message to the beneficiary. - */ - fun originatorToBeneficiaryInformationLine1( - originatorToBeneficiaryInformationLine1: String? - ) = - originatorToBeneficiaryInformationLine1( - JsonField.ofNullable(originatorToBeneficiaryInformationLine1) - ) + /** Alias for calling [Builder.debtorName] with `debtorName.orElse(null)`. */ + fun debtorName(debtorName: Optional) = debtorName(debtorName.getOrNull()) /** - * Alias for calling [Builder.originatorToBeneficiaryInformationLine1] with - * `originatorToBeneficiaryInformationLine1.orElse(null)`. - */ - fun originatorToBeneficiaryInformationLine1( - originatorToBeneficiaryInformationLine1: Optional - ) = - originatorToBeneficiaryInformationLine1( - originatorToBeneficiaryInformationLine1.getOrNull() - ) - - /** - * Sets [Builder.originatorToBeneficiaryInformationLine1] to an arbitrary JSON value. + * Sets [Builder.debtorName] to an arbitrary JSON value. * - * You should usually call [Builder.originatorToBeneficiaryInformationLine1] with a - * well-typed [String] value instead. This method is primarily for setting the field to an - * undocumented or not yet supported value. + * You should usually call [Builder.debtorName] with a well-typed [String] value instead. + * This method is primarily for setting the field to an undocumented or not yet supported + * value. */ - fun originatorToBeneficiaryInformationLine1( - originatorToBeneficiaryInformationLine1: JsonField - ) = apply { - this.originatorToBeneficiaryInformationLine1 = originatorToBeneficiaryInformationLine1 - } + fun debtorName(debtorName: JsonField) = apply { this.debtorName = debtorName } /** - * Line 2 of the information conveyed from the originator of the message to the beneficiary. + * A free-form reference string set by the sender, to help identify the drawdown request. */ - fun originatorToBeneficiaryInformationLine2( - originatorToBeneficiaryInformationLine2: String? - ) = - originatorToBeneficiaryInformationLine2( - JsonField.ofNullable(originatorToBeneficiaryInformationLine2) - ) + fun endToEndIdentification(endToEndIdentification: String?) = + endToEndIdentification(JsonField.ofNullable(endToEndIdentification)) /** - * Alias for calling [Builder.originatorToBeneficiaryInformationLine2] with - * `originatorToBeneficiaryInformationLine2.orElse(null)`. + * Alias for calling [Builder.endToEndIdentification] with + * `endToEndIdentification.orElse(null)`. */ - fun originatorToBeneficiaryInformationLine2( - originatorToBeneficiaryInformationLine2: Optional - ) = - originatorToBeneficiaryInformationLine2( - originatorToBeneficiaryInformationLine2.getOrNull() - ) + fun endToEndIdentification(endToEndIdentification: Optional) = + endToEndIdentification(endToEndIdentification.getOrNull()) /** - * Sets [Builder.originatorToBeneficiaryInformationLine2] to an arbitrary JSON value. + * Sets [Builder.endToEndIdentification] to an arbitrary JSON value. * - * You should usually call [Builder.originatorToBeneficiaryInformationLine2] with a - * well-typed [String] value instead. This method is primarily for setting the field to an - * undocumented or not yet supported value. + * You should usually call [Builder.endToEndIdentification] with a well-typed [String] value + * instead. This method is primarily for setting the field to an undocumented or not yet + * supported value. */ - fun originatorToBeneficiaryInformationLine2( - originatorToBeneficiaryInformationLine2: JsonField - ) = apply { - this.originatorToBeneficiaryInformationLine2 = originatorToBeneficiaryInformationLine2 + fun endToEndIdentification(endToEndIdentification: JsonField) = apply { + this.endToEndIdentification = endToEndIdentification } /** - * Line 3 of the information conveyed from the originator of the message to the beneficiary. + * A unique identifier available to the originating and receiving banks, commonly + * abbreviated as IMAD. It is created when the wire is submitted to the Fedwire service and + * is helpful when debugging wires with the originating bank. */ - fun originatorToBeneficiaryInformationLine3( - originatorToBeneficiaryInformationLine3: String? - ) = - originatorToBeneficiaryInformationLine3( - JsonField.ofNullable(originatorToBeneficiaryInformationLine3) - ) + fun inputMessageAccountabilityData(inputMessageAccountabilityData: String?) = + inputMessageAccountabilityData(JsonField.ofNullable(inputMessageAccountabilityData)) /** - * Alias for calling [Builder.originatorToBeneficiaryInformationLine3] with - * `originatorToBeneficiaryInformationLine3.orElse(null)`. + * Alias for calling [Builder.inputMessageAccountabilityData] with + * `inputMessageAccountabilityData.orElse(null)`. */ - fun originatorToBeneficiaryInformationLine3( - originatorToBeneficiaryInformationLine3: Optional - ) = - originatorToBeneficiaryInformationLine3( - originatorToBeneficiaryInformationLine3.getOrNull() - ) + fun inputMessageAccountabilityData(inputMessageAccountabilityData: Optional) = + inputMessageAccountabilityData(inputMessageAccountabilityData.getOrNull()) /** - * Sets [Builder.originatorToBeneficiaryInformationLine3] to an arbitrary JSON value. + * Sets [Builder.inputMessageAccountabilityData] to an arbitrary JSON value. * - * You should usually call [Builder.originatorToBeneficiaryInformationLine3] with a - * well-typed [String] value instead. This method is primarily for setting the field to an - * undocumented or not yet supported value. + * You should usually call [Builder.inputMessageAccountabilityData] with a well-typed + * [String] value instead. This method is primarily for setting the field to an undocumented + * or not yet supported value. */ - fun originatorToBeneficiaryInformationLine3( - originatorToBeneficiaryInformationLine3: JsonField - ) = apply { - this.originatorToBeneficiaryInformationLine3 = originatorToBeneficiaryInformationLine3 - } + fun inputMessageAccountabilityData(inputMessageAccountabilityData: JsonField) = + apply { + this.inputMessageAccountabilityData = inputMessageAccountabilityData + } - /** - * Line 4 of the information conveyed from the originator of the message to the beneficiary. - */ - fun originatorToBeneficiaryInformationLine4( - originatorToBeneficiaryInformationLine4: String? - ) = - originatorToBeneficiaryInformationLine4( - JsonField.ofNullable(originatorToBeneficiaryInformationLine4) - ) + /** The sending bank's identifier for the drawdown request. */ + fun instructionIdentification(instructionIdentification: String?) = + instructionIdentification(JsonField.ofNullable(instructionIdentification)) /** - * Alias for calling [Builder.originatorToBeneficiaryInformationLine4] with - * `originatorToBeneficiaryInformationLine4.orElse(null)`. + * Alias for calling [Builder.instructionIdentification] with + * `instructionIdentification.orElse(null)`. */ - fun originatorToBeneficiaryInformationLine4( - originatorToBeneficiaryInformationLine4: Optional - ) = - originatorToBeneficiaryInformationLine4( - originatorToBeneficiaryInformationLine4.getOrNull() - ) + fun instructionIdentification(instructionIdentification: Optional) = + instructionIdentification(instructionIdentification.getOrNull()) /** - * Sets [Builder.originatorToBeneficiaryInformationLine4] to an arbitrary JSON value. + * Sets [Builder.instructionIdentification] to an arbitrary JSON value. * - * You should usually call [Builder.originatorToBeneficiaryInformationLine4] with a - * well-typed [String] value instead. This method is primarily for setting the field to an - * undocumented or not yet supported value. + * You should usually call [Builder.instructionIdentification] with a well-typed [String] + * value instead. This method is primarily for setting the field to an undocumented or not + * yet supported value. */ - fun originatorToBeneficiaryInformationLine4( - originatorToBeneficiaryInformationLine4: JsonField - ) = apply { - this.originatorToBeneficiaryInformationLine4 = originatorToBeneficiaryInformationLine4 + fun instructionIdentification(instructionIdentification: JsonField) = apply { + this.instructionIdentification = instructionIdentification } /** @@ -1156,6 +962,59 @@ private constructor( */ fun type(type: JsonField) = apply { this.type = type } + /** + * The Unique End-to-end Transaction Reference + * ([UETR](https://www.swift.com/payments/what-unique-end-end-transaction-reference-uetr)) + * of the drawdown request. + */ + fun uniqueEndToEndTransactionReference(uniqueEndToEndTransactionReference: String?) = + uniqueEndToEndTransactionReference( + JsonField.ofNullable(uniqueEndToEndTransactionReference) + ) + + /** + * Alias for calling [Builder.uniqueEndToEndTransactionReference] with + * `uniqueEndToEndTransactionReference.orElse(null)`. + */ + fun uniqueEndToEndTransactionReference( + uniqueEndToEndTransactionReference: Optional + ) = uniqueEndToEndTransactionReference(uniqueEndToEndTransactionReference.getOrNull()) + + /** + * Sets [Builder.uniqueEndToEndTransactionReference] to an arbitrary JSON value. + * + * You should usually call [Builder.uniqueEndToEndTransactionReference] with a well-typed + * [String] value instead. This method is primarily for setting the field to an undocumented + * or not yet supported value. + */ + fun uniqueEndToEndTransactionReference( + uniqueEndToEndTransactionReference: JsonField + ) = apply { this.uniqueEndToEndTransactionReference = uniqueEndToEndTransactionReference } + + /** A free-form message set by the sender. */ + fun unstructuredRemittanceInformation(unstructuredRemittanceInformation: String?) = + unstructuredRemittanceInformation( + JsonField.ofNullable(unstructuredRemittanceInformation) + ) + + /** + * Alias for calling [Builder.unstructuredRemittanceInformation] with + * `unstructuredRemittanceInformation.orElse(null)`. + */ + fun unstructuredRemittanceInformation(unstructuredRemittanceInformation: Optional) = + unstructuredRemittanceInformation(unstructuredRemittanceInformation.getOrNull()) + + /** + * Sets [Builder.unstructuredRemittanceInformation] to an arbitrary JSON value. + * + * You should usually call [Builder.unstructuredRemittanceInformation] with a well-typed + * [String] value instead. This method is primarily for setting the field to an undocumented + * or not yet supported value. + */ + fun unstructuredRemittanceInformation( + unstructuredRemittanceInformation: JsonField + ) = apply { this.unstructuredRemittanceInformation = unstructuredRemittanceInformation } + fun additionalProperties(additionalProperties: Map) = apply { this.additionalProperties.clear() putAllAdditionalProperties(additionalProperties) @@ -1184,27 +1043,25 @@ private constructor( * ```java * .id() * .amount() - * .beneficiaryAccountNumber() - * .beneficiaryAddressLine1() - * .beneficiaryAddressLine2() - * .beneficiaryAddressLine3() - * .beneficiaryName() - * .beneficiaryRoutingNumber() * .createdAt() + * .creditorAccountNumber() + * .creditorAddressLine1() + * .creditorAddressLine2() + * .creditorAddressLine3() + * .creditorName() + * .creditorRoutingNumber() * .currency() - * .messageToRecipient() - * .originatorAccountNumber() - * .originatorAddressLine1() - * .originatorAddressLine2() - * .originatorAddressLine3() - * .originatorName() - * .originatorRoutingNumber() - * .originatorToBeneficiaryInformationLine1() - * .originatorToBeneficiaryInformationLine2() - * .originatorToBeneficiaryInformationLine3() - * .originatorToBeneficiaryInformationLine4() + * .debtorAddressLine1() + * .debtorAddressLine2() + * .debtorAddressLine3() + * .debtorName() + * .endToEndIdentification() + * .inputMessageAccountabilityData() + * .instructionIdentification() * .recipientAccountNumberId() * .type() + * .uniqueEndToEndTransactionReference() + * .unstructuredRemittanceInformation() * ``` * * @throws IllegalStateException if any required field is unset. @@ -1213,39 +1070,31 @@ private constructor( InboundWireDrawdownRequest( checkRequired("id", id), checkRequired("amount", amount), - checkRequired("beneficiaryAccountNumber", beneficiaryAccountNumber), - checkRequired("beneficiaryAddressLine1", beneficiaryAddressLine1), - checkRequired("beneficiaryAddressLine2", beneficiaryAddressLine2), - checkRequired("beneficiaryAddressLine3", beneficiaryAddressLine3), - checkRequired("beneficiaryName", beneficiaryName), - checkRequired("beneficiaryRoutingNumber", beneficiaryRoutingNumber), checkRequired("createdAt", createdAt), + checkRequired("creditorAccountNumber", creditorAccountNumber), + checkRequired("creditorAddressLine1", creditorAddressLine1), + checkRequired("creditorAddressLine2", creditorAddressLine2), + checkRequired("creditorAddressLine3", creditorAddressLine3), + checkRequired("creditorName", creditorName), + checkRequired("creditorRoutingNumber", creditorRoutingNumber), checkRequired("currency", currency), - checkRequired("messageToRecipient", messageToRecipient), - checkRequired("originatorAccountNumber", originatorAccountNumber), - checkRequired("originatorAddressLine1", originatorAddressLine1), - checkRequired("originatorAddressLine2", originatorAddressLine2), - checkRequired("originatorAddressLine3", originatorAddressLine3), - checkRequired("originatorName", originatorName), - checkRequired("originatorRoutingNumber", originatorRoutingNumber), - checkRequired( - "originatorToBeneficiaryInformationLine1", - originatorToBeneficiaryInformationLine1, - ), - checkRequired( - "originatorToBeneficiaryInformationLine2", - originatorToBeneficiaryInformationLine2, - ), + checkRequired("debtorAddressLine1", debtorAddressLine1), + checkRequired("debtorAddressLine2", debtorAddressLine2), + checkRequired("debtorAddressLine3", debtorAddressLine3), + checkRequired("debtorName", debtorName), + checkRequired("endToEndIdentification", endToEndIdentification), + checkRequired("inputMessageAccountabilityData", inputMessageAccountabilityData), + checkRequired("instructionIdentification", instructionIdentification), + checkRequired("recipientAccountNumberId", recipientAccountNumberId), + checkRequired("type", type), checkRequired( - "originatorToBeneficiaryInformationLine3", - originatorToBeneficiaryInformationLine3, + "uniqueEndToEndTransactionReference", + uniqueEndToEndTransactionReference, ), checkRequired( - "originatorToBeneficiaryInformationLine4", - originatorToBeneficiaryInformationLine4, + "unstructuredRemittanceInformation", + unstructuredRemittanceInformation, ), - checkRequired("recipientAccountNumberId", recipientAccountNumberId), - checkRequired("type", type), additionalProperties.toMutableMap(), ) } @@ -1259,27 +1108,25 @@ private constructor( id() amount() - beneficiaryAccountNumber() - beneficiaryAddressLine1() - beneficiaryAddressLine2() - beneficiaryAddressLine3() - beneficiaryName() - beneficiaryRoutingNumber() createdAt() + creditorAccountNumber() + creditorAddressLine1() + creditorAddressLine2() + creditorAddressLine3() + creditorName() + creditorRoutingNumber() currency() - messageToRecipient() - originatorAccountNumber() - originatorAddressLine1() - originatorAddressLine2() - originatorAddressLine3() - originatorName() - originatorRoutingNumber() - originatorToBeneficiaryInformationLine1() - originatorToBeneficiaryInformationLine2() - originatorToBeneficiaryInformationLine3() - originatorToBeneficiaryInformationLine4() + debtorAddressLine1() + debtorAddressLine2() + debtorAddressLine3() + debtorName() + endToEndIdentification() + inputMessageAccountabilityData() + instructionIdentification() recipientAccountNumberId() type().validate() + uniqueEndToEndTransactionReference() + unstructuredRemittanceInformation() validated = true } @@ -1300,27 +1147,25 @@ private constructor( internal fun validity(): Int = (if (id.asKnown().isPresent) 1 else 0) + (if (amount.asKnown().isPresent) 1 else 0) + - (if (beneficiaryAccountNumber.asKnown().isPresent) 1 else 0) + - (if (beneficiaryAddressLine1.asKnown().isPresent) 1 else 0) + - (if (beneficiaryAddressLine2.asKnown().isPresent) 1 else 0) + - (if (beneficiaryAddressLine3.asKnown().isPresent) 1 else 0) + - (if (beneficiaryName.asKnown().isPresent) 1 else 0) + - (if (beneficiaryRoutingNumber.asKnown().isPresent) 1 else 0) + (if (createdAt.asKnown().isPresent) 1 else 0) + + (if (creditorAccountNumber.asKnown().isPresent) 1 else 0) + + (if (creditorAddressLine1.asKnown().isPresent) 1 else 0) + + (if (creditorAddressLine2.asKnown().isPresent) 1 else 0) + + (if (creditorAddressLine3.asKnown().isPresent) 1 else 0) + + (if (creditorName.asKnown().isPresent) 1 else 0) + + (if (creditorRoutingNumber.asKnown().isPresent) 1 else 0) + (if (currency.asKnown().isPresent) 1 else 0) + - (if (messageToRecipient.asKnown().isPresent) 1 else 0) + - (if (originatorAccountNumber.asKnown().isPresent) 1 else 0) + - (if (originatorAddressLine1.asKnown().isPresent) 1 else 0) + - (if (originatorAddressLine2.asKnown().isPresent) 1 else 0) + - (if (originatorAddressLine3.asKnown().isPresent) 1 else 0) + - (if (originatorName.asKnown().isPresent) 1 else 0) + - (if (originatorRoutingNumber.asKnown().isPresent) 1 else 0) + - (if (originatorToBeneficiaryInformationLine1.asKnown().isPresent) 1 else 0) + - (if (originatorToBeneficiaryInformationLine2.asKnown().isPresent) 1 else 0) + - (if (originatorToBeneficiaryInformationLine3.asKnown().isPresent) 1 else 0) + - (if (originatorToBeneficiaryInformationLine4.asKnown().isPresent) 1 else 0) + + (if (debtorAddressLine1.asKnown().isPresent) 1 else 0) + + (if (debtorAddressLine2.asKnown().isPresent) 1 else 0) + + (if (debtorAddressLine3.asKnown().isPresent) 1 else 0) + + (if (debtorName.asKnown().isPresent) 1 else 0) + + (if (endToEndIdentification.asKnown().isPresent) 1 else 0) + + (if (inputMessageAccountabilityData.asKnown().isPresent) 1 else 0) + + (if (instructionIdentification.asKnown().isPresent) 1 else 0) + (if (recipientAccountNumberId.asKnown().isPresent) 1 else 0) + - (type.asKnown().getOrNull()?.validity() ?: 0) + (type.asKnown().getOrNull()?.validity() ?: 0) + + (if (uniqueEndToEndTransactionReference.asKnown().isPresent) 1 else 0) + + (if (unstructuredRemittanceInformation.asKnown().isPresent) 1 else 0) /** * A constant representing the object's type. For this resource it will always be @@ -1455,31 +1300,25 @@ private constructor( return other is InboundWireDrawdownRequest && id == other.id && amount == other.amount && - beneficiaryAccountNumber == other.beneficiaryAccountNumber && - beneficiaryAddressLine1 == other.beneficiaryAddressLine1 && - beneficiaryAddressLine2 == other.beneficiaryAddressLine2 && - beneficiaryAddressLine3 == other.beneficiaryAddressLine3 && - beneficiaryName == other.beneficiaryName && - beneficiaryRoutingNumber == other.beneficiaryRoutingNumber && createdAt == other.createdAt && + creditorAccountNumber == other.creditorAccountNumber && + creditorAddressLine1 == other.creditorAddressLine1 && + creditorAddressLine2 == other.creditorAddressLine2 && + creditorAddressLine3 == other.creditorAddressLine3 && + creditorName == other.creditorName && + creditorRoutingNumber == other.creditorRoutingNumber && currency == other.currency && - messageToRecipient == other.messageToRecipient && - originatorAccountNumber == other.originatorAccountNumber && - originatorAddressLine1 == other.originatorAddressLine1 && - originatorAddressLine2 == other.originatorAddressLine2 && - originatorAddressLine3 == other.originatorAddressLine3 && - originatorName == other.originatorName && - originatorRoutingNumber == other.originatorRoutingNumber && - originatorToBeneficiaryInformationLine1 == - other.originatorToBeneficiaryInformationLine1 && - originatorToBeneficiaryInformationLine2 == - other.originatorToBeneficiaryInformationLine2 && - originatorToBeneficiaryInformationLine3 == - other.originatorToBeneficiaryInformationLine3 && - originatorToBeneficiaryInformationLine4 == - other.originatorToBeneficiaryInformationLine4 && + debtorAddressLine1 == other.debtorAddressLine1 && + debtorAddressLine2 == other.debtorAddressLine2 && + debtorAddressLine3 == other.debtorAddressLine3 && + debtorName == other.debtorName && + endToEndIdentification == other.endToEndIdentification && + inputMessageAccountabilityData == other.inputMessageAccountabilityData && + instructionIdentification == other.instructionIdentification && recipientAccountNumberId == other.recipientAccountNumberId && type == other.type && + uniqueEndToEndTransactionReference == other.uniqueEndToEndTransactionReference && + unstructuredRemittanceInformation == other.unstructuredRemittanceInformation && additionalProperties == other.additionalProperties } @@ -1487,27 +1326,25 @@ private constructor( Objects.hash( id, amount, - beneficiaryAccountNumber, - beneficiaryAddressLine1, - beneficiaryAddressLine2, - beneficiaryAddressLine3, - beneficiaryName, - beneficiaryRoutingNumber, createdAt, + creditorAccountNumber, + creditorAddressLine1, + creditorAddressLine2, + creditorAddressLine3, + creditorName, + creditorRoutingNumber, currency, - messageToRecipient, - originatorAccountNumber, - originatorAddressLine1, - originatorAddressLine2, - originatorAddressLine3, - originatorName, - originatorRoutingNumber, - originatorToBeneficiaryInformationLine1, - originatorToBeneficiaryInformationLine2, - originatorToBeneficiaryInformationLine3, - originatorToBeneficiaryInformationLine4, + debtorAddressLine1, + debtorAddressLine2, + debtorAddressLine3, + debtorName, + endToEndIdentification, + inputMessageAccountabilityData, + instructionIdentification, recipientAccountNumberId, type, + uniqueEndToEndTransactionReference, + unstructuredRemittanceInformation, additionalProperties, ) } @@ -1515,5 +1352,5 @@ private constructor( override fun hashCode(): Int = hashCode override fun toString() = - "InboundWireDrawdownRequest{id=$id, amount=$amount, beneficiaryAccountNumber=$beneficiaryAccountNumber, beneficiaryAddressLine1=$beneficiaryAddressLine1, beneficiaryAddressLine2=$beneficiaryAddressLine2, beneficiaryAddressLine3=$beneficiaryAddressLine3, beneficiaryName=$beneficiaryName, beneficiaryRoutingNumber=$beneficiaryRoutingNumber, createdAt=$createdAt, currency=$currency, messageToRecipient=$messageToRecipient, originatorAccountNumber=$originatorAccountNumber, originatorAddressLine1=$originatorAddressLine1, originatorAddressLine2=$originatorAddressLine2, originatorAddressLine3=$originatorAddressLine3, originatorName=$originatorName, originatorRoutingNumber=$originatorRoutingNumber, originatorToBeneficiaryInformationLine1=$originatorToBeneficiaryInformationLine1, originatorToBeneficiaryInformationLine2=$originatorToBeneficiaryInformationLine2, originatorToBeneficiaryInformationLine3=$originatorToBeneficiaryInformationLine3, originatorToBeneficiaryInformationLine4=$originatorToBeneficiaryInformationLine4, recipientAccountNumberId=$recipientAccountNumberId, type=$type, additionalProperties=$additionalProperties}" + "InboundWireDrawdownRequest{id=$id, amount=$amount, createdAt=$createdAt, creditorAccountNumber=$creditorAccountNumber, creditorAddressLine1=$creditorAddressLine1, creditorAddressLine2=$creditorAddressLine2, creditorAddressLine3=$creditorAddressLine3, creditorName=$creditorName, creditorRoutingNumber=$creditorRoutingNumber, currency=$currency, debtorAddressLine1=$debtorAddressLine1, debtorAddressLine2=$debtorAddressLine2, debtorAddressLine3=$debtorAddressLine3, debtorName=$debtorName, endToEndIdentification=$endToEndIdentification, inputMessageAccountabilityData=$inputMessageAccountabilityData, instructionIdentification=$instructionIdentification, recipientAccountNumberId=$recipientAccountNumberId, type=$type, uniqueEndToEndTransactionReference=$uniqueEndToEndTransactionReference, unstructuredRemittanceInformation=$unstructuredRemittanceInformation, additionalProperties=$additionalProperties}" } diff --git a/increase-java-core/src/main/kotlin/com/increase/api/models/simulations/inboundwiredrawdownrequests/InboundWireDrawdownRequestCreateParams.kt b/increase-java-core/src/main/kotlin/com/increase/api/models/simulations/inboundwiredrawdownrequests/InboundWireDrawdownRequestCreateParams.kt index 30c377adf..3745af942 100644 --- a/increase-java-core/src/main/kotlin/com/increase/api/models/simulations/inboundwiredrawdownrequests/InboundWireDrawdownRequestCreateParams.kt +++ b/increase-java-core/src/main/kotlin/com/increase/api/models/simulations/inboundwiredrawdownrequests/InboundWireDrawdownRequestCreateParams.kt @@ -36,20 +36,20 @@ private constructor( fun amount(): Long = body.amount() /** - * The drawdown request's beneficiary's account number. + * The creditor's account 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). */ - fun beneficiaryAccountNumber(): String = body.beneficiaryAccountNumber() + fun creditorAccountNumber(): String = body.creditorAccountNumber() /** - * The drawdown request's beneficiary's routing number. + * The creditor's routing 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). */ - fun beneficiaryRoutingNumber(): String = body.beneficiaryRoutingNumber() + fun creditorRoutingNumber(): String = body.creditorRoutingNumber() /** * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the amount being requested. @@ -61,137 +61,134 @@ private constructor( fun currency(): String = body.currency() /** - * A message from the drawdown request's originator. - * - * @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 messageToRecipient(): String = body.messageToRecipient() - - /** - * The drawdown request's originator's account number. + * The Account Number to which the recipient of this request is being requested to send funds + * from. * * @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 originatorAccountNumber(): String = body.originatorAccountNumber() + fun recipientAccountNumberId(): String = body.recipientAccountNumberId() /** - * The drawdown request's originator's routing number. + * A free-form address field set by the sender representing the first line of the creditor'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 originatorRoutingNumber(): String = body.originatorRoutingNumber() + fun creditorAddressLine1(): Optional = body.creditorAddressLine1() /** - * The Account Number to which the recipient of this request is being requested to send funds - * from. + * A free-form address field set by the sender representing the second line of the creditor'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 recipientAccountNumberId(): String = body.recipientAccountNumberId() + fun creditorAddressLine2(): Optional = body.creditorAddressLine2() /** - * Line 1 of the drawdown request's beneficiary's address. + * A free-form address field set by the sender representing the third line of the creditor's + * address. * * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if the * server responded with an unexpected value). */ - fun beneficiaryAddressLine1(): Optional = body.beneficiaryAddressLine1() + fun creditorAddressLine3(): Optional = body.creditorAddressLine3() /** - * Line 2 of the drawdown request's beneficiary's address. + * A free-form name field set by the sender representing the creditor's name. * * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if the * server responded with an unexpected value). */ - fun beneficiaryAddressLine2(): Optional = body.beneficiaryAddressLine2() + fun creditorName(): Optional = body.creditorName() /** - * Line 3 of the drawdown request's beneficiary's address. + * The debtor's account number. * * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if the * server responded with an unexpected value). */ - fun beneficiaryAddressLine3(): Optional = body.beneficiaryAddressLine3() + fun debtorAccountNumber(): Optional = body.debtorAccountNumber() /** - * The drawdown request's beneficiary's name. + * A free-form address field set by the sender representing the first line of the debtor's + * address. * * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if the * server responded with an unexpected value). */ - fun beneficiaryName(): Optional = body.beneficiaryName() + fun debtorAddressLine1(): Optional = body.debtorAddressLine1() /** - * Line 1 of the drawdown request's originator's address. + * A free-form address field set by the sender representing the second line of the debtor's + * address. * * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if the * server responded with an unexpected value). */ - fun originatorAddressLine1(): Optional = body.originatorAddressLine1() + fun debtorAddressLine2(): Optional = body.debtorAddressLine2() /** - * Line 2 of the drawdown request's originator's address. + * A free-form address field set by the sender. * * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if the * server responded with an unexpected value). */ - fun originatorAddressLine2(): Optional = body.originatorAddressLine2() + fun debtorAddressLine3(): Optional = body.debtorAddressLine3() /** - * Line 3 of the drawdown request's originator's address. + * A free-form name field set by the sender representing the debtor's name. * * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if the * server responded with an unexpected value). */ - fun originatorAddressLine3(): Optional = body.originatorAddressLine3() + fun debtorName(): Optional = body.debtorName() /** - * The drawdown request's originator's name. + * The debtor's routing number. * * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if the * server responded with an unexpected value). */ - fun originatorName(): Optional = body.originatorName() + fun debtorRoutingNumber(): Optional = body.debtorRoutingNumber() /** - * Line 1 of the information conveyed from the originator of the message to the beneficiary. + * A free-form reference string set by the sender, to help identify the transfer. * * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if the * server responded with an unexpected value). */ - fun originatorToBeneficiaryInformationLine1(): Optional = - body.originatorToBeneficiaryInformationLine1() + fun endToEndIdentification(): Optional = body.endToEndIdentification() /** - * Line 2 of the information conveyed from the originator of the message to the beneficiary. + * The sending bank's identifier for the wire transfer. * * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if the * server responded with an unexpected value). */ - fun originatorToBeneficiaryInformationLine2(): Optional = - body.originatorToBeneficiaryInformationLine2() + fun instructionIdentification(): Optional = body.instructionIdentification() /** - * Line 3 of the information conveyed from the originator of the message to the beneficiary. + * The Unique End-to-end Transaction Reference + * ([UETR](https://www.swift.com/payments/what-unique-end-end-transaction-reference-uetr)) of + * the transfer. * * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if the * server responded with an unexpected value). */ - fun originatorToBeneficiaryInformationLine3(): Optional = - body.originatorToBeneficiaryInformationLine3() + fun uniqueEndToEndTransactionReference(): Optional = + body.uniqueEndToEndTransactionReference() /** - * Line 4 of the information conveyed from the originator of the message to the beneficiary. + * A free-form message set by the sender. * * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if the * server responded with an unexpected value). */ - fun originatorToBeneficiaryInformationLine4(): Optional = - body.originatorToBeneficiaryInformationLine4() + fun unstructuredRemittanceInformation(): Optional = + body.unstructuredRemittanceInformation() /** * Returns the raw JSON value of [amount]. @@ -201,20 +198,20 @@ private constructor( fun _amount(): JsonField = body._amount() /** - * Returns the raw JSON value of [beneficiaryAccountNumber]. + * Returns the raw JSON value of [creditorAccountNumber]. * - * Unlike [beneficiaryAccountNumber], this method doesn't throw if the JSON field has an - * unexpected type. + * Unlike [creditorAccountNumber], this method doesn't throw if the JSON field has an unexpected + * type. */ - fun _beneficiaryAccountNumber(): JsonField = body._beneficiaryAccountNumber() + fun _creditorAccountNumber(): JsonField = body._creditorAccountNumber() /** - * Returns the raw JSON value of [beneficiaryRoutingNumber]. + * Returns the raw JSON value of [creditorRoutingNumber]. * - * Unlike [beneficiaryRoutingNumber], this method doesn't throw if the JSON field has an - * unexpected type. + * Unlike [creditorRoutingNumber], this method doesn't throw if the JSON field has an unexpected + * type. */ - fun _beneficiaryRoutingNumber(): JsonField = body._beneficiaryRoutingNumber() + fun _creditorRoutingNumber(): JsonField = body._creditorRoutingNumber() /** * Returns the raw JSON value of [currency]. @@ -224,134 +221,124 @@ private constructor( fun _currency(): JsonField = body._currency() /** - * Returns the raw JSON value of [messageToRecipient]. - * - * Unlike [messageToRecipient], this method doesn't throw if the JSON field has an unexpected - * type. - */ - fun _messageToRecipient(): JsonField = body._messageToRecipient() - - /** - * Returns the raw JSON value of [originatorAccountNumber]. + * Returns the raw JSON value of [recipientAccountNumberId]. * - * Unlike [originatorAccountNumber], this method doesn't throw if the JSON field has an + * Unlike [recipientAccountNumberId], this method doesn't throw if the JSON field has an * unexpected type. */ - fun _originatorAccountNumber(): JsonField = body._originatorAccountNumber() + fun _recipientAccountNumberId(): JsonField = body._recipientAccountNumberId() /** - * Returns the raw JSON value of [originatorRoutingNumber]. + * Returns the raw JSON value of [creditorAddressLine1]. * - * Unlike [originatorRoutingNumber], this method doesn't throw if the JSON field has an - * unexpected type. + * Unlike [creditorAddressLine1], this method doesn't throw if the JSON field has an unexpected + * type. */ - fun _originatorRoutingNumber(): JsonField = body._originatorRoutingNumber() + fun _creditorAddressLine1(): JsonField = body._creditorAddressLine1() /** - * Returns the raw JSON value of [recipientAccountNumberId]. + * Returns the raw JSON value of [creditorAddressLine2]. * - * Unlike [recipientAccountNumberId], this method doesn't throw if the JSON field has an - * unexpected type. + * Unlike [creditorAddressLine2], this method doesn't throw if the JSON field has an unexpected + * type. */ - fun _recipientAccountNumberId(): JsonField = body._recipientAccountNumberId() + fun _creditorAddressLine2(): JsonField = body._creditorAddressLine2() /** - * Returns the raw JSON value of [beneficiaryAddressLine1]. + * Returns the raw JSON value of [creditorAddressLine3]. * - * Unlike [beneficiaryAddressLine1], this method doesn't throw if the JSON field has an - * unexpected type. + * Unlike [creditorAddressLine3], this method doesn't throw if the JSON field has an unexpected + * type. */ - fun _beneficiaryAddressLine1(): JsonField = body._beneficiaryAddressLine1() + fun _creditorAddressLine3(): JsonField = body._creditorAddressLine3() /** - * Returns the raw JSON value of [beneficiaryAddressLine2]. + * Returns the raw JSON value of [creditorName]. * - * Unlike [beneficiaryAddressLine2], this method doesn't throw if the JSON field has an - * unexpected type. + * Unlike [creditorName], this method doesn't throw if the JSON field has an unexpected type. */ - fun _beneficiaryAddressLine2(): JsonField = body._beneficiaryAddressLine2() + fun _creditorName(): JsonField = body._creditorName() /** - * Returns the raw JSON value of [beneficiaryAddressLine3]. + * Returns the raw JSON value of [debtorAccountNumber]. * - * Unlike [beneficiaryAddressLine3], this method doesn't throw if the JSON field has an - * unexpected type. + * Unlike [debtorAccountNumber], this method doesn't throw if the JSON field has an unexpected + * type. */ - fun _beneficiaryAddressLine3(): JsonField = body._beneficiaryAddressLine3() + fun _debtorAccountNumber(): JsonField = body._debtorAccountNumber() /** - * Returns the raw JSON value of [beneficiaryName]. + * Returns the raw JSON value of [debtorAddressLine1]. * - * Unlike [beneficiaryName], this method doesn't throw if the JSON field has an unexpected type. + * Unlike [debtorAddressLine1], this method doesn't throw if the JSON field has an unexpected + * type. */ - fun _beneficiaryName(): JsonField = body._beneficiaryName() + fun _debtorAddressLine1(): JsonField = body._debtorAddressLine1() /** - * Returns the raw JSON value of [originatorAddressLine1]. + * Returns the raw JSON value of [debtorAddressLine2]. * - * Unlike [originatorAddressLine1], this method doesn't throw if the JSON field has an - * unexpected type. + * Unlike [debtorAddressLine2], this method doesn't throw if the JSON field has an unexpected + * type. */ - fun _originatorAddressLine1(): JsonField = body._originatorAddressLine1() + fun _debtorAddressLine2(): JsonField = body._debtorAddressLine2() /** - * Returns the raw JSON value of [originatorAddressLine2]. + * Returns the raw JSON value of [debtorAddressLine3]. * - * Unlike [originatorAddressLine2], this method doesn't throw if the JSON field has an - * unexpected type. + * Unlike [debtorAddressLine3], this method doesn't throw if the JSON field has an unexpected + * type. */ - fun _originatorAddressLine2(): JsonField = body._originatorAddressLine2() + fun _debtorAddressLine3(): JsonField = body._debtorAddressLine3() /** - * Returns the raw JSON value of [originatorAddressLine3]. + * Returns the raw JSON value of [debtorName]. * - * Unlike [originatorAddressLine3], this method doesn't throw if the JSON field has an - * unexpected type. + * Unlike [debtorName], this method doesn't throw if the JSON field has an unexpected type. */ - fun _originatorAddressLine3(): JsonField = body._originatorAddressLine3() + fun _debtorName(): JsonField = body._debtorName() /** - * Returns the raw JSON value of [originatorName]. + * Returns the raw JSON value of [debtorRoutingNumber]. * - * Unlike [originatorName], this method doesn't throw if the JSON field has an unexpected type. + * Unlike [debtorRoutingNumber], this method doesn't throw if the JSON field has an unexpected + * type. */ - fun _originatorName(): JsonField = body._originatorName() + fun _debtorRoutingNumber(): JsonField = body._debtorRoutingNumber() /** - * Returns the raw JSON value of [originatorToBeneficiaryInformationLine1]. + * Returns the raw JSON value of [endToEndIdentification]. * - * Unlike [originatorToBeneficiaryInformationLine1], this method doesn't throw if the JSON field - * has an unexpected type. + * Unlike [endToEndIdentification], this method doesn't throw if the JSON field has an + * unexpected type. */ - fun _originatorToBeneficiaryInformationLine1(): JsonField = - body._originatorToBeneficiaryInformationLine1() + fun _endToEndIdentification(): JsonField = body._endToEndIdentification() /** - * Returns the raw JSON value of [originatorToBeneficiaryInformationLine2]. + * Returns the raw JSON value of [instructionIdentification]. * - * Unlike [originatorToBeneficiaryInformationLine2], this method doesn't throw if the JSON field - * has an unexpected type. + * Unlike [instructionIdentification], this method doesn't throw if the JSON field has an + * unexpected type. */ - fun _originatorToBeneficiaryInformationLine2(): JsonField = - body._originatorToBeneficiaryInformationLine2() + fun _instructionIdentification(): JsonField = body._instructionIdentification() /** - * Returns the raw JSON value of [originatorToBeneficiaryInformationLine3]. + * Returns the raw JSON value of [uniqueEndToEndTransactionReference]. * - * Unlike [originatorToBeneficiaryInformationLine3], this method doesn't throw if the JSON field - * has an unexpected type. + * Unlike [uniqueEndToEndTransactionReference], this method doesn't throw if the JSON field has + * an unexpected type. */ - fun _originatorToBeneficiaryInformationLine3(): JsonField = - body._originatorToBeneficiaryInformationLine3() + fun _uniqueEndToEndTransactionReference(): JsonField = + body._uniqueEndToEndTransactionReference() /** - * Returns the raw JSON value of [originatorToBeneficiaryInformationLine4]. + * Returns the raw JSON value of [unstructuredRemittanceInformation]. * - * Unlike [originatorToBeneficiaryInformationLine4], this method doesn't throw if the JSON field - * has an unexpected type. + * Unlike [unstructuredRemittanceInformation], this method doesn't throw if the JSON field has + * an unexpected type. */ - fun _originatorToBeneficiaryInformationLine4(): JsonField = - body._originatorToBeneficiaryInformationLine4() + fun _unstructuredRemittanceInformation(): JsonField = + body._unstructuredRemittanceInformation() fun _additionalBodyProperties(): Map = body._additionalProperties() @@ -372,12 +359,9 @@ private constructor( * The following fields are required: * ```java * .amount() - * .beneficiaryAccountNumber() - * .beneficiaryRoutingNumber() + * .creditorAccountNumber() + * .creditorRoutingNumber() * .currency() - * .messageToRecipient() - * .originatorAccountNumber() - * .originatorRoutingNumber() * .recipientAccountNumberId() * ``` */ @@ -407,10 +391,10 @@ private constructor( * This is generally only useful if you are already constructing the body separately. * Otherwise, it's more convenient to use the top-level setters instead: * - [amount] - * - [beneficiaryAccountNumber] - * - [beneficiaryRoutingNumber] + * - [creditorAccountNumber] + * - [creditorRoutingNumber] * - [currency] - * - [messageToRecipient] + * - [recipientAccountNumberId] * - etc. */ fun body(body: Body) = apply { this.body = body.toBuilder() } @@ -426,36 +410,36 @@ private constructor( */ fun amount(amount: JsonField) = apply { body.amount(amount) } - /** The drawdown request's beneficiary's account number. */ - fun beneficiaryAccountNumber(beneficiaryAccountNumber: String) = apply { - body.beneficiaryAccountNumber(beneficiaryAccountNumber) + /** The creditor's account number. */ + fun creditorAccountNumber(creditorAccountNumber: String) = apply { + body.creditorAccountNumber(creditorAccountNumber) } /** - * Sets [Builder.beneficiaryAccountNumber] to an arbitrary JSON value. + * Sets [Builder.creditorAccountNumber] to an arbitrary JSON value. * - * You should usually call [Builder.beneficiaryAccountNumber] with a well-typed [String] - * value instead. This method is primarily for setting the field to an undocumented or not - * yet supported value. + * You should usually call [Builder.creditorAccountNumber] with a well-typed [String] value + * instead. This method is primarily for setting the field to an undocumented or not yet + * supported value. */ - fun beneficiaryAccountNumber(beneficiaryAccountNumber: JsonField) = apply { - body.beneficiaryAccountNumber(beneficiaryAccountNumber) + fun creditorAccountNumber(creditorAccountNumber: JsonField) = apply { + body.creditorAccountNumber(creditorAccountNumber) } - /** The drawdown request's beneficiary's routing number. */ - fun beneficiaryRoutingNumber(beneficiaryRoutingNumber: String) = apply { - body.beneficiaryRoutingNumber(beneficiaryRoutingNumber) + /** The creditor's routing number. */ + fun creditorRoutingNumber(creditorRoutingNumber: String) = apply { + body.creditorRoutingNumber(creditorRoutingNumber) } /** - * Sets [Builder.beneficiaryRoutingNumber] to an arbitrary JSON value. + * Sets [Builder.creditorRoutingNumber] to an arbitrary JSON value. * - * You should usually call [Builder.beneficiaryRoutingNumber] with a well-typed [String] - * value instead. This method is primarily for setting the field to an undocumented or not - * yet supported value. + * You should usually call [Builder.creditorRoutingNumber] with a well-typed [String] value + * instead. This method is primarily for setting the field to an undocumented or not yet + * supported value. */ - fun beneficiaryRoutingNumber(beneficiaryRoutingNumber: JsonField) = apply { - body.beneficiaryRoutingNumber(beneficiaryRoutingNumber) + fun creditorRoutingNumber(creditorRoutingNumber: JsonField) = apply { + body.creditorRoutingNumber(creditorRoutingNumber) } /** @@ -472,286 +456,261 @@ private constructor( */ fun currency(currency: JsonField) = apply { body.currency(currency) } - /** A message from the drawdown request's originator. */ - fun messageToRecipient(messageToRecipient: String) = apply { - body.messageToRecipient(messageToRecipient) - } - /** - * Sets [Builder.messageToRecipient] to an arbitrary JSON value. - * - * You should usually call [Builder.messageToRecipient] with a well-typed [String] value - * instead. This method is primarily for setting the field to an undocumented or not yet - * supported value. + * The Account Number to which the recipient of this request is being requested to send + * funds from. */ - fun messageToRecipient(messageToRecipient: JsonField) = apply { - body.messageToRecipient(messageToRecipient) - } - - /** The drawdown request's originator's account number. */ - fun originatorAccountNumber(originatorAccountNumber: String) = apply { - body.originatorAccountNumber(originatorAccountNumber) + fun recipientAccountNumberId(recipientAccountNumberId: String) = apply { + body.recipientAccountNumberId(recipientAccountNumberId) } /** - * Sets [Builder.originatorAccountNumber] to an arbitrary JSON value. + * Sets [Builder.recipientAccountNumberId] to an arbitrary JSON value. * - * You should usually call [Builder.originatorAccountNumber] with a well-typed [String] + * You should usually call [Builder.recipientAccountNumberId] with a well-typed [String] * value instead. This method is primarily for setting the field to an undocumented or not * yet supported value. */ - fun originatorAccountNumber(originatorAccountNumber: JsonField) = apply { - body.originatorAccountNumber(originatorAccountNumber) + fun recipientAccountNumberId(recipientAccountNumberId: JsonField) = apply { + body.recipientAccountNumberId(recipientAccountNumberId) } - /** The drawdown request's originator's routing number. */ - fun originatorRoutingNumber(originatorRoutingNumber: String) = apply { - body.originatorRoutingNumber(originatorRoutingNumber) + /** + * A free-form address field set by the sender representing the first line of the creditor's + * address. + */ + fun creditorAddressLine1(creditorAddressLine1: String) = apply { + body.creditorAddressLine1(creditorAddressLine1) } /** - * Sets [Builder.originatorRoutingNumber] to an arbitrary JSON value. + * Sets [Builder.creditorAddressLine1] to an arbitrary JSON value. * - * You should usually call [Builder.originatorRoutingNumber] with a well-typed [String] - * value instead. This method is primarily for setting the field to an undocumented or not - * yet supported value. + * You should usually call [Builder.creditorAddressLine1] with a well-typed [String] value + * instead. This method is primarily for setting the field to an undocumented or not yet + * supported value. */ - fun originatorRoutingNumber(originatorRoutingNumber: JsonField) = apply { - body.originatorRoutingNumber(originatorRoutingNumber) + fun creditorAddressLine1(creditorAddressLine1: JsonField) = apply { + body.creditorAddressLine1(creditorAddressLine1) } /** - * The Account Number to which the recipient of this request is being requested to send - * funds from. + * A free-form address field set by the sender representing the second line of the + * creditor's address. */ - fun recipientAccountNumberId(recipientAccountNumberId: String) = apply { - body.recipientAccountNumberId(recipientAccountNumberId) + fun creditorAddressLine2(creditorAddressLine2: String) = apply { + body.creditorAddressLine2(creditorAddressLine2) } /** - * Sets [Builder.recipientAccountNumberId] to an arbitrary JSON value. + * Sets [Builder.creditorAddressLine2] to an arbitrary JSON value. * - * You should usually call [Builder.recipientAccountNumberId] with a well-typed [String] - * value instead. This method is primarily for setting the field to an undocumented or not - * yet supported value. + * You should usually call [Builder.creditorAddressLine2] with a well-typed [String] value + * instead. This method is primarily for setting the field to an undocumented or not yet + * supported value. */ - fun recipientAccountNumberId(recipientAccountNumberId: JsonField) = apply { - body.recipientAccountNumberId(recipientAccountNumberId) + fun creditorAddressLine2(creditorAddressLine2: JsonField) = apply { + body.creditorAddressLine2(creditorAddressLine2) } - /** Line 1 of the drawdown request's beneficiary's address. */ - fun beneficiaryAddressLine1(beneficiaryAddressLine1: String) = apply { - body.beneficiaryAddressLine1(beneficiaryAddressLine1) + /** + * A free-form address field set by the sender representing the third line of the creditor's + * address. + */ + fun creditorAddressLine3(creditorAddressLine3: String) = apply { + body.creditorAddressLine3(creditorAddressLine3) } /** - * Sets [Builder.beneficiaryAddressLine1] to an arbitrary JSON value. + * Sets [Builder.creditorAddressLine3] to an arbitrary JSON value. * - * You should usually call [Builder.beneficiaryAddressLine1] with a well-typed [String] - * value instead. This method is primarily for setting the field to an undocumented or not - * yet supported value. + * You should usually call [Builder.creditorAddressLine3] with a well-typed [String] value + * instead. This method is primarily for setting the field to an undocumented or not yet + * supported value. */ - fun beneficiaryAddressLine1(beneficiaryAddressLine1: JsonField) = apply { - body.beneficiaryAddressLine1(beneficiaryAddressLine1) + fun creditorAddressLine3(creditorAddressLine3: JsonField) = apply { + body.creditorAddressLine3(creditorAddressLine3) } - /** Line 2 of the drawdown request's beneficiary's address. */ - fun beneficiaryAddressLine2(beneficiaryAddressLine2: String) = apply { - body.beneficiaryAddressLine2(beneficiaryAddressLine2) - } + /** A free-form name field set by the sender representing the creditor's name. */ + fun creditorName(creditorName: String) = apply { body.creditorName(creditorName) } /** - * Sets [Builder.beneficiaryAddressLine2] to an arbitrary JSON value. + * Sets [Builder.creditorName] to an arbitrary JSON value. * - * You should usually call [Builder.beneficiaryAddressLine2] with a well-typed [String] - * value instead. This method is primarily for setting the field to an undocumented or not - * yet supported value. + * You should usually call [Builder.creditorName] with a well-typed [String] value instead. + * This method is primarily for setting the field to an undocumented or not yet supported + * value. */ - fun beneficiaryAddressLine2(beneficiaryAddressLine2: JsonField) = apply { - body.beneficiaryAddressLine2(beneficiaryAddressLine2) + fun creditorName(creditorName: JsonField) = apply { + body.creditorName(creditorName) } - /** Line 3 of the drawdown request's beneficiary's address. */ - fun beneficiaryAddressLine3(beneficiaryAddressLine3: String) = apply { - body.beneficiaryAddressLine3(beneficiaryAddressLine3) + /** The debtor's account number. */ + fun debtorAccountNumber(debtorAccountNumber: String) = apply { + body.debtorAccountNumber(debtorAccountNumber) } /** - * Sets [Builder.beneficiaryAddressLine3] to an arbitrary JSON value. + * Sets [Builder.debtorAccountNumber] to an arbitrary JSON value. * - * You should usually call [Builder.beneficiaryAddressLine3] with a well-typed [String] - * value instead. This method is primarily for setting the field to an undocumented or not - * yet supported value. + * You should usually call [Builder.debtorAccountNumber] with a well-typed [String] value + * instead. This method is primarily for setting the field to an undocumented or not yet + * supported value. */ - fun beneficiaryAddressLine3(beneficiaryAddressLine3: JsonField) = apply { - body.beneficiaryAddressLine3(beneficiaryAddressLine3) + fun debtorAccountNumber(debtorAccountNumber: JsonField) = apply { + body.debtorAccountNumber(debtorAccountNumber) } - /** The drawdown request's beneficiary's name. */ - fun beneficiaryName(beneficiaryName: String) = apply { - body.beneficiaryName(beneficiaryName) + /** + * A free-form address field set by the sender representing the first line of the debtor's + * address. + */ + fun debtorAddressLine1(debtorAddressLine1: String) = apply { + body.debtorAddressLine1(debtorAddressLine1) } /** - * Sets [Builder.beneficiaryName] to an arbitrary JSON value. + * Sets [Builder.debtorAddressLine1] to an arbitrary JSON value. * - * You should usually call [Builder.beneficiaryName] with a well-typed [String] value + * You should usually call [Builder.debtorAddressLine1] with a well-typed [String] value * instead. This method is primarily for setting the field to an undocumented or not yet * supported value. */ - fun beneficiaryName(beneficiaryName: JsonField) = apply { - body.beneficiaryName(beneficiaryName) + fun debtorAddressLine1(debtorAddressLine1: JsonField) = apply { + body.debtorAddressLine1(debtorAddressLine1) } - /** Line 1 of the drawdown request's originator's address. */ - fun originatorAddressLine1(originatorAddressLine1: String) = apply { - body.originatorAddressLine1(originatorAddressLine1) + /** + * A free-form address field set by the sender representing the second line of the debtor's + * address. + */ + fun debtorAddressLine2(debtorAddressLine2: String) = apply { + body.debtorAddressLine2(debtorAddressLine2) } /** - * Sets [Builder.originatorAddressLine1] to an arbitrary JSON value. + * Sets [Builder.debtorAddressLine2] to an arbitrary JSON value. * - * You should usually call [Builder.originatorAddressLine1] with a well-typed [String] value + * You should usually call [Builder.debtorAddressLine2] with a well-typed [String] value * instead. This method is primarily for setting the field to an undocumented or not yet * supported value. */ - fun originatorAddressLine1(originatorAddressLine1: JsonField) = apply { - body.originatorAddressLine1(originatorAddressLine1) + fun debtorAddressLine2(debtorAddressLine2: JsonField) = apply { + body.debtorAddressLine2(debtorAddressLine2) } - /** Line 2 of the drawdown request's originator's address. */ - fun originatorAddressLine2(originatorAddressLine2: String) = apply { - body.originatorAddressLine2(originatorAddressLine2) + /** A free-form address field set by the sender. */ + fun debtorAddressLine3(debtorAddressLine3: String) = apply { + body.debtorAddressLine3(debtorAddressLine3) } /** - * Sets [Builder.originatorAddressLine2] to an arbitrary JSON value. + * Sets [Builder.debtorAddressLine3] to an arbitrary JSON value. * - * You should usually call [Builder.originatorAddressLine2] with a well-typed [String] value + * You should usually call [Builder.debtorAddressLine3] with a well-typed [String] value * instead. This method is primarily for setting the field to an undocumented or not yet * supported value. */ - fun originatorAddressLine2(originatorAddressLine2: JsonField) = apply { - body.originatorAddressLine2(originatorAddressLine2) + fun debtorAddressLine3(debtorAddressLine3: JsonField) = apply { + body.debtorAddressLine3(debtorAddressLine3) } - /** Line 3 of the drawdown request's originator's address. */ - fun originatorAddressLine3(originatorAddressLine3: String) = apply { - body.originatorAddressLine3(originatorAddressLine3) - } + /** A free-form name field set by the sender representing the debtor's name. */ + fun debtorName(debtorName: String) = apply { body.debtorName(debtorName) } /** - * Sets [Builder.originatorAddressLine3] to an arbitrary JSON value. + * Sets [Builder.debtorName] to an arbitrary JSON value. * - * You should usually call [Builder.originatorAddressLine3] with a well-typed [String] value - * instead. This method is primarily for setting the field to an undocumented or not yet - * supported value. + * You should usually call [Builder.debtorName] with a well-typed [String] value instead. + * This method is primarily for setting the field to an undocumented or not yet supported + * value. */ - fun originatorAddressLine3(originatorAddressLine3: JsonField) = apply { - body.originatorAddressLine3(originatorAddressLine3) - } + fun debtorName(debtorName: JsonField) = apply { body.debtorName(debtorName) } - /** The drawdown request's originator's name. */ - fun originatorName(originatorName: String) = apply { body.originatorName(originatorName) } + /** The debtor's routing number. */ + fun debtorRoutingNumber(debtorRoutingNumber: String) = apply { + body.debtorRoutingNumber(debtorRoutingNumber) + } /** - * Sets [Builder.originatorName] to an arbitrary JSON value. + * Sets [Builder.debtorRoutingNumber] to an arbitrary JSON value. * - * You should usually call [Builder.originatorName] with a well-typed [String] value + * You should usually call [Builder.debtorRoutingNumber] with a well-typed [String] value * instead. This method is primarily for setting the field to an undocumented or not yet * supported value. */ - fun originatorName(originatorName: JsonField) = apply { - body.originatorName(originatorName) + fun debtorRoutingNumber(debtorRoutingNumber: JsonField) = apply { + body.debtorRoutingNumber(debtorRoutingNumber) } - /** - * Line 1 of the information conveyed from the originator of the message to the beneficiary. - */ - fun originatorToBeneficiaryInformationLine1( - originatorToBeneficiaryInformationLine1: String - ) = apply { - body.originatorToBeneficiaryInformationLine1(originatorToBeneficiaryInformationLine1) + /** A free-form reference string set by the sender, to help identify the transfer. */ + fun endToEndIdentification(endToEndIdentification: String) = apply { + body.endToEndIdentification(endToEndIdentification) } /** - * Sets [Builder.originatorToBeneficiaryInformationLine1] to an arbitrary JSON value. + * Sets [Builder.endToEndIdentification] to an arbitrary JSON value. * - * You should usually call [Builder.originatorToBeneficiaryInformationLine1] with a - * well-typed [String] value instead. This method is primarily for setting the field to an - * undocumented or not yet supported value. + * You should usually call [Builder.endToEndIdentification] with a well-typed [String] value + * instead. This method is primarily for setting the field to an undocumented or not yet + * supported value. */ - fun originatorToBeneficiaryInformationLine1( - originatorToBeneficiaryInformationLine1: JsonField - ) = apply { - body.originatorToBeneficiaryInformationLine1(originatorToBeneficiaryInformationLine1) + fun endToEndIdentification(endToEndIdentification: JsonField) = apply { + body.endToEndIdentification(endToEndIdentification) } - /** - * Line 2 of the information conveyed from the originator of the message to the beneficiary. - */ - fun originatorToBeneficiaryInformationLine2( - originatorToBeneficiaryInformationLine2: String - ) = apply { - body.originatorToBeneficiaryInformationLine2(originatorToBeneficiaryInformationLine2) + /** The sending bank's identifier for the wire transfer. */ + fun instructionIdentification(instructionIdentification: String) = apply { + body.instructionIdentification(instructionIdentification) } /** - * Sets [Builder.originatorToBeneficiaryInformationLine2] to an arbitrary JSON value. + * Sets [Builder.instructionIdentification] to an arbitrary JSON value. * - * You should usually call [Builder.originatorToBeneficiaryInformationLine2] with a - * well-typed [String] value instead. This method is primarily for setting the field to an - * undocumented or not yet supported value. + * You should usually call [Builder.instructionIdentification] with a well-typed [String] + * value instead. This method is primarily for setting the field to an undocumented or not + * yet supported value. */ - fun originatorToBeneficiaryInformationLine2( - originatorToBeneficiaryInformationLine2: JsonField - ) = apply { - body.originatorToBeneficiaryInformationLine2(originatorToBeneficiaryInformationLine2) + fun instructionIdentification(instructionIdentification: JsonField) = apply { + body.instructionIdentification(instructionIdentification) } /** - * Line 3 of the information conveyed from the originator of the message to the beneficiary. + * The Unique End-to-end Transaction Reference + * ([UETR](https://www.swift.com/payments/what-unique-end-end-transaction-reference-uetr)) + * of the transfer. */ - fun originatorToBeneficiaryInformationLine3( - originatorToBeneficiaryInformationLine3: String - ) = apply { - body.originatorToBeneficiaryInformationLine3(originatorToBeneficiaryInformationLine3) + fun uniqueEndToEndTransactionReference(uniqueEndToEndTransactionReference: String) = apply { + body.uniqueEndToEndTransactionReference(uniqueEndToEndTransactionReference) } /** - * Sets [Builder.originatorToBeneficiaryInformationLine3] to an arbitrary JSON value. + * Sets [Builder.uniqueEndToEndTransactionReference] to an arbitrary JSON value. * - * You should usually call [Builder.originatorToBeneficiaryInformationLine3] with a - * well-typed [String] value instead. This method is primarily for setting the field to an - * undocumented or not yet supported value. + * You should usually call [Builder.uniqueEndToEndTransactionReference] with a well-typed + * [String] value instead. This method is primarily for setting the field to an undocumented + * or not yet supported value. */ - fun originatorToBeneficiaryInformationLine3( - originatorToBeneficiaryInformationLine3: JsonField - ) = apply { - body.originatorToBeneficiaryInformationLine3(originatorToBeneficiaryInformationLine3) - } + fun uniqueEndToEndTransactionReference( + uniqueEndToEndTransactionReference: JsonField + ) = apply { body.uniqueEndToEndTransactionReference(uniqueEndToEndTransactionReference) } - /** - * Line 4 of the information conveyed from the originator of the message to the beneficiary. - */ - fun originatorToBeneficiaryInformationLine4( - originatorToBeneficiaryInformationLine4: String - ) = apply { - body.originatorToBeneficiaryInformationLine4(originatorToBeneficiaryInformationLine4) + /** A free-form message set by the sender. */ + fun unstructuredRemittanceInformation(unstructuredRemittanceInformation: String) = apply { + body.unstructuredRemittanceInformation(unstructuredRemittanceInformation) } /** - * Sets [Builder.originatorToBeneficiaryInformationLine4] to an arbitrary JSON value. + * Sets [Builder.unstructuredRemittanceInformation] to an arbitrary JSON value. * - * You should usually call [Builder.originatorToBeneficiaryInformationLine4] with a - * well-typed [String] value instead. This method is primarily for setting the field to an - * undocumented or not yet supported value. + * You should usually call [Builder.unstructuredRemittanceInformation] with a well-typed + * [String] value instead. This method is primarily for setting the field to an undocumented + * or not yet supported value. */ - fun originatorToBeneficiaryInformationLine4( - originatorToBeneficiaryInformationLine4: JsonField - ) = apply { - body.originatorToBeneficiaryInformationLine4(originatorToBeneficiaryInformationLine4) - } + fun unstructuredRemittanceInformation( + unstructuredRemittanceInformation: JsonField + ) = apply { body.unstructuredRemittanceInformation(unstructuredRemittanceInformation) } fun additionalBodyProperties(additionalBodyProperties: Map) = apply { body.additionalProperties(additionalBodyProperties) @@ -878,12 +837,9 @@ private constructor( * The following fields are required: * ```java * .amount() - * .beneficiaryAccountNumber() - * .beneficiaryRoutingNumber() + * .creditorAccountNumber() + * .creditorRoutingNumber() * .currency() - * .messageToRecipient() - * .originatorAccountNumber() - * .originatorRoutingNumber() * .recipientAccountNumberId() * ``` * @@ -906,109 +862,104 @@ private constructor( class Body private constructor( private val amount: JsonField, - private val beneficiaryAccountNumber: JsonField, - private val beneficiaryRoutingNumber: JsonField, + private val creditorAccountNumber: JsonField, + private val creditorRoutingNumber: JsonField, private val currency: JsonField, - private val messageToRecipient: JsonField, - private val originatorAccountNumber: JsonField, - private val originatorRoutingNumber: JsonField, private val recipientAccountNumberId: JsonField, - private val beneficiaryAddressLine1: JsonField, - private val beneficiaryAddressLine2: JsonField, - private val beneficiaryAddressLine3: JsonField, - private val beneficiaryName: JsonField, - private val originatorAddressLine1: JsonField, - private val originatorAddressLine2: JsonField, - private val originatorAddressLine3: JsonField, - private val originatorName: JsonField, - private val originatorToBeneficiaryInformationLine1: JsonField, - private val originatorToBeneficiaryInformationLine2: JsonField, - private val originatorToBeneficiaryInformationLine3: JsonField, - private val originatorToBeneficiaryInformationLine4: JsonField, + private val creditorAddressLine1: JsonField, + private val creditorAddressLine2: JsonField, + private val creditorAddressLine3: JsonField, + private val creditorName: JsonField, + private val debtorAccountNumber: JsonField, + private val debtorAddressLine1: JsonField, + private val debtorAddressLine2: JsonField, + private val debtorAddressLine3: JsonField, + private val debtorName: JsonField, + private val debtorRoutingNumber: JsonField, + private val endToEndIdentification: JsonField, + private val instructionIdentification: JsonField, + private val uniqueEndToEndTransactionReference: JsonField, + private val unstructuredRemittanceInformation: JsonField, private val additionalProperties: MutableMap, ) { @JsonCreator private constructor( @JsonProperty("amount") @ExcludeMissing amount: JsonField = JsonMissing.of(), - @JsonProperty("beneficiary_account_number") + @JsonProperty("creditor_account_number") @ExcludeMissing - beneficiaryAccountNumber: JsonField = JsonMissing.of(), - @JsonProperty("beneficiary_routing_number") + creditorAccountNumber: JsonField = JsonMissing.of(), + @JsonProperty("creditor_routing_number") @ExcludeMissing - beneficiaryRoutingNumber: JsonField = JsonMissing.of(), + creditorRoutingNumber: JsonField = JsonMissing.of(), @JsonProperty("currency") @ExcludeMissing currency: JsonField = JsonMissing.of(), - @JsonProperty("message_to_recipient") - @ExcludeMissing - messageToRecipient: JsonField = JsonMissing.of(), - @JsonProperty("originator_account_number") - @ExcludeMissing - originatorAccountNumber: JsonField = JsonMissing.of(), - @JsonProperty("originator_routing_number") - @ExcludeMissing - originatorRoutingNumber: JsonField = JsonMissing.of(), @JsonProperty("recipient_account_number_id") @ExcludeMissing recipientAccountNumberId: JsonField = JsonMissing.of(), - @JsonProperty("beneficiary_address_line1") + @JsonProperty("creditor_address_line1") + @ExcludeMissing + creditorAddressLine1: JsonField = JsonMissing.of(), + @JsonProperty("creditor_address_line2") @ExcludeMissing - beneficiaryAddressLine1: JsonField = JsonMissing.of(), - @JsonProperty("beneficiary_address_line2") + creditorAddressLine2: JsonField = JsonMissing.of(), + @JsonProperty("creditor_address_line3") @ExcludeMissing - beneficiaryAddressLine2: JsonField = JsonMissing.of(), - @JsonProperty("beneficiary_address_line3") + creditorAddressLine3: JsonField = JsonMissing.of(), + @JsonProperty("creditor_name") @ExcludeMissing - beneficiaryAddressLine3: JsonField = JsonMissing.of(), - @JsonProperty("beneficiary_name") + creditorName: JsonField = JsonMissing.of(), + @JsonProperty("debtor_account_number") @ExcludeMissing - beneficiaryName: JsonField = JsonMissing.of(), - @JsonProperty("originator_address_line1") + debtorAccountNumber: JsonField = JsonMissing.of(), + @JsonProperty("debtor_address_line1") @ExcludeMissing - originatorAddressLine1: JsonField = JsonMissing.of(), - @JsonProperty("originator_address_line2") + debtorAddressLine1: JsonField = JsonMissing.of(), + @JsonProperty("debtor_address_line2") @ExcludeMissing - originatorAddressLine2: JsonField = JsonMissing.of(), - @JsonProperty("originator_address_line3") + debtorAddressLine2: JsonField = JsonMissing.of(), + @JsonProperty("debtor_address_line3") @ExcludeMissing - originatorAddressLine3: JsonField = JsonMissing.of(), - @JsonProperty("originator_name") + debtorAddressLine3: JsonField = JsonMissing.of(), + @JsonProperty("debtor_name") @ExcludeMissing - originatorName: JsonField = JsonMissing.of(), - @JsonProperty("originator_to_beneficiary_information_line1") + debtorName: JsonField = JsonMissing.of(), + @JsonProperty("debtor_routing_number") @ExcludeMissing - originatorToBeneficiaryInformationLine1: JsonField = JsonMissing.of(), - @JsonProperty("originator_to_beneficiary_information_line2") + debtorRoutingNumber: JsonField = JsonMissing.of(), + @JsonProperty("end_to_end_identification") @ExcludeMissing - originatorToBeneficiaryInformationLine2: JsonField = JsonMissing.of(), - @JsonProperty("originator_to_beneficiary_information_line3") + endToEndIdentification: JsonField = JsonMissing.of(), + @JsonProperty("instruction_identification") @ExcludeMissing - originatorToBeneficiaryInformationLine3: JsonField = JsonMissing.of(), - @JsonProperty("originator_to_beneficiary_information_line4") + instructionIdentification: JsonField = JsonMissing.of(), + @JsonProperty("unique_end_to_end_transaction_reference") @ExcludeMissing - originatorToBeneficiaryInformationLine4: JsonField = JsonMissing.of(), + uniqueEndToEndTransactionReference: JsonField = JsonMissing.of(), + @JsonProperty("unstructured_remittance_information") + @ExcludeMissing + unstructuredRemittanceInformation: JsonField = JsonMissing.of(), ) : this( amount, - beneficiaryAccountNumber, - beneficiaryRoutingNumber, + creditorAccountNumber, + creditorRoutingNumber, currency, - messageToRecipient, - originatorAccountNumber, - originatorRoutingNumber, recipientAccountNumberId, - beneficiaryAddressLine1, - beneficiaryAddressLine2, - beneficiaryAddressLine3, - beneficiaryName, - originatorAddressLine1, - originatorAddressLine2, - originatorAddressLine3, - originatorName, - originatorToBeneficiaryInformationLine1, - originatorToBeneficiaryInformationLine2, - originatorToBeneficiaryInformationLine3, - originatorToBeneficiaryInformationLine4, + creditorAddressLine1, + creditorAddressLine2, + creditorAddressLine3, + creditorName, + debtorAccountNumber, + debtorAddressLine1, + debtorAddressLine2, + debtorAddressLine3, + debtorName, + debtorRoutingNumber, + endToEndIdentification, + instructionIdentification, + uniqueEndToEndTransactionReference, + unstructuredRemittanceInformation, mutableMapOf(), ) @@ -1021,22 +972,22 @@ private constructor( fun amount(): Long = amount.getRequired("amount") /** - * The drawdown request's beneficiary's account number. + * The creditor's account 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). */ - fun beneficiaryAccountNumber(): String = - beneficiaryAccountNumber.getRequired("beneficiary_account_number") + fun creditorAccountNumber(): String = + creditorAccountNumber.getRequired("creditor_account_number") /** - * The drawdown request's beneficiary's routing number. + * The creditor's routing 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). */ - fun beneficiaryRoutingNumber(): String = - beneficiaryRoutingNumber.getRequired("beneficiary_routing_number") + fun creditorRoutingNumber(): String = + creditorRoutingNumber.getRequired("creditor_routing_number") /** * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the amount being @@ -1048,154 +999,147 @@ private constructor( fun currency(): String = currency.getRequired("currency") /** - * A message from the drawdown request's originator. + * The Account Number to which the recipient of this request is being requested to send + * funds from. * * @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 messageToRecipient(): String = messageToRecipient.getRequired("message_to_recipient") + fun recipientAccountNumberId(): String = + recipientAccountNumberId.getRequired("recipient_account_number_id") /** - * The drawdown request's originator's account number. + * A free-form address field set by the sender representing the first line of the creditor'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 originatorAccountNumber(): String = - originatorAccountNumber.getRequired("originator_account_number") + fun creditorAddressLine1(): Optional = + creditorAddressLine1.getOptional("creditor_address_line1") /** - * The drawdown request's originator's routing number. + * A free-form address field set by the sender representing the second line of the + * creditor'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 originatorRoutingNumber(): String = - originatorRoutingNumber.getRequired("originator_routing_number") + fun creditorAddressLine2(): Optional = + creditorAddressLine2.getOptional("creditor_address_line2") /** - * The Account Number to which the recipient of this request is being requested to send - * funds from. - * - * @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 recipientAccountNumberId(): String = - recipientAccountNumberId.getRequired("recipient_account_number_id") - - /** - * Line 1 of the drawdown request's beneficiary's address. + * A free-form address field set by the sender representing the third line of the creditor's + * address. * * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if * the server responded with an unexpected value). */ - fun beneficiaryAddressLine1(): Optional = - beneficiaryAddressLine1.getOptional("beneficiary_address_line1") + fun creditorAddressLine3(): Optional = + creditorAddressLine3.getOptional("creditor_address_line3") /** - * Line 2 of the drawdown request's beneficiary's address. + * A free-form name field set by the sender representing the creditor's name. * * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if * the server responded with an unexpected value). */ - fun beneficiaryAddressLine2(): Optional = - beneficiaryAddressLine2.getOptional("beneficiary_address_line2") + fun creditorName(): Optional = creditorName.getOptional("creditor_name") /** - * Line 3 of the drawdown request's beneficiary's address. + * The debtor's account number. * * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if * the server responded with an unexpected value). */ - fun beneficiaryAddressLine3(): Optional = - beneficiaryAddressLine3.getOptional("beneficiary_address_line3") + fun debtorAccountNumber(): Optional = + debtorAccountNumber.getOptional("debtor_account_number") /** - * The drawdown request's beneficiary's name. + * A free-form address field set by the sender representing the first line of the debtor's + * address. * * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if * the server responded with an unexpected value). */ - fun beneficiaryName(): Optional = beneficiaryName.getOptional("beneficiary_name") + fun debtorAddressLine1(): Optional = + debtorAddressLine1.getOptional("debtor_address_line1") /** - * Line 1 of the drawdown request's originator's address. + * A free-form address field set by the sender representing the second line of the debtor's + * address. * * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if * the server responded with an unexpected value). */ - fun originatorAddressLine1(): Optional = - originatorAddressLine1.getOptional("originator_address_line1") + fun debtorAddressLine2(): Optional = + debtorAddressLine2.getOptional("debtor_address_line2") /** - * Line 2 of the drawdown request's originator's address. + * A free-form address field set by the sender. * * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if * the server responded with an unexpected value). */ - fun originatorAddressLine2(): Optional = - originatorAddressLine2.getOptional("originator_address_line2") + fun debtorAddressLine3(): Optional = + debtorAddressLine3.getOptional("debtor_address_line3") /** - * Line 3 of the drawdown request's originator's address. + * A free-form name field set by the sender representing the debtor's name. * * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if * the server responded with an unexpected value). */ - fun originatorAddressLine3(): Optional = - originatorAddressLine3.getOptional("originator_address_line3") + fun debtorName(): Optional = debtorName.getOptional("debtor_name") /** - * The drawdown request's originator's name. + * The debtor's routing number. * * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if * the server responded with an unexpected value). */ - fun originatorName(): Optional = originatorName.getOptional("originator_name") + fun debtorRoutingNumber(): Optional = + debtorRoutingNumber.getOptional("debtor_routing_number") /** - * Line 1 of the information conveyed from the originator of the message to the beneficiary. + * A free-form reference string set by the sender, to help identify the transfer. * * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if * the server responded with an unexpected value). */ - fun originatorToBeneficiaryInformationLine1(): Optional = - originatorToBeneficiaryInformationLine1.getOptional( - "originator_to_beneficiary_information_line1" - ) + fun endToEndIdentification(): Optional = + endToEndIdentification.getOptional("end_to_end_identification") /** - * Line 2 of the information conveyed from the originator of the message to the beneficiary. + * The sending bank's identifier for the wire transfer. * * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if * the server responded with an unexpected value). */ - fun originatorToBeneficiaryInformationLine2(): Optional = - originatorToBeneficiaryInformationLine2.getOptional( - "originator_to_beneficiary_information_line2" - ) + fun instructionIdentification(): Optional = + instructionIdentification.getOptional("instruction_identification") /** - * Line 3 of the information conveyed from the originator of the message to the beneficiary. + * The Unique End-to-end Transaction Reference + * ([UETR](https://www.swift.com/payments/what-unique-end-end-transaction-reference-uetr)) + * of the transfer. * * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if * the server responded with an unexpected value). */ - fun originatorToBeneficiaryInformationLine3(): Optional = - originatorToBeneficiaryInformationLine3.getOptional( - "originator_to_beneficiary_information_line3" + fun uniqueEndToEndTransactionReference(): Optional = + uniqueEndToEndTransactionReference.getOptional( + "unique_end_to_end_transaction_reference" ) /** - * Line 4 of the information conveyed from the originator of the message to the beneficiary. + * A free-form message set by the sender. * * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if * the server responded with an unexpected value). */ - fun originatorToBeneficiaryInformationLine4(): Optional = - originatorToBeneficiaryInformationLine4.getOptional( - "originator_to_beneficiary_information_line4" - ) + fun unstructuredRemittanceInformation(): Optional = + unstructuredRemittanceInformation.getOptional("unstructured_remittance_information") /** * Returns the raw JSON value of [amount]. @@ -1205,24 +1149,24 @@ private constructor( @JsonProperty("amount") @ExcludeMissing fun _amount(): JsonField = amount /** - * Returns the raw JSON value of [beneficiaryAccountNumber]. + * Returns the raw JSON value of [creditorAccountNumber]. * - * Unlike [beneficiaryAccountNumber], this method doesn't throw if the JSON field has an + * Unlike [creditorAccountNumber], this method doesn't throw if the JSON field has an * unexpected type. */ - @JsonProperty("beneficiary_account_number") + @JsonProperty("creditor_account_number") @ExcludeMissing - fun _beneficiaryAccountNumber(): JsonField = beneficiaryAccountNumber + fun _creditorAccountNumber(): JsonField = creditorAccountNumber /** - * Returns the raw JSON value of [beneficiaryRoutingNumber]. + * Returns the raw JSON value of [creditorRoutingNumber]. * - * Unlike [beneficiaryRoutingNumber], this method doesn't throw if the JSON field has an + * Unlike [creditorRoutingNumber], this method doesn't throw if the JSON field has an * unexpected type. */ - @JsonProperty("beneficiary_routing_number") + @JsonProperty("creditor_routing_number") @ExcludeMissing - fun _beneficiaryRoutingNumber(): JsonField = beneficiaryRoutingNumber + fun _creditorRoutingNumber(): JsonField = creditorRoutingNumber /** * Returns the raw JSON value of [currency]. @@ -1232,168 +1176,155 @@ private constructor( @JsonProperty("currency") @ExcludeMissing fun _currency(): JsonField = currency /** - * Returns the raw JSON value of [messageToRecipient]. + * Returns the raw JSON value of [recipientAccountNumberId]. * - * Unlike [messageToRecipient], this method doesn't throw if the JSON field has an + * Unlike [recipientAccountNumberId], this method doesn't throw if the JSON field has an * unexpected type. */ - @JsonProperty("message_to_recipient") + @JsonProperty("recipient_account_number_id") @ExcludeMissing - fun _messageToRecipient(): JsonField = messageToRecipient + fun _recipientAccountNumberId(): JsonField = recipientAccountNumberId /** - * Returns the raw JSON value of [originatorAccountNumber]. + * Returns the raw JSON value of [creditorAddressLine1]. * - * Unlike [originatorAccountNumber], this method doesn't throw if the JSON field has an + * Unlike [creditorAddressLine1], this method doesn't throw if the JSON field has an * unexpected type. */ - @JsonProperty("originator_account_number") + @JsonProperty("creditor_address_line1") @ExcludeMissing - fun _originatorAccountNumber(): JsonField = originatorAccountNumber + fun _creditorAddressLine1(): JsonField = creditorAddressLine1 /** - * Returns the raw JSON value of [originatorRoutingNumber]. + * Returns the raw JSON value of [creditorAddressLine2]. * - * Unlike [originatorRoutingNumber], this method doesn't throw if the JSON field has an + * Unlike [creditorAddressLine2], this method doesn't throw if the JSON field has an * unexpected type. */ - @JsonProperty("originator_routing_number") + @JsonProperty("creditor_address_line2") @ExcludeMissing - fun _originatorRoutingNumber(): JsonField = originatorRoutingNumber + fun _creditorAddressLine2(): JsonField = creditorAddressLine2 /** - * Returns the raw JSON value of [recipientAccountNumberId]. + * Returns the raw JSON value of [creditorAddressLine3]. * - * Unlike [recipientAccountNumberId], this method doesn't throw if the JSON field has an + * Unlike [creditorAddressLine3], this method doesn't throw if the JSON field has an * unexpected type. */ - @JsonProperty("recipient_account_number_id") + @JsonProperty("creditor_address_line3") @ExcludeMissing - fun _recipientAccountNumberId(): JsonField = recipientAccountNumberId + fun _creditorAddressLine3(): JsonField = creditorAddressLine3 /** - * Returns the raw JSON value of [beneficiaryAddressLine1]. + * Returns the raw JSON value of [creditorName]. * - * Unlike [beneficiaryAddressLine1], this method doesn't throw if the JSON field has an - * unexpected type. + * Unlike [creditorName], this method doesn't throw if the JSON field has an unexpected + * type. */ - @JsonProperty("beneficiary_address_line1") + @JsonProperty("creditor_name") @ExcludeMissing - fun _beneficiaryAddressLine1(): JsonField = beneficiaryAddressLine1 + fun _creditorName(): JsonField = creditorName /** - * Returns the raw JSON value of [beneficiaryAddressLine2]. + * Returns the raw JSON value of [debtorAccountNumber]. * - * Unlike [beneficiaryAddressLine2], this method doesn't throw if the JSON field has an + * Unlike [debtorAccountNumber], this method doesn't throw if the JSON field has an * unexpected type. */ - @JsonProperty("beneficiary_address_line2") + @JsonProperty("debtor_account_number") @ExcludeMissing - fun _beneficiaryAddressLine2(): JsonField = beneficiaryAddressLine2 + fun _debtorAccountNumber(): JsonField = debtorAccountNumber /** - * Returns the raw JSON value of [beneficiaryAddressLine3]. + * Returns the raw JSON value of [debtorAddressLine1]. * - * Unlike [beneficiaryAddressLine3], this method doesn't throw if the JSON field has an + * Unlike [debtorAddressLine1], this method doesn't throw if the JSON field has an * unexpected type. */ - @JsonProperty("beneficiary_address_line3") - @ExcludeMissing - fun _beneficiaryAddressLine3(): JsonField = beneficiaryAddressLine3 - - /** - * Returns the raw JSON value of [beneficiaryName]. - * - * Unlike [beneficiaryName], this method doesn't throw if the JSON field has an unexpected - * type. - */ - @JsonProperty("beneficiary_name") + @JsonProperty("debtor_address_line1") @ExcludeMissing - fun _beneficiaryName(): JsonField = beneficiaryName + fun _debtorAddressLine1(): JsonField = debtorAddressLine1 /** - * Returns the raw JSON value of [originatorAddressLine1]. + * Returns the raw JSON value of [debtorAddressLine2]. * - * Unlike [originatorAddressLine1], this method doesn't throw if the JSON field has an + * Unlike [debtorAddressLine2], this method doesn't throw if the JSON field has an * unexpected type. */ - @JsonProperty("originator_address_line1") + @JsonProperty("debtor_address_line2") @ExcludeMissing - fun _originatorAddressLine1(): JsonField = originatorAddressLine1 + fun _debtorAddressLine2(): JsonField = debtorAddressLine2 /** - * Returns the raw JSON value of [originatorAddressLine2]. + * Returns the raw JSON value of [debtorAddressLine3]. * - * Unlike [originatorAddressLine2], this method doesn't throw if the JSON field has an + * Unlike [debtorAddressLine3], this method doesn't throw if the JSON field has an * unexpected type. */ - @JsonProperty("originator_address_line2") + @JsonProperty("debtor_address_line3") @ExcludeMissing - fun _originatorAddressLine2(): JsonField = originatorAddressLine2 + fun _debtorAddressLine3(): JsonField = debtorAddressLine3 /** - * Returns the raw JSON value of [originatorAddressLine3]. + * Returns the raw JSON value of [debtorName]. * - * Unlike [originatorAddressLine3], this method doesn't throw if the JSON field has an - * unexpected type. + * Unlike [debtorName], this method doesn't throw if the JSON field has an unexpected type. */ - @JsonProperty("originator_address_line3") + @JsonProperty("debtor_name") @ExcludeMissing - fun _originatorAddressLine3(): JsonField = originatorAddressLine3 + fun _debtorName(): JsonField = debtorName /** - * Returns the raw JSON value of [originatorName]. + * Returns the raw JSON value of [debtorRoutingNumber]. * - * Unlike [originatorName], this method doesn't throw if the JSON field has an unexpected - * type. + * Unlike [debtorRoutingNumber], this method doesn't throw if the JSON field has an + * unexpected type. */ - @JsonProperty("originator_name") + @JsonProperty("debtor_routing_number") @ExcludeMissing - fun _originatorName(): JsonField = originatorName + fun _debtorRoutingNumber(): JsonField = debtorRoutingNumber /** - * Returns the raw JSON value of [originatorToBeneficiaryInformationLine1]. + * Returns the raw JSON value of [endToEndIdentification]. * - * Unlike [originatorToBeneficiaryInformationLine1], this method doesn't throw if the JSON - * field has an unexpected type. + * Unlike [endToEndIdentification], this method doesn't throw if the JSON field has an + * unexpected type. */ - @JsonProperty("originator_to_beneficiary_information_line1") + @JsonProperty("end_to_end_identification") @ExcludeMissing - fun _originatorToBeneficiaryInformationLine1(): JsonField = - originatorToBeneficiaryInformationLine1 + fun _endToEndIdentification(): JsonField = endToEndIdentification /** - * Returns the raw JSON value of [originatorToBeneficiaryInformationLine2]. + * Returns the raw JSON value of [instructionIdentification]. * - * Unlike [originatorToBeneficiaryInformationLine2], this method doesn't throw if the JSON - * field has an unexpected type. + * Unlike [instructionIdentification], this method doesn't throw if the JSON field has an + * unexpected type. */ - @JsonProperty("originator_to_beneficiary_information_line2") + @JsonProperty("instruction_identification") @ExcludeMissing - fun _originatorToBeneficiaryInformationLine2(): JsonField = - originatorToBeneficiaryInformationLine2 + fun _instructionIdentification(): JsonField = instructionIdentification /** - * Returns the raw JSON value of [originatorToBeneficiaryInformationLine3]. + * Returns the raw JSON value of [uniqueEndToEndTransactionReference]. * - * Unlike [originatorToBeneficiaryInformationLine3], this method doesn't throw if the JSON - * field has an unexpected type. + * Unlike [uniqueEndToEndTransactionReference], this method doesn't throw if the JSON field + * has an unexpected type. */ - @JsonProperty("originator_to_beneficiary_information_line3") + @JsonProperty("unique_end_to_end_transaction_reference") @ExcludeMissing - fun _originatorToBeneficiaryInformationLine3(): JsonField = - originatorToBeneficiaryInformationLine3 + fun _uniqueEndToEndTransactionReference(): JsonField = + uniqueEndToEndTransactionReference /** - * Returns the raw JSON value of [originatorToBeneficiaryInformationLine4]. + * Returns the raw JSON value of [unstructuredRemittanceInformation]. * - * Unlike [originatorToBeneficiaryInformationLine4], this method doesn't throw if the JSON - * field has an unexpected type. + * Unlike [unstructuredRemittanceInformation], this method doesn't throw if the JSON field + * has an unexpected type. */ - @JsonProperty("originator_to_beneficiary_information_line4") + @JsonProperty("unstructured_remittance_information") @ExcludeMissing - fun _originatorToBeneficiaryInformationLine4(): JsonField = - originatorToBeneficiaryInformationLine4 + fun _unstructuredRemittanceInformation(): JsonField = + unstructuredRemittanceInformation @JsonAnySetter private fun putAdditionalProperty(key: String, value: JsonValue) { @@ -1415,12 +1346,9 @@ private constructor( * The following fields are required: * ```java * .amount() - * .beneficiaryAccountNumber() - * .beneficiaryRoutingNumber() + * .creditorAccountNumber() + * .creditorRoutingNumber() * .currency() - * .messageToRecipient() - * .originatorAccountNumber() - * .originatorRoutingNumber() * .recipientAccountNumberId() * ``` */ @@ -1431,57 +1359,47 @@ private constructor( class Builder internal constructor() { private var amount: JsonField? = null - private var beneficiaryAccountNumber: JsonField? = null - private var beneficiaryRoutingNumber: JsonField? = null + private var creditorAccountNumber: JsonField? = null + private var creditorRoutingNumber: JsonField? = null private var currency: JsonField? = null - private var messageToRecipient: JsonField? = null - private var originatorAccountNumber: JsonField? = null - private var originatorRoutingNumber: JsonField? = null private var recipientAccountNumberId: JsonField? = null - private var beneficiaryAddressLine1: JsonField = JsonMissing.of() - private var beneficiaryAddressLine2: JsonField = JsonMissing.of() - private var beneficiaryAddressLine3: JsonField = JsonMissing.of() - private var beneficiaryName: JsonField = JsonMissing.of() - private var originatorAddressLine1: JsonField = JsonMissing.of() - private var originatorAddressLine2: JsonField = JsonMissing.of() - private var originatorAddressLine3: JsonField = JsonMissing.of() - private var originatorName: JsonField = JsonMissing.of() - private var originatorToBeneficiaryInformationLine1: JsonField = - JsonMissing.of() - private var originatorToBeneficiaryInformationLine2: JsonField = - JsonMissing.of() - private var originatorToBeneficiaryInformationLine3: JsonField = - JsonMissing.of() - private var originatorToBeneficiaryInformationLine4: JsonField = - JsonMissing.of() + private var creditorAddressLine1: JsonField = JsonMissing.of() + private var creditorAddressLine2: JsonField = JsonMissing.of() + private var creditorAddressLine3: JsonField = JsonMissing.of() + private var creditorName: JsonField = JsonMissing.of() + private var debtorAccountNumber: JsonField = JsonMissing.of() + private var debtorAddressLine1: JsonField = JsonMissing.of() + private var debtorAddressLine2: JsonField = JsonMissing.of() + private var debtorAddressLine3: JsonField = JsonMissing.of() + private var debtorName: JsonField = JsonMissing.of() + private var debtorRoutingNumber: JsonField = JsonMissing.of() + private var endToEndIdentification: JsonField = JsonMissing.of() + private var instructionIdentification: JsonField = JsonMissing.of() + private var uniqueEndToEndTransactionReference: JsonField = JsonMissing.of() + private var unstructuredRemittanceInformation: JsonField = JsonMissing.of() private var additionalProperties: MutableMap = mutableMapOf() @JvmSynthetic internal fun from(body: Body) = apply { amount = body.amount - beneficiaryAccountNumber = body.beneficiaryAccountNumber - beneficiaryRoutingNumber = body.beneficiaryRoutingNumber + creditorAccountNumber = body.creditorAccountNumber + creditorRoutingNumber = body.creditorRoutingNumber currency = body.currency - messageToRecipient = body.messageToRecipient - originatorAccountNumber = body.originatorAccountNumber - originatorRoutingNumber = body.originatorRoutingNumber recipientAccountNumberId = body.recipientAccountNumberId - beneficiaryAddressLine1 = body.beneficiaryAddressLine1 - beneficiaryAddressLine2 = body.beneficiaryAddressLine2 - beneficiaryAddressLine3 = body.beneficiaryAddressLine3 - beneficiaryName = body.beneficiaryName - originatorAddressLine1 = body.originatorAddressLine1 - originatorAddressLine2 = body.originatorAddressLine2 - originatorAddressLine3 = body.originatorAddressLine3 - originatorName = body.originatorName - originatorToBeneficiaryInformationLine1 = - body.originatorToBeneficiaryInformationLine1 - originatorToBeneficiaryInformationLine2 = - body.originatorToBeneficiaryInformationLine2 - originatorToBeneficiaryInformationLine3 = - body.originatorToBeneficiaryInformationLine3 - originatorToBeneficiaryInformationLine4 = - body.originatorToBeneficiaryInformationLine4 + creditorAddressLine1 = body.creditorAddressLine1 + creditorAddressLine2 = body.creditorAddressLine2 + creditorAddressLine3 = body.creditorAddressLine3 + creditorName = body.creditorName + debtorAccountNumber = body.debtorAccountNumber + debtorAddressLine1 = body.debtorAddressLine1 + debtorAddressLine2 = body.debtorAddressLine2 + debtorAddressLine3 = body.debtorAddressLine3 + debtorName = body.debtorName + debtorRoutingNumber = body.debtorRoutingNumber + endToEndIdentification = body.endToEndIdentification + instructionIdentification = body.instructionIdentification + uniqueEndToEndTransactionReference = body.uniqueEndToEndTransactionReference + unstructuredRemittanceInformation = body.unstructuredRemittanceInformation additionalProperties = body.additionalProperties.toMutableMap() } @@ -1497,34 +1415,34 @@ private constructor( */ fun amount(amount: JsonField) = apply { this.amount = amount } - /** The drawdown request's beneficiary's account number. */ - fun beneficiaryAccountNumber(beneficiaryAccountNumber: String) = - beneficiaryAccountNumber(JsonField.of(beneficiaryAccountNumber)) + /** The creditor's account number. */ + fun creditorAccountNumber(creditorAccountNumber: String) = + creditorAccountNumber(JsonField.of(creditorAccountNumber)) /** - * Sets [Builder.beneficiaryAccountNumber] to an arbitrary JSON value. + * Sets [Builder.creditorAccountNumber] to an arbitrary JSON value. * - * You should usually call [Builder.beneficiaryAccountNumber] with a well-typed [String] + * You should usually call [Builder.creditorAccountNumber] with a well-typed [String] * value instead. This method is primarily for setting the field to an undocumented or * not yet supported value. */ - fun beneficiaryAccountNumber(beneficiaryAccountNumber: JsonField) = apply { - this.beneficiaryAccountNumber = beneficiaryAccountNumber + fun creditorAccountNumber(creditorAccountNumber: JsonField) = apply { + this.creditorAccountNumber = creditorAccountNumber } - /** The drawdown request's beneficiary's routing number. */ - fun beneficiaryRoutingNumber(beneficiaryRoutingNumber: String) = - beneficiaryRoutingNumber(JsonField.of(beneficiaryRoutingNumber)) + /** The creditor's routing number. */ + fun creditorRoutingNumber(creditorRoutingNumber: String) = + creditorRoutingNumber(JsonField.of(creditorRoutingNumber)) /** - * Sets [Builder.beneficiaryRoutingNumber] to an arbitrary JSON value. + * Sets [Builder.creditorRoutingNumber] to an arbitrary JSON value. * - * You should usually call [Builder.beneficiaryRoutingNumber] with a well-typed [String] + * You should usually call [Builder.creditorRoutingNumber] with a well-typed [String] * value instead. This method is primarily for setting the field to an undocumented or * not yet supported value. */ - fun beneficiaryRoutingNumber(beneficiaryRoutingNumber: JsonField) = apply { - this.beneficiaryRoutingNumber = beneficiaryRoutingNumber + fun creditorRoutingNumber(creditorRoutingNumber: JsonField) = apply { + this.creditorRoutingNumber = creditorRoutingNumber } /** @@ -1542,51 +1460,6 @@ private constructor( */ fun currency(currency: JsonField) = apply { this.currency = currency } - /** A message from the drawdown request's originator. */ - fun messageToRecipient(messageToRecipient: String) = - messageToRecipient(JsonField.of(messageToRecipient)) - - /** - * Sets [Builder.messageToRecipient] to an arbitrary JSON value. - * - * You should usually call [Builder.messageToRecipient] with a well-typed [String] value - * instead. This method is primarily for setting the field to an undocumented or not yet - * supported value. - */ - fun messageToRecipient(messageToRecipient: JsonField) = apply { - this.messageToRecipient = messageToRecipient - } - - /** The drawdown request's originator's account number. */ - fun originatorAccountNumber(originatorAccountNumber: String) = - originatorAccountNumber(JsonField.of(originatorAccountNumber)) - - /** - * Sets [Builder.originatorAccountNumber] to an arbitrary JSON value. - * - * You should usually call [Builder.originatorAccountNumber] with a well-typed [String] - * value instead. This method is primarily for setting the field to an undocumented or - * not yet supported value. - */ - fun originatorAccountNumber(originatorAccountNumber: JsonField) = apply { - this.originatorAccountNumber = originatorAccountNumber - } - - /** The drawdown request's originator's routing number. */ - fun originatorRoutingNumber(originatorRoutingNumber: String) = - originatorRoutingNumber(JsonField.of(originatorRoutingNumber)) - - /** - * Sets [Builder.originatorRoutingNumber] to an arbitrary JSON value. - * - * You should usually call [Builder.originatorRoutingNumber] with a well-typed [String] - * value instead. This method is primarily for setting the field to an undocumented or - * not yet supported value. - */ - fun originatorRoutingNumber(originatorRoutingNumber: JsonField) = apply { - this.originatorRoutingNumber = originatorRoutingNumber - } - /** * The Account Number to which the recipient of this request is being requested to send * funds from. @@ -1605,225 +1478,232 @@ private constructor( this.recipientAccountNumberId = recipientAccountNumberId } - /** Line 1 of the drawdown request's beneficiary's address. */ - fun beneficiaryAddressLine1(beneficiaryAddressLine1: String) = - beneficiaryAddressLine1(JsonField.of(beneficiaryAddressLine1)) + /** + * A free-form address field set by the sender representing the first line of the + * creditor's address. + */ + fun creditorAddressLine1(creditorAddressLine1: String) = + creditorAddressLine1(JsonField.of(creditorAddressLine1)) /** - * Sets [Builder.beneficiaryAddressLine1] to an arbitrary JSON value. + * Sets [Builder.creditorAddressLine1] to an arbitrary JSON value. * - * You should usually call [Builder.beneficiaryAddressLine1] with a well-typed [String] + * You should usually call [Builder.creditorAddressLine1] with a well-typed [String] * value instead. This method is primarily for setting the field to an undocumented or * not yet supported value. */ - fun beneficiaryAddressLine1(beneficiaryAddressLine1: JsonField) = apply { - this.beneficiaryAddressLine1 = beneficiaryAddressLine1 + fun creditorAddressLine1(creditorAddressLine1: JsonField) = apply { + this.creditorAddressLine1 = creditorAddressLine1 } - /** Line 2 of the drawdown request's beneficiary's address. */ - fun beneficiaryAddressLine2(beneficiaryAddressLine2: String) = - beneficiaryAddressLine2(JsonField.of(beneficiaryAddressLine2)) + /** + * A free-form address field set by the sender representing the second line of the + * creditor's address. + */ + fun creditorAddressLine2(creditorAddressLine2: String) = + creditorAddressLine2(JsonField.of(creditorAddressLine2)) /** - * Sets [Builder.beneficiaryAddressLine2] to an arbitrary JSON value. + * Sets [Builder.creditorAddressLine2] to an arbitrary JSON value. * - * You should usually call [Builder.beneficiaryAddressLine2] with a well-typed [String] + * You should usually call [Builder.creditorAddressLine2] with a well-typed [String] * value instead. This method is primarily for setting the field to an undocumented or * not yet supported value. */ - fun beneficiaryAddressLine2(beneficiaryAddressLine2: JsonField) = apply { - this.beneficiaryAddressLine2 = beneficiaryAddressLine2 + fun creditorAddressLine2(creditorAddressLine2: JsonField) = apply { + this.creditorAddressLine2 = creditorAddressLine2 } - /** Line 3 of the drawdown request's beneficiary's address. */ - fun beneficiaryAddressLine3(beneficiaryAddressLine3: String) = - beneficiaryAddressLine3(JsonField.of(beneficiaryAddressLine3)) + /** + * A free-form address field set by the sender representing the third line of the + * creditor's address. + */ + fun creditorAddressLine3(creditorAddressLine3: String) = + creditorAddressLine3(JsonField.of(creditorAddressLine3)) /** - * Sets [Builder.beneficiaryAddressLine3] to an arbitrary JSON value. + * Sets [Builder.creditorAddressLine3] to an arbitrary JSON value. * - * You should usually call [Builder.beneficiaryAddressLine3] with a well-typed [String] + * You should usually call [Builder.creditorAddressLine3] with a well-typed [String] * value instead. This method is primarily for setting the field to an undocumented or * not yet supported value. */ - fun beneficiaryAddressLine3(beneficiaryAddressLine3: JsonField) = apply { - this.beneficiaryAddressLine3 = beneficiaryAddressLine3 + fun creditorAddressLine3(creditorAddressLine3: JsonField) = apply { + this.creditorAddressLine3 = creditorAddressLine3 } - /** The drawdown request's beneficiary's name. */ - fun beneficiaryName(beneficiaryName: String) = - beneficiaryName(JsonField.of(beneficiaryName)) + /** A free-form name field set by the sender representing the creditor's name. */ + fun creditorName(creditorName: String) = creditorName(JsonField.of(creditorName)) /** - * Sets [Builder.beneficiaryName] to an arbitrary JSON value. + * Sets [Builder.creditorName] to an arbitrary JSON value. * - * You should usually call [Builder.beneficiaryName] with a well-typed [String] value + * You should usually call [Builder.creditorName] with a well-typed [String] value * instead. This method is primarily for setting the field to an undocumented or not yet * supported value. */ - fun beneficiaryName(beneficiaryName: JsonField) = apply { - this.beneficiaryName = beneficiaryName + fun creditorName(creditorName: JsonField) = apply { + this.creditorName = creditorName } - /** Line 1 of the drawdown request's originator's address. */ - fun originatorAddressLine1(originatorAddressLine1: String) = - originatorAddressLine1(JsonField.of(originatorAddressLine1)) + /** The debtor's account number. */ + fun debtorAccountNumber(debtorAccountNumber: String) = + debtorAccountNumber(JsonField.of(debtorAccountNumber)) /** - * Sets [Builder.originatorAddressLine1] to an arbitrary JSON value. + * Sets [Builder.debtorAccountNumber] to an arbitrary JSON value. * - * You should usually call [Builder.originatorAddressLine1] with a well-typed [String] + * You should usually call [Builder.debtorAccountNumber] with a well-typed [String] * value instead. This method is primarily for setting the field to an undocumented or * not yet supported value. */ - fun originatorAddressLine1(originatorAddressLine1: JsonField) = apply { - this.originatorAddressLine1 = originatorAddressLine1 + fun debtorAccountNumber(debtorAccountNumber: JsonField) = apply { + this.debtorAccountNumber = debtorAccountNumber } - /** Line 2 of the drawdown request's originator's address. */ - fun originatorAddressLine2(originatorAddressLine2: String) = - originatorAddressLine2(JsonField.of(originatorAddressLine2)) + /** + * A free-form address field set by the sender representing the first line of the + * debtor's address. + */ + fun debtorAddressLine1(debtorAddressLine1: String) = + debtorAddressLine1(JsonField.of(debtorAddressLine1)) /** - * Sets [Builder.originatorAddressLine2] to an arbitrary JSON value. + * Sets [Builder.debtorAddressLine1] to an arbitrary JSON value. * - * You should usually call [Builder.originatorAddressLine2] with a well-typed [String] - * value instead. This method is primarily for setting the field to an undocumented or - * not yet supported value. + * You should usually call [Builder.debtorAddressLine1] with a well-typed [String] value + * instead. This method is primarily for setting the field to an undocumented or not yet + * supported value. */ - fun originatorAddressLine2(originatorAddressLine2: JsonField) = apply { - this.originatorAddressLine2 = originatorAddressLine2 + fun debtorAddressLine1(debtorAddressLine1: JsonField) = apply { + this.debtorAddressLine1 = debtorAddressLine1 } - /** Line 3 of the drawdown request's originator's address. */ - fun originatorAddressLine3(originatorAddressLine3: String) = - originatorAddressLine3(JsonField.of(originatorAddressLine3)) + /** + * A free-form address field set by the sender representing the second line of the + * debtor's address. + */ + fun debtorAddressLine2(debtorAddressLine2: String) = + debtorAddressLine2(JsonField.of(debtorAddressLine2)) /** - * Sets [Builder.originatorAddressLine3] to an arbitrary JSON value. + * Sets [Builder.debtorAddressLine2] to an arbitrary JSON value. * - * You should usually call [Builder.originatorAddressLine3] with a well-typed [String] - * value instead. This method is primarily for setting the field to an undocumented or - * not yet supported value. + * You should usually call [Builder.debtorAddressLine2] with a well-typed [String] value + * instead. This method is primarily for setting the field to an undocumented or not yet + * supported value. */ - fun originatorAddressLine3(originatorAddressLine3: JsonField) = apply { - this.originatorAddressLine3 = originatorAddressLine3 + fun debtorAddressLine2(debtorAddressLine2: JsonField) = apply { + this.debtorAddressLine2 = debtorAddressLine2 } - /** The drawdown request's originator's name. */ - fun originatorName(originatorName: String) = - originatorName(JsonField.of(originatorName)) + /** A free-form address field set by the sender. */ + fun debtorAddressLine3(debtorAddressLine3: String) = + debtorAddressLine3(JsonField.of(debtorAddressLine3)) /** - * Sets [Builder.originatorName] to an arbitrary JSON value. + * Sets [Builder.debtorAddressLine3] to an arbitrary JSON value. * - * You should usually call [Builder.originatorName] with a well-typed [String] value + * You should usually call [Builder.debtorAddressLine3] with a well-typed [String] value * instead. This method is primarily for setting the field to an undocumented or not yet * supported value. */ - fun originatorName(originatorName: JsonField) = apply { - this.originatorName = originatorName + fun debtorAddressLine3(debtorAddressLine3: JsonField) = apply { + this.debtorAddressLine3 = debtorAddressLine3 } + /** A free-form name field set by the sender representing the debtor's name. */ + fun debtorName(debtorName: String) = debtorName(JsonField.of(debtorName)) + /** - * Line 1 of the information conveyed from the originator of the message to the - * beneficiary. + * Sets [Builder.debtorName] to an arbitrary JSON value. + * + * You should usually call [Builder.debtorName] with a well-typed [String] value + * instead. This method is primarily for setting the field to an undocumented or not yet + * supported value. */ - fun originatorToBeneficiaryInformationLine1( - originatorToBeneficiaryInformationLine1: String - ) = - originatorToBeneficiaryInformationLine1( - JsonField.of(originatorToBeneficiaryInformationLine1) - ) + fun debtorName(debtorName: JsonField) = apply { this.debtorName = debtorName } + + /** The debtor's routing number. */ + fun debtorRoutingNumber(debtorRoutingNumber: String) = + debtorRoutingNumber(JsonField.of(debtorRoutingNumber)) /** - * Sets [Builder.originatorToBeneficiaryInformationLine1] to an arbitrary JSON value. + * Sets [Builder.debtorRoutingNumber] to an arbitrary JSON value. * - * You should usually call [Builder.originatorToBeneficiaryInformationLine1] with a - * well-typed [String] value instead. This method is primarily for setting the field to - * an undocumented or not yet supported value. + * You should usually call [Builder.debtorRoutingNumber] with a well-typed [String] + * value instead. This method is primarily for setting the field to an undocumented or + * not yet supported value. */ - fun originatorToBeneficiaryInformationLine1( - originatorToBeneficiaryInformationLine1: JsonField - ) = apply { - this.originatorToBeneficiaryInformationLine1 = - originatorToBeneficiaryInformationLine1 + fun debtorRoutingNumber(debtorRoutingNumber: JsonField) = apply { + this.debtorRoutingNumber = debtorRoutingNumber } + /** A free-form reference string set by the sender, to help identify the transfer. */ + fun endToEndIdentification(endToEndIdentification: String) = + endToEndIdentification(JsonField.of(endToEndIdentification)) + /** - * Line 2 of the information conveyed from the originator of the message to the - * beneficiary. + * Sets [Builder.endToEndIdentification] to an arbitrary JSON value. + * + * You should usually call [Builder.endToEndIdentification] with a well-typed [String] + * value instead. This method is primarily for setting the field to an undocumented or + * not yet supported value. */ - fun originatorToBeneficiaryInformationLine2( - originatorToBeneficiaryInformationLine2: String - ) = - originatorToBeneficiaryInformationLine2( - JsonField.of(originatorToBeneficiaryInformationLine2) - ) + fun endToEndIdentification(endToEndIdentification: JsonField) = apply { + this.endToEndIdentification = endToEndIdentification + } + + /** The sending bank's identifier for the wire transfer. */ + fun instructionIdentification(instructionIdentification: String) = + instructionIdentification(JsonField.of(instructionIdentification)) /** - * Sets [Builder.originatorToBeneficiaryInformationLine2] to an arbitrary JSON value. + * Sets [Builder.instructionIdentification] to an arbitrary JSON value. * - * You should usually call [Builder.originatorToBeneficiaryInformationLine2] with a - * well-typed [String] value instead. This method is primarily for setting the field to - * an undocumented or not yet supported value. + * You should usually call [Builder.instructionIdentification] with a well-typed + * [String] value instead. This method is primarily for setting the field to an + * undocumented or not yet supported value. */ - fun originatorToBeneficiaryInformationLine2( - originatorToBeneficiaryInformationLine2: JsonField - ) = apply { - this.originatorToBeneficiaryInformationLine2 = - originatorToBeneficiaryInformationLine2 + fun instructionIdentification(instructionIdentification: JsonField) = apply { + this.instructionIdentification = instructionIdentification } /** - * Line 3 of the information conveyed from the originator of the message to the - * beneficiary. + * The Unique End-to-end Transaction Reference + * ([UETR](https://www.swift.com/payments/what-unique-end-end-transaction-reference-uetr)) + * of the transfer. */ - fun originatorToBeneficiaryInformationLine3( - originatorToBeneficiaryInformationLine3: String - ) = - originatorToBeneficiaryInformationLine3( - JsonField.of(originatorToBeneficiaryInformationLine3) - ) + fun uniqueEndToEndTransactionReference(uniqueEndToEndTransactionReference: String) = + uniqueEndToEndTransactionReference(JsonField.of(uniqueEndToEndTransactionReference)) /** - * Sets [Builder.originatorToBeneficiaryInformationLine3] to an arbitrary JSON value. + * Sets [Builder.uniqueEndToEndTransactionReference] to an arbitrary JSON value. * - * You should usually call [Builder.originatorToBeneficiaryInformationLine3] with a + * You should usually call [Builder.uniqueEndToEndTransactionReference] with a * well-typed [String] value instead. This method is primarily for setting the field to * an undocumented or not yet supported value. */ - fun originatorToBeneficiaryInformationLine3( - originatorToBeneficiaryInformationLine3: JsonField + fun uniqueEndToEndTransactionReference( + uniqueEndToEndTransactionReference: JsonField ) = apply { - this.originatorToBeneficiaryInformationLine3 = - originatorToBeneficiaryInformationLine3 + this.uniqueEndToEndTransactionReference = uniqueEndToEndTransactionReference } - /** - * Line 4 of the information conveyed from the originator of the message to the - * beneficiary. - */ - fun originatorToBeneficiaryInformationLine4( - originatorToBeneficiaryInformationLine4: String - ) = - originatorToBeneficiaryInformationLine4( - JsonField.of(originatorToBeneficiaryInformationLine4) - ) + /** A free-form message set by the sender. */ + fun unstructuredRemittanceInformation(unstructuredRemittanceInformation: String) = + unstructuredRemittanceInformation(JsonField.of(unstructuredRemittanceInformation)) /** - * Sets [Builder.originatorToBeneficiaryInformationLine4] to an arbitrary JSON value. + * Sets [Builder.unstructuredRemittanceInformation] to an arbitrary JSON value. * - * You should usually call [Builder.originatorToBeneficiaryInformationLine4] with a - * well-typed [String] value instead. This method is primarily for setting the field to - * an undocumented or not yet supported value. + * You should usually call [Builder.unstructuredRemittanceInformation] with a well-typed + * [String] value instead. This method is primarily for setting the field to an + * undocumented or not yet supported value. */ - fun originatorToBeneficiaryInformationLine4( - originatorToBeneficiaryInformationLine4: JsonField - ) = apply { - this.originatorToBeneficiaryInformationLine4 = - originatorToBeneficiaryInformationLine4 - } + fun unstructuredRemittanceInformation( + unstructuredRemittanceInformation: JsonField + ) = apply { this.unstructuredRemittanceInformation = unstructuredRemittanceInformation } fun additionalProperties(additionalProperties: Map) = apply { this.additionalProperties.clear() @@ -1852,12 +1732,9 @@ private constructor( * The following fields are required: * ```java * .amount() - * .beneficiaryAccountNumber() - * .beneficiaryRoutingNumber() + * .creditorAccountNumber() + * .creditorRoutingNumber() * .currency() - * .messageToRecipient() - * .originatorAccountNumber() - * .originatorRoutingNumber() * .recipientAccountNumberId() * ``` * @@ -1866,25 +1743,24 @@ private constructor( fun build(): Body = Body( checkRequired("amount", amount), - checkRequired("beneficiaryAccountNumber", beneficiaryAccountNumber), - checkRequired("beneficiaryRoutingNumber", beneficiaryRoutingNumber), + checkRequired("creditorAccountNumber", creditorAccountNumber), + checkRequired("creditorRoutingNumber", creditorRoutingNumber), checkRequired("currency", currency), - checkRequired("messageToRecipient", messageToRecipient), - checkRequired("originatorAccountNumber", originatorAccountNumber), - checkRequired("originatorRoutingNumber", originatorRoutingNumber), checkRequired("recipientAccountNumberId", recipientAccountNumberId), - beneficiaryAddressLine1, - beneficiaryAddressLine2, - beneficiaryAddressLine3, - beneficiaryName, - originatorAddressLine1, - originatorAddressLine2, - originatorAddressLine3, - originatorName, - originatorToBeneficiaryInformationLine1, - originatorToBeneficiaryInformationLine2, - originatorToBeneficiaryInformationLine3, - originatorToBeneficiaryInformationLine4, + creditorAddressLine1, + creditorAddressLine2, + creditorAddressLine3, + creditorName, + debtorAccountNumber, + debtorAddressLine1, + debtorAddressLine2, + debtorAddressLine3, + debtorName, + debtorRoutingNumber, + endToEndIdentification, + instructionIdentification, + uniqueEndToEndTransactionReference, + unstructuredRemittanceInformation, additionalProperties.toMutableMap(), ) } @@ -1897,25 +1773,24 @@ private constructor( } amount() - beneficiaryAccountNumber() - beneficiaryRoutingNumber() + creditorAccountNumber() + creditorRoutingNumber() currency() - messageToRecipient() - originatorAccountNumber() - originatorRoutingNumber() recipientAccountNumberId() - beneficiaryAddressLine1() - beneficiaryAddressLine2() - beneficiaryAddressLine3() - beneficiaryName() - originatorAddressLine1() - originatorAddressLine2() - originatorAddressLine3() - originatorName() - originatorToBeneficiaryInformationLine1() - originatorToBeneficiaryInformationLine2() - originatorToBeneficiaryInformationLine3() - originatorToBeneficiaryInformationLine4() + creditorAddressLine1() + creditorAddressLine2() + creditorAddressLine3() + creditorName() + debtorAccountNumber() + debtorAddressLine1() + debtorAddressLine2() + debtorAddressLine3() + debtorName() + debtorRoutingNumber() + endToEndIdentification() + instructionIdentification() + uniqueEndToEndTransactionReference() + unstructuredRemittanceInformation() validated = true } @@ -1936,25 +1811,24 @@ private constructor( @JvmSynthetic internal fun validity(): Int = (if (amount.asKnown().isPresent) 1 else 0) + - (if (beneficiaryAccountNumber.asKnown().isPresent) 1 else 0) + - (if (beneficiaryRoutingNumber.asKnown().isPresent) 1 else 0) + + (if (creditorAccountNumber.asKnown().isPresent) 1 else 0) + + (if (creditorRoutingNumber.asKnown().isPresent) 1 else 0) + (if (currency.asKnown().isPresent) 1 else 0) + - (if (messageToRecipient.asKnown().isPresent) 1 else 0) + - (if (originatorAccountNumber.asKnown().isPresent) 1 else 0) + - (if (originatorRoutingNumber.asKnown().isPresent) 1 else 0) + (if (recipientAccountNumberId.asKnown().isPresent) 1 else 0) + - (if (beneficiaryAddressLine1.asKnown().isPresent) 1 else 0) + - (if (beneficiaryAddressLine2.asKnown().isPresent) 1 else 0) + - (if (beneficiaryAddressLine3.asKnown().isPresent) 1 else 0) + - (if (beneficiaryName.asKnown().isPresent) 1 else 0) + - (if (originatorAddressLine1.asKnown().isPresent) 1 else 0) + - (if (originatorAddressLine2.asKnown().isPresent) 1 else 0) + - (if (originatorAddressLine3.asKnown().isPresent) 1 else 0) + - (if (originatorName.asKnown().isPresent) 1 else 0) + - (if (originatorToBeneficiaryInformationLine1.asKnown().isPresent) 1 else 0) + - (if (originatorToBeneficiaryInformationLine2.asKnown().isPresent) 1 else 0) + - (if (originatorToBeneficiaryInformationLine3.asKnown().isPresent) 1 else 0) + - (if (originatorToBeneficiaryInformationLine4.asKnown().isPresent) 1 else 0) + (if (creditorAddressLine1.asKnown().isPresent) 1 else 0) + + (if (creditorAddressLine2.asKnown().isPresent) 1 else 0) + + (if (creditorAddressLine3.asKnown().isPresent) 1 else 0) + + (if (creditorName.asKnown().isPresent) 1 else 0) + + (if (debtorAccountNumber.asKnown().isPresent) 1 else 0) + + (if (debtorAddressLine1.asKnown().isPresent) 1 else 0) + + (if (debtorAddressLine2.asKnown().isPresent) 1 else 0) + + (if (debtorAddressLine3.asKnown().isPresent) 1 else 0) + + (if (debtorName.asKnown().isPresent) 1 else 0) + + (if (debtorRoutingNumber.asKnown().isPresent) 1 else 0) + + (if (endToEndIdentification.asKnown().isPresent) 1 else 0) + + (if (instructionIdentification.asKnown().isPresent) 1 else 0) + + (if (uniqueEndToEndTransactionReference.asKnown().isPresent) 1 else 0) + + (if (unstructuredRemittanceInformation.asKnown().isPresent) 1 else 0) override fun equals(other: Any?): Boolean { if (this === other) { @@ -1963,54 +1837,48 @@ private constructor( return other is Body && amount == other.amount && - beneficiaryAccountNumber == other.beneficiaryAccountNumber && - beneficiaryRoutingNumber == other.beneficiaryRoutingNumber && + creditorAccountNumber == other.creditorAccountNumber && + creditorRoutingNumber == other.creditorRoutingNumber && currency == other.currency && - messageToRecipient == other.messageToRecipient && - originatorAccountNumber == other.originatorAccountNumber && - originatorRoutingNumber == other.originatorRoutingNumber && recipientAccountNumberId == other.recipientAccountNumberId && - beneficiaryAddressLine1 == other.beneficiaryAddressLine1 && - beneficiaryAddressLine2 == other.beneficiaryAddressLine2 && - beneficiaryAddressLine3 == other.beneficiaryAddressLine3 && - beneficiaryName == other.beneficiaryName && - originatorAddressLine1 == other.originatorAddressLine1 && - originatorAddressLine2 == other.originatorAddressLine2 && - originatorAddressLine3 == other.originatorAddressLine3 && - originatorName == other.originatorName && - originatorToBeneficiaryInformationLine1 == - other.originatorToBeneficiaryInformationLine1 && - originatorToBeneficiaryInformationLine2 == - other.originatorToBeneficiaryInformationLine2 && - originatorToBeneficiaryInformationLine3 == - other.originatorToBeneficiaryInformationLine3 && - originatorToBeneficiaryInformationLine4 == - other.originatorToBeneficiaryInformationLine4 && + creditorAddressLine1 == other.creditorAddressLine1 && + creditorAddressLine2 == other.creditorAddressLine2 && + creditorAddressLine3 == other.creditorAddressLine3 && + creditorName == other.creditorName && + debtorAccountNumber == other.debtorAccountNumber && + debtorAddressLine1 == other.debtorAddressLine1 && + debtorAddressLine2 == other.debtorAddressLine2 && + debtorAddressLine3 == other.debtorAddressLine3 && + debtorName == other.debtorName && + debtorRoutingNumber == other.debtorRoutingNumber && + endToEndIdentification == other.endToEndIdentification && + instructionIdentification == other.instructionIdentification && + uniqueEndToEndTransactionReference == other.uniqueEndToEndTransactionReference && + unstructuredRemittanceInformation == other.unstructuredRemittanceInformation && additionalProperties == other.additionalProperties } private val hashCode: Int by lazy { Objects.hash( amount, - beneficiaryAccountNumber, - beneficiaryRoutingNumber, + creditorAccountNumber, + creditorRoutingNumber, currency, - messageToRecipient, - originatorAccountNumber, - originatorRoutingNumber, recipientAccountNumberId, - beneficiaryAddressLine1, - beneficiaryAddressLine2, - beneficiaryAddressLine3, - beneficiaryName, - originatorAddressLine1, - originatorAddressLine2, - originatorAddressLine3, - originatorName, - originatorToBeneficiaryInformationLine1, - originatorToBeneficiaryInformationLine2, - originatorToBeneficiaryInformationLine3, - originatorToBeneficiaryInformationLine4, + creditorAddressLine1, + creditorAddressLine2, + creditorAddressLine3, + creditorName, + debtorAccountNumber, + debtorAddressLine1, + debtorAddressLine2, + debtorAddressLine3, + debtorName, + debtorRoutingNumber, + endToEndIdentification, + instructionIdentification, + uniqueEndToEndTransactionReference, + unstructuredRemittanceInformation, additionalProperties, ) } @@ -2018,7 +1886,7 @@ private constructor( override fun hashCode(): Int = hashCode override fun toString() = - "Body{amount=$amount, beneficiaryAccountNumber=$beneficiaryAccountNumber, beneficiaryRoutingNumber=$beneficiaryRoutingNumber, currency=$currency, messageToRecipient=$messageToRecipient, originatorAccountNumber=$originatorAccountNumber, originatorRoutingNumber=$originatorRoutingNumber, recipientAccountNumberId=$recipientAccountNumberId, beneficiaryAddressLine1=$beneficiaryAddressLine1, beneficiaryAddressLine2=$beneficiaryAddressLine2, beneficiaryAddressLine3=$beneficiaryAddressLine3, beneficiaryName=$beneficiaryName, originatorAddressLine1=$originatorAddressLine1, originatorAddressLine2=$originatorAddressLine2, originatorAddressLine3=$originatorAddressLine3, originatorName=$originatorName, originatorToBeneficiaryInformationLine1=$originatorToBeneficiaryInformationLine1, originatorToBeneficiaryInformationLine2=$originatorToBeneficiaryInformationLine2, originatorToBeneficiaryInformationLine3=$originatorToBeneficiaryInformationLine3, originatorToBeneficiaryInformationLine4=$originatorToBeneficiaryInformationLine4, additionalProperties=$additionalProperties}" + "Body{amount=$amount, creditorAccountNumber=$creditorAccountNumber, creditorRoutingNumber=$creditorRoutingNumber, currency=$currency, recipientAccountNumberId=$recipientAccountNumberId, creditorAddressLine1=$creditorAddressLine1, creditorAddressLine2=$creditorAddressLine2, creditorAddressLine3=$creditorAddressLine3, creditorName=$creditorName, debtorAccountNumber=$debtorAccountNumber, debtorAddressLine1=$debtorAddressLine1, debtorAddressLine2=$debtorAddressLine2, debtorAddressLine3=$debtorAddressLine3, debtorName=$debtorName, debtorRoutingNumber=$debtorRoutingNumber, endToEndIdentification=$endToEndIdentification, instructionIdentification=$instructionIdentification, uniqueEndToEndTransactionReference=$uniqueEndToEndTransactionReference, unstructuredRemittanceInformation=$unstructuredRemittanceInformation, additionalProperties=$additionalProperties}" } override fun equals(other: Any?): Boolean { diff --git a/increase-java-core/src/test/kotlin/com/increase/api/models/inboundwiredrawdownrequests/InboundWireDrawdownRequestListPageResponseTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/models/inboundwiredrawdownrequests/InboundWireDrawdownRequestListPageResponseTest.kt index 6107e1b58..6a00d99a5 100644 --- a/increase-java-core/src/test/kotlin/com/increase/api/models/inboundwiredrawdownrequests/InboundWireDrawdownRequestListPageResponseTest.kt +++ b/increase-java-core/src/test/kotlin/com/increase/api/models/inboundwiredrawdownrequests/InboundWireDrawdownRequestListPageResponseTest.kt @@ -18,27 +18,25 @@ internal class InboundWireDrawdownRequestListPageResponseTest { InboundWireDrawdownRequest.builder() .id("inbound_wire_drawdown_request_u5a92ikqhz1ytphn799e") .amount(10000L) - .beneficiaryAccountNumber("987654321") - .beneficiaryAddressLine1("33 Liberty Street") - .beneficiaryAddressLine2("New York, NY, 10045") - .beneficiaryAddressLine3(null) - .beneficiaryName("Ian Crease") - .beneficiaryRoutingNumber("101050001") .createdAt(OffsetDateTime.parse("2020-01-31T23:59:59Z")) + .creditorAccountNumber("987654321") + .creditorAddressLine1("33 Liberty Street") + .creditorAddressLine2("New York, NY, 10045") + .creditorAddressLine3(null) + .creditorName("Ian Crease") + .creditorRoutingNumber("101050001") .currency("USD") - .messageToRecipient("Invoice 29582") - .originatorAccountNumber("987654321") - .originatorAddressLine1("33 Liberty Street") - .originatorAddressLine2("New York, NY, 10045") - .originatorAddressLine3(null) - .originatorName("Ian Crease") - .originatorRoutingNumber("101050001") - .originatorToBeneficiaryInformationLine1(null) - .originatorToBeneficiaryInformationLine2(null) - .originatorToBeneficiaryInformationLine3(null) - .originatorToBeneficiaryInformationLine4(null) + .debtorAddressLine1("33 Liberty Street") + .debtorAddressLine2("New York, NY, 10045") + .debtorAddressLine3(null) + .debtorName("Ian Crease") + .endToEndIdentification("Invoice 29582") + .inputMessageAccountabilityData(null) + .instructionIdentification(null) .recipientAccountNumberId("account_number_v18nkfqm6afpsrvy82b2") .type(InboundWireDrawdownRequest.Type.INBOUND_WIRE_DRAWDOWN_REQUEST) + .uniqueEndToEndTransactionReference(null) + .unstructuredRemittanceInformation(null) .build() ) .nextCursor("v57w5d") @@ -49,27 +47,25 @@ internal class InboundWireDrawdownRequestListPageResponseTest { InboundWireDrawdownRequest.builder() .id("inbound_wire_drawdown_request_u5a92ikqhz1ytphn799e") .amount(10000L) - .beneficiaryAccountNumber("987654321") - .beneficiaryAddressLine1("33 Liberty Street") - .beneficiaryAddressLine2("New York, NY, 10045") - .beneficiaryAddressLine3(null) - .beneficiaryName("Ian Crease") - .beneficiaryRoutingNumber("101050001") .createdAt(OffsetDateTime.parse("2020-01-31T23:59:59Z")) + .creditorAccountNumber("987654321") + .creditorAddressLine1("33 Liberty Street") + .creditorAddressLine2("New York, NY, 10045") + .creditorAddressLine3(null) + .creditorName("Ian Crease") + .creditorRoutingNumber("101050001") .currency("USD") - .messageToRecipient("Invoice 29582") - .originatorAccountNumber("987654321") - .originatorAddressLine1("33 Liberty Street") - .originatorAddressLine2("New York, NY, 10045") - .originatorAddressLine3(null) - .originatorName("Ian Crease") - .originatorRoutingNumber("101050001") - .originatorToBeneficiaryInformationLine1(null) - .originatorToBeneficiaryInformationLine2(null) - .originatorToBeneficiaryInformationLine3(null) - .originatorToBeneficiaryInformationLine4(null) + .debtorAddressLine1("33 Liberty Street") + .debtorAddressLine2("New York, NY, 10045") + .debtorAddressLine3(null) + .debtorName("Ian Crease") + .endToEndIdentification("Invoice 29582") + .inputMessageAccountabilityData(null) + .instructionIdentification(null) .recipientAccountNumberId("account_number_v18nkfqm6afpsrvy82b2") .type(InboundWireDrawdownRequest.Type.INBOUND_WIRE_DRAWDOWN_REQUEST) + .uniqueEndToEndTransactionReference(null) + .unstructuredRemittanceInformation(null) .build() ) assertThat(inboundWireDrawdownRequestListPageResponse.nextCursor()).contains("v57w5d") @@ -84,27 +80,25 @@ internal class InboundWireDrawdownRequestListPageResponseTest { InboundWireDrawdownRequest.builder() .id("inbound_wire_drawdown_request_u5a92ikqhz1ytphn799e") .amount(10000L) - .beneficiaryAccountNumber("987654321") - .beneficiaryAddressLine1("33 Liberty Street") - .beneficiaryAddressLine2("New York, NY, 10045") - .beneficiaryAddressLine3(null) - .beneficiaryName("Ian Crease") - .beneficiaryRoutingNumber("101050001") .createdAt(OffsetDateTime.parse("2020-01-31T23:59:59Z")) + .creditorAccountNumber("987654321") + .creditorAddressLine1("33 Liberty Street") + .creditorAddressLine2("New York, NY, 10045") + .creditorAddressLine3(null) + .creditorName("Ian Crease") + .creditorRoutingNumber("101050001") .currency("USD") - .messageToRecipient("Invoice 29582") - .originatorAccountNumber("987654321") - .originatorAddressLine1("33 Liberty Street") - .originatorAddressLine2("New York, NY, 10045") - .originatorAddressLine3(null) - .originatorName("Ian Crease") - .originatorRoutingNumber("101050001") - .originatorToBeneficiaryInformationLine1(null) - .originatorToBeneficiaryInformationLine2(null) - .originatorToBeneficiaryInformationLine3(null) - .originatorToBeneficiaryInformationLine4(null) + .debtorAddressLine1("33 Liberty Street") + .debtorAddressLine2("New York, NY, 10045") + .debtorAddressLine3(null) + .debtorName("Ian Crease") + .endToEndIdentification("Invoice 29582") + .inputMessageAccountabilityData(null) + .instructionIdentification(null) .recipientAccountNumberId("account_number_v18nkfqm6afpsrvy82b2") .type(InboundWireDrawdownRequest.Type.INBOUND_WIRE_DRAWDOWN_REQUEST) + .uniqueEndToEndTransactionReference(null) + .unstructuredRemittanceInformation(null) .build() ) .nextCursor("v57w5d") diff --git a/increase-java-core/src/test/kotlin/com/increase/api/models/inboundwiredrawdownrequests/InboundWireDrawdownRequestTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/models/inboundwiredrawdownrequests/InboundWireDrawdownRequestTest.kt index dd2a130f1..0360a3a92 100644 --- a/increase-java-core/src/test/kotlin/com/increase/api/models/inboundwiredrawdownrequests/InboundWireDrawdownRequestTest.kt +++ b/increase-java-core/src/test/kotlin/com/increase/api/models/inboundwiredrawdownrequests/InboundWireDrawdownRequestTest.kt @@ -16,60 +16,53 @@ internal class InboundWireDrawdownRequestTest { InboundWireDrawdownRequest.builder() .id("inbound_wire_drawdown_request_u5a92ikqhz1ytphn799e") .amount(10000L) - .beneficiaryAccountNumber("987654321") - .beneficiaryAddressLine1("33 Liberty Street") - .beneficiaryAddressLine2("New York, NY, 10045") - .beneficiaryAddressLine3(null) - .beneficiaryName("Ian Crease") - .beneficiaryRoutingNumber("101050001") .createdAt(OffsetDateTime.parse("2020-01-31T23:59:59Z")) + .creditorAccountNumber("987654321") + .creditorAddressLine1("33 Liberty Street") + .creditorAddressLine2("New York, NY, 10045") + .creditorAddressLine3(null) + .creditorName("Ian Crease") + .creditorRoutingNumber("101050001") .currency("USD") - .messageToRecipient("Invoice 29582") - .originatorAccountNumber("987654321") - .originatorAddressLine1("33 Liberty Street") - .originatorAddressLine2("New York, NY, 10045") - .originatorAddressLine3(null) - .originatorName("Ian Crease") - .originatorRoutingNumber("101050001") - .originatorToBeneficiaryInformationLine1(null) - .originatorToBeneficiaryInformationLine2(null) - .originatorToBeneficiaryInformationLine3(null) - .originatorToBeneficiaryInformationLine4(null) + .debtorAddressLine1("33 Liberty Street") + .debtorAddressLine2("New York, NY, 10045") + .debtorAddressLine3(null) + .debtorName("Ian Crease") + .endToEndIdentification("Invoice 29582") + .inputMessageAccountabilityData(null) + .instructionIdentification(null) .recipientAccountNumberId("account_number_v18nkfqm6afpsrvy82b2") .type(InboundWireDrawdownRequest.Type.INBOUND_WIRE_DRAWDOWN_REQUEST) + .uniqueEndToEndTransactionReference(null) + .unstructuredRemittanceInformation(null) .build() assertThat(inboundWireDrawdownRequest.id()) .isEqualTo("inbound_wire_drawdown_request_u5a92ikqhz1ytphn799e") assertThat(inboundWireDrawdownRequest.amount()).isEqualTo(10000L) - assertThat(inboundWireDrawdownRequest.beneficiaryAccountNumber()).isEqualTo("987654321") - assertThat(inboundWireDrawdownRequest.beneficiaryAddressLine1()) - .contains("33 Liberty Street") - assertThat(inboundWireDrawdownRequest.beneficiaryAddressLine2()) - .contains("New York, NY, 10045") - assertThat(inboundWireDrawdownRequest.beneficiaryAddressLine3()).isEmpty - assertThat(inboundWireDrawdownRequest.beneficiaryName()).contains("Ian Crease") - assertThat(inboundWireDrawdownRequest.beneficiaryRoutingNumber()).isEqualTo("101050001") assertThat(inboundWireDrawdownRequest.createdAt()) .isEqualTo(OffsetDateTime.parse("2020-01-31T23:59:59Z")) - assertThat(inboundWireDrawdownRequest.currency()).isEqualTo("USD") - assertThat(inboundWireDrawdownRequest.messageToRecipient()).contains("Invoice 29582") - assertThat(inboundWireDrawdownRequest.originatorAccountNumber()).contains("987654321") - assertThat(inboundWireDrawdownRequest.originatorAddressLine1()) - .contains("33 Liberty Street") - assertThat(inboundWireDrawdownRequest.originatorAddressLine2()) + assertThat(inboundWireDrawdownRequest.creditorAccountNumber()).isEqualTo("987654321") + assertThat(inboundWireDrawdownRequest.creditorAddressLine1()).contains("33 Liberty Street") + assertThat(inboundWireDrawdownRequest.creditorAddressLine2()) .contains("New York, NY, 10045") - assertThat(inboundWireDrawdownRequest.originatorAddressLine3()).isEmpty - assertThat(inboundWireDrawdownRequest.originatorName()).contains("Ian Crease") - assertThat(inboundWireDrawdownRequest.originatorRoutingNumber()).isEqualTo("101050001") - assertThat(inboundWireDrawdownRequest.originatorToBeneficiaryInformationLine1()).isEmpty - assertThat(inboundWireDrawdownRequest.originatorToBeneficiaryInformationLine2()).isEmpty - assertThat(inboundWireDrawdownRequest.originatorToBeneficiaryInformationLine3()).isEmpty - assertThat(inboundWireDrawdownRequest.originatorToBeneficiaryInformationLine4()).isEmpty + assertThat(inboundWireDrawdownRequest.creditorAddressLine3()).isEmpty + assertThat(inboundWireDrawdownRequest.creditorName()).contains("Ian Crease") + assertThat(inboundWireDrawdownRequest.creditorRoutingNumber()).isEqualTo("101050001") + assertThat(inboundWireDrawdownRequest.currency()).isEqualTo("USD") + assertThat(inboundWireDrawdownRequest.debtorAddressLine1()).contains("33 Liberty Street") + assertThat(inboundWireDrawdownRequest.debtorAddressLine2()).contains("New York, NY, 10045") + assertThat(inboundWireDrawdownRequest.debtorAddressLine3()).isEmpty + assertThat(inboundWireDrawdownRequest.debtorName()).contains("Ian Crease") + assertThat(inboundWireDrawdownRequest.endToEndIdentification()).contains("Invoice 29582") + assertThat(inboundWireDrawdownRequest.inputMessageAccountabilityData()).isEmpty + assertThat(inboundWireDrawdownRequest.instructionIdentification()).isEmpty assertThat(inboundWireDrawdownRequest.recipientAccountNumberId()) .isEqualTo("account_number_v18nkfqm6afpsrvy82b2") assertThat(inboundWireDrawdownRequest.type()) .isEqualTo(InboundWireDrawdownRequest.Type.INBOUND_WIRE_DRAWDOWN_REQUEST) + assertThat(inboundWireDrawdownRequest.uniqueEndToEndTransactionReference()).isEmpty + assertThat(inboundWireDrawdownRequest.unstructuredRemittanceInformation()).isEmpty } @Test @@ -79,27 +72,25 @@ internal class InboundWireDrawdownRequestTest { InboundWireDrawdownRequest.builder() .id("inbound_wire_drawdown_request_u5a92ikqhz1ytphn799e") .amount(10000L) - .beneficiaryAccountNumber("987654321") - .beneficiaryAddressLine1("33 Liberty Street") - .beneficiaryAddressLine2("New York, NY, 10045") - .beneficiaryAddressLine3(null) - .beneficiaryName("Ian Crease") - .beneficiaryRoutingNumber("101050001") .createdAt(OffsetDateTime.parse("2020-01-31T23:59:59Z")) + .creditorAccountNumber("987654321") + .creditorAddressLine1("33 Liberty Street") + .creditorAddressLine2("New York, NY, 10045") + .creditorAddressLine3(null) + .creditorName("Ian Crease") + .creditorRoutingNumber("101050001") .currency("USD") - .messageToRecipient("Invoice 29582") - .originatorAccountNumber("987654321") - .originatorAddressLine1("33 Liberty Street") - .originatorAddressLine2("New York, NY, 10045") - .originatorAddressLine3(null) - .originatorName("Ian Crease") - .originatorRoutingNumber("101050001") - .originatorToBeneficiaryInformationLine1(null) - .originatorToBeneficiaryInformationLine2(null) - .originatorToBeneficiaryInformationLine3(null) - .originatorToBeneficiaryInformationLine4(null) + .debtorAddressLine1("33 Liberty Street") + .debtorAddressLine2("New York, NY, 10045") + .debtorAddressLine3(null) + .debtorName("Ian Crease") + .endToEndIdentification("Invoice 29582") + .inputMessageAccountabilityData(null) + .instructionIdentification(null) .recipientAccountNumberId("account_number_v18nkfqm6afpsrvy82b2") .type(InboundWireDrawdownRequest.Type.INBOUND_WIRE_DRAWDOWN_REQUEST) + .uniqueEndToEndTransactionReference(null) + .unstructuredRemittanceInformation(null) .build() val roundtrippedInboundWireDrawdownRequest = diff --git a/increase-java-core/src/test/kotlin/com/increase/api/models/simulations/inboundwiredrawdownrequests/InboundWireDrawdownRequestCreateParamsTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/models/simulations/inboundwiredrawdownrequests/InboundWireDrawdownRequestCreateParamsTest.kt index c7b0c65f2..dc2f126db 100644 --- a/increase-java-core/src/test/kotlin/com/increase/api/models/simulations/inboundwiredrawdownrequests/InboundWireDrawdownRequestCreateParamsTest.kt +++ b/increase-java-core/src/test/kotlin/com/increase/api/models/simulations/inboundwiredrawdownrequests/InboundWireDrawdownRequestCreateParamsTest.kt @@ -11,25 +11,24 @@ internal class InboundWireDrawdownRequestCreateParamsTest { fun create() { InboundWireDrawdownRequestCreateParams.builder() .amount(10000L) - .beneficiaryAccountNumber("987654321") - .beneficiaryRoutingNumber("101050001") + .creditorAccountNumber("987654321") + .creditorRoutingNumber("101050001") .currency("USD") - .messageToRecipient("Invoice 29582") - .originatorAccountNumber("987654321") - .originatorRoutingNumber("101050001") .recipientAccountNumberId("account_number_v18nkfqm6afpsrvy82b2") - .beneficiaryAddressLine1("33 Liberty Street") - .beneficiaryAddressLine2("New York, NY, 10045") - .beneficiaryAddressLine3("x") - .beneficiaryName("Ian Crease") - .originatorAddressLine1("33 Liberty Street") - .originatorAddressLine2("New York, NY, 10045") - .originatorAddressLine3("x") - .originatorName("Ian Crease") - .originatorToBeneficiaryInformationLine1("x") - .originatorToBeneficiaryInformationLine2("x") - .originatorToBeneficiaryInformationLine3("x") - .originatorToBeneficiaryInformationLine4("x") + .creditorAddressLine1("33 Liberty Street") + .creditorAddressLine2("New York, NY, 10045") + .creditorAddressLine3("x") + .creditorName("Ian Crease") + .debtorAccountNumber("987654321") + .debtorAddressLine1("33 Liberty Street") + .debtorAddressLine2("New York, NY, 10045") + .debtorAddressLine3("x") + .debtorName("Ian Crease") + .debtorRoutingNumber("101050001") + .endToEndIdentification("x") + .instructionIdentification("x") + .uniqueEndToEndTransactionReference("x") + .unstructuredRemittanceInformation("x") .build() } @@ -38,49 +37,47 @@ internal class InboundWireDrawdownRequestCreateParamsTest { val params = InboundWireDrawdownRequestCreateParams.builder() .amount(10000L) - .beneficiaryAccountNumber("987654321") - .beneficiaryRoutingNumber("101050001") + .creditorAccountNumber("987654321") + .creditorRoutingNumber("101050001") .currency("USD") - .messageToRecipient("Invoice 29582") - .originatorAccountNumber("987654321") - .originatorRoutingNumber("101050001") .recipientAccountNumberId("account_number_v18nkfqm6afpsrvy82b2") - .beneficiaryAddressLine1("33 Liberty Street") - .beneficiaryAddressLine2("New York, NY, 10045") - .beneficiaryAddressLine3("x") - .beneficiaryName("Ian Crease") - .originatorAddressLine1("33 Liberty Street") - .originatorAddressLine2("New York, NY, 10045") - .originatorAddressLine3("x") - .originatorName("Ian Crease") - .originatorToBeneficiaryInformationLine1("x") - .originatorToBeneficiaryInformationLine2("x") - .originatorToBeneficiaryInformationLine3("x") - .originatorToBeneficiaryInformationLine4("x") + .creditorAddressLine1("33 Liberty Street") + .creditorAddressLine2("New York, NY, 10045") + .creditorAddressLine3("x") + .creditorName("Ian Crease") + .debtorAccountNumber("987654321") + .debtorAddressLine1("33 Liberty Street") + .debtorAddressLine2("New York, NY, 10045") + .debtorAddressLine3("x") + .debtorName("Ian Crease") + .debtorRoutingNumber("101050001") + .endToEndIdentification("x") + .instructionIdentification("x") + .uniqueEndToEndTransactionReference("x") + .unstructuredRemittanceInformation("x") .build() val body = params._body() assertThat(body.amount()).isEqualTo(10000L) - assertThat(body.beneficiaryAccountNumber()).isEqualTo("987654321") - assertThat(body.beneficiaryRoutingNumber()).isEqualTo("101050001") + assertThat(body.creditorAccountNumber()).isEqualTo("987654321") + assertThat(body.creditorRoutingNumber()).isEqualTo("101050001") assertThat(body.currency()).isEqualTo("USD") - assertThat(body.messageToRecipient()).isEqualTo("Invoice 29582") - assertThat(body.originatorAccountNumber()).isEqualTo("987654321") - assertThat(body.originatorRoutingNumber()).isEqualTo("101050001") assertThat(body.recipientAccountNumberId()).isEqualTo("account_number_v18nkfqm6afpsrvy82b2") - assertThat(body.beneficiaryAddressLine1()).contains("33 Liberty Street") - assertThat(body.beneficiaryAddressLine2()).contains("New York, NY, 10045") - assertThat(body.beneficiaryAddressLine3()).contains("x") - assertThat(body.beneficiaryName()).contains("Ian Crease") - assertThat(body.originatorAddressLine1()).contains("33 Liberty Street") - assertThat(body.originatorAddressLine2()).contains("New York, NY, 10045") - assertThat(body.originatorAddressLine3()).contains("x") - assertThat(body.originatorName()).contains("Ian Crease") - assertThat(body.originatorToBeneficiaryInformationLine1()).contains("x") - assertThat(body.originatorToBeneficiaryInformationLine2()).contains("x") - assertThat(body.originatorToBeneficiaryInformationLine3()).contains("x") - assertThat(body.originatorToBeneficiaryInformationLine4()).contains("x") + assertThat(body.creditorAddressLine1()).contains("33 Liberty Street") + assertThat(body.creditorAddressLine2()).contains("New York, NY, 10045") + assertThat(body.creditorAddressLine3()).contains("x") + assertThat(body.creditorName()).contains("Ian Crease") + assertThat(body.debtorAccountNumber()).contains("987654321") + assertThat(body.debtorAddressLine1()).contains("33 Liberty Street") + assertThat(body.debtorAddressLine2()).contains("New York, NY, 10045") + assertThat(body.debtorAddressLine3()).contains("x") + assertThat(body.debtorName()).contains("Ian Crease") + assertThat(body.debtorRoutingNumber()).contains("101050001") + assertThat(body.endToEndIdentification()).contains("x") + assertThat(body.instructionIdentification()).contains("x") + assertThat(body.uniqueEndToEndTransactionReference()).contains("x") + assertThat(body.unstructuredRemittanceInformation()).contains("x") } @Test @@ -88,24 +85,18 @@ internal class InboundWireDrawdownRequestCreateParamsTest { val params = InboundWireDrawdownRequestCreateParams.builder() .amount(10000L) - .beneficiaryAccountNumber("987654321") - .beneficiaryRoutingNumber("101050001") + .creditorAccountNumber("987654321") + .creditorRoutingNumber("101050001") .currency("USD") - .messageToRecipient("Invoice 29582") - .originatorAccountNumber("987654321") - .originatorRoutingNumber("101050001") .recipientAccountNumberId("account_number_v18nkfqm6afpsrvy82b2") .build() val body = params._body() assertThat(body.amount()).isEqualTo(10000L) - assertThat(body.beneficiaryAccountNumber()).isEqualTo("987654321") - assertThat(body.beneficiaryRoutingNumber()).isEqualTo("101050001") + assertThat(body.creditorAccountNumber()).isEqualTo("987654321") + assertThat(body.creditorRoutingNumber()).isEqualTo("101050001") assertThat(body.currency()).isEqualTo("USD") - assertThat(body.messageToRecipient()).isEqualTo("Invoice 29582") - assertThat(body.originatorAccountNumber()).isEqualTo("987654321") - assertThat(body.originatorRoutingNumber()).isEqualTo("101050001") assertThat(body.recipientAccountNumberId()).isEqualTo("account_number_v18nkfqm6afpsrvy82b2") } } diff --git a/increase-java-core/src/test/kotlin/com/increase/api/services/async/simulations/InboundWireDrawdownRequestServiceAsyncTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/services/async/simulations/InboundWireDrawdownRequestServiceAsyncTest.kt index 846895e4e..e7fc4a8c5 100644 --- a/increase-java-core/src/test/kotlin/com/increase/api/services/async/simulations/InboundWireDrawdownRequestServiceAsyncTest.kt +++ b/increase-java-core/src/test/kotlin/com/increase/api/services/async/simulations/InboundWireDrawdownRequestServiceAsyncTest.kt @@ -25,25 +25,24 @@ internal class InboundWireDrawdownRequestServiceAsyncTest { inboundWireDrawdownRequestServiceAsync.create( InboundWireDrawdownRequestCreateParams.builder() .amount(10000L) - .beneficiaryAccountNumber("987654321") - .beneficiaryRoutingNumber("101050001") + .creditorAccountNumber("987654321") + .creditorRoutingNumber("101050001") .currency("USD") - .messageToRecipient("Invoice 29582") - .originatorAccountNumber("987654321") - .originatorRoutingNumber("101050001") .recipientAccountNumberId("account_number_v18nkfqm6afpsrvy82b2") - .beneficiaryAddressLine1("33 Liberty Street") - .beneficiaryAddressLine2("New York, NY, 10045") - .beneficiaryAddressLine3("x") - .beneficiaryName("Ian Crease") - .originatorAddressLine1("33 Liberty Street") - .originatorAddressLine2("New York, NY, 10045") - .originatorAddressLine3("x") - .originatorName("Ian Crease") - .originatorToBeneficiaryInformationLine1("x") - .originatorToBeneficiaryInformationLine2("x") - .originatorToBeneficiaryInformationLine3("x") - .originatorToBeneficiaryInformationLine4("x") + .creditorAddressLine1("33 Liberty Street") + .creditorAddressLine2("New York, NY, 10045") + .creditorAddressLine3("x") + .creditorName("Ian Crease") + .debtorAccountNumber("987654321") + .debtorAddressLine1("33 Liberty Street") + .debtorAddressLine2("New York, NY, 10045") + .debtorAddressLine3("x") + .debtorName("Ian Crease") + .debtorRoutingNumber("101050001") + .endToEndIdentification("x") + .instructionIdentification("x") + .uniqueEndToEndTransactionReference("x") + .unstructuredRemittanceInformation("x") .build() ) diff --git a/increase-java-core/src/test/kotlin/com/increase/api/services/blocking/simulations/InboundWireDrawdownRequestServiceTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/services/blocking/simulations/InboundWireDrawdownRequestServiceTest.kt index 9720a3883..422848804 100644 --- a/increase-java-core/src/test/kotlin/com/increase/api/services/blocking/simulations/InboundWireDrawdownRequestServiceTest.kt +++ b/increase-java-core/src/test/kotlin/com/increase/api/services/blocking/simulations/InboundWireDrawdownRequestServiceTest.kt @@ -24,25 +24,24 @@ internal class InboundWireDrawdownRequestServiceTest { inboundWireDrawdownRequestService.create( InboundWireDrawdownRequestCreateParams.builder() .amount(10000L) - .beneficiaryAccountNumber("987654321") - .beneficiaryRoutingNumber("101050001") + .creditorAccountNumber("987654321") + .creditorRoutingNumber("101050001") .currency("USD") - .messageToRecipient("Invoice 29582") - .originatorAccountNumber("987654321") - .originatorRoutingNumber("101050001") .recipientAccountNumberId("account_number_v18nkfqm6afpsrvy82b2") - .beneficiaryAddressLine1("33 Liberty Street") - .beneficiaryAddressLine2("New York, NY, 10045") - .beneficiaryAddressLine3("x") - .beneficiaryName("Ian Crease") - .originatorAddressLine1("33 Liberty Street") - .originatorAddressLine2("New York, NY, 10045") - .originatorAddressLine3("x") - .originatorName("Ian Crease") - .originatorToBeneficiaryInformationLine1("x") - .originatorToBeneficiaryInformationLine2("x") - .originatorToBeneficiaryInformationLine3("x") - .originatorToBeneficiaryInformationLine4("x") + .creditorAddressLine1("33 Liberty Street") + .creditorAddressLine2("New York, NY, 10045") + .creditorAddressLine3("x") + .creditorName("Ian Crease") + .debtorAccountNumber("987654321") + .debtorAddressLine1("33 Liberty Street") + .debtorAddressLine2("New York, NY, 10045") + .debtorAddressLine3("x") + .debtorName("Ian Crease") + .debtorRoutingNumber("101050001") + .endToEndIdentification("x") + .instructionIdentification("x") + .uniqueEndToEndTransactionReference("x") + .unstructuredRemittanceInformation("x") .build() )