diff --git a/.release-please-manifest.json b/.release-please-manifest.json
index 028c6e3fc..7915eb1e2 100644
--- a/.release-please-manifest.json
+++ b/.release-please-manifest.json
@@ -1,3 +1,3 @@
{
- ".": "0.302.0"
+ ".": "0.303.0"
}
\ No newline at end of file
diff --git a/.stats.yml b/.stats.yml
index cb84ec279..c5bae0923 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 216
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-a98d22578526265c9d1ef5ee69db277ab4e3548d5f12ab740eabc7babd33ba1c.yml
-openapi_spec_hash: eefa018725a526a04f4fda690fedf0ec
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-1c5db818b8692ac57a83f3785c2f0a1d1ea95b9ed35fd4632619947448c22526.yml
+openapi_spec_hash: 0b2954fbe726a422219f22f5cddda6d6
config_hash: 632b628b59d8f0b717153b3d8133f6cb
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 49112dbf1..603811842 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,13 @@
# Changelog
+## 0.303.0 (2025-08-27)
+
+Full Changelog: [v0.302.0...v0.303.0](https://github.com/Increase/increase-java/compare/v0.302.0...v0.303.0)
+
+### Features
+
+* **api:** api update ([7427bb7](https://github.com/Increase/increase-java/commit/7427bb7899231f81e123cf2c19154aa8e46fe41e))
+
## 0.302.0 (2025-08-27)
Full Changelog: [v0.301.0...v0.302.0](https://github.com/Increase/increase-java/compare/v0.301.0...v0.302.0)
diff --git a/README.md b/README.md
index c01f27e05..be5ec1121 100644
--- a/README.md
+++ b/README.md
@@ -2,8 +2,8 @@
-[](https://central.sonatype.com/artifact/com.increase.api/increase-java/0.302.0)
-[](https://javadoc.io/doc/com.increase.api/increase-java/0.302.0)
+[](https://central.sonatype.com/artifact/com.increase.api/increase-java/0.303.0)
+[](https://javadoc.io/doc/com.increase.api/increase-java/0.303.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.302.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.303.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.302.0")
+implementation("com.increase.api:increase-java:0.303.0")
```
### Maven
@@ -33,7 +33,7 @@ implementation("com.increase.api:increase-java:0.302.0")
com.increase.api
increase-java
- 0.302.0
+ 0.303.0
```
diff --git a/build.gradle.kts b/build.gradle.kts
index 58095247c..5f71d5ce8 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -8,7 +8,7 @@ repositories {
allprojects {
group = "com.increase.api"
- version = "0.302.0" // x-release-please-version
+ version = "0.303.0" // x-release-please-version
}
subprojects {
diff --git a/increase-java-core/src/main/kotlin/com/increase/api/models/accounts/Account.kt b/increase-java-core/src/main/kotlin/com/increase/api/models/accounts/Account.kt
index 66543ae9a..5ae2fe353 100644
--- a/increase-java-core/src/main/kotlin/com/increase/api/models/accounts/Account.kt
+++ b/increase-java-core/src/main/kotlin/com/increase/api/models/accounts/Account.kt
@@ -110,6 +110,7 @@ private constructor(
/**
* The account revenue rate currently being earned on the account, as a string containing a
* decimal number. For example, a 1% account revenue rate would be represented as "0.01".
+ * Account revenue is a type of non-interest income accrued on the account.
*
* @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if the
* server responded with an unexpected value).
@@ -463,6 +464,7 @@ private constructor(
/**
* The account revenue rate currently being earned on the account, as a string containing a
* decimal number. For example, a 1% account revenue rate would be represented as "0.01".
+ * Account revenue is a type of non-interest income accrued on the account.
*/
fun accountRevenueRate(accountRevenueRate: String?) =
accountRevenueRate(JsonField.ofNullable(accountRevenueRate))
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 edcca70fe..ddec652e5 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
@@ -868,6 +868,7 @@ private constructor(
*/
class Source
private constructor(
+ private val accountRevenuePayment: JsonField,
private val accountTransferIntention: JsonField,
private val achTransferIntention: JsonField,
private val achTransferRejection: JsonField,
@@ -909,6 +910,9 @@ private constructor(
@JsonCreator
private constructor(
+ @JsonProperty("account_revenue_payment")
+ @ExcludeMissing
+ accountRevenuePayment: JsonField = JsonMissing.of(),
@JsonProperty("account_transfer_intention")
@ExcludeMissing
accountTransferIntention: JsonField = JsonMissing.of(),
@@ -1013,6 +1017,7 @@ private constructor(
@ExcludeMissing
wireTransferIntention: JsonField = JsonMissing.of(),
) : this(
+ accountRevenuePayment,
accountTransferIntention,
achTransferIntention,
achTransferRejection,
@@ -1049,6 +1054,18 @@ private constructor(
mutableMapOf(),
)
+ /**
+ * An Account Revenue Payment object. This field will be present in the JSON response if and
+ * only if `category` is equal to `account_revenue_payment`. A Account Revenue Payment
+ * represents a payment made to an account from the bank. Account revenue is a type of
+ * non-interest income.
+ *
+ * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if
+ * the server responded with an unexpected value).
+ */
+ fun accountRevenuePayment(): Optional =
+ accountRevenuePayment.getOptional("account_revenue_payment")
+
/**
* An Account Transfer Intention object. This field will be present in the JSON response if
* and only if `category` is equal to `account_transfer_intention`. Two Account Transfer
@@ -1433,6 +1450,16 @@ private constructor(
fun wireTransferIntention(): Optional =
wireTransferIntention.getOptional("wire_transfer_intention")
+ /**
+ * Returns the raw JSON value of [accountRevenuePayment].
+ *
+ * Unlike [accountRevenuePayment], this method doesn't throw if the JSON field has an
+ * unexpected type.
+ */
+ @JsonProperty("account_revenue_payment")
+ @ExcludeMissing
+ fun _accountRevenuePayment(): JsonField = accountRevenuePayment
+
/**
* Returns the raw JSON value of [accountTransferIntention].
*
@@ -1775,6 +1802,7 @@ private constructor(
*
* The following fields are required:
* ```java
+ * .accountRevenuePayment()
* .accountTransferIntention()
* .achTransferIntention()
* .achTransferRejection()
@@ -1816,6 +1844,7 @@ private constructor(
/** A builder for [Source]. */
class Builder internal constructor() {
+ private var accountRevenuePayment: JsonField? = null
private var accountTransferIntention: JsonField? = null
private var achTransferIntention: JsonField? = null
private var achTransferRejection: JsonField? = null
@@ -1861,6 +1890,7 @@ private constructor(
@JvmSynthetic
internal fun from(source: Source) = apply {
+ accountRevenuePayment = source.accountRevenuePayment
accountTransferIntention = source.accountTransferIntention
achTransferIntention = source.achTransferIntention
achTransferRejection = source.achTransferRejection
@@ -1899,6 +1929,34 @@ private constructor(
additionalProperties = source.additionalProperties.toMutableMap()
}
+ /**
+ * An Account Revenue Payment object. This field will be present in the JSON response if
+ * and only if `category` is equal to `account_revenue_payment`. A Account Revenue
+ * Payment represents a payment made to an account from the bank. Account revenue is a
+ * type of non-interest income.
+ */
+ fun accountRevenuePayment(accountRevenuePayment: AccountRevenuePayment?) =
+ accountRevenuePayment(JsonField.ofNullable(accountRevenuePayment))
+
+ /**
+ * Alias for calling [Builder.accountRevenuePayment] with
+ * `accountRevenuePayment.orElse(null)`.
+ */
+ fun accountRevenuePayment(accountRevenuePayment: Optional) =
+ accountRevenuePayment(accountRevenuePayment.getOrNull())
+
+ /**
+ * Sets [Builder.accountRevenuePayment] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.accountRevenuePayment] with a well-typed
+ * [AccountRevenuePayment] value instead. This method is primarily for setting the field
+ * to an undocumented or not yet supported value.
+ */
+ fun accountRevenuePayment(accountRevenuePayment: JsonField) =
+ apply {
+ this.accountRevenuePayment = accountRevenuePayment
+ }
+
/**
* An Account Transfer Intention object. This field will be present in the JSON response
* if and only if `category` is equal to `account_transfer_intention`. Two Account
@@ -2805,6 +2863,7 @@ private constructor(
*
* The following fields are required:
* ```java
+ * .accountRevenuePayment()
* .accountTransferIntention()
* .achTransferIntention()
* .achTransferRejection()
@@ -2844,6 +2903,7 @@ private constructor(
*/
fun build(): Source =
Source(
+ checkRequired("accountRevenuePayment", accountRevenuePayment),
checkRequired("accountTransferIntention", accountTransferIntention),
checkRequired("achTransferIntention", achTransferIntention),
checkRequired("achTransferRejection", achTransferRejection),
@@ -2900,6 +2960,7 @@ private constructor(
return@apply
}
+ accountRevenuePayment().ifPresent { it.validate() }
accountTransferIntention().ifPresent { it.validate() }
achTransferIntention().ifPresent { it.validate() }
achTransferRejection().ifPresent { it.validate() }
@@ -2951,7 +3012,8 @@ private constructor(
*/
@JvmSynthetic
internal fun validity(): Int =
- (accountTransferIntention.asKnown().getOrNull()?.validity() ?: 0) +
+ (accountRevenuePayment.asKnown().getOrNull()?.validity() ?: 0) +
+ (accountTransferIntention.asKnown().getOrNull()?.validity() ?: 0) +
(achTransferIntention.asKnown().getOrNull()?.validity() ?: 0) +
(achTransferRejection.asKnown().getOrNull()?.validity() ?: 0) +
(achTransferReturn.asKnown().getOrNull()?.validity() ?: 0) +
@@ -2985,6 +3047,279 @@ private constructor(
(swiftTransferReturn.asKnown().getOrNull()?.validity() ?: 0) +
(wireTransferIntention.asKnown().getOrNull()?.validity() ?: 0)
+ /**
+ * An Account Revenue Payment object. This field will be present in the JSON response if and
+ * only if `category` is equal to `account_revenue_payment`. A Account Revenue Payment
+ * represents a payment made to an account from the bank. Account revenue is a type of
+ * non-interest income.
+ */
+ class AccountRevenuePayment
+ private constructor(
+ private val accruedOnAccountId: JsonField,
+ private val periodEnd: JsonField,
+ private val periodStart: JsonField,
+ private val additionalProperties: MutableMap,
+ ) {
+
+ @JsonCreator
+ private constructor(
+ @JsonProperty("accrued_on_account_id")
+ @ExcludeMissing
+ accruedOnAccountId: JsonField = JsonMissing.of(),
+ @JsonProperty("period_end")
+ @ExcludeMissing
+ periodEnd: JsonField = JsonMissing.of(),
+ @JsonProperty("period_start")
+ @ExcludeMissing
+ periodStart: JsonField = JsonMissing.of(),
+ ) : this(accruedOnAccountId, periodEnd, periodStart, mutableMapOf())
+
+ /**
+ * The account on which the account revenue was accrued.
+ *
+ * @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 accruedOnAccountId(): String =
+ accruedOnAccountId.getRequired("accrued_on_account_id")
+
+ /**
+ * The end of the period for which this transaction paid account revenue.
+ *
+ * @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 periodEnd(): OffsetDateTime = periodEnd.getRequired("period_end")
+
+ /**
+ * The start of the period for which this transaction paid account revenue.
+ *
+ * @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 periodStart(): OffsetDateTime = periodStart.getRequired("period_start")
+
+ /**
+ * Returns the raw JSON value of [accruedOnAccountId].
+ *
+ * Unlike [accruedOnAccountId], this method doesn't throw if the JSON field has an
+ * unexpected type.
+ */
+ @JsonProperty("accrued_on_account_id")
+ @ExcludeMissing
+ fun _accruedOnAccountId(): JsonField = accruedOnAccountId
+
+ /**
+ * Returns the raw JSON value of [periodEnd].
+ *
+ * Unlike [periodEnd], this method doesn't throw if the JSON field has an unexpected
+ * type.
+ */
+ @JsonProperty("period_end")
+ @ExcludeMissing
+ fun _periodEnd(): JsonField = periodEnd
+
+ /**
+ * Returns the raw JSON value of [periodStart].
+ *
+ * Unlike [periodStart], this method doesn't throw if the JSON field has an unexpected
+ * type.
+ */
+ @JsonProperty("period_start")
+ @ExcludeMissing
+ fun _periodStart(): JsonField = periodStart
+
+ @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
+ * [AccountRevenuePayment].
+ *
+ * The following fields are required:
+ * ```java
+ * .accruedOnAccountId()
+ * .periodEnd()
+ * .periodStart()
+ * ```
+ */
+ @JvmStatic fun builder() = Builder()
+ }
+
+ /** A builder for [AccountRevenuePayment]. */
+ class Builder internal constructor() {
+
+ private var accruedOnAccountId: JsonField? = null
+ private var periodEnd: JsonField? = null
+ private var periodStart: JsonField? = null
+ private var additionalProperties: MutableMap = mutableMapOf()
+
+ @JvmSynthetic
+ internal fun from(accountRevenuePayment: AccountRevenuePayment) = apply {
+ accruedOnAccountId = accountRevenuePayment.accruedOnAccountId
+ periodEnd = accountRevenuePayment.periodEnd
+ periodStart = accountRevenuePayment.periodStart
+ additionalProperties = accountRevenuePayment.additionalProperties.toMutableMap()
+ }
+
+ /** The account on which the account revenue was accrued. */
+ fun accruedOnAccountId(accruedOnAccountId: String) =
+ accruedOnAccountId(JsonField.of(accruedOnAccountId))
+
+ /**
+ * Sets [Builder.accruedOnAccountId] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.accruedOnAccountId] with a well-typed [String]
+ * value instead. This method is primarily for setting the field to an undocumented
+ * or not yet supported value.
+ */
+ fun accruedOnAccountId(accruedOnAccountId: JsonField) = apply {
+ this.accruedOnAccountId = accruedOnAccountId
+ }
+
+ /** The end of the period for which this transaction paid account revenue. */
+ fun periodEnd(periodEnd: OffsetDateTime) = periodEnd(JsonField.of(periodEnd))
+
+ /**
+ * Sets [Builder.periodEnd] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.periodEnd] with a well-typed [OffsetDateTime]
+ * value instead. This method is primarily for setting the field to an undocumented
+ * or not yet supported value.
+ */
+ fun periodEnd(periodEnd: JsonField) = apply {
+ this.periodEnd = periodEnd
+ }
+
+ /** The start of the period for which this transaction paid account revenue. */
+ fun periodStart(periodStart: OffsetDateTime) =
+ periodStart(JsonField.of(periodStart))
+
+ /**
+ * Sets [Builder.periodStart] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.periodStart] with a well-typed [OffsetDateTime]
+ * value instead. This method is primarily for setting the field to an undocumented
+ * or not yet supported value.
+ */
+ fun periodStart(periodStart: JsonField) = apply {
+ this.periodStart = periodStart
+ }
+
+ 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 [AccountRevenuePayment].
+ *
+ * Further updates to this [Builder] will not mutate the returned instance.
+ *
+ * The following fields are required:
+ * ```java
+ * .accruedOnAccountId()
+ * .periodEnd()
+ * .periodStart()
+ * ```
+ *
+ * @throws IllegalStateException if any required field is unset.
+ */
+ fun build(): AccountRevenuePayment =
+ AccountRevenuePayment(
+ checkRequired("accruedOnAccountId", accruedOnAccountId),
+ checkRequired("periodEnd", periodEnd),
+ checkRequired("periodStart", periodStart),
+ additionalProperties.toMutableMap(),
+ )
+ }
+
+ private var validated: Boolean = false
+
+ fun validate(): AccountRevenuePayment = apply {
+ if (validated) {
+ return@apply
+ }
+
+ accruedOnAccountId()
+ periodEnd()
+ periodStart()
+ 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 (accruedOnAccountId.asKnown().isPresent) 1 else 0) +
+ (if (periodEnd.asKnown().isPresent) 1 else 0) +
+ (if (periodStart.asKnown().isPresent) 1 else 0)
+
+ override fun equals(other: Any?): Boolean {
+ if (this === other) {
+ return true
+ }
+
+ return other is AccountRevenuePayment &&
+ accruedOnAccountId == other.accruedOnAccountId &&
+ periodEnd == other.periodEnd &&
+ periodStart == other.periodStart &&
+ additionalProperties == other.additionalProperties
+ }
+
+ private val hashCode: Int by lazy {
+ Objects.hash(accruedOnAccountId, periodEnd, periodStart, additionalProperties)
+ }
+
+ override fun hashCode(): Int = hashCode
+
+ override fun toString() =
+ "AccountRevenuePayment{accruedOnAccountId=$accruedOnAccountId, periodEnd=$periodEnd, periodStart=$periodStart, additionalProperties=$additionalProperties}"
+ }
+
/**
* An Account Transfer Intention object. This field will be present in the JSON response if
* and only if `category` is equal to `account_transfer_intention`. Two Account Transfer
@@ -28162,6 +28497,12 @@ private constructor(
*/
@JvmField val CARD_PUSH_TRANSFER_ACCEPTANCE = of("card_push_transfer_acceptance")
+ /**
+ * Account Revenue Payment: details will be under the `account_revenue_payment`
+ * object.
+ */
+ @JvmField val ACCOUNT_REVENUE_PAYMENT = of("account_revenue_payment")
+
/** The Transaction was made for an undocumented or deprecated reason. */
@JvmField val OTHER = of("other")
@@ -28294,6 +28635,11 @@ private constructor(
* `card_push_transfer_acceptance` object.
*/
CARD_PUSH_TRANSFER_ACCEPTANCE,
+ /**
+ * Account Revenue Payment: details will be under the `account_revenue_payment`
+ * object.
+ */
+ ACCOUNT_REVENUE_PAYMENT,
/** The Transaction was made for an undocumented or deprecated reason. */
OTHER,
}
@@ -28432,6 +28778,11 @@ private constructor(
* `card_push_transfer_acceptance` object.
*/
CARD_PUSH_TRANSFER_ACCEPTANCE,
+ /**
+ * Account Revenue Payment: details will be under the `account_revenue_payment`
+ * object.
+ */
+ ACCOUNT_REVENUE_PAYMENT,
/** The Transaction was made for an undocumented or deprecated reason. */
OTHER,
/**
@@ -28484,6 +28835,7 @@ private constructor(
SWIFT_TRANSFER_INTENTION -> Value.SWIFT_TRANSFER_INTENTION
SWIFT_TRANSFER_RETURN -> Value.SWIFT_TRANSFER_RETURN
CARD_PUSH_TRANSFER_ACCEPTANCE -> Value.CARD_PUSH_TRANSFER_ACCEPTANCE
+ ACCOUNT_REVENUE_PAYMENT -> Value.ACCOUNT_REVENUE_PAYMENT
OTHER -> Value.OTHER
else -> Value._UNKNOWN
}
@@ -28534,6 +28886,7 @@ private constructor(
SWIFT_TRANSFER_INTENTION -> Known.SWIFT_TRANSFER_INTENTION
SWIFT_TRANSFER_RETURN -> Known.SWIFT_TRANSFER_RETURN
CARD_PUSH_TRANSFER_ACCEPTANCE -> Known.CARD_PUSH_TRANSFER_ACCEPTANCE
+ ACCOUNT_REVENUE_PAYMENT -> Known.ACCOUNT_REVENUE_PAYMENT
OTHER -> Known.OTHER
else -> throw IncreaseInvalidDataException("Unknown Category: $value")
}
@@ -39112,6 +39465,7 @@ private constructor(
}
return other is Source &&
+ accountRevenuePayment == other.accountRevenuePayment &&
accountTransferIntention == other.accountTransferIntention &&
achTransferIntention == other.achTransferIntention &&
achTransferRejection == other.achTransferRejection &&
@@ -39152,6 +39506,7 @@ private constructor(
private val hashCode: Int by lazy {
Objects.hash(
+ accountRevenuePayment,
accountTransferIntention,
achTransferIntention,
achTransferRejection,
@@ -39192,7 +39547,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, 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, 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 fc725ffdd..920afe2f2 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
@@ -582,6 +582,12 @@ private constructor(
*/
@JvmField val CARD_PUSH_TRANSFER_ACCEPTANCE = of("card_push_transfer_acceptance")
+ /**
+ * Account Revenue Payment: details will be under the `account_revenue_payment`
+ * object.
+ */
+ @JvmField val ACCOUNT_REVENUE_PAYMENT = of("account_revenue_payment")
+
/** The Transaction was made for an undocumented or deprecated reason. */
@JvmField val OTHER = of("other")
@@ -714,6 +720,11 @@ private constructor(
* `card_push_transfer_acceptance` object.
*/
CARD_PUSH_TRANSFER_ACCEPTANCE,
+ /**
+ * Account Revenue Payment: details will be under the `account_revenue_payment`
+ * object.
+ */
+ ACCOUNT_REVENUE_PAYMENT,
/** The Transaction was made for an undocumented or deprecated reason. */
OTHER,
}
@@ -852,6 +863,11 @@ private constructor(
* `card_push_transfer_acceptance` object.
*/
CARD_PUSH_TRANSFER_ACCEPTANCE,
+ /**
+ * Account Revenue Payment: details will be under the `account_revenue_payment`
+ * object.
+ */
+ ACCOUNT_REVENUE_PAYMENT,
/** The Transaction was made for an undocumented or deprecated reason. */
OTHER,
/** An enum member indicating that [In] was instantiated with an unknown value. */
@@ -902,6 +918,7 @@ private constructor(
SWIFT_TRANSFER_INTENTION -> Value.SWIFT_TRANSFER_INTENTION
SWIFT_TRANSFER_RETURN -> Value.SWIFT_TRANSFER_RETURN
CARD_PUSH_TRANSFER_ACCEPTANCE -> Value.CARD_PUSH_TRANSFER_ACCEPTANCE
+ ACCOUNT_REVENUE_PAYMENT -> Value.ACCOUNT_REVENUE_PAYMENT
OTHER -> Value.OTHER
else -> Value._UNKNOWN
}
@@ -952,6 +969,7 @@ private constructor(
SWIFT_TRANSFER_INTENTION -> Known.SWIFT_TRANSFER_INTENTION
SWIFT_TRANSFER_RETURN -> Known.SWIFT_TRANSFER_RETURN
CARD_PUSH_TRANSFER_ACCEPTANCE -> Known.CARD_PUSH_TRANSFER_ACCEPTANCE
+ ACCOUNT_REVENUE_PAYMENT -> Known.ACCOUNT_REVENUE_PAYMENT
OTHER -> Known.OTHER
else -> throw IncreaseInvalidDataException("Unknown In: $value")
}
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 56f1aeaaa..e425abe0d 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
@@ -28,6 +28,13 @@ internal class TransactionListPageResponseTest {
.routeType(Transaction.RouteType.ACCOUNT_NUMBER)
.source(
Transaction.Source.builder()
+ .accountRevenuePayment(
+ Transaction.Source.AccountRevenuePayment.builder()
+ .accruedOnAccountId("account_in71c4amph0vgo2qllky")
+ .periodEnd(OffsetDateTime.parse("2025-08-31T23:59:59Z"))
+ .periodStart(OffsetDateTime.parse("2025-08-01T00:00:00Z"))
+ .build()
+ )
.accountTransferIntention(
Transaction.Source.AccountTransferIntention.builder()
.amount(100L)
@@ -901,6 +908,13 @@ internal class TransactionListPageResponseTest {
.routeType(Transaction.RouteType.ACCOUNT_NUMBER)
.source(
Transaction.Source.builder()
+ .accountRevenuePayment(
+ Transaction.Source.AccountRevenuePayment.builder()
+ .accruedOnAccountId("account_in71c4amph0vgo2qllky")
+ .periodEnd(OffsetDateTime.parse("2025-08-31T23:59:59Z"))
+ .periodStart(OffsetDateTime.parse("2025-08-01T00:00:00Z"))
+ .build()
+ )
.accountTransferIntention(
Transaction.Source.AccountTransferIntention.builder()
.amount(100L)
@@ -1741,6 +1755,13 @@ internal class TransactionListPageResponseTest {
.routeType(Transaction.RouteType.ACCOUNT_NUMBER)
.source(
Transaction.Source.builder()
+ .accountRevenuePayment(
+ Transaction.Source.AccountRevenuePayment.builder()
+ .accruedOnAccountId("account_in71c4amph0vgo2qllky")
+ .periodEnd(OffsetDateTime.parse("2025-08-31T23:59:59Z"))
+ .periodStart(OffsetDateTime.parse("2025-08-01T00:00:00Z"))
+ .build()
+ )
.accountTransferIntention(
Transaction.Source.AccountTransferIntention.builder()
.amount(100L)
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 6c5b39ce6..0228d4d10 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
@@ -26,6 +26,13 @@ internal class TransactionTest {
.routeType(Transaction.RouteType.ACCOUNT_NUMBER)
.source(
Transaction.Source.builder()
+ .accountRevenuePayment(
+ Transaction.Source.AccountRevenuePayment.builder()
+ .accruedOnAccountId("account_in71c4amph0vgo2qllky")
+ .periodEnd(OffsetDateTime.parse("2025-08-31T23:59:59Z"))
+ .periodStart(OffsetDateTime.parse("2025-08-01T00:00:00Z"))
+ .build()
+ )
.accountTransferIntention(
Transaction.Source.AccountTransferIntention.builder()
.amount(100L)
@@ -818,6 +825,13 @@ internal class TransactionTest {
assertThat(transaction.source())
.isEqualTo(
Transaction.Source.builder()
+ .accountRevenuePayment(
+ Transaction.Source.AccountRevenuePayment.builder()
+ .accruedOnAccountId("account_in71c4amph0vgo2qllky")
+ .periodEnd(OffsetDateTime.parse("2025-08-31T23:59:59Z"))
+ .periodStart(OffsetDateTime.parse("2025-08-01T00:00:00Z"))
+ .build()
+ )
.accountTransferIntention(
Transaction.Source.AccountTransferIntention.builder()
.amount(100L)
@@ -1573,6 +1587,13 @@ internal class TransactionTest {
.routeType(Transaction.RouteType.ACCOUNT_NUMBER)
.source(
Transaction.Source.builder()
+ .accountRevenuePayment(
+ Transaction.Source.AccountRevenuePayment.builder()
+ .accruedOnAccountId("account_in71c4amph0vgo2qllky")
+ .periodEnd(OffsetDateTime.parse("2025-08-31T23:59:59Z"))
+ .periodStart(OffsetDateTime.parse("2025-08-01T00:00:00Z"))
+ .build()
+ )
.accountTransferIntention(
Transaction.Source.AccountTransferIntention.builder()
.amount(100L)