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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
configured_endpoints: 238
openapi_spec_hash: 244db0c7a39ae8fff699dccda50b79bd
openapi_spec_hash: 355ca6c73f05d0ce3888debdc2e1a7d8
config_hash: 2ae0d8aaecf01b38cbf9f9e112822c23
Original file line number Diff line number Diff line change
Expand Up @@ -2582,7 +2582,12 @@ private constructor(
/** Code R13. The routing number is invalid. */
@JvmField val INVALID_ACH_ROUTING_NUMBER = of("invalid_ach_routing_number")

/** Code R17. The receiving bank is unable to process a field in the transfer. */
/**
* Code R17. This return code has multiple meanings. The receiving bank was either
* unable to process a field in the transfer, or believes the transfer was initiated
* under questionable circumstances (such as fraud), or identified an
* improperly-initiated reversing entry.
*/
@JvmField val FILE_RECORD_EDIT_CRITERIA = of("file_record_edit_criteria")

/** Code R45. A rare return reason. The individual name field was invalid. */
Expand Down Expand Up @@ -2958,7 +2963,12 @@ private constructor(
AUTHORIZATION_REVOKED_BY_CUSTOMER,
/** Code R13. The routing number is invalid. */
INVALID_ACH_ROUTING_NUMBER,
/** Code R17. The receiving bank is unable to process a field in the transfer. */
/**
* Code R17. This return code has multiple meanings. The receiving bank was either
* unable to process a field in the transfer, or believes the transfer was initiated
* under questionable circumstances (such as fraud), or identified an
* improperly-initiated reversing entry.
*/
FILE_RECORD_EDIT_CRITERIA,
/** Code R45. A rare return reason. The individual name field was invalid. */
ENR_INVALID_INDIVIDUAL_NAME,
Expand Down Expand Up @@ -3250,7 +3260,12 @@ private constructor(
AUTHORIZATION_REVOKED_BY_CUSTOMER,
/** Code R13. The routing number is invalid. */
INVALID_ACH_ROUTING_NUMBER,
/** Code R17. The receiving bank is unable to process a field in the transfer. */
/**
* Code R17. This return code has multiple meanings. The receiving bank was either
* unable to process a field in the transfer, or believes the transfer was initiated
* under questionable circumstances (such as fraud), or identified an
* improperly-initiated reversing entry.
*/
FILE_RECORD_EDIT_CRITERIA,
/** Code R45. A rare return reason. The individual name field was invalid. */
ENR_INVALID_INDIVIDUAL_NAME,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7758,6 +7758,7 @@ private constructor(
class Return
@JsonCreator(mode = JsonCreator.Mode.DISABLED)
private constructor(
private val addendaInformation: JsonField<String>,
private val createdAt: JsonField<OffsetDateTime>,
private val rawReturnReasonCode: JsonField<String>,
private val returnReasonCode: JsonField<ReturnReasonCode>,
Expand All @@ -7769,6 +7770,9 @@ private constructor(

@JsonCreator
private constructor(
@JsonProperty("addenda_information")
@ExcludeMissing
addendaInformation: JsonField<String> = JsonMissing.of(),
@JsonProperty("created_at")
@ExcludeMissing
createdAt: JsonField<OffsetDateTime> = JsonMissing.of(),
Expand All @@ -7788,6 +7792,7 @@ private constructor(
@ExcludeMissing
transferId: JsonField<String> = JsonMissing.of(),
) : this(
addendaInformation,
createdAt,
rawReturnReasonCode,
returnReasonCode,
Expand All @@ -7797,6 +7802,19 @@ private constructor(
mutableMapOf(),
)

/**
* Additional free-form information included by the receiving bank in the return's addenda
* record. This is raw, uninterpreted text whose presence and format are not guaranteed. For
* a `file_record_edit_criteria` (R17) return the receiving bank may set this to
* `QUESTIONABLE` (optionally followed by more text) to indicate it believes the transfer
* was initiated under questionable circumstances.
*
* @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if
* the server responded with an unexpected value).
*/
fun addendaInformation(): Optional<String> =
addendaInformation.getOptional("addenda_information")

/**
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which the
* transfer was created.
Expand Down Expand Up @@ -7853,6 +7871,16 @@ private constructor(
*/
fun transferId(): String = transferId.getRequired("transfer_id")

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

/**
* Returns the raw JSON value of [createdAt].
*
Expand Down Expand Up @@ -7929,6 +7957,7 @@ private constructor(
*
* The following fields are required:
* ```java
* .addendaInformation()
* .createdAt()
* .rawReturnReasonCode()
* .returnReasonCode()
Expand All @@ -7943,6 +7972,7 @@ private constructor(
/** A builder for [Return]. */
class Builder internal constructor() {

private var addendaInformation: JsonField<String>? = null
private var createdAt: JsonField<OffsetDateTime>? = null
private var rawReturnReasonCode: JsonField<String>? = null
private var returnReasonCode: JsonField<ReturnReasonCode>? = null
Expand All @@ -7953,6 +7983,7 @@ private constructor(

@JvmSynthetic
internal fun from(return_: Return) = apply {
addendaInformation = return_.addendaInformation
createdAt = return_.createdAt
rawReturnReasonCode = return_.rawReturnReasonCode
returnReasonCode = return_.returnReasonCode
Expand All @@ -7962,6 +7993,34 @@ private constructor(
additionalProperties = return_.additionalProperties.toMutableMap()
}

/**
* Additional free-form information included by the receiving bank in the return's
* addenda record. This is raw, uninterpreted text whose presence and format are not
* guaranteed. For a `file_record_edit_criteria` (R17) return the receiving bank may set
* this to `QUESTIONABLE` (optionally followed by more text) to indicate it believes the
* transfer was initiated under questionable circumstances.
*/
fun addendaInformation(addendaInformation: String?) =
addendaInformation(JsonField.ofNullable(addendaInformation))

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

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

/**
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which the
* transfer was created.
Expand Down Expand Up @@ -8086,6 +8145,7 @@ private constructor(
*
* The following fields are required:
* ```java
* .addendaInformation()
* .createdAt()
* .rawReturnReasonCode()
* .returnReasonCode()
Expand All @@ -8098,6 +8158,7 @@ private constructor(
*/
fun build(): Return =
Return(
checkRequired("addendaInformation", addendaInformation),
checkRequired("createdAt", createdAt),
checkRequired("rawReturnReasonCode", rawReturnReasonCode),
checkRequired("returnReasonCode", returnReasonCode),
Expand All @@ -8124,6 +8185,7 @@ private constructor(
return@apply
}

addendaInformation()
createdAt()
rawReturnReasonCode()
returnReasonCode().validate()
Expand All @@ -8149,7 +8211,8 @@ private constructor(
*/
@JvmSynthetic
internal fun validity(): Int =
(if (createdAt.asKnown().isPresent) 1 else 0) +
(if (addendaInformation.asKnown().isPresent) 1 else 0) +
(if (createdAt.asKnown().isPresent) 1 else 0) +
(if (rawReturnReasonCode.asKnown().isPresent) 1 else 0) +
(returnReasonCode.asKnown().getOrNull()?.validity() ?: 0) +
(if (traceNumber.asKnown().isPresent) 1 else 0) +
Expand Down Expand Up @@ -8259,7 +8322,12 @@ private constructor(
/** Code R13. The routing number is invalid. */
@JvmField val INVALID_ACH_ROUTING_NUMBER = of("invalid_ach_routing_number")

/** Code R17. The receiving bank is unable to process a field in the transfer. */
/**
* Code R17. This return code has multiple meanings. The receiving bank was either
* unable to process a field in the transfer, or believes the transfer was initiated
* under questionable circumstances (such as fraud), or identified an
* improperly-initiated reversing entry.
*/
@JvmField val FILE_RECORD_EDIT_CRITERIA = of("file_record_edit_criteria")

/** Code R45. A rare return reason. The individual name field was invalid. */
Expand Down Expand Up @@ -8635,7 +8703,12 @@ private constructor(
AUTHORIZATION_REVOKED_BY_CUSTOMER,
/** Code R13. The routing number is invalid. */
INVALID_ACH_ROUTING_NUMBER,
/** Code R17. The receiving bank is unable to process a field in the transfer. */
/**
* Code R17. This return code has multiple meanings. The receiving bank was either
* unable to process a field in the transfer, or believes the transfer was initiated
* under questionable circumstances (such as fraud), or identified an
* improperly-initiated reversing entry.
*/
FILE_RECORD_EDIT_CRITERIA,
/** Code R45. A rare return reason. The individual name field was invalid. */
ENR_INVALID_INDIVIDUAL_NAME,
Expand Down Expand Up @@ -8927,7 +9000,12 @@ private constructor(
AUTHORIZATION_REVOKED_BY_CUSTOMER,
/** Code R13. The routing number is invalid. */
INVALID_ACH_ROUTING_NUMBER,
/** Code R17. The receiving bank is unable to process a field in the transfer. */
/**
* Code R17. This return code has multiple meanings. The receiving bank was either
* unable to process a field in the transfer, or believes the transfer was initiated
* under questionable circumstances (such as fraud), or identified an
* improperly-initiated reversing entry.
*/
FILE_RECORD_EDIT_CRITERIA,
/** Code R45. A rare return reason. The individual name field was invalid. */
ENR_INVALID_INDIVIDUAL_NAME,
Expand Down Expand Up @@ -9436,6 +9514,7 @@ private constructor(
}

return other is Return &&
addendaInformation == other.addendaInformation &&
createdAt == other.createdAt &&
rawReturnReasonCode == other.rawReturnReasonCode &&
returnReasonCode == other.returnReasonCode &&
Expand All @@ -9447,6 +9526,7 @@ private constructor(

private val hashCode: Int by lazy {
Objects.hash(
addendaInformation,
createdAt,
rawReturnReasonCode,
returnReasonCode,
Expand All @@ -9460,7 +9540,7 @@ private constructor(
override fun hashCode(): Int = hashCode

override fun toString() =
"Return{createdAt=$createdAt, rawReturnReasonCode=$rawReturnReasonCode, returnReasonCode=$returnReasonCode, traceNumber=$traceNumber, transactionId=$transactionId, transferId=$transferId, additionalProperties=$additionalProperties}"
"Return{addendaInformation=$addendaInformation, createdAt=$createdAt, rawReturnReasonCode=$rawReturnReasonCode, returnReasonCode=$returnReasonCode, traceNumber=$traceNumber, transactionId=$transactionId, transferId=$transferId, additionalProperties=$additionalProperties}"
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3546,7 +3546,8 @@ private constructor(
fun signature(): Signature = signature.getRequired("signature")

/**
* Tracking updates relating to the physical check's delivery.
* Tracking updates relating to the physical check's delivery. Sorted by `created_at` in
* ascending order.
*
* @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).
Expand Down Expand Up @@ -3932,7 +3933,10 @@ private constructor(
*/
fun signature(signature: JsonField<Signature>) = apply { this.signature = signature }

/** Tracking updates relating to the physical check's delivery. */
/**
* Tracking updates relating to the physical check's delivery. Sorted by `created_at` in
* ascending order.
*/
fun trackingUpdates(trackingUpdates: List<TrackingUpdate>) =
trackingUpdates(JsonField.of(trackingUpdates))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,16 @@ private constructor(
/** Occurs whenever an Inbound Mail Item is updated. */
@JvmField val INBOUND_MAIL_ITEM_UPDATED = of("inbound_mail_item.updated")

/** Occurs whenever an Inbound Real-Time Payments Request for Payment is created. */
@JvmField
val INBOUND_REAL_TIME_PAYMENTS_REQUEST_FOR_PAYMENT_CREATED =
of("inbound_real_time_payments_request_for_payment.created")

/** Occurs whenever an Inbound Real-Time Payments Request for Payment is updated. */
@JvmField
val INBOUND_REAL_TIME_PAYMENTS_REQUEST_FOR_PAYMENT_UPDATED =
of("inbound_real_time_payments_request_for_payment.updated")

/** Occurs whenever an Inbound Real-Time Payments Transfer is created. */
@JvmField
val INBOUND_REAL_TIME_PAYMENTS_TRANSFER_CREATED =
Expand Down Expand Up @@ -926,6 +936,10 @@ private constructor(
INBOUND_MAIL_ITEM_CREATED,
/** Occurs whenever an Inbound Mail Item is updated. */
INBOUND_MAIL_ITEM_UPDATED,
/** Occurs whenever an Inbound Real-Time Payments Request for Payment is created. */
INBOUND_REAL_TIME_PAYMENTS_REQUEST_FOR_PAYMENT_CREATED,
/** Occurs whenever an Inbound Real-Time Payments Request for Payment is updated. */
INBOUND_REAL_TIME_PAYMENTS_REQUEST_FOR_PAYMENT_UPDATED,
/** Occurs whenever an Inbound Real-Time Payments Transfer is created. */
INBOUND_REAL_TIME_PAYMENTS_TRANSFER_CREATED,
/** Occurs whenever an Inbound Real-Time Payments Transfer is updated. */
Expand Down Expand Up @@ -1183,6 +1197,10 @@ private constructor(
INBOUND_MAIL_ITEM_CREATED,
/** Occurs whenever an Inbound Mail Item is updated. */
INBOUND_MAIL_ITEM_UPDATED,
/** Occurs whenever an Inbound Real-Time Payments Request for Payment is created. */
INBOUND_REAL_TIME_PAYMENTS_REQUEST_FOR_PAYMENT_CREATED,
/** Occurs whenever an Inbound Real-Time Payments Request for Payment is updated. */
INBOUND_REAL_TIME_PAYMENTS_REQUEST_FOR_PAYMENT_UPDATED,
/** Occurs whenever an Inbound Real-Time Payments Transfer is created. */
INBOUND_REAL_TIME_PAYMENTS_TRANSFER_CREATED,
/** Occurs whenever an Inbound Real-Time Payments Transfer is updated. */
Expand Down Expand Up @@ -1377,6 +1395,10 @@ private constructor(
INBOUND_FEDNOW_TRANSFER_UPDATED -> Value.INBOUND_FEDNOW_TRANSFER_UPDATED
INBOUND_MAIL_ITEM_CREATED -> Value.INBOUND_MAIL_ITEM_CREATED
INBOUND_MAIL_ITEM_UPDATED -> Value.INBOUND_MAIL_ITEM_UPDATED
INBOUND_REAL_TIME_PAYMENTS_REQUEST_FOR_PAYMENT_CREATED ->
Value.INBOUND_REAL_TIME_PAYMENTS_REQUEST_FOR_PAYMENT_CREATED
INBOUND_REAL_TIME_PAYMENTS_REQUEST_FOR_PAYMENT_UPDATED ->
Value.INBOUND_REAL_TIME_PAYMENTS_REQUEST_FOR_PAYMENT_UPDATED
INBOUND_REAL_TIME_PAYMENTS_TRANSFER_CREATED ->
Value.INBOUND_REAL_TIME_PAYMENTS_TRANSFER_CREATED
INBOUND_REAL_TIME_PAYMENTS_TRANSFER_UPDATED ->
Expand Down Expand Up @@ -1516,6 +1538,10 @@ private constructor(
INBOUND_FEDNOW_TRANSFER_UPDATED -> Known.INBOUND_FEDNOW_TRANSFER_UPDATED
INBOUND_MAIL_ITEM_CREATED -> Known.INBOUND_MAIL_ITEM_CREATED
INBOUND_MAIL_ITEM_UPDATED -> Known.INBOUND_MAIL_ITEM_UPDATED
INBOUND_REAL_TIME_PAYMENTS_REQUEST_FOR_PAYMENT_CREATED ->
Known.INBOUND_REAL_TIME_PAYMENTS_REQUEST_FOR_PAYMENT_CREATED
INBOUND_REAL_TIME_PAYMENTS_REQUEST_FOR_PAYMENT_UPDATED ->
Known.INBOUND_REAL_TIME_PAYMENTS_REQUEST_FOR_PAYMENT_UPDATED
INBOUND_REAL_TIME_PAYMENTS_TRANSFER_CREATED ->
Known.INBOUND_REAL_TIME_PAYMENTS_TRANSFER_CREATED
INBOUND_REAL_TIME_PAYMENTS_TRANSFER_UPDATED ->
Expand Down
Loading
Loading