diff --git a/.release-please-manifest.json b/.release-please-manifest.json
index ca3555a72..26817e153 100644
--- a/.release-please-manifest.json
+++ b/.release-please-manifest.json
@@ -1,3 +1,3 @@
{
- ".": "0.477.0"
+ ".": "0.478.0"
}
\ No newline at end of file
diff --git a/.stats.yml b/.stats.yml
index 62f093dcf..c0c45d4b9 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 236
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-d5ad75c7a80acd1cb3ff0483fa0b5b2eb9d73287f107f53a8fb3a3a0b6a32ed8.yml
-openapi_spec_hash: da73faf476df3eddcf0ac51c38dd1b17
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-81da26cfd6540bc5195c268095b26df132373e932997f224d19247a36e1a1183.yml
+openapi_spec_hash: 7b9bbc35378f2fc47629810923bd0017
config_hash: 25d7d7aa4882db6189b4b53e8e249e80
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 06991a27f..7af4fe7d9 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,13 @@
# Changelog
+## 0.478.0 (2026-03-16)
+
+Full Changelog: [v0.477.0...v0.478.0](https://github.com/Increase/increase-java/compare/v0.477.0...v0.478.0)
+
+### Features
+
+* **api:** api update ([4ae014d](https://github.com/Increase/increase-java/commit/4ae014d059b04d0fef7b1b89c771b426af9d0c78))
+
## 0.477.0 (2026-03-13)
Full Changelog: [v0.476.0...v0.477.0](https://github.com/Increase/increase-java/compare/v0.476.0...v0.477.0)
diff --git a/README.md b/README.md
index f83b37804..8ab5b30d4 100644
--- a/README.md
+++ b/README.md
@@ -2,8 +2,8 @@
-[](https://central.sonatype.com/artifact/com.increase.api/increase-java/0.477.0)
-[](https://javadoc.io/doc/com.increase.api/increase-java/0.477.0)
+[](https://central.sonatype.com/artifact/com.increase.api/increase-java/0.478.0)
+[](https://javadoc.io/doc/com.increase.api/increase-java/0.478.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.477.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.478.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.477.0")
+implementation("com.increase.api:increase-java:0.478.0")
```
### Maven
@@ -33,7 +33,7 @@ implementation("com.increase.api:increase-java:0.477.0")
com.increase.api
increase-java
- 0.477.0
+ 0.478.0
```
diff --git a/build.gradle.kts b/build.gradle.kts
index 504f75b23..57e04fbde 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -8,7 +8,7 @@ repositories {
allprojects {
group = "com.increase.api"
- version = "0.477.0" // x-release-please-version
+ version = "0.478.0" // x-release-please-version
}
subprojects {
diff --git a/increase-java-core/src/main/kotlin/com/increase/api/models/cardpushtransfers/CardPushTransfer.kt b/increase-java-core/src/main/kotlin/com/increase/api/models/cardpushtransfers/CardPushTransfer.kt
index f3d724509..5c17c134c 100644
--- a/increase-java-core/src/main/kotlin/com/increase/api/models/cardpushtransfers/CardPushTransfer.kt
+++ b/increase-java-core/src/main/kotlin/com/increase/api/models/cardpushtransfers/CardPushTransfer.kt
@@ -42,6 +42,7 @@ private constructor(
private val merchantState: JsonField,
private val presentmentAmount: JsonField,
private val recipientName: JsonField,
+ private val route: JsonField,
private val senderAddressCity: JsonField,
private val senderAddressLine1: JsonField,
private val senderAddressPostalCode: JsonField,
@@ -105,6 +106,7 @@ private constructor(
@JsonProperty("recipient_name")
@ExcludeMissing
recipientName: JsonField = JsonMissing.of(),
+ @JsonProperty("route") @ExcludeMissing route: JsonField = JsonMissing.of(),
@JsonProperty("sender_address_city")
@ExcludeMissing
senderAddressCity: JsonField = JsonMissing.of(),
@@ -148,6 +150,7 @@ private constructor(
merchantState,
presentmentAmount,
recipientName,
+ route,
senderAddressCity,
senderAddressLine1,
senderAddressPostalCode,
@@ -328,6 +331,14 @@ private constructor(
*/
fun recipientName(): String = recipientName.getRequired("recipient_name")
+ /**
+ * The card network route used for 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 route(): Route = route.getRequired("route")
+
/**
* The city of the sender.
*
@@ -571,6 +582,13 @@ private constructor(
@ExcludeMissing
fun _recipientName(): JsonField = recipientName
+ /**
+ * Returns the raw JSON value of [route].
+ *
+ * Unlike [route], this method doesn't throw if the JSON field has an unexpected type.
+ */
+ @JsonProperty("route") @ExcludeMissing fun _route(): JsonField = route
+
/**
* Returns the raw JSON value of [senderAddressCity].
*
@@ -689,6 +707,7 @@ private constructor(
* .merchantState()
* .presentmentAmount()
* .recipientName()
+ * .route()
* .senderAddressCity()
* .senderAddressLine1()
* .senderAddressPostalCode()
@@ -725,6 +744,7 @@ private constructor(
private var merchantState: JsonField? = null
private var presentmentAmount: JsonField? = null
private var recipientName: JsonField? = null
+ private var route: JsonField? = null
private var senderAddressCity: JsonField? = null
private var senderAddressLine1: JsonField? = null
private var senderAddressPostalCode: JsonField? = null
@@ -757,6 +777,7 @@ private constructor(
merchantState = cardPushTransfer.merchantState
presentmentAmount = cardPushTransfer.presentmentAmount
recipientName = cardPushTransfer.recipientName
+ route = cardPushTransfer.route
senderAddressCity = cardPushTransfer.senderAddressCity
senderAddressLine1 = cardPushTransfer.senderAddressLine1
senderAddressPostalCode = cardPushTransfer.senderAddressPostalCode
@@ -1085,6 +1106,17 @@ private constructor(
this.recipientName = recipientName
}
+ /** The card network route used for the transfer. */
+ fun route(route: Route) = route(JsonField.of(route))
+
+ /**
+ * Sets [Builder.route] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.route] with a well-typed [Route] value instead. This
+ * method is primarily for setting the field to an undocumented or not yet supported value.
+ */
+ fun route(route: JsonField) = apply { this.route = route }
+
/** The city of the sender. */
fun senderAddressCity(senderAddressCity: String) =
senderAddressCity(JsonField.of(senderAddressCity))
@@ -1260,6 +1292,7 @@ private constructor(
* .merchantState()
* .presentmentAmount()
* .recipientName()
+ * .route()
* .senderAddressCity()
* .senderAddressLine1()
* .senderAddressPostalCode()
@@ -1294,6 +1327,7 @@ private constructor(
checkRequired("merchantState", merchantState),
checkRequired("presentmentAmount", presentmentAmount),
checkRequired("recipientName", recipientName),
+ checkRequired("route", route),
checkRequired("senderAddressCity", senderAddressCity),
checkRequired("senderAddressLine1", senderAddressLine1),
checkRequired("senderAddressPostalCode", senderAddressPostalCode),
@@ -1333,6 +1367,7 @@ private constructor(
merchantState()
presentmentAmount().validate()
recipientName()
+ route().validate()
senderAddressCity()
senderAddressLine1()
senderAddressPostalCode()
@@ -1379,6 +1414,7 @@ private constructor(
(if (merchantState.asKnown().isPresent) 1 else 0) +
(presentmentAmount.asKnown().getOrNull()?.validity() ?: 0) +
(if (recipientName.asKnown().isPresent) 1 else 0) +
+ (route.asKnown().getOrNull()?.validity() ?: 0) +
(if (senderAddressCity.asKnown().isPresent) 1 else 0) +
(if (senderAddressLine1.asKnown().isPresent) 1 else 0) +
(if (senderAddressPostalCode.asKnown().isPresent) 1 else 0) +
@@ -6245,6 +6281,140 @@ private constructor(
"PresentmentAmount{currency=$currency, value=$value, additionalProperties=$additionalProperties}"
}
+ /** The card network route used for the transfer. */
+ class Route @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 {
+
+ /** Visa and Interlink */
+ @JvmField val VISA = of("visa")
+
+ /** Mastercard and Maestro */
+ @JvmField val MASTERCARD = of("mastercard")
+
+ @JvmStatic fun of(value: String) = Route(JsonField.of(value))
+ }
+
+ /** An enum containing [Route]'s known values. */
+ enum class Known {
+ /** Visa and Interlink */
+ VISA,
+ /** Mastercard and Maestro */
+ MASTERCARD,
+ }
+
+ /**
+ * An enum containing [Route]'s known values, as well as an [_UNKNOWN] member.
+ *
+ * An instance of [Route] 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 {
+ /** Visa and Interlink */
+ VISA,
+ /** Mastercard and Maestro */
+ MASTERCARD,
+ /** An enum member indicating that [Route] 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) {
+ VISA -> Value.VISA
+ MASTERCARD -> Value.MASTERCARD
+ 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) {
+ VISA -> Known.VISA
+ MASTERCARD -> Known.MASTERCARD
+ else -> throw IncreaseInvalidDataException("Unknown Route: $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(): Route = 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 Route && value == other.value
+ }
+
+ override fun hashCode() = value.hashCode()
+
+ override fun toString() = value.toString()
+ }
+
/** The lifecycle status of the transfer. */
class Status @JsonCreator private constructor(private val value: JsonField) : Enum {
@@ -6911,6 +7081,7 @@ private constructor(
merchantState == other.merchantState &&
presentmentAmount == other.presentmentAmount &&
recipientName == other.recipientName &&
+ route == other.route &&
senderAddressCity == other.senderAddressCity &&
senderAddressLine1 == other.senderAddressLine1 &&
senderAddressPostalCode == other.senderAddressPostalCode &&
@@ -6944,6 +7115,7 @@ private constructor(
merchantState,
presentmentAmount,
recipientName,
+ route,
senderAddressCity,
senderAddressLine1,
senderAddressPostalCode,
@@ -6960,5 +7132,5 @@ private constructor(
override fun hashCode(): Int = hashCode
override fun toString() =
- "CardPushTransfer{id=$id, acceptance=$acceptance, accountId=$accountId, approval=$approval, businessApplicationIdentifier=$businessApplicationIdentifier, cancellation=$cancellation, cardTokenId=$cardTokenId, createdAt=$createdAt, createdBy=$createdBy, decline=$decline, idempotencyKey=$idempotencyKey, merchantCategoryCode=$merchantCategoryCode, merchantCityName=$merchantCityName, merchantName=$merchantName, merchantNamePrefix=$merchantNamePrefix, merchantPostalCode=$merchantPostalCode, merchantState=$merchantState, presentmentAmount=$presentmentAmount, recipientName=$recipientName, senderAddressCity=$senderAddressCity, senderAddressLine1=$senderAddressLine1, senderAddressPostalCode=$senderAddressPostalCode, senderAddressState=$senderAddressState, senderName=$senderName, sourceAccountNumberId=$sourceAccountNumberId, status=$status, submission=$submission, type=$type, additionalProperties=$additionalProperties}"
+ "CardPushTransfer{id=$id, acceptance=$acceptance, accountId=$accountId, approval=$approval, businessApplicationIdentifier=$businessApplicationIdentifier, cancellation=$cancellation, cardTokenId=$cardTokenId, createdAt=$createdAt, createdBy=$createdBy, decline=$decline, idempotencyKey=$idempotencyKey, merchantCategoryCode=$merchantCategoryCode, merchantCityName=$merchantCityName, merchantName=$merchantName, merchantNamePrefix=$merchantNamePrefix, merchantPostalCode=$merchantPostalCode, merchantState=$merchantState, presentmentAmount=$presentmentAmount, recipientName=$recipientName, route=$route, senderAddressCity=$senderAddressCity, senderAddressLine1=$senderAddressLine1, senderAddressPostalCode=$senderAddressPostalCode, senderAddressState=$senderAddressState, senderName=$senderName, sourceAccountNumberId=$sourceAccountNumberId, status=$status, submission=$submission, type=$type, additionalProperties=$additionalProperties}"
}
diff --git a/increase-java-core/src/main/kotlin/com/increase/api/models/cardvalidations/CardValidation.kt b/increase-java-core/src/main/kotlin/com/increase/api/models/cardvalidations/CardValidation.kt
index e027899e6..df36f3d17 100644
--- a/increase-java-core/src/main/kotlin/com/increase/api/models/cardvalidations/CardValidation.kt
+++ b/increase-java-core/src/main/kotlin/com/increase/api/models/cardvalidations/CardValidation.kt
@@ -44,6 +44,7 @@ private constructor(
private val merchantName: JsonField,
private val merchantPostalCode: JsonField,
private val merchantState: JsonField,
+ private val route: JsonField,
private val status: JsonField,
private val submission: JsonField,
private val type: JsonField,
@@ -100,6 +101,7 @@ private constructor(
@JsonProperty("merchant_state")
@ExcludeMissing
merchantState: JsonField = JsonMissing.of(),
+ @JsonProperty("route") @ExcludeMissing route: JsonField = JsonMissing.of(),
@JsonProperty("status") @ExcludeMissing status: JsonField = JsonMissing.of(),
@JsonProperty("submission")
@ExcludeMissing
@@ -124,6 +126,7 @@ private constructor(
merchantName,
merchantPostalCode,
merchantState,
+ route,
status,
submission,
type,
@@ -284,6 +287,14 @@ private constructor(
*/
fun merchantState(): String = merchantState.getRequired("merchant_state")
+ /**
+ * The card network route used for the validation.
+ *
+ * @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 route(): Route = route.getRequired("route")
+
/**
* The lifecycle status of the validation.
*
@@ -472,6 +483,13 @@ private constructor(
@ExcludeMissing
fun _merchantState(): JsonField = merchantState
+ /**
+ * Returns the raw JSON value of [route].
+ *
+ * Unlike [route], this method doesn't throw if the JSON field has an unexpected type.
+ */
+ @JsonProperty("route") @ExcludeMissing fun _route(): JsonField = route
+
/**
* Returns the raw JSON value of [status].
*
@@ -532,6 +550,7 @@ private constructor(
* .merchantName()
* .merchantPostalCode()
* .merchantState()
+ * .route()
* .status()
* .submission()
* .type()
@@ -561,6 +580,7 @@ private constructor(
private var merchantName: JsonField? = null
private var merchantPostalCode: JsonField? = null
private var merchantState: JsonField? = null
+ private var route: JsonField? = null
private var status: JsonField? = null
private var submission: JsonField? = null
private var type: JsonField? = null
@@ -586,6 +606,7 @@ private constructor(
merchantName = cardValidation.merchantName
merchantPostalCode = cardValidation.merchantPostalCode
merchantState = cardValidation.merchantState
+ route = cardValidation.route
status = cardValidation.status
submission = cardValidation.submission
type = cardValidation.type
@@ -902,6 +923,17 @@ private constructor(
this.merchantState = merchantState
}
+ /** The card network route used for the validation. */
+ fun route(route: Route) = route(JsonField.of(route))
+
+ /**
+ * Sets [Builder.route] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.route] with a well-typed [Route] value instead. This
+ * method is primarily for setting the field to an undocumented or not yet supported value.
+ */
+ fun route(route: JsonField) = apply { this.route = route }
+
/** The lifecycle status of the validation. */
fun status(status: Status) = status(JsonField.of(status))
@@ -989,6 +1021,7 @@ private constructor(
* .merchantName()
* .merchantPostalCode()
* .merchantState()
+ * .route()
* .status()
* .submission()
* .type()
@@ -1016,6 +1049,7 @@ private constructor(
checkRequired("merchantName", merchantName),
checkRequired("merchantPostalCode", merchantPostalCode),
checkRequired("merchantState", merchantState),
+ checkRequired("route", route),
checkRequired("status", status),
checkRequired("submission", submission),
checkRequired("type", type),
@@ -1048,6 +1082,7 @@ private constructor(
merchantName()
merchantPostalCode()
merchantState()
+ route().validate()
status().validate()
submission().ifPresent { it.validate() }
type().validate()
@@ -1087,6 +1122,7 @@ private constructor(
(if (merchantName.asKnown().isPresent) 1 else 0) +
(if (merchantPostalCode.asKnown().isPresent) 1 else 0) +
(if (merchantState.asKnown().isPresent) 1 else 0) +
+ (route.asKnown().getOrNull()?.validity() ?: 0) +
(status.asKnown().getOrNull()?.validity() ?: 0) +
(submission.asKnown().getOrNull()?.validity() ?: 0) +
(type.asKnown().getOrNull()?.validity() ?: 0)
@@ -4676,6 +4712,140 @@ private constructor(
"Decline{declinedAt=$declinedAt, networkTransactionIdentifier=$networkTransactionIdentifier, reason=$reason, additionalProperties=$additionalProperties}"
}
+ /** The card network route used for the validation. */
+ class Route @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 {
+
+ /** Visa and Interlink */
+ @JvmField val VISA = of("visa")
+
+ /** Mastercard and Maestro */
+ @JvmField val MASTERCARD = of("mastercard")
+
+ @JvmStatic fun of(value: String) = Route(JsonField.of(value))
+ }
+
+ /** An enum containing [Route]'s known values. */
+ enum class Known {
+ /** Visa and Interlink */
+ VISA,
+ /** Mastercard and Maestro */
+ MASTERCARD,
+ }
+
+ /**
+ * An enum containing [Route]'s known values, as well as an [_UNKNOWN] member.
+ *
+ * An instance of [Route] 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 {
+ /** Visa and Interlink */
+ VISA,
+ /** Mastercard and Maestro */
+ MASTERCARD,
+ /** An enum member indicating that [Route] 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) {
+ VISA -> Value.VISA
+ MASTERCARD -> Value.MASTERCARD
+ 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) {
+ VISA -> Known.VISA
+ MASTERCARD -> Known.MASTERCARD
+ else -> throw IncreaseInvalidDataException("Unknown Route: $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(): Route = 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 Route && value == other.value
+ }
+
+ override fun hashCode() = value.hashCode()
+
+ override fun toString() = value.toString()
+ }
+
/** The lifecycle status of the validation. */
class Status @JsonCreator private constructor(private val value: JsonField) : Enum {
@@ -5262,6 +5432,7 @@ private constructor(
merchantName == other.merchantName &&
merchantPostalCode == other.merchantPostalCode &&
merchantState == other.merchantState &&
+ route == other.route &&
status == other.status &&
submission == other.submission &&
type == other.type &&
@@ -5288,6 +5459,7 @@ private constructor(
merchantName,
merchantPostalCode,
merchantState,
+ route,
status,
submission,
type,
@@ -5298,5 +5470,5 @@ private constructor(
override fun hashCode(): Int = hashCode
override fun toString() =
- "CardValidation{id=$id, acceptance=$acceptance, accountId=$accountId, cardTokenId=$cardTokenId, cardholderFirstName=$cardholderFirstName, cardholderLastName=$cardholderLastName, cardholderMiddleName=$cardholderMiddleName, cardholderPostalCode=$cardholderPostalCode, cardholderStreetAddress=$cardholderStreetAddress, createdAt=$createdAt, createdBy=$createdBy, decline=$decline, idempotencyKey=$idempotencyKey, merchantCategoryCode=$merchantCategoryCode, merchantCityName=$merchantCityName, merchantName=$merchantName, merchantPostalCode=$merchantPostalCode, merchantState=$merchantState, status=$status, submission=$submission, type=$type, additionalProperties=$additionalProperties}"
+ "CardValidation{id=$id, acceptance=$acceptance, accountId=$accountId, cardTokenId=$cardTokenId, cardholderFirstName=$cardholderFirstName, cardholderLastName=$cardholderLastName, cardholderMiddleName=$cardholderMiddleName, cardholderPostalCode=$cardholderPostalCode, cardholderStreetAddress=$cardholderStreetAddress, createdAt=$createdAt, createdBy=$createdBy, decline=$decline, idempotencyKey=$idempotencyKey, merchantCategoryCode=$merchantCategoryCode, merchantCityName=$merchantCityName, merchantName=$merchantName, merchantPostalCode=$merchantPostalCode, merchantState=$merchantState, route=$route, status=$status, submission=$submission, type=$type, additionalProperties=$additionalProperties}"
}
diff --git a/increase-java-core/src/test/kotlin/com/increase/api/models/cardpushtransfers/CardPushTransferListPageResponseTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/models/cardpushtransfers/CardPushTransferListPageResponseTest.kt
index 00e21677d..e96fcb92c 100644
--- a/increase-java-core/src/test/kotlin/com/increase/api/models/cardpushtransfers/CardPushTransferListPageResponseTest.kt
+++ b/increase-java-core/src/test/kotlin/com/increase/api/models/cardpushtransfers/CardPushTransferListPageResponseTest.kt
@@ -88,6 +88,7 @@ internal class CardPushTransferListPageResponseTest {
.build()
)
.recipientName("Ian Crease")
+ .route(CardPushTransfer.Route.VISA)
.senderAddressCity("New York")
.senderAddressLine1("33 Liberty Street")
.senderAddressPostalCode("10045")
@@ -184,6 +185,7 @@ internal class CardPushTransferListPageResponseTest {
.build()
)
.recipientName("Ian Crease")
+ .route(CardPushTransfer.Route.VISA)
.senderAddressCity("New York")
.senderAddressLine1("33 Liberty Street")
.senderAddressPostalCode("10045")
@@ -284,6 +286,7 @@ internal class CardPushTransferListPageResponseTest {
.build()
)
.recipientName("Ian Crease")
+ .route(CardPushTransfer.Route.VISA)
.senderAddressCity("New York")
.senderAddressLine1("33 Liberty Street")
.senderAddressPostalCode("10045")
diff --git a/increase-java-core/src/test/kotlin/com/increase/api/models/cardpushtransfers/CardPushTransferTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/models/cardpushtransfers/CardPushTransferTest.kt
index 433eaeb01..91e8dc4b1 100644
--- a/increase-java-core/src/test/kotlin/com/increase/api/models/cardpushtransfers/CardPushTransferTest.kt
+++ b/increase-java-core/src/test/kotlin/com/increase/api/models/cardpushtransfers/CardPushTransferTest.kt
@@ -85,6 +85,7 @@ internal class CardPushTransferTest {
.build()
)
.recipientName("Ian Crease")
+ .route(CardPushTransfer.Route.VISA)
.senderAddressCity("New York")
.senderAddressLine1("33 Liberty Street")
.senderAddressPostalCode("10045")
@@ -176,6 +177,7 @@ internal class CardPushTransferTest {
.build()
)
assertThat(cardPushTransfer.recipientName()).isEqualTo("Ian Crease")
+ assertThat(cardPushTransfer.route()).isEqualTo(CardPushTransfer.Route.VISA)
assertThat(cardPushTransfer.senderAddressCity()).isEqualTo("New York")
assertThat(cardPushTransfer.senderAddressLine1()).isEqualTo("33 Liberty Street")
assertThat(cardPushTransfer.senderAddressPostalCode()).isEqualTo("10045")
@@ -272,6 +274,7 @@ internal class CardPushTransferTest {
.build()
)
.recipientName("Ian Crease")
+ .route(CardPushTransfer.Route.VISA)
.senderAddressCity("New York")
.senderAddressLine1("33 Liberty Street")
.senderAddressPostalCode("10045")
diff --git a/increase-java-core/src/test/kotlin/com/increase/api/models/cardvalidations/CardValidationListPageResponseTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/models/cardvalidations/CardValidationListPageResponseTest.kt
index ce725745a..6415e477d 100644
--- a/increase-java-core/src/test/kotlin/com/increase/api/models/cardvalidations/CardValidationListPageResponseTest.kt
+++ b/increase-java-core/src/test/kotlin/com/increase/api/models/cardvalidations/CardValidationListPageResponseTest.kt
@@ -75,6 +75,7 @@ internal class CardValidationListPageResponseTest {
.merchantName("Acme Corp")
.merchantPostalCode("10045")
.merchantState("NY")
+ .route(CardValidation.Route.VISA)
.status(CardValidation.Status.PENDING_SUBMISSION)
.submission(
CardValidation.Submission.builder()
@@ -151,6 +152,7 @@ internal class CardValidationListPageResponseTest {
.merchantName("Acme Corp")
.merchantPostalCode("10045")
.merchantState("NY")
+ .route(CardValidation.Route.VISA)
.status(CardValidation.Status.PENDING_SUBMISSION)
.submission(
CardValidation.Submission.builder()
@@ -231,6 +233,7 @@ internal class CardValidationListPageResponseTest {
.merchantName("Acme Corp")
.merchantPostalCode("10045")
.merchantState("NY")
+ .route(CardValidation.Route.VISA)
.status(CardValidation.Status.PENDING_SUBMISSION)
.submission(
CardValidation.Submission.builder()
diff --git a/increase-java-core/src/test/kotlin/com/increase/api/models/cardvalidations/CardValidationTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/models/cardvalidations/CardValidationTest.kt
index e7f6ca293..27d3f8f22 100644
--- a/increase-java-core/src/test/kotlin/com/increase/api/models/cardvalidations/CardValidationTest.kt
+++ b/increase-java-core/src/test/kotlin/com/increase/api/models/cardvalidations/CardValidationTest.kt
@@ -70,6 +70,7 @@ internal class CardValidationTest {
.merchantName("Acme Corp")
.merchantPostalCode("10045")
.merchantState("NY")
+ .route(CardValidation.Route.VISA)
.status(CardValidation.Status.PENDING_SUBMISSION)
.submission(
CardValidation.Submission.builder()
@@ -134,6 +135,7 @@ internal class CardValidationTest {
assertThat(cardValidation.merchantName()).isEqualTo("Acme Corp")
assertThat(cardValidation.merchantPostalCode()).isEqualTo("10045")
assertThat(cardValidation.merchantState()).isEqualTo("NY")
+ assertThat(cardValidation.route()).isEqualTo(CardValidation.Route.VISA)
assertThat(cardValidation.status()).isEqualTo(CardValidation.Status.PENDING_SUBMISSION)
assertThat(cardValidation.submission())
.contains(
@@ -207,6 +209,7 @@ internal class CardValidationTest {
.merchantName("Acme Corp")
.merchantPostalCode("10045")
.merchantState("NY")
+ .route(CardValidation.Route.VISA)
.status(CardValidation.Status.PENDING_SUBMISSION)
.submission(
CardValidation.Submission.builder()