diff --git a/.release-please-manifest.json b/.release-please-manifest.json
index 362ffe9c1..561ef01a7 100644
--- a/.release-please-manifest.json
+++ b/.release-please-manifest.json
@@ -1,3 +1,3 @@
{
- ".": "0.492.0"
+ ".": "0.493.0"
}
\ No newline at end of file
diff --git a/.stats.yml b/.stats.yml
index 8967e15ae..c8871b7f0 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-297d19c04d7384ffc16c672182c0439c3880fc912fbabf20a378d38182cc7420.yml
-openapi_spec_hash: 02126c1ab3c22027a0f0aa1ce12cf7f6
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-6d31504be6985a7ded14abd0da36f4272e585f43332b4b844a6950c98ddcd525.yml
+openapi_spec_hash: f1a49121780ec8b6678b864ac9b1deca
config_hash: 0997ade8b52ec04e82d5b0c3b61bb51e
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 37571a16c..06178f679 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,14 @@
# Changelog
+## 0.493.0 (2026-03-24)
+
+Full Changelog: [v0.492.0...v0.493.0](https://github.com/Increase/increase-java/compare/v0.492.0...v0.493.0)
+
+### Features
+
+* **api:** api update ([89b641f](https://github.com/Increase/increase-java/commit/89b641f81b82d35357f87fcf6f3e0c6038d9be9c))
+* **api:** api update ([3d5666f](https://github.com/Increase/increase-java/commit/3d5666faeb22a5c76533a25ff86e9a1997078568))
+
## 0.492.0 (2026-03-24)
Full Changelog: [v0.491.0...v0.492.0](https://github.com/Increase/increase-java/compare/v0.491.0...v0.492.0)
diff --git a/README.md b/README.md
index 6d4bf2da5..92ddd5b9f 100644
--- a/README.md
+++ b/README.md
@@ -2,8 +2,8 @@
-[](https://central.sonatype.com/artifact/com.increase.api/increase-java/0.492.0)
-[](https://javadoc.io/doc/com.increase.api/increase-java/0.492.0)
+[](https://central.sonatype.com/artifact/com.increase.api/increase-java/0.493.0)
+[](https://javadoc.io/doc/com.increase.api/increase-java/0.493.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.492.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.493.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.492.0")
+implementation("com.increase.api:increase-java:0.493.0")
```
### Maven
@@ -33,7 +33,7 @@ implementation("com.increase.api:increase-java:0.492.0")
com.increase.api
increase-java
- 0.492.0
+ 0.493.0
```
diff --git a/build.gradle.kts b/build.gradle.kts
index 7a1e323ec..594ee5e4b 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -8,7 +8,7 @@ repositories {
allprojects {
group = "com.increase.api"
- version = "0.492.0" // x-release-please-version
+ version = "0.493.0" // x-release-please-version
}
subprojects {
diff --git a/increase-java-core/src/main/kotlin/com/increase/api/models/cardpushtransfers/CardPushTransferCreateParams.kt b/increase-java-core/src/main/kotlin/com/increase/api/models/cardpushtransfers/CardPushTransferCreateParams.kt
index e8bcac698..4ba6dacf4 100644
--- a/increase-java-core/src/main/kotlin/com/increase/api/models/cardpushtransfers/CardPushTransferCreateParams.kt
+++ b/increase-java-core/src/main/kotlin/com/increase/api/models/cardpushtransfers/CardPushTransferCreateParams.kt
@@ -167,6 +167,56 @@ private constructor(
*/
fun sourceAccountNumberId(): String = body.sourceAccountNumberId()
+ /**
+ * The legal business name of the merchant (generally your business) sending the transfer.
+ * Required if the card is issued in Canada.
+ *
+ * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if the
+ * server responded with an unexpected value).
+ */
+ fun merchantLegalBusinessName(): Optional = body.merchantLegalBusinessName()
+
+ /**
+ * The street address of the merchant (generally your business) sending the transfer. Required
+ * if the card is issued in Canada.
+ *
+ * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if the
+ * server responded with an unexpected value).
+ */
+ fun merchantStreetAddress(): Optional = body.merchantStreetAddress()
+
+ /**
+ * The city of the recipient. Required if the card is issued in Canada.
+ *
+ * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if the
+ * server responded with an unexpected value).
+ */
+ fun recipientAddressCity(): Optional = body.recipientAddressCity()
+
+ /**
+ * The first line of the recipient's address. Required if the card is issued in Canada.
+ *
+ * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if the
+ * server responded with an unexpected value).
+ */
+ fun recipientAddressLine1(): Optional = body.recipientAddressLine1()
+
+ /**
+ * The postal code of the recipient. Required if the card is issued in Canada.
+ *
+ * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if the
+ * server responded with an unexpected value).
+ */
+ fun recipientAddressPostalCode(): Optional = body.recipientAddressPostalCode()
+
+ /**
+ * The state or province of the recipient. Required if the card is issued in Canada.
+ *
+ * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if the
+ * server responded with an unexpected value).
+ */
+ fun recipientAddressState(): Optional = body.recipientAddressState()
+
/**
* Whether the transfer requires explicit approval via the dashboard or API.
*
@@ -299,6 +349,54 @@ private constructor(
*/
fun _sourceAccountNumberId(): JsonField = body._sourceAccountNumberId()
+ /**
+ * Returns the raw JSON value of [merchantLegalBusinessName].
+ *
+ * Unlike [merchantLegalBusinessName], this method doesn't throw if the JSON field has an
+ * unexpected type.
+ */
+ fun _merchantLegalBusinessName(): JsonField = body._merchantLegalBusinessName()
+
+ /**
+ * Returns the raw JSON value of [merchantStreetAddress].
+ *
+ * Unlike [merchantStreetAddress], this method doesn't throw if the JSON field has an unexpected
+ * type.
+ */
+ fun _merchantStreetAddress(): JsonField = body._merchantStreetAddress()
+
+ /**
+ * Returns the raw JSON value of [recipientAddressCity].
+ *
+ * Unlike [recipientAddressCity], this method doesn't throw if the JSON field has an unexpected
+ * type.
+ */
+ fun _recipientAddressCity(): JsonField = body._recipientAddressCity()
+
+ /**
+ * Returns the raw JSON value of [recipientAddressLine1].
+ *
+ * Unlike [recipientAddressLine1], this method doesn't throw if the JSON field has an unexpected
+ * type.
+ */
+ fun _recipientAddressLine1(): JsonField = body._recipientAddressLine1()
+
+ /**
+ * Returns the raw JSON value of [recipientAddressPostalCode].
+ *
+ * Unlike [recipientAddressPostalCode], this method doesn't throw if the JSON field has an
+ * unexpected type.
+ */
+ fun _recipientAddressPostalCode(): JsonField = body._recipientAddressPostalCode()
+
+ /**
+ * Returns the raw JSON value of [recipientAddressState].
+ *
+ * Unlike [recipientAddressState], this method doesn't throw if the JSON field has an unexpected
+ * type.
+ */
+ fun _recipientAddressState(): JsonField = body._recipientAddressState()
+
/**
* Returns the raw JSON value of [requireApproval].
*
@@ -637,6 +735,108 @@ private constructor(
body.sourceAccountNumberId(sourceAccountNumberId)
}
+ /**
+ * The legal business name of the merchant (generally your business) sending the transfer.
+ * Required if the card is issued in Canada.
+ */
+ fun merchantLegalBusinessName(merchantLegalBusinessName: String) = apply {
+ body.merchantLegalBusinessName(merchantLegalBusinessName)
+ }
+
+ /**
+ * Sets [Builder.merchantLegalBusinessName] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.merchantLegalBusinessName] with a well-typed [String]
+ * value instead. This method is primarily for setting the field to an undocumented or not
+ * yet supported value.
+ */
+ fun merchantLegalBusinessName(merchantLegalBusinessName: JsonField) = apply {
+ body.merchantLegalBusinessName(merchantLegalBusinessName)
+ }
+
+ /**
+ * The street address of the merchant (generally your business) sending the transfer.
+ * Required if the card is issued in Canada.
+ */
+ fun merchantStreetAddress(merchantStreetAddress: String) = apply {
+ body.merchantStreetAddress(merchantStreetAddress)
+ }
+
+ /**
+ * Sets [Builder.merchantStreetAddress] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.merchantStreetAddress] with a well-typed [String] value
+ * instead. This method is primarily for setting the field to an undocumented or not yet
+ * supported value.
+ */
+ fun merchantStreetAddress(merchantStreetAddress: JsonField) = apply {
+ body.merchantStreetAddress(merchantStreetAddress)
+ }
+
+ /** The city of the recipient. Required if the card is issued in Canada. */
+ fun recipientAddressCity(recipientAddressCity: String) = apply {
+ body.recipientAddressCity(recipientAddressCity)
+ }
+
+ /**
+ * Sets [Builder.recipientAddressCity] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.recipientAddressCity] with a well-typed [String] value
+ * instead. This method is primarily for setting the field to an undocumented or not yet
+ * supported value.
+ */
+ fun recipientAddressCity(recipientAddressCity: JsonField) = apply {
+ body.recipientAddressCity(recipientAddressCity)
+ }
+
+ /** The first line of the recipient's address. Required if the card is issued in Canada. */
+ fun recipientAddressLine1(recipientAddressLine1: String) = apply {
+ body.recipientAddressLine1(recipientAddressLine1)
+ }
+
+ /**
+ * Sets [Builder.recipientAddressLine1] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.recipientAddressLine1] with a well-typed [String] value
+ * instead. This method is primarily for setting the field to an undocumented or not yet
+ * supported value.
+ */
+ fun recipientAddressLine1(recipientAddressLine1: JsonField) = apply {
+ body.recipientAddressLine1(recipientAddressLine1)
+ }
+
+ /** The postal code of the recipient. Required if the card is issued in Canada. */
+ fun recipientAddressPostalCode(recipientAddressPostalCode: String) = apply {
+ body.recipientAddressPostalCode(recipientAddressPostalCode)
+ }
+
+ /**
+ * Sets [Builder.recipientAddressPostalCode] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.recipientAddressPostalCode] with a well-typed [String]
+ * value instead. This method is primarily for setting the field to an undocumented or not
+ * yet supported value.
+ */
+ fun recipientAddressPostalCode(recipientAddressPostalCode: JsonField) = apply {
+ body.recipientAddressPostalCode(recipientAddressPostalCode)
+ }
+
+ /** The state or province of the recipient. Required if the card is issued in Canada. */
+ fun recipientAddressState(recipientAddressState: String) = apply {
+ body.recipientAddressState(recipientAddressState)
+ }
+
+ /**
+ * Sets [Builder.recipientAddressState] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.recipientAddressState] with a well-typed [String] value
+ * instead. This method is primarily for setting the field to an undocumented or not yet
+ * supported value.
+ */
+ fun recipientAddressState(recipientAddressState: JsonField) = apply {
+ body.recipientAddressState(recipientAddressState)
+ }
+
/** Whether the transfer requires explicit approval via the dashboard or API. */
fun requireApproval(requireApproval: Boolean) = apply {
body.requireApproval(requireApproval)
@@ -830,6 +1030,12 @@ private constructor(
private val senderAddressState: JsonField,
private val senderName: JsonField,
private val sourceAccountNumberId: JsonField,
+ private val merchantLegalBusinessName: JsonField,
+ private val merchantStreetAddress: JsonField,
+ private val recipientAddressCity: JsonField,
+ private val recipientAddressLine1: JsonField,
+ private val recipientAddressPostalCode: JsonField,
+ private val recipientAddressState: JsonField,
private val requireApproval: JsonField,
private val additionalProperties: MutableMap,
) {
@@ -885,6 +1091,24 @@ private constructor(
@JsonProperty("source_account_number_id")
@ExcludeMissing
sourceAccountNumberId: JsonField = JsonMissing.of(),
+ @JsonProperty("merchant_legal_business_name")
+ @ExcludeMissing
+ merchantLegalBusinessName: JsonField = JsonMissing.of(),
+ @JsonProperty("merchant_street_address")
+ @ExcludeMissing
+ merchantStreetAddress: JsonField = JsonMissing.of(),
+ @JsonProperty("recipient_address_city")
+ @ExcludeMissing
+ recipientAddressCity: JsonField = JsonMissing.of(),
+ @JsonProperty("recipient_address_line1")
+ @ExcludeMissing
+ recipientAddressLine1: JsonField = JsonMissing.of(),
+ @JsonProperty("recipient_address_postal_code")
+ @ExcludeMissing
+ recipientAddressPostalCode: JsonField = JsonMissing.of(),
+ @JsonProperty("recipient_address_state")
+ @ExcludeMissing
+ recipientAddressState: JsonField = JsonMissing.of(),
@JsonProperty("require_approval")
@ExcludeMissing
requireApproval: JsonField = JsonMissing.of(),
@@ -905,6 +1129,12 @@ private constructor(
senderAddressState,
senderName,
sourceAccountNumberId,
+ merchantLegalBusinessName,
+ merchantStreetAddress,
+ recipientAddressCity,
+ recipientAddressLine1,
+ recipientAddressPostalCode,
+ recipientAddressState,
requireApproval,
mutableMapOf(),
)
@@ -1053,6 +1283,62 @@ private constructor(
fun sourceAccountNumberId(): String =
sourceAccountNumberId.getRequired("source_account_number_id")
+ /**
+ * The legal business name of the merchant (generally your business) sending the transfer.
+ * Required if the card is issued in Canada.
+ *
+ * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if
+ * the server responded with an unexpected value).
+ */
+ fun merchantLegalBusinessName(): Optional =
+ merchantLegalBusinessName.getOptional("merchant_legal_business_name")
+
+ /**
+ * The street address of the merchant (generally your business) sending the transfer.
+ * Required if the card is issued in Canada.
+ *
+ * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if
+ * the server responded with an unexpected value).
+ */
+ fun merchantStreetAddress(): Optional =
+ merchantStreetAddress.getOptional("merchant_street_address")
+
+ /**
+ * The city of the recipient. Required if the card is issued in Canada.
+ *
+ * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if
+ * the server responded with an unexpected value).
+ */
+ fun recipientAddressCity(): Optional =
+ recipientAddressCity.getOptional("recipient_address_city")
+
+ /**
+ * The first line of the recipient's address. Required if the card is issued in Canada.
+ *
+ * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if
+ * the server responded with an unexpected value).
+ */
+ fun recipientAddressLine1(): Optional =
+ recipientAddressLine1.getOptional("recipient_address_line1")
+
+ /**
+ * The postal code of the recipient. Required if the card is issued in Canada.
+ *
+ * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if
+ * the server responded with an unexpected value).
+ */
+ fun recipientAddressPostalCode(): Optional =
+ recipientAddressPostalCode.getOptional("recipient_address_postal_code")
+
+ /**
+ * The state or province of the recipient. Required if the card is issued in Canada.
+ *
+ * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if
+ * the server responded with an unexpected value).
+ */
+ fun recipientAddressState(): Optional =
+ recipientAddressState.getOptional("recipient_address_state")
+
/**
* Whether the transfer requires explicit approval via the dashboard or API.
*
@@ -1220,6 +1506,66 @@ private constructor(
@ExcludeMissing
fun _sourceAccountNumberId(): JsonField = sourceAccountNumberId
+ /**
+ * Returns the raw JSON value of [merchantLegalBusinessName].
+ *
+ * Unlike [merchantLegalBusinessName], this method doesn't throw if the JSON field has an
+ * unexpected type.
+ */
+ @JsonProperty("merchant_legal_business_name")
+ @ExcludeMissing
+ fun _merchantLegalBusinessName(): JsonField = merchantLegalBusinessName
+
+ /**
+ * Returns the raw JSON value of [merchantStreetAddress].
+ *
+ * Unlike [merchantStreetAddress], this method doesn't throw if the JSON field has an
+ * unexpected type.
+ */
+ @JsonProperty("merchant_street_address")
+ @ExcludeMissing
+ fun _merchantStreetAddress(): JsonField = merchantStreetAddress
+
+ /**
+ * Returns the raw JSON value of [recipientAddressCity].
+ *
+ * Unlike [recipientAddressCity], this method doesn't throw if the JSON field has an
+ * unexpected type.
+ */
+ @JsonProperty("recipient_address_city")
+ @ExcludeMissing
+ fun _recipientAddressCity(): JsonField = recipientAddressCity
+
+ /**
+ * Returns the raw JSON value of [recipientAddressLine1].
+ *
+ * Unlike [recipientAddressLine1], this method doesn't throw if the JSON field has an
+ * unexpected type.
+ */
+ @JsonProperty("recipient_address_line1")
+ @ExcludeMissing
+ fun _recipientAddressLine1(): JsonField = recipientAddressLine1
+
+ /**
+ * Returns the raw JSON value of [recipientAddressPostalCode].
+ *
+ * Unlike [recipientAddressPostalCode], this method doesn't throw if the JSON field has an
+ * unexpected type.
+ */
+ @JsonProperty("recipient_address_postal_code")
+ @ExcludeMissing
+ fun _recipientAddressPostalCode(): JsonField = recipientAddressPostalCode
+
+ /**
+ * Returns the raw JSON value of [recipientAddressState].
+ *
+ * Unlike [recipientAddressState], this method doesn't throw if the JSON field has an
+ * unexpected type.
+ */
+ @JsonProperty("recipient_address_state")
+ @ExcludeMissing
+ fun _recipientAddressState(): JsonField = recipientAddressState
+
/**
* Returns the raw JSON value of [requireApproval].
*
@@ -1290,6 +1636,12 @@ private constructor(
private var senderAddressState: JsonField? = null
private var senderName: JsonField? = null
private var sourceAccountNumberId: JsonField? = null
+ private var merchantLegalBusinessName: JsonField = JsonMissing.of()
+ private var merchantStreetAddress: JsonField = JsonMissing.of()
+ private var recipientAddressCity: JsonField = JsonMissing.of()
+ private var recipientAddressLine1: JsonField = JsonMissing.of()
+ private var recipientAddressPostalCode: JsonField = JsonMissing.of()
+ private var recipientAddressState: JsonField = JsonMissing.of()
private var requireApproval: JsonField = JsonMissing.of()
private var additionalProperties: MutableMap = mutableMapOf()
@@ -1311,6 +1663,12 @@ private constructor(
senderAddressState = body.senderAddressState
senderName = body.senderName
sourceAccountNumberId = body.sourceAccountNumberId
+ merchantLegalBusinessName = body.merchantLegalBusinessName
+ merchantStreetAddress = body.merchantStreetAddress
+ recipientAddressCity = body.recipientAddressCity
+ recipientAddressLine1 = body.recipientAddressLine1
+ recipientAddressPostalCode = body.recipientAddressPostalCode
+ recipientAddressState = body.recipientAddressState
requireApproval = body.requireApproval
additionalProperties = body.additionalProperties.toMutableMap()
}
@@ -1572,6 +1930,104 @@ private constructor(
this.sourceAccountNumberId = sourceAccountNumberId
}
+ /**
+ * The legal business name of the merchant (generally your business) sending the
+ * transfer. Required if the card is issued in Canada.
+ */
+ fun merchantLegalBusinessName(merchantLegalBusinessName: String) =
+ merchantLegalBusinessName(JsonField.of(merchantLegalBusinessName))
+
+ /**
+ * Sets [Builder.merchantLegalBusinessName] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.merchantLegalBusinessName] with a well-typed
+ * [String] value instead. This method is primarily for setting the field to an
+ * undocumented or not yet supported value.
+ */
+ fun merchantLegalBusinessName(merchantLegalBusinessName: JsonField) = apply {
+ this.merchantLegalBusinessName = merchantLegalBusinessName
+ }
+
+ /**
+ * The street address of the merchant (generally your business) sending the transfer.
+ * Required if the card is issued in Canada.
+ */
+ fun merchantStreetAddress(merchantStreetAddress: String) =
+ merchantStreetAddress(JsonField.of(merchantStreetAddress))
+
+ /**
+ * Sets [Builder.merchantStreetAddress] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.merchantStreetAddress] with a well-typed [String]
+ * value instead. This method is primarily for setting the field to an undocumented or
+ * not yet supported value.
+ */
+ fun merchantStreetAddress(merchantStreetAddress: JsonField) = apply {
+ this.merchantStreetAddress = merchantStreetAddress
+ }
+
+ /** The city of the recipient. Required if the card is issued in Canada. */
+ fun recipientAddressCity(recipientAddressCity: String) =
+ recipientAddressCity(JsonField.of(recipientAddressCity))
+
+ /**
+ * Sets [Builder.recipientAddressCity] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.recipientAddressCity] with a well-typed [String]
+ * value instead. This method is primarily for setting the field to an undocumented or
+ * not yet supported value.
+ */
+ fun recipientAddressCity(recipientAddressCity: JsonField) = apply {
+ this.recipientAddressCity = recipientAddressCity
+ }
+
+ /**
+ * The first line of the recipient's address. Required if the card is issued in Canada.
+ */
+ fun recipientAddressLine1(recipientAddressLine1: String) =
+ recipientAddressLine1(JsonField.of(recipientAddressLine1))
+
+ /**
+ * Sets [Builder.recipientAddressLine1] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.recipientAddressLine1] with a well-typed [String]
+ * value instead. This method is primarily for setting the field to an undocumented or
+ * not yet supported value.
+ */
+ fun recipientAddressLine1(recipientAddressLine1: JsonField) = apply {
+ this.recipientAddressLine1 = recipientAddressLine1
+ }
+
+ /** The postal code of the recipient. Required if the card is issued in Canada. */
+ fun recipientAddressPostalCode(recipientAddressPostalCode: String) =
+ recipientAddressPostalCode(JsonField.of(recipientAddressPostalCode))
+
+ /**
+ * Sets [Builder.recipientAddressPostalCode] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.recipientAddressPostalCode] with a well-typed
+ * [String] value instead. This method is primarily for setting the field to an
+ * undocumented or not yet supported value.
+ */
+ fun recipientAddressPostalCode(recipientAddressPostalCode: JsonField) = apply {
+ this.recipientAddressPostalCode = recipientAddressPostalCode
+ }
+
+ /** The state or province of the recipient. Required if the card is issued in Canada. */
+ fun recipientAddressState(recipientAddressState: String) =
+ recipientAddressState(JsonField.of(recipientAddressState))
+
+ /**
+ * Sets [Builder.recipientAddressState] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.recipientAddressState] with a well-typed [String]
+ * value instead. This method is primarily for setting the field to an undocumented or
+ * not yet supported value.
+ */
+ fun recipientAddressState(recipientAddressState: JsonField) = apply {
+ this.recipientAddressState = recipientAddressState
+ }
+
/** Whether the transfer requires explicit approval via the dashboard or API. */
fun requireApproval(requireApproval: Boolean) =
requireApproval(JsonField.of(requireApproval))
@@ -1651,6 +2107,12 @@ private constructor(
checkRequired("senderAddressState", senderAddressState),
checkRequired("senderName", senderName),
checkRequired("sourceAccountNumberId", sourceAccountNumberId),
+ merchantLegalBusinessName,
+ merchantStreetAddress,
+ recipientAddressCity,
+ recipientAddressLine1,
+ recipientAddressPostalCode,
+ recipientAddressState,
requireApproval,
additionalProperties.toMutableMap(),
)
@@ -1679,6 +2141,12 @@ private constructor(
senderAddressState()
senderName()
sourceAccountNumberId()
+ merchantLegalBusinessName()
+ merchantStreetAddress()
+ recipientAddressCity()
+ recipientAddressLine1()
+ recipientAddressPostalCode()
+ recipientAddressState()
requireApproval()
validated = true
}
@@ -1715,6 +2183,12 @@ private constructor(
(if (senderAddressState.asKnown().isPresent) 1 else 0) +
(if (senderName.asKnown().isPresent) 1 else 0) +
(if (sourceAccountNumberId.asKnown().isPresent) 1 else 0) +
+ (if (merchantLegalBusinessName.asKnown().isPresent) 1 else 0) +
+ (if (merchantStreetAddress.asKnown().isPresent) 1 else 0) +
+ (if (recipientAddressCity.asKnown().isPresent) 1 else 0) +
+ (if (recipientAddressLine1.asKnown().isPresent) 1 else 0) +
+ (if (recipientAddressPostalCode.asKnown().isPresent) 1 else 0) +
+ (if (recipientAddressState.asKnown().isPresent) 1 else 0) +
(if (requireApproval.asKnown().isPresent) 1 else 0)
override fun equals(other: Any?): Boolean {
@@ -1739,6 +2213,12 @@ private constructor(
senderAddressState == other.senderAddressState &&
senderName == other.senderName &&
sourceAccountNumberId == other.sourceAccountNumberId &&
+ merchantLegalBusinessName == other.merchantLegalBusinessName &&
+ merchantStreetAddress == other.merchantStreetAddress &&
+ recipientAddressCity == other.recipientAddressCity &&
+ recipientAddressLine1 == other.recipientAddressLine1 &&
+ recipientAddressPostalCode == other.recipientAddressPostalCode &&
+ recipientAddressState == other.recipientAddressState &&
requireApproval == other.requireApproval &&
additionalProperties == other.additionalProperties
}
@@ -1761,6 +2241,12 @@ private constructor(
senderAddressState,
senderName,
sourceAccountNumberId,
+ merchantLegalBusinessName,
+ merchantStreetAddress,
+ recipientAddressCity,
+ recipientAddressLine1,
+ recipientAddressPostalCode,
+ recipientAddressState,
requireApproval,
additionalProperties,
)
@@ -1769,7 +2255,7 @@ private constructor(
override fun hashCode(): Int = hashCode
override fun toString() =
- "Body{businessApplicationIdentifier=$businessApplicationIdentifier, cardTokenId=$cardTokenId, 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, requireApproval=$requireApproval, additionalProperties=$additionalProperties}"
+ "Body{businessApplicationIdentifier=$businessApplicationIdentifier, cardTokenId=$cardTokenId, 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, merchantLegalBusinessName=$merchantLegalBusinessName, merchantStreetAddress=$merchantStreetAddress, recipientAddressCity=$recipientAddressCity, recipientAddressLine1=$recipientAddressLine1, recipientAddressPostalCode=$recipientAddressPostalCode, recipientAddressState=$recipientAddressState, requireApproval=$requireApproval, additionalProperties=$additionalProperties}"
}
/**
diff --git a/increase-java-core/src/main/kotlin/com/increase/api/models/checkdeposits/CheckDeposit.kt b/increase-java-core/src/main/kotlin/com/increase/api/models/checkdeposits/CheckDeposit.kt
index 92f853b8f..275227e09 100644
--- a/increase-java-core/src/main/kotlin/com/increase/api/models/checkdeposits/CheckDeposit.kt
+++ b/increase-java-core/src/main/kotlin/com/increase/api/models/checkdeposits/CheckDeposit.kt
@@ -1909,18 +1909,6 @@ private constructor(
companion object {
- /**
- * The return was initiated too late and the receiving institution has responded
- * with a Late Return Claim.
- */
- @JvmField val LATE_RETURN = of("late_return")
-
- /**
- * The check was deposited to the wrong payee and the depositing institution has
- * reimbursed the funds with a Wrong Payee Credit.
- */
- @JvmField val WRONG_PAYEE_CREDIT = of("wrong_payee_credit")
-
/**
* The check was deposited with a different amount than what was written on the
* check.
@@ -1941,16 +1929,6 @@ private constructor(
/** An enum containing [Reason]'s known values. */
enum class Known {
- /**
- * The return was initiated too late and the receiving institution has responded
- * with a Late Return Claim.
- */
- LATE_RETURN,
- /**
- * The check was deposited to the wrong payee and the depositing institution has
- * reimbursed the funds with a Wrong Payee Credit.
- */
- WRONG_PAYEE_CREDIT,
/**
* The check was deposited with a different amount than what was written on the
* check.
@@ -1975,16 +1953,6 @@ private constructor(
* - It was constructed with an arbitrary value using the [of] method.
*/
enum class Value {
- /**
- * The return was initiated too late and the receiving institution has responded
- * with a Late Return Claim.
- */
- LATE_RETURN,
- /**
- * The check was deposited to the wrong payee and the depositing institution has
- * reimbursed the funds with a Wrong Payee Credit.
- */
- WRONG_PAYEE_CREDIT,
/**
* The check was deposited with a different amount than what was written on the
* check.
@@ -2012,8 +1980,6 @@ private constructor(
*/
fun value(): Value =
when (this) {
- LATE_RETURN -> Value.LATE_RETURN
- WRONG_PAYEE_CREDIT -> Value.WRONG_PAYEE_CREDIT
ADJUSTED_AMOUNT -> Value.ADJUSTED_AMOUNT
NON_CONFORMING_ITEM -> Value.NON_CONFORMING_ITEM
PAID -> Value.PAID
@@ -2031,8 +1997,6 @@ private constructor(
*/
fun known(): Known =
when (this) {
- LATE_RETURN -> Known.LATE_RETURN
- WRONG_PAYEE_CREDIT -> Known.WRONG_PAYEE_CREDIT
ADJUSTED_AMOUNT -> Known.ADJUSTED_AMOUNT
NON_CONFORMING_ITEM -> Known.NON_CONFORMING_ITEM
PAID -> Known.PAID
diff --git a/increase-java-core/src/main/kotlin/com/increase/api/models/inboundcheckdeposits/InboundCheckDeposit.kt b/increase-java-core/src/main/kotlin/com/increase/api/models/inboundcheckdeposits/InboundCheckDeposit.kt
index 22dc23034..65ea5f695 100644
--- a/increase-java-core/src/main/kotlin/com/increase/api/models/inboundcheckdeposits/InboundCheckDeposit.kt
+++ b/increase-java-core/src/main/kotlin/com/increase/api/models/inboundcheckdeposits/InboundCheckDeposit.kt
@@ -1358,21 +1358,6 @@ private constructor(
*/
@JvmField val WRONG_PAYEE_CREDIT = of("wrong_payee_credit")
- /**
- * The check was deposited with a different amount than what was written on the
- * check.
- */
- @JvmField val ADJUSTED_AMOUNT = of("adjusted_amount")
-
- /**
- * The recipient was not able to process the check. This usually happens for e.g.,
- * low quality images.
- */
- @JvmField val NON_CONFORMING_ITEM = of("non_conforming_item")
-
- /** The check has already been deposited elsewhere and so this is a duplicate. */
- @JvmField val PAID = of("paid")
-
@JvmStatic fun of(value: String) = Reason(JsonField.of(value))
}
@@ -1388,18 +1373,6 @@ private constructor(
* reimbursed the funds with a Wrong Payee Credit.
*/
WRONG_PAYEE_CREDIT,
- /**
- * The check was deposited with a different amount than what was written on the
- * check.
- */
- ADJUSTED_AMOUNT,
- /**
- * The recipient was not able to process the check. This usually happens for e.g.,
- * low quality images.
- */
- NON_CONFORMING_ITEM,
- /** The check has already been deposited elsewhere and so this is a duplicate. */
- PAID,
}
/**
@@ -1422,18 +1395,6 @@ private constructor(
* reimbursed the funds with a Wrong Payee Credit.
*/
WRONG_PAYEE_CREDIT,
- /**
- * The check was deposited with a different amount than what was written on the
- * check.
- */
- ADJUSTED_AMOUNT,
- /**
- * The recipient was not able to process the check. This usually happens for e.g.,
- * low quality images.
- */
- NON_CONFORMING_ITEM,
- /** The check has already been deposited elsewhere and so this is a duplicate. */
- PAID,
/**
* An enum member indicating that [Reason] was instantiated with an unknown value.
*/
@@ -1451,9 +1412,6 @@ private constructor(
when (this) {
LATE_RETURN -> Value.LATE_RETURN
WRONG_PAYEE_CREDIT -> Value.WRONG_PAYEE_CREDIT
- ADJUSTED_AMOUNT -> Value.ADJUSTED_AMOUNT
- NON_CONFORMING_ITEM -> Value.NON_CONFORMING_ITEM
- PAID -> Value.PAID
else -> Value._UNKNOWN
}
@@ -1470,9 +1428,6 @@ private constructor(
when (this) {
LATE_RETURN -> Known.LATE_RETURN
WRONG_PAYEE_CREDIT -> Known.WRONG_PAYEE_CREDIT
- ADJUSTED_AMOUNT -> Known.ADJUSTED_AMOUNT
- NON_CONFORMING_ITEM -> Known.NON_CONFORMING_ITEM
- PAID -> Known.PAID
else -> throw IncreaseInvalidDataException("Unknown Reason: $value")
}
diff --git a/increase-java-core/src/test/kotlin/com/increase/api/models/cardpushtransfers/CardPushTransferCreateParamsTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/models/cardpushtransfers/CardPushTransferCreateParamsTest.kt
index 58b104fd4..f60e3ef9b 100644
--- a/increase-java-core/src/test/kotlin/com/increase/api/models/cardpushtransfers/CardPushTransferCreateParamsTest.kt
+++ b/increase-java-core/src/test/kotlin/com/increase/api/models/cardpushtransfers/CardPushTransferCreateParamsTest.kt
@@ -33,6 +33,12 @@ internal class CardPushTransferCreateParamsTest {
.senderAddressState("NY")
.senderName("Ian Crease")
.sourceAccountNumberId("account_number_v18nkfqm6afpsrvy82b2")
+ .merchantLegalBusinessName("x")
+ .merchantStreetAddress("x")
+ .recipientAddressCity("x")
+ .recipientAddressLine1("x")
+ .recipientAddressPostalCode("x")
+ .recipientAddressState("x")
.requireApproval(true)
.build()
}
@@ -64,6 +70,12 @@ internal class CardPushTransferCreateParamsTest {
.senderAddressState("NY")
.senderName("Ian Crease")
.sourceAccountNumberId("account_number_v18nkfqm6afpsrvy82b2")
+ .merchantLegalBusinessName("x")
+ .merchantStreetAddress("x")
+ .recipientAddressCity("x")
+ .recipientAddressLine1("x")
+ .recipientAddressPostalCode("x")
+ .recipientAddressState("x")
.requireApproval(true)
.build()
@@ -94,6 +106,12 @@ internal class CardPushTransferCreateParamsTest {
assertThat(body.senderAddressState()).isEqualTo("NY")
assertThat(body.senderName()).isEqualTo("Ian Crease")
assertThat(body.sourceAccountNumberId()).isEqualTo("account_number_v18nkfqm6afpsrvy82b2")
+ assertThat(body.merchantLegalBusinessName()).contains("x")
+ assertThat(body.merchantStreetAddress()).contains("x")
+ assertThat(body.recipientAddressCity()).contains("x")
+ assertThat(body.recipientAddressLine1()).contains("x")
+ assertThat(body.recipientAddressPostalCode()).contains("x")
+ assertThat(body.recipientAddressState()).contains("x")
assertThat(body.requireApproval()).contains(true)
}
diff --git a/increase-java-core/src/test/kotlin/com/increase/api/models/checkdeposits/CheckDepositListPageResponseTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/models/checkdeposits/CheckDepositListPageResponseTest.kt
index 5269c7686..14a8bee02 100644
--- a/increase-java-core/src/test/kotlin/com/increase/api/models/checkdeposits/CheckDepositListPageResponseTest.kt
+++ b/increase-java-core/src/test/kotlin/com/increase/api/models/checkdeposits/CheckDepositListPageResponseTest.kt
@@ -36,7 +36,7 @@ internal class CheckDepositListPageResponseTest {
CheckDeposit.DepositAdjustment.builder()
.adjustedAt(OffsetDateTime.parse("2020-01-31T23:59:59Z"))
.amount(1750L)
- .reason(CheckDeposit.DepositAdjustment.Reason.LATE_RETURN)
+ .reason(CheckDeposit.DepositAdjustment.Reason.ADJUSTED_AMOUNT)
.transactionId("transaction_uyrp7fld2ium70oa7oi")
.build()
)
@@ -120,7 +120,7 @@ internal class CheckDepositListPageResponseTest {
CheckDeposit.DepositAdjustment.builder()
.adjustedAt(OffsetDateTime.parse("2020-01-31T23:59:59Z"))
.amount(1750L)
- .reason(CheckDeposit.DepositAdjustment.Reason.LATE_RETURN)
+ .reason(CheckDeposit.DepositAdjustment.Reason.ADJUSTED_AMOUNT)
.transactionId("transaction_uyrp7fld2ium70oa7oi")
.build()
)
@@ -206,7 +206,7 @@ internal class CheckDepositListPageResponseTest {
CheckDeposit.DepositAdjustment.builder()
.adjustedAt(OffsetDateTime.parse("2020-01-31T23:59:59Z"))
.amount(1750L)
- .reason(CheckDeposit.DepositAdjustment.Reason.LATE_RETURN)
+ .reason(CheckDeposit.DepositAdjustment.Reason.ADJUSTED_AMOUNT)
.transactionId("transaction_uyrp7fld2ium70oa7oi")
.build()
)
diff --git a/increase-java-core/src/test/kotlin/com/increase/api/models/checkdeposits/CheckDepositTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/models/checkdeposits/CheckDepositTest.kt
index 4f05303e2..cd7cdad99 100644
--- a/increase-java-core/src/test/kotlin/com/increase/api/models/checkdeposits/CheckDepositTest.kt
+++ b/increase-java-core/src/test/kotlin/com/increase/api/models/checkdeposits/CheckDepositTest.kt
@@ -34,7 +34,7 @@ internal class CheckDepositTest {
CheckDeposit.DepositAdjustment.builder()
.adjustedAt(OffsetDateTime.parse("2020-01-31T23:59:59Z"))
.amount(1750L)
- .reason(CheckDeposit.DepositAdjustment.Reason.LATE_RETURN)
+ .reason(CheckDeposit.DepositAdjustment.Reason.ADJUSTED_AMOUNT)
.transactionId("transaction_uyrp7fld2ium70oa7oi")
.build()
)
@@ -110,7 +110,7 @@ internal class CheckDepositTest {
CheckDeposit.DepositAdjustment.builder()
.adjustedAt(OffsetDateTime.parse("2020-01-31T23:59:59Z"))
.amount(1750L)
- .reason(CheckDeposit.DepositAdjustment.Reason.LATE_RETURN)
+ .reason(CheckDeposit.DepositAdjustment.Reason.ADJUSTED_AMOUNT)
.transactionId("transaction_uyrp7fld2ium70oa7oi")
.build()
)
@@ -193,7 +193,7 @@ internal class CheckDepositTest {
CheckDeposit.DepositAdjustment.builder()
.adjustedAt(OffsetDateTime.parse("2020-01-31T23:59:59Z"))
.amount(1750L)
- .reason(CheckDeposit.DepositAdjustment.Reason.LATE_RETURN)
+ .reason(CheckDeposit.DepositAdjustment.Reason.ADJUSTED_AMOUNT)
.transactionId("transaction_uyrp7fld2ium70oa7oi")
.build()
)
diff --git a/increase-java-core/src/test/kotlin/com/increase/api/services/async/CardPushTransferServiceAsyncTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/services/async/CardPushTransferServiceAsyncTest.kt
index 376a27cf9..3c68a3ea4 100644
--- a/increase-java-core/src/test/kotlin/com/increase/api/services/async/CardPushTransferServiceAsyncTest.kt
+++ b/increase-java-core/src/test/kotlin/com/increase/api/services/async/CardPushTransferServiceAsyncTest.kt
@@ -47,6 +47,12 @@ internal class CardPushTransferServiceAsyncTest {
.senderAddressState("NY")
.senderName("Ian Crease")
.sourceAccountNumberId("account_number_v18nkfqm6afpsrvy82b2")
+ .merchantLegalBusinessName("x")
+ .merchantStreetAddress("x")
+ .recipientAddressCity("x")
+ .recipientAddressLine1("x")
+ .recipientAddressPostalCode("x")
+ .recipientAddressState("x")
.requireApproval(true)
.build()
)
diff --git a/increase-java-core/src/test/kotlin/com/increase/api/services/blocking/CardPushTransferServiceTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/services/blocking/CardPushTransferServiceTest.kt
index a406c3052..778334fa6 100644
--- a/increase-java-core/src/test/kotlin/com/increase/api/services/blocking/CardPushTransferServiceTest.kt
+++ b/increase-java-core/src/test/kotlin/com/increase/api/services/blocking/CardPushTransferServiceTest.kt
@@ -47,6 +47,12 @@ internal class CardPushTransferServiceTest {
.senderAddressState("NY")
.senderName("Ian Crease")
.sourceAccountNumberId("account_number_v18nkfqm6afpsrvy82b2")
+ .merchantLegalBusinessName("x")
+ .merchantStreetAddress("x")
+ .recipientAddressCity("x")
+ .recipientAddressLine1("x")
+ .recipientAddressPostalCode("x")
+ .recipientAddressState("x")
.requireApproval(true)
.build()
)