diff --git a/.release-please-manifest.json b/.release-please-manifest.json
index 92be4f76e..304196ece 100644
--- a/.release-please-manifest.json
+++ b/.release-please-manifest.json
@@ -1,3 +1,3 @@
{
- ".": "0.425.0"
+ ".": "0.426.0"
}
\ No newline at end of file
diff --git a/.stats.yml b/.stats.yml
index 625e421df..d4eadd590 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 232
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-cff24fe63c8cb06a46048b355f873c22def0798a38de892671d379e58d98bc03.yml
-openapi_spec_hash: 4f7ae65440fefa73441023480d6ac9a4
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-845aba046473ba39ae898570153537fb31dd6f8cb260dd8478a14fd4275ca97f.yml
+openapi_spec_hash: 8afbe65f9d6614f0960f141ae0de0c39
config_hash: 27e44ed36b9c5617b580ead7231a594a
diff --git a/CHANGELOG.md b/CHANGELOG.md
index fbcb1d502..7ccb66b30 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,18 @@
# Changelog
+## 0.426.0 (2026-02-07)
+
+Full Changelog: [v0.425.0...v0.426.0](https://github.com/Increase/increase-java/compare/v0.425.0...v0.426.0)
+
+### Features
+
+* **api:** api update ([8cce3f5](https://github.com/Increase/increase-java/commit/8cce3f5b9b8b10010953b2b6e2d9017fae724a8e))
+
+
+### Chores
+
+* **internal:** upgrade AssertJ ([bfba6a5](https://github.com/Increase/increase-java/commit/bfba6a58b6f3ab2dafdf1f42e09b98ddff81fa28))
+
## 0.425.0 (2026-02-06)
Full Changelog: [v0.424.0...v0.425.0](https://github.com/Increase/increase-java/compare/v0.424.0...v0.425.0)
diff --git a/README.md b/README.md
index 9c832c37c..d94c257f9 100644
--- a/README.md
+++ b/README.md
@@ -2,8 +2,8 @@
-[](https://central.sonatype.com/artifact/com.increase.api/increase-java/0.425.0)
-[](https://javadoc.io/doc/com.increase.api/increase-java/0.425.0)
+[](https://central.sonatype.com/artifact/com.increase.api/increase-java/0.426.0)
+[](https://javadoc.io/doc/com.increase.api/increase-java/0.426.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.425.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.426.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.425.0")
+implementation("com.increase.api:increase-java:0.426.0")
```
### Maven
@@ -33,7 +33,7 @@ implementation("com.increase.api:increase-java:0.425.0")
com.increase.api
increase-java
- 0.425.0
+ 0.426.0
```
diff --git a/build.gradle.kts b/build.gradle.kts
index 1ccde6b35..86880cf04 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -8,7 +8,7 @@ repositories {
allprojects {
group = "com.increase.api"
- version = "0.425.0" // x-release-please-version
+ version = "0.426.0" // x-release-please-version
}
subprojects {
diff --git a/increase-java-client-okhttp/build.gradle.kts b/increase-java-client-okhttp/build.gradle.kts
index 1b2dc95d0..9aed6d2c2 100644
--- a/increase-java-client-okhttp/build.gradle.kts
+++ b/increase-java-client-okhttp/build.gradle.kts
@@ -10,6 +10,6 @@ dependencies {
implementation("com.squareup.okhttp3:logging-interceptor:4.12.0")
testImplementation(kotlin("test"))
- testImplementation("org.assertj:assertj-core:3.25.3")
+ testImplementation("org.assertj:assertj-core:3.27.7")
testImplementation("com.github.tomakehurst:wiremock-jre8:2.35.2")
}
diff --git a/increase-java-core/build.gradle.kts b/increase-java-core/build.gradle.kts
index 8f3caebe6..b23d01548 100644
--- a/increase-java-core/build.gradle.kts
+++ b/increase-java-core/build.gradle.kts
@@ -35,7 +35,7 @@ dependencies {
testImplementation(kotlin("test"))
testImplementation(project(":increase-java-client-okhttp"))
testImplementation("com.github.tomakehurst:wiremock-jre8:2.35.2")
- testImplementation("org.assertj:assertj-core:3.25.3")
+ testImplementation("org.assertj:assertj-core:3.27.7")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.9.3")
testImplementation("org.junit.jupiter:junit-jupiter-params:5.9.3")
testImplementation("org.junit-pioneer:junit-pioneer:1.9.1")
diff --git a/increase-java-core/src/main/kotlin/com/increase/api/models/accounttransfers/AccountTransfer.kt b/increase-java-core/src/main/kotlin/com/increase/api/models/accounttransfers/AccountTransfer.kt
index 0bbc504cc..19c28b243 100644
--- a/increase-java-core/src/main/kotlin/com/increase/api/models/accounttransfers/AccountTransfer.kt
+++ b/increase-java-core/src/main/kotlin/com/increase/api/models/accounttransfers/AccountTransfer.kt
@@ -1308,8 +1308,8 @@ private constructor(
class CreatedBy
@JsonCreator(mode = JsonCreator.Mode.DISABLED)
private constructor(
- private val apiKey: JsonField,
private val category: JsonField,
+ private val apiKey: JsonField,
private val oauthApplication: JsonField,
private val user: JsonField,
private val additionalProperties: MutableMap,
@@ -1317,23 +1317,15 @@ private constructor(
@JsonCreator
private constructor(
- @JsonProperty("api_key") @ExcludeMissing apiKey: JsonField = JsonMissing.of(),
@JsonProperty("category")
@ExcludeMissing
category: JsonField = JsonMissing.of(),
+ @JsonProperty("api_key") @ExcludeMissing apiKey: JsonField = JsonMissing.of(),
@JsonProperty("oauth_application")
@ExcludeMissing
oauthApplication: JsonField = JsonMissing.of(),
@JsonProperty("user") @ExcludeMissing user: JsonField = JsonMissing.of(),
- ) : this(apiKey, category, oauthApplication, user, mutableMapOf())
-
- /**
- * If present, details about the API key that created the transfer.
- *
- * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if
- * the server responded with an unexpected value).
- */
- fun apiKey(): Optional = apiKey.getOptional("api_key")
+ ) : this(category, apiKey, oauthApplication, user, mutableMapOf())
/**
* The type of object that created this transfer.
@@ -1343,6 +1335,14 @@ private constructor(
*/
fun category(): Category = category.getRequired("category")
+ /**
+ * If present, details about the API key that created the transfer.
+ *
+ * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if
+ * the server responded with an unexpected value).
+ */
+ fun apiKey(): Optional = apiKey.getOptional("api_key")
+
/**
* If present, details about the OAuth Application that created the transfer.
*
@@ -1361,18 +1361,18 @@ private constructor(
fun user(): Optional = user.getOptional("user")
/**
- * Returns the raw JSON value of [apiKey].
+ * Returns the raw JSON value of [category].
*
- * Unlike [apiKey], this method doesn't throw if the JSON field has an unexpected type.
+ * Unlike [category], this method doesn't throw if the JSON field has an unexpected type.
*/
- @JsonProperty("api_key") @ExcludeMissing fun _apiKey(): JsonField = apiKey
+ @JsonProperty("category") @ExcludeMissing fun _category(): JsonField = category
/**
- * Returns the raw JSON value of [category].
+ * Returns the raw JSON value of [apiKey].
*
- * Unlike [category], this method doesn't throw if the JSON field has an unexpected type.
+ * Unlike [apiKey], this method doesn't throw if the JSON field has an unexpected type.
*/
- @JsonProperty("category") @ExcludeMissing fun _category(): JsonField = category
+ @JsonProperty("api_key") @ExcludeMissing fun _apiKey(): JsonField = apiKey
/**
* Returns the raw JSON value of [oauthApplication].
@@ -1410,10 +1410,7 @@ private constructor(
*
* The following fields are required:
* ```java
- * .apiKey()
* .category()
- * .oauthApplication()
- * .user()
* ```
*/
@JvmStatic fun builder() = Builder()
@@ -1422,21 +1419,33 @@ private constructor(
/** A builder for [CreatedBy]. */
class Builder internal constructor() {
- private var apiKey: JsonField? = null
private var category: JsonField? = null
- private var oauthApplication: JsonField? = null
- private var user: JsonField? = null
+ private var apiKey: JsonField = JsonMissing.of()
+ private var oauthApplication: JsonField = JsonMissing.of()
+ private var user: JsonField = JsonMissing.of()
private var additionalProperties: MutableMap = mutableMapOf()
@JvmSynthetic
internal fun from(createdBy: CreatedBy) = apply {
- apiKey = createdBy.apiKey
category = createdBy.category
+ apiKey = createdBy.apiKey
oauthApplication = createdBy.oauthApplication
user = createdBy.user
additionalProperties = createdBy.additionalProperties.toMutableMap()
}
+ /** The type of object that created this transfer. */
+ fun category(category: Category) = category(JsonField.of(category))
+
+ /**
+ * Sets [Builder.category] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.category] with a well-typed [Category] value
+ * instead. This method is primarily for setting the field to an undocumented or not yet
+ * supported value.
+ */
+ fun category(category: JsonField) = apply { this.category = category }
+
/** If present, details about the API key that created the transfer. */
fun apiKey(apiKey: ApiKey?) = apiKey(JsonField.ofNullable(apiKey))
@@ -1452,18 +1461,6 @@ private constructor(
*/
fun apiKey(apiKey: JsonField) = apply { this.apiKey = apiKey }
- /** The type of object that created this transfer. */
- fun category(category: Category) = category(JsonField.of(category))
-
- /**
- * Sets [Builder.category] to an arbitrary JSON value.
- *
- * You should usually call [Builder.category] with a well-typed [Category] value
- * instead. This method is primarily for setting the field to an undocumented or not yet
- * supported value.
- */
- fun category(category: JsonField) = apply { this.category = category }
-
/** If present, details about the OAuth Application that created the transfer. */
fun oauthApplication(oauthApplication: OAuthApplication?) =
oauthApplication(JsonField.ofNullable(oauthApplication))
@@ -1526,20 +1523,17 @@ private constructor(
*
* The following fields are required:
* ```java
- * .apiKey()
* .category()
- * .oauthApplication()
- * .user()
* ```
*
* @throws IllegalStateException if any required field is unset.
*/
fun build(): CreatedBy =
CreatedBy(
- checkRequired("apiKey", apiKey),
checkRequired("category", category),
- checkRequired("oauthApplication", oauthApplication),
- checkRequired("user", user),
+ apiKey,
+ oauthApplication,
+ user,
additionalProperties.toMutableMap(),
)
}
@@ -1551,8 +1545,8 @@ private constructor(
return@apply
}
- apiKey().ifPresent { it.validate() }
category().validate()
+ apiKey().ifPresent { it.validate() }
oauthApplication().ifPresent { it.validate() }
user().ifPresent { it.validate() }
validated = true
@@ -1574,11 +1568,166 @@ private constructor(
*/
@JvmSynthetic
internal fun validity(): Int =
- (apiKey.asKnown().getOrNull()?.validity() ?: 0) +
- (category.asKnown().getOrNull()?.validity() ?: 0) +
+ (category.asKnown().getOrNull()?.validity() ?: 0) +
+ (apiKey.asKnown().getOrNull()?.validity() ?: 0) +
(oauthApplication.asKnown().getOrNull()?.validity() ?: 0) +
(user.asKnown().getOrNull()?.validity() ?: 0)
+ /** The type of object that created this transfer. */
+ class Category @JsonCreator private constructor(private val value: JsonField) :
+ Enum {
+
+ /**
+ * Returns this class instance's raw value.
+ *
+ * This is usually only useful if this instance was deserialized from data that doesn't
+ * match any known member, and you want to know that value. For example, if the SDK is
+ * on an older version than the API, then the API may respond with new members that the
+ * SDK is unaware of.
+ */
+ @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value
+
+ companion object {
+
+ /** An API key. Details will be under the `api_key` object. */
+ @JvmField val API_KEY = of("api_key")
+
+ /**
+ * An OAuth application you connected to Increase. Details will be under the
+ * `oauth_application` object.
+ */
+ @JvmField val OAUTH_APPLICATION = of("oauth_application")
+
+ /** A User in the Increase dashboard. Details will be under the `user` object. */
+ @JvmField val USER = of("user")
+
+ @JvmStatic fun of(value: String) = Category(JsonField.of(value))
+ }
+
+ /** An enum containing [Category]'s known values. */
+ enum class Known {
+ /** An API key. Details will be under the `api_key` object. */
+ API_KEY,
+ /**
+ * An OAuth application you connected to Increase. Details will be under the
+ * `oauth_application` object.
+ */
+ OAUTH_APPLICATION,
+ /** A User in the Increase dashboard. Details will be under the `user` object. */
+ USER,
+ }
+
+ /**
+ * An enum containing [Category]'s known values, as well as an [_UNKNOWN] member.
+ *
+ * An instance of [Category] can contain an unknown value in a couple of cases:
+ * - It was deserialized from data that doesn't match any known member. For example, if
+ * the SDK is on an older version than the API, then the API may respond with new
+ * members that the SDK is unaware of.
+ * - It was constructed with an arbitrary value using the [of] method.
+ */
+ enum class Value {
+ /** An API key. Details will be under the `api_key` object. */
+ API_KEY,
+ /**
+ * An OAuth application you connected to Increase. Details will be under the
+ * `oauth_application` object.
+ */
+ OAUTH_APPLICATION,
+ /** A User in the Increase dashboard. Details will be under the `user` object. */
+ USER,
+ /**
+ * An enum member indicating that [Category] was instantiated with an unknown value.
+ */
+ _UNKNOWN,
+ }
+
+ /**
+ * Returns an enum member corresponding to this class instance's value, or
+ * [Value._UNKNOWN] if the class was instantiated with an unknown value.
+ *
+ * Use the [known] method instead if you're certain the value is always known or if you
+ * want to throw for the unknown case.
+ */
+ fun value(): Value =
+ when (this) {
+ API_KEY -> Value.API_KEY
+ OAUTH_APPLICATION -> Value.OAUTH_APPLICATION
+ USER -> Value.USER
+ else -> Value._UNKNOWN
+ }
+
+ /**
+ * Returns an enum member corresponding to this class instance's value.
+ *
+ * Use the [value] method instead if you're uncertain the value is always known and
+ * don't want to throw for the unknown case.
+ *
+ * @throws IncreaseInvalidDataException if this class instance's value is a not a known
+ * member.
+ */
+ fun known(): Known =
+ when (this) {
+ API_KEY -> Known.API_KEY
+ OAUTH_APPLICATION -> Known.OAUTH_APPLICATION
+ USER -> Known.USER
+ else -> throw IncreaseInvalidDataException("Unknown Category: $value")
+ }
+
+ /**
+ * Returns this class instance's primitive wire representation.
+ *
+ * This differs from the [toString] method because that method is primarily for
+ * debugging and generally doesn't throw.
+ *
+ * @throws IncreaseInvalidDataException if this class instance's value does not have the
+ * expected primitive type.
+ */
+ fun asString(): String =
+ _value().asString().orElseThrow {
+ IncreaseInvalidDataException("Value is not a String")
+ }
+
+ private var validated: Boolean = false
+
+ fun validate(): Category = apply {
+ if (validated) {
+ return@apply
+ }
+
+ known()
+ validated = true
+ }
+
+ fun isValid(): Boolean =
+ try {
+ validate()
+ true
+ } catch (e: IncreaseInvalidDataException) {
+ false
+ }
+
+ /**
+ * Returns a score indicating how many valid values are contained in this object
+ * recursively.
+ *
+ * Used for best match union deserialization.
+ */
+ @JvmSynthetic internal fun validity(): Int = if (value() == Value._UNKNOWN) 0 else 1
+
+ override fun equals(other: Any?): Boolean {
+ if (this === other) {
+ return true
+ }
+
+ return other is Category && value == other.value
+ }
+
+ override fun hashCode() = value.hashCode()
+
+ override fun toString() = value.toString()
+ }
+
/** If present, details about the API key that created the transfer. */
class ApiKey
@JsonCreator(mode = JsonCreator.Mode.DISABLED)
@@ -1755,161 +1904,6 @@ private constructor(
"ApiKey{description=$description, additionalProperties=$additionalProperties}"
}
- /** The type of object that created this transfer. */
- class Category @JsonCreator private constructor(private val value: JsonField) :
- Enum {
-
- /**
- * Returns this class instance's raw value.
- *
- * This is usually only useful if this instance was deserialized from data that doesn't
- * match any known member, and you want to know that value. For example, if the SDK is
- * on an older version than the API, then the API may respond with new members that the
- * SDK is unaware of.
- */
- @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value
-
- companion object {
-
- /** An API key. Details will be under the `api_key` object. */
- @JvmField val API_KEY = of("api_key")
-
- /**
- * An OAuth application you connected to Increase. Details will be under the
- * `oauth_application` object.
- */
- @JvmField val OAUTH_APPLICATION = of("oauth_application")
-
- /** A User in the Increase dashboard. Details will be under the `user` object. */
- @JvmField val USER = of("user")
-
- @JvmStatic fun of(value: String) = Category(JsonField.of(value))
- }
-
- /** An enum containing [Category]'s known values. */
- enum class Known {
- /** An API key. Details will be under the `api_key` object. */
- API_KEY,
- /**
- * An OAuth application you connected to Increase. Details will be under the
- * `oauth_application` object.
- */
- OAUTH_APPLICATION,
- /** A User in the Increase dashboard. Details will be under the `user` object. */
- USER,
- }
-
- /**
- * An enum containing [Category]'s known values, as well as an [_UNKNOWN] member.
- *
- * An instance of [Category] can contain an unknown value in a couple of cases:
- * - It was deserialized from data that doesn't match any known member. For example, if
- * the SDK is on an older version than the API, then the API may respond with new
- * members that the SDK is unaware of.
- * - It was constructed with an arbitrary value using the [of] method.
- */
- enum class Value {
- /** An API key. Details will be under the `api_key` object. */
- API_KEY,
- /**
- * An OAuth application you connected to Increase. Details will be under the
- * `oauth_application` object.
- */
- OAUTH_APPLICATION,
- /** A User in the Increase dashboard. Details will be under the `user` object. */
- USER,
- /**
- * An enum member indicating that [Category] was instantiated with an unknown value.
- */
- _UNKNOWN,
- }
-
- /**
- * Returns an enum member corresponding to this class instance's value, or
- * [Value._UNKNOWN] if the class was instantiated with an unknown value.
- *
- * Use the [known] method instead if you're certain the value is always known or if you
- * want to throw for the unknown case.
- */
- fun value(): Value =
- when (this) {
- API_KEY -> Value.API_KEY
- OAUTH_APPLICATION -> Value.OAUTH_APPLICATION
- USER -> Value.USER
- else -> Value._UNKNOWN
- }
-
- /**
- * Returns an enum member corresponding to this class instance's value.
- *
- * Use the [value] method instead if you're uncertain the value is always known and
- * don't want to throw for the unknown case.
- *
- * @throws IncreaseInvalidDataException if this class instance's value is a not a known
- * member.
- */
- fun known(): Known =
- when (this) {
- API_KEY -> Known.API_KEY
- OAUTH_APPLICATION -> Known.OAUTH_APPLICATION
- USER -> Known.USER
- else -> throw IncreaseInvalidDataException("Unknown Category: $value")
- }
-
- /**
- * Returns this class instance's primitive wire representation.
- *
- * This differs from the [toString] method because that method is primarily for
- * debugging and generally doesn't throw.
- *
- * @throws IncreaseInvalidDataException if this class instance's value does not have the
- * expected primitive type.
- */
- fun asString(): String =
- _value().asString().orElseThrow {
- IncreaseInvalidDataException("Value is not a String")
- }
-
- private var validated: Boolean = false
-
- fun validate(): Category = apply {
- if (validated) {
- return@apply
- }
-
- known()
- validated = true
- }
-
- fun isValid(): Boolean =
- try {
- validate()
- true
- } catch (e: IncreaseInvalidDataException) {
- false
- }
-
- /**
- * Returns a score indicating how many valid values are contained in this object
- * recursively.
- *
- * Used for best match union deserialization.
- */
- @JvmSynthetic internal fun validity(): Int = if (value() == Value._UNKNOWN) 0 else 1
-
- override fun equals(other: Any?): Boolean {
- if (this === other) {
- return true
- }
-
- return other is Category && value == other.value
- }
-
- override fun hashCode() = value.hashCode()
-
- override fun toString() = value.toString()
- }
-
/** If present, details about the OAuth Application that created the transfer. */
class OAuthApplication
@JsonCreator(mode = JsonCreator.Mode.DISABLED)
@@ -2241,21 +2235,21 @@ private constructor(
}
return other is CreatedBy &&
- apiKey == other.apiKey &&
category == other.category &&
+ apiKey == other.apiKey &&
oauthApplication == other.oauthApplication &&
user == other.user &&
additionalProperties == other.additionalProperties
}
private val hashCode: Int by lazy {
- Objects.hash(apiKey, category, oauthApplication, user, additionalProperties)
+ Objects.hash(category, apiKey, oauthApplication, user, additionalProperties)
}
override fun hashCode(): Int = hashCode
override fun toString() =
- "CreatedBy{apiKey=$apiKey, category=$category, oauthApplication=$oauthApplication, user=$user, additionalProperties=$additionalProperties}"
+ "CreatedBy{category=$category, apiKey=$apiKey, oauthApplication=$oauthApplication, user=$user, additionalProperties=$additionalProperties}"
}
/** The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transfer's currency. */
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 c37b16986..b4c37f361 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
@@ -2072,8 +2072,6 @@ private constructor(
* The following fields are required:
* ```java
* .category()
- * .freeform()
- * .paymentOrderRemittanceAdvice()
* ```
*/
@JvmStatic fun builder() = Builder()
@@ -2083,9 +2081,9 @@ private constructor(
class Builder internal constructor() {
private var category: JsonField? = null
- private var freeform: JsonField? = null
- private var paymentOrderRemittanceAdvice: JsonField? =
- null
+ private var freeform: JsonField = JsonMissing.of()
+ private var paymentOrderRemittanceAdvice: JsonField =
+ JsonMissing.of()
private var additionalProperties: MutableMap = mutableMapOf()
@JvmSynthetic
@@ -2180,8 +2178,6 @@ private constructor(
* The following fields are required:
* ```java
* .category()
- * .freeform()
- * .paymentOrderRemittanceAdvice()
* ```
*
* @throws IllegalStateException if any required field is unset.
@@ -2189,8 +2185,8 @@ private constructor(
fun build(): Addenda =
Addenda(
checkRequired("category", category),
- checkRequired("freeform", freeform),
- checkRequired("paymentOrderRemittanceAdvice", paymentOrderRemittanceAdvice),
+ freeform,
+ paymentOrderRemittanceAdvice,
additionalProperties.toMutableMap(),
)
}
@@ -3640,8 +3636,8 @@ private constructor(
class CreatedBy
@JsonCreator(mode = JsonCreator.Mode.DISABLED)
private constructor(
- private val apiKey: JsonField,
private val category: JsonField,
+ private val apiKey: JsonField,
private val oauthApplication: JsonField,
private val user: JsonField,
private val additionalProperties: MutableMap,
@@ -3649,23 +3645,15 @@ private constructor(
@JsonCreator
private constructor(
- @JsonProperty("api_key") @ExcludeMissing apiKey: JsonField = JsonMissing.of(),
@JsonProperty("category")
@ExcludeMissing
category: JsonField = JsonMissing.of(),
+ @JsonProperty("api_key") @ExcludeMissing apiKey: JsonField = JsonMissing.of(),
@JsonProperty("oauth_application")
@ExcludeMissing
oauthApplication: JsonField = JsonMissing.of(),
@JsonProperty("user") @ExcludeMissing user: JsonField = JsonMissing.of(),
- ) : this(apiKey, category, oauthApplication, user, mutableMapOf())
-
- /**
- * If present, details about the API key that created the transfer.
- *
- * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if
- * the server responded with an unexpected value).
- */
- fun apiKey(): Optional = apiKey.getOptional("api_key")
+ ) : this(category, apiKey, oauthApplication, user, mutableMapOf())
/**
* The type of object that created this transfer.
@@ -3675,6 +3663,14 @@ private constructor(
*/
fun category(): Category = category.getRequired("category")
+ /**
+ * If present, details about the API key that created the transfer.
+ *
+ * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if
+ * the server responded with an unexpected value).
+ */
+ fun apiKey(): Optional = apiKey.getOptional("api_key")
+
/**
* If present, details about the OAuth Application that created the transfer.
*
@@ -3693,18 +3689,18 @@ private constructor(
fun user(): Optional = user.getOptional("user")
/**
- * Returns the raw JSON value of [apiKey].
+ * Returns the raw JSON value of [category].
*
- * Unlike [apiKey], this method doesn't throw if the JSON field has an unexpected type.
+ * Unlike [category], this method doesn't throw if the JSON field has an unexpected type.
*/
- @JsonProperty("api_key") @ExcludeMissing fun _apiKey(): JsonField = apiKey
+ @JsonProperty("category") @ExcludeMissing fun _category(): JsonField = category
/**
- * Returns the raw JSON value of [category].
+ * Returns the raw JSON value of [apiKey].
*
- * Unlike [category], this method doesn't throw if the JSON field has an unexpected type.
+ * Unlike [apiKey], this method doesn't throw if the JSON field has an unexpected type.
*/
- @JsonProperty("category") @ExcludeMissing fun _category(): JsonField = category
+ @JsonProperty("api_key") @ExcludeMissing fun _apiKey(): JsonField = apiKey
/**
* Returns the raw JSON value of [oauthApplication].
@@ -3742,10 +3738,7 @@ private constructor(
*
* The following fields are required:
* ```java
- * .apiKey()
* .category()
- * .oauthApplication()
- * .user()
* ```
*/
@JvmStatic fun builder() = Builder()
@@ -3754,21 +3747,33 @@ private constructor(
/** A builder for [CreatedBy]. */
class Builder internal constructor() {
- private var apiKey: JsonField? = null
private var category: JsonField? = null
- private var oauthApplication: JsonField? = null
- private var user: JsonField? = null
+ private var apiKey: JsonField = JsonMissing.of()
+ private var oauthApplication: JsonField = JsonMissing.of()
+ private var user: JsonField = JsonMissing.of()
private var additionalProperties: MutableMap = mutableMapOf()
@JvmSynthetic
internal fun from(createdBy: CreatedBy) = apply {
- apiKey = createdBy.apiKey
category = createdBy.category
+ apiKey = createdBy.apiKey
oauthApplication = createdBy.oauthApplication
user = createdBy.user
additionalProperties = createdBy.additionalProperties.toMutableMap()
}
+ /** The type of object that created this transfer. */
+ fun category(category: Category) = category(JsonField.of(category))
+
+ /**
+ * Sets [Builder.category] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.category] with a well-typed [Category] value
+ * instead. This method is primarily for setting the field to an undocumented or not yet
+ * supported value.
+ */
+ fun category(category: JsonField) = apply { this.category = category }
+
/** If present, details about the API key that created the transfer. */
fun apiKey(apiKey: ApiKey?) = apiKey(JsonField.ofNullable(apiKey))
@@ -3784,18 +3789,6 @@ private constructor(
*/
fun apiKey(apiKey: JsonField) = apply { this.apiKey = apiKey }
- /** The type of object that created this transfer. */
- fun category(category: Category) = category(JsonField.of(category))
-
- /**
- * Sets [Builder.category] to an arbitrary JSON value.
- *
- * You should usually call [Builder.category] with a well-typed [Category] value
- * instead. This method is primarily for setting the field to an undocumented or not yet
- * supported value.
- */
- fun category(category: JsonField) = apply { this.category = category }
-
/** If present, details about the OAuth Application that created the transfer. */
fun oauthApplication(oauthApplication: OAuthApplication?) =
oauthApplication(JsonField.ofNullable(oauthApplication))
@@ -3858,20 +3851,17 @@ private constructor(
*
* The following fields are required:
* ```java
- * .apiKey()
* .category()
- * .oauthApplication()
- * .user()
* ```
*
* @throws IllegalStateException if any required field is unset.
*/
fun build(): CreatedBy =
CreatedBy(
- checkRequired("apiKey", apiKey),
checkRequired("category", category),
- checkRequired("oauthApplication", oauthApplication),
- checkRequired("user", user),
+ apiKey,
+ oauthApplication,
+ user,
additionalProperties.toMutableMap(),
)
}
@@ -3883,8 +3873,8 @@ private constructor(
return@apply
}
- apiKey().ifPresent { it.validate() }
category().validate()
+ apiKey().ifPresent { it.validate() }
oauthApplication().ifPresent { it.validate() }
user().ifPresent { it.validate() }
validated = true
@@ -3906,11 +3896,166 @@ private constructor(
*/
@JvmSynthetic
internal fun validity(): Int =
- (apiKey.asKnown().getOrNull()?.validity() ?: 0) +
- (category.asKnown().getOrNull()?.validity() ?: 0) +
+ (category.asKnown().getOrNull()?.validity() ?: 0) +
+ (apiKey.asKnown().getOrNull()?.validity() ?: 0) +
(oauthApplication.asKnown().getOrNull()?.validity() ?: 0) +
(user.asKnown().getOrNull()?.validity() ?: 0)
+ /** The type of object that created this transfer. */
+ class Category @JsonCreator private constructor(private val value: JsonField) :
+ Enum {
+
+ /**
+ * Returns this class instance's raw value.
+ *
+ * This is usually only useful if this instance was deserialized from data that doesn't
+ * match any known member, and you want to know that value. For example, if the SDK is
+ * on an older version than the API, then the API may respond with new members that the
+ * SDK is unaware of.
+ */
+ @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value
+
+ companion object {
+
+ /** An API key. Details will be under the `api_key` object. */
+ @JvmField val API_KEY = of("api_key")
+
+ /**
+ * An OAuth application you connected to Increase. Details will be under the
+ * `oauth_application` object.
+ */
+ @JvmField val OAUTH_APPLICATION = of("oauth_application")
+
+ /** A User in the Increase dashboard. Details will be under the `user` object. */
+ @JvmField val USER = of("user")
+
+ @JvmStatic fun of(value: String) = Category(JsonField.of(value))
+ }
+
+ /** An enum containing [Category]'s known values. */
+ enum class Known {
+ /** An API key. Details will be under the `api_key` object. */
+ API_KEY,
+ /**
+ * An OAuth application you connected to Increase. Details will be under the
+ * `oauth_application` object.
+ */
+ OAUTH_APPLICATION,
+ /** A User in the Increase dashboard. Details will be under the `user` object. */
+ USER,
+ }
+
+ /**
+ * An enum containing [Category]'s known values, as well as an [_UNKNOWN] member.
+ *
+ * An instance of [Category] can contain an unknown value in a couple of cases:
+ * - It was deserialized from data that doesn't match any known member. For example, if
+ * the SDK is on an older version than the API, then the API may respond with new
+ * members that the SDK is unaware of.
+ * - It was constructed with an arbitrary value using the [of] method.
+ */
+ enum class Value {
+ /** An API key. Details will be under the `api_key` object. */
+ API_KEY,
+ /**
+ * An OAuth application you connected to Increase. Details will be under the
+ * `oauth_application` object.
+ */
+ OAUTH_APPLICATION,
+ /** A User in the Increase dashboard. Details will be under the `user` object. */
+ USER,
+ /**
+ * An enum member indicating that [Category] was instantiated with an unknown value.
+ */
+ _UNKNOWN,
+ }
+
+ /**
+ * Returns an enum member corresponding to this class instance's value, or
+ * [Value._UNKNOWN] if the class was instantiated with an unknown value.
+ *
+ * Use the [known] method instead if you're certain the value is always known or if you
+ * want to throw for the unknown case.
+ */
+ fun value(): Value =
+ when (this) {
+ API_KEY -> Value.API_KEY
+ OAUTH_APPLICATION -> Value.OAUTH_APPLICATION
+ USER -> Value.USER
+ else -> Value._UNKNOWN
+ }
+
+ /**
+ * Returns an enum member corresponding to this class instance's value.
+ *
+ * Use the [value] method instead if you're uncertain the value is always known and
+ * don't want to throw for the unknown case.
+ *
+ * @throws IncreaseInvalidDataException if this class instance's value is a not a known
+ * member.
+ */
+ fun known(): Known =
+ when (this) {
+ API_KEY -> Known.API_KEY
+ OAUTH_APPLICATION -> Known.OAUTH_APPLICATION
+ USER -> Known.USER
+ else -> throw IncreaseInvalidDataException("Unknown Category: $value")
+ }
+
+ /**
+ * Returns this class instance's primitive wire representation.
+ *
+ * This differs from the [toString] method because that method is primarily for
+ * debugging and generally doesn't throw.
+ *
+ * @throws IncreaseInvalidDataException if this class instance's value does not have the
+ * expected primitive type.
+ */
+ fun asString(): String =
+ _value().asString().orElseThrow {
+ IncreaseInvalidDataException("Value is not a String")
+ }
+
+ private var validated: Boolean = false
+
+ fun validate(): Category = apply {
+ if (validated) {
+ return@apply
+ }
+
+ known()
+ validated = true
+ }
+
+ fun isValid(): Boolean =
+ try {
+ validate()
+ true
+ } catch (e: IncreaseInvalidDataException) {
+ false
+ }
+
+ /**
+ * Returns a score indicating how many valid values are contained in this object
+ * recursively.
+ *
+ * Used for best match union deserialization.
+ */
+ @JvmSynthetic internal fun validity(): Int = if (value() == Value._UNKNOWN) 0 else 1
+
+ override fun equals(other: Any?): Boolean {
+ if (this === other) {
+ return true
+ }
+
+ return other is Category && value == other.value
+ }
+
+ override fun hashCode() = value.hashCode()
+
+ override fun toString() = value.toString()
+ }
+
/** If present, details about the API key that created the transfer. */
class ApiKey
@JsonCreator(mode = JsonCreator.Mode.DISABLED)
@@ -4087,161 +4232,6 @@ private constructor(
"ApiKey{description=$description, additionalProperties=$additionalProperties}"
}
- /** The type of object that created this transfer. */
- class Category @JsonCreator private constructor(private val value: JsonField) :
- Enum {
-
- /**
- * Returns this class instance's raw value.
- *
- * This is usually only useful if this instance was deserialized from data that doesn't
- * match any known member, and you want to know that value. For example, if the SDK is
- * on an older version than the API, then the API may respond with new members that the
- * SDK is unaware of.
- */
- @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value
-
- companion object {
-
- /** An API key. Details will be under the `api_key` object. */
- @JvmField val API_KEY = of("api_key")
-
- /**
- * An OAuth application you connected to Increase. Details will be under the
- * `oauth_application` object.
- */
- @JvmField val OAUTH_APPLICATION = of("oauth_application")
-
- /** A User in the Increase dashboard. Details will be under the `user` object. */
- @JvmField val USER = of("user")
-
- @JvmStatic fun of(value: String) = Category(JsonField.of(value))
- }
-
- /** An enum containing [Category]'s known values. */
- enum class Known {
- /** An API key. Details will be under the `api_key` object. */
- API_KEY,
- /**
- * An OAuth application you connected to Increase. Details will be under the
- * `oauth_application` object.
- */
- OAUTH_APPLICATION,
- /** A User in the Increase dashboard. Details will be under the `user` object. */
- USER,
- }
-
- /**
- * An enum containing [Category]'s known values, as well as an [_UNKNOWN] member.
- *
- * An instance of [Category] can contain an unknown value in a couple of cases:
- * - It was deserialized from data that doesn't match any known member. For example, if
- * the SDK is on an older version than the API, then the API may respond with new
- * members that the SDK is unaware of.
- * - It was constructed with an arbitrary value using the [of] method.
- */
- enum class Value {
- /** An API key. Details will be under the `api_key` object. */
- API_KEY,
- /**
- * An OAuth application you connected to Increase. Details will be under the
- * `oauth_application` object.
- */
- OAUTH_APPLICATION,
- /** A User in the Increase dashboard. Details will be under the `user` object. */
- USER,
- /**
- * An enum member indicating that [Category] was instantiated with an unknown value.
- */
- _UNKNOWN,
- }
-
- /**
- * Returns an enum member corresponding to this class instance's value, or
- * [Value._UNKNOWN] if the class was instantiated with an unknown value.
- *
- * Use the [known] method instead if you're certain the value is always known or if you
- * want to throw for the unknown case.
- */
- fun value(): Value =
- when (this) {
- API_KEY -> Value.API_KEY
- OAUTH_APPLICATION -> Value.OAUTH_APPLICATION
- USER -> Value.USER
- else -> Value._UNKNOWN
- }
-
- /**
- * Returns an enum member corresponding to this class instance's value.
- *
- * Use the [value] method instead if you're uncertain the value is always known and
- * don't want to throw for the unknown case.
- *
- * @throws IncreaseInvalidDataException if this class instance's value is a not a known
- * member.
- */
- fun known(): Known =
- when (this) {
- API_KEY -> Known.API_KEY
- OAUTH_APPLICATION -> Known.OAUTH_APPLICATION
- USER -> Known.USER
- else -> throw IncreaseInvalidDataException("Unknown Category: $value")
- }
-
- /**
- * Returns this class instance's primitive wire representation.
- *
- * This differs from the [toString] method because that method is primarily for
- * debugging and generally doesn't throw.
- *
- * @throws IncreaseInvalidDataException if this class instance's value does not have the
- * expected primitive type.
- */
- fun asString(): String =
- _value().asString().orElseThrow {
- IncreaseInvalidDataException("Value is not a String")
- }
-
- private var validated: Boolean = false
-
- fun validate(): Category = apply {
- if (validated) {
- return@apply
- }
-
- known()
- validated = true
- }
-
- fun isValid(): Boolean =
- try {
- validate()
- true
- } catch (e: IncreaseInvalidDataException) {
- false
- }
-
- /**
- * Returns a score indicating how many valid values are contained in this object
- * recursively.
- *
- * Used for best match union deserialization.
- */
- @JvmSynthetic internal fun validity(): Int = if (value() == Value._UNKNOWN) 0 else 1
-
- override fun equals(other: Any?): Boolean {
- if (this === other) {
- return true
- }
-
- return other is Category && value == other.value
- }
-
- override fun hashCode() = value.hashCode()
-
- override fun toString() = value.toString()
- }
-
/** If present, details about the OAuth Application that created the transfer. */
class OAuthApplication
@JsonCreator(mode = JsonCreator.Mode.DISABLED)
@@ -4573,21 +4563,21 @@ private constructor(
}
return other is CreatedBy &&
- apiKey == other.apiKey &&
category == other.category &&
+ apiKey == other.apiKey &&
oauthApplication == other.oauthApplication &&
user == other.user &&
additionalProperties == other.additionalProperties
}
private val hashCode: Int by lazy {
- Objects.hash(apiKey, category, oauthApplication, user, additionalProperties)
+ Objects.hash(category, apiKey, oauthApplication, user, additionalProperties)
}
override fun hashCode(): Int = hashCode
override fun toString() =
- "CreatedBy{apiKey=$apiKey, category=$category, oauthApplication=$oauthApplication, user=$user, additionalProperties=$additionalProperties}"
+ "CreatedBy{category=$category, apiKey=$apiKey, oauthApplication=$oauthApplication, user=$user, 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 09175f8d9..31172bde1 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
@@ -1808,11 +1808,11 @@ private constructor(
private constructor(
private val attachmentFiles: JsonField>,
private val category: JsonField,
+ private val createdAt: JsonField,
+ private val disputeFinancialTransactionId: JsonField,
private val chargebackAccepted: JsonField,
private val chargebackSubmitted: JsonField,
private val chargebackTimedOut: JsonField,
- private val createdAt: JsonField,
- private val disputeFinancialTransactionId: JsonField,
private val merchantPrearbitrationDeclineSubmitted:
JsonField,
private val merchantPrearbitrationReceived: JsonField,
@@ -1835,6 +1835,12 @@ private constructor(
@JsonProperty("category")
@ExcludeMissing
category: JsonField = JsonMissing.of(),
+ @JsonProperty("created_at")
+ @ExcludeMissing
+ createdAt: JsonField = JsonMissing.of(),
+ @JsonProperty("dispute_financial_transaction_id")
+ @ExcludeMissing
+ disputeFinancialTransactionId: JsonField = JsonMissing.of(),
@JsonProperty("chargeback_accepted")
@ExcludeMissing
chargebackAccepted: JsonField = JsonMissing.of(),
@@ -1844,12 +1850,6 @@ private constructor(
@JsonProperty("chargeback_timed_out")
@ExcludeMissing
chargebackTimedOut: JsonField = JsonMissing.of(),
- @JsonProperty("created_at")
- @ExcludeMissing
- createdAt: JsonField = JsonMissing.of(),
- @JsonProperty("dispute_financial_transaction_id")
- @ExcludeMissing
- disputeFinancialTransactionId: JsonField = JsonMissing.of(),
@JsonProperty("merchant_prearbitration_decline_submitted")
@ExcludeMissing
merchantPrearbitrationDeclineSubmitted:
@@ -1891,11 +1891,11 @@ private constructor(
) : this(
attachmentFiles,
category,
+ createdAt,
+ disputeFinancialTransactionId,
chargebackAccepted,
chargebackSubmitted,
chargebackTimedOut,
- createdAt,
- disputeFinancialTransactionId,
merchantPrearbitrationDeclineSubmitted,
merchantPrearbitrationReceived,
merchantPrearbitrationTimedOut,
@@ -1929,6 +1929,25 @@ private constructor(
*/
fun category(): Category = category.getRequired("category")
+ /**
+ * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which the
+ * Visa Card Dispute Network Event was created.
+ *
+ * @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 createdAt(): OffsetDateTime = createdAt.getRequired("created_at")
+
+ /**
+ * The dispute financial transaction that resulted from the network event, if any.
+ *
+ * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g.
+ * if the server responded with an unexpected value).
+ */
+ fun disputeFinancialTransactionId(): Optional =
+ disputeFinancialTransactionId.getOptional("dispute_financial_transaction_id")
+
/**
* 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
@@ -1968,25 +1987,6 @@ private constructor(
fun chargebackTimedOut(): Optional =
chargebackTimedOut.getOptional("chargeback_timed_out")
- /**
- * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which the
- * Visa Card Dispute Network Event was created.
- *
- * @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 createdAt(): OffsetDateTime = createdAt.getRequired("created_at")
-
- /**
- * The dispute financial transaction that resulted from the network event, if any.
- *
- * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g.
- * if the server responded with an unexpected value).
- */
- fun disputeFinancialTransactionId(): Optional =
- disputeFinancialTransactionId.getOptional("dispute_financial_transaction_id")
-
/**
* 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
@@ -2140,6 +2140,26 @@ private constructor(
@ExcludeMissing
fun _category(): JsonField = category
+ /**
+ * Returns the raw JSON value of [createdAt].
+ *
+ * Unlike [createdAt], this method doesn't throw if the JSON field has an unexpected
+ * type.
+ */
+ @JsonProperty("created_at")
+ @ExcludeMissing
+ fun _createdAt(): JsonField = createdAt
+
+ /**
+ * Returns the raw JSON value of [disputeFinancialTransactionId].
+ *
+ * Unlike [disputeFinancialTransactionId], this method doesn't throw if the JSON field
+ * has an unexpected type.
+ */
+ @JsonProperty("dispute_financial_transaction_id")
+ @ExcludeMissing
+ fun _disputeFinancialTransactionId(): JsonField = disputeFinancialTransactionId
+
/**
* Returns the raw JSON value of [chargebackAccepted].
*
@@ -2170,26 +2190,6 @@ private constructor(
@ExcludeMissing
fun _chargebackTimedOut(): JsonField = chargebackTimedOut
- /**
- * Returns the raw JSON value of [createdAt].
- *
- * Unlike [createdAt], this method doesn't throw if the JSON field has an unexpected
- * type.
- */
- @JsonProperty("created_at")
- @ExcludeMissing
- fun _createdAt(): JsonField = createdAt
-
- /**
- * Returns the raw JSON value of [disputeFinancialTransactionId].
- *
- * Unlike [disputeFinancialTransactionId], this method doesn't throw if the JSON field
- * has an unexpected type.
- */
- @JsonProperty("dispute_financial_transaction_id")
- @ExcludeMissing
- fun _disputeFinancialTransactionId(): JsonField = disputeFinancialTransactionId
-
/**
* Returns the raw JSON value of [merchantPrearbitrationDeclineSubmitted].
*
@@ -2320,21 +2320,8 @@ private constructor(
* ```java
* .attachmentFiles()
* .category()
- * .chargebackAccepted()
- * .chargebackSubmitted()
- * .chargebackTimedOut()
* .createdAt()
* .disputeFinancialTransactionId()
- * .merchantPrearbitrationDeclineSubmitted()
- * .merchantPrearbitrationReceived()
- * .merchantPrearbitrationTimedOut()
- * .represented()
- * .representmentTimedOut()
- * .userPrearbitrationAccepted()
- * .userPrearbitrationDeclined()
- * .userPrearbitrationSubmitted()
- * .userPrearbitrationTimedOut()
- * .userWithdrawalSubmitted()
* ```
*/
@JvmStatic fun builder() = Builder()
@@ -2345,42 +2332,44 @@ private constructor(
private var attachmentFiles: JsonField>? = null
private var category: JsonField? = 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 chargebackAccepted: JsonField = JsonMissing.of()
+ private var chargebackSubmitted: JsonField = JsonMissing.of()
+ private var chargebackTimedOut: JsonField = JsonMissing.of()
private var merchantPrearbitrationDeclineSubmitted:
- JsonField? =
- null
+ JsonField =
+ JsonMissing.of()
private var merchantPrearbitrationReceived:
- JsonField? =
- null
+ JsonField =
+ JsonMissing.of()
private var merchantPrearbitrationTimedOut:
- JsonField? =
- null
- private var represented: JsonField? = 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
+ JsonField =
+ JsonMissing.of()
+ private var represented: JsonField = JsonMissing.of()
+ private var representmentTimedOut: JsonField =
+ JsonMissing.of()
+ private var userPrearbitrationAccepted: JsonField =
+ JsonMissing.of()
+ private var userPrearbitrationDeclined: JsonField =
+ JsonMissing.of()
+ private var userPrearbitrationSubmitted: JsonField =
+ JsonMissing.of()
+ private var userPrearbitrationTimedOut: JsonField =
+ JsonMissing.of()
+ private var userWithdrawalSubmitted: JsonField =
+ JsonMissing.of()
private var additionalProperties: MutableMap = mutableMapOf()
@JvmSynthetic
internal fun from(networkEvent: NetworkEvent) = apply {
attachmentFiles = networkEvent.attachmentFiles.map { it.toMutableList() }
category = networkEvent.category
+ createdAt = networkEvent.createdAt
+ disputeFinancialTransactionId = networkEvent.disputeFinancialTransactionId
chargebackAccepted = networkEvent.chargebackAccepted
chargebackSubmitted = networkEvent.chargebackSubmitted
chargebackTimedOut = networkEvent.chargebackTimedOut
- createdAt = networkEvent.createdAt
- disputeFinancialTransactionId = networkEvent.disputeFinancialTransactionId
merchantPrearbitrationDeclineSubmitted =
networkEvent.merchantPrearbitrationDeclineSubmitted
merchantPrearbitrationReceived = networkEvent.merchantPrearbitrationReceived
@@ -2438,6 +2427,49 @@ private constructor(
*/
fun category(category: JsonField) = apply { this.category = category }
+ /**
+ * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which the
+ * Visa Card Dispute Network Event was created.
+ */
+ fun createdAt(createdAt: OffsetDateTime) = createdAt(JsonField.of(createdAt))
+
+ /**
+ * Sets [Builder.createdAt] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.createdAt] with a well-typed [OffsetDateTime]
+ * value instead. This method is primarily for setting the field to an undocumented
+ * or not yet supported value.
+ */
+ fun createdAt(createdAt: JsonField) = apply {
+ this.createdAt = createdAt
+ }
+
+ /**
+ * The dispute financial transaction that resulted from the network event, if any.
+ */
+ fun disputeFinancialTransactionId(disputeFinancialTransactionId: String?) =
+ disputeFinancialTransactionId(
+ JsonField.ofNullable(disputeFinancialTransactionId)
+ )
+
+ /**
+ * Alias for calling [Builder.disputeFinancialTransactionId] with
+ * `disputeFinancialTransactionId.orElse(null)`.
+ */
+ fun disputeFinancialTransactionId(disputeFinancialTransactionId: Optional) =
+ disputeFinancialTransactionId(disputeFinancialTransactionId.getOrNull())
+
+ /**
+ * Sets [Builder.disputeFinancialTransactionId] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.disputeFinancialTransactionId] with a well-typed
+ * [String] value instead. This method is primarily for setting the field to an
+ * undocumented or not yet supported value.
+ */
+ fun disputeFinancialTransactionId(
+ disputeFinancialTransactionId: JsonField
+ ) = apply { this.disputeFinancialTransactionId = disputeFinancialTransactionId }
+
/**
* 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
@@ -2523,49 +2555,6 @@ private constructor(
this.chargebackTimedOut = chargebackTimedOut
}
- /**
- * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which the
- * Visa Card Dispute Network Event was created.
- */
- fun createdAt(createdAt: OffsetDateTime) = createdAt(JsonField.of(createdAt))
-
- /**
- * Sets [Builder.createdAt] to an arbitrary JSON value.
- *
- * You should usually call [Builder.createdAt] with a well-typed [OffsetDateTime]
- * value instead. This method is primarily for setting the field to an undocumented
- * or not yet supported value.
- */
- fun createdAt(createdAt: JsonField) = apply {
- this.createdAt = createdAt
- }
-
- /**
- * The dispute financial transaction that resulted from the network event, if any.
- */
- fun disputeFinancialTransactionId(disputeFinancialTransactionId: String?) =
- disputeFinancialTransactionId(
- JsonField.ofNullable(disputeFinancialTransactionId)
- )
-
- /**
- * Alias for calling [Builder.disputeFinancialTransactionId] with
- * `disputeFinancialTransactionId.orElse(null)`.
- */
- fun disputeFinancialTransactionId(disputeFinancialTransactionId: Optional) =
- disputeFinancialTransactionId(disputeFinancialTransactionId.getOrNull())
-
- /**
- * Sets [Builder.disputeFinancialTransactionId] to an arbitrary JSON value.
- *
- * You should usually call [Builder.disputeFinancialTransactionId] with a well-typed
- * [String] value instead. This method is primarily for setting the field to an
- * undocumented or not yet supported value.
- */
- fun disputeFinancialTransactionId(
- disputeFinancialTransactionId: JsonField
- ) = apply { this.disputeFinancialTransactionId = disputeFinancialTransactionId }
-
/**
* 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`
@@ -2908,21 +2897,8 @@ private constructor(
* ```java
* .attachmentFiles()
* .category()
- * .chargebackAccepted()
- * .chargebackSubmitted()
- * .chargebackTimedOut()
* .createdAt()
* .disputeFinancialTransactionId()
- * .merchantPrearbitrationDeclineSubmitted()
- * .merchantPrearbitrationReceived()
- * .merchantPrearbitrationTimedOut()
- * .represented()
- * .representmentTimedOut()
- * .userPrearbitrationAccepted()
- * .userPrearbitrationDeclined()
- * .userPrearbitrationSubmitted()
- * .userPrearbitrationTimedOut()
- * .userWithdrawalSubmitted()
* ```
*
* @throws IllegalStateException if any required field is unset.
@@ -2931,33 +2907,24 @@ private constructor(
NetworkEvent(
checkRequired("attachmentFiles", attachmentFiles).map { it.toImmutable() },
checkRequired("category", category),
- checkRequired("chargebackAccepted", chargebackAccepted),
- checkRequired("chargebackSubmitted", chargebackSubmitted),
- checkRequired("chargebackTimedOut", chargebackTimedOut),
checkRequired("createdAt", createdAt),
checkRequired(
"disputeFinancialTransactionId",
disputeFinancialTransactionId,
),
- checkRequired(
- "merchantPrearbitrationDeclineSubmitted",
- merchantPrearbitrationDeclineSubmitted,
- ),
- checkRequired(
- "merchantPrearbitrationReceived",
- merchantPrearbitrationReceived,
- ),
- checkRequired(
- "merchantPrearbitrationTimedOut",
- merchantPrearbitrationTimedOut,
- ),
- checkRequired("represented", represented),
- checkRequired("representmentTimedOut", representmentTimedOut),
- checkRequired("userPrearbitrationAccepted", userPrearbitrationAccepted),
- checkRequired("userPrearbitrationDeclined", userPrearbitrationDeclined),
- checkRequired("userPrearbitrationSubmitted", userPrearbitrationSubmitted),
- checkRequired("userPrearbitrationTimedOut", userPrearbitrationTimedOut),
- checkRequired("userWithdrawalSubmitted", userWithdrawalSubmitted),
+ chargebackAccepted,
+ chargebackSubmitted,
+ chargebackTimedOut,
+ merchantPrearbitrationDeclineSubmitted,
+ merchantPrearbitrationReceived,
+ merchantPrearbitrationTimedOut,
+ represented,
+ representmentTimedOut,
+ userPrearbitrationAccepted,
+ userPrearbitrationDeclined,
+ userPrearbitrationSubmitted,
+ userPrearbitrationTimedOut,
+ userWithdrawalSubmitted,
additionalProperties.toMutableMap(),
)
}
@@ -2971,11 +2938,11 @@ private constructor(
attachmentFiles().forEach { it.validate() }
category().validate()
+ createdAt()
+ disputeFinancialTransactionId()
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() }
@@ -3007,11 +2974,11 @@ private constructor(
internal fun validity(): Int =
(attachmentFiles.asKnown().getOrNull()?.sumOf { it.validity().toInt() } ?: 0) +
(category.asKnown().getOrNull()?.validity() ?: 0) +
+ (if (createdAt.asKnown().isPresent) 1 else 0) +
+ (if (disputeFinancialTransactionId.asKnown().isPresent) 1 else 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) +
@@ -11244,11 +11211,11 @@ private constructor(
return other is NetworkEvent &&
attachmentFiles == other.attachmentFiles &&
category == other.category &&
+ createdAt == other.createdAt &&
+ disputeFinancialTransactionId == other.disputeFinancialTransactionId &&
chargebackAccepted == other.chargebackAccepted &&
chargebackSubmitted == other.chargebackSubmitted &&
chargebackTimedOut == other.chargebackTimedOut &&
- createdAt == other.createdAt &&
- disputeFinancialTransactionId == other.disputeFinancialTransactionId &&
merchantPrearbitrationDeclineSubmitted ==
other.merchantPrearbitrationDeclineSubmitted &&
merchantPrearbitrationReceived == other.merchantPrearbitrationReceived &&
@@ -11267,11 +11234,11 @@ private constructor(
Objects.hash(
attachmentFiles,
category,
+ createdAt,
+ disputeFinancialTransactionId,
chargebackAccepted,
chargebackSubmitted,
chargebackTimedOut,
- createdAt,
- disputeFinancialTransactionId,
merchantPrearbitrationDeclineSubmitted,
merchantPrearbitrationReceived,
merchantPrearbitrationTimedOut,
@@ -11289,7 +11256,7 @@ private constructor(
override fun hashCode(): Int = hashCode
override fun toString() =
- "NetworkEvent{attachmentFiles=$attachmentFiles, category=$category, chargebackAccepted=$chargebackAccepted, chargebackSubmitted=$chargebackSubmitted, chargebackTimedOut=$chargebackTimedOut, createdAt=$createdAt, disputeFinancialTransactionId=$disputeFinancialTransactionId, merchantPrearbitrationDeclineSubmitted=$merchantPrearbitrationDeclineSubmitted, merchantPrearbitrationReceived=$merchantPrearbitrationReceived, merchantPrearbitrationTimedOut=$merchantPrearbitrationTimedOut, represented=$represented, representmentTimedOut=$representmentTimedOut, userPrearbitrationAccepted=$userPrearbitrationAccepted, userPrearbitrationDeclined=$userPrearbitrationDeclined, userPrearbitrationSubmitted=$userPrearbitrationSubmitted, userPrearbitrationTimedOut=$userPrearbitrationTimedOut, userWithdrawalSubmitted=$userWithdrawalSubmitted, additionalProperties=$additionalProperties}"
+ "NetworkEvent{attachmentFiles=$attachmentFiles, category=$category, createdAt=$createdAt, disputeFinancialTransactionId=$disputeFinancialTransactionId, chargebackAccepted=$chargebackAccepted, chargebackSubmitted=$chargebackSubmitted, chargebackTimedOut=$chargebackTimedOut, merchantPrearbitrationDeclineSubmitted=$merchantPrearbitrationDeclineSubmitted, merchantPrearbitrationReceived=$merchantPrearbitrationReceived, merchantPrearbitrationTimedOut=$merchantPrearbitrationTimedOut, represented=$represented, representmentTimedOut=$representmentTimedOut, userPrearbitrationAccepted=$userPrearbitrationAccepted, userPrearbitrationDeclined=$userPrearbitrationDeclined, userPrearbitrationSubmitted=$userPrearbitrationSubmitted, userPrearbitrationTimedOut=$userPrearbitrationTimedOut, userWithdrawalSubmitted=$userWithdrawalSubmitted, additionalProperties=$additionalProperties}"
}
/**
@@ -11458,14 +11425,14 @@ private constructor(
private val amount: JsonField,
private val attachmentFiles: JsonField>,
private val category: JsonField,
- private val chargeback: JsonField,
private val createdAt: JsonField,
private val explanation: JsonField,
private val furtherInformationRequestedAt: JsonField,
private val furtherInformationRequestedReason: JsonField,
- private val merchantPrearbitrationDecline: JsonField,
private val status: JsonField,
private val updatedAt: JsonField,
+ private val chargeback: JsonField,
+ private val merchantPrearbitrationDecline: JsonField,
private val userPrearbitration: JsonField,
private val additionalProperties: MutableMap,
) {
@@ -11482,9 +11449,6 @@ private constructor(
@JsonProperty("category")
@ExcludeMissing
category: JsonField = JsonMissing.of(),
- @JsonProperty("chargeback")
- @ExcludeMissing
- chargeback: JsonField = JsonMissing.of(),
@JsonProperty("created_at")
@ExcludeMissing
createdAt: JsonField = JsonMissing.of(),
@@ -11497,16 +11461,19 @@ private constructor(
@JsonProperty("further_information_requested_reason")
@ExcludeMissing
furtherInformationRequestedReason: JsonField = JsonMissing.of(),
- @JsonProperty("merchant_prearbitration_decline")
- @ExcludeMissing
- merchantPrearbitrationDecline: JsonField =
- JsonMissing.of(),
@JsonProperty("status")
@ExcludeMissing
status: JsonField = JsonMissing.of(),
@JsonProperty("updated_at")
@ExcludeMissing
updatedAt: JsonField = JsonMissing.of(),
+ @JsonProperty("chargeback")
+ @ExcludeMissing
+ chargeback: JsonField = JsonMissing.of(),
+ @JsonProperty("merchant_prearbitration_decline")
+ @ExcludeMissing
+ merchantPrearbitrationDecline: JsonField =
+ JsonMissing.of(),
@JsonProperty("user_prearbitration")
@ExcludeMissing
userPrearbitration: JsonField = JsonMissing.of(),
@@ -11515,14 +11482,14 @@ private constructor(
amount,
attachmentFiles,
category,
- chargeback,
createdAt,
explanation,
furtherInformationRequestedAt,
furtherInformationRequestedReason,
- merchantPrearbitrationDecline,
status,
updatedAt,
+ chargeback,
+ merchantPrearbitrationDecline,
userPrearbitration,
mutableMapOf(),
)
@@ -11565,17 +11532,6 @@ private constructor(
*/
fun category(): Category = category.getRequired("category")
- /**
- * A Visa Card Dispute Chargeback User Submission Chargeback Details object. This field
- * will be present in the JSON response if and only if `category` is equal to
- * `chargeback`. Contains the details specific to a Visa chargeback User Submission for
- * a Card Dispute.
- *
- * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g.
- * if the server responded with an unexpected value).
- */
- fun chargeback(): Optional = chargeback.getOptional("chargeback")
-
/**
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which the
* Visa Card Dispute User Submission was created.
@@ -11617,18 +11573,6 @@ private constructor(
"further_information_requested_reason"
)
- /**
- * A Visa Card Dispute Merchant Pre-Arbitration Decline User Submission object. This
- * field will be present in the JSON response if and only if `category` is equal to
- * `merchant_prearbitration_decline`. Contains the details specific to a merchant
- * prearbitration decline Visa Card Dispute User Submission.
- *
- * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g.
- * if the server responded with an unexpected value).
- */
- fun merchantPrearbitrationDecline(): Optional =
- merchantPrearbitrationDecline.getOptional("merchant_prearbitration_decline")
-
/**
* The status of the Visa Card Dispute User Submission.
*
@@ -11648,6 +11592,29 @@ private constructor(
*/
fun updatedAt(): OffsetDateTime = updatedAt.getRequired("updated_at")
+ /**
+ * A Visa Card Dispute Chargeback User Submission Chargeback Details object. This field
+ * will be present in the JSON response if and only if `category` is equal to
+ * `chargeback`. Contains the details specific to a Visa chargeback User Submission for
+ * a Card Dispute.
+ *
+ * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g.
+ * if the server responded with an unexpected value).
+ */
+ fun chargeback(): Optional = chargeback.getOptional("chargeback")
+
+ /**
+ * A Visa Card Dispute Merchant Pre-Arbitration Decline User Submission object. This
+ * field will be present in the JSON response if and only if `category` is equal to
+ * `merchant_prearbitration_decline`. Contains the details specific to a merchant
+ * prearbitration decline Visa Card Dispute User Submission.
+ *
+ * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g.
+ * if the server responded with an unexpected value).
+ */
+ fun merchantPrearbitrationDecline(): Optional =
+ merchantPrearbitrationDecline.getOptional("merchant_prearbitration_decline")
+
/**
* A Visa Card Dispute User-Initiated Pre-Arbitration User Submission object. This field
* will be present in the JSON response if and only if `category` is equal to
@@ -11697,16 +11664,6 @@ private constructor(
@ExcludeMissing
fun _category(): JsonField = category
- /**
- * Returns the raw JSON value of [chargeback].
- *
- * Unlike [chargeback], this method doesn't throw if the JSON field has an unexpected
- * type.
- */
- @JsonProperty("chargeback")
- @ExcludeMissing
- fun _chargeback(): JsonField = chargeback
-
/**
* Returns the raw JSON value of [createdAt].
*
@@ -11749,17 +11706,6 @@ private constructor(
fun _furtherInformationRequestedReason(): JsonField =
furtherInformationRequestedReason
- /**
- * Returns the raw JSON value of [merchantPrearbitrationDecline].
- *
- * Unlike [merchantPrearbitrationDecline], this method doesn't throw if the JSON field
- * has an unexpected type.
- */
- @JsonProperty("merchant_prearbitration_decline")
- @ExcludeMissing
- fun _merchantPrearbitrationDecline(): JsonField =
- merchantPrearbitrationDecline
-
/**
* Returns the raw JSON value of [status].
*
@@ -11777,6 +11723,27 @@ private constructor(
@ExcludeMissing
fun _updatedAt(): JsonField = updatedAt
+ /**
+ * Returns the raw JSON value of [chargeback].
+ *
+ * Unlike [chargeback], this method doesn't throw if the JSON field has an unexpected
+ * type.
+ */
+ @JsonProperty("chargeback")
+ @ExcludeMissing
+ fun _chargeback(): JsonField = chargeback
+
+ /**
+ * Returns the raw JSON value of [merchantPrearbitrationDecline].
+ *
+ * Unlike [merchantPrearbitrationDecline], this method doesn't throw if the JSON field
+ * has an unexpected type.
+ */
+ @JsonProperty("merchant_prearbitration_decline")
+ @ExcludeMissing
+ fun _merchantPrearbitrationDecline(): JsonField =
+ merchantPrearbitrationDecline
+
/**
* Returns the raw JSON value of [userPrearbitration].
*
@@ -11810,15 +11777,12 @@ private constructor(
* .amount()
* .attachmentFiles()
* .category()
- * .chargeback()
* .createdAt()
* .explanation()
* .furtherInformationRequestedAt()
* .furtherInformationRequestedReason()
- * .merchantPrearbitrationDecline()
* .status()
* .updatedAt()
- * .userPrearbitration()
* ```
*/
@JvmStatic fun builder() = Builder()
@@ -11831,17 +11795,17 @@ private constructor(
private var amount: JsonField? = null
private var attachmentFiles: JsonField>? = null
private var category: JsonField? = null
- private var chargeback: JsonField? = null
private var createdAt: JsonField? = null
private var explanation: JsonField? = null
private var furtherInformationRequestedAt: JsonField? = null
private var furtherInformationRequestedReason: JsonField? = null
- private var merchantPrearbitrationDecline:
- JsonField? =
- null
private var status: JsonField? = null
private var updatedAt: JsonField? = null
- private var userPrearbitration: JsonField? = null
+ private var chargeback: JsonField = JsonMissing.of()
+ private var merchantPrearbitrationDecline:
+ JsonField =
+ JsonMissing.of()
+ private var userPrearbitration: JsonField = JsonMissing.of()
private var additionalProperties: MutableMap = mutableMapOf()
@JvmSynthetic
@@ -11850,15 +11814,15 @@ private constructor(
amount = userSubmission.amount
attachmentFiles = userSubmission.attachmentFiles.map { it.toMutableList() }
category = userSubmission.category
- chargeback = userSubmission.chargeback
createdAt = userSubmission.createdAt
explanation = userSubmission.explanation
furtherInformationRequestedAt = userSubmission.furtherInformationRequestedAt
furtherInformationRequestedReason =
userSubmission.furtherInformationRequestedReason
- merchantPrearbitrationDecline = userSubmission.merchantPrearbitrationDecline
status = userSubmission.status
updatedAt = userSubmission.updatedAt
+ chargeback = userSubmission.chargeback
+ merchantPrearbitrationDecline = userSubmission.merchantPrearbitrationDecline
userPrearbitration = userSubmission.userPrearbitration
additionalProperties = userSubmission.additionalProperties.toMutableMap()
}
@@ -11953,30 +11917,6 @@ private constructor(
*/
fun category(category: JsonField) = apply { this.category = category }
- /**
- * A Visa Card Dispute Chargeback User Submission Chargeback Details object. This
- * field will be present in the JSON response if and only if `category` is equal to
- * `chargeback`. Contains the details specific to a Visa chargeback User Submission
- * for a Card Dispute.
- */
- fun chargeback(chargeback: Chargeback?) =
- chargeback(JsonField.ofNullable(chargeback))
-
- /** Alias for calling [Builder.chargeback] with `chargeback.orElse(null)`. */
- fun chargeback(chargeback: Optional) =
- chargeback(chargeback.getOrNull())
-
- /**
- * Sets [Builder.chargeback] to an arbitrary JSON value.
- *
- * You should usually call [Builder.chargeback] with a well-typed [Chargeback] value
- * instead. This method is primarily for setting the field to an undocumented or not
- * yet supported value.
- */
- fun chargeback(chargeback: JsonField) = apply {
- this.chargeback = chargeback
- }
-
/**
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which the
* Visa Card Dispute User Submission was created.
@@ -12074,6 +12014,59 @@ private constructor(
this.furtherInformationRequestedReason = furtherInformationRequestedReason
}
+ /** The status of the Visa Card Dispute User Submission. */
+ fun status(status: Status) = status(JsonField.of(status))
+
+ /**
+ * Sets [Builder.status] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.status] with a well-typed [Status] value
+ * instead. This method is primarily for setting the field to an undocumented or not
+ * yet supported value.
+ */
+ fun status(status: JsonField) = apply { this.status = status }
+
+ /**
+ * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which the
+ * Visa Card Dispute User Submission was updated.
+ */
+ fun updatedAt(updatedAt: OffsetDateTime) = updatedAt(JsonField.of(updatedAt))
+
+ /**
+ * Sets [Builder.updatedAt] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.updatedAt] with a well-typed [OffsetDateTime]
+ * value instead. This method is primarily for setting the field to an undocumented
+ * or not yet supported value.
+ */
+ fun updatedAt(updatedAt: JsonField) = apply {
+ this.updatedAt = updatedAt
+ }
+
+ /**
+ * A Visa Card Dispute Chargeback User Submission Chargeback Details object. This
+ * field will be present in the JSON response if and only if `category` is equal to
+ * `chargeback`. Contains the details specific to a Visa chargeback User Submission
+ * for a Card Dispute.
+ */
+ fun chargeback(chargeback: Chargeback?) =
+ chargeback(JsonField.ofNullable(chargeback))
+
+ /** Alias for calling [Builder.chargeback] with `chargeback.orElse(null)`. */
+ fun chargeback(chargeback: Optional) =
+ chargeback(chargeback.getOrNull())
+
+ /**
+ * Sets [Builder.chargeback] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.chargeback] with a well-typed [Chargeback] value
+ * instead. This method is primarily for setting the field to an undocumented or not
+ * yet supported value.
+ */
+ fun chargeback(chargeback: JsonField) = apply {
+ this.chargeback = chargeback
+ }
+
/**
* A Visa Card Dispute Merchant Pre-Arbitration Decline User Submission object. This
* field will be present in the JSON response if and only if `category` is equal to
@@ -12106,35 +12099,6 @@ private constructor(
merchantPrearbitrationDecline: JsonField
) = apply { this.merchantPrearbitrationDecline = merchantPrearbitrationDecline }
- /** The status of the Visa Card Dispute User Submission. */
- fun status(status: Status) = status(JsonField.of(status))
-
- /**
- * Sets [Builder.status] to an arbitrary JSON value.
- *
- * You should usually call [Builder.status] with a well-typed [Status] value
- * instead. This method is primarily for setting the field to an undocumented or not
- * yet supported value.
- */
- fun status(status: JsonField) = apply { this.status = status }
-
- /**
- * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which the
- * Visa Card Dispute User Submission was updated.
- */
- fun updatedAt(updatedAt: OffsetDateTime) = updatedAt(JsonField.of(updatedAt))
-
- /**
- * Sets [Builder.updatedAt] to an arbitrary JSON value.
- *
- * You should usually call [Builder.updatedAt] with a well-typed [OffsetDateTime]
- * value instead. This method is primarily for setting the field to an undocumented
- * or not yet supported value.
- */
- fun updatedAt(updatedAt: JsonField) = apply {
- this.updatedAt = updatedAt
- }
-
/**
* A Visa Card Dispute User-Initiated Pre-Arbitration User Submission object. This
* field will be present in the JSON response if and only if `category` is equal to
@@ -12195,15 +12159,12 @@ private constructor(
* .amount()
* .attachmentFiles()
* .category()
- * .chargeback()
* .createdAt()
* .explanation()
* .furtherInformationRequestedAt()
* .furtherInformationRequestedReason()
- * .merchantPrearbitrationDecline()
* .status()
* .updatedAt()
- * .userPrearbitration()
* ```
*
* @throws IllegalStateException if any required field is unset.
@@ -12214,7 +12175,6 @@ private constructor(
checkRequired("amount", amount),
checkRequired("attachmentFiles", attachmentFiles).map { it.toImmutable() },
checkRequired("category", category),
- checkRequired("chargeback", chargeback),
checkRequired("createdAt", createdAt),
checkRequired("explanation", explanation),
checkRequired(
@@ -12225,13 +12185,11 @@ private constructor(
"furtherInformationRequestedReason",
furtherInformationRequestedReason,
),
- checkRequired(
- "merchantPrearbitrationDecline",
- merchantPrearbitrationDecline,
- ),
checkRequired("status", status),
checkRequired("updatedAt", updatedAt),
- checkRequired("userPrearbitration", userPrearbitration),
+ chargeback,
+ merchantPrearbitrationDecline,
+ userPrearbitration,
additionalProperties.toMutableMap(),
)
}
@@ -12247,14 +12205,14 @@ private constructor(
amount()
attachmentFiles().forEach { it.validate() }
category().validate()
- chargeback().ifPresent { it.validate() }
createdAt()
explanation()
furtherInformationRequestedAt()
furtherInformationRequestedReason()
- merchantPrearbitrationDecline().ifPresent { it.validate() }
status().validate()
updatedAt()
+ chargeback().ifPresent { it.validate() }
+ merchantPrearbitrationDecline().ifPresent { it.validate() }
userPrearbitration().ifPresent { it.validate() }
validated = true
}
@@ -12279,14 +12237,14 @@ private constructor(
(if (amount.asKnown().isPresent) 1 else 0) +
(attachmentFiles.asKnown().getOrNull()?.sumOf { it.validity().toInt() } ?: 0) +
(category.asKnown().getOrNull()?.validity() ?: 0) +
- (chargeback.asKnown().getOrNull()?.validity() ?: 0) +
(if (createdAt.asKnown().isPresent) 1 else 0) +
(if (explanation.asKnown().isPresent) 1 else 0) +
(if (furtherInformationRequestedAt.asKnown().isPresent) 1 else 0) +
(if (furtherInformationRequestedReason.asKnown().isPresent) 1 else 0) +
- (merchantPrearbitrationDecline.asKnown().getOrNull()?.validity() ?: 0) +
(status.asKnown().getOrNull()?.validity() ?: 0) +
(if (updatedAt.asKnown().isPresent) 1 else 0) +
+ (chargeback.asKnown().getOrNull()?.validity() ?: 0) +
+ (merchantPrearbitrationDecline.asKnown().getOrNull()?.validity() ?: 0) +
(userPrearbitration.asKnown().getOrNull()?.validity() ?: 0)
class AttachmentFile
@@ -12634,6 +12592,172 @@ private constructor(
override fun toString() = value.toString()
}
+ /** The status of the Visa Card Dispute User Submission. */
+ class Status @JsonCreator private constructor(private val value: JsonField) :
+ Enum {
+
+ /**
+ * Returns this class instance's raw value.
+ *
+ * This is usually only useful if this instance was deserialized from data that
+ * doesn't match any known member, and you want to know that value. For example, if
+ * the SDK is on an older version than the API, then the API may respond with new
+ * members that the SDK is unaware of.
+ */
+ @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value
+
+ companion object {
+
+ /** The User Submission was abandoned. */
+ @JvmField val ABANDONED = of("abandoned")
+
+ /** The User Submission was accepted. */
+ @JvmField val ACCEPTED = of("accepted")
+
+ /**
+ * Further information is requested, please resubmit with the requested
+ * information.
+ */
+ @JvmField
+ val FURTHER_INFORMATION_REQUESTED = of("further_information_requested")
+
+ /** The User Submission is pending review. */
+ @JvmField val PENDING_REVIEWING = of("pending_reviewing")
+
+ @JvmStatic fun of(value: String) = Status(JsonField.of(value))
+ }
+
+ /** An enum containing [Status]'s known values. */
+ enum class Known {
+ /** The User Submission was abandoned. */
+ ABANDONED,
+ /** The User Submission was accepted. */
+ ACCEPTED,
+ /**
+ * Further information is requested, please resubmit with the requested
+ * information.
+ */
+ FURTHER_INFORMATION_REQUESTED,
+ /** The User Submission is pending review. */
+ PENDING_REVIEWING,
+ }
+
+ /**
+ * An enum containing [Status]'s known values, as well as an [_UNKNOWN] member.
+ *
+ * An instance of [Status] can contain an unknown value in a couple of cases:
+ * - It was deserialized from data that doesn't match any known member. For example,
+ * if the SDK is on an older version than the API, then the API may respond with
+ * new members that the SDK is unaware of.
+ * - It was constructed with an arbitrary value using the [of] method.
+ */
+ enum class Value {
+ /** The User Submission was abandoned. */
+ ABANDONED,
+ /** The User Submission was accepted. */
+ ACCEPTED,
+ /**
+ * Further information is requested, please resubmit with the requested
+ * information.
+ */
+ FURTHER_INFORMATION_REQUESTED,
+ /** The User Submission is pending review. */
+ PENDING_REVIEWING,
+ /**
+ * An enum member indicating that [Status] was instantiated with an unknown
+ * value.
+ */
+ _UNKNOWN,
+ }
+
+ /**
+ * Returns an enum member corresponding to this class instance's value, or
+ * [Value._UNKNOWN] if the class was instantiated with an unknown value.
+ *
+ * Use the [known] method instead if you're certain the value is always known or if
+ * you want to throw for the unknown case.
+ */
+ fun value(): Value =
+ when (this) {
+ ABANDONED -> Value.ABANDONED
+ ACCEPTED -> Value.ACCEPTED
+ FURTHER_INFORMATION_REQUESTED -> Value.FURTHER_INFORMATION_REQUESTED
+ PENDING_REVIEWING -> Value.PENDING_REVIEWING
+ else -> Value._UNKNOWN
+ }
+
+ /**
+ * Returns an enum member corresponding to this class instance's value.
+ *
+ * Use the [value] method instead if you're uncertain the value is always known and
+ * don't want to throw for the unknown case.
+ *
+ * @throws IncreaseInvalidDataException if this class instance's value is a not a
+ * known member.
+ */
+ fun known(): Known =
+ when (this) {
+ ABANDONED -> Known.ABANDONED
+ ACCEPTED -> Known.ACCEPTED
+ FURTHER_INFORMATION_REQUESTED -> Known.FURTHER_INFORMATION_REQUESTED
+ PENDING_REVIEWING -> Known.PENDING_REVIEWING
+ else -> throw IncreaseInvalidDataException("Unknown Status: $value")
+ }
+
+ /**
+ * Returns this class instance's primitive wire representation.
+ *
+ * This differs from the [toString] method because that method is primarily for
+ * debugging and generally doesn't throw.
+ *
+ * @throws IncreaseInvalidDataException if this class instance's value does not have
+ * the expected primitive type.
+ */
+ fun asString(): String =
+ _value().asString().orElseThrow {
+ IncreaseInvalidDataException("Value is not a String")
+ }
+
+ private var validated: Boolean = false
+
+ fun validate(): Status = apply {
+ if (validated) {
+ return@apply
+ }
+
+ known()
+ validated = true
+ }
+
+ fun isValid(): Boolean =
+ try {
+ validate()
+ true
+ } catch (e: IncreaseInvalidDataException) {
+ false
+ }
+
+ /**
+ * Returns a score indicating how many valid values are contained in this object
+ * recursively.
+ *
+ * Used for best match union deserialization.
+ */
+ @JvmSynthetic internal fun validity(): Int = if (value() == Value._UNKNOWN) 0 else 1
+
+ override fun equals(other: Any?): Boolean {
+ if (this === other) {
+ return true
+ }
+
+ return other is Status && value == other.value
+ }
+
+ override fun hashCode() = value.hashCode()
+
+ override fun toString() = value.toString()
+ }
+
/**
* A Visa Card Dispute Chargeback User Submission Chargeback Details object. This field
* will be present in the JSON response if and only if `category` is equal to
@@ -40224,172 +40348,6 @@ private constructor(
"MerchantPrearbitrationDecline{reason=$reason, additionalProperties=$additionalProperties}"
}
- /** The status of the Visa Card Dispute User Submission. */
- class Status @JsonCreator private constructor(private val value: JsonField) :
- Enum {
-
- /**
- * Returns this class instance's raw value.
- *
- * This is usually only useful if this instance was deserialized from data that
- * doesn't match any known member, and you want to know that value. For example, if
- * the SDK is on an older version than the API, then the API may respond with new
- * members that the SDK is unaware of.
- */
- @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value
-
- companion object {
-
- /** The User Submission was abandoned. */
- @JvmField val ABANDONED = of("abandoned")
-
- /** The User Submission was accepted. */
- @JvmField val ACCEPTED = of("accepted")
-
- /**
- * Further information is requested, please resubmit with the requested
- * information.
- */
- @JvmField
- val FURTHER_INFORMATION_REQUESTED = of("further_information_requested")
-
- /** The User Submission is pending review. */
- @JvmField val PENDING_REVIEWING = of("pending_reviewing")
-
- @JvmStatic fun of(value: String) = Status(JsonField.of(value))
- }
-
- /** An enum containing [Status]'s known values. */
- enum class Known {
- /** The User Submission was abandoned. */
- ABANDONED,
- /** The User Submission was accepted. */
- ACCEPTED,
- /**
- * Further information is requested, please resubmit with the requested
- * information.
- */
- FURTHER_INFORMATION_REQUESTED,
- /** The User Submission is pending review. */
- PENDING_REVIEWING,
- }
-
- /**
- * An enum containing [Status]'s known values, as well as an [_UNKNOWN] member.
- *
- * An instance of [Status] can contain an unknown value in a couple of cases:
- * - It was deserialized from data that doesn't match any known member. For example,
- * if the SDK is on an older version than the API, then the API may respond with
- * new members that the SDK is unaware of.
- * - It was constructed with an arbitrary value using the [of] method.
- */
- enum class Value {
- /** The User Submission was abandoned. */
- ABANDONED,
- /** The User Submission was accepted. */
- ACCEPTED,
- /**
- * Further information is requested, please resubmit with the requested
- * information.
- */
- FURTHER_INFORMATION_REQUESTED,
- /** The User Submission is pending review. */
- PENDING_REVIEWING,
- /**
- * An enum member indicating that [Status] was instantiated with an unknown
- * value.
- */
- _UNKNOWN,
- }
-
- /**
- * Returns an enum member corresponding to this class instance's value, or
- * [Value._UNKNOWN] if the class was instantiated with an unknown value.
- *
- * Use the [known] method instead if you're certain the value is always known or if
- * you want to throw for the unknown case.
- */
- fun value(): Value =
- when (this) {
- ABANDONED -> Value.ABANDONED
- ACCEPTED -> Value.ACCEPTED
- FURTHER_INFORMATION_REQUESTED -> Value.FURTHER_INFORMATION_REQUESTED
- PENDING_REVIEWING -> Value.PENDING_REVIEWING
- else -> Value._UNKNOWN
- }
-
- /**
- * Returns an enum member corresponding to this class instance's value.
- *
- * Use the [value] method instead if you're uncertain the value is always known and
- * don't want to throw for the unknown case.
- *
- * @throws IncreaseInvalidDataException if this class instance's value is a not a
- * known member.
- */
- fun known(): Known =
- when (this) {
- ABANDONED -> Known.ABANDONED
- ACCEPTED -> Known.ACCEPTED
- FURTHER_INFORMATION_REQUESTED -> Known.FURTHER_INFORMATION_REQUESTED
- PENDING_REVIEWING -> Known.PENDING_REVIEWING
- else -> throw IncreaseInvalidDataException("Unknown Status: $value")
- }
-
- /**
- * Returns this class instance's primitive wire representation.
- *
- * This differs from the [toString] method because that method is primarily for
- * debugging and generally doesn't throw.
- *
- * @throws IncreaseInvalidDataException if this class instance's value does not have
- * the expected primitive type.
- */
- fun asString(): String =
- _value().asString().orElseThrow {
- IncreaseInvalidDataException("Value is not a String")
- }
-
- private var validated: Boolean = false
-
- fun validate(): Status = apply {
- if (validated) {
- return@apply
- }
-
- known()
- validated = true
- }
-
- fun isValid(): Boolean =
- try {
- validate()
- true
- } catch (e: IncreaseInvalidDataException) {
- false
- }
-
- /**
- * Returns a score indicating how many valid values are contained in this object
- * recursively.
- *
- * Used for best match union deserialization.
- */
- @JvmSynthetic internal fun validity(): Int = if (value() == Value._UNKNOWN) 0 else 1
-
- override fun equals(other: Any?): Boolean {
- if (this === other) {
- return true
- }
-
- return other is Status && value == other.value
- }
-
- override fun hashCode() = value.hashCode()
-
- override fun toString() = value.toString()
- }
-
/**
* A Visa Card Dispute User-Initiated Pre-Arbitration User Submission object. This field
* will be present in the JSON response if and only if `category` is equal to
@@ -41195,14 +41153,14 @@ private constructor(
amount == other.amount &&
attachmentFiles == other.attachmentFiles &&
category == other.category &&
- chargeback == other.chargeback &&
createdAt == other.createdAt &&
explanation == other.explanation &&
furtherInformationRequestedAt == other.furtherInformationRequestedAt &&
furtherInformationRequestedReason == other.furtherInformationRequestedReason &&
- merchantPrearbitrationDecline == other.merchantPrearbitrationDecline &&
status == other.status &&
updatedAt == other.updatedAt &&
+ chargeback == other.chargeback &&
+ merchantPrearbitrationDecline == other.merchantPrearbitrationDecline &&
userPrearbitration == other.userPrearbitration &&
additionalProperties == other.additionalProperties
}
@@ -41213,14 +41171,14 @@ private constructor(
amount,
attachmentFiles,
category,
- chargeback,
createdAt,
explanation,
furtherInformationRequestedAt,
furtherInformationRequestedReason,
- merchantPrearbitrationDecline,
status,
updatedAt,
+ chargeback,
+ merchantPrearbitrationDecline,
userPrearbitration,
additionalProperties,
)
@@ -41229,7 +41187,7 @@ private constructor(
override fun hashCode(): Int = hashCode
override fun toString() =
- "UserSubmission{acceptedAt=$acceptedAt, amount=$amount, attachmentFiles=$attachmentFiles, category=$category, chargeback=$chargeback, createdAt=$createdAt, explanation=$explanation, furtherInformationRequestedAt=$furtherInformationRequestedAt, furtherInformationRequestedReason=$furtherInformationRequestedReason, merchantPrearbitrationDecline=$merchantPrearbitrationDecline, status=$status, updatedAt=$updatedAt, userPrearbitration=$userPrearbitration, additionalProperties=$additionalProperties}"
+ "UserSubmission{acceptedAt=$acceptedAt, amount=$amount, attachmentFiles=$attachmentFiles, category=$category, createdAt=$createdAt, explanation=$explanation, furtherInformationRequestedAt=$furtherInformationRequestedAt, furtherInformationRequestedReason=$furtherInformationRequestedReason, status=$status, updatedAt=$updatedAt, chargeback=$chargeback, merchantPrearbitrationDecline=$merchantPrearbitrationDecline, userPrearbitration=$userPrearbitration, additionalProperties=$additionalProperties}"
}
override fun equals(other: Any?): Boolean {
diff --git a/increase-java-core/src/main/kotlin/com/increase/api/models/cardpayments/CardPayment.kt b/increase-java-core/src/main/kotlin/com/increase/api/models/cardpayments/CardPayment.kt
index cc1701eb4..a5ac9d552 100644
--- a/increase-java-core/src/main/kotlin/com/increase/api/models/cardpayments/CardPayment.kt
+++ b/increase-java-core/src/main/kotlin/com/increase/api/models/cardpayments/CardPayment.kt
@@ -521,6 +521,8 @@ private constructor(
class Element
@JsonCreator(mode = JsonCreator.Mode.DISABLED)
private constructor(
+ private val category: JsonField,
+ private val createdAt: JsonField,
private val cardAuthentication: JsonField,
private val cardAuthorization: JsonField,
private val cardAuthorizationExpiration: JsonField,
@@ -533,14 +535,18 @@ private constructor(
private val cardReversal: JsonField,
private val cardSettlement: JsonField,
private val cardValidation: JsonField,
- private val category: JsonField,
- private val createdAt: JsonField,
private val other: JsonField,
private val additionalProperties: MutableMap,
) {
@JsonCreator
private constructor(
+ @JsonProperty("category")
+ @ExcludeMissing
+ category: JsonField = JsonMissing.of(),
+ @JsonProperty("created_at")
+ @ExcludeMissing
+ createdAt: JsonField = JsonMissing.of(),
@JsonProperty("card_authentication")
@ExcludeMissing
cardAuthentication: JsonField = JsonMissing.of(),
@@ -577,14 +583,10 @@ private constructor(
@JsonProperty("card_validation")
@ExcludeMissing
cardValidation: JsonField = JsonMissing.of(),
- @JsonProperty("category")
- @ExcludeMissing
- category: JsonField = JsonMissing.of(),
- @JsonProperty("created_at")
- @ExcludeMissing
- createdAt: JsonField = JsonMissing.of(),
@JsonProperty("other") @ExcludeMissing other: JsonField = JsonMissing.of(),
) : this(
+ category,
+ createdAt,
cardAuthentication,
cardAuthorization,
cardAuthorizationExpiration,
@@ -597,12 +599,28 @@ private constructor(
cardReversal,
cardSettlement,
cardValidation,
- category,
- createdAt,
other,
mutableMapOf(),
)
+ /**
+ * The type of the resource. We may add additional possible values for this enum over time;
+ * your application should be able to handle such additions gracefully.
+ *
+ * @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 category(): Category = category.getRequired("category")
+
+ /**
+ * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which the card
+ * payment element was created.
+ *
+ * @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 createdAt(): OffsetDateTime = createdAt.getRequired("created_at")
+
/**
* A Card Authentication object. This field will be present in the JSON response if and only
* if `category` is equal to `card_authentication`. Card Authentications are attempts to
@@ -734,31 +752,29 @@ private constructor(
cardValidation.getOptional("card_validation")
/**
- * The type of the resource. We may add additional possible values for this enum over time;
- * your application should be able to handle such additions gracefully.
+ * If the category of this Transaction source is equal to `other`, this field will contain
+ * an empty object, otherwise it will contain null.
*
- * @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).
+ * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if
+ * the server responded with an unexpected value).
*/
- fun category(): Category = category.getRequired("category")
+ fun other(): Optional = other.getOptional("other")
/**
- * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which the card
- * payment element was created.
+ * Returns the raw JSON value of [category].
*
- * @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).
+ * Unlike [category], this method doesn't throw if the JSON field has an unexpected type.
*/
- fun createdAt(): OffsetDateTime = createdAt.getRequired("created_at")
+ @JsonProperty("category") @ExcludeMissing fun _category(): JsonField = category
/**
- * If the category of this Transaction source is equal to `other`, this field will contain
- * an empty object, otherwise it will contain null.
+ * Returns the raw JSON value of [createdAt].
*
- * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if
- * the server responded with an unexpected value).
+ * Unlike [createdAt], this method doesn't throw if the JSON field has an unexpected type.
*/
- fun other(): Optional = other.getOptional("other")
+ @JsonProperty("created_at")
+ @ExcludeMissing
+ fun _createdAt(): JsonField = createdAt
/**
* Returns the raw JSON value of [cardAuthentication].
@@ -879,22 +895,6 @@ private constructor(
@ExcludeMissing
fun _cardValidation(): JsonField = cardValidation
- /**
- * Returns the raw JSON value of [category].
- *
- * Unlike [category], this method doesn't throw if the JSON field has an unexpected type.
- */
- @JsonProperty("category") @ExcludeMissing fun _category(): JsonField = category
-
- /**
- * Returns the raw JSON value of [createdAt].
- *
- * Unlike [createdAt], this method doesn't throw if the JSON field has an unexpected type.
- */
- @JsonProperty("created_at")
- @ExcludeMissing
- fun _createdAt(): JsonField = createdAt
-
/**
* Returns the raw JSON value of [other].
*
@@ -921,21 +921,8 @@ private constructor(
*
* The following fields are required:
* ```java
- * .cardAuthentication()
- * .cardAuthorization()
- * .cardAuthorizationExpiration()
- * .cardBalanceInquiry()
- * .cardDecline()
- * .cardFinancial()
- * .cardFuelConfirmation()
- * .cardIncrement()
- * .cardRefund()
- * .cardReversal()
- * .cardSettlement()
- * .cardValidation()
* .category()
* .createdAt()
- * .other()
* ```
*/
@JvmStatic fun builder() = Builder()
@@ -944,25 +931,28 @@ private constructor(
/** A builder for [Element]. */
class Builder internal constructor() {
- private var cardAuthentication: JsonField? = null
- private var cardAuthorization: JsonField? = null
- private var cardAuthorizationExpiration: JsonField? = null
- private var cardBalanceInquiry: JsonField? = null
- private var cardDecline: JsonField? = null
- private var cardFinancial: JsonField? = null
- private var cardFuelConfirmation: JsonField? = null
- private var cardIncrement: JsonField? = null
- private var cardRefund: JsonField? = null
- private var cardReversal: JsonField? = null
- private var cardSettlement: JsonField? = null
- private var cardValidation: JsonField? = null
private var category: JsonField? = null
private var createdAt: JsonField? = null
- private var other: JsonField? = null
+ private var cardAuthentication: JsonField = JsonMissing.of()
+ private var cardAuthorization: JsonField = JsonMissing.of()
+ private var cardAuthorizationExpiration: JsonField =
+ JsonMissing.of()
+ private var cardBalanceInquiry: JsonField = JsonMissing.of()
+ private var cardDecline: JsonField = JsonMissing.of()
+ private var cardFinancial: JsonField = JsonMissing.of()
+ private var cardFuelConfirmation: JsonField = JsonMissing.of()
+ private var cardIncrement: JsonField = JsonMissing.of()
+ private var cardRefund: JsonField = JsonMissing.of()
+ private var cardReversal: JsonField = JsonMissing.of()
+ private var cardSettlement: JsonField