From 21c6220cb7dd359b5988c0bbf779eb8c99e2c9fd Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 17 Sep 2025 01:31:42 +0000 Subject: [PATCH 1/2] feat(api): api update --- .stats.yml | 4 +- .../DeclinedTransaction.kt | 479 +++++++++++++++++- .../DeclinedTransactionListParams.kt | 19 + .../com/increase/api/models/events/Event.kt | 18 + .../api/models/events/EventListParams.kt | 20 + .../eventsubscriptions/EventSubscription.kt | 18 + .../EventSubscriptionCreateParams.kt | 18 + .../api/models/transactions/Transaction.kt | 279 +++++++++- .../transactions/TransactionListParams.kt | 22 + ...DeclinedTransactionListPageResponseTest.kt | 32 ++ .../DeclinedTransactionTest.kt | 27 + .../CardAuthorizationCreateResponseTest.kt | 32 ++ .../TransactionListPageResponseTest.kt | 15 + .../models/transactions/TransactionTest.kt | 15 + 14 files changed, 994 insertions(+), 4 deletions(-) diff --git a/.stats.yml b/.stats.yml index 018fcf798..14e640b1e 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 217 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-6d19e08b9b1b9aa23a3a0c86db6eb3500b3a4aaf2d9f549a0177c5bebe67d098.yml -openapi_spec_hash: eec4190f1aca04351de8891c6a9b37da +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-61210b27ac135ed841515ad3c3dfedaf42dc1398b0a3ed63bbd6c154d1b31a6a.yml +openapi_spec_hash: b0d2957f6269776252f0ddaa6489772a config_hash: e1885b38eded054b77308a024c5d80cc diff --git a/increase-java-core/src/main/kotlin/com/increase/api/models/declinedtransactions/DeclinedTransaction.kt b/increase-java-core/src/main/kotlin/com/increase/api/models/declinedtransactions/DeclinedTransaction.kt index 3bceefdea..177459ebc 100644 --- a/increase-java-core/src/main/kotlin/com/increase/api/models/declinedtransactions/DeclinedTransaction.kt +++ b/increase-java-core/src/main/kotlin/com/increase/api/models/declinedtransactions/DeclinedTransaction.kt @@ -873,6 +873,7 @@ private constructor( private val category: JsonField, private val checkDecline: JsonField, private val checkDepositRejection: JsonField, + private val inboundFednowTransferDecline: JsonField, private val inboundRealTimePaymentsTransferDecline: JsonField, private val other: JsonValue, @@ -897,6 +898,10 @@ private constructor( @JsonProperty("check_deposit_rejection") @ExcludeMissing checkDepositRejection: JsonField = JsonMissing.of(), + @JsonProperty("inbound_fednow_transfer_decline") + @ExcludeMissing + inboundFednowTransferDecline: JsonField = + JsonMissing.of(), @JsonProperty("inbound_real_time_payments_transfer_decline") @ExcludeMissing inboundRealTimePaymentsTransferDecline: @@ -912,6 +917,7 @@ private constructor( category, checkDecline, checkDepositRejection, + inboundFednowTransferDecline, inboundRealTimePaymentsTransferDecline, other, wireDecline, @@ -964,6 +970,16 @@ private constructor( fun checkDepositRejection(): Optional = checkDepositRejection.getOptional("check_deposit_rejection") + /** + * An Inbound FedNow Transfer Decline object. This field will be present in the JSON + * response if and only if `category` is equal to `inbound_fednow_transfer_decline`. + * + * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if + * the server responded with an unexpected value). + */ + fun inboundFednowTransferDecline(): Optional = + inboundFednowTransferDecline.getOptional("inbound_fednow_transfer_decline") + /** * An Inbound Real-Time Payments Transfer Decline object. This field will be present in the * JSON response if and only if `category` is equal to @@ -1038,6 +1054,17 @@ private constructor( @ExcludeMissing fun _checkDepositRejection(): JsonField = checkDepositRejection + /** + * Returns the raw JSON value of [inboundFednowTransferDecline]. + * + * Unlike [inboundFednowTransferDecline], this method doesn't throw if the JSON field has an + * unexpected type. + */ + @JsonProperty("inbound_fednow_transfer_decline") + @ExcludeMissing + fun _inboundFednowTransferDecline(): JsonField = + inboundFednowTransferDecline + /** * Returns the raw JSON value of [inboundRealTimePaymentsTransferDecline]. * @@ -1083,6 +1110,7 @@ private constructor( * .category() * .checkDecline() * .checkDepositRejection() + * .inboundFednowTransferDecline() * .inboundRealTimePaymentsTransferDecline() * .other() * .wireDecline() @@ -1099,6 +1127,8 @@ private constructor( private var category: JsonField? = null private var checkDecline: JsonField? = null private var checkDepositRejection: JsonField? = null + private var inboundFednowTransferDecline: JsonField? = + null private var inboundRealTimePaymentsTransferDecline: JsonField? = null @@ -1113,6 +1143,7 @@ private constructor( category = source.category checkDecline = source.checkDecline checkDepositRejection = source.checkDepositRejection + inboundFednowTransferDecline = source.inboundFednowTransferDecline inboundRealTimePaymentsTransferDecline = source.inboundRealTimePaymentsTransferDecline other = source.other @@ -1225,6 +1256,33 @@ private constructor( this.checkDepositRejection = checkDepositRejection } + /** + * An Inbound FedNow Transfer Decline object. This field will be present in the JSON + * response if and only if `category` is equal to `inbound_fednow_transfer_decline`. + */ + fun inboundFednowTransferDecline( + inboundFednowTransferDecline: InboundFednowTransferDecline? + ) = inboundFednowTransferDecline(JsonField.ofNullable(inboundFednowTransferDecline)) + + /** + * Alias for calling [Builder.inboundFednowTransferDecline] with + * `inboundFednowTransferDecline.orElse(null)`. + */ + fun inboundFednowTransferDecline( + inboundFednowTransferDecline: Optional + ) = inboundFednowTransferDecline(inboundFednowTransferDecline.getOrNull()) + + /** + * Sets [Builder.inboundFednowTransferDecline] to an arbitrary JSON value. + * + * You should usually call [Builder.inboundFednowTransferDecline] with a well-typed + * [InboundFednowTransferDecline] value instead. This method is primarily for setting + * the field to an undocumented or not yet supported value. + */ + fun inboundFednowTransferDecline( + inboundFednowTransferDecline: JsonField + ) = apply { this.inboundFednowTransferDecline = inboundFednowTransferDecline } + /** * An Inbound Real-Time Payments Transfer Decline object. This field will be present in * the JSON response if and only if `category` is equal to @@ -1322,6 +1380,7 @@ private constructor( * .category() * .checkDecline() * .checkDepositRejection() + * .inboundFednowTransferDecline() * .inboundRealTimePaymentsTransferDecline() * .other() * .wireDecline() @@ -1336,6 +1395,7 @@ private constructor( checkRequired("category", category), checkRequired("checkDecline", checkDecline), checkRequired("checkDepositRejection", checkDepositRejection), + checkRequired("inboundFednowTransferDecline", inboundFednowTransferDecline), checkRequired( "inboundRealTimePaymentsTransferDecline", inboundRealTimePaymentsTransferDecline, @@ -1358,6 +1418,7 @@ private constructor( category().validate() checkDecline().ifPresent { it.validate() } checkDepositRejection().ifPresent { it.validate() } + inboundFednowTransferDecline().ifPresent { it.validate() } inboundRealTimePaymentsTransferDecline().ifPresent { it.validate() } wireDecline().ifPresent { it.validate() } validated = true @@ -1384,6 +1445,7 @@ private constructor( (category.asKnown().getOrNull()?.validity() ?: 0) + (checkDecline.asKnown().getOrNull()?.validity() ?: 0) + (checkDepositRejection.asKnown().getOrNull()?.validity() ?: 0) + + (inboundFednowTransferDecline.asKnown().getOrNull()?.validity() ?: 0) + (inboundRealTimePaymentsTransferDecline.asKnown().getOrNull()?.validity() ?: 0) + (wireDecline.asKnown().getOrNull()?.validity() ?: 0) @@ -11118,6 +11180,13 @@ private constructor( val INBOUND_REAL_TIME_PAYMENTS_TRANSFER_DECLINE = of("inbound_real_time_payments_transfer_decline") + /** + * Inbound FedNow Transfer Decline: details will be under the + * `inbound_fednow_transfer_decline` object. + */ + @JvmField + val INBOUND_FEDNOW_TRANSFER_DECLINE = of("inbound_fednow_transfer_decline") + /** Wire Decline: details will be under the `wire_decline` object. */ @JvmField val WIRE_DECLINE = of("wire_decline") @@ -11146,6 +11215,11 @@ private constructor( * `inbound_real_time_payments_transfer_decline` object. */ INBOUND_REAL_TIME_PAYMENTS_TRANSFER_DECLINE, + /** + * Inbound FedNow Transfer Decline: details will be under the + * `inbound_fednow_transfer_decline` object. + */ + INBOUND_FEDNOW_TRANSFER_DECLINE, /** Wire Decline: details will be under the `wire_decline` object. */ WIRE_DECLINE, /** @@ -11178,6 +11252,11 @@ private constructor( * `inbound_real_time_payments_transfer_decline` object. */ INBOUND_REAL_TIME_PAYMENTS_TRANSFER_DECLINE, + /** + * Inbound FedNow Transfer Decline: details will be under the + * `inbound_fednow_transfer_decline` object. + */ + INBOUND_FEDNOW_TRANSFER_DECLINE, /** Wire Decline: details will be under the `wire_decline` object. */ WIRE_DECLINE, /** @@ -11207,6 +11286,7 @@ private constructor( CHECK_DECLINE -> Value.CHECK_DECLINE INBOUND_REAL_TIME_PAYMENTS_TRANSFER_DECLINE -> Value.INBOUND_REAL_TIME_PAYMENTS_TRANSFER_DECLINE + INBOUND_FEDNOW_TRANSFER_DECLINE -> Value.INBOUND_FEDNOW_TRANSFER_DECLINE WIRE_DECLINE -> Value.WIRE_DECLINE CHECK_DEPOSIT_REJECTION -> Value.CHECK_DEPOSIT_REJECTION OTHER -> Value.OTHER @@ -11229,6 +11309,7 @@ private constructor( CHECK_DECLINE -> Known.CHECK_DECLINE INBOUND_REAL_TIME_PAYMENTS_TRANSFER_DECLINE -> Known.INBOUND_REAL_TIME_PAYMENTS_TRANSFER_DECLINE + INBOUND_FEDNOW_TRANSFER_DECLINE -> Known.INBOUND_FEDNOW_TRANSFER_DECLINE WIRE_DECLINE -> Known.WIRE_DECLINE CHECK_DEPOSIT_REJECTION -> Known.CHECK_DEPOSIT_REJECTION OTHER -> Known.OTHER @@ -12897,6 +12978,400 @@ private constructor( "CheckDepositRejection{amount=$amount, checkDepositId=$checkDepositId, currency=$currency, declinedTransactionId=$declinedTransactionId, reason=$reason, rejectedAt=$rejectedAt, additionalProperties=$additionalProperties}" } + /** + * An Inbound FedNow Transfer Decline object. This field will be present in the JSON + * response if and only if `category` is equal to `inbound_fednow_transfer_decline`. + */ + class InboundFednowTransferDecline + private constructor( + private val reason: JsonField, + private val transferId: JsonField, + private val additionalProperties: MutableMap, + ) { + + @JsonCreator + private constructor( + @JsonProperty("reason") + @ExcludeMissing + reason: JsonField = JsonMissing.of(), + @JsonProperty("transfer_id") + @ExcludeMissing + transferId: JsonField = JsonMissing.of(), + ) : this(reason, transferId, mutableMapOf()) + + /** + * Why the transfer was declined. + * + * @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 reason(): Reason = reason.getRequired("reason") + + /** + * The identifier of the FedNow Transfer that led to this declined transaction. + * + * @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 transferId(): String = transferId.getRequired("transfer_id") + + /** + * Returns the raw JSON value of [reason]. + * + * Unlike [reason], this method doesn't throw if the JSON field has an unexpected type. + */ + @JsonProperty("reason") @ExcludeMissing fun _reason(): JsonField = reason + + /** + * Returns the raw JSON value of [transferId]. + * + * Unlike [transferId], this method doesn't throw if the JSON field has an unexpected + * type. + */ + @JsonProperty("transfer_id") + @ExcludeMissing + fun _transferId(): JsonField = transferId + + @JsonAnySetter + private fun putAdditionalProperty(key: String, value: JsonValue) { + additionalProperties.put(key, value) + } + + @JsonAnyGetter + @ExcludeMissing + fun _additionalProperties(): Map = + Collections.unmodifiableMap(additionalProperties) + + fun toBuilder() = Builder().from(this) + + companion object { + + /** + * Returns a mutable builder for constructing an instance of + * [InboundFednowTransferDecline]. + * + * The following fields are required: + * ```java + * .reason() + * .transferId() + * ``` + */ + @JvmStatic fun builder() = Builder() + } + + /** A builder for [InboundFednowTransferDecline]. */ + class Builder internal constructor() { + + private var reason: JsonField? = null + private var transferId: JsonField? = null + private var additionalProperties: MutableMap = mutableMapOf() + + @JvmSynthetic + internal fun from(inboundFednowTransferDecline: InboundFednowTransferDecline) = + apply { + reason = inboundFednowTransferDecline.reason + transferId = inboundFednowTransferDecline.transferId + additionalProperties = + inboundFednowTransferDecline.additionalProperties.toMutableMap() + } + + /** Why the transfer was declined. */ + fun reason(reason: Reason) = reason(JsonField.of(reason)) + + /** + * Sets [Builder.reason] to an arbitrary JSON value. + * + * You should usually call [Builder.reason] with a well-typed [Reason] value + * instead. This method is primarily for setting the field to an undocumented or not + * yet supported value. + */ + fun reason(reason: JsonField) = apply { this.reason = reason } + + /** The identifier of the FedNow Transfer that led to this declined transaction. */ + fun transferId(transferId: String) = transferId(JsonField.of(transferId)) + + /** + * Sets [Builder.transferId] to an arbitrary JSON value. + * + * You should usually call [Builder.transferId] with a well-typed [String] value + * instead. This method is primarily for setting the field to an undocumented or not + * yet supported value. + */ + fun transferId(transferId: JsonField) = apply { + this.transferId = transferId + } + + fun additionalProperties(additionalProperties: Map) = apply { + this.additionalProperties.clear() + putAllAdditionalProperties(additionalProperties) + } + + fun putAdditionalProperty(key: String, value: JsonValue) = apply { + additionalProperties.put(key, value) + } + + fun putAllAdditionalProperties(additionalProperties: Map) = + apply { + this.additionalProperties.putAll(additionalProperties) + } + + fun removeAdditionalProperty(key: String) = apply { + additionalProperties.remove(key) + } + + fun removeAllAdditionalProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalProperty) + } + + /** + * Returns an immutable instance of [InboundFednowTransferDecline]. + * + * Further updates to this [Builder] will not mutate the returned instance. + * + * The following fields are required: + * ```java + * .reason() + * .transferId() + * ``` + * + * @throws IllegalStateException if any required field is unset. + */ + fun build(): InboundFednowTransferDecline = + InboundFednowTransferDecline( + checkRequired("reason", reason), + checkRequired("transferId", transferId), + additionalProperties.toMutableMap(), + ) + } + + private var validated: Boolean = false + + fun validate(): InboundFednowTransferDecline = apply { + if (validated) { + return@apply + } + + reason().validate() + transferId() + validated = true + } + + fun isValid(): Boolean = + try { + validate() + true + } catch (e: IncreaseInvalidDataException) { + false + } + + /** + * Returns a score indicating how many valid values are contained in this object + * recursively. + * + * Used for best match union deserialization. + */ + @JvmSynthetic + internal fun validity(): Int = + (reason.asKnown().getOrNull()?.validity() ?: 0) + + (if (transferId.asKnown().isPresent) 1 else 0) + + /** Why the transfer was declined. */ + class Reason @JsonCreator private constructor(private val value: JsonField) : + Enum { + + /** + * Returns this class instance's raw value. + * + * This is usually only useful if this instance was deserialized from data that + * doesn't match any known member, and you want to know that value. For example, if + * the SDK is on an older version than the API, then the API may respond with new + * members that the SDK is unaware of. + */ + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value + + companion object { + + /** The account number is canceled. */ + @JvmField val ACCOUNT_NUMBER_CANCELED = of("account_number_canceled") + + /** The account number is disabled. */ + @JvmField val ACCOUNT_NUMBER_DISABLED = of("account_number_disabled") + + /** Your account is restricted. */ + @JvmField val ACCOUNT_RESTRICTED = of("account_restricted") + + /** Your account is inactive. */ + @JvmField val GROUP_LOCKED = of("group_locked") + + /** The account's entity is not active. */ + @JvmField val ENTITY_NOT_ACTIVE = of("entity_not_active") + + /** Your account is not enabled to receive FedNow transfers. */ + @JvmField val FEDNOW_NOT_ENABLED = of("fednow_not_enabled") + + @JvmStatic fun of(value: String) = Reason(JsonField.of(value)) + } + + /** An enum containing [Reason]'s known values. */ + enum class Known { + /** The account number is canceled. */ + ACCOUNT_NUMBER_CANCELED, + /** The account number is disabled. */ + ACCOUNT_NUMBER_DISABLED, + /** Your account is restricted. */ + ACCOUNT_RESTRICTED, + /** Your account is inactive. */ + GROUP_LOCKED, + /** The account's entity is not active. */ + ENTITY_NOT_ACTIVE, + /** Your account is not enabled to receive FedNow transfers. */ + FEDNOW_NOT_ENABLED, + } + + /** + * An enum containing [Reason]'s known values, as well as an [_UNKNOWN] member. + * + * An instance of [Reason] can contain an unknown value in a couple of cases: + * - It was deserialized from data that doesn't match any known member. For example, + * if the SDK is on an older version than the API, then the API may respond with + * new members that the SDK is unaware of. + * - It was constructed with an arbitrary value using the [of] method. + */ + enum class Value { + /** The account number is canceled. */ + ACCOUNT_NUMBER_CANCELED, + /** The account number is disabled. */ + ACCOUNT_NUMBER_DISABLED, + /** Your account is restricted. */ + ACCOUNT_RESTRICTED, + /** Your account is inactive. */ + GROUP_LOCKED, + /** The account's entity is not active. */ + ENTITY_NOT_ACTIVE, + /** Your account is not enabled to receive FedNow transfers. */ + FEDNOW_NOT_ENABLED, + /** + * An enum member indicating that [Reason] was instantiated with an unknown + * value. + */ + _UNKNOWN, + } + + /** + * Returns an enum member corresponding to this class instance's value, or + * [Value._UNKNOWN] if the class was instantiated with an unknown value. + * + * Use the [known] method instead if you're certain the value is always known or if + * you want to throw for the unknown case. + */ + fun value(): Value = + when (this) { + ACCOUNT_NUMBER_CANCELED -> Value.ACCOUNT_NUMBER_CANCELED + ACCOUNT_NUMBER_DISABLED -> Value.ACCOUNT_NUMBER_DISABLED + ACCOUNT_RESTRICTED -> Value.ACCOUNT_RESTRICTED + GROUP_LOCKED -> Value.GROUP_LOCKED + ENTITY_NOT_ACTIVE -> Value.ENTITY_NOT_ACTIVE + FEDNOW_NOT_ENABLED -> Value.FEDNOW_NOT_ENABLED + else -> Value._UNKNOWN + } + + /** + * Returns an enum member corresponding to this class instance's value. + * + * Use the [value] method instead if you're uncertain the value is always known and + * don't want to throw for the unknown case. + * + * @throws IncreaseInvalidDataException if this class instance's value is a not a + * known member. + */ + fun known(): Known = + when (this) { + ACCOUNT_NUMBER_CANCELED -> Known.ACCOUNT_NUMBER_CANCELED + ACCOUNT_NUMBER_DISABLED -> Known.ACCOUNT_NUMBER_DISABLED + ACCOUNT_RESTRICTED -> Known.ACCOUNT_RESTRICTED + GROUP_LOCKED -> Known.GROUP_LOCKED + ENTITY_NOT_ACTIVE -> Known.ENTITY_NOT_ACTIVE + FEDNOW_NOT_ENABLED -> Known.FEDNOW_NOT_ENABLED + else -> throw IncreaseInvalidDataException("Unknown Reason: $value") + } + + /** + * Returns this class instance's primitive wire representation. + * + * This differs from the [toString] method because that method is primarily for + * debugging and generally doesn't throw. + * + * @throws IncreaseInvalidDataException if this class instance's value does not have + * the expected primitive type. + */ + fun asString(): String = + _value().asString().orElseThrow { + IncreaseInvalidDataException("Value is not a String") + } + + private var validated: Boolean = false + + fun validate(): Reason = apply { + if (validated) { + return@apply + } + + known() + validated = true + } + + fun isValid(): Boolean = + try { + validate() + true + } catch (e: IncreaseInvalidDataException) { + false + } + + /** + * Returns a score indicating how many valid values are contained in this object + * recursively. + * + * Used for best match union deserialization. + */ + @JvmSynthetic internal fun validity(): Int = if (value() == Value._UNKNOWN) 0 else 1 + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Reason && value == other.value + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is InboundFednowTransferDecline && + reason == other.reason && + transferId == other.transferId && + additionalProperties == other.additionalProperties + } + + private val hashCode: Int by lazy { + Objects.hash(reason, transferId, additionalProperties) + } + + override fun hashCode(): Int = hashCode + + override fun toString() = + "InboundFednowTransferDecline{reason=$reason, transferId=$transferId, additionalProperties=$additionalProperties}" + } + /** * An Inbound Real-Time Payments Transfer Decline object. This field will be present in the * JSON response if and only if `category` is equal to @@ -14277,6 +14752,7 @@ private constructor( category == other.category && checkDecline == other.checkDecline && checkDepositRejection == other.checkDepositRejection && + inboundFednowTransferDecline == other.inboundFednowTransferDecline && inboundRealTimePaymentsTransferDecline == other.inboundRealTimePaymentsTransferDecline && this.other == other.other && @@ -14291,6 +14767,7 @@ private constructor( category, checkDecline, checkDepositRejection, + inboundFednowTransferDecline, inboundRealTimePaymentsTransferDecline, other, wireDecline, @@ -14301,7 +14778,7 @@ private constructor( override fun hashCode(): Int = hashCode override fun toString() = - "Source{achDecline=$achDecline, cardDecline=$cardDecline, category=$category, checkDecline=$checkDecline, checkDepositRejection=$checkDepositRejection, inboundRealTimePaymentsTransferDecline=$inboundRealTimePaymentsTransferDecline, other=$other, wireDecline=$wireDecline, additionalProperties=$additionalProperties}" + "Source{achDecline=$achDecline, cardDecline=$cardDecline, category=$category, checkDecline=$checkDecline, checkDepositRejection=$checkDepositRejection, inboundFednowTransferDecline=$inboundFednowTransferDecline, inboundRealTimePaymentsTransferDecline=$inboundRealTimePaymentsTransferDecline, other=$other, wireDecline=$wireDecline, additionalProperties=$additionalProperties}" } /** diff --git a/increase-java-core/src/main/kotlin/com/increase/api/models/declinedtransactions/DeclinedTransactionListParams.kt b/increase-java-core/src/main/kotlin/com/increase/api/models/declinedtransactions/DeclinedTransactionListParams.kt index 45f020763..3a07c1c10 100644 --- a/increase-java-core/src/main/kotlin/com/increase/api/models/declinedtransactions/DeclinedTransactionListParams.kt +++ b/increase-java-core/src/main/kotlin/com/increase/api/models/declinedtransactions/DeclinedTransactionListParams.kt @@ -433,6 +433,13 @@ private constructor( val INBOUND_REAL_TIME_PAYMENTS_TRANSFER_DECLINE = of("inbound_real_time_payments_transfer_decline") + /** + * Inbound FedNow Transfer Decline: details will be under the + * `inbound_fednow_transfer_decline` object. + */ + @JvmField + val INBOUND_FEDNOW_TRANSFER_DECLINE = of("inbound_fednow_transfer_decline") + /** Wire Decline: details will be under the `wire_decline` object. */ @JvmField val WIRE_DECLINE = of("wire_decline") @@ -461,6 +468,11 @@ private constructor( * `inbound_real_time_payments_transfer_decline` object. */ INBOUND_REAL_TIME_PAYMENTS_TRANSFER_DECLINE, + /** + * Inbound FedNow Transfer Decline: details will be under the + * `inbound_fednow_transfer_decline` object. + */ + INBOUND_FEDNOW_TRANSFER_DECLINE, /** Wire Decline: details will be under the `wire_decline` object. */ WIRE_DECLINE, /** @@ -493,6 +505,11 @@ private constructor( * `inbound_real_time_payments_transfer_decline` object. */ INBOUND_REAL_TIME_PAYMENTS_TRANSFER_DECLINE, + /** + * Inbound FedNow Transfer Decline: details will be under the + * `inbound_fednow_transfer_decline` object. + */ + INBOUND_FEDNOW_TRANSFER_DECLINE, /** Wire Decline: details will be under the `wire_decline` object. */ WIRE_DECLINE, /** @@ -520,6 +537,7 @@ private constructor( CHECK_DECLINE -> Value.CHECK_DECLINE INBOUND_REAL_TIME_PAYMENTS_TRANSFER_DECLINE -> Value.INBOUND_REAL_TIME_PAYMENTS_TRANSFER_DECLINE + INBOUND_FEDNOW_TRANSFER_DECLINE -> Value.INBOUND_FEDNOW_TRANSFER_DECLINE WIRE_DECLINE -> Value.WIRE_DECLINE CHECK_DEPOSIT_REJECTION -> Value.CHECK_DEPOSIT_REJECTION OTHER -> Value.OTHER @@ -542,6 +560,7 @@ private constructor( CHECK_DECLINE -> Known.CHECK_DECLINE INBOUND_REAL_TIME_PAYMENTS_TRANSFER_DECLINE -> Known.INBOUND_REAL_TIME_PAYMENTS_TRANSFER_DECLINE + INBOUND_FEDNOW_TRANSFER_DECLINE -> Known.INBOUND_FEDNOW_TRANSFER_DECLINE WIRE_DECLINE -> Known.WIRE_DECLINE CHECK_DEPOSIT_REJECTION -> Known.CHECK_DEPOSIT_REJECTION OTHER -> Known.OTHER diff --git a/increase-java-core/src/main/kotlin/com/increase/api/models/events/Event.kt b/increase-java-core/src/main/kotlin/com/increase/api/models/events/Event.kt index d3a8e7040..707faf91d 100644 --- a/increase-java-core/src/main/kotlin/com/increase/api/models/events/Event.kt +++ b/increase-java-core/src/main/kotlin/com/increase/api/models/events/Event.kt @@ -552,6 +552,12 @@ private constructor( /** Occurs whenever an Inbound Check Deposit is updated. */ @JvmField val INBOUND_CHECK_DEPOSIT_UPDATED = of("inbound_check_deposit.updated") + /** Occurs whenever an Inbound FedNow Transfer is created. */ + @JvmField val INBOUND_FEDNOW_TRANSFER_CREATED = of("inbound_fednow_transfer.created") + + /** Occurs whenever an Inbound FedNow Transfer is updated. */ + @JvmField val INBOUND_FEDNOW_TRANSFER_UPDATED = of("inbound_fednow_transfer.updated") + /** Occurs whenever an Inbound Mail Item is created. */ @JvmField val INBOUND_MAIL_ITEM_CREATED = of("inbound_mail_item.created") @@ -857,6 +863,10 @@ private constructor( INBOUND_CHECK_DEPOSIT_CREATED, /** Occurs whenever an Inbound Check Deposit is updated. */ INBOUND_CHECK_DEPOSIT_UPDATED, + /** Occurs whenever an Inbound FedNow Transfer is created. */ + INBOUND_FEDNOW_TRANSFER_CREATED, + /** Occurs whenever an Inbound FedNow Transfer is updated. */ + INBOUND_FEDNOW_TRANSFER_UPDATED, /** Occurs whenever an Inbound Mail Item is created. */ INBOUND_MAIL_ITEM_CREATED, /** Occurs whenever an Inbound Mail Item is updated. */ @@ -1089,6 +1099,10 @@ private constructor( INBOUND_CHECK_DEPOSIT_CREATED, /** Occurs whenever an Inbound Check Deposit is updated. */ INBOUND_CHECK_DEPOSIT_UPDATED, + /** Occurs whenever an Inbound FedNow Transfer is created. */ + INBOUND_FEDNOW_TRANSFER_CREATED, + /** Occurs whenever an Inbound FedNow Transfer is updated. */ + INBOUND_FEDNOW_TRANSFER_UPDATED, /** Occurs whenever an Inbound Mail Item is created. */ INBOUND_MAIL_ITEM_CREATED, /** Occurs whenever an Inbound Mail Item is updated. */ @@ -1268,6 +1282,8 @@ private constructor( INBOUND_ACH_TRANSFER_RETURN_UPDATED -> Value.INBOUND_ACH_TRANSFER_RETURN_UPDATED INBOUND_CHECK_DEPOSIT_CREATED -> Value.INBOUND_CHECK_DEPOSIT_CREATED INBOUND_CHECK_DEPOSIT_UPDATED -> Value.INBOUND_CHECK_DEPOSIT_UPDATED + INBOUND_FEDNOW_TRANSFER_CREATED -> Value.INBOUND_FEDNOW_TRANSFER_CREATED + 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_TRANSFER_CREATED -> @@ -1395,6 +1411,8 @@ private constructor( INBOUND_ACH_TRANSFER_RETURN_UPDATED -> Known.INBOUND_ACH_TRANSFER_RETURN_UPDATED INBOUND_CHECK_DEPOSIT_CREATED -> Known.INBOUND_CHECK_DEPOSIT_CREATED INBOUND_CHECK_DEPOSIT_UPDATED -> Known.INBOUND_CHECK_DEPOSIT_UPDATED + INBOUND_FEDNOW_TRANSFER_CREATED -> Known.INBOUND_FEDNOW_TRANSFER_CREATED + 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_TRANSFER_CREATED -> diff --git a/increase-java-core/src/main/kotlin/com/increase/api/models/events/EventListParams.kt b/increase-java-core/src/main/kotlin/com/increase/api/models/events/EventListParams.kt index 618dc9036..08edc95ef 100644 --- a/increase-java-core/src/main/kotlin/com/increase/api/models/events/EventListParams.kt +++ b/increase-java-core/src/main/kotlin/com/increase/api/models/events/EventListParams.kt @@ -562,6 +562,14 @@ private constructor( /** Occurs whenever an Inbound Check Deposit is updated. */ @JvmField val INBOUND_CHECK_DEPOSIT_UPDATED = of("inbound_check_deposit.updated") + /** Occurs whenever an Inbound FedNow Transfer is created. */ + @JvmField + val INBOUND_FEDNOW_TRANSFER_CREATED = of("inbound_fednow_transfer.created") + + /** Occurs whenever an Inbound FedNow Transfer is updated. */ + @JvmField + val INBOUND_FEDNOW_TRANSFER_UPDATED = of("inbound_fednow_transfer.updated") + /** Occurs whenever an Inbound Mail Item is created. */ @JvmField val INBOUND_MAIL_ITEM_CREATED = of("inbound_mail_item.created") @@ -872,6 +880,10 @@ private constructor( INBOUND_CHECK_DEPOSIT_CREATED, /** Occurs whenever an Inbound Check Deposit is updated. */ INBOUND_CHECK_DEPOSIT_UPDATED, + /** Occurs whenever an Inbound FedNow Transfer is created. */ + INBOUND_FEDNOW_TRANSFER_CREATED, + /** Occurs whenever an Inbound FedNow Transfer is updated. */ + INBOUND_FEDNOW_TRANSFER_UPDATED, /** Occurs whenever an Inbound Mail Item is created. */ INBOUND_MAIL_ITEM_CREATED, /** Occurs whenever an Inbound Mail Item is updated. */ @@ -1106,6 +1118,10 @@ private constructor( INBOUND_CHECK_DEPOSIT_CREATED, /** Occurs whenever an Inbound Check Deposit is updated. */ INBOUND_CHECK_DEPOSIT_UPDATED, + /** Occurs whenever an Inbound FedNow Transfer is created. */ + INBOUND_FEDNOW_TRANSFER_CREATED, + /** Occurs whenever an Inbound FedNow Transfer is updated. */ + INBOUND_FEDNOW_TRANSFER_UPDATED, /** Occurs whenever an Inbound Mail Item is created. */ INBOUND_MAIL_ITEM_CREATED, /** Occurs whenever an Inbound Mail Item is updated. */ @@ -1287,6 +1303,8 @@ private constructor( INBOUND_ACH_TRANSFER_RETURN_UPDATED -> Value.INBOUND_ACH_TRANSFER_RETURN_UPDATED INBOUND_CHECK_DEPOSIT_CREATED -> Value.INBOUND_CHECK_DEPOSIT_CREATED INBOUND_CHECK_DEPOSIT_UPDATED -> Value.INBOUND_CHECK_DEPOSIT_UPDATED + INBOUND_FEDNOW_TRANSFER_CREATED -> Value.INBOUND_FEDNOW_TRANSFER_CREATED + 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_TRANSFER_CREATED -> @@ -1415,6 +1433,8 @@ private constructor( INBOUND_ACH_TRANSFER_RETURN_UPDATED -> Known.INBOUND_ACH_TRANSFER_RETURN_UPDATED INBOUND_CHECK_DEPOSIT_CREATED -> Known.INBOUND_CHECK_DEPOSIT_CREATED INBOUND_CHECK_DEPOSIT_UPDATED -> Known.INBOUND_CHECK_DEPOSIT_UPDATED + INBOUND_FEDNOW_TRANSFER_CREATED -> Known.INBOUND_FEDNOW_TRANSFER_CREATED + 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_TRANSFER_CREATED -> diff --git a/increase-java-core/src/main/kotlin/com/increase/api/models/eventsubscriptions/EventSubscription.kt b/increase-java-core/src/main/kotlin/com/increase/api/models/eventsubscriptions/EventSubscription.kt index badcd9754..b7e19830f 100644 --- a/increase-java-core/src/main/kotlin/com/increase/api/models/eventsubscriptions/EventSubscription.kt +++ b/increase-java-core/src/main/kotlin/com/increase/api/models/eventsubscriptions/EventSubscription.kt @@ -663,6 +663,12 @@ private constructor( /** Occurs whenever an Inbound Check Deposit is updated. */ @JvmField val INBOUND_CHECK_DEPOSIT_UPDATED = of("inbound_check_deposit.updated") + /** Occurs whenever an Inbound FedNow Transfer is created. */ + @JvmField val INBOUND_FEDNOW_TRANSFER_CREATED = of("inbound_fednow_transfer.created") + + /** Occurs whenever an Inbound FedNow Transfer is updated. */ + @JvmField val INBOUND_FEDNOW_TRANSFER_UPDATED = of("inbound_fednow_transfer.updated") + /** Occurs whenever an Inbound Mail Item is created. */ @JvmField val INBOUND_MAIL_ITEM_CREATED = of("inbound_mail_item.created") @@ -968,6 +974,10 @@ private constructor( INBOUND_CHECK_DEPOSIT_CREATED, /** Occurs whenever an Inbound Check Deposit is updated. */ INBOUND_CHECK_DEPOSIT_UPDATED, + /** Occurs whenever an Inbound FedNow Transfer is created. */ + INBOUND_FEDNOW_TRANSFER_CREATED, + /** Occurs whenever an Inbound FedNow Transfer is updated. */ + INBOUND_FEDNOW_TRANSFER_UPDATED, /** Occurs whenever an Inbound Mail Item is created. */ INBOUND_MAIL_ITEM_CREATED, /** Occurs whenever an Inbound Mail Item is updated. */ @@ -1201,6 +1211,10 @@ private constructor( INBOUND_CHECK_DEPOSIT_CREATED, /** Occurs whenever an Inbound Check Deposit is updated. */ INBOUND_CHECK_DEPOSIT_UPDATED, + /** Occurs whenever an Inbound FedNow Transfer is created. */ + INBOUND_FEDNOW_TRANSFER_CREATED, + /** Occurs whenever an Inbound FedNow Transfer is updated. */ + INBOUND_FEDNOW_TRANSFER_UPDATED, /** Occurs whenever an Inbound Mail Item is created. */ INBOUND_MAIL_ITEM_CREATED, /** Occurs whenever an Inbound Mail Item is updated. */ @@ -1383,6 +1397,8 @@ private constructor( INBOUND_ACH_TRANSFER_RETURN_UPDATED -> Value.INBOUND_ACH_TRANSFER_RETURN_UPDATED INBOUND_CHECK_DEPOSIT_CREATED -> Value.INBOUND_CHECK_DEPOSIT_CREATED INBOUND_CHECK_DEPOSIT_UPDATED -> Value.INBOUND_CHECK_DEPOSIT_UPDATED + INBOUND_FEDNOW_TRANSFER_CREATED -> Value.INBOUND_FEDNOW_TRANSFER_CREATED + 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_TRANSFER_CREATED -> @@ -1510,6 +1526,8 @@ private constructor( INBOUND_ACH_TRANSFER_RETURN_UPDATED -> Known.INBOUND_ACH_TRANSFER_RETURN_UPDATED INBOUND_CHECK_DEPOSIT_CREATED -> Known.INBOUND_CHECK_DEPOSIT_CREATED INBOUND_CHECK_DEPOSIT_UPDATED -> Known.INBOUND_CHECK_DEPOSIT_UPDATED + INBOUND_FEDNOW_TRANSFER_CREATED -> Known.INBOUND_FEDNOW_TRANSFER_CREATED + 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_TRANSFER_CREATED -> diff --git a/increase-java-core/src/main/kotlin/com/increase/api/models/eventsubscriptions/EventSubscriptionCreateParams.kt b/increase-java-core/src/main/kotlin/com/increase/api/models/eventsubscriptions/EventSubscriptionCreateParams.kt index 2737e5115..82a60cfe9 100644 --- a/increase-java-core/src/main/kotlin/com/increase/api/models/eventsubscriptions/EventSubscriptionCreateParams.kt +++ b/increase-java-core/src/main/kotlin/com/increase/api/models/eventsubscriptions/EventSubscriptionCreateParams.kt @@ -842,6 +842,12 @@ private constructor( /** Occurs whenever an Inbound Check Deposit is updated. */ @JvmField val INBOUND_CHECK_DEPOSIT_UPDATED = of("inbound_check_deposit.updated") + /** Occurs whenever an Inbound FedNow Transfer is created. */ + @JvmField val INBOUND_FEDNOW_TRANSFER_CREATED = of("inbound_fednow_transfer.created") + + /** Occurs whenever an Inbound FedNow Transfer is updated. */ + @JvmField val INBOUND_FEDNOW_TRANSFER_UPDATED = of("inbound_fednow_transfer.updated") + /** Occurs whenever an Inbound Mail Item is created. */ @JvmField val INBOUND_MAIL_ITEM_CREATED = of("inbound_mail_item.created") @@ -1147,6 +1153,10 @@ private constructor( INBOUND_CHECK_DEPOSIT_CREATED, /** Occurs whenever an Inbound Check Deposit is updated. */ INBOUND_CHECK_DEPOSIT_UPDATED, + /** Occurs whenever an Inbound FedNow Transfer is created. */ + INBOUND_FEDNOW_TRANSFER_CREATED, + /** Occurs whenever an Inbound FedNow Transfer is updated. */ + INBOUND_FEDNOW_TRANSFER_UPDATED, /** Occurs whenever an Inbound Mail Item is created. */ INBOUND_MAIL_ITEM_CREATED, /** Occurs whenever an Inbound Mail Item is updated. */ @@ -1380,6 +1390,10 @@ private constructor( INBOUND_CHECK_DEPOSIT_CREATED, /** Occurs whenever an Inbound Check Deposit is updated. */ INBOUND_CHECK_DEPOSIT_UPDATED, + /** Occurs whenever an Inbound FedNow Transfer is created. */ + INBOUND_FEDNOW_TRANSFER_CREATED, + /** Occurs whenever an Inbound FedNow Transfer is updated. */ + INBOUND_FEDNOW_TRANSFER_UPDATED, /** Occurs whenever an Inbound Mail Item is created. */ INBOUND_MAIL_ITEM_CREATED, /** Occurs whenever an Inbound Mail Item is updated. */ @@ -1562,6 +1576,8 @@ private constructor( INBOUND_ACH_TRANSFER_RETURN_UPDATED -> Value.INBOUND_ACH_TRANSFER_RETURN_UPDATED INBOUND_CHECK_DEPOSIT_CREATED -> Value.INBOUND_CHECK_DEPOSIT_CREATED INBOUND_CHECK_DEPOSIT_UPDATED -> Value.INBOUND_CHECK_DEPOSIT_UPDATED + INBOUND_FEDNOW_TRANSFER_CREATED -> Value.INBOUND_FEDNOW_TRANSFER_CREATED + 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_TRANSFER_CREATED -> @@ -1689,6 +1705,8 @@ private constructor( INBOUND_ACH_TRANSFER_RETURN_UPDATED -> Known.INBOUND_ACH_TRANSFER_RETURN_UPDATED INBOUND_CHECK_DEPOSIT_CREATED -> Known.INBOUND_CHECK_DEPOSIT_CREATED INBOUND_CHECK_DEPOSIT_UPDATED -> Known.INBOUND_CHECK_DEPOSIT_UPDATED + INBOUND_FEDNOW_TRANSFER_CREATED -> Known.INBOUND_FEDNOW_TRANSFER_CREATED + 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_TRANSFER_CREATED -> diff --git a/increase-java-core/src/main/kotlin/com/increase/api/models/transactions/Transaction.kt b/increase-java-core/src/main/kotlin/com/increase/api/models/transactions/Transaction.kt index 6a24efb9c..76a157fd3 100644 --- a/increase-java-core/src/main/kotlin/com/increase/api/models/transactions/Transaction.kt +++ b/increase-java-core/src/main/kotlin/com/increase/api/models/transactions/Transaction.kt @@ -892,6 +892,7 @@ private constructor( private val inboundCheckAdjustment: JsonField, private val inboundCheckDepositReturnIntention: JsonField, + private val inboundFednowTransferConfirmation: JsonField, private val inboundRealTimePaymentsTransferConfirmation: JsonField, private val inboundWireReversal: JsonField, @@ -983,6 +984,10 @@ private constructor( @ExcludeMissing inboundCheckDepositReturnIntention: JsonField = JsonMissing.of(), + @JsonProperty("inbound_fednow_transfer_confirmation") + @ExcludeMissing + inboundFednowTransferConfirmation: JsonField = + JsonMissing.of(), @JsonProperty("inbound_real_time_payments_transfer_confirmation") @ExcludeMissing inboundRealTimePaymentsTransferConfirmation: @@ -1045,6 +1050,7 @@ private constructor( inboundAchTransferReturnIntention, inboundCheckAdjustment, inboundCheckDepositReturnIntention, + inboundFednowTransferConfirmation, inboundRealTimePaymentsTransferConfirmation, inboundWireReversal, inboundWireTransfer, @@ -1329,6 +1335,18 @@ private constructor( fun inboundCheckDepositReturnIntention(): Optional = inboundCheckDepositReturnIntention.getOptional("inbound_check_deposit_return_intention") + /** + * An Inbound FedNow Transfer Confirmation object. This field will be present in the JSON + * response if and only if `category` is equal to `inbound_fednow_transfer_confirmation`. An + * Inbound FedNow Transfer Confirmation is created when a FedNow transfer is initiated at + * another bank and received by Increase. + * + * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if + * the server responded with an unexpected value). + */ + fun inboundFednowTransferConfirmation(): Optional = + inboundFednowTransferConfirmation.getOptional("inbound_fednow_transfer_confirmation") + /** * An Inbound Real-Time Payments Transfer Confirmation object. This field will be present in * the JSON response if and only if `category` is equal to @@ -1698,6 +1716,17 @@ private constructor( fun _inboundCheckDepositReturnIntention(): JsonField = inboundCheckDepositReturnIntention + /** + * Returns the raw JSON value of [inboundFednowTransferConfirmation]. + * + * Unlike [inboundFednowTransferConfirmation], this method doesn't throw if the JSON field + * has an unexpected type. + */ + @JsonProperty("inbound_fednow_transfer_confirmation") + @ExcludeMissing + fun _inboundFednowTransferConfirmation(): JsonField = + inboundFednowTransferConfirmation + /** * Returns the raw JSON value of [inboundRealTimePaymentsTransferConfirmation]. * @@ -1854,6 +1883,7 @@ private constructor( * .inboundAchTransferReturnIntention() * .inboundCheckAdjustment() * .inboundCheckDepositReturnIntention() + * .inboundFednowTransferConfirmation() * .inboundRealTimePaymentsTransferConfirmation() * .inboundWireReversal() * .inboundWireTransfer() @@ -1902,6 +1932,9 @@ private constructor( private var inboundCheckDepositReturnIntention: JsonField? = null + private var inboundFednowTransferConfirmation: + JsonField? = + null private var inboundRealTimePaymentsTransferConfirmation: JsonField? = null @@ -1945,6 +1978,7 @@ private constructor( inboundAchTransferReturnIntention = source.inboundAchTransferReturnIntention inboundCheckAdjustment = source.inboundCheckAdjustment inboundCheckDepositReturnIntention = source.inboundCheckDepositReturnIntention + inboundFednowTransferConfirmation = source.inboundFednowTransferConfirmation inboundRealTimePaymentsTransferConfirmation = source.inboundRealTimePaymentsTransferConfirmation inboundWireReversal = source.inboundWireReversal @@ -2577,6 +2611,38 @@ private constructor( this.inboundCheckDepositReturnIntention = inboundCheckDepositReturnIntention } + /** + * An Inbound FedNow Transfer Confirmation object. This field will be present in the + * JSON response if and only if `category` is equal to + * `inbound_fednow_transfer_confirmation`. An Inbound FedNow Transfer Confirmation is + * created when a FedNow transfer is initiated at another bank and received by Increase. + */ + fun inboundFednowTransferConfirmation( + inboundFednowTransferConfirmation: InboundFednowTransferConfirmation? + ) = + inboundFednowTransferConfirmation( + JsonField.ofNullable(inboundFednowTransferConfirmation) + ) + + /** + * Alias for calling [Builder.inboundFednowTransferConfirmation] with + * `inboundFednowTransferConfirmation.orElse(null)`. + */ + fun inboundFednowTransferConfirmation( + inboundFednowTransferConfirmation: Optional + ) = inboundFednowTransferConfirmation(inboundFednowTransferConfirmation.getOrNull()) + + /** + * Sets [Builder.inboundFednowTransferConfirmation] to an arbitrary JSON value. + * + * You should usually call [Builder.inboundFednowTransferConfirmation] with a well-typed + * [InboundFednowTransferConfirmation] value instead. This method is primarily for + * setting the field to an undocumented or not yet supported value. + */ + fun inboundFednowTransferConfirmation( + inboundFednowTransferConfirmation: JsonField + ) = apply { this.inboundFednowTransferConfirmation = inboundFednowTransferConfirmation } + /** * An Inbound Real-Time Payments Transfer Confirmation object. This field will be * present in the JSON response if and only if `category` is equal to @@ -2948,6 +3014,7 @@ private constructor( * .inboundAchTransferReturnIntention() * .inboundCheckAdjustment() * .inboundCheckDepositReturnIntention() + * .inboundFednowTransferConfirmation() * .inboundRealTimePaymentsTransferConfirmation() * .inboundWireReversal() * .inboundWireTransfer() @@ -2995,6 +3062,10 @@ private constructor( "inboundCheckDepositReturnIntention", inboundCheckDepositReturnIntention, ), + checkRequired( + "inboundFednowTransferConfirmation", + inboundFednowTransferConfirmation, + ), checkRequired( "inboundRealTimePaymentsTransferConfirmation", inboundRealTimePaymentsTransferConfirmation, @@ -3047,6 +3118,7 @@ private constructor( inboundAchTransferReturnIntention().ifPresent { it.validate() } inboundCheckAdjustment().ifPresent { it.validate() } inboundCheckDepositReturnIntention().ifPresent { it.validate() } + inboundFednowTransferConfirmation().ifPresent { it.validate() } inboundRealTimePaymentsTransferConfirmation().ifPresent { it.validate() } inboundWireReversal().ifPresent { it.validate() } inboundWireTransfer().ifPresent { it.validate() } @@ -3100,6 +3172,7 @@ private constructor( (inboundAchTransferReturnIntention.asKnown().getOrNull()?.validity() ?: 0) + (inboundCheckAdjustment.asKnown().getOrNull()?.validity() ?: 0) + (inboundCheckDepositReturnIntention.asKnown().getOrNull()?.validity() ?: 0) + + (inboundFednowTransferConfirmation.asKnown().getOrNull()?.validity() ?: 0) + (inboundRealTimePaymentsTransferConfirmation.asKnown().getOrNull()?.validity() ?: 0) + (inboundWireReversal.asKnown().getOrNull()?.validity() ?: 0) + @@ -28505,6 +28578,14 @@ private constructor( */ @JvmField val INBOUND_CHECK_ADJUSTMENT = of("inbound_check_adjustment") + /** + * Inbound FedNow Transfer Confirmation: details will be under the + * `inbound_fednow_transfer_confirmation` object. + */ + @JvmField + val INBOUND_FEDNOW_TRANSFER_CONFIRMATION = + of("inbound_fednow_transfer_confirmation") + /** * Inbound Real-Time Payments Transfer Confirmation: details will be under the * `inbound_real_time_payments_transfer_confirmation` object. @@ -28664,6 +28745,11 @@ private constructor( * object. */ INBOUND_CHECK_ADJUSTMENT, + /** + * Inbound FedNow Transfer Confirmation: details will be under the + * `inbound_fednow_transfer_confirmation` object. + */ + INBOUND_FEDNOW_TRANSFER_CONFIRMATION, /** * Inbound Real-Time Payments Transfer Confirmation: details will be under the * `inbound_real_time_payments_transfer_confirmation` object. @@ -28812,6 +28898,11 @@ private constructor( * object. */ INBOUND_CHECK_ADJUSTMENT, + /** + * Inbound FedNow Transfer Confirmation: details will be under the + * `inbound_fednow_transfer_confirmation` object. + */ + INBOUND_FEDNOW_TRANSFER_CONFIRMATION, /** * Inbound Real-Time Payments Transfer Confirmation: details will be under the * `inbound_real_time_payments_transfer_confirmation` object. @@ -28905,6 +28996,8 @@ private constructor( INBOUND_CHECK_DEPOSIT_RETURN_INTENTION -> Value.INBOUND_CHECK_DEPOSIT_RETURN_INTENTION INBOUND_CHECK_ADJUSTMENT -> Value.INBOUND_CHECK_ADJUSTMENT + INBOUND_FEDNOW_TRANSFER_CONFIRMATION -> + Value.INBOUND_FEDNOW_TRANSFER_CONFIRMATION INBOUND_REAL_TIME_PAYMENTS_TRANSFER_CONFIRMATION -> Value.INBOUND_REAL_TIME_PAYMENTS_TRANSFER_CONFIRMATION INBOUND_WIRE_REVERSAL -> Value.INBOUND_WIRE_REVERSAL @@ -28957,6 +29050,8 @@ private constructor( INBOUND_CHECK_DEPOSIT_RETURN_INTENTION -> Known.INBOUND_CHECK_DEPOSIT_RETURN_INTENTION INBOUND_CHECK_ADJUSTMENT -> Known.INBOUND_CHECK_ADJUSTMENT + INBOUND_FEDNOW_TRANSFER_CONFIRMATION -> + Known.INBOUND_FEDNOW_TRANSFER_CONFIRMATION INBOUND_REAL_TIME_PAYMENTS_TRANSFER_CONFIRMATION -> Known.INBOUND_REAL_TIME_PAYMENTS_TRANSFER_CONFIRMATION INBOUND_WIRE_REVERSAL -> Known.INBOUND_WIRE_REVERSAL @@ -34405,6 +34500,186 @@ private constructor( "InboundCheckDepositReturnIntention{inboundCheckDepositId=$inboundCheckDepositId, transferId=$transferId, additionalProperties=$additionalProperties}" } + /** + * An Inbound FedNow Transfer Confirmation object. This field will be present in the JSON + * response if and only if `category` is equal to `inbound_fednow_transfer_confirmation`. An + * Inbound FedNow Transfer Confirmation is created when a FedNow transfer is initiated at + * another bank and received by Increase. + */ + class InboundFednowTransferConfirmation + private constructor( + private val transferId: JsonField, + private val additionalProperties: MutableMap, + ) { + + @JsonCreator + private constructor( + @JsonProperty("transfer_id") + @ExcludeMissing + transferId: JsonField = JsonMissing.of() + ) : this(transferId, mutableMapOf()) + + /** + * The identifier of the FedNow Transfer that led to this Transaction. + * + * @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 transferId(): String = transferId.getRequired("transfer_id") + + /** + * Returns the raw JSON value of [transferId]. + * + * Unlike [transferId], this method doesn't throw if the JSON field has an unexpected + * type. + */ + @JsonProperty("transfer_id") + @ExcludeMissing + fun _transferId(): JsonField = transferId + + @JsonAnySetter + private fun putAdditionalProperty(key: String, value: JsonValue) { + additionalProperties.put(key, value) + } + + @JsonAnyGetter + @ExcludeMissing + fun _additionalProperties(): Map = + Collections.unmodifiableMap(additionalProperties) + + fun toBuilder() = Builder().from(this) + + companion object { + + /** + * Returns a mutable builder for constructing an instance of + * [InboundFednowTransferConfirmation]. + * + * The following fields are required: + * ```java + * .transferId() + * ``` + */ + @JvmStatic fun builder() = Builder() + } + + /** A builder for [InboundFednowTransferConfirmation]. */ + class Builder internal constructor() { + + private var transferId: JsonField? = null + private var additionalProperties: MutableMap = mutableMapOf() + + @JvmSynthetic + internal fun from( + inboundFednowTransferConfirmation: InboundFednowTransferConfirmation + ) = apply { + transferId = inboundFednowTransferConfirmation.transferId + additionalProperties = + inboundFednowTransferConfirmation.additionalProperties.toMutableMap() + } + + /** The identifier of the FedNow Transfer that led to this Transaction. */ + fun transferId(transferId: String) = transferId(JsonField.of(transferId)) + + /** + * Sets [Builder.transferId] to an arbitrary JSON value. + * + * You should usually call [Builder.transferId] with a well-typed [String] value + * instead. This method is primarily for setting the field to an undocumented or not + * yet supported value. + */ + fun transferId(transferId: JsonField) = apply { + this.transferId = transferId + } + + fun additionalProperties(additionalProperties: Map) = apply { + this.additionalProperties.clear() + putAllAdditionalProperties(additionalProperties) + } + + fun putAdditionalProperty(key: String, value: JsonValue) = apply { + additionalProperties.put(key, value) + } + + fun putAllAdditionalProperties(additionalProperties: Map) = + apply { + this.additionalProperties.putAll(additionalProperties) + } + + fun removeAdditionalProperty(key: String) = apply { + additionalProperties.remove(key) + } + + fun removeAllAdditionalProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalProperty) + } + + /** + * Returns an immutable instance of [InboundFednowTransferConfirmation]. + * + * Further updates to this [Builder] will not mutate the returned instance. + * + * The following fields are required: + * ```java + * .transferId() + * ``` + * + * @throws IllegalStateException if any required field is unset. + */ + fun build(): InboundFednowTransferConfirmation = + InboundFednowTransferConfirmation( + checkRequired("transferId", transferId), + additionalProperties.toMutableMap(), + ) + } + + private var validated: Boolean = false + + fun validate(): InboundFednowTransferConfirmation = apply { + if (validated) { + return@apply + } + + transferId() + validated = true + } + + fun isValid(): Boolean = + try { + validate() + true + } catch (e: IncreaseInvalidDataException) { + false + } + + /** + * Returns a score indicating how many valid values are contained in this object + * recursively. + * + * Used for best match union deserialization. + */ + @JvmSynthetic + internal fun validity(): Int = (if (transferId.asKnown().isPresent) 1 else 0) + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is InboundFednowTransferConfirmation && + transferId == other.transferId && + additionalProperties == other.additionalProperties + } + + private val hashCode: Int by lazy { Objects.hash(transferId, additionalProperties) } + + override fun hashCode(): Int = hashCode + + override fun toString() = + "InboundFednowTransferConfirmation{transferId=$transferId, additionalProperties=$additionalProperties}" + } + /** * An Inbound Real-Time Payments Transfer Confirmation object. This field will be present in * the JSON response if and only if `category` is equal to @@ -39882,6 +40157,7 @@ private constructor( inboundAchTransferReturnIntention == other.inboundAchTransferReturnIntention && inboundCheckAdjustment == other.inboundCheckAdjustment && inboundCheckDepositReturnIntention == other.inboundCheckDepositReturnIntention && + inboundFednowTransferConfirmation == other.inboundFednowTransferConfirmation && inboundRealTimePaymentsTransferConfirmation == other.inboundRealTimePaymentsTransferConfirmation && inboundWireReversal == other.inboundWireReversal && @@ -39924,6 +40200,7 @@ private constructor( inboundAchTransferReturnIntention, inboundCheckAdjustment, inboundCheckDepositReturnIntention, + inboundFednowTransferConfirmation, inboundRealTimePaymentsTransferConfirmation, inboundWireReversal, inboundWireTransfer, @@ -39943,7 +40220,7 @@ private constructor( override fun hashCode(): Int = hashCode override fun toString() = - "Source{accountRevenuePayment=$accountRevenuePayment, accountTransferIntention=$accountTransferIntention, achTransferIntention=$achTransferIntention, achTransferRejection=$achTransferRejection, achTransferReturn=$achTransferReturn, cardDisputeAcceptance=$cardDisputeAcceptance, cardDisputeFinancial=$cardDisputeFinancial, cardDisputeLoss=$cardDisputeLoss, cardPushTransferAcceptance=$cardPushTransferAcceptance, cardRefund=$cardRefund, cardRevenuePayment=$cardRevenuePayment, cardSettlement=$cardSettlement, cashbackPayment=$cashbackPayment, category=$category, checkDepositAcceptance=$checkDepositAcceptance, checkDepositReturn=$checkDepositReturn, checkTransferDeposit=$checkTransferDeposit, fednowTransferAcknowledgement=$fednowTransferAcknowledgement, feePayment=$feePayment, inboundAchTransfer=$inboundAchTransfer, inboundAchTransferReturnIntention=$inboundAchTransferReturnIntention, inboundCheckAdjustment=$inboundCheckAdjustment, inboundCheckDepositReturnIntention=$inboundCheckDepositReturnIntention, inboundRealTimePaymentsTransferConfirmation=$inboundRealTimePaymentsTransferConfirmation, inboundWireReversal=$inboundWireReversal, inboundWireTransfer=$inboundWireTransfer, inboundWireTransferReversal=$inboundWireTransferReversal, interestPayment=$interestPayment, internalSource=$internalSource, other=$other, realTimePaymentsTransferAcknowledgement=$realTimePaymentsTransferAcknowledgement, sampleFunds=$sampleFunds, swiftTransferIntention=$swiftTransferIntention, swiftTransferReturn=$swiftTransferReturn, wireTransferIntention=$wireTransferIntention, additionalProperties=$additionalProperties}" + "Source{accountRevenuePayment=$accountRevenuePayment, accountTransferIntention=$accountTransferIntention, achTransferIntention=$achTransferIntention, achTransferRejection=$achTransferRejection, achTransferReturn=$achTransferReturn, cardDisputeAcceptance=$cardDisputeAcceptance, cardDisputeFinancial=$cardDisputeFinancial, cardDisputeLoss=$cardDisputeLoss, cardPushTransferAcceptance=$cardPushTransferAcceptance, cardRefund=$cardRefund, cardRevenuePayment=$cardRevenuePayment, cardSettlement=$cardSettlement, cashbackPayment=$cashbackPayment, category=$category, checkDepositAcceptance=$checkDepositAcceptance, checkDepositReturn=$checkDepositReturn, checkTransferDeposit=$checkTransferDeposit, fednowTransferAcknowledgement=$fednowTransferAcknowledgement, feePayment=$feePayment, inboundAchTransfer=$inboundAchTransfer, inboundAchTransferReturnIntention=$inboundAchTransferReturnIntention, inboundCheckAdjustment=$inboundCheckAdjustment, inboundCheckDepositReturnIntention=$inboundCheckDepositReturnIntention, inboundFednowTransferConfirmation=$inboundFednowTransferConfirmation, inboundRealTimePaymentsTransferConfirmation=$inboundRealTimePaymentsTransferConfirmation, inboundWireReversal=$inboundWireReversal, inboundWireTransfer=$inboundWireTransfer, inboundWireTransferReversal=$inboundWireTransferReversal, interestPayment=$interestPayment, internalSource=$internalSource, other=$other, realTimePaymentsTransferAcknowledgement=$realTimePaymentsTransferAcknowledgement, sampleFunds=$sampleFunds, swiftTransferIntention=$swiftTransferIntention, swiftTransferReturn=$swiftTransferReturn, wireTransferIntention=$wireTransferIntention, additionalProperties=$additionalProperties}" } /** diff --git a/increase-java-core/src/main/kotlin/com/increase/api/models/transactions/TransactionListParams.kt b/increase-java-core/src/main/kotlin/com/increase/api/models/transactions/TransactionListParams.kt index e1f6a134f..ee531bc2e 100644 --- a/increase-java-core/src/main/kotlin/com/increase/api/models/transactions/TransactionListParams.kt +++ b/increase-java-core/src/main/kotlin/com/increase/api/models/transactions/TransactionListParams.kt @@ -524,6 +524,14 @@ private constructor( */ @JvmField val INBOUND_CHECK_ADJUSTMENT = of("inbound_check_adjustment") + /** + * Inbound FedNow Transfer Confirmation: details will be under the + * `inbound_fednow_transfer_confirmation` object. + */ + @JvmField + val INBOUND_FEDNOW_TRANSFER_CONFIRMATION = + of("inbound_fednow_transfer_confirmation") + /** * Inbound Real-Time Payments Transfer Confirmation: details will be under the * `inbound_real_time_payments_transfer_confirmation` object. @@ -683,6 +691,11 @@ private constructor( * object. */ INBOUND_CHECK_ADJUSTMENT, + /** + * Inbound FedNow Transfer Confirmation: details will be under the + * `inbound_fednow_transfer_confirmation` object. + */ + INBOUND_FEDNOW_TRANSFER_CONFIRMATION, /** * Inbound Real-Time Payments Transfer Confirmation: details will be under the * `inbound_real_time_payments_transfer_confirmation` object. @@ -831,6 +844,11 @@ private constructor( * object. */ INBOUND_CHECK_ADJUSTMENT, + /** + * Inbound FedNow Transfer Confirmation: details will be under the + * `inbound_fednow_transfer_confirmation` object. + */ + INBOUND_FEDNOW_TRANSFER_CONFIRMATION, /** * Inbound Real-Time Payments Transfer Confirmation: details will be under the * `inbound_real_time_payments_transfer_confirmation` object. @@ -922,6 +940,8 @@ private constructor( INBOUND_CHECK_DEPOSIT_RETURN_INTENTION -> Value.INBOUND_CHECK_DEPOSIT_RETURN_INTENTION INBOUND_CHECK_ADJUSTMENT -> Value.INBOUND_CHECK_ADJUSTMENT + INBOUND_FEDNOW_TRANSFER_CONFIRMATION -> + Value.INBOUND_FEDNOW_TRANSFER_CONFIRMATION INBOUND_REAL_TIME_PAYMENTS_TRANSFER_CONFIRMATION -> Value.INBOUND_REAL_TIME_PAYMENTS_TRANSFER_CONFIRMATION INBOUND_WIRE_REVERSAL -> Value.INBOUND_WIRE_REVERSAL @@ -974,6 +994,8 @@ private constructor( INBOUND_CHECK_DEPOSIT_RETURN_INTENTION -> Known.INBOUND_CHECK_DEPOSIT_RETURN_INTENTION INBOUND_CHECK_ADJUSTMENT -> Known.INBOUND_CHECK_ADJUSTMENT + INBOUND_FEDNOW_TRANSFER_CONFIRMATION -> + Known.INBOUND_FEDNOW_TRANSFER_CONFIRMATION INBOUND_REAL_TIME_PAYMENTS_TRANSFER_CONFIRMATION -> Known.INBOUND_REAL_TIME_PAYMENTS_TRANSFER_CONFIRMATION INBOUND_WIRE_REVERSAL -> Known.INBOUND_WIRE_REVERSAL diff --git a/increase-java-core/src/test/kotlin/com/increase/api/models/declinedtransactions/DeclinedTransactionListPageResponseTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/models/declinedtransactions/DeclinedTransactionListPageResponseTest.kt index 00a6d9070..30e256d1d 100644 --- a/increase-java-core/src/test/kotlin/com/increase/api/models/declinedtransactions/DeclinedTransactionListPageResponseTest.kt +++ b/increase-java-core/src/test/kotlin/com/increase/api/models/declinedtransactions/DeclinedTransactionListPageResponseTest.kt @@ -296,6 +296,17 @@ internal class DeclinedTransactionListPageResponseTest { .rejectedAt(OffsetDateTime.parse("2020-01-31T23:59:59Z")) .build() ) + .inboundFednowTransferDecline( + DeclinedTransaction.Source.InboundFednowTransferDecline + .builder() + .reason( + DeclinedTransaction.Source.InboundFednowTransferDecline + .Reason + .ACCOUNT_NUMBER_DISABLED + ) + .transferId("inbound_fednow_transfer_ctxxbc07oh5ke5w1hk20") + .build() + ) .inboundRealTimePaymentsTransferDecline( DeclinedTransaction.Source .InboundRealTimePaymentsTransferDecline @@ -618,6 +629,16 @@ internal class DeclinedTransactionListPageResponseTest { .rejectedAt(OffsetDateTime.parse("2020-01-31T23:59:59Z")) .build() ) + .inboundFednowTransferDecline( + DeclinedTransaction.Source.InboundFednowTransferDecline.builder() + .reason( + DeclinedTransaction.Source.InboundFednowTransferDecline + .Reason + .ACCOUNT_NUMBER_DISABLED + ) + .transferId("inbound_fednow_transfer_ctxxbc07oh5ke5w1hk20") + .build() + ) .inboundRealTimePaymentsTransferDecline( DeclinedTransaction.Source.InboundRealTimePaymentsTransferDecline .builder() @@ -953,6 +974,17 @@ internal class DeclinedTransactionListPageResponseTest { .rejectedAt(OffsetDateTime.parse("2020-01-31T23:59:59Z")) .build() ) + .inboundFednowTransferDecline( + DeclinedTransaction.Source.InboundFednowTransferDecline + .builder() + .reason( + DeclinedTransaction.Source.InboundFednowTransferDecline + .Reason + .ACCOUNT_NUMBER_DISABLED + ) + .transferId("inbound_fednow_transfer_ctxxbc07oh5ke5w1hk20") + .build() + ) .inboundRealTimePaymentsTransferDecline( DeclinedTransaction.Source .InboundRealTimePaymentsTransferDecline diff --git a/increase-java-core/src/test/kotlin/com/increase/api/models/declinedtransactions/DeclinedTransactionTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/models/declinedtransactions/DeclinedTransactionTest.kt index 092971744..b146dba6a 100644 --- a/increase-java-core/src/test/kotlin/com/increase/api/models/declinedtransactions/DeclinedTransactionTest.kt +++ b/increase-java-core/src/test/kotlin/com/increase/api/models/declinedtransactions/DeclinedTransactionTest.kt @@ -258,6 +258,15 @@ internal class DeclinedTransactionTest { .rejectedAt(OffsetDateTime.parse("2020-01-31T23:59:59Z")) .build() ) + .inboundFednowTransferDecline( + DeclinedTransaction.Source.InboundFednowTransferDecline.builder() + .reason( + DeclinedTransaction.Source.InboundFednowTransferDecline.Reason + .ACCOUNT_NUMBER_DISABLED + ) + .transferId("inbound_fednow_transfer_ctxxbc07oh5ke5w1hk20") + .build() + ) .inboundRealTimePaymentsTransferDecline( DeclinedTransaction.Source.InboundRealTimePaymentsTransferDecline .builder() @@ -533,6 +542,15 @@ internal class DeclinedTransactionTest { .rejectedAt(OffsetDateTime.parse("2020-01-31T23:59:59Z")) .build() ) + .inboundFednowTransferDecline( + DeclinedTransaction.Source.InboundFednowTransferDecline.builder() + .reason( + DeclinedTransaction.Source.InboundFednowTransferDecline.Reason + .ACCOUNT_NUMBER_DISABLED + ) + .transferId("inbound_fednow_transfer_ctxxbc07oh5ke5w1hk20") + .build() + ) .inboundRealTimePaymentsTransferDecline( DeclinedTransaction.Source.InboundRealTimePaymentsTransferDecline.builder() .amount(100L) @@ -819,6 +837,15 @@ internal class DeclinedTransactionTest { .rejectedAt(OffsetDateTime.parse("2020-01-31T23:59:59Z")) .build() ) + .inboundFednowTransferDecline( + DeclinedTransaction.Source.InboundFednowTransferDecline.builder() + .reason( + DeclinedTransaction.Source.InboundFednowTransferDecline.Reason + .ACCOUNT_NUMBER_DISABLED + ) + .transferId("inbound_fednow_transfer_ctxxbc07oh5ke5w1hk20") + .build() + ) .inboundRealTimePaymentsTransferDecline( DeclinedTransaction.Source.InboundRealTimePaymentsTransferDecline .builder() diff --git a/increase-java-core/src/test/kotlin/com/increase/api/models/simulations/cardauthorizations/CardAuthorizationCreateResponseTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/models/simulations/cardauthorizations/CardAuthorizationCreateResponseTest.kt index 338e16bca..61b5ce8e5 100644 --- a/increase-java-core/src/test/kotlin/com/increase/api/models/simulations/cardauthorizations/CardAuthorizationCreateResponseTest.kt +++ b/increase-java-core/src/test/kotlin/com/increase/api/models/simulations/cardauthorizations/CardAuthorizationCreateResponseTest.kt @@ -298,6 +298,17 @@ internal class CardAuthorizationCreateResponseTest { .rejectedAt(OffsetDateTime.parse("2020-01-31T23:59:59Z")) .build() ) + .inboundFednowTransferDecline( + DeclinedTransaction.Source.InboundFednowTransferDecline + .builder() + .reason( + DeclinedTransaction.Source.InboundFednowTransferDecline + .Reason + .ACCOUNT_NUMBER_DISABLED + ) + .transferId("inbound_fednow_transfer_ctxxbc07oh5ke5w1hk20") + .build() + ) .inboundRealTimePaymentsTransferDecline( DeclinedTransaction.Source .InboundRealTimePaymentsTransferDecline @@ -968,6 +979,16 @@ internal class CardAuthorizationCreateResponseTest { .rejectedAt(OffsetDateTime.parse("2020-01-31T23:59:59Z")) .build() ) + .inboundFednowTransferDecline( + DeclinedTransaction.Source.InboundFednowTransferDecline.builder() + .reason( + DeclinedTransaction.Source.InboundFednowTransferDecline + .Reason + .ACCOUNT_NUMBER_DISABLED + ) + .transferId("inbound_fednow_transfer_ctxxbc07oh5ke5w1hk20") + .build() + ) .inboundRealTimePaymentsTransferDecline( DeclinedTransaction.Source.InboundRealTimePaymentsTransferDecline .builder() @@ -1639,6 +1660,17 @@ internal class CardAuthorizationCreateResponseTest { .rejectedAt(OffsetDateTime.parse("2020-01-31T23:59:59Z")) .build() ) + .inboundFednowTransferDecline( + DeclinedTransaction.Source.InboundFednowTransferDecline + .builder() + .reason( + DeclinedTransaction.Source.InboundFednowTransferDecline + .Reason + .ACCOUNT_NUMBER_DISABLED + ) + .transferId("inbound_fednow_transfer_ctxxbc07oh5ke5w1hk20") + .build() + ) .inboundRealTimePaymentsTransferDecline( DeclinedTransaction.Source .InboundRealTimePaymentsTransferDecline diff --git a/increase-java-core/src/test/kotlin/com/increase/api/models/transactions/TransactionListPageResponseTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/models/transactions/TransactionListPageResponseTest.kt index 90a6c7522..e4790fdab 100644 --- a/increase-java-core/src/test/kotlin/com/increase/api/models/transactions/TransactionListPageResponseTest.kt +++ b/increase-java-core/src/test/kotlin/com/increase/api/models/transactions/TransactionListPageResponseTest.kt @@ -782,6 +782,11 @@ internal class TransactionListPageResponseTest { .transferId("check_transfer_30b43acfu9vw8fyc4f5") .build() ) + .inboundFednowTransferConfirmation( + Transaction.Source.InboundFednowTransferConfirmation.builder() + .transferId("inbound_fednow_transfer_ctxxbc07oh5ke5w1hk20") + .build() + ) .inboundRealTimePaymentsTransferConfirmation( Transaction.Source.InboundRealTimePaymentsTransferConfirmation .builder() @@ -1641,6 +1646,11 @@ internal class TransactionListPageResponseTest { .transferId("check_transfer_30b43acfu9vw8fyc4f5") .build() ) + .inboundFednowTransferConfirmation( + Transaction.Source.InboundFednowTransferConfirmation.builder() + .transferId("inbound_fednow_transfer_ctxxbc07oh5ke5w1hk20") + .build() + ) .inboundRealTimePaymentsTransferConfirmation( Transaction.Source.InboundRealTimePaymentsTransferConfirmation .builder() @@ -2539,6 +2549,11 @@ internal class TransactionListPageResponseTest { .transferId("check_transfer_30b43acfu9vw8fyc4f5") .build() ) + .inboundFednowTransferConfirmation( + Transaction.Source.InboundFednowTransferConfirmation.builder() + .transferId("inbound_fednow_transfer_ctxxbc07oh5ke5w1hk20") + .build() + ) .inboundRealTimePaymentsTransferConfirmation( Transaction.Source.InboundRealTimePaymentsTransferConfirmation .builder() diff --git a/increase-java-core/src/test/kotlin/com/increase/api/models/transactions/TransactionTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/models/transactions/TransactionTest.kt index 7eb29b948..cfc3597da 100644 --- a/increase-java-core/src/test/kotlin/com/increase/api/models/transactions/TransactionTest.kt +++ b/increase-java-core/src/test/kotlin/com/increase/api/models/transactions/TransactionTest.kt @@ -705,6 +705,11 @@ internal class TransactionTest { .transferId("check_transfer_30b43acfu9vw8fyc4f5") .build() ) + .inboundFednowTransferConfirmation( + Transaction.Source.InboundFednowTransferConfirmation.builder() + .transferId("inbound_fednow_transfer_ctxxbc07oh5ke5w1hk20") + .build() + ) .inboundRealTimePaymentsTransferConfirmation( Transaction.Source.InboundRealTimePaymentsTransferConfirmation.builder() .amount(100L) @@ -1472,6 +1477,11 @@ internal class TransactionTest { .transferId("check_transfer_30b43acfu9vw8fyc4f5") .build() ) + .inboundFednowTransferConfirmation( + Transaction.Source.InboundFednowTransferConfirmation.builder() + .transferId("inbound_fednow_transfer_ctxxbc07oh5ke5w1hk20") + .build() + ) .inboundRealTimePaymentsTransferConfirmation( Transaction.Source.InboundRealTimePaymentsTransferConfirmation.builder() .amount(100L) @@ -2280,6 +2290,11 @@ internal class TransactionTest { .transferId("check_transfer_30b43acfu9vw8fyc4f5") .build() ) + .inboundFednowTransferConfirmation( + Transaction.Source.InboundFednowTransferConfirmation.builder() + .transferId("inbound_fednow_transfer_ctxxbc07oh5ke5w1hk20") + .build() + ) .inboundRealTimePaymentsTransferConfirmation( Transaction.Source.InboundRealTimePaymentsTransferConfirmation.builder() .amount(100L) From 238466f818eec4732ba6a954ac020946daf79a2f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 17 Sep 2025 01:32:08 +0000 Subject: [PATCH 2/2] release: 0.328.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ README.md | 10 +++++----- build.gradle.kts | 2 +- 4 files changed, 15 insertions(+), 7 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 90be2bf17..24f979195 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.327.0" + ".": "0.328.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index b31643dec..f0d9123e2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.328.0 (2025-09-17) + +Full Changelog: [v0.327.0...v0.328.0](https://github.com/Increase/increase-java/compare/v0.327.0...v0.328.0) + +### Features + +* **api:** api update ([21c6220](https://github.com/Increase/increase-java/commit/21c6220cb7dd359b5988c0bbf779eb8c99e2c9fd)) + ## 0.327.0 (2025-09-16) Full Changelog: [v0.326.0...v0.327.0](https://github.com/Increase/increase-java/compare/v0.326.0...v0.327.0) diff --git a/README.md b/README.md index e129ffb5a..88c465de9 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.327.0) -[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.327.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.327.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.328.0) +[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.328.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.328.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.327.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.328.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.327.0") +implementation("com.increase.api:increase-java:0.328.0") ``` ### Maven @@ -33,7 +33,7 @@ implementation("com.increase.api:increase-java:0.327.0") com.increase.api increase-java - 0.327.0 + 0.328.0 ``` diff --git a/build.gradle.kts b/build.gradle.kts index d31cca316..cc729f654 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -8,7 +8,7 @@ repositories { allprojects { group = "com.increase.api" - version = "0.327.0" // x-release-please-version + version = "0.328.0" // x-release-please-version } subprojects {