diff --git a/.release-please-manifest.json b/.release-please-manifest.json
index cb4cd84d3..1a931c1e0 100644
--- a/.release-please-manifest.json
+++ b/.release-please-manifest.json
@@ -1,3 +1,3 @@
{
- ".": "0.347.0"
+ ".": "0.348.0"
}
\ No newline at end of file
diff --git a/.stats.yml b/.stats.yml
index 238098d13..fff512bc2 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
-configured_endpoints: 220
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-9e8783129ea725992844a51e7d6f6a639cae93753228cef7262eccb2e4bae58d.yml
-openapi_spec_hash: f1a7326721f814625c7d5484956afded
-config_hash: 4489d6e123ed885f5cb74fe619668e4b
+configured_endpoints: 228
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-e9e51b3c9b5c8d9e6e0267b62a12a00fedbce419b765192aa4e2470984192e1f.yml
+openapi_spec_hash: 84bc91dd8b8a80edf447dddad15c23fc
+config_hash: eb2035151c7b49c2f12caf55469b8f9a
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 129577b90..0d84720d8 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,42 @@
# Changelog
+## 0.348.0 (2025-10-31)
+
+Full Changelog: [v0.347.0...v0.348.0](https://github.com/Increase/increase-java/compare/v0.347.0...v0.348.0)
+
+### Features
+
+* **api:** api update ([5d1526d](https://github.com/Increase/increase-java/commit/5d1526d1629bb1dcbf40e3e09a921746c2927337))
+* **api:** api update ([c4c5a15](https://github.com/Increase/increase-java/commit/c4c5a15738430ba9fbd51e320cdbcd5db3060240))
+* **api:** api update ([d3025b1](https://github.com/Increase/increase-java/commit/d3025b144aa584b898034e04f7fc1cb53f0ed5de))
+* **api:** api update ([3b68ad7](https://github.com/Increase/increase-java/commit/3b68ad78944655bafdafdf3c0323652e11576841))
+* **api:** api update ([945eed1](https://github.com/Increase/increase-java/commit/945eed1c35b0d13b9f75b3a7830d0ead3f366db0))
+* **api:** api update ([d0e687c](https://github.com/Increase/increase-java/commit/d0e687c0f89f2a26f0a93a706ed365a906a1bfb9))
+* **api:** api update ([5803cda](https://github.com/Increase/increase-java/commit/5803cdab7196ff122cf8f9aedfaf89e3d33d231e))
+* **api:** api update ([05fd77e](https://github.com/Increase/increase-java/commit/05fd77ecbab2646bc41fcbde45b746f6c74d4674))
+* **api:** api update ([4082773](https://github.com/Increase/increase-java/commit/408277389cbc77d1a840a57a6ad0694bdef6a5e9))
+* **api:** api update ([9438908](https://github.com/Increase/increase-java/commit/94389080530654e684f60a910d4581f6edc19841))
+* **api:** api update ([e135f5f](https://github.com/Increase/increase-java/commit/e135f5f9de55f04bffdd9bf8cdf432cc185ff7dd))
+* **api:** api update ([26c0a6f](https://github.com/Increase/increase-java/commit/26c0a6f5543f3c6b5800b774c37b49c3efdecad7))
+* **api:** api update ([f7b88d8](https://github.com/Increase/increase-java/commit/f7b88d8b6148ab0f33f8c4f937346b2ef0c670d8))
+* **api:** api update ([a57da18](https://github.com/Increase/increase-java/commit/a57da1835b758b295c18930ead890ab1469997f5))
+* **api:** api update ([a7c29d9](https://github.com/Increase/increase-java/commit/a7c29d9eb1fcd85020ae654163f7a08aa6d606dd))
+* **api:** api update ([ee7968d](https://github.com/Increase/increase-java/commit/ee7968ddfed0a889d9c6cb4a0033d041ed07f751))
+* **api:** api update ([2111373](https://github.com/Increase/increase-java/commit/2111373ba896c63c028db86bc55b4f4cc15ab84c))
+* **api:** api update ([4cc243c](https://github.com/Increase/increase-java/commit/4cc243c53315482c3f0c4e66b83e1a97002075ad))
+* **api:** api update ([627c529](https://github.com/Increase/increase-java/commit/627c5290ea4b54edabb8ac80c45c5c4309ece8a1))
+* **api:** api update ([c2aa9ee](https://github.com/Increase/increase-java/commit/c2aa9ee013d28d1f078de229881f1feb3dfc32b4))
+* **api:** api update ([5bf05d8](https://github.com/Increase/increase-java/commit/5bf05d830f2ce0adeb347c992ae637d2256e2523))
+* **api:** api update ([2049ebb](https://github.com/Increase/increase-java/commit/2049ebb7ae2a221317c692c6b5e66860937e88f5))
+* **api:** api update ([4e3ec15](https://github.com/Increase/increase-java/commit/4e3ec15caa8c049362a17bd5d29c0f1857d6c711))
+* **api:** api update ([dbb50b0](https://github.com/Increase/increase-java/commit/dbb50b0f1b0225cda41b3cb3a2c3e0394be13f09))
+* **api:** api update ([a14bd3d](https://github.com/Increase/increase-java/commit/a14bd3d085793249c465069b89c3260e1b5ccfec))
+* **api:** api update ([a053a21](https://github.com/Increase/increase-java/commit/a053a213225c53d204b741b9c149ac0448aa60f3))
+* **api:** api update ([2344228](https://github.com/Increase/increase-java/commit/2344228fddb443ad50a3c4c0b6b6d8a6054f9125))
+* **api:** api update ([8933f23](https://github.com/Increase/increase-java/commit/8933f23c50360ad105a07d1b885f4a64143830be))
+* **api:** api update ([1c75bae](https://github.com/Increase/increase-java/commit/1c75baeb3991dc02fa1898d0a77c0f662473f610))
+* **api:** api update ([0b6df76](https://github.com/Increase/increase-java/commit/0b6df767c9f4b65cf437e57d55377a258d49c1a4))
+
## 0.347.0 (2025-10-06)
Full Changelog: [v0.346.0...v0.347.0](https://github.com/Increase/increase-java/compare/v0.346.0...v0.347.0)
diff --git a/README.md b/README.md
index 4829dd052..becda8379 100644
--- a/README.md
+++ b/README.md
@@ -2,8 +2,8 @@
-[](https://central.sonatype.com/artifact/com.increase.api/increase-java/0.347.0)
-[](https://javadoc.io/doc/com.increase.api/increase-java/0.347.0)
+[](https://central.sonatype.com/artifact/com.increase.api/increase-java/0.348.0)
+[](https://javadoc.io/doc/com.increase.api/increase-java/0.348.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.347.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.348.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.347.0")
+implementation("com.increase.api:increase-java:0.348.0")
```
### Maven
@@ -33,7 +33,7 @@ implementation("com.increase.api:increase-java:0.347.0")
com.increase.api
increase-java
- 0.347.0
+ 0.348.0
```
diff --git a/build.gradle.kts b/build.gradle.kts
index 3e6cc96e1..2ef7968f5 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -8,7 +8,7 @@ repositories {
allprojects {
group = "com.increase.api"
- version = "0.347.0" // x-release-please-version
+ version = "0.348.0" // x-release-please-version
}
subprojects {
diff --git a/increase-java-core/src/main/kotlin/com/increase/api/client/IncreaseClient.kt b/increase-java-core/src/main/kotlin/com/increase/api/client/IncreaseClient.kt
index 4de8c0ea2..dc57ab706 100644
--- a/increase-java-core/src/main/kotlin/com/increase/api/client/IncreaseClient.kt
+++ b/increase-java-core/src/main/kotlin/com/increase/api/client/IncreaseClient.kt
@@ -30,11 +30,13 @@ import com.increase.api.services.blocking.EventService
import com.increase.api.services.blocking.EventSubscriptionService
import com.increase.api.services.blocking.ExportService
import com.increase.api.services.blocking.ExternalAccountService
+import com.increase.api.services.blocking.FednowTransferService
import com.increase.api.services.blocking.FileLinkService
import com.increase.api.services.blocking.FileService
import com.increase.api.services.blocking.GroupService
import com.increase.api.services.blocking.InboundAchTransferService
import com.increase.api.services.blocking.InboundCheckDepositService
+import com.increase.api.services.blocking.InboundFednowTransferService
import com.increase.api.services.blocking.InboundMailItemService
import com.increase.api.services.blocking.InboundRealTimePaymentsTransferService
import com.increase.api.services.blocking.InboundWireDrawdownRequestService
@@ -147,6 +149,10 @@ interface IncreaseClient {
fun inboundRealTimePaymentsTransfers(): InboundRealTimePaymentsTransferService
+ fun fednowTransfers(): FednowTransferService
+
+ fun inboundFednowTransfers(): InboundFednowTransferService
+
fun checkDeposits(): CheckDepositService
fun lockboxes(): LockboxService
@@ -283,6 +289,10 @@ interface IncreaseClient {
fun inboundRealTimePaymentsTransfers():
InboundRealTimePaymentsTransferService.WithRawResponse
+ fun fednowTransfers(): FednowTransferService.WithRawResponse
+
+ fun inboundFednowTransfers(): InboundFednowTransferService.WithRawResponse
+
fun checkDeposits(): CheckDepositService.WithRawResponse
fun lockboxes(): LockboxService.WithRawResponse
diff --git a/increase-java-core/src/main/kotlin/com/increase/api/client/IncreaseClientAsync.kt b/increase-java-core/src/main/kotlin/com/increase/api/client/IncreaseClientAsync.kt
index ac800b994..be4579776 100644
--- a/increase-java-core/src/main/kotlin/com/increase/api/client/IncreaseClientAsync.kt
+++ b/increase-java-core/src/main/kotlin/com/increase/api/client/IncreaseClientAsync.kt
@@ -30,11 +30,13 @@ import com.increase.api.services.async.EventServiceAsync
import com.increase.api.services.async.EventSubscriptionServiceAsync
import com.increase.api.services.async.ExportServiceAsync
import com.increase.api.services.async.ExternalAccountServiceAsync
+import com.increase.api.services.async.FednowTransferServiceAsync
import com.increase.api.services.async.FileLinkServiceAsync
import com.increase.api.services.async.FileServiceAsync
import com.increase.api.services.async.GroupServiceAsync
import com.increase.api.services.async.InboundAchTransferServiceAsync
import com.increase.api.services.async.InboundCheckDepositServiceAsync
+import com.increase.api.services.async.InboundFednowTransferServiceAsync
import com.increase.api.services.async.InboundMailItemServiceAsync
import com.increase.api.services.async.InboundRealTimePaymentsTransferServiceAsync
import com.increase.api.services.async.InboundWireDrawdownRequestServiceAsync
@@ -147,6 +149,10 @@ interface IncreaseClientAsync {
fun inboundRealTimePaymentsTransfers(): InboundRealTimePaymentsTransferServiceAsync
+ fun fednowTransfers(): FednowTransferServiceAsync
+
+ fun inboundFednowTransfers(): InboundFednowTransferServiceAsync
+
fun checkDeposits(): CheckDepositServiceAsync
fun lockboxes(): LockboxServiceAsync
@@ -287,6 +293,10 @@ interface IncreaseClientAsync {
fun inboundRealTimePaymentsTransfers():
InboundRealTimePaymentsTransferServiceAsync.WithRawResponse
+ fun fednowTransfers(): FednowTransferServiceAsync.WithRawResponse
+
+ fun inboundFednowTransfers(): InboundFednowTransferServiceAsync.WithRawResponse
+
fun checkDeposits(): CheckDepositServiceAsync.WithRawResponse
fun lockboxes(): LockboxServiceAsync.WithRawResponse
diff --git a/increase-java-core/src/main/kotlin/com/increase/api/client/IncreaseClientAsyncImpl.kt b/increase-java-core/src/main/kotlin/com/increase/api/client/IncreaseClientAsyncImpl.kt
index 1adb82f42..ddb03d381 100644
--- a/increase-java-core/src/main/kotlin/com/increase/api/client/IncreaseClientAsyncImpl.kt
+++ b/increase-java-core/src/main/kotlin/com/increase/api/client/IncreaseClientAsyncImpl.kt
@@ -58,6 +58,8 @@ import com.increase.api.services.async.ExportServiceAsync
import com.increase.api.services.async.ExportServiceAsyncImpl
import com.increase.api.services.async.ExternalAccountServiceAsync
import com.increase.api.services.async.ExternalAccountServiceAsyncImpl
+import com.increase.api.services.async.FednowTransferServiceAsync
+import com.increase.api.services.async.FednowTransferServiceAsyncImpl
import com.increase.api.services.async.FileLinkServiceAsync
import com.increase.api.services.async.FileLinkServiceAsyncImpl
import com.increase.api.services.async.FileServiceAsync
@@ -68,6 +70,8 @@ import com.increase.api.services.async.InboundAchTransferServiceAsync
import com.increase.api.services.async.InboundAchTransferServiceAsyncImpl
import com.increase.api.services.async.InboundCheckDepositServiceAsync
import com.increase.api.services.async.InboundCheckDepositServiceAsyncImpl
+import com.increase.api.services.async.InboundFednowTransferServiceAsync
+import com.increase.api.services.async.InboundFednowTransferServiceAsyncImpl
import com.increase.api.services.async.InboundMailItemServiceAsync
import com.increase.api.services.async.InboundMailItemServiceAsyncImpl
import com.increase.api.services.async.InboundRealTimePaymentsTransferServiceAsync
@@ -234,6 +238,14 @@ class IncreaseClientAsyncImpl(private val clientOptions: ClientOptions) : Increa
InboundRealTimePaymentsTransferServiceAsyncImpl(clientOptionsWithUserAgent)
}
+ private val fednowTransfers: FednowTransferServiceAsync by lazy {
+ FednowTransferServiceAsyncImpl(clientOptionsWithUserAgent)
+ }
+
+ private val inboundFednowTransfers: InboundFednowTransferServiceAsync by lazy {
+ InboundFednowTransferServiceAsyncImpl(clientOptionsWithUserAgent)
+ }
+
private val checkDeposits: CheckDepositServiceAsync by lazy {
CheckDepositServiceAsyncImpl(clientOptionsWithUserAgent)
}
@@ -415,6 +427,11 @@ class IncreaseClientAsyncImpl(private val clientOptions: ClientOptions) : Increa
override fun inboundRealTimePaymentsTransfers(): InboundRealTimePaymentsTransferServiceAsync =
inboundRealTimePaymentsTransfers
+ override fun fednowTransfers(): FednowTransferServiceAsync = fednowTransfers
+
+ override fun inboundFednowTransfers(): InboundFednowTransferServiceAsync =
+ inboundFednowTransfers
+
override fun checkDeposits(): CheckDepositServiceAsync = checkDeposits
override fun lockboxes(): LockboxServiceAsync = lockboxes
@@ -587,6 +604,15 @@ class IncreaseClientAsyncImpl(private val clientOptions: ClientOptions) : Increa
InboundRealTimePaymentsTransferServiceAsyncImpl.WithRawResponseImpl(clientOptions)
}
+ private val fednowTransfers: FednowTransferServiceAsync.WithRawResponse by lazy {
+ FednowTransferServiceAsyncImpl.WithRawResponseImpl(clientOptions)
+ }
+
+ private val inboundFednowTransfers:
+ InboundFednowTransferServiceAsync.WithRawResponse by lazy {
+ InboundFednowTransferServiceAsyncImpl.WithRawResponseImpl(clientOptions)
+ }
+
private val checkDeposits: CheckDepositServiceAsync.WithRawResponse by lazy {
CheckDepositServiceAsyncImpl.WithRawResponseImpl(clientOptions)
}
@@ -782,6 +808,11 @@ class IncreaseClientAsyncImpl(private val clientOptions: ClientOptions) : Increa
InboundRealTimePaymentsTransferServiceAsync.WithRawResponse =
inboundRealTimePaymentsTransfers
+ override fun fednowTransfers(): FednowTransferServiceAsync.WithRawResponse = fednowTransfers
+
+ override fun inboundFednowTransfers(): InboundFednowTransferServiceAsync.WithRawResponse =
+ inboundFednowTransfers
+
override fun checkDeposits(): CheckDepositServiceAsync.WithRawResponse = checkDeposits
override fun lockboxes(): LockboxServiceAsync.WithRawResponse = lockboxes
diff --git a/increase-java-core/src/main/kotlin/com/increase/api/client/IncreaseClientImpl.kt b/increase-java-core/src/main/kotlin/com/increase/api/client/IncreaseClientImpl.kt
index 0f57c4411..021a9434d 100644
--- a/increase-java-core/src/main/kotlin/com/increase/api/client/IncreaseClientImpl.kt
+++ b/increase-java-core/src/main/kotlin/com/increase/api/client/IncreaseClientImpl.kt
@@ -58,6 +58,8 @@ import com.increase.api.services.blocking.ExportService
import com.increase.api.services.blocking.ExportServiceImpl
import com.increase.api.services.blocking.ExternalAccountService
import com.increase.api.services.blocking.ExternalAccountServiceImpl
+import com.increase.api.services.blocking.FednowTransferService
+import com.increase.api.services.blocking.FednowTransferServiceImpl
import com.increase.api.services.blocking.FileLinkService
import com.increase.api.services.blocking.FileLinkServiceImpl
import com.increase.api.services.blocking.FileService
@@ -68,6 +70,8 @@ import com.increase.api.services.blocking.InboundAchTransferService
import com.increase.api.services.blocking.InboundAchTransferServiceImpl
import com.increase.api.services.blocking.InboundCheckDepositService
import com.increase.api.services.blocking.InboundCheckDepositServiceImpl
+import com.increase.api.services.blocking.InboundFednowTransferService
+import com.increase.api.services.blocking.InboundFednowTransferServiceImpl
import com.increase.api.services.blocking.InboundMailItemService
import com.increase.api.services.blocking.InboundMailItemServiceImpl
import com.increase.api.services.blocking.InboundRealTimePaymentsTransferService
@@ -231,6 +235,14 @@ class IncreaseClientImpl(private val clientOptions: ClientOptions) : IncreaseCli
InboundRealTimePaymentsTransferServiceImpl(clientOptionsWithUserAgent)
}
+ private val fednowTransfers: FednowTransferService by lazy {
+ FednowTransferServiceImpl(clientOptionsWithUserAgent)
+ }
+
+ private val inboundFednowTransfers: InboundFednowTransferService by lazy {
+ InboundFednowTransferServiceImpl(clientOptionsWithUserAgent)
+ }
+
private val checkDeposits: CheckDepositService by lazy {
CheckDepositServiceImpl(clientOptionsWithUserAgent)
}
@@ -399,6 +411,10 @@ class IncreaseClientImpl(private val clientOptions: ClientOptions) : IncreaseCli
override fun inboundRealTimePaymentsTransfers(): InboundRealTimePaymentsTransferService =
inboundRealTimePaymentsTransfers
+ override fun fednowTransfers(): FednowTransferService = fednowTransfers
+
+ override fun inboundFednowTransfers(): InboundFednowTransferService = inboundFednowTransfers
+
override fun checkDeposits(): CheckDepositService = checkDeposits
override fun lockboxes(): LockboxService = lockboxes
@@ -570,6 +586,14 @@ class IncreaseClientImpl(private val clientOptions: ClientOptions) : IncreaseCli
InboundRealTimePaymentsTransferServiceImpl.WithRawResponseImpl(clientOptions)
}
+ private val fednowTransfers: FednowTransferService.WithRawResponse by lazy {
+ FednowTransferServiceImpl.WithRawResponseImpl(clientOptions)
+ }
+
+ private val inboundFednowTransfers: InboundFednowTransferService.WithRawResponse by lazy {
+ InboundFednowTransferServiceImpl.WithRawResponseImpl(clientOptions)
+ }
+
private val checkDeposits: CheckDepositService.WithRawResponse by lazy {
CheckDepositServiceImpl.WithRawResponseImpl(clientOptions)
}
@@ -763,6 +787,11 @@ class IncreaseClientImpl(private val clientOptions: ClientOptions) : IncreaseCli
InboundRealTimePaymentsTransferService.WithRawResponse =
inboundRealTimePaymentsTransfers
+ override fun fednowTransfers(): FednowTransferService.WithRawResponse = fednowTransfers
+
+ override fun inboundFednowTransfers(): InboundFednowTransferService.WithRawResponse =
+ inboundFednowTransfers
+
override fun checkDeposits(): CheckDepositService.WithRawResponse = checkDeposits
override fun lockboxes(): LockboxService.WithRawResponse = lockboxes
diff --git a/increase-java-core/src/main/kotlin/com/increase/api/models/accounts/AccountCreateParams.kt b/increase-java-core/src/main/kotlin/com/increase/api/models/accounts/AccountCreateParams.kt
index 15743c3ee..34891d29d 100644
--- a/increase-java-core/src/main/kotlin/com/increase/api/models/accounts/AccountCreateParams.kt
+++ b/increase-java-core/src/main/kotlin/com/increase/api/models/accounts/AccountCreateParams.kt
@@ -45,7 +45,7 @@ private constructor(
/**
* The identifier of an Entity that, while not owning the Account, is associated with its
- * activity. Its relationship to your group must be `informational`.
+ * activity. This is generally the beneficiary of the funds.
*
* @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if the
* server responded with an unexpected value).
@@ -163,7 +163,7 @@ private constructor(
/**
* The identifier of an Entity that, while not owning the Account, is associated with its
- * activity. Its relationship to your group must be `informational`.
+ * activity. This is generally the beneficiary of the funds.
*/
fun informationalEntityId(informationalEntityId: String) = apply {
body.informationalEntityId(informationalEntityId)
@@ -380,7 +380,7 @@ private constructor(
/**
* The identifier of an Entity that, while not owning the Account, is associated with its
- * activity. Its relationship to your group must be `informational`.
+ * activity. This is generally the beneficiary of the funds.
*
* @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if
* the server responded with an unexpected value).
@@ -497,7 +497,7 @@ private constructor(
/**
* The identifier of an Entity that, while not owning the Account, is associated with
- * its activity. Its relationship to your group must be `informational`.
+ * its activity. This is generally the beneficiary of the funds.
*/
fun informationalEntityId(informationalEntityId: String) =
informationalEntityId(JsonField.of(informationalEntityId))
diff --git a/increase-java-core/src/main/kotlin/com/increase/api/models/achtransfers/AchTransfer.kt b/increase-java-core/src/main/kotlin/com/increase/api/models/achtransfers/AchTransfer.kt
index da96e5dde..e7e3be514 100644
--- a/increase-java-core/src/main/kotlin/com/increase/api/models/achtransfers/AchTransfer.kt
+++ b/increase-java-core/src/main/kotlin/com/increase/api/models/achtransfers/AchTransfer.kt
@@ -9434,6 +9434,7 @@ private constructor(
class Submission
@JsonCreator(mode = JsonCreator.Mode.DISABLED)
private constructor(
+ private val administrativeReturnsExpectedBy: JsonField,
private val effectiveDate: JsonField,
private val expectedFundsSettlementAt: JsonField,
private val expectedSettlementSchedule: JsonField,
@@ -9444,6 +9445,9 @@ private constructor(
@JsonCreator
private constructor(
+ @JsonProperty("administrative_returns_expected_by")
+ @ExcludeMissing
+ administrativeReturnsExpectedBy: JsonField = JsonMissing.of(),
@JsonProperty("effective_date")
@ExcludeMissing
effectiveDate: JsonField = JsonMissing.of(),
@@ -9460,6 +9464,7 @@ private constructor(
@ExcludeMissing
traceNumber: JsonField = JsonMissing.of(),
) : this(
+ administrativeReturnsExpectedBy,
effectiveDate,
expectedFundsSettlementAt,
expectedSettlementSchedule,
@@ -9468,6 +9473,19 @@ private constructor(
mutableMapOf(),
)
+ /**
+ * The timestamp by which any administrative returns are expected to be received by. This
+ * follows the NACHA guidelines for return windows, which are: "In general, return entries
+ * must be received by the RDFI’s ACH Operator by its deposit deadline for the return entry
+ * to be made available to the ODFI no later than the opening of business on the second
+ * banking day following the Settlement Date of the original entry.".
+ *
+ * @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 administrativeReturnsExpectedBy(): OffsetDateTime =
+ administrativeReturnsExpectedBy.getRequired("administrative_returns_expected_by")
+
/**
* The ACH transfer's effective date as sent to the Federal Reserve. If a specific date was
* configured using `preferred_effective_date`, this will match that value. Otherwise, it
@@ -9519,6 +9537,17 @@ private constructor(
*/
fun traceNumber(): String = traceNumber.getRequired("trace_number")
+ /**
+ * Returns the raw JSON value of [administrativeReturnsExpectedBy].
+ *
+ * Unlike [administrativeReturnsExpectedBy], this method doesn't throw if the JSON field has
+ * an unexpected type.
+ */
+ @JsonProperty("administrative_returns_expected_by")
+ @ExcludeMissing
+ fun _administrativeReturnsExpectedBy(): JsonField =
+ administrativeReturnsExpectedBy
+
/**
* Returns the raw JSON value of [effectiveDate].
*
@@ -9587,6 +9616,7 @@ private constructor(
*
* The following fields are required:
* ```java
+ * .administrativeReturnsExpectedBy()
* .effectiveDate()
* .expectedFundsSettlementAt()
* .expectedSettlementSchedule()
@@ -9600,6 +9630,7 @@ private constructor(
/** A builder for [Submission]. */
class Builder internal constructor() {
+ private var administrativeReturnsExpectedBy: JsonField? = null
private var effectiveDate: JsonField? = null
private var expectedFundsSettlementAt: JsonField? = null
private var expectedSettlementSchedule: JsonField? = null
@@ -9609,6 +9640,7 @@ private constructor(
@JvmSynthetic
internal fun from(submission: Submission) = apply {
+ administrativeReturnsExpectedBy = submission.administrativeReturnsExpectedBy
effectiveDate = submission.effectiveDate
expectedFundsSettlementAt = submission.expectedFundsSettlementAt
expectedSettlementSchedule = submission.expectedSettlementSchedule
@@ -9617,6 +9649,27 @@ private constructor(
additionalProperties = submission.additionalProperties.toMutableMap()
}
+ /**
+ * The timestamp by which any administrative returns are expected to be received by.
+ * This follows the NACHA guidelines for return windows, which are: "In general, return
+ * entries must be received by the RDFI’s ACH Operator by its deposit deadline for the
+ * return entry to be made available to the ODFI no later than the opening of business
+ * on the second banking day following the Settlement Date of the original entry.".
+ */
+ fun administrativeReturnsExpectedBy(administrativeReturnsExpectedBy: OffsetDateTime) =
+ administrativeReturnsExpectedBy(JsonField.of(administrativeReturnsExpectedBy))
+
+ /**
+ * Sets [Builder.administrativeReturnsExpectedBy] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.administrativeReturnsExpectedBy] with a well-typed
+ * [OffsetDateTime] value instead. This method is primarily for setting the field to an
+ * undocumented or not yet supported value.
+ */
+ fun administrativeReturnsExpectedBy(
+ administrativeReturnsExpectedBy: JsonField
+ ) = apply { this.administrativeReturnsExpectedBy = administrativeReturnsExpectedBy }
+
/**
* The ACH transfer's effective date as sent to the Federal Reserve. If a specific date
* was configured using `preferred_effective_date`, this will match that value.
@@ -9734,6 +9787,7 @@ private constructor(
*
* The following fields are required:
* ```java
+ * .administrativeReturnsExpectedBy()
* .effectiveDate()
* .expectedFundsSettlementAt()
* .expectedSettlementSchedule()
@@ -9745,6 +9799,10 @@ private constructor(
*/
fun build(): Submission =
Submission(
+ checkRequired(
+ "administrativeReturnsExpectedBy",
+ administrativeReturnsExpectedBy,
+ ),
checkRequired("effectiveDate", effectiveDate),
checkRequired("expectedFundsSettlementAt", expectedFundsSettlementAt),
checkRequired("expectedSettlementSchedule", expectedSettlementSchedule),
@@ -9761,6 +9819,7 @@ private constructor(
return@apply
}
+ administrativeReturnsExpectedBy()
effectiveDate()
expectedFundsSettlementAt()
expectedSettlementSchedule().validate()
@@ -9785,7 +9844,8 @@ private constructor(
*/
@JvmSynthetic
internal fun validity(): Int =
- (if (effectiveDate.asKnown().isPresent) 1 else 0) +
+ (if (administrativeReturnsExpectedBy.asKnown().isPresent) 1 else 0) +
+ (if (effectiveDate.asKnown().isPresent) 1 else 0) +
(if (expectedFundsSettlementAt.asKnown().isPresent) 1 else 0) +
(expectedSettlementSchedule.asKnown().getOrNull()?.validity() ?: 0) +
(if (submittedAt.asKnown().isPresent) 1 else 0) +
@@ -9944,6 +10004,7 @@ private constructor(
}
return other is Submission &&
+ administrativeReturnsExpectedBy == other.administrativeReturnsExpectedBy &&
effectiveDate == other.effectiveDate &&
expectedFundsSettlementAt == other.expectedFundsSettlementAt &&
expectedSettlementSchedule == other.expectedSettlementSchedule &&
@@ -9954,6 +10015,7 @@ private constructor(
private val hashCode: Int by lazy {
Objects.hash(
+ administrativeReturnsExpectedBy,
effectiveDate,
expectedFundsSettlementAt,
expectedSettlementSchedule,
@@ -9966,7 +10028,7 @@ private constructor(
override fun hashCode(): Int = hashCode
override fun toString() =
- "Submission{effectiveDate=$effectiveDate, expectedFundsSettlementAt=$expectedFundsSettlementAt, expectedSettlementSchedule=$expectedSettlementSchedule, submittedAt=$submittedAt, traceNumber=$traceNumber, additionalProperties=$additionalProperties}"
+ "Submission{administrativeReturnsExpectedBy=$administrativeReturnsExpectedBy, effectiveDate=$effectiveDate, expectedFundsSettlementAt=$expectedFundsSettlementAt, expectedSettlementSchedule=$expectedSettlementSchedule, submittedAt=$submittedAt, traceNumber=$traceNumber, additionalProperties=$additionalProperties}"
}
/**
diff --git a/increase-java-core/src/main/kotlin/com/increase/api/models/carddisputes/CardDispute.kt b/increase-java-core/src/main/kotlin/com/increase/api/models/carddisputes/CardDispute.kt
index d8633d825..6dbf64042 100644
--- a/increase-java-core/src/main/kotlin/com/increase/api/models/carddisputes/CardDispute.kt
+++ b/increase-java-core/src/main/kotlin/com/increase/api/models/carddisputes/CardDispute.kt
@@ -1040,13 +1040,18 @@ private constructor(
/** Visa: details will be under the `visa` object. */
@JvmField val VISA = of("visa")
+ /** Pulse: details will be under the `pulse` object. */
+ @JvmField val PULSE = of("pulse")
+
@JvmStatic fun of(value: String) = Network(JsonField.of(value))
}
/** An enum containing [Network]'s known values. */
enum class Known {
/** Visa: details will be under the `visa` object. */
- VISA
+ VISA,
+ /** Pulse: details will be under the `pulse` object. */
+ PULSE,
}
/**
@@ -1061,6 +1066,8 @@ private constructor(
enum class Value {
/** Visa: details will be under the `visa` object. */
VISA,
+ /** Pulse: details will be under the `pulse` object. */
+ PULSE,
/** An enum member indicating that [Network] was instantiated with an unknown value. */
_UNKNOWN,
}
@@ -1075,6 +1082,7 @@ private constructor(
fun value(): Value =
when (this) {
VISA -> Value.VISA
+ PULSE -> Value.PULSE
else -> Value._UNKNOWN
}
@@ -1090,6 +1098,7 @@ private constructor(
fun known(): Known =
when (this) {
VISA -> Known.VISA
+ PULSE -> Known.PULSE
else -> throw IncreaseInvalidDataException("Unknown Network: $value")
}
@@ -1755,21 +1764,22 @@ private constructor(
private constructor(
private val attachmentFiles: JsonField>,
private val category: JsonField,
- private val chargebackAccepted: JsonValue,
- private val chargebackSubmitted: JsonValue,
- private val chargebackTimedOut: JsonValue,
+ private val chargebackAccepted: JsonField,
+ private val chargebackSubmitted: JsonField,
+ private val chargebackTimedOut: JsonField,
private val createdAt: JsonField,
private val disputeFinancialTransactionId: JsonField,
- private val merchantPrearbitrationDeclineSubmitted: JsonValue,
+ private val merchantPrearbitrationDeclineSubmitted:
+ JsonField,
private val merchantPrearbitrationReceived: JsonField,
- private val merchantPrearbitrationTimedOut: JsonValue,
+ private val merchantPrearbitrationTimedOut: JsonField,
private val represented: JsonField,
- private val representmentTimedOut: JsonValue,
- private val userPrearbitrationAccepted: JsonValue,
- private val userPrearbitrationDeclined: JsonValue,
- private val userPrearbitrationSubmitted: JsonValue,
- private val userPrearbitrationTimedOut: JsonValue,
- private val userWithdrawalSubmitted: JsonValue,
+ private val representmentTimedOut: JsonField,
+ private val userPrearbitrationAccepted: JsonField,
+ private val userPrearbitrationDeclined: JsonField,
+ private val userPrearbitrationSubmitted: JsonField,
+ private val userPrearbitrationTimedOut: JsonField,
+ private val userWithdrawalSubmitted: JsonField,
private val additionalProperties: MutableMap,
) {
@@ -1783,13 +1793,13 @@ private constructor(
category: JsonField = JsonMissing.of(),
@JsonProperty("chargeback_accepted")
@ExcludeMissing
- chargebackAccepted: JsonValue = JsonMissing.of(),
+ chargebackAccepted: JsonField = JsonMissing.of(),
@JsonProperty("chargeback_submitted")
@ExcludeMissing
- chargebackSubmitted: JsonValue = JsonMissing.of(),
+ chargebackSubmitted: JsonField = JsonMissing.of(),
@JsonProperty("chargeback_timed_out")
@ExcludeMissing
- chargebackTimedOut: JsonValue = JsonMissing.of(),
+ chargebackTimedOut: JsonField = JsonMissing.of(),
@JsonProperty("created_at")
@ExcludeMissing
createdAt: JsonField = JsonMissing.of(),
@@ -1798,35 +1808,42 @@ private constructor(
disputeFinancialTransactionId: JsonField = JsonMissing.of(),
@JsonProperty("merchant_prearbitration_decline_submitted")
@ExcludeMissing
- merchantPrearbitrationDeclineSubmitted: JsonValue = JsonMissing.of(),
+ merchantPrearbitrationDeclineSubmitted:
+ JsonField =
+ JsonMissing.of(),
@JsonProperty("merchant_prearbitration_received")
@ExcludeMissing
merchantPrearbitrationReceived: JsonField =
JsonMissing.of(),
@JsonProperty("merchant_prearbitration_timed_out")
@ExcludeMissing
- merchantPrearbitrationTimedOut: JsonValue = JsonMissing.of(),
+ merchantPrearbitrationTimedOut: JsonField =
+ JsonMissing.of(),
@JsonProperty("represented")
@ExcludeMissing
represented: JsonField = JsonMissing.of(),
@JsonProperty("representment_timed_out")
@ExcludeMissing
- representmentTimedOut: JsonValue = JsonMissing.of(),
+ representmentTimedOut: JsonField = JsonMissing.of(),
@JsonProperty("user_prearbitration_accepted")
@ExcludeMissing
- userPrearbitrationAccepted: JsonValue = JsonMissing.of(),
+ userPrearbitrationAccepted: JsonField =
+ JsonMissing.of(),
@JsonProperty("user_prearbitration_declined")
@ExcludeMissing
- userPrearbitrationDeclined: JsonValue = JsonMissing.of(),
+ userPrearbitrationDeclined: JsonField =
+ JsonMissing.of(),
@JsonProperty("user_prearbitration_submitted")
@ExcludeMissing
- userPrearbitrationSubmitted: JsonValue = JsonMissing.of(),
+ userPrearbitrationSubmitted: JsonField =
+ JsonMissing.of(),
@JsonProperty("user_prearbitration_timed_out")
@ExcludeMissing
- userPrearbitrationTimedOut: JsonValue = JsonMissing.of(),
+ userPrearbitrationTimedOut: JsonField =
+ JsonMissing.of(),
@JsonProperty("user_withdrawal_submitted")
@ExcludeMissing
- userWithdrawalSubmitted: JsonValue = JsonMissing.of(),
+ userWithdrawalSubmitted: JsonField = JsonMissing.of(),
) : this(
attachmentFiles,
category,
@@ -1874,10 +1891,12 @@ private constructor(
* `chargeback_accepted`. Contains the details specific to a chargeback accepted Visa
* Card Dispute Network Event, which represents that a chargeback has been accepted by
* the merchant.
+ *
+ * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g.
+ * if the server responded with an unexpected value).
*/
- @JsonProperty("chargeback_accepted")
- @ExcludeMissing
- fun _chargebackAccepted(): JsonValue = chargebackAccepted
+ fun chargebackAccepted(): Optional =
+ chargebackAccepted.getOptional("chargeback_accepted")
/**
* A Card Dispute Chargeback Submitted Visa Network Event object. This field will be
@@ -1885,10 +1904,12 @@ private constructor(
* `chargeback_submitted`. Contains the details specific to a chargeback submitted Visa
* Card Dispute Network Event, which represents that a chargeback has been submitted to
* the network.
+ *
+ * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g.
+ * if the server responded with an unexpected value).
*/
- @JsonProperty("chargeback_submitted")
- @ExcludeMissing
- fun _chargebackSubmitted(): JsonValue = chargebackSubmitted
+ fun chargebackSubmitted(): Optional =
+ chargebackSubmitted.getOptional("chargeback_submitted")
/**
* A Card Dispute Chargeback Timed Out Visa Network Event object. This field will be
@@ -1896,10 +1917,12 @@ private constructor(
* `chargeback_timed_out`. Contains the details specific to a chargeback timed out Visa
* Card Dispute Network Event, which represents that the chargeback has timed out in the
* user's favor.
+ *
+ * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g.
+ * if the server responded with an unexpected value).
*/
- @JsonProperty("chargeback_timed_out")
- @ExcludeMissing
- fun _chargebackTimedOut(): JsonValue = chargebackTimedOut
+ fun chargebackTimedOut(): Optional =
+ chargebackTimedOut.getOptional("chargeback_timed_out")
/**
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which the
@@ -1927,11 +1950,15 @@ private constructor(
* merchant prearbitration decline submitted Visa Card Dispute Network Event, which
* represents that the user has declined the merchant's request for a prearbitration
* request decision in their favor.
+ *
+ * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g.
+ * if the server responded with an unexpected value).
*/
- @JsonProperty("merchant_prearbitration_decline_submitted")
- @ExcludeMissing
- fun _merchantPrearbitrationDeclineSubmitted(): JsonValue =
- merchantPrearbitrationDeclineSubmitted
+ fun merchantPrearbitrationDeclineSubmitted():
+ Optional =
+ merchantPrearbitrationDeclineSubmitted.getOptional(
+ "merchant_prearbitration_decline_submitted"
+ )
/**
* A Card Dispute Merchant Pre-Arbitration Received Visa Network Event object. This
@@ -1952,10 +1979,12 @@ private constructor(
* `merchant_prearbitration_timed_out`. Contains the details specific to a merchant
* prearbitration timed out Visa Card Dispute Network Event, which represents that the
* user has timed out responding to the merchant's prearbitration request.
+ *
+ * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g.
+ * if the server responded with an unexpected value).
*/
- @JsonProperty("merchant_prearbitration_timed_out")
- @ExcludeMissing
- fun _merchantPrearbitrationTimedOut(): JsonValue = merchantPrearbitrationTimedOut
+ fun merchantPrearbitrationTimedOut(): Optional =
+ merchantPrearbitrationTimedOut.getOptional("merchant_prearbitration_timed_out")
/**
* A Card Dispute Re-presented Visa Network Event object. This field will be present in
@@ -1975,10 +2004,12 @@ private constructor(
* `representment_timed_out`. Contains the details specific to a re-presentment time-out
* Visa Card Dispute Network Event, which represents that the user did not respond to
* the re-presentment by the merchant within the time limit.
+ *
+ * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g.
+ * if the server responded with an unexpected value).
*/
- @JsonProperty("representment_timed_out")
- @ExcludeMissing
- fun _representmentTimedOut(): JsonValue = representmentTimedOut
+ fun representmentTimedOut(): Optional =
+ representmentTimedOut.getOptional("representment_timed_out")
/**
* A Card Dispute User Pre-Arbitration Accepted Visa Network Event object. This field
@@ -1986,10 +2017,12 @@ private constructor(
* `user_prearbitration_accepted`. Contains the details specific to a user
* prearbitration accepted Visa Card Dispute Network Event, which represents that the
* merchant has accepted the user's prearbitration request in the user's favor.
+ *
+ * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g.
+ * if the server responded with an unexpected value).
*/
- @JsonProperty("user_prearbitration_accepted")
- @ExcludeMissing
- fun _userPrearbitrationAccepted(): JsonValue = userPrearbitrationAccepted
+ fun userPrearbitrationAccepted(): Optional =
+ userPrearbitrationAccepted.getOptional("user_prearbitration_accepted")
/**
* A Card Dispute User Pre-Arbitration Declined Visa Network Event object. This field
@@ -1997,10 +2030,12 @@ private constructor(
* `user_prearbitration_declined`. Contains the details specific to a user
* prearbitration declined Visa Card Dispute Network Event, which represents that the
* merchant has declined the user's prearbitration request.
+ *
+ * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g.
+ * if the server responded with an unexpected value).
*/
- @JsonProperty("user_prearbitration_declined")
- @ExcludeMissing
- fun _userPrearbitrationDeclined(): JsonValue = userPrearbitrationDeclined
+ fun userPrearbitrationDeclined(): Optional =
+ userPrearbitrationDeclined.getOptional("user_prearbitration_declined")
/**
* A Card Dispute User Pre-Arbitration Submitted Visa Network Event object. This field
@@ -2008,10 +2043,12 @@ private constructor(
* `user_prearbitration_submitted`. Contains the details specific to a user
* prearbitration submitted Visa Card Dispute Network Event, which represents that the
* user's request for prearbitration has been submitted to the network.
+ *
+ * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g.
+ * if the server responded with an unexpected value).
*/
- @JsonProperty("user_prearbitration_submitted")
- @ExcludeMissing
- fun _userPrearbitrationSubmitted(): JsonValue = userPrearbitrationSubmitted
+ fun userPrearbitrationSubmitted(): Optional =
+ userPrearbitrationSubmitted.getOptional("user_prearbitration_submitted")
/**
* A Card Dispute User Pre-Arbitration Timed Out Visa Network Event object. This field
@@ -2019,10 +2056,12 @@ private constructor(
* `user_prearbitration_timed_out`. Contains the details specific to a user
* prearbitration timed out Visa Card Dispute Network Event, which represents that the
* merchant has timed out responding to the user's prearbitration request.
+ *
+ * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g.
+ * if the server responded with an unexpected value).
*/
- @JsonProperty("user_prearbitration_timed_out")
- @ExcludeMissing
- fun _userPrearbitrationTimedOut(): JsonValue = userPrearbitrationTimedOut
+ fun userPrearbitrationTimedOut(): Optional =
+ userPrearbitrationTimedOut.getOptional("user_prearbitration_timed_out")
/**
* A Card Dispute User Withdrawal Submitted Visa Network Event object. This field will
@@ -2030,10 +2069,12 @@ private constructor(
* `user_withdrawal_submitted`. Contains the details specific to a user withdrawal
* submitted Visa Card Dispute Network Event, which represents that the user's request
* to withdraw the dispute has been submitted to the network.
+ *
+ * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g.
+ * if the server responded with an unexpected value).
*/
- @JsonProperty("user_withdrawal_submitted")
- @ExcludeMissing
- fun _userWithdrawalSubmitted(): JsonValue = userWithdrawalSubmitted
+ fun userWithdrawalSubmitted(): Optional =
+ userWithdrawalSubmitted.getOptional("user_withdrawal_submitted")
/**
* Returns the raw JSON value of [attachmentFiles].
@@ -2055,6 +2096,36 @@ private constructor(
@ExcludeMissing
fun _category(): JsonField = category
+ /**
+ * Returns the raw JSON value of [chargebackAccepted].
+ *
+ * Unlike [chargebackAccepted], this method doesn't throw if the JSON field has an
+ * unexpected type.
+ */
+ @JsonProperty("chargeback_accepted")
+ @ExcludeMissing
+ fun _chargebackAccepted(): JsonField = chargebackAccepted
+
+ /**
+ * Returns the raw JSON value of [chargebackSubmitted].
+ *
+ * Unlike [chargebackSubmitted], this method doesn't throw if the JSON field has an
+ * unexpected type.
+ */
+ @JsonProperty("chargeback_submitted")
+ @ExcludeMissing
+ fun _chargebackSubmitted(): JsonField = chargebackSubmitted
+
+ /**
+ * Returns the raw JSON value of [chargebackTimedOut].
+ *
+ * Unlike [chargebackTimedOut], this method doesn't throw if the JSON field has an
+ * unexpected type.
+ */
+ @JsonProperty("chargeback_timed_out")
+ @ExcludeMissing
+ fun _chargebackTimedOut(): JsonField = chargebackTimedOut
+
/**
* Returns the raw JSON value of [createdAt].
*
@@ -2075,6 +2146,18 @@ private constructor(
@ExcludeMissing
fun _disputeFinancialTransactionId(): JsonField = disputeFinancialTransactionId
+ /**
+ * Returns the raw JSON value of [merchantPrearbitrationDeclineSubmitted].
+ *
+ * Unlike [merchantPrearbitrationDeclineSubmitted], this method doesn't throw if the
+ * JSON field has an unexpected type.
+ */
+ @JsonProperty("merchant_prearbitration_decline_submitted")
+ @ExcludeMissing
+ fun _merchantPrearbitrationDeclineSubmitted():
+ JsonField =
+ merchantPrearbitrationDeclineSubmitted
+
/**
* Returns the raw JSON value of [merchantPrearbitrationReceived].
*
@@ -2086,6 +2169,17 @@ private constructor(
fun _merchantPrearbitrationReceived(): JsonField =
merchantPrearbitrationReceived
+ /**
+ * Returns the raw JSON value of [merchantPrearbitrationTimedOut].
+ *
+ * Unlike [merchantPrearbitrationTimedOut], this method doesn't throw if the JSON field
+ * has an unexpected type.
+ */
+ @JsonProperty("merchant_prearbitration_timed_out")
+ @ExcludeMissing
+ fun _merchantPrearbitrationTimedOut(): JsonField =
+ merchantPrearbitrationTimedOut
+
/**
* Returns the raw JSON value of [represented].
*
@@ -2096,6 +2190,71 @@ private constructor(
@ExcludeMissing
fun _represented(): JsonField = represented
+ /**
+ * Returns the raw JSON value of [representmentTimedOut].
+ *
+ * Unlike [representmentTimedOut], this method doesn't throw if the JSON field has an
+ * unexpected type.
+ */
+ @JsonProperty("representment_timed_out")
+ @ExcludeMissing
+ fun _representmentTimedOut(): JsonField = representmentTimedOut
+
+ /**
+ * Returns the raw JSON value of [userPrearbitrationAccepted].
+ *
+ * Unlike [userPrearbitrationAccepted], this method doesn't throw if the JSON field has
+ * an unexpected type.
+ */
+ @JsonProperty("user_prearbitration_accepted")
+ @ExcludeMissing
+ fun _userPrearbitrationAccepted(): JsonField =
+ userPrearbitrationAccepted
+
+ /**
+ * Returns the raw JSON value of [userPrearbitrationDeclined].
+ *
+ * Unlike [userPrearbitrationDeclined], this method doesn't throw if the JSON field has
+ * an unexpected type.
+ */
+ @JsonProperty("user_prearbitration_declined")
+ @ExcludeMissing
+ fun _userPrearbitrationDeclined(): JsonField =
+ userPrearbitrationDeclined
+
+ /**
+ * Returns the raw JSON value of [userPrearbitrationSubmitted].
+ *
+ * Unlike [userPrearbitrationSubmitted], this method doesn't throw if the JSON field has
+ * an unexpected type.
+ */
+ @JsonProperty("user_prearbitration_submitted")
+ @ExcludeMissing
+ fun _userPrearbitrationSubmitted(): JsonField =
+ userPrearbitrationSubmitted
+
+ /**
+ * Returns the raw JSON value of [userPrearbitrationTimedOut].
+ *
+ * Unlike [userPrearbitrationTimedOut], this method doesn't throw if the JSON field has
+ * an unexpected type.
+ */
+ @JsonProperty("user_prearbitration_timed_out")
+ @ExcludeMissing
+ fun _userPrearbitrationTimedOut(): JsonField =
+ userPrearbitrationTimedOut
+
+ /**
+ * Returns the raw JSON value of [userWithdrawalSubmitted].
+ *
+ * Unlike [userWithdrawalSubmitted], this method doesn't throw if the JSON field has an
+ * unexpected type.
+ */
+ @JsonProperty("user_withdrawal_submitted")
+ @ExcludeMissing
+ fun _userWithdrawalSubmitted(): JsonField =
+ userWithdrawalSubmitted
+
@JsonAnySetter
private fun putAdditionalProperty(key: String, value: JsonValue) {
additionalProperties.put(key, value)
@@ -2142,23 +2301,31 @@ private constructor(
private var attachmentFiles: JsonField>? = null
private var category: JsonField? = null
- private var chargebackAccepted: JsonValue? = null
- private var chargebackSubmitted: JsonValue? = null
- private var chargebackTimedOut: JsonValue? = null
+ private var chargebackAccepted: JsonField? = null
+ private var chargebackSubmitted: JsonField? = null
+ private var chargebackTimedOut: JsonField? = null
private var createdAt: JsonField? = null
private var disputeFinancialTransactionId: JsonField? = null
- private var merchantPrearbitrationDeclineSubmitted: JsonValue? = null
+ private var merchantPrearbitrationDeclineSubmitted:
+ JsonField? =
+ null
private var merchantPrearbitrationReceived:
JsonField? =
null
- private var merchantPrearbitrationTimedOut: JsonValue? = null
+ private var merchantPrearbitrationTimedOut:
+ JsonField? =
+ null
private var represented: JsonField? = null
- private var representmentTimedOut: JsonValue? = null
- private var userPrearbitrationAccepted: JsonValue? = null
- private var userPrearbitrationDeclined: JsonValue? = null
- private var userPrearbitrationSubmitted: JsonValue? = null
- private var userPrearbitrationTimedOut: JsonValue? = null
- private var userWithdrawalSubmitted: JsonValue? = null
+ private var representmentTimedOut: JsonField? = null
+ private var userPrearbitrationAccepted: JsonField? =
+ null
+ private var userPrearbitrationDeclined: JsonField? =
+ null
+ private var userPrearbitrationSubmitted: JsonField? =
+ null
+ private var userPrearbitrationTimedOut: JsonField? =
+ null
+ private var userWithdrawalSubmitted: JsonField? = null
private var additionalProperties: MutableMap = mutableMapOf()
@JvmSynthetic
@@ -2234,7 +2401,24 @@ private constructor(
* Visa Card Dispute Network Event, which represents that a chargeback has been
* accepted by the merchant.
*/
- fun chargebackAccepted(chargebackAccepted: JsonValue) = apply {
+ fun chargebackAccepted(chargebackAccepted: ChargebackAccepted?) =
+ chargebackAccepted(JsonField.ofNullable(chargebackAccepted))
+
+ /**
+ * Alias for calling [Builder.chargebackAccepted] with
+ * `chargebackAccepted.orElse(null)`.
+ */
+ fun chargebackAccepted(chargebackAccepted: Optional) =
+ chargebackAccepted(chargebackAccepted.getOrNull())
+
+ /**
+ * Sets [Builder.chargebackAccepted] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.chargebackAccepted] with a well-typed
+ * [ChargebackAccepted] value instead. This method is primarily for setting the
+ * field to an undocumented or not yet supported value.
+ */
+ fun chargebackAccepted(chargebackAccepted: JsonField) = apply {
this.chargebackAccepted = chargebackAccepted
}
@@ -2245,9 +2429,27 @@ private constructor(
* Visa Card Dispute Network Event, which represents that a chargeback has been
* submitted to the network.
*/
- fun chargebackSubmitted(chargebackSubmitted: JsonValue) = apply {
- this.chargebackSubmitted = chargebackSubmitted
- }
+ fun chargebackSubmitted(chargebackSubmitted: ChargebackSubmitted?) =
+ chargebackSubmitted(JsonField.ofNullable(chargebackSubmitted))
+
+ /**
+ * Alias for calling [Builder.chargebackSubmitted] with
+ * `chargebackSubmitted.orElse(null)`.
+ */
+ fun chargebackSubmitted(chargebackSubmitted: Optional) =
+ chargebackSubmitted(chargebackSubmitted.getOrNull())
+
+ /**
+ * Sets [Builder.chargebackSubmitted] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.chargebackSubmitted] with a well-typed
+ * [ChargebackSubmitted] value instead. This method is primarily for setting the
+ * field to an undocumented or not yet supported value.
+ */
+ fun chargebackSubmitted(chargebackSubmitted: JsonField) =
+ apply {
+ this.chargebackSubmitted = chargebackSubmitted
+ }
/**
* A Card Dispute Chargeback Timed Out Visa Network Event object. This field will be
@@ -2256,7 +2458,24 @@ private constructor(
* Visa Card Dispute Network Event, which represents that the chargeback has timed
* out in the user's favor.
*/
- fun chargebackTimedOut(chargebackTimedOut: JsonValue) = apply {
+ fun chargebackTimedOut(chargebackTimedOut: ChargebackTimedOut?) =
+ chargebackTimedOut(JsonField.ofNullable(chargebackTimedOut))
+
+ /**
+ * Alias for calling [Builder.chargebackTimedOut] with
+ * `chargebackTimedOut.orElse(null)`.
+ */
+ fun chargebackTimedOut(chargebackTimedOut: Optional) =
+ chargebackTimedOut(chargebackTimedOut.getOrNull())
+
+ /**
+ * Sets [Builder.chargebackTimedOut] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.chargebackTimedOut] with a well-typed
+ * [ChargebackTimedOut] value instead. This method is primarily for setting the
+ * field to an undocumented or not yet supported value.
+ */
+ fun chargebackTimedOut(chargebackTimedOut: JsonField) = apply {
this.chargebackTimedOut = chargebackTimedOut
}
@@ -2312,7 +2531,34 @@ private constructor(
* prearbitration request decision in their favor.
*/
fun merchantPrearbitrationDeclineSubmitted(
- merchantPrearbitrationDeclineSubmitted: JsonValue
+ merchantPrearbitrationDeclineSubmitted: MerchantPrearbitrationDeclineSubmitted?
+ ) =
+ merchantPrearbitrationDeclineSubmitted(
+ JsonField.ofNullable(merchantPrearbitrationDeclineSubmitted)
+ )
+
+ /**
+ * Alias for calling [Builder.merchantPrearbitrationDeclineSubmitted] with
+ * `merchantPrearbitrationDeclineSubmitted.orElse(null)`.
+ */
+ fun merchantPrearbitrationDeclineSubmitted(
+ merchantPrearbitrationDeclineSubmitted:
+ Optional
+ ) =
+ merchantPrearbitrationDeclineSubmitted(
+ merchantPrearbitrationDeclineSubmitted.getOrNull()
+ )
+
+ /**
+ * Sets [Builder.merchantPrearbitrationDeclineSubmitted] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.merchantPrearbitrationDeclineSubmitted] with a
+ * well-typed [MerchantPrearbitrationDeclineSubmitted] value instead. This method is
+ * primarily for setting the field to an undocumented or not yet supported value.
+ */
+ fun merchantPrearbitrationDeclineSubmitted(
+ merchantPrearbitrationDeclineSubmitted:
+ JsonField
) = apply {
this.merchantPrearbitrationDeclineSubmitted =
merchantPrearbitrationDeclineSubmitted
@@ -2358,10 +2604,31 @@ private constructor(
* prearbitration timed out Visa Card Dispute Network Event, which represents that
* the user has timed out responding to the merchant's prearbitration request.
*/
- fun merchantPrearbitrationTimedOut(merchantPrearbitrationTimedOut: JsonValue) =
- apply {
- this.merchantPrearbitrationTimedOut = merchantPrearbitrationTimedOut
- }
+ fun merchantPrearbitrationTimedOut(
+ merchantPrearbitrationTimedOut: MerchantPrearbitrationTimedOut?
+ ) =
+ merchantPrearbitrationTimedOut(
+ JsonField.ofNullable(merchantPrearbitrationTimedOut)
+ )
+
+ /**
+ * Alias for calling [Builder.merchantPrearbitrationTimedOut] with
+ * `merchantPrearbitrationTimedOut.orElse(null)`.
+ */
+ fun merchantPrearbitrationTimedOut(
+ merchantPrearbitrationTimedOut: Optional
+ ) = merchantPrearbitrationTimedOut(merchantPrearbitrationTimedOut.getOrNull())
+
+ /**
+ * Sets [Builder.merchantPrearbitrationTimedOut] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.merchantPrearbitrationTimedOut] with a
+ * well-typed [MerchantPrearbitrationTimedOut] value instead. This method is
+ * primarily for setting the field to an undocumented or not yet supported value.
+ */
+ fun merchantPrearbitrationTimedOut(
+ merchantPrearbitrationTimedOut: JsonField
+ ) = apply { this.merchantPrearbitrationTimedOut = merchantPrearbitrationTimedOut }
/**
* A Card Dispute Re-presented Visa Network Event object. This field will be present
@@ -2395,9 +2662,27 @@ private constructor(
* time-out Visa Card Dispute Network Event, which represents that the user did not
* respond to the re-presentment by the merchant within the time limit.
*/
- fun representmentTimedOut(representmentTimedOut: JsonValue) = apply {
- this.representmentTimedOut = representmentTimedOut
- }
+ fun representmentTimedOut(representmentTimedOut: RepresentmentTimedOut?) =
+ representmentTimedOut(JsonField.ofNullable(representmentTimedOut))
+
+ /**
+ * Alias for calling [Builder.representmentTimedOut] with
+ * `representmentTimedOut.orElse(null)`.
+ */
+ fun representmentTimedOut(representmentTimedOut: Optional) =
+ representmentTimedOut(representmentTimedOut.getOrNull())
+
+ /**
+ * Sets [Builder.representmentTimedOut] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.representmentTimedOut] with a well-typed
+ * [RepresentmentTimedOut] value instead. This method is primarily for setting the
+ * field to an undocumented or not yet supported value.
+ */
+ fun representmentTimedOut(representmentTimedOut: JsonField) =
+ apply {
+ this.representmentTimedOut = representmentTimedOut
+ }
/**
* A Card Dispute User Pre-Arbitration Accepted Visa Network Event object. This
@@ -2406,9 +2691,28 @@ private constructor(
* prearbitration accepted Visa Card Dispute Network Event, which represents that
* the merchant has accepted the user's prearbitration request in the user's favor.
*/
- fun userPrearbitrationAccepted(userPrearbitrationAccepted: JsonValue) = apply {
- this.userPrearbitrationAccepted = userPrearbitrationAccepted
- }
+ fun userPrearbitrationAccepted(
+ userPrearbitrationAccepted: UserPrearbitrationAccepted?
+ ) = userPrearbitrationAccepted(JsonField.ofNullable(userPrearbitrationAccepted))
+
+ /**
+ * Alias for calling [Builder.userPrearbitrationAccepted] with
+ * `userPrearbitrationAccepted.orElse(null)`.
+ */
+ fun userPrearbitrationAccepted(
+ userPrearbitrationAccepted: Optional
+ ) = userPrearbitrationAccepted(userPrearbitrationAccepted.getOrNull())
+
+ /**
+ * Sets [Builder.userPrearbitrationAccepted] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.userPrearbitrationAccepted] with a well-typed
+ * [UserPrearbitrationAccepted] value instead. This method is primarily for setting
+ * the field to an undocumented or not yet supported value.
+ */
+ fun userPrearbitrationAccepted(
+ userPrearbitrationAccepted: JsonField
+ ) = apply { this.userPrearbitrationAccepted = userPrearbitrationAccepted }
/**
* A Card Dispute User Pre-Arbitration Declined Visa Network Event object. This
@@ -2417,9 +2721,28 @@ private constructor(
* prearbitration declined Visa Card Dispute Network Event, which represents that
* the merchant has declined the user's prearbitration request.
*/
- fun userPrearbitrationDeclined(userPrearbitrationDeclined: JsonValue) = apply {
- this.userPrearbitrationDeclined = userPrearbitrationDeclined
- }
+ fun userPrearbitrationDeclined(
+ userPrearbitrationDeclined: UserPrearbitrationDeclined?
+ ) = userPrearbitrationDeclined(JsonField.ofNullable(userPrearbitrationDeclined))
+
+ /**
+ * Alias for calling [Builder.userPrearbitrationDeclined] with
+ * `userPrearbitrationDeclined.orElse(null)`.
+ */
+ fun userPrearbitrationDeclined(
+ userPrearbitrationDeclined: Optional
+ ) = userPrearbitrationDeclined(userPrearbitrationDeclined.getOrNull())
+
+ /**
+ * Sets [Builder.userPrearbitrationDeclined] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.userPrearbitrationDeclined] with a well-typed
+ * [UserPrearbitrationDeclined] value instead. This method is primarily for setting
+ * the field to an undocumented or not yet supported value.
+ */
+ fun userPrearbitrationDeclined(
+ userPrearbitrationDeclined: JsonField
+ ) = apply { this.userPrearbitrationDeclined = userPrearbitrationDeclined }
/**
* A Card Dispute User Pre-Arbitration Submitted Visa Network Event object. This
@@ -2428,9 +2751,28 @@ private constructor(
* prearbitration submitted Visa Card Dispute Network Event, which represents that
* the user's request for prearbitration has been submitted to the network.
*/
- fun userPrearbitrationSubmitted(userPrearbitrationSubmitted: JsonValue) = apply {
- this.userPrearbitrationSubmitted = userPrearbitrationSubmitted
- }
+ fun userPrearbitrationSubmitted(
+ userPrearbitrationSubmitted: UserPrearbitrationSubmitted?
+ ) = userPrearbitrationSubmitted(JsonField.ofNullable(userPrearbitrationSubmitted))
+
+ /**
+ * Alias for calling [Builder.userPrearbitrationSubmitted] with
+ * `userPrearbitrationSubmitted.orElse(null)`.
+ */
+ fun userPrearbitrationSubmitted(
+ userPrearbitrationSubmitted: Optional
+ ) = userPrearbitrationSubmitted(userPrearbitrationSubmitted.getOrNull())
+
+ /**
+ * Sets [Builder.userPrearbitrationSubmitted] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.userPrearbitrationSubmitted] with a well-typed
+ * [UserPrearbitrationSubmitted] value instead. This method is primarily for setting
+ * the field to an undocumented or not yet supported value.
+ */
+ fun userPrearbitrationSubmitted(
+ userPrearbitrationSubmitted: JsonField
+ ) = apply { this.userPrearbitrationSubmitted = userPrearbitrationSubmitted }
/**
* A Card Dispute User Pre-Arbitration Timed Out Visa Network Event object. This
@@ -2439,9 +2781,28 @@ private constructor(
* prearbitration timed out Visa Card Dispute Network Event, which represents that
* the merchant has timed out responding to the user's prearbitration request.
*/
- fun userPrearbitrationTimedOut(userPrearbitrationTimedOut: JsonValue) = apply {
- this.userPrearbitrationTimedOut = userPrearbitrationTimedOut
- }
+ fun userPrearbitrationTimedOut(
+ userPrearbitrationTimedOut: UserPrearbitrationTimedOut?
+ ) = userPrearbitrationTimedOut(JsonField.ofNullable(userPrearbitrationTimedOut))
+
+ /**
+ * Alias for calling [Builder.userPrearbitrationTimedOut] with
+ * `userPrearbitrationTimedOut.orElse(null)`.
+ */
+ fun userPrearbitrationTimedOut(
+ userPrearbitrationTimedOut: Optional
+ ) = userPrearbitrationTimedOut(userPrearbitrationTimedOut.getOrNull())
+
+ /**
+ * Sets [Builder.userPrearbitrationTimedOut] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.userPrearbitrationTimedOut] with a well-typed
+ * [UserPrearbitrationTimedOut] value instead. This method is primarily for setting
+ * the field to an undocumented or not yet supported value.
+ */
+ fun userPrearbitrationTimedOut(
+ userPrearbitrationTimedOut: JsonField
+ ) = apply { this.userPrearbitrationTimedOut = userPrearbitrationTimedOut }
/**
* A Card Dispute User Withdrawal Submitted Visa Network Event object. This field
@@ -2450,9 +2811,27 @@ private constructor(
* submitted Visa Card Dispute Network Event, which represents that the user's
* request to withdraw the dispute has been submitted to the network.
*/
- fun userWithdrawalSubmitted(userWithdrawalSubmitted: JsonValue) = apply {
- this.userWithdrawalSubmitted = userWithdrawalSubmitted
- }
+ fun userWithdrawalSubmitted(userWithdrawalSubmitted: UserWithdrawalSubmitted?) =
+ userWithdrawalSubmitted(JsonField.ofNullable(userWithdrawalSubmitted))
+
+ /**
+ * Alias for calling [Builder.userWithdrawalSubmitted] with
+ * `userWithdrawalSubmitted.orElse(null)`.
+ */
+ fun userWithdrawalSubmitted(
+ userWithdrawalSubmitted: Optional
+ ) = userWithdrawalSubmitted(userWithdrawalSubmitted.getOrNull())
+
+ /**
+ * Sets [Builder.userWithdrawalSubmitted] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.userWithdrawalSubmitted] with a well-typed
+ * [UserWithdrawalSubmitted] value instead. This method is primarily for setting the
+ * field to an undocumented or not yet supported value.
+ */
+ fun userWithdrawalSubmitted(
+ userWithdrawalSubmitted: JsonField
+ ) = apply { this.userWithdrawalSubmitted = userWithdrawalSubmitted }
fun additionalProperties(additionalProperties: Map) = apply {
this.additionalProperties.clear()
@@ -2548,10 +2927,21 @@ private constructor(
attachmentFiles().forEach { it.validate() }
category().validate()
+ chargebackAccepted().ifPresent { it.validate() }
+ chargebackSubmitted().ifPresent { it.validate() }
+ chargebackTimedOut().ifPresent { it.validate() }
createdAt()
disputeFinancialTransactionId()
+ merchantPrearbitrationDeclineSubmitted().ifPresent { it.validate() }
merchantPrearbitrationReceived().ifPresent { it.validate() }
+ merchantPrearbitrationTimedOut().ifPresent { it.validate() }
represented().ifPresent { it.validate() }
+ representmentTimedOut().ifPresent { it.validate() }
+ userPrearbitrationAccepted().ifPresent { it.validate() }
+ userPrearbitrationDeclined().ifPresent { it.validate() }
+ userPrearbitrationSubmitted().ifPresent { it.validate() }
+ userPrearbitrationTimedOut().ifPresent { it.validate() }
+ userWithdrawalSubmitted().ifPresent { it.validate() }
validated = true
}
@@ -2573,10 +2963,22 @@ private constructor(
internal fun validity(): Int =
(attachmentFiles.asKnown().getOrNull()?.sumOf { it.validity().toInt() } ?: 0) +
(category.asKnown().getOrNull()?.validity() ?: 0) +
+ (chargebackAccepted.asKnown().getOrNull()?.validity() ?: 0) +
+ (chargebackSubmitted.asKnown().getOrNull()?.validity() ?: 0) +
+ (chargebackTimedOut.asKnown().getOrNull()?.validity() ?: 0) +
(if (createdAt.asKnown().isPresent) 1 else 0) +
(if (disputeFinancialTransactionId.asKnown().isPresent) 1 else 0) +
+ (merchantPrearbitrationDeclineSubmitted.asKnown().getOrNull()?.validity()
+ ?: 0) +
(merchantPrearbitrationReceived.asKnown().getOrNull()?.validity() ?: 0) +
- (represented.asKnown().getOrNull()?.validity() ?: 0)
+ (merchantPrearbitrationTimedOut.asKnown().getOrNull()?.validity() ?: 0) +
+ (represented.asKnown().getOrNull()?.validity() ?: 0) +
+ (representmentTimedOut.asKnown().getOrNull()?.validity() ?: 0) +
+ (userPrearbitrationAccepted.asKnown().getOrNull()?.validity() ?: 0) +
+ (userPrearbitrationDeclined.asKnown().getOrNull()?.validity() ?: 0) +
+ (userPrearbitrationSubmitted.asKnown().getOrNull()?.validity() ?: 0) +
+ (userPrearbitrationTimedOut.asKnown().getOrNull()?.validity() ?: 0) +
+ (userWithdrawalSubmitted.asKnown().getOrNull()?.validity() ?: 0)
class AttachmentFile
@JsonCreator(mode = JsonCreator.Mode.DISABLED)
@@ -3111,266 +3513,17 @@ private constructor(
}
/**
- * A Card Dispute Merchant Pre-Arbitration Received Visa Network Event object. This
- * field will be present in the JSON response if and only if `category` is equal to
- * `merchant_prearbitration_received`. Contains the details specific to a merchant
- * prearbitration received Visa Card Dispute Network Event, which represents that the
- * merchant has issued a prearbitration request in the user's favor.
+ * A Card Dispute Chargeback Accepted Visa Network Event object. This field will be
+ * present in the JSON response if and only if `category` is equal to
+ * `chargeback_accepted`. Contains the details specific to a chargeback accepted Visa
+ * Card Dispute Network Event, which represents that a chargeback has been accepted by
+ * the merchant.
*/
- class MerchantPrearbitrationReceived
+ class ChargebackAccepted
@JsonCreator(mode = JsonCreator.Mode.DISABLED)
- private constructor(
- private val cardholderNoLongerDisputes: JsonField,
- private val compellingEvidence: JsonField,
- private val creditOrReversalProcessed: JsonField,
- private val delayedChargeTransaction: JsonField,
- private val evidenceOfImprint: JsonField,
- private val invalidDispute: JsonField,
- private val nonFiatCurrencyOrNonFungibleTokenReceived:
- JsonField,
- private val priorUndisputedNonFraudTransactions:
- JsonField,
- private val reason: JsonField,
- private val additionalProperties: MutableMap,
- ) {
-
- @JsonCreator
- private constructor(
- @JsonProperty("cardholder_no_longer_disputes")
- @ExcludeMissing
- cardholderNoLongerDisputes: JsonField =
- JsonMissing.of(),
- @JsonProperty("compelling_evidence")
- @ExcludeMissing
- compellingEvidence: JsonField = JsonMissing.of(),
- @JsonProperty("credit_or_reversal_processed")
- @ExcludeMissing
- creditOrReversalProcessed: JsonField =
- JsonMissing.of(),
- @JsonProperty("delayed_charge_transaction")
- @ExcludeMissing
- delayedChargeTransaction: JsonField =
- JsonMissing.of(),
- @JsonProperty("evidence_of_imprint")
- @ExcludeMissing
- evidenceOfImprint: JsonField = JsonMissing.of(),
- @JsonProperty("invalid_dispute")
- @ExcludeMissing
- invalidDispute: JsonField = JsonMissing.of(),
- @JsonProperty("non_fiat_currency_or_non_fungible_token_received")
- @ExcludeMissing
- nonFiatCurrencyOrNonFungibleTokenReceived:
- JsonField =
- JsonMissing.of(),
- @JsonProperty("prior_undisputed_non_fraud_transactions")
- @ExcludeMissing
- priorUndisputedNonFraudTransactions:
- JsonField =
- JsonMissing.of(),
- @JsonProperty("reason")
- @ExcludeMissing
- reason: JsonField = JsonMissing.of(),
- ) : this(
- cardholderNoLongerDisputes,
- compellingEvidence,
- creditOrReversalProcessed,
- delayedChargeTransaction,
- evidenceOfImprint,
- invalidDispute,
- nonFiatCurrencyOrNonFungibleTokenReceived,
- priorUndisputedNonFraudTransactions,
- reason,
- mutableMapOf(),
- )
-
- /**
- * Cardholder no longer disputes details. Present if and only if `reason` is
- * `cardholder_no_longer_disputes`.
- *
- * @throws IncreaseInvalidDataException if the JSON field has an unexpected type
- * (e.g. if the server responded with an unexpected value).
- */
- fun cardholderNoLongerDisputes(): Optional =
- cardholderNoLongerDisputes.getOptional("cardholder_no_longer_disputes")
-
- /**
- * Compelling evidence details. Present if and only if `reason` is
- * `compelling_evidence`.
- *
- * @throws IncreaseInvalidDataException if the JSON field has an unexpected type
- * (e.g. if the server responded with an unexpected value).
- */
- fun compellingEvidence(): Optional =
- compellingEvidence.getOptional("compelling_evidence")
-
- /**
- * Credit or reversal processed details. Present if and only if `reason` is
- * `credit_or_reversal_processed`.
- *
- * @throws IncreaseInvalidDataException if the JSON field has an unexpected type
- * (e.g. if the server responded with an unexpected value).
- */
- fun creditOrReversalProcessed(): Optional =
- creditOrReversalProcessed.getOptional("credit_or_reversal_processed")
-
- /**
- * Delayed charge transaction details. Present if and only if `reason` is
- * `delayed_charge_transaction`.
- *
- * @throws IncreaseInvalidDataException if the JSON field has an unexpected type
- * (e.g. if the server responded with an unexpected value).
- */
- fun delayedChargeTransaction(): Optional =
- delayedChargeTransaction.getOptional("delayed_charge_transaction")
-
- /**
- * Evidence of imprint details. Present if and only if `reason` is
- * `evidence_of_imprint`.
- *
- * @throws IncreaseInvalidDataException if the JSON field has an unexpected type
- * (e.g. if the server responded with an unexpected value).
- */
- fun evidenceOfImprint(): Optional =
- evidenceOfImprint.getOptional("evidence_of_imprint")
-
- /**
- * Invalid dispute details. Present if and only if `reason` is `invalid_dispute`.
- *
- * @throws IncreaseInvalidDataException if the JSON field has an unexpected type
- * (e.g. if the server responded with an unexpected value).
- */
- fun invalidDispute(): Optional =
- invalidDispute.getOptional("invalid_dispute")
-
- /**
- * Non-fiat currency or non-fungible token received details. Present if and only if
- * `reason` is `non_fiat_currency_or_non_fungible_token_received`.
- *
- * @throws IncreaseInvalidDataException if the JSON field has an unexpected type
- * (e.g. if the server responded with an unexpected value).
- */
- fun nonFiatCurrencyOrNonFungibleTokenReceived():
- Optional =
- nonFiatCurrencyOrNonFungibleTokenReceived.getOptional(
- "non_fiat_currency_or_non_fungible_token_received"
- )
-
- /**
- * Prior undisputed non-fraud transactions details. Present if and only if `reason`
- * is `prior_undisputed_non_fraud_transactions`.
- *
- * @throws IncreaseInvalidDataException if the JSON field has an unexpected type
- * (e.g. if the server responded with an unexpected value).
- */
- fun priorUndisputedNonFraudTransactions():
- Optional =
- priorUndisputedNonFraudTransactions.getOptional(
- "prior_undisputed_non_fraud_transactions"
- )
-
- /**
- * The reason the merchant re-presented the dispute.
- *
- * @throws IncreaseInvalidDataException if the JSON field has an unexpected type or
- * is unexpectedly missing or null (e.g. if the server responded with an
- * unexpected value).
- */
- fun reason(): Reason = reason.getRequired("reason")
-
- /**
- * Returns the raw JSON value of [cardholderNoLongerDisputes].
- *
- * Unlike [cardholderNoLongerDisputes], this method doesn't throw if the JSON field
- * has an unexpected type.
- */
- @JsonProperty("cardholder_no_longer_disputes")
- @ExcludeMissing
- fun _cardholderNoLongerDisputes(): JsonField =
- cardholderNoLongerDisputes
-
- /**
- * Returns the raw JSON value of [compellingEvidence].
- *
- * Unlike [compellingEvidence], this method doesn't throw if the JSON field has an
- * unexpected type.
- */
- @JsonProperty("compelling_evidence")
- @ExcludeMissing
- fun _compellingEvidence(): JsonField = compellingEvidence
-
- /**
- * Returns the raw JSON value of [creditOrReversalProcessed].
- *
- * Unlike [creditOrReversalProcessed], this method doesn't throw if the JSON field
- * has an unexpected type.
- */
- @JsonProperty("credit_or_reversal_processed")
- @ExcludeMissing
- fun _creditOrReversalProcessed(): JsonField =
- creditOrReversalProcessed
-
- /**
- * Returns the raw JSON value of [delayedChargeTransaction].
- *
- * Unlike [delayedChargeTransaction], this method doesn't throw if the JSON field
- * has an unexpected type.
- */
- @JsonProperty("delayed_charge_transaction")
- @ExcludeMissing
- fun _delayedChargeTransaction(): JsonField =
- delayedChargeTransaction
-
- /**
- * Returns the raw JSON value of [evidenceOfImprint].
- *
- * Unlike [evidenceOfImprint], this method doesn't throw if the JSON field has an
- * unexpected type.
- */
- @JsonProperty("evidence_of_imprint")
- @ExcludeMissing
- fun _evidenceOfImprint(): JsonField = evidenceOfImprint
-
- /**
- * Returns the raw JSON value of [invalidDispute].
- *
- * Unlike [invalidDispute], this method doesn't throw if the JSON field has an
- * unexpected type.
- */
- @JsonProperty("invalid_dispute")
- @ExcludeMissing
- fun _invalidDispute(): JsonField = invalidDispute
+ private constructor(private val additionalProperties: MutableMap) {
- /**
- * Returns the raw JSON value of [nonFiatCurrencyOrNonFungibleTokenReceived].
- *
- * Unlike [nonFiatCurrencyOrNonFungibleTokenReceived], this method doesn't throw if
- * the JSON field has an unexpected type.
- */
- @JsonProperty("non_fiat_currency_or_non_fungible_token_received")
- @ExcludeMissing
- fun _nonFiatCurrencyOrNonFungibleTokenReceived():
- JsonField =
- nonFiatCurrencyOrNonFungibleTokenReceived
-
- /**
- * Returns the raw JSON value of [priorUndisputedNonFraudTransactions].
- *
- * Unlike [priorUndisputedNonFraudTransactions], this method doesn't throw if the
- * JSON field has an unexpected type.
- */
- @JsonProperty("prior_undisputed_non_fraud_transactions")
- @ExcludeMissing
- fun _priorUndisputedNonFraudTransactions():
- JsonField =
- priorUndisputedNonFraudTransactions
-
- /**
- * Returns the raw JSON value of [reason].
- *
- * Unlike [reason], this method doesn't throw if the JSON field has an unexpected
- * type.
- */
- @JsonProperty("reason") @ExcludeMissing fun _reason(): JsonField = reason
+ @JsonCreator private constructor() : this(mutableMapOf())
@JsonAnySetter
private fun putAdditionalProperty(key: String, value: JsonValue) {
@@ -3388,317 +3541,140 @@ private constructor(
/**
* Returns a mutable builder for constructing an instance of
- * [MerchantPrearbitrationReceived].
- *
- * The following fields are required:
- * ```java
- * .cardholderNoLongerDisputes()
- * .compellingEvidence()
- * .creditOrReversalProcessed()
- * .delayedChargeTransaction()
- * .evidenceOfImprint()
- * .invalidDispute()
- * .nonFiatCurrencyOrNonFungibleTokenReceived()
- * .priorUndisputedNonFraudTransactions()
- * .reason()
- * ```
+ * [ChargebackAccepted].
*/
@JvmStatic fun builder() = Builder()
}
- /** A builder for [MerchantPrearbitrationReceived]. */
+ /** A builder for [ChargebackAccepted]. */
class Builder internal constructor() {
- private var cardholderNoLongerDisputes: JsonField? =
- null
- private var compellingEvidence: JsonField? = null
- private var creditOrReversalProcessed: JsonField? =
- null
- private var delayedChargeTransaction: JsonField? =
- null
- private var evidenceOfImprint: JsonField? = null
- private var invalidDispute: JsonField? = null
- private var nonFiatCurrencyOrNonFungibleTokenReceived:
- JsonField? =
- null
- private var priorUndisputedNonFraudTransactions:
- JsonField? =
- null
- private var reason: JsonField? = null
private var additionalProperties: MutableMap = mutableMapOf()
@JvmSynthetic
- internal fun from(
- merchantPrearbitrationReceived: MerchantPrearbitrationReceived
- ) = apply {
- cardholderNoLongerDisputes =
- merchantPrearbitrationReceived.cardholderNoLongerDisputes
- compellingEvidence = merchantPrearbitrationReceived.compellingEvidence
- creditOrReversalProcessed =
- merchantPrearbitrationReceived.creditOrReversalProcessed
- delayedChargeTransaction =
- merchantPrearbitrationReceived.delayedChargeTransaction
- evidenceOfImprint = merchantPrearbitrationReceived.evidenceOfImprint
- invalidDispute = merchantPrearbitrationReceived.invalidDispute
- nonFiatCurrencyOrNonFungibleTokenReceived =
- merchantPrearbitrationReceived.nonFiatCurrencyOrNonFungibleTokenReceived
- priorUndisputedNonFraudTransactions =
- merchantPrearbitrationReceived.priorUndisputedNonFraudTransactions
- reason = merchantPrearbitrationReceived.reason
+ internal fun from(chargebackAccepted: ChargebackAccepted) = apply {
additionalProperties =
- merchantPrearbitrationReceived.additionalProperties.toMutableMap()
+ chargebackAccepted.additionalProperties.toMutableMap()
}
- /**
- * Cardholder no longer disputes details. Present if and only if `reason` is
- * `cardholder_no_longer_disputes`.
- */
- fun cardholderNoLongerDisputes(
- cardholderNoLongerDisputes: CardholderNoLongerDisputes?
- ) = cardholderNoLongerDisputes(JsonField.ofNullable(cardholderNoLongerDisputes))
-
- /**
- * Alias for calling [Builder.cardholderNoLongerDisputes] with
- * `cardholderNoLongerDisputes.orElse(null)`.
- */
- fun cardholderNoLongerDisputes(
- cardholderNoLongerDisputes: Optional
- ) = cardholderNoLongerDisputes(cardholderNoLongerDisputes.getOrNull())
-
- /**
- * Sets [Builder.cardholderNoLongerDisputes] to an arbitrary JSON value.
- *
- * You should usually call [Builder.cardholderNoLongerDisputes] with a
- * well-typed [CardholderNoLongerDisputes] value instead. This method is
- * primarily for setting the field to an undocumented or not yet supported
- * value.
- */
- fun cardholderNoLongerDisputes(
- cardholderNoLongerDisputes: JsonField
- ) = apply { this.cardholderNoLongerDisputes = cardholderNoLongerDisputes }
-
- /**
- * Compelling evidence details. Present if and only if `reason` is
- * `compelling_evidence`.
- */
- fun compellingEvidence(compellingEvidence: CompellingEvidence?) =
- compellingEvidence(JsonField.ofNullable(compellingEvidence))
+ fun additionalProperties(additionalProperties: Map) = apply {
+ this.additionalProperties.clear()
+ putAllAdditionalProperties(additionalProperties)
+ }
- /**
- * Alias for calling [Builder.compellingEvidence] with
- * `compellingEvidence.orElse(null)`.
- */
- fun compellingEvidence(compellingEvidence: Optional) =
- compellingEvidence(compellingEvidence.getOrNull())
+ fun putAdditionalProperty(key: String, value: JsonValue) = apply {
+ additionalProperties.put(key, value)
+ }
- /**
- * Sets [Builder.compellingEvidence] to an arbitrary JSON value.
- *
- * You should usually call [Builder.compellingEvidence] with a well-typed
- * [CompellingEvidence] value instead. This method is primarily for setting the
- * field to an undocumented or not yet supported value.
- */
- fun compellingEvidence(compellingEvidence: JsonField) =
+ fun putAllAdditionalProperties(additionalProperties: Map) =
apply {
- this.compellingEvidence = compellingEvidence
+ this.additionalProperties.putAll(additionalProperties)
}
- /**
- * Credit or reversal processed details. Present if and only if `reason` is
- * `credit_or_reversal_processed`.
- */
- fun creditOrReversalProcessed(
- creditOrReversalProcessed: CreditOrReversalProcessed?
- ) = creditOrReversalProcessed(JsonField.ofNullable(creditOrReversalProcessed))
+ fun removeAdditionalProperty(key: String) = apply {
+ additionalProperties.remove(key)
+ }
- /**
- * Alias for calling [Builder.creditOrReversalProcessed] with
- * `creditOrReversalProcessed.orElse(null)`.
- */
- fun creditOrReversalProcessed(
- creditOrReversalProcessed: Optional
- ) = creditOrReversalProcessed(creditOrReversalProcessed.getOrNull())
+ fun removeAllAdditionalProperties(keys: Set) = apply {
+ keys.forEach(::removeAdditionalProperty)
+ }
/**
- * Sets [Builder.creditOrReversalProcessed] to an arbitrary JSON value.
+ * Returns an immutable instance of [ChargebackAccepted].
*
- * You should usually call [Builder.creditOrReversalProcessed] with a well-typed
- * [CreditOrReversalProcessed] value instead. This method is primarily for
- * setting the field to an undocumented or not yet supported value.
+ * Further updates to this [Builder] will not mutate the returned instance.
*/
- fun creditOrReversalProcessed(
- creditOrReversalProcessed: JsonField
- ) = apply { this.creditOrReversalProcessed = creditOrReversalProcessed }
+ fun build(): ChargebackAccepted =
+ ChargebackAccepted(additionalProperties.toMutableMap())
+ }
- /**
- * Delayed charge transaction details. Present if and only if `reason` is
- * `delayed_charge_transaction`.
- */
- fun delayedChargeTransaction(
- delayedChargeTransaction: DelayedChargeTransaction?
- ) = delayedChargeTransaction(JsonField.ofNullable(delayedChargeTransaction))
+ private var validated: Boolean = false
- /**
- * Alias for calling [Builder.delayedChargeTransaction] with
- * `delayedChargeTransaction.orElse(null)`.
- */
- fun delayedChargeTransaction(
- delayedChargeTransaction: Optional
- ) = delayedChargeTransaction(delayedChargeTransaction.getOrNull())
+ fun validate(): ChargebackAccepted = apply {
+ if (validated) {
+ return@apply
+ }
- /**
- * Sets [Builder.delayedChargeTransaction] to an arbitrary JSON value.
- *
- * You should usually call [Builder.delayedChargeTransaction] with a well-typed
- * [DelayedChargeTransaction] value instead. This method is primarily for
- * setting the field to an undocumented or not yet supported value.
- */
- fun delayedChargeTransaction(
- delayedChargeTransaction: JsonField
- ) = apply { this.delayedChargeTransaction = delayedChargeTransaction }
+ validated = true
+ }
- /**
- * Evidence of imprint details. Present if and only if `reason` is
- * `evidence_of_imprint`.
- */
- fun evidenceOfImprint(evidenceOfImprint: EvidenceOfImprint?) =
- evidenceOfImprint(JsonField.ofNullable(evidenceOfImprint))
+ fun isValid(): Boolean =
+ try {
+ validate()
+ true
+ } catch (e: IncreaseInvalidDataException) {
+ false
+ }
- /**
- * Alias for calling [Builder.evidenceOfImprint] with
- * `evidenceOfImprint.orElse(null)`.
- */
- fun evidenceOfImprint(evidenceOfImprint: Optional) =
- evidenceOfImprint(evidenceOfImprint.getOrNull())
+ /**
+ * 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 = 0
- /**
- * Sets [Builder.evidenceOfImprint] to an arbitrary JSON value.
- *
- * You should usually call [Builder.evidenceOfImprint] with a well-typed
- * [EvidenceOfImprint] value instead. This method is primarily for setting the
- * field to an undocumented or not yet supported value.
- */
- fun evidenceOfImprint(evidenceOfImprint: JsonField) = apply {
- this.evidenceOfImprint = evidenceOfImprint
+ override fun equals(other: Any?): Boolean {
+ if (this === other) {
+ return true
}
- /**
- * Invalid dispute details. Present if and only if `reason` is
- * `invalid_dispute`.
- */
- fun invalidDispute(invalidDispute: InvalidDispute?) =
- invalidDispute(JsonField.ofNullable(invalidDispute))
+ return other is ChargebackAccepted &&
+ additionalProperties == other.additionalProperties
+ }
- /**
- * Alias for calling [Builder.invalidDispute] with
- * `invalidDispute.orElse(null)`.
- */
- fun invalidDispute(invalidDispute: Optional) =
- invalidDispute(invalidDispute.getOrNull())
+ private val hashCode: Int by lazy { Objects.hash(additionalProperties) }
- /**
- * Sets [Builder.invalidDispute] to an arbitrary JSON value.
- *
- * You should usually call [Builder.invalidDispute] with a well-typed
- * [InvalidDispute] value instead. This method is primarily for setting the
- * field to an undocumented or not yet supported value.
- */
- fun invalidDispute(invalidDispute: JsonField) = apply {
- this.invalidDispute = invalidDispute
- }
+ override fun hashCode(): Int = hashCode
- /**
- * Non-fiat currency or non-fungible token received details. Present if and only
- * if `reason` is `non_fiat_currency_or_non_fungible_token_received`.
- */
- fun nonFiatCurrencyOrNonFungibleTokenReceived(
- nonFiatCurrencyOrNonFungibleTokenReceived:
- NonFiatCurrencyOrNonFungibleTokenReceived?
- ) =
- nonFiatCurrencyOrNonFungibleTokenReceived(
- JsonField.ofNullable(nonFiatCurrencyOrNonFungibleTokenReceived)
- )
+ override fun toString() =
+ "ChargebackAccepted{additionalProperties=$additionalProperties}"
+ }
- /**
- * Alias for calling [Builder.nonFiatCurrencyOrNonFungibleTokenReceived] with
- * `nonFiatCurrencyOrNonFungibleTokenReceived.orElse(null)`.
- */
- fun nonFiatCurrencyOrNonFungibleTokenReceived(
- nonFiatCurrencyOrNonFungibleTokenReceived:
- Optional
- ) =
- nonFiatCurrencyOrNonFungibleTokenReceived(
- nonFiatCurrencyOrNonFungibleTokenReceived.getOrNull()
- )
+ /**
+ * A Card Dispute Chargeback Submitted Visa Network Event object. This field will be
+ * present in the JSON response if and only if `category` is equal to
+ * `chargeback_submitted`. Contains the details specific to a chargeback submitted Visa
+ * Card Dispute Network Event, which represents that a chargeback has been submitted to
+ * the network.
+ */
+ class ChargebackSubmitted
+ @JsonCreator(mode = JsonCreator.Mode.DISABLED)
+ private constructor(private val additionalProperties: MutableMap) {
- /**
- * Sets [Builder.nonFiatCurrencyOrNonFungibleTokenReceived] to an arbitrary JSON
- * value.
- *
- * You should usually call [Builder.nonFiatCurrencyOrNonFungibleTokenReceived]
- * with a well-typed [NonFiatCurrencyOrNonFungibleTokenReceived] value instead.
- * This method is primarily for setting the field to an undocumented or not yet
- * supported value.
- */
- fun nonFiatCurrencyOrNonFungibleTokenReceived(
- nonFiatCurrencyOrNonFungibleTokenReceived:
- JsonField
- ) = apply {
- this.nonFiatCurrencyOrNonFungibleTokenReceived =
- nonFiatCurrencyOrNonFungibleTokenReceived
- }
+ @JsonCreator private constructor() : this(mutableMapOf())
- /**
- * Prior undisputed non-fraud transactions details. Present if and only if
- * `reason` is `prior_undisputed_non_fraud_transactions`.
- */
- fun priorUndisputedNonFraudTransactions(
- priorUndisputedNonFraudTransactions: PriorUndisputedNonFraudTransactions?
- ) =
- priorUndisputedNonFraudTransactions(
- JsonField.ofNullable(priorUndisputedNonFraudTransactions)
- )
+ @JsonAnySetter
+ private fun putAdditionalProperty(key: String, value: JsonValue) {
+ additionalProperties.put(key, value)
+ }
- /**
- * Alias for calling [Builder.priorUndisputedNonFraudTransactions] with
- * `priorUndisputedNonFraudTransactions.orElse(null)`.
- */
- fun priorUndisputedNonFraudTransactions(
- priorUndisputedNonFraudTransactions:
- Optional
- ) =
- priorUndisputedNonFraudTransactions(
- priorUndisputedNonFraudTransactions.getOrNull()
- )
+ @JsonAnyGetter
+ @ExcludeMissing
+ fun _additionalProperties(): Map =
+ Collections.unmodifiableMap(additionalProperties)
- /**
- * Sets [Builder.priorUndisputedNonFraudTransactions] to an arbitrary JSON
- * value.
- *
- * You should usually call [Builder.priorUndisputedNonFraudTransactions] with a
- * well-typed [PriorUndisputedNonFraudTransactions] value instead. This method
- * is primarily for setting the field to an undocumented or not yet supported
- * value.
- */
- fun priorUndisputedNonFraudTransactions(
- priorUndisputedNonFraudTransactions:
- JsonField
- ) = apply {
- this.priorUndisputedNonFraudTransactions =
- priorUndisputedNonFraudTransactions
- }
+ fun toBuilder() = Builder().from(this)
- /** The reason the merchant re-presented the dispute. */
- fun reason(reason: Reason) = reason(JsonField.of(reason))
+ companion object {
/**
- * Sets [Builder.reason] to an arbitrary JSON value.
- *
- * You should usually call [Builder.reason] with a well-typed [Reason] value
- * instead. This method is primarily for setting the field to an undocumented or
- * not yet supported value.
+ * Returns a mutable builder for constructing an instance of
+ * [ChargebackSubmitted].
*/
- fun reason(reason: JsonField) = apply { this.reason = reason }
+ @JvmStatic fun builder() = Builder()
+ }
+
+ /** A builder for [ChargebackSubmitted]. */
+ class Builder internal constructor() {
+
+ private var additionalProperties: MutableMap = mutableMapOf()
+
+ @JvmSynthetic
+ internal fun from(chargebackSubmitted: ChargebackSubmitted) = apply {
+ additionalProperties =
+ chargebackSubmitted.additionalProperties.toMutableMap()
+ }
fun additionalProperties(additionalProperties: Map) = apply {
this.additionalProperties.clear()
@@ -3723,62 +3699,21 @@ private constructor(
}
/**
- * Returns an immutable instance of [MerchantPrearbitrationReceived].
+ * Returns an immutable instance of [ChargebackSubmitted].
*
* Further updates to this [Builder] will not mutate the returned instance.
- *
- * The following fields are required:
- * ```java
- * .cardholderNoLongerDisputes()
- * .compellingEvidence()
- * .creditOrReversalProcessed()
- * .delayedChargeTransaction()
- * .evidenceOfImprint()
- * .invalidDispute()
- * .nonFiatCurrencyOrNonFungibleTokenReceived()
- * .priorUndisputedNonFraudTransactions()
- * .reason()
- * ```
- *
- * @throws IllegalStateException if any required field is unset.
*/
- fun build(): MerchantPrearbitrationReceived =
- MerchantPrearbitrationReceived(
- checkRequired("cardholderNoLongerDisputes", cardholderNoLongerDisputes),
- checkRequired("compellingEvidence", compellingEvidence),
- checkRequired("creditOrReversalProcessed", creditOrReversalProcessed),
- checkRequired("delayedChargeTransaction", delayedChargeTransaction),
- checkRequired("evidenceOfImprint", evidenceOfImprint),
- checkRequired("invalidDispute", invalidDispute),
- checkRequired(
- "nonFiatCurrencyOrNonFungibleTokenReceived",
- nonFiatCurrencyOrNonFungibleTokenReceived,
- ),
- checkRequired(
- "priorUndisputedNonFraudTransactions",
- priorUndisputedNonFraudTransactions,
- ),
- checkRequired("reason", reason),
- additionalProperties.toMutableMap(),
- )
+ fun build(): ChargebackSubmitted =
+ ChargebackSubmitted(additionalProperties.toMutableMap())
}
private var validated: Boolean = false
- fun validate(): MerchantPrearbitrationReceived = apply {
+ fun validate(): ChargebackSubmitted = apply {
if (validated) {
return@apply
}
- cardholderNoLongerDisputes().ifPresent { it.validate() }
- compellingEvidence().ifPresent { it.validate() }
- creditOrReversalProcessed().ifPresent { it.validate() }
- delayedChargeTransaction().ifPresent { it.validate() }
- evidenceOfImprint().ifPresent { it.validate() }
- invalidDispute().ifPresent { it.validate() }
- nonFiatCurrencyOrNonFungibleTokenReceived().ifPresent { it.validate() }
- priorUndisputedNonFraudTransactions().ifPresent { it.validate() }
- reason().validate()
validated = true
}
@@ -3796,113 +3731,1061 @@ private constructor(
*
* Used for best match union deserialization.
*/
- @JvmSynthetic
- internal fun validity(): Int =
- (cardholderNoLongerDisputes.asKnown().getOrNull()?.validity() ?: 0) +
- (compellingEvidence.asKnown().getOrNull()?.validity() ?: 0) +
- (creditOrReversalProcessed.asKnown().getOrNull()?.validity() ?: 0) +
- (delayedChargeTransaction.asKnown().getOrNull()?.validity() ?: 0) +
- (evidenceOfImprint.asKnown().getOrNull()?.validity() ?: 0) +
- (invalidDispute.asKnown().getOrNull()?.validity() ?: 0) +
- (nonFiatCurrencyOrNonFungibleTokenReceived.asKnown().getOrNull()?.validity()
- ?: 0) +
- (priorUndisputedNonFraudTransactions.asKnown().getOrNull()?.validity()
- ?: 0) +
- (reason.asKnown().getOrNull()?.validity() ?: 0)
+ @JvmSynthetic internal fun validity(): Int = 0
- /**
- * Cardholder no longer disputes details. Present if and only if `reason` is
- * `cardholder_no_longer_disputes`.
- */
- class CardholderNoLongerDisputes
- @JsonCreator(mode = JsonCreator.Mode.DISABLED)
- private constructor(
- private val explanation: JsonField,
- private val additionalProperties: MutableMap,
- ) {
+ override fun equals(other: Any?): Boolean {
+ if (this === other) {
+ return true
+ }
- @JsonCreator
- private constructor(
- @JsonProperty("explanation")
- @ExcludeMissing
- explanation: JsonField = JsonMissing.of()
- ) : this(explanation, mutableMapOf())
+ return other is ChargebackSubmitted &&
+ additionalProperties == other.additionalProperties
+ }
- /**
- * Explanation for why the merchant believes the cardholder no longer disputes
- * the transaction.
- *
- * @throws IncreaseInvalidDataException if the JSON field has an unexpected type
- * (e.g. if the server responded with an unexpected value).
- */
- fun explanation(): Optional = explanation.getOptional("explanation")
+ private val hashCode: Int by lazy { Objects.hash(additionalProperties) }
- /**
- * Returns the raw JSON value of [explanation].
- *
- * Unlike [explanation], this method doesn't throw if the JSON field has an
- * unexpected type.
- */
- @JsonProperty("explanation")
- @ExcludeMissing
- fun _explanation(): JsonField = explanation
+ override fun hashCode(): Int = hashCode
- @JsonAnySetter
- private fun putAdditionalProperty(key: String, value: JsonValue) {
- additionalProperties.put(key, value)
- }
+ override fun toString() =
+ "ChargebackSubmitted{additionalProperties=$additionalProperties}"
+ }
- @JsonAnyGetter
- @ExcludeMissing
- fun _additionalProperties(): Map =
- Collections.unmodifiableMap(additionalProperties)
+ /**
+ * A Card Dispute Chargeback Timed Out Visa Network Event object. This field will be
+ * present in the JSON response if and only if `category` is equal to
+ * `chargeback_timed_out`. Contains the details specific to a chargeback timed out Visa
+ * Card Dispute Network Event, which represents that the chargeback has timed out in the
+ * user's favor.
+ */
+ class ChargebackTimedOut
+ @JsonCreator(mode = JsonCreator.Mode.DISABLED)
+ private constructor(private val additionalProperties: MutableMap) {
- fun toBuilder() = Builder().from(this)
+ @JsonCreator private constructor() : this(mutableMapOf())
- companion object {
+ @JsonAnySetter
+ private fun putAdditionalProperty(key: String, value: JsonValue) {
+ additionalProperties.put(key, value)
+ }
- /**
- * Returns a mutable builder for constructing an instance of
- * [CardholderNoLongerDisputes].
- *
- * The following fields are required:
- * ```java
- * .explanation()
- * ```
- */
- @JvmStatic fun builder() = Builder()
- }
+ @JsonAnyGetter
+ @ExcludeMissing
+ fun _additionalProperties(): Map =
+ Collections.unmodifiableMap(additionalProperties)
- /** A builder for [CardholderNoLongerDisputes]. */
- class Builder internal constructor() {
+ fun toBuilder() = Builder().from(this)
- private var explanation: JsonField? = null
- private var additionalProperties: MutableMap =
- mutableMapOf()
+ companion object {
- @JvmSynthetic
- internal fun from(cardholderNoLongerDisputes: CardholderNoLongerDisputes) =
- apply {
- explanation = cardholderNoLongerDisputes.explanation
- additionalProperties =
- cardholderNoLongerDisputes.additionalProperties.toMutableMap()
- }
+ /**
+ * Returns a mutable builder for constructing an instance of
+ * [ChargebackTimedOut].
+ */
+ @JvmStatic fun builder() = Builder()
+ }
- /**
- * Explanation for why the merchant believes the cardholder no longer
- * disputes the transaction.
- */
- fun explanation(explanation: String?) =
- explanation(JsonField.ofNullable(explanation))
+ /** A builder for [ChargebackTimedOut]. */
+ class Builder internal constructor() {
- /**
- * Alias for calling [Builder.explanation] with `explanation.orElse(null)`.
- */
- fun explanation(explanation: Optional) =
- explanation(explanation.getOrNull())
+ private var additionalProperties: MutableMap = mutableMapOf()
- /**
- * Sets [Builder.explanation] to an arbitrary JSON value.
+ @JvmSynthetic
+ internal fun from(chargebackTimedOut: ChargebackTimedOut) = apply {
+ additionalProperties =
+ chargebackTimedOut.additionalProperties.toMutableMap()
+ }
+
+ 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 [ChargebackTimedOut].
+ *
+ * Further updates to this [Builder] will not mutate the returned instance.
+ */
+ fun build(): ChargebackTimedOut =
+ ChargebackTimedOut(additionalProperties.toMutableMap())
+ }
+
+ private var validated: Boolean = false
+
+ fun validate(): ChargebackTimedOut = apply {
+ if (validated) {
+ return@apply
+ }
+
+ 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 = 0
+
+ override fun equals(other: Any?): Boolean {
+ if (this === other) {
+ return true
+ }
+
+ return other is ChargebackTimedOut &&
+ additionalProperties == other.additionalProperties
+ }
+
+ private val hashCode: Int by lazy { Objects.hash(additionalProperties) }
+
+ override fun hashCode(): Int = hashCode
+
+ override fun toString() =
+ "ChargebackTimedOut{additionalProperties=$additionalProperties}"
+ }
+
+ /**
+ * A Card Dispute Merchant Pre-Arbitration Decline Submitted Visa Network Event object.
+ * This field will be present in the JSON response if and only if `category` is equal to
+ * `merchant_prearbitration_decline_submitted`. Contains the details specific to a
+ * merchant prearbitration decline submitted Visa Card Dispute Network Event, which
+ * represents that the user has declined the merchant's request for a prearbitration
+ * request decision in their favor.
+ */
+ class MerchantPrearbitrationDeclineSubmitted
+ @JsonCreator(mode = JsonCreator.Mode.DISABLED)
+ private constructor(private val additionalProperties: MutableMap) {
+
+ @JsonCreator private constructor() : this(mutableMapOf())
+
+ @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
+ * [MerchantPrearbitrationDeclineSubmitted].
+ */
+ @JvmStatic fun builder() = Builder()
+ }
+
+ /** A builder for [MerchantPrearbitrationDeclineSubmitted]. */
+ class Builder internal constructor() {
+
+ private var additionalProperties: MutableMap = mutableMapOf()
+
+ @JvmSynthetic
+ internal fun from(
+ merchantPrearbitrationDeclineSubmitted:
+ MerchantPrearbitrationDeclineSubmitted
+ ) = apply {
+ additionalProperties =
+ merchantPrearbitrationDeclineSubmitted.additionalProperties
+ .toMutableMap()
+ }
+
+ 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 [MerchantPrearbitrationDeclineSubmitted].
+ *
+ * Further updates to this [Builder] will not mutate the returned instance.
+ */
+ fun build(): MerchantPrearbitrationDeclineSubmitted =
+ MerchantPrearbitrationDeclineSubmitted(additionalProperties.toMutableMap())
+ }
+
+ private var validated: Boolean = false
+
+ fun validate(): MerchantPrearbitrationDeclineSubmitted = apply {
+ if (validated) {
+ return@apply
+ }
+
+ 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 = 0
+
+ override fun equals(other: Any?): Boolean {
+ if (this === other) {
+ return true
+ }
+
+ return other is MerchantPrearbitrationDeclineSubmitted &&
+ additionalProperties == other.additionalProperties
+ }
+
+ private val hashCode: Int by lazy { Objects.hash(additionalProperties) }
+
+ override fun hashCode(): Int = hashCode
+
+ override fun toString() =
+ "MerchantPrearbitrationDeclineSubmitted{additionalProperties=$additionalProperties}"
+ }
+
+ /**
+ * A Card Dispute Merchant Pre-Arbitration Received Visa Network Event object. This
+ * field will be present in the JSON response if and only if `category` is equal to
+ * `merchant_prearbitration_received`. Contains the details specific to a merchant
+ * prearbitration received Visa Card Dispute Network Event, which represents that the
+ * merchant has issued a prearbitration request in the user's favor.
+ */
+ class MerchantPrearbitrationReceived
+ @JsonCreator(mode = JsonCreator.Mode.DISABLED)
+ private constructor(
+ private val cardholderNoLongerDisputes: JsonField,
+ private val compellingEvidence: JsonField,
+ private val creditOrReversalProcessed: JsonField,
+ private val delayedChargeTransaction: JsonField,
+ private val evidenceOfImprint: JsonField,
+ private val invalidDispute: JsonField,
+ private val nonFiatCurrencyOrNonFungibleTokenReceived:
+ JsonField,
+ private val priorUndisputedNonFraudTransactions:
+ JsonField,
+ private val reason: JsonField,
+ private val additionalProperties: MutableMap,
+ ) {
+
+ @JsonCreator
+ private constructor(
+ @JsonProperty("cardholder_no_longer_disputes")
+ @ExcludeMissing
+ cardholderNoLongerDisputes: JsonField =
+ JsonMissing.of(),
+ @JsonProperty("compelling_evidence")
+ @ExcludeMissing
+ compellingEvidence: JsonField = JsonMissing.of(),
+ @JsonProperty("credit_or_reversal_processed")
+ @ExcludeMissing
+ creditOrReversalProcessed: JsonField =
+ JsonMissing.of(),
+ @JsonProperty("delayed_charge_transaction")
+ @ExcludeMissing
+ delayedChargeTransaction: JsonField =
+ JsonMissing.of(),
+ @JsonProperty("evidence_of_imprint")
+ @ExcludeMissing
+ evidenceOfImprint: JsonField = JsonMissing.of(),
+ @JsonProperty("invalid_dispute")
+ @ExcludeMissing
+ invalidDispute: JsonField = JsonMissing.of(),
+ @JsonProperty("non_fiat_currency_or_non_fungible_token_received")
+ @ExcludeMissing
+ nonFiatCurrencyOrNonFungibleTokenReceived:
+ JsonField =
+ JsonMissing.of(),
+ @JsonProperty("prior_undisputed_non_fraud_transactions")
+ @ExcludeMissing
+ priorUndisputedNonFraudTransactions:
+ JsonField =
+ JsonMissing.of(),
+ @JsonProperty("reason")
+ @ExcludeMissing
+ reason: JsonField = JsonMissing.of(),
+ ) : this(
+ cardholderNoLongerDisputes,
+ compellingEvidence,
+ creditOrReversalProcessed,
+ delayedChargeTransaction,
+ evidenceOfImprint,
+ invalidDispute,
+ nonFiatCurrencyOrNonFungibleTokenReceived,
+ priorUndisputedNonFraudTransactions,
+ reason,
+ mutableMapOf(),
+ )
+
+ /**
+ * Cardholder no longer disputes details. Present if and only if `reason` is
+ * `cardholder_no_longer_disputes`.
+ *
+ * @throws IncreaseInvalidDataException if the JSON field has an unexpected type
+ * (e.g. if the server responded with an unexpected value).
+ */
+ fun cardholderNoLongerDisputes(): Optional =
+ cardholderNoLongerDisputes.getOptional("cardholder_no_longer_disputes")
+
+ /**
+ * Compelling evidence details. Present if and only if `reason` is
+ * `compelling_evidence`.
+ *
+ * @throws IncreaseInvalidDataException if the JSON field has an unexpected type
+ * (e.g. if the server responded with an unexpected value).
+ */
+ fun compellingEvidence(): Optional =
+ compellingEvidence.getOptional("compelling_evidence")
+
+ /**
+ * Credit or reversal processed details. Present if and only if `reason` is
+ * `credit_or_reversal_processed`.
+ *
+ * @throws IncreaseInvalidDataException if the JSON field has an unexpected type
+ * (e.g. if the server responded with an unexpected value).
+ */
+ fun creditOrReversalProcessed(): Optional =
+ creditOrReversalProcessed.getOptional("credit_or_reversal_processed")
+
+ /**
+ * Delayed charge transaction details. Present if and only if `reason` is
+ * `delayed_charge_transaction`.
+ *
+ * @throws IncreaseInvalidDataException if the JSON field has an unexpected type
+ * (e.g. if the server responded with an unexpected value).
+ */
+ fun delayedChargeTransaction(): Optional =
+ delayedChargeTransaction.getOptional("delayed_charge_transaction")
+
+ /**
+ * Evidence of imprint details. Present if and only if `reason` is
+ * `evidence_of_imprint`.
+ *
+ * @throws IncreaseInvalidDataException if the JSON field has an unexpected type
+ * (e.g. if the server responded with an unexpected value).
+ */
+ fun evidenceOfImprint(): Optional =
+ evidenceOfImprint.getOptional("evidence_of_imprint")
+
+ /**
+ * Invalid dispute details. Present if and only if `reason` is `invalid_dispute`.
+ *
+ * @throws IncreaseInvalidDataException if the JSON field has an unexpected type
+ * (e.g. if the server responded with an unexpected value).
+ */
+ fun invalidDispute(): Optional =
+ invalidDispute.getOptional("invalid_dispute")
+
+ /**
+ * Non-fiat currency or non-fungible token received details. Present if and only if
+ * `reason` is `non_fiat_currency_or_non_fungible_token_received`.
+ *
+ * @throws IncreaseInvalidDataException if the JSON field has an unexpected type
+ * (e.g. if the server responded with an unexpected value).
+ */
+ fun nonFiatCurrencyOrNonFungibleTokenReceived():
+ Optional =
+ nonFiatCurrencyOrNonFungibleTokenReceived.getOptional(
+ "non_fiat_currency_or_non_fungible_token_received"
+ )
+
+ /**
+ * Prior undisputed non-fraud transactions details. Present if and only if `reason`
+ * is `prior_undisputed_non_fraud_transactions`.
+ *
+ * @throws IncreaseInvalidDataException if the JSON field has an unexpected type
+ * (e.g. if the server responded with an unexpected value).
+ */
+ fun priorUndisputedNonFraudTransactions():
+ Optional =
+ priorUndisputedNonFraudTransactions.getOptional(
+ "prior_undisputed_non_fraud_transactions"
+ )
+
+ /**
+ * The reason the merchant re-presented the dispute.
+ *
+ * @throws IncreaseInvalidDataException if the JSON field has an unexpected type or
+ * is unexpectedly missing or null (e.g. if the server responded with an
+ * unexpected value).
+ */
+ fun reason(): Reason = reason.getRequired("reason")
+
+ /**
+ * Returns the raw JSON value of [cardholderNoLongerDisputes].
+ *
+ * Unlike [cardholderNoLongerDisputes], this method doesn't throw if the JSON field
+ * has an unexpected type.
+ */
+ @JsonProperty("cardholder_no_longer_disputes")
+ @ExcludeMissing
+ fun _cardholderNoLongerDisputes(): JsonField =
+ cardholderNoLongerDisputes
+
+ /**
+ * Returns the raw JSON value of [compellingEvidence].
+ *
+ * Unlike [compellingEvidence], this method doesn't throw if the JSON field has an
+ * unexpected type.
+ */
+ @JsonProperty("compelling_evidence")
+ @ExcludeMissing
+ fun _compellingEvidence(): JsonField = compellingEvidence
+
+ /**
+ * Returns the raw JSON value of [creditOrReversalProcessed].
+ *
+ * Unlike [creditOrReversalProcessed], this method doesn't throw if the JSON field
+ * has an unexpected type.
+ */
+ @JsonProperty("credit_or_reversal_processed")
+ @ExcludeMissing
+ fun _creditOrReversalProcessed(): JsonField =
+ creditOrReversalProcessed
+
+ /**
+ * Returns the raw JSON value of [delayedChargeTransaction].
+ *
+ * Unlike [delayedChargeTransaction], this method doesn't throw if the JSON field
+ * has an unexpected type.
+ */
+ @JsonProperty("delayed_charge_transaction")
+ @ExcludeMissing
+ fun _delayedChargeTransaction(): JsonField =
+ delayedChargeTransaction
+
+ /**
+ * Returns the raw JSON value of [evidenceOfImprint].
+ *
+ * Unlike [evidenceOfImprint], this method doesn't throw if the JSON field has an
+ * unexpected type.
+ */
+ @JsonProperty("evidence_of_imprint")
+ @ExcludeMissing
+ fun _evidenceOfImprint(): JsonField = evidenceOfImprint
+
+ /**
+ * Returns the raw JSON value of [invalidDispute].
+ *
+ * Unlike [invalidDispute], this method doesn't throw if the JSON field has an
+ * unexpected type.
+ */
+ @JsonProperty("invalid_dispute")
+ @ExcludeMissing
+ fun _invalidDispute(): JsonField = invalidDispute
+
+ /**
+ * Returns the raw JSON value of [nonFiatCurrencyOrNonFungibleTokenReceived].
+ *
+ * Unlike [nonFiatCurrencyOrNonFungibleTokenReceived], this method doesn't throw if
+ * the JSON field has an unexpected type.
+ */
+ @JsonProperty("non_fiat_currency_or_non_fungible_token_received")
+ @ExcludeMissing
+ fun _nonFiatCurrencyOrNonFungibleTokenReceived():
+ JsonField =
+ nonFiatCurrencyOrNonFungibleTokenReceived
+
+ /**
+ * Returns the raw JSON value of [priorUndisputedNonFraudTransactions].
+ *
+ * Unlike [priorUndisputedNonFraudTransactions], this method doesn't throw if the
+ * JSON field has an unexpected type.
+ */
+ @JsonProperty("prior_undisputed_non_fraud_transactions")
+ @ExcludeMissing
+ fun _priorUndisputedNonFraudTransactions():
+ JsonField =
+ priorUndisputedNonFraudTransactions
+
+ /**
+ * Returns the raw JSON value of [reason].
+ *
+ * Unlike [reason], this method doesn't throw if the JSON field has an unexpected
+ * type.
+ */
+ @JsonProperty("reason") @ExcludeMissing fun _reason(): JsonField = reason
+
+ @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
+ * [MerchantPrearbitrationReceived].
+ *
+ * The following fields are required:
+ * ```java
+ * .cardholderNoLongerDisputes()
+ * .compellingEvidence()
+ * .creditOrReversalProcessed()
+ * .delayedChargeTransaction()
+ * .evidenceOfImprint()
+ * .invalidDispute()
+ * .nonFiatCurrencyOrNonFungibleTokenReceived()
+ * .priorUndisputedNonFraudTransactions()
+ * .reason()
+ * ```
+ */
+ @JvmStatic fun builder() = Builder()
+ }
+
+ /** A builder for [MerchantPrearbitrationReceived]. */
+ class Builder internal constructor() {
+
+ private var cardholderNoLongerDisputes: JsonField? =
+ null
+ private var compellingEvidence: JsonField? = null
+ private var creditOrReversalProcessed: JsonField? =
+ null
+ private var delayedChargeTransaction: JsonField? =
+ null
+ private var evidenceOfImprint: JsonField? = null
+ private var invalidDispute: JsonField? = null
+ private var nonFiatCurrencyOrNonFungibleTokenReceived:
+ JsonField? =
+ null
+ private var priorUndisputedNonFraudTransactions:
+ JsonField? =
+ null
+ private var reason: JsonField? = null
+ private var additionalProperties: MutableMap = mutableMapOf()
+
+ @JvmSynthetic
+ internal fun from(
+ merchantPrearbitrationReceived: MerchantPrearbitrationReceived
+ ) = apply {
+ cardholderNoLongerDisputes =
+ merchantPrearbitrationReceived.cardholderNoLongerDisputes
+ compellingEvidence = merchantPrearbitrationReceived.compellingEvidence
+ creditOrReversalProcessed =
+ merchantPrearbitrationReceived.creditOrReversalProcessed
+ delayedChargeTransaction =
+ merchantPrearbitrationReceived.delayedChargeTransaction
+ evidenceOfImprint = merchantPrearbitrationReceived.evidenceOfImprint
+ invalidDispute = merchantPrearbitrationReceived.invalidDispute
+ nonFiatCurrencyOrNonFungibleTokenReceived =
+ merchantPrearbitrationReceived.nonFiatCurrencyOrNonFungibleTokenReceived
+ priorUndisputedNonFraudTransactions =
+ merchantPrearbitrationReceived.priorUndisputedNonFraudTransactions
+ reason = merchantPrearbitrationReceived.reason
+ additionalProperties =
+ merchantPrearbitrationReceived.additionalProperties.toMutableMap()
+ }
+
+ /**
+ * Cardholder no longer disputes details. Present if and only if `reason` is
+ * `cardholder_no_longer_disputes`.
+ */
+ fun cardholderNoLongerDisputes(
+ cardholderNoLongerDisputes: CardholderNoLongerDisputes?
+ ) = cardholderNoLongerDisputes(JsonField.ofNullable(cardholderNoLongerDisputes))
+
+ /**
+ * Alias for calling [Builder.cardholderNoLongerDisputes] with
+ * `cardholderNoLongerDisputes.orElse(null)`.
+ */
+ fun cardholderNoLongerDisputes(
+ cardholderNoLongerDisputes: Optional
+ ) = cardholderNoLongerDisputes(cardholderNoLongerDisputes.getOrNull())
+
+ /**
+ * Sets [Builder.cardholderNoLongerDisputes] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.cardholderNoLongerDisputes] with a
+ * well-typed [CardholderNoLongerDisputes] value instead. This method is
+ * primarily for setting the field to an undocumented or not yet supported
+ * value.
+ */
+ fun cardholderNoLongerDisputes(
+ cardholderNoLongerDisputes: JsonField