diff --git a/.github/workflows/publish-sonatype.yml b/.github/workflows/publish-sonatype.yml
index 6ff6da701..e5d190f84 100644
--- a/.github/workflows/publish-sonatype.yml
+++ b/.github/workflows/publish-sonatype.yml
@@ -33,7 +33,7 @@ jobs:
export -- GPG_SIGNING_KEY_ID
printenv -- GPG_SIGNING_KEY | gpg --batch --passphrase-fd 3 --import 3<<< "$GPG_SIGNING_PASSWORD"
GPG_SIGNING_KEY_ID="$(gpg --with-colons --list-keys | awk -F : -- '/^pub:/ { getline; print "0x" substr($10, length($10) - 7) }')"
- ./gradlew publishAndReleaseToMavenCentral -Dorg.gradle.jvmargs="-Xmx8g" --stacktrace -PmavenCentralUsername="$SONATYPE_USERNAME" -PmavenCentralPassword="$SONATYPE_PASSWORD" --no-configuration-cache
+ ./gradlew publishAndReleaseToMavenCentral --stacktrace -PmavenCentralUsername="$SONATYPE_USERNAME" -PmavenCentralPassword="$SONATYPE_PASSWORD" --no-configuration-cache
env:
SONATYPE_USERNAME: ${{ secrets.INCREASE_SONATYPE_USERNAME || secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.INCREASE_SONATYPE_PASSWORD || secrets.SONATYPE_PASSWORD }}
diff --git a/.release-please-manifest.json b/.release-please-manifest.json
index db7ac1523..ec9c98a35 100644
--- a/.release-please-manifest.json
+++ b/.release-please-manifest.json
@@ -1,3 +1,3 @@
{
- ".": "0.293.0"
+ ".": "0.294.0"
}
\ No newline at end of file
diff --git a/.stats.yml b/.stats.yml
index 372ce8332..5ff82d3b6 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 215
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-ead33c34bfbcc450c88d09e7d880fa5be57c504a66102e098ac03c5b220dea80.yml
-openapi_spec_hash: 1544de50d73f80b843d5761009764ab6
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-b2b1b8766fa7146f21f8d4d52ff033e8650a6b25d1d161679959cca0d4153211.yml
+openapi_spec_hash: 17af6a2d612ce076f58c585565f98c22
config_hash: 0b0a2503208283b283fc5bc6df6a07a5
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 90731d7a0..5d0731d46 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,19 @@
# Changelog
+## 0.294.0 (2025-08-22)
+
+Full Changelog: [v0.293.0...v0.294.0](https://github.com/Increase/increase-java/compare/v0.293.0...v0.294.0)
+
+### Features
+
+* **api:** api update ([f6a6892](https://github.com/Increase/increase-java/commit/f6a689264b9fbef8052eeea4d068c0d08e4efeee))
+
+
+### Chores
+
+* **ci:** reduce log noise ([7684281](https://github.com/Increase/increase-java/commit/7684281d84a9af40ca280becd0d11b2dff3967df))
+* remove memory upper bound from publishing step ([77667b5](https://github.com/Increase/increase-java/commit/77667b5392e79ce9e86b02db52e674a8a0ffa693))
+
## 0.293.0 (2025-08-21)
Full Changelog: [v0.292.0...v0.293.0](https://github.com/Increase/increase-java/compare/v0.292.0...v0.293.0)
diff --git a/README.md b/README.md
index 5186abdfb..6fe4c6cb9 100644
--- a/README.md
+++ b/README.md
@@ -2,8 +2,8 @@
-[](https://central.sonatype.com/artifact/com.increase.api/increase-java/0.293.0)
-[](https://javadoc.io/doc/com.increase.api/increase-java/0.293.0)
+[](https://central.sonatype.com/artifact/com.increase.api/increase-java/0.294.0)
+[](https://javadoc.io/doc/com.increase.api/increase-java/0.294.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.293.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.294.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.293.0")
+implementation("com.increase.api:increase-java:0.294.0")
```
### Maven
@@ -33,7 +33,7 @@ implementation("com.increase.api:increase-java:0.293.0")
com.increase.api
increase-java
- 0.293.0
+ 0.294.0
```
diff --git a/build.gradle.kts b/build.gradle.kts
index b2667d595..bdbdba9b7 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -8,7 +8,7 @@ repositories {
allprojects {
group = "com.increase.api"
- version = "0.293.0" // x-release-please-version
+ version = "0.294.0" // x-release-please-version
}
subprojects {
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 9c2a1b173..81c07bb65 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,8 +892,6 @@ private constructor(
JsonField,
private val inboundRealTimePaymentsTransferConfirmation:
JsonField,
- private val inboundRealTimePaymentsTransferDecline:
- JsonField,
private val inboundWireReversal: JsonField,
private val inboundWireTransfer: JsonField,
private val inboundWireTransferReversal: JsonField,
@@ -981,11 +979,6 @@ private constructor(
inboundRealTimePaymentsTransferConfirmation:
JsonField =
JsonMissing.of(),
- @JsonProperty("inbound_real_time_payments_transfer_decline")
- @ExcludeMissing
- inboundRealTimePaymentsTransferDecline:
- JsonField =
- JsonMissing.of(),
@JsonProperty("inbound_wire_reversal")
@ExcludeMissing
inboundWireReversal: JsonField = JsonMissing.of(),
@@ -1042,7 +1035,6 @@ private constructor(
inboundCheckAdjustment,
inboundCheckDepositReturnIntention,
inboundRealTimePaymentsTransferConfirmation,
- inboundRealTimePaymentsTransferDecline,
inboundWireReversal,
inboundWireTransfer,
inboundWireTransferReversal,
@@ -1318,20 +1310,6 @@ private constructor(
"inbound_real_time_payments_transfer_confirmation"
)
- /**
- * 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
- * `inbound_real_time_payments_transfer_decline`.
- *
- * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if
- * the server responded with an unexpected value).
- */
- fun inboundRealTimePaymentsTransferDecline():
- Optional =
- inboundRealTimePaymentsTransferDecline.getOptional(
- "inbound_real_time_payments_transfer_decline"
- )
-
/**
* An Inbound Wire Reversal object. This field will be present in the JSON response if and
* only if `category` is equal to `inbound_wire_reversal`. An Inbound Wire Reversal
@@ -1676,18 +1654,6 @@ private constructor(
JsonField =
inboundRealTimePaymentsTransferConfirmation
- /**
- * Returns the raw JSON value of [inboundRealTimePaymentsTransferDecline].
- *
- * Unlike [inboundRealTimePaymentsTransferDecline], this method doesn't throw if the JSON
- * field has an unexpected type.
- */
- @JsonProperty("inbound_real_time_payments_transfer_decline")
- @ExcludeMissing
- fun _inboundRealTimePaymentsTransferDecline():
- JsonField =
- inboundRealTimePaymentsTransferDecline
-
/**
* Returns the raw JSON value of [inboundWireReversal].
*
@@ -1831,7 +1797,6 @@ private constructor(
* .inboundCheckAdjustment()
* .inboundCheckDepositReturnIntention()
* .inboundRealTimePaymentsTransferConfirmation()
- * .inboundRealTimePaymentsTransferDecline()
* .inboundWireReversal()
* .inboundWireTransfer()
* .inboundWireTransferReversal()
@@ -1879,9 +1844,6 @@ private constructor(
private var inboundRealTimePaymentsTransferConfirmation:
JsonField? =
null
- private var inboundRealTimePaymentsTransferDecline:
- JsonField? =
- null
private var inboundWireReversal: JsonField? = null
private var inboundWireTransfer: JsonField? = null
private var inboundWireTransferReversal: JsonField? = null
@@ -1922,8 +1884,6 @@ private constructor(
inboundCheckDepositReturnIntention = source.inboundCheckDepositReturnIntention
inboundRealTimePaymentsTransferConfirmation =
source.inboundRealTimePaymentsTransferConfirmation
- inboundRealTimePaymentsTransferDecline =
- source.inboundRealTimePaymentsTransferDecline
inboundWireReversal = source.inboundWireReversal
inboundWireTransfer = source.inboundWireTransfer
inboundWireTransferReversal = source.inboundWireTransferReversal
@@ -2540,44 +2500,6 @@ private constructor(
inboundRealTimePaymentsTransferConfirmation
}
- /**
- * 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
- * `inbound_real_time_payments_transfer_decline`.
- */
- fun inboundRealTimePaymentsTransferDecline(
- inboundRealTimePaymentsTransferDecline: InboundRealTimePaymentsTransferDecline?
- ) =
- inboundRealTimePaymentsTransferDecline(
- JsonField.ofNullable(inboundRealTimePaymentsTransferDecline)
- )
-
- /**
- * Alias for calling [Builder.inboundRealTimePaymentsTransferDecline] with
- * `inboundRealTimePaymentsTransferDecline.orElse(null)`.
- */
- fun inboundRealTimePaymentsTransferDecline(
- inboundRealTimePaymentsTransferDecline:
- Optional
- ) =
- inboundRealTimePaymentsTransferDecline(
- inboundRealTimePaymentsTransferDecline.getOrNull()
- )
-
- /**
- * Sets [Builder.inboundRealTimePaymentsTransferDecline] to an arbitrary JSON value.
- *
- * You should usually call [Builder.inboundRealTimePaymentsTransferDecline] with a
- * well-typed [InboundRealTimePaymentsTransferDecline] value instead. This method is
- * primarily for setting the field to an undocumented or not yet supported value.
- */
- fun inboundRealTimePaymentsTransferDecline(
- inboundRealTimePaymentsTransferDecline:
- JsonField
- ) = apply {
- this.inboundRealTimePaymentsTransferDecline = inboundRealTimePaymentsTransferDecline
- }
-
/**
* An Inbound Wire Reversal object. This field will be present in the JSON response if
* and only if `category` is equal to `inbound_wire_reversal`. An Inbound Wire Reversal
@@ -2905,7 +2827,6 @@ private constructor(
* .inboundCheckAdjustment()
* .inboundCheckDepositReturnIntention()
* .inboundRealTimePaymentsTransferConfirmation()
- * .inboundRealTimePaymentsTransferDecline()
* .inboundWireReversal()
* .inboundWireTransfer()
* .inboundWireTransferReversal()
@@ -2954,10 +2875,6 @@ private constructor(
"inboundRealTimePaymentsTransferConfirmation",
inboundRealTimePaymentsTransferConfirmation,
),
- checkRequired(
- "inboundRealTimePaymentsTransferDecline",
- inboundRealTimePaymentsTransferDecline,
- ),
checkRequired("inboundWireReversal", inboundWireReversal),
checkRequired("inboundWireTransfer", inboundWireTransfer),
checkRequired("inboundWireTransferReversal", inboundWireTransferReversal),
@@ -3005,7 +2922,6 @@ private constructor(
inboundCheckAdjustment().ifPresent { it.validate() }
inboundCheckDepositReturnIntention().ifPresent { it.validate() }
inboundRealTimePaymentsTransferConfirmation().ifPresent { it.validate() }
- inboundRealTimePaymentsTransferDecline().ifPresent { it.validate() }
inboundWireReversal().ifPresent { it.validate() }
inboundWireTransfer().ifPresent { it.validate() }
inboundWireTransferReversal().ifPresent { it.validate() }
@@ -3058,7 +2974,6 @@ private constructor(
(inboundCheckDepositReturnIntention.asKnown().getOrNull()?.validity() ?: 0) +
(inboundRealTimePaymentsTransferConfirmation.asKnown().getOrNull()?.validity()
?: 0) +
- (inboundRealTimePaymentsTransferDecline.asKnown().getOrNull()?.validity() ?: 0) +
(inboundWireReversal.asKnown().getOrNull()?.validity() ?: 0) +
(inboundWireTransfer.asKnown().getOrNull()?.validity() ?: 0) +
(inboundWireTransferReversal.asKnown().getOrNull()?.validity() ?: 0) +
@@ -28019,14 +27934,6 @@ private constructor(
val INBOUND_REAL_TIME_PAYMENTS_TRANSFER_CONFIRMATION =
of("inbound_real_time_payments_transfer_confirmation")
- /**
- * Inbound Real-Time Payments Transfer Decline: details will be under the
- * `inbound_real_time_payments_transfer_decline` object.
- */
- @JvmField
- val INBOUND_REAL_TIME_PAYMENTS_TRANSFER_DECLINE =
- of("inbound_real_time_payments_transfer_decline")
-
/**
* Inbound Wire Reversal: details will be under the `inbound_wire_reversal` object.
*/
@@ -28172,11 +28079,6 @@ private constructor(
* `inbound_real_time_payments_transfer_confirmation` object.
*/
INBOUND_REAL_TIME_PAYMENTS_TRANSFER_CONFIRMATION,
- /**
- * Inbound Real-Time Payments Transfer Decline: details will be under the
- * `inbound_real_time_payments_transfer_decline` object.
- */
- INBOUND_REAL_TIME_PAYMENTS_TRANSFER_DECLINE,
/**
* Inbound Wire Reversal: details will be under the `inbound_wire_reversal` object.
*/
@@ -28315,11 +28217,6 @@ private constructor(
* `inbound_real_time_payments_transfer_confirmation` object.
*/
INBOUND_REAL_TIME_PAYMENTS_TRANSFER_CONFIRMATION,
- /**
- * Inbound Real-Time Payments Transfer Decline: details will be under the
- * `inbound_real_time_payments_transfer_decline` object.
- */
- INBOUND_REAL_TIME_PAYMENTS_TRANSFER_DECLINE,
/**
* Inbound Wire Reversal: details will be under the `inbound_wire_reversal` object.
*/
@@ -28404,8 +28301,6 @@ private constructor(
INBOUND_CHECK_ADJUSTMENT -> Value.INBOUND_CHECK_ADJUSTMENT
INBOUND_REAL_TIME_PAYMENTS_TRANSFER_CONFIRMATION ->
Value.INBOUND_REAL_TIME_PAYMENTS_TRANSFER_CONFIRMATION
- INBOUND_REAL_TIME_PAYMENTS_TRANSFER_DECLINE ->
- Value.INBOUND_REAL_TIME_PAYMENTS_TRANSFER_DECLINE
INBOUND_WIRE_REVERSAL -> Value.INBOUND_WIRE_REVERSAL
INBOUND_WIRE_TRANSFER -> Value.INBOUND_WIRE_TRANSFER
INBOUND_WIRE_TRANSFER_REVERSAL -> Value.INBOUND_WIRE_TRANSFER_REVERSAL
@@ -28456,8 +28351,6 @@ private constructor(
INBOUND_CHECK_ADJUSTMENT -> Known.INBOUND_CHECK_ADJUSTMENT
INBOUND_REAL_TIME_PAYMENTS_TRANSFER_CONFIRMATION ->
Known.INBOUND_REAL_TIME_PAYMENTS_TRANSFER_CONFIRMATION
- INBOUND_REAL_TIME_PAYMENTS_TRANSFER_DECLINE ->
- Known.INBOUND_REAL_TIME_PAYMENTS_TRANSFER_DECLINE
INBOUND_WIRE_REVERSAL -> Known.INBOUND_WIRE_REVERSAL
INBOUND_WIRE_TRANSFER -> Known.INBOUND_WIRE_TRANSFER
INBOUND_WIRE_TRANSFER_REVERSAL -> Known.INBOUND_WIRE_TRANSFER_REVERSAL
@@ -33462,989 +33355,7 @@ private constructor(
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 InboundCheckAdjustment &&
- adjustedTransactionId == other.adjustedTransactionId &&
- amount == other.amount &&
- reason == other.reason &&
- additionalProperties == other.additionalProperties
- }
-
- private val hashCode: Int by lazy {
- Objects.hash(adjustedTransactionId, amount, reason, additionalProperties)
- }
-
- override fun hashCode(): Int = hashCode
-
- override fun toString() =
- "InboundCheckAdjustment{adjustedTransactionId=$adjustedTransactionId, amount=$amount, reason=$reason, additionalProperties=$additionalProperties}"
- }
-
- /**
- * An Inbound Check Deposit Return Intention object. This field will be present in the JSON
- * response if and only if `category` is equal to `inbound_check_deposit_return_intention`.
- * An Inbound Check Deposit Return Intention is created when Increase receives an Inbound
- * Check and the User requests that it be returned.
- */
- class InboundCheckDepositReturnIntention
- private constructor(
- private val inboundCheckDepositId: JsonField,
- private val transferId: JsonField,
- private val additionalProperties: MutableMap,
- ) {
-
- @JsonCreator
- private constructor(
- @JsonProperty("inbound_check_deposit_id")
- @ExcludeMissing
- inboundCheckDepositId: JsonField = JsonMissing.of(),
- @JsonProperty("transfer_id")
- @ExcludeMissing
- transferId: JsonField = JsonMissing.of(),
- ) : this(inboundCheckDepositId, transferId, mutableMapOf())
-
- /**
- * The ID of the Inbound Check Deposit that is being returned.
- *
- * @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 inboundCheckDepositId(): String =
- inboundCheckDepositId.getRequired("inbound_check_deposit_id")
-
- /**
- * The identifier of the Check Transfer object that was deposited.
- *
- * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g.
- * if the server responded with an unexpected value).
- */
- fun transferId(): Optional = transferId.getOptional("transfer_id")
-
- /**
- * Returns the raw JSON value of [inboundCheckDepositId].
- *
- * Unlike [inboundCheckDepositId], this method doesn't throw if the JSON field has an
- * unexpected type.
- */
- @JsonProperty("inbound_check_deposit_id")
- @ExcludeMissing
- fun _inboundCheckDepositId(): JsonField = inboundCheckDepositId
-
- /**
- * 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
- * [InboundCheckDepositReturnIntention].
- *
- * The following fields are required:
- * ```java
- * .inboundCheckDepositId()
- * .transferId()
- * ```
- */
- @JvmStatic fun builder() = Builder()
- }
-
- /** A builder for [InboundCheckDepositReturnIntention]. */
- class Builder internal constructor() {
-
- private var inboundCheckDepositId: JsonField? = null
- private var transferId: JsonField? = null
- private var additionalProperties: MutableMap = mutableMapOf()
-
- @JvmSynthetic
- internal fun from(
- inboundCheckDepositReturnIntention: InboundCheckDepositReturnIntention
- ) = apply {
- inboundCheckDepositId = inboundCheckDepositReturnIntention.inboundCheckDepositId
- transferId = inboundCheckDepositReturnIntention.transferId
- additionalProperties =
- inboundCheckDepositReturnIntention.additionalProperties.toMutableMap()
- }
-
- /** The ID of the Inbound Check Deposit that is being returned. */
- fun inboundCheckDepositId(inboundCheckDepositId: String) =
- inboundCheckDepositId(JsonField.of(inboundCheckDepositId))
-
- /**
- * Sets [Builder.inboundCheckDepositId] to an arbitrary JSON value.
- *
- * You should usually call [Builder.inboundCheckDepositId] with a well-typed
- * [String] value instead. This method is primarily for setting the field to an
- * undocumented or not yet supported value.
- */
- fun inboundCheckDepositId(inboundCheckDepositId: JsonField) = apply {
- this.inboundCheckDepositId = inboundCheckDepositId
- }
-
- /** The identifier of the Check Transfer object that was deposited. */
- fun transferId(transferId: String?) = transferId(JsonField.ofNullable(transferId))
-
- /** Alias for calling [Builder.transferId] with `transferId.orElse(null)`. */
- fun transferId(transferId: Optional) = transferId(transferId.getOrNull())
-
- /**
- * 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 [InboundCheckDepositReturnIntention].
- *
- * Further updates to this [Builder] will not mutate the returned instance.
- *
- * The following fields are required:
- * ```java
- * .inboundCheckDepositId()
- * .transferId()
- * ```
- *
- * @throws IllegalStateException if any required field is unset.
- */
- fun build(): InboundCheckDepositReturnIntention =
- InboundCheckDepositReturnIntention(
- checkRequired("inboundCheckDepositId", inboundCheckDepositId),
- checkRequired("transferId", transferId),
- additionalProperties.toMutableMap(),
- )
- }
-
- private var validated: Boolean = false
-
- fun validate(): InboundCheckDepositReturnIntention = apply {
- if (validated) {
- return@apply
- }
-
- inboundCheckDepositId()
- 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 (inboundCheckDepositId.asKnown().isPresent) 1 else 0) +
- (if (transferId.asKnown().isPresent) 1 else 0)
-
- override fun equals(other: Any?): Boolean {
- if (this === other) {
- return true
- }
-
- return other is InboundCheckDepositReturnIntention &&
- inboundCheckDepositId == other.inboundCheckDepositId &&
- transferId == other.transferId &&
- additionalProperties == other.additionalProperties
- }
-
- private val hashCode: Int by lazy {
- Objects.hash(inboundCheckDepositId, transferId, additionalProperties)
- }
-
- override fun hashCode(): Int = hashCode
-
- override fun toString() =
- "InboundCheckDepositReturnIntention{inboundCheckDepositId=$inboundCheckDepositId, 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
- * `inbound_real_time_payments_transfer_confirmation`. An Inbound Real-Time Payments
- * Transfer Confirmation is created when a Real-Time Payments transfer is initiated at
- * another bank and received by Increase.
- */
- class InboundRealTimePaymentsTransferConfirmation
- private constructor(
- private val amount: JsonField,
- private val creditorName: JsonField,
- private val currency: JsonField,
- private val debtorAccountNumber: JsonField,
- private val debtorName: JsonField,
- private val debtorRoutingNumber: JsonField,
- private val remittanceInformation: JsonField,
- private val transactionIdentification: JsonField,
- private val transferId: JsonField,
- private val additionalProperties: MutableMap,
- ) {
-
- @JsonCreator
- private constructor(
- @JsonProperty("amount") @ExcludeMissing amount: JsonField = JsonMissing.of(),
- @JsonProperty("creditor_name")
- @ExcludeMissing
- creditorName: JsonField = JsonMissing.of(),
- @JsonProperty("currency")
- @ExcludeMissing
- currency: JsonField = JsonMissing.of(),
- @JsonProperty("debtor_account_number")
- @ExcludeMissing
- debtorAccountNumber: JsonField = JsonMissing.of(),
- @JsonProperty("debtor_name")
- @ExcludeMissing
- debtorName: JsonField = JsonMissing.of(),
- @JsonProperty("debtor_routing_number")
- @ExcludeMissing
- debtorRoutingNumber: JsonField = JsonMissing.of(),
- @JsonProperty("remittance_information")
- @ExcludeMissing
- remittanceInformation: JsonField = JsonMissing.of(),
- @JsonProperty("transaction_identification")
- @ExcludeMissing
- transactionIdentification: JsonField = JsonMissing.of(),
- @JsonProperty("transfer_id")
- @ExcludeMissing
- transferId: JsonField = JsonMissing.of(),
- ) : this(
- amount,
- creditorName,
- currency,
- debtorAccountNumber,
- debtorName,
- debtorRoutingNumber,
- remittanceInformation,
- transactionIdentification,
- transferId,
- mutableMapOf(),
- )
-
- /**
- * The amount in the minor unit of the transfer's currency. For dollars, for example,
- * this is cents.
- *
- * @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 amount(): Long = amount.getRequired("amount")
-
- /**
- * The name the sender of the transfer specified as the recipient of the transfer.
- *
- * @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 creditorName(): String = creditorName.getRequired("creditor_name")
-
- /**
- * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code of the transfer's
- * currency. This will always be "USD" for a Real-Time Payments transfer.
- *
- * @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 currency(): Currency = currency.getRequired("currency")
-
- /**
- * The account number of the account that sent the transfer.
- *
- * @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 debtorAccountNumber(): String =
- debtorAccountNumber.getRequired("debtor_account_number")
-
- /**
- * The name provided by the sender of the transfer.
- *
- * @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 debtorName(): String = debtorName.getRequired("debtor_name")
-
- /**
- * The routing number of the account that sent the transfer.
- *
- * @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 debtorRoutingNumber(): String =
- debtorRoutingNumber.getRequired("debtor_routing_number")
-
- /**
- * Additional information included with the transfer.
- *
- * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g.
- * if the server responded with an unexpected value).
- */
- fun remittanceInformation(): Optional =
- remittanceInformation.getOptional("remittance_information")
-
- /**
- * The Real-Time Payments network identification of the transfer.
- *
- * @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 transactionIdentification(): String =
- transactionIdentification.getRequired("transaction_identification")
-
- /**
- * The identifier of the Real-Time Payments 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 [amount].
- *
- * Unlike [amount], this method doesn't throw if the JSON field has an unexpected type.
- */
- @JsonProperty("amount") @ExcludeMissing fun _amount(): JsonField = amount
-
- /**
- * Returns the raw JSON value of [creditorName].
- *
- * Unlike [creditorName], this method doesn't throw if the JSON field has an unexpected
- * type.
- */
- @JsonProperty("creditor_name")
- @ExcludeMissing
- fun _creditorName(): JsonField = creditorName
-
- /**
- * Returns the raw JSON value of [currency].
- *
- * Unlike [currency], this method doesn't throw if the JSON field has an unexpected
- * type.
- */
- @JsonProperty("currency")
- @ExcludeMissing
- fun _currency(): JsonField = currency
-
- /**
- * Returns the raw JSON value of [debtorAccountNumber].
- *
- * Unlike [debtorAccountNumber], this method doesn't throw if the JSON field has an
- * unexpected type.
- */
- @JsonProperty("debtor_account_number")
- @ExcludeMissing
- fun _debtorAccountNumber(): JsonField = debtorAccountNumber
-
- /**
- * Returns the raw JSON value of [debtorName].
- *
- * Unlike [debtorName], this method doesn't throw if the JSON field has an unexpected
- * type.
- */
- @JsonProperty("debtor_name")
- @ExcludeMissing
- fun _debtorName(): JsonField = debtorName
-
- /**
- * Returns the raw JSON value of [debtorRoutingNumber].
- *
- * Unlike [debtorRoutingNumber], this method doesn't throw if the JSON field has an
- * unexpected type.
- */
- @JsonProperty("debtor_routing_number")
- @ExcludeMissing
- fun _debtorRoutingNumber(): JsonField = debtorRoutingNumber
-
- /**
- * Returns the raw JSON value of [remittanceInformation].
- *
- * Unlike [remittanceInformation], this method doesn't throw if the JSON field has an
- * unexpected type.
- */
- @JsonProperty("remittance_information")
- @ExcludeMissing
- fun _remittanceInformation(): JsonField = remittanceInformation
-
- /**
- * Returns the raw JSON value of [transactionIdentification].
- *
- * Unlike [transactionIdentification], this method doesn't throw if the JSON field has
- * an unexpected type.
- */
- @JsonProperty("transaction_identification")
- @ExcludeMissing
- fun _transactionIdentification(): JsonField = transactionIdentification
-
- /**
- * 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
- * [InboundRealTimePaymentsTransferConfirmation].
- *
- * The following fields are required:
- * ```java
- * .amount()
- * .creditorName()
- * .currency()
- * .debtorAccountNumber()
- * .debtorName()
- * .debtorRoutingNumber()
- * .remittanceInformation()
- * .transactionIdentification()
- * .transferId()
- * ```
- */
- @JvmStatic fun builder() = Builder()
- }
-
- /** A builder for [InboundRealTimePaymentsTransferConfirmation]. */
- class Builder internal constructor() {
-
- private var amount: JsonField? = null
- private var creditorName: JsonField? = null
- private var currency: JsonField? = null
- private var debtorAccountNumber: JsonField? = null
- private var debtorName: JsonField? = null
- private var debtorRoutingNumber: JsonField? = null
- private var remittanceInformation: JsonField? = null
- private var transactionIdentification: JsonField? = null
- private var transferId: JsonField? = null
- private var additionalProperties: MutableMap = mutableMapOf()
-
- @JvmSynthetic
- internal fun from(
- inboundRealTimePaymentsTransferConfirmation:
- InboundRealTimePaymentsTransferConfirmation
- ) = apply {
- amount = inboundRealTimePaymentsTransferConfirmation.amount
- creditorName = inboundRealTimePaymentsTransferConfirmation.creditorName
- currency = inboundRealTimePaymentsTransferConfirmation.currency
- debtorAccountNumber =
- inboundRealTimePaymentsTransferConfirmation.debtorAccountNumber
- debtorName = inboundRealTimePaymentsTransferConfirmation.debtorName
- debtorRoutingNumber =
- inboundRealTimePaymentsTransferConfirmation.debtorRoutingNumber
- remittanceInformation =
- inboundRealTimePaymentsTransferConfirmation.remittanceInformation
- transactionIdentification =
- inboundRealTimePaymentsTransferConfirmation.transactionIdentification
- transferId = inboundRealTimePaymentsTransferConfirmation.transferId
- additionalProperties =
- inboundRealTimePaymentsTransferConfirmation.additionalProperties
- .toMutableMap()
- }
-
- /**
- * The amount in the minor unit of the transfer's currency. For dollars, for
- * example, this is cents.
- */
- fun amount(amount: Long) = amount(JsonField.of(amount))
-
- /**
- * Sets [Builder.amount] to an arbitrary JSON value.
- *
- * You should usually call [Builder.amount] with a well-typed [Long] value instead.
- * This method is primarily for setting the field to an undocumented or not yet
- * supported value.
- */
- fun amount(amount: JsonField) = apply { this.amount = amount }
-
- /**
- * The name the sender of the transfer specified as the recipient of the transfer.
- */
- fun creditorName(creditorName: String) = creditorName(JsonField.of(creditorName))
-
- /**
- * Sets [Builder.creditorName] to an arbitrary JSON 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 creditorName(creditorName: JsonField) = apply {
- this.creditorName = creditorName
- }
-
- /**
- * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code of the transfer's
- * currency. This will always be "USD" for a Real-Time Payments transfer.
- */
- fun currency(currency: Currency) = currency(JsonField.of(currency))
-
- /**
- * Sets [Builder.currency] to an arbitrary JSON value.
- *
- * You should usually call [Builder.currency] with a well-typed [Currency] value
- * instead. This method is primarily for setting the field to an undocumented or not
- * yet supported value.
- */
- fun currency(currency: JsonField) = apply { this.currency = currency }
-
- /** The account number of the account that sent the transfer. */
- fun debtorAccountNumber(debtorAccountNumber: String) =
- debtorAccountNumber(JsonField.of(debtorAccountNumber))
-
- /**
- * Sets [Builder.debtorAccountNumber] to an arbitrary JSON 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 debtorAccountNumber(debtorAccountNumber: JsonField) = apply {
- this.debtorAccountNumber = debtorAccountNumber
- }
-
- /** The name provided by the sender of the transfer. */
- fun debtorName(debtorName: String) = debtorName(JsonField.of(debtorName))
-
- /**
- * 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 debtorName(debtorName: JsonField) = apply {
- this.debtorName = debtorName
- }
-
- /** The routing number of the account that sent the transfer. */
- fun debtorRoutingNumber(debtorRoutingNumber: String) =
- debtorRoutingNumber(JsonField.of(debtorRoutingNumber))
-
- /**
- * Sets [Builder.debtorRoutingNumber] to an arbitrary JSON 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 debtorRoutingNumber(debtorRoutingNumber: JsonField) = apply {
- this.debtorRoutingNumber = debtorRoutingNumber
- }
-
- /** Additional information included with the transfer. */
- fun remittanceInformation(remittanceInformation: String?) =
- remittanceInformation(JsonField.ofNullable(remittanceInformation))
-
- /**
- * Alias for calling [Builder.remittanceInformation] with
- * `remittanceInformation.orElse(null)`.
- */
- fun remittanceInformation(remittanceInformation: Optional) =
- remittanceInformation(remittanceInformation.getOrNull())
-
- /**
- * Sets [Builder.remittanceInformation] to an arbitrary JSON value.
- *
- * You should usually call [Builder.remittanceInformation] with a well-typed
- * [String] value instead. This method is primarily for setting the field to an
- * undocumented or not yet supported value.
- */
- fun remittanceInformation(remittanceInformation: JsonField) = apply {
- this.remittanceInformation = remittanceInformation
- }
-
- /** The Real-Time Payments network identification of the transfer. */
- fun transactionIdentification(transactionIdentification: String) =
- transactionIdentification(JsonField.of(transactionIdentification))
-
- /**
- * Sets [Builder.transactionIdentification] to an arbitrary JSON value.
- *
- * You should usually call [Builder.transactionIdentification] with a well-typed
- * [String] value instead. This method is primarily for setting the field to an
- * undocumented or not yet supported value.
- */
- fun transactionIdentification(transactionIdentification: JsonField) =
- apply {
- this.transactionIdentification = transactionIdentification
- }
-
- /**
- * The identifier of the Real-Time Payments 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 [InboundRealTimePaymentsTransferConfirmation].
- *
- * Further updates to this [Builder] will not mutate the returned instance.
- *
- * The following fields are required:
- * ```java
- * .amount()
- * .creditorName()
- * .currency()
- * .debtorAccountNumber()
- * .debtorName()
- * .debtorRoutingNumber()
- * .remittanceInformation()
- * .transactionIdentification()
- * .transferId()
- * ```
- *
- * @throws IllegalStateException if any required field is unset.
- */
- fun build(): InboundRealTimePaymentsTransferConfirmation =
- InboundRealTimePaymentsTransferConfirmation(
- checkRequired("amount", amount),
- checkRequired("creditorName", creditorName),
- checkRequired("currency", currency),
- checkRequired("debtorAccountNumber", debtorAccountNumber),
- checkRequired("debtorName", debtorName),
- checkRequired("debtorRoutingNumber", debtorRoutingNumber),
- checkRequired("remittanceInformation", remittanceInformation),
- checkRequired("transactionIdentification", transactionIdentification),
- checkRequired("transferId", transferId),
- additionalProperties.toMutableMap(),
- )
- }
-
- private var validated: Boolean = false
-
- fun validate(): InboundRealTimePaymentsTransferConfirmation = apply {
- if (validated) {
- return@apply
- }
-
- amount()
- creditorName()
- currency().validate()
- debtorAccountNumber()
- debtorName()
- debtorRoutingNumber()
- remittanceInformation()
- transactionIdentification()
- 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 (amount.asKnown().isPresent) 1 else 0) +
- (if (creditorName.asKnown().isPresent) 1 else 0) +
- (currency.asKnown().getOrNull()?.validity() ?: 0) +
- (if (debtorAccountNumber.asKnown().isPresent) 1 else 0) +
- (if (debtorName.asKnown().isPresent) 1 else 0) +
- (if (debtorRoutingNumber.asKnown().isPresent) 1 else 0) +
- (if (remittanceInformation.asKnown().isPresent) 1 else 0) +
- (if (transactionIdentification.asKnown().isPresent) 1 else 0) +
- (if (transferId.asKnown().isPresent) 1 else 0)
-
- /**
- * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code of the transfer's
- * currency. This will always be "USD" for a Real-Time Payments transfer.
- */
- class Currency @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 {
-
- /** Canadian Dollar (CAD) */
- @JvmField val CAD = of("CAD")
-
- /** Swiss Franc (CHF) */
- @JvmField val CHF = of("CHF")
-
- /** Euro (EUR) */
- @JvmField val EUR = of("EUR")
-
- /** British Pound (GBP) */
- @JvmField val GBP = of("GBP")
-
- /** Japanese Yen (JPY) */
- @JvmField val JPY = of("JPY")
-
- /** US Dollar (USD) */
- @JvmField val USD = of("USD")
-
- @JvmStatic fun of(value: String) = Currency(JsonField.of(value))
- }
-
- /** An enum containing [Currency]'s known values. */
- enum class Known {
- /** Canadian Dollar (CAD) */
- CAD,
- /** Swiss Franc (CHF) */
- CHF,
- /** Euro (EUR) */
- EUR,
- /** British Pound (GBP) */
- GBP,
- /** Japanese Yen (JPY) */
- JPY,
- /** US Dollar (USD) */
- USD,
- }
-
- /**
- * An enum containing [Currency]'s known values, as well as an [_UNKNOWN] member.
- *
- * An instance of [Currency] 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 {
- /** Canadian Dollar (CAD) */
- CAD,
- /** Swiss Franc (CHF) */
- CHF,
- /** Euro (EUR) */
- EUR,
- /** British Pound (GBP) */
- GBP,
- /** Japanese Yen (JPY) */
- JPY,
- /** US Dollar (USD) */
- USD,
- /**
- * An enum member indicating that [Currency] 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) {
- CAD -> Value.CAD
- CHF -> Value.CHF
- EUR -> Value.EUR
- GBP -> Value.GBP
- JPY -> Value.JPY
- USD -> Value.USD
- 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) {
- CAD -> Known.CAD
- CHF -> Known.CHF
- EUR -> Known.EUR
- GBP -> Known.GBP
- JPY -> Known.JPY
- USD -> Known.USD
- else -> throw IncreaseInvalidDataException("Unknown Currency: $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(): Currency = 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 Currency && value == other.value
+ return other is Reason && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -34457,46 +33368,263 @@ private constructor(
return true
}
- return other is InboundRealTimePaymentsTransferConfirmation &&
+ return other is InboundCheckAdjustment &&
+ adjustedTransactionId == other.adjustedTransactionId &&
amount == other.amount &&
- creditorName == other.creditorName &&
- currency == other.currency &&
- debtorAccountNumber == other.debtorAccountNumber &&
- debtorName == other.debtorName &&
- debtorRoutingNumber == other.debtorRoutingNumber &&
- remittanceInformation == other.remittanceInformation &&
- transactionIdentification == other.transactionIdentification &&
+ reason == other.reason &&
+ additionalProperties == other.additionalProperties
+ }
+
+ private val hashCode: Int by lazy {
+ Objects.hash(adjustedTransactionId, amount, reason, additionalProperties)
+ }
+
+ override fun hashCode(): Int = hashCode
+
+ override fun toString() =
+ "InboundCheckAdjustment{adjustedTransactionId=$adjustedTransactionId, amount=$amount, reason=$reason, additionalProperties=$additionalProperties}"
+ }
+
+ /**
+ * An Inbound Check Deposit Return Intention object. This field will be present in the JSON
+ * response if and only if `category` is equal to `inbound_check_deposit_return_intention`.
+ * An Inbound Check Deposit Return Intention is created when Increase receives an Inbound
+ * Check and the User requests that it be returned.
+ */
+ class InboundCheckDepositReturnIntention
+ private constructor(
+ private val inboundCheckDepositId: JsonField,
+ private val transferId: JsonField,
+ private val additionalProperties: MutableMap,
+ ) {
+
+ @JsonCreator
+ private constructor(
+ @JsonProperty("inbound_check_deposit_id")
+ @ExcludeMissing
+ inboundCheckDepositId: JsonField = JsonMissing.of(),
+ @JsonProperty("transfer_id")
+ @ExcludeMissing
+ transferId: JsonField = JsonMissing.of(),
+ ) : this(inboundCheckDepositId, transferId, mutableMapOf())
+
+ /**
+ * The ID of the Inbound Check Deposit that is being returned.
+ *
+ * @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 inboundCheckDepositId(): String =
+ inboundCheckDepositId.getRequired("inbound_check_deposit_id")
+
+ /**
+ * The identifier of the Check Transfer object that was deposited.
+ *
+ * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g.
+ * if the server responded with an unexpected value).
+ */
+ fun transferId(): Optional = transferId.getOptional("transfer_id")
+
+ /**
+ * Returns the raw JSON value of [inboundCheckDepositId].
+ *
+ * Unlike [inboundCheckDepositId], this method doesn't throw if the JSON field has an
+ * unexpected type.
+ */
+ @JsonProperty("inbound_check_deposit_id")
+ @ExcludeMissing
+ fun _inboundCheckDepositId(): JsonField = inboundCheckDepositId
+
+ /**
+ * 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
+ * [InboundCheckDepositReturnIntention].
+ *
+ * The following fields are required:
+ * ```java
+ * .inboundCheckDepositId()
+ * .transferId()
+ * ```
+ */
+ @JvmStatic fun builder() = Builder()
+ }
+
+ /** A builder for [InboundCheckDepositReturnIntention]. */
+ class Builder internal constructor() {
+
+ private var inboundCheckDepositId: JsonField? = null
+ private var transferId: JsonField? = null
+ private var additionalProperties: MutableMap = mutableMapOf()
+
+ @JvmSynthetic
+ internal fun from(
+ inboundCheckDepositReturnIntention: InboundCheckDepositReturnIntention
+ ) = apply {
+ inboundCheckDepositId = inboundCheckDepositReturnIntention.inboundCheckDepositId
+ transferId = inboundCheckDepositReturnIntention.transferId
+ additionalProperties =
+ inboundCheckDepositReturnIntention.additionalProperties.toMutableMap()
+ }
+
+ /** The ID of the Inbound Check Deposit that is being returned. */
+ fun inboundCheckDepositId(inboundCheckDepositId: String) =
+ inboundCheckDepositId(JsonField.of(inboundCheckDepositId))
+
+ /**
+ * Sets [Builder.inboundCheckDepositId] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.inboundCheckDepositId] with a well-typed
+ * [String] value instead. This method is primarily for setting the field to an
+ * undocumented or not yet supported value.
+ */
+ fun inboundCheckDepositId(inboundCheckDepositId: JsonField) = apply {
+ this.inboundCheckDepositId = inboundCheckDepositId
+ }
+
+ /** The identifier of the Check Transfer object that was deposited. */
+ fun transferId(transferId: String?) = transferId(JsonField.ofNullable(transferId))
+
+ /** Alias for calling [Builder.transferId] with `transferId.orElse(null)`. */
+ fun transferId(transferId: Optional) = transferId(transferId.getOrNull())
+
+ /**
+ * 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 [InboundCheckDepositReturnIntention].
+ *
+ * Further updates to this [Builder] will not mutate the returned instance.
+ *
+ * The following fields are required:
+ * ```java
+ * .inboundCheckDepositId()
+ * .transferId()
+ * ```
+ *
+ * @throws IllegalStateException if any required field is unset.
+ */
+ fun build(): InboundCheckDepositReturnIntention =
+ InboundCheckDepositReturnIntention(
+ checkRequired("inboundCheckDepositId", inboundCheckDepositId),
+ checkRequired("transferId", transferId),
+ additionalProperties.toMutableMap(),
+ )
+ }
+
+ private var validated: Boolean = false
+
+ fun validate(): InboundCheckDepositReturnIntention = apply {
+ if (validated) {
+ return@apply
+ }
+
+ inboundCheckDepositId()
+ 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 (inboundCheckDepositId.asKnown().isPresent) 1 else 0) +
+ (if (transferId.asKnown().isPresent) 1 else 0)
+
+ override fun equals(other: Any?): Boolean {
+ if (this === other) {
+ return true
+ }
+
+ return other is InboundCheckDepositReturnIntention &&
+ inboundCheckDepositId == other.inboundCheckDepositId &&
transferId == other.transferId &&
additionalProperties == other.additionalProperties
}
private val hashCode: Int by lazy {
- Objects.hash(
- amount,
- creditorName,
- currency,
- debtorAccountNumber,
- debtorName,
- debtorRoutingNumber,
- remittanceInformation,
- transactionIdentification,
- transferId,
- additionalProperties,
- )
+ Objects.hash(inboundCheckDepositId, transferId, additionalProperties)
}
override fun hashCode(): Int = hashCode
override fun toString() =
- "InboundRealTimePaymentsTransferConfirmation{amount=$amount, creditorName=$creditorName, currency=$currency, debtorAccountNumber=$debtorAccountNumber, debtorName=$debtorName, debtorRoutingNumber=$debtorRoutingNumber, remittanceInformation=$remittanceInformation, transactionIdentification=$transactionIdentification, transferId=$transferId, additionalProperties=$additionalProperties}"
+ "InboundCheckDepositReturnIntention{inboundCheckDepositId=$inboundCheckDepositId, 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
- * `inbound_real_time_payments_transfer_decline`.
+ * 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
+ * `inbound_real_time_payments_transfer_confirmation`. An Inbound Real-Time Payments
+ * Transfer Confirmation is created when a Real-Time Payments transfer is initiated at
+ * another bank and received by Increase.
*/
- class InboundRealTimePaymentsTransferDecline
+ class InboundRealTimePaymentsTransferConfirmation
private constructor(
private val amount: JsonField,
private val creditorName: JsonField,
@@ -34504,7 +33632,6 @@ private constructor(
private val debtorAccountNumber: JsonField,
private val debtorName: JsonField,
private val debtorRoutingNumber: JsonField,
- private val reason: JsonField,
private val remittanceInformation: JsonField,
private val transactionIdentification: JsonField,
private val transferId: JsonField,
@@ -34529,9 +33656,6 @@ private constructor(
@JsonProperty("debtor_routing_number")
@ExcludeMissing
debtorRoutingNumber: JsonField = JsonMissing.of(),
- @JsonProperty("reason")
- @ExcludeMissing
- reason: JsonField = JsonMissing.of(),
@JsonProperty("remittance_information")
@ExcludeMissing
remittanceInformation: JsonField = JsonMissing.of(),
@@ -34548,7 +33672,6 @@ private constructor(
debtorAccountNumber,
debtorName,
debtorRoutingNumber,
- reason,
remittanceInformation,
transactionIdentification,
transferId,
@@ -34556,8 +33679,8 @@ private constructor(
)
/**
- * The declined amount in the minor unit of the destination account currency. For
- * dollars, for example, this is cents.
+ * The amount in the minor unit of the transfer's currency. For dollars, for example,
+ * this is cents.
*
* @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
@@ -34575,8 +33698,8 @@ private constructor(
fun creditorName(): String = creditorName.getRequired("creditor_name")
/**
- * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code of the declined
- * transfer's currency. This will always be "USD" for a Real-Time Payments transfer.
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code of the transfer's
+ * currency. This will always be "USD" for a Real-Time Payments transfer.
*
* @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
@@ -34613,15 +33736,6 @@ private constructor(
fun debtorRoutingNumber(): String =
debtorRoutingNumber.getRequired("debtor_routing_number")
- /**
- * 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")
-
/**
* Additional information included with the transfer.
*
@@ -34632,7 +33746,7 @@ private constructor(
remittanceInformation.getOptional("remittance_information")
/**
- * The Real-Time Payments network identification of the declined transfer.
+ * The Real-Time Payments network identification of the transfer.
*
* @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
@@ -34707,13 +33821,6 @@ private constructor(
@ExcludeMissing
fun _debtorRoutingNumber(): JsonField = debtorRoutingNumber
- /**
- * 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 [remittanceInformation].
*
@@ -34760,7 +33867,7 @@ private constructor(
/**
* Returns a mutable builder for constructing an instance of
- * [InboundRealTimePaymentsTransferDecline].
+ * [InboundRealTimePaymentsTransferConfirmation].
*
* The following fields are required:
* ```java
@@ -34770,7 +33877,6 @@ private constructor(
* .debtorAccountNumber()
* .debtorName()
* .debtorRoutingNumber()
- * .reason()
* .remittanceInformation()
* .transactionIdentification()
* .transferId()
@@ -34779,7 +33885,7 @@ private constructor(
@JvmStatic fun builder() = Builder()
}
- /** A builder for [InboundRealTimePaymentsTransferDecline]. */
+ /** A builder for [InboundRealTimePaymentsTransferConfirmation]. */
class Builder internal constructor() {
private var amount: JsonField? = null
@@ -34788,7 +33894,6 @@ private constructor(
private var debtorAccountNumber: JsonField? = null
private var debtorName: JsonField? = null
private var debtorRoutingNumber: JsonField? = null
- private var reason: JsonField? = null
private var remittanceInformation: JsonField? = null
private var transactionIdentification: JsonField? = null
private var transferId: JsonField? = null
@@ -34796,27 +33901,30 @@ private constructor(
@JvmSynthetic
internal fun from(
- inboundRealTimePaymentsTransferDecline: InboundRealTimePaymentsTransferDecline
+ inboundRealTimePaymentsTransferConfirmation:
+ InboundRealTimePaymentsTransferConfirmation
) = apply {
- amount = inboundRealTimePaymentsTransferDecline.amount
- creditorName = inboundRealTimePaymentsTransferDecline.creditorName
- currency = inboundRealTimePaymentsTransferDecline.currency
- debtorAccountNumber = inboundRealTimePaymentsTransferDecline.debtorAccountNumber
- debtorName = inboundRealTimePaymentsTransferDecline.debtorName
- debtorRoutingNumber = inboundRealTimePaymentsTransferDecline.debtorRoutingNumber
- reason = inboundRealTimePaymentsTransferDecline.reason
+ amount = inboundRealTimePaymentsTransferConfirmation.amount
+ creditorName = inboundRealTimePaymentsTransferConfirmation.creditorName
+ currency = inboundRealTimePaymentsTransferConfirmation.currency
+ debtorAccountNumber =
+ inboundRealTimePaymentsTransferConfirmation.debtorAccountNumber
+ debtorName = inboundRealTimePaymentsTransferConfirmation.debtorName
+ debtorRoutingNumber =
+ inboundRealTimePaymentsTransferConfirmation.debtorRoutingNumber
remittanceInformation =
- inboundRealTimePaymentsTransferDecline.remittanceInformation
+ inboundRealTimePaymentsTransferConfirmation.remittanceInformation
transactionIdentification =
- inboundRealTimePaymentsTransferDecline.transactionIdentification
- transferId = inboundRealTimePaymentsTransferDecline.transferId
+ inboundRealTimePaymentsTransferConfirmation.transactionIdentification
+ transferId = inboundRealTimePaymentsTransferConfirmation.transferId
additionalProperties =
- inboundRealTimePaymentsTransferDecline.additionalProperties.toMutableMap()
+ inboundRealTimePaymentsTransferConfirmation.additionalProperties
+ .toMutableMap()
}
/**
- * The declined amount in the minor unit of the destination account currency. For
- * dollars, for example, this is cents.
+ * The amount in the minor unit of the transfer's currency. For dollars, for
+ * example, this is cents.
*/
fun amount(amount: Long) = amount(JsonField.of(amount))
@@ -34846,8 +33954,8 @@ private constructor(
}
/**
- * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code of the declined
- * transfer's currency. This will always be "USD" for a Real-Time Payments transfer.
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code of the transfer's
+ * currency. This will always be "USD" for a Real-Time Payments transfer.
*/
fun currency(currency: Currency) = currency(JsonField.of(currency))
@@ -34904,18 +34012,6 @@ private constructor(
this.debtorRoutingNumber = debtorRoutingNumber
}
- /** 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 }
-
/** Additional information included with the transfer. */
fun remittanceInformation(remittanceInformation: String?) =
remittanceInformation(JsonField.ofNullable(remittanceInformation))
@@ -34938,7 +34034,7 @@ private constructor(
this.remittanceInformation = remittanceInformation
}
- /** The Real-Time Payments network identification of the declined transfer. */
+ /** The Real-Time Payments network identification of the transfer. */
fun transactionIdentification(transactionIdentification: String) =
transactionIdentification(JsonField.of(transactionIdentification))
@@ -34993,7 +34089,7 @@ private constructor(
}
/**
- * Returns an immutable instance of [InboundRealTimePaymentsTransferDecline].
+ * Returns an immutable instance of [InboundRealTimePaymentsTransferConfirmation].
*
* Further updates to this [Builder] will not mutate the returned instance.
*
@@ -35005,7 +34101,6 @@ private constructor(
* .debtorAccountNumber()
* .debtorName()
* .debtorRoutingNumber()
- * .reason()
* .remittanceInformation()
* .transactionIdentification()
* .transferId()
@@ -35013,15 +34108,14 @@ private constructor(
*
* @throws IllegalStateException if any required field is unset.
*/
- fun build(): InboundRealTimePaymentsTransferDecline =
- InboundRealTimePaymentsTransferDecline(
+ fun build(): InboundRealTimePaymentsTransferConfirmation =
+ InboundRealTimePaymentsTransferConfirmation(
checkRequired("amount", amount),
checkRequired("creditorName", creditorName),
checkRequired("currency", currency),
checkRequired("debtorAccountNumber", debtorAccountNumber),
checkRequired("debtorName", debtorName),
checkRequired("debtorRoutingNumber", debtorRoutingNumber),
- checkRequired("reason", reason),
checkRequired("remittanceInformation", remittanceInformation),
checkRequired("transactionIdentification", transactionIdentification),
checkRequired("transferId", transferId),
@@ -35031,7 +34125,7 @@ private constructor(
private var validated: Boolean = false
- fun validate(): InboundRealTimePaymentsTransferDecline = apply {
+ fun validate(): InboundRealTimePaymentsTransferConfirmation = apply {
if (validated) {
return@apply
}
@@ -35042,7 +34136,6 @@ private constructor(
debtorAccountNumber()
debtorName()
debtorRoutingNumber()
- reason().validate()
remittanceInformation()
transactionIdentification()
transferId()
@@ -35071,14 +34164,13 @@ private constructor(
(if (debtorAccountNumber.asKnown().isPresent) 1 else 0) +
(if (debtorName.asKnown().isPresent) 1 else 0) +
(if (debtorRoutingNumber.asKnown().isPresent) 1 else 0) +
- (reason.asKnown().getOrNull()?.validity() ?: 0) +
(if (remittanceInformation.asKnown().isPresent) 1 else 0) +
(if (transactionIdentification.asKnown().isPresent) 1 else 0) +
(if (transferId.asKnown().isPresent) 1 else 0)
/**
- * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code of the declined
- * transfer's currency. This will always be "USD" for a Real-Time Payments transfer.
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code of the transfer's
+ * currency. This will always be "USD" for a Real-Time Payments transfer.
*/
class Currency @JsonCreator private constructor(private val value: JsonField) :
Enum {
@@ -35253,194 +34345,18 @@ private constructor(
override fun toString() = value.toString()
}
- /** 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 Real-Time Payments transfers. */
- @JvmField
- val REAL_TIME_PAYMENTS_NOT_ENABLED = of("real_time_payments_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 Real-Time Payments transfers. */
- REAL_TIME_PAYMENTS_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 Real-Time Payments transfers. */
- REAL_TIME_PAYMENTS_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
- REAL_TIME_PAYMENTS_NOT_ENABLED -> Value.REAL_TIME_PAYMENTS_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
- REAL_TIME_PAYMENTS_NOT_ENABLED -> Known.REAL_TIME_PAYMENTS_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 InboundRealTimePaymentsTransferDecline &&
+ return other is InboundRealTimePaymentsTransferConfirmation &&
amount == other.amount &&
creditorName == other.creditorName &&
currency == other.currency &&
debtorAccountNumber == other.debtorAccountNumber &&
debtorName == other.debtorName &&
debtorRoutingNumber == other.debtorRoutingNumber &&
- reason == other.reason &&
remittanceInformation == other.remittanceInformation &&
transactionIdentification == other.transactionIdentification &&
transferId == other.transferId &&
@@ -35455,7 +34371,6 @@ private constructor(
debtorAccountNumber,
debtorName,
debtorRoutingNumber,
- reason,
remittanceInformation,
transactionIdentification,
transferId,
@@ -35466,7 +34381,7 @@ private constructor(
override fun hashCode(): Int = hashCode
override fun toString() =
- "InboundRealTimePaymentsTransferDecline{amount=$amount, creditorName=$creditorName, currency=$currency, debtorAccountNumber=$debtorAccountNumber, debtorName=$debtorName, debtorRoutingNumber=$debtorRoutingNumber, reason=$reason, remittanceInformation=$remittanceInformation, transactionIdentification=$transactionIdentification, transferId=$transferId, additionalProperties=$additionalProperties}"
+ "InboundRealTimePaymentsTransferConfirmation{amount=$amount, creditorName=$creditorName, currency=$currency, debtorAccountNumber=$debtorAccountNumber, debtorName=$debtorName, debtorRoutingNumber=$debtorRoutingNumber, remittanceInformation=$remittanceInformation, transactionIdentification=$transactionIdentification, transferId=$transferId, additionalProperties=$additionalProperties}"
}
/**
@@ -40453,8 +39368,6 @@ private constructor(
inboundCheckDepositReturnIntention == other.inboundCheckDepositReturnIntention &&
inboundRealTimePaymentsTransferConfirmation ==
other.inboundRealTimePaymentsTransferConfirmation &&
- inboundRealTimePaymentsTransferDecline ==
- other.inboundRealTimePaymentsTransferDecline &&
inboundWireReversal == other.inboundWireReversal &&
inboundWireTransfer == other.inboundWireTransfer &&
inboundWireTransferReversal == other.inboundWireTransferReversal &&
@@ -40494,7 +39407,6 @@ private constructor(
inboundCheckAdjustment,
inboundCheckDepositReturnIntention,
inboundRealTimePaymentsTransferConfirmation,
- inboundRealTimePaymentsTransferDecline,
inboundWireReversal,
inboundWireTransfer,
inboundWireTransferReversal,
@@ -40513,7 +39425,7 @@ private constructor(
override fun hashCode(): Int = hashCode
override fun toString() =
- "Source{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, feePayment=$feePayment, inboundAchTransfer=$inboundAchTransfer, inboundAchTransferReturnIntention=$inboundAchTransferReturnIntention, inboundCheckAdjustment=$inboundCheckAdjustment, inboundCheckDepositReturnIntention=$inboundCheckDepositReturnIntention, inboundRealTimePaymentsTransferConfirmation=$inboundRealTimePaymentsTransferConfirmation, inboundRealTimePaymentsTransferDecline=$inboundRealTimePaymentsTransferDecline, 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{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, 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}"
}
/**
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 94704654e..fc725ffdd 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
@@ -525,14 +525,6 @@ private constructor(
val INBOUND_REAL_TIME_PAYMENTS_TRANSFER_CONFIRMATION =
of("inbound_real_time_payments_transfer_confirmation")
- /**
- * Inbound Real-Time Payments Transfer Decline: details will be under the
- * `inbound_real_time_payments_transfer_decline` object.
- */
- @JvmField
- val INBOUND_REAL_TIME_PAYMENTS_TRANSFER_DECLINE =
- of("inbound_real_time_payments_transfer_decline")
-
/**
* Inbound Wire Reversal: details will be under the `inbound_wire_reversal` object.
*/
@@ -678,11 +670,6 @@ private constructor(
* `inbound_real_time_payments_transfer_confirmation` object.
*/
INBOUND_REAL_TIME_PAYMENTS_TRANSFER_CONFIRMATION,
- /**
- * Inbound Real-Time Payments Transfer Decline: details will be under the
- * `inbound_real_time_payments_transfer_decline` object.
- */
- INBOUND_REAL_TIME_PAYMENTS_TRANSFER_DECLINE,
/**
* Inbound Wire Reversal: details will be under the `inbound_wire_reversal` object.
*/
@@ -821,11 +808,6 @@ private constructor(
* `inbound_real_time_payments_transfer_confirmation` object.
*/
INBOUND_REAL_TIME_PAYMENTS_TRANSFER_CONFIRMATION,
- /**
- * Inbound Real-Time Payments Transfer Decline: details will be under the
- * `inbound_real_time_payments_transfer_decline` object.
- */
- INBOUND_REAL_TIME_PAYMENTS_TRANSFER_DECLINE,
/**
* Inbound Wire Reversal: details will be under the `inbound_wire_reversal` object.
*/
@@ -908,8 +890,6 @@ private constructor(
INBOUND_CHECK_ADJUSTMENT -> Value.INBOUND_CHECK_ADJUSTMENT
INBOUND_REAL_TIME_PAYMENTS_TRANSFER_CONFIRMATION ->
Value.INBOUND_REAL_TIME_PAYMENTS_TRANSFER_CONFIRMATION
- INBOUND_REAL_TIME_PAYMENTS_TRANSFER_DECLINE ->
- Value.INBOUND_REAL_TIME_PAYMENTS_TRANSFER_DECLINE
INBOUND_WIRE_REVERSAL -> Value.INBOUND_WIRE_REVERSAL
INBOUND_WIRE_TRANSFER -> Value.INBOUND_WIRE_TRANSFER
INBOUND_WIRE_TRANSFER_REVERSAL -> Value.INBOUND_WIRE_TRANSFER_REVERSAL
@@ -960,8 +940,6 @@ private constructor(
INBOUND_CHECK_ADJUSTMENT -> Known.INBOUND_CHECK_ADJUSTMENT
INBOUND_REAL_TIME_PAYMENTS_TRANSFER_CONFIRMATION ->
Known.INBOUND_REAL_TIME_PAYMENTS_TRANSFER_CONFIRMATION
- INBOUND_REAL_TIME_PAYMENTS_TRANSFER_DECLINE ->
- Known.INBOUND_REAL_TIME_PAYMENTS_TRANSFER_DECLINE
INBOUND_WIRE_REVERSAL -> Known.INBOUND_WIRE_REVERSAL
INBOUND_WIRE_TRANSFER -> Known.INBOUND_WIRE_TRANSFER
INBOUND_WIRE_TRANSFER_REVERSAL -> Known.INBOUND_WIRE_TRANSFER_REVERSAL
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 0eb4f0040..67f3de537 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
@@ -780,35 +780,6 @@ internal class TransactionListPageResponseTest {
)
.build()
)
- .inboundRealTimePaymentsTransferDecline(
- Transaction.Source.InboundRealTimePaymentsTransferDecline
- .builder()
- .amount(100L)
- .creditorName("Ian Crease")
- .currency(
- Transaction.Source
- .InboundRealTimePaymentsTransferDecline
- .Currency
- .USD
- )
- .debtorAccountNumber("987654321")
- .debtorName("National Phonograph Company")
- .debtorRoutingNumber("101050001")
- .reason(
- Transaction.Source
- .InboundRealTimePaymentsTransferDecline
- .Reason
- .ACCOUNT_NUMBER_DISABLED
- )
- .remittanceInformation("Invoice 29582")
- .transactionIdentification(
- "20220501234567891T1BSLZO01745013025"
- )
- .transferId(
- "inbound_real_time_payments_transfer_63hlz498vcxg644hcrzr"
- )
- .build()
- )
.inboundWireReversal(
Transaction.Source.InboundWireReversal.builder()
.amount(12345L)
@@ -1659,32 +1630,6 @@ internal class TransactionListPageResponseTest {
)
.build()
)
- .inboundRealTimePaymentsTransferDecline(
- Transaction.Source.InboundRealTimePaymentsTransferDecline.builder()
- .amount(100L)
- .creditorName("Ian Crease")
- .currency(
- Transaction.Source.InboundRealTimePaymentsTransferDecline
- .Currency
- .USD
- )
- .debtorAccountNumber("987654321")
- .debtorName("National Phonograph Company")
- .debtorRoutingNumber("101050001")
- .reason(
- Transaction.Source.InboundRealTimePaymentsTransferDecline
- .Reason
- .ACCOUNT_NUMBER_DISABLED
- )
- .remittanceInformation("Invoice 29582")
- .transactionIdentification(
- "20220501234567891T1BSLZO01745013025"
- )
- .transferId(
- "inbound_real_time_payments_transfer_63hlz498vcxg644hcrzr"
- )
- .build()
- )
.inboundWireReversal(
Transaction.Source.InboundWireReversal.builder()
.amount(12345L)
@@ -2564,35 +2509,6 @@ internal class TransactionListPageResponseTest {
)
.build()
)
- .inboundRealTimePaymentsTransferDecline(
- Transaction.Source.InboundRealTimePaymentsTransferDecline
- .builder()
- .amount(100L)
- .creditorName("Ian Crease")
- .currency(
- Transaction.Source
- .InboundRealTimePaymentsTransferDecline
- .Currency
- .USD
- )
- .debtorAccountNumber("987654321")
- .debtorName("National Phonograph Company")
- .debtorRoutingNumber("101050001")
- .reason(
- Transaction.Source
- .InboundRealTimePaymentsTransferDecline
- .Reason
- .ACCOUNT_NUMBER_DISABLED
- )
- .remittanceInformation("Invoice 29582")
- .transactionIdentification(
- "20220501234567891T1BSLZO01745013025"
- )
- .transferId(
- "inbound_real_time_payments_transfer_63hlz498vcxg644hcrzr"
- )
- .build()
- )
.inboundWireReversal(
Transaction.Source.InboundWireReversal.builder()
.amount(12345L)
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 fb8393fa6..86984f3f6 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
@@ -711,29 +711,6 @@ internal class TransactionTest {
)
.build()
)
- .inboundRealTimePaymentsTransferDecline(
- Transaction.Source.InboundRealTimePaymentsTransferDecline.builder()
- .amount(100L)
- .creditorName("Ian Crease")
- .currency(
- Transaction.Source.InboundRealTimePaymentsTransferDecline
- .Currency
- .USD
- )
- .debtorAccountNumber("987654321")
- .debtorName("National Phonograph Company")
- .debtorRoutingNumber("101050001")
- .reason(
- Transaction.Source.InboundRealTimePaymentsTransferDecline.Reason
- .ACCOUNT_NUMBER_DISABLED
- )
- .remittanceInformation("Invoice 29582")
- .transactionIdentification("20220501234567891T1BSLZO01745013025")
- .transferId(
- "inbound_real_time_payments_transfer_63hlz498vcxg644hcrzr"
- )
- .build()
- )
.inboundWireReversal(
Transaction.Source.InboundWireReversal.builder()
.amount(12345L)
@@ -1492,26 +1469,6 @@ internal class TransactionTest {
.transferId("inbound_real_time_payments_transfer_63hlz498vcxg644hcrzr")
.build()
)
- .inboundRealTimePaymentsTransferDecline(
- Transaction.Source.InboundRealTimePaymentsTransferDecline.builder()
- .amount(100L)
- .creditorName("Ian Crease")
- .currency(
- Transaction.Source.InboundRealTimePaymentsTransferDecline.Currency
- .USD
- )
- .debtorAccountNumber("987654321")
- .debtorName("National Phonograph Company")
- .debtorRoutingNumber("101050001")
- .reason(
- Transaction.Source.InboundRealTimePaymentsTransferDecline.Reason
- .ACCOUNT_NUMBER_DISABLED
- )
- .remittanceInformation("Invoice 29582")
- .transactionIdentification("20220501234567891T1BSLZO01745013025")
- .transferId("inbound_real_time_payments_transfer_63hlz498vcxg644hcrzr")
- .build()
- )
.inboundWireReversal(
Transaction.Source.InboundWireReversal.builder()
.amount(12345L)
@@ -2313,29 +2270,6 @@ internal class TransactionTest {
)
.build()
)
- .inboundRealTimePaymentsTransferDecline(
- Transaction.Source.InboundRealTimePaymentsTransferDecline.builder()
- .amount(100L)
- .creditorName("Ian Crease")
- .currency(
- Transaction.Source.InboundRealTimePaymentsTransferDecline
- .Currency
- .USD
- )
- .debtorAccountNumber("987654321")
- .debtorName("National Phonograph Company")
- .debtorRoutingNumber("101050001")
- .reason(
- Transaction.Source.InboundRealTimePaymentsTransferDecline.Reason
- .ACCOUNT_NUMBER_DISABLED
- )
- .remittanceInformation("Invoice 29582")
- .transactionIdentification("20220501234567891T1BSLZO01745013025")
- .transferId(
- "inbound_real_time_payments_transfer_63hlz498vcxg644hcrzr"
- )
- .build()
- )
.inboundWireReversal(
Transaction.Source.InboundWireReversal.builder()
.amount(12345L)
diff --git a/increase-java-proguard-test/build.gradle.kts b/increase-java-proguard-test/build.gradle.kts
index db55c66f9..24920e6e3 100644
--- a/increase-java-proguard-test/build.gradle.kts
+++ b/increase-java-proguard-test/build.gradle.kts
@@ -37,8 +37,6 @@ val proguardJar by tasks.registering(proguard.gradle.ProGuardTask::class) {
outjars(proguardJarPath)
printmapping("${layout.buildDirectory.get()}/proguard-mapping.txt")
- dontwarn()
-
val javaHome = System.getProperty("java.home")
if (System.getProperty("java.version").startsWith("1.")) {
// Before Java 9, the runtime classes were packaged in a single jar file.
diff --git a/increase-java-proguard-test/test.pro b/increase-java-proguard-test/test.pro
index 00aadf0fd..c5d4515d5 100644
--- a/increase-java-proguard-test/test.pro
+++ b/increase-java-proguard-test/test.pro
@@ -5,4 +5,5 @@
-keep class org.junit.** { *; }
# Many warnings don't apply for our testing purposes.
+-dontnote
-dontwarn
\ No newline at end of file