diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 2914c6d4..8f6c250b 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -14,7 +14,7 @@ on:
jobs:
lint:
- timeout-minutes: 10
+ timeout-minutes: 15
name: lint
runs-on: ${{ github.repository == 'stainless-sdks/finch-java' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
@@ -37,7 +37,7 @@ jobs:
- name: Run lints
run: ./scripts/lint
test:
- timeout-minutes: 10
+ timeout-minutes: 15
name: test
runs-on: ${{ github.repository == 'stainless-sdks/finch-java' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
diff --git a/.gitignore b/.gitignore
index 4e81838d..b1346e6d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,6 +2,6 @@
.gradle
.idea
.kotlin
-build
+build/
codegen.log
kls_database.db
diff --git a/.release-please-manifest.json b/.release-please-manifest.json
index 037c241f..a391b13b 100644
--- a/.release-please-manifest.json
+++ b/.release-please-manifest.json
@@ -1,3 +1,3 @@
{
- ".": "7.4.0"
+ ".": "7.5.0"
}
\ No newline at end of file
diff --git a/.stats.yml b/.stats.yml
index cedd110a..019c8e66 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 45
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-73c284d36c1ed2d9963fc733e421005fad76e559de8efe9baa6511a43dd72668.yml
-openapi_spec_hash: 1e58c4445919b71c77e5c7f16bd6fa7d
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-e8b684dbd61d1724b5e516a573a952bb6906d63840e27ebda7731a2f71061aff.yml
+openapi_spec_hash: 8baff9577d4e721d0494ff315da267ca
config_hash: 5146b12344dae76238940989dac1e8a0
diff --git a/CHANGELOG.md b/CHANGELOG.md
index f847bdfb..24da6e9f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,41 @@
# Changelog
+## 7.5.0 (2025-08-14)
+
+Full Changelog: [v7.4.0...v7.5.0](https://github.com/Finch-API/finch-api-java/compare/v7.4.0...v7.5.0)
+
+### Features
+
+* add retryable exception ([451adb3](https://github.com/Finch-API/finch-api-java/commit/451adb3fea351e5e905f4f947b96ffb0692fc381))
+* **api:** api update ([e282b93](https://github.com/Finch-API/finch-api-java/commit/e282b93f4af685cb1f90e0d3f625992f2244fca7))
+* **api:** api update ([21029e1](https://github.com/Finch-API/finch-api-java/commit/21029e1962110fd6394a08af08b97ae39e784e79))
+* **client:** ensure compat with proguard ([56c3b0b](https://github.com/Finch-API/finch-api-java/commit/56c3b0bcad2cff10e9b412efe55230544214dfcd))
+
+
+### Bug Fixes
+
+* **client:** prioritise bearer auth ([3e8af3a](https://github.com/Finch-API/finch-api-java/commit/3e8af3ad0b7ba3f17f845da25205fcd12df9389e))
+* **client:** r8 support ([700fb08](https://github.com/Finch-API/finch-api-java/commit/700fb080718f1b339860b9e384f3f359a0e6290f))
+
+
+### Performance Improvements
+
+* **internal:** make formatting faster ([6c97cb5](https://github.com/Finch-API/finch-api-java/commit/6c97cb5e79daab075eb43efb35ab992baa011770))
+
+
+### Chores
+
+* **example:** fix run example comment ([316356f](https://github.com/Finch-API/finch-api-java/commit/316356fb19963ef6ef9698102f2f66ea7111d8be))
+* increase max gradle JVM heap to 8GB ([1eed053](https://github.com/Finch-API/finch-api-java/commit/1eed053bef23cc9aa82085af0d17c94adc63e225))
+* **internal:** add async lock helper ([290ee95](https://github.com/Finch-API/finch-api-java/commit/290ee954c5520a181678d8472e5849a42485b1ae))
+* **internal:** bump ci test timeout ([9e577c2](https://github.com/Finch-API/finch-api-java/commit/9e577c2f9c082d753abca9d7b2157f5dbc1d3536))
+* **internal:** dynamically determine included projects ([a9f3ad6](https://github.com/Finch-API/finch-api-java/commit/a9f3ad61141a729a69b5482e65537af3f247fe75))
+* **internal:** format identity methods ([fee1332](https://github.com/Finch-API/finch-api-java/commit/fee13320c0585e2ff8ac12e08de92619d81504e9))
+* **internal:** reduce proguard ci logging ([97228cc](https://github.com/Finch-API/finch-api-java/commit/97228cca761aa1e433639279102a592877e87dca))
+* **internal:** support passing arguments to test script ([ed21d5f](https://github.com/Finch-API/finch-api-java/commit/ed21d5f3060c72300e10783daa1845c2b05fb30b))
+* **internal:** update comment in script ([9a58acb](https://github.com/Finch-API/finch-api-java/commit/9a58acbb6d50ac2c08c2a00243fc547d8f6193fe))
+* update @stainless-api/prism-cli to v5.15.0 ([9338715](https://github.com/Finch-API/finch-api-java/commit/93387157cbd7f20a97e713952ae8eacd34a6129f))
+
## 7.4.0 (2025-07-24)
Full Changelog: [v7.3.1...v7.4.0](https://github.com/Finch-API/finch-api-java/compare/v7.3.1...v7.4.0)
diff --git a/README.md b/README.md
index a6555c8b..091dc9a0 100644
--- a/README.md
+++ b/README.md
@@ -2,8 +2,8 @@
-[](https://central.sonatype.com/artifact/com.tryfinch.api/finch-java/7.4.0)
-[](https://javadoc.io/doc/com.tryfinch.api/finch-java/7.4.0)
+[](https://central.sonatype.com/artifact/com.tryfinch.api/finch-java/7.5.0)
+[](https://javadoc.io/doc/com.tryfinch.api/finch-java/7.5.0)
@@ -15,7 +15,7 @@ It is generated with [Stainless](https://www.stainless.com/).
-The REST API documentation can be found on [developer.tryfinch.com](https://developer.tryfinch.com/). Javadocs are available on [javadoc.io](https://javadoc.io/doc/com.tryfinch.api/finch-java/7.4.0).
+The REST API documentation can be found on [developer.tryfinch.com](https://developer.tryfinch.com/). Javadocs are available on [javadoc.io](https://javadoc.io/doc/com.tryfinch.api/finch-java/7.5.0).
@@ -26,7 +26,7 @@ The REST API documentation can be found on [developer.tryfinch.com](https://deve
### Gradle
```kotlin
-implementation("com.tryfinch.api:finch-java:7.4.0")
+implementation("com.tryfinch.api:finch-java:7.5.0")
```
### Maven
@@ -35,7 +35,7 @@ implementation("com.tryfinch.api:finch-java:7.4.0")
com.tryfinch.api
finch-java
- 7.4.0
+ 7.5.0
```
@@ -235,6 +235,8 @@ The SDK throws custom unchecked exception types:
- [`FinchIoException`](finch-java-core/src/main/kotlin/com/tryfinch/api/errors/FinchIoException.kt): I/O networking errors.
+- [`FinchRetryableException`](finch-java-core/src/main/kotlin/com/tryfinch/api/errors/FinchRetryableException.kt): Generic error indicating a failure that could be retried by the client.
+
- [`FinchInvalidDataException`](finch-java-core/src/main/kotlin/com/tryfinch/api/errors/FinchInvalidDataException.kt): Failure to interpret successfully parsed data. For example, when accessing a property that's supposed to be required, but the API unexpectedly omitted it from the response.
- [`FinchException`](finch-java-core/src/main/kotlin/com/tryfinch/api/errors/FinchException.kt): Base class for all exceptions. Most errors will result in one of the previously mentioned ones, but completely generic errors may be thrown using the base class.
@@ -365,6 +367,12 @@ both of which will raise an error if the signature is invalid.
Note that the "body" parameter must be the raw JSON string sent from the server (do not parse it first).
The `.unwrap()` method can parse this JSON for you.
+## ProGuard and R8
+
+Although the SDK uses reflection, it is still usable with [ProGuard](https://github.com/Guardsquare/proguard) and [R8](https://developer.android.com/topic/performance/app-optimization/enable-app-optimization) because `finch-java-core` is published with a [configuration file](finch-java-core/src/main/resources/META-INF/proguard/finch-java-core.pro) containing [keep rules](https://www.guardsquare.com/manual/configuration/usage).
+
+ProGuard and R8 should automatically detect and use the published rules, but you can also manually copy the keep rules if necessary.
+
## Jackson
The SDK depends on [Jackson](https://github.com/FasterXML/jackson) for JSON serialization/deserialization. It is compatible with version 2.13.4 or higher, but depends on version 2.18.2 by default.
diff --git a/build.gradle.kts b/build.gradle.kts
index 82ff7f2f..0f4d3aa8 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -8,7 +8,20 @@ repositories {
allprojects {
group = "com.tryfinch.api"
- version = "7.4.0" // x-release-please-version
+ version = "7.5.0" // x-release-please-version
+}
+
+subprojects {
+ // These are populated with dependencies by `buildSrc` scripts.
+ tasks.register("format") {
+ group = "Verification"
+ description = "Formats all source files."
+ }
+ tasks.register("lint") {
+ group = "Verification"
+ description = "Verifies all source files are formatted."
+ }
+ apply(plugin = "org.jetbrains.dokka")
}
subprojects {
diff --git a/buildSrc/build.gradle.kts b/buildSrc/build.gradle.kts
index 778c89de..c6dc92ec 100644
--- a/buildSrc/build.gradle.kts
+++ b/buildSrc/build.gradle.kts
@@ -10,7 +10,6 @@ repositories {
}
dependencies {
- implementation("com.diffplug.spotless:spotless-plugin-gradle:7.0.2")
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.20")
implementation("com.vanniktech:gradle-maven-publish-plugin:0.28.0")
}
diff --git a/buildSrc/src/main/kotlin/finch.java.gradle.kts b/buildSrc/src/main/kotlin/finch.java.gradle.kts
index dfbacb86..70fc33f4 100644
--- a/buildSrc/src/main/kotlin/finch.java.gradle.kts
+++ b/buildSrc/src/main/kotlin/finch.java.gradle.kts
@@ -1,24 +1,13 @@
-import com.diffplug.gradle.spotless.SpotlessExtension
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
plugins {
`java-library`
- id("com.diffplug.spotless")
}
repositories {
mavenCentral()
}
-configure {
- java {
- importOrder()
- removeUnusedImports()
- palantirJavaFormat()
- toggleOffOn()
- }
-}
-
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(21))
@@ -53,3 +42,86 @@ tasks.withType().configureEach {
exceptionFormat = TestExceptionFormat.FULL
}
}
+
+val palantir by configurations.creating
+dependencies {
+ palantir("com.palantir.javaformat:palantir-java-format:2.73.0")
+}
+
+fun registerPalantir(
+ name: String,
+ description: String,
+) {
+ val javaName = "${name}Java"
+ tasks.register(javaName) {
+ group = "Verification"
+ this.description = description
+
+ classpath = palantir
+ mainClass = "com.palantir.javaformat.java.Main"
+
+ // Avoid an `IllegalAccessError` on Java 9+.
+ jvmArgs(
+ "--add-exports", "jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED",
+ "--add-exports", "jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED",
+ "--add-exports", "jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED",
+ "--add-exports", "jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED",
+ "--add-exports", "jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED",
+ )
+
+ // Use paths relative to the current module.
+ val argumentFile =
+ project.layout.buildDirectory.file("palantir-$name-args.txt").get().asFile
+ val lastRunTimeFile =
+ project.layout.buildDirectory.file("palantir-$name-last-run.txt").get().asFile
+
+ // Read the time when this task was last executed for this module (if ever).
+ val lastRunTime = lastRunTimeFile.takeIf { it.exists() }?.readText()?.toLongOrNull() ?: 0L
+
+ // Use a `fileTree` relative to the module's source directory.
+ val javaFiles = project.fileTree("src") { include("**/*.java") }
+
+ // Determine if any files need to be formatted or linted and continue only if there is at least
+ // one file.
+ onlyIf { javaFiles.any { it.lastModified() > lastRunTime } }
+
+ inputs.files(javaFiles)
+
+ doFirst {
+ // Create the argument file and set the preferred formatting style.
+ argumentFile.parentFile.mkdirs()
+ argumentFile.writeText("--palantir\n")
+
+ if (name == "lint") {
+ // For lint, do a dry run, so no files are modified. Set the exit code to 1 (instead of
+ // the default 0) if any files need to be formatted, indicating that linting has failed.
+ argumentFile.appendText("--dry-run\n")
+ argumentFile.appendText("--set-exit-if-changed\n")
+ } else {
+ // `--dry-run` and `--replace` (for in-place formatting) are mutually exclusive.
+ argumentFile.appendText("--replace\n")
+ }
+
+ // Write the modified files to the argument file.
+ javaFiles.filter { it.lastModified() > lastRunTime }
+ .forEach { argumentFile.appendText("${it.absolutePath}\n") }
+ }
+
+ doLast {
+ // Record the last execution time for later up-to-date checking.
+ lastRunTimeFile.writeText(System.currentTimeMillis().toString())
+ }
+
+ // Pass the argument file using the @ symbol
+ args = listOf("@${argumentFile.absolutePath}")
+
+ outputs.upToDateWhen { javaFiles.none { it.lastModified() > lastRunTime } }
+ }
+
+ tasks.named(name) {
+ dependsOn(tasks.named(javaName))
+ }
+}
+
+registerPalantir(name = "format", description = "Formats all Java source files.")
+registerPalantir(name = "lint", description = "Verifies all Java source files are formatted.")
diff --git a/buildSrc/src/main/kotlin/finch.kotlin.gradle.kts b/buildSrc/src/main/kotlin/finch.kotlin.gradle.kts
index f3f20e2b..bf2f1f05 100644
--- a/buildSrc/src/main/kotlin/finch.kotlin.gradle.kts
+++ b/buildSrc/src/main/kotlin/finch.kotlin.gradle.kts
@@ -1,4 +1,3 @@
-import com.diffplug.gradle.spotless.SpotlessExtension
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.dsl.KotlinVersion
@@ -7,6 +6,10 @@ plugins {
kotlin("jvm")
}
+repositories {
+ mavenCentral()
+}
+
kotlin {
jvmToolchain {
languageVersion.set(JavaLanguageVersion.of(21))
@@ -27,14 +30,77 @@ kotlin {
}
}
-configure {
- kotlin {
- ktfmt().kotlinlangStyle()
- toggleOffOn()
- }
-}
-
tasks.withType().configureEach {
systemProperty("junit.jupiter.execution.parallel.enabled", true)
systemProperty("junit.jupiter.execution.parallel.mode.default", "concurrent")
}
+
+val ktfmt by configurations.creating
+dependencies {
+ ktfmt("com.facebook:ktfmt:0.56")
+}
+
+fun registerKtfmt(
+ name: String,
+ description: String,
+) {
+ val kotlinName = "${name}Kotlin"
+ tasks.register(kotlinName) {
+ group = "Verification"
+ this.description = description
+
+ classpath = ktfmt
+ mainClass = "com.facebook.ktfmt.cli.Main"
+
+ // Use paths relative to the current module.
+ val argumentFile = project.layout.buildDirectory.file("ktfmt-$name-args.txt").get().asFile
+ val lastRunTimeFile =
+ project.layout.buildDirectory.file("ktfmt-$name-last-run.txt").get().asFile
+
+ // Read the time when this task was last executed for this module (if ever).
+ val lastRunTime = lastRunTimeFile.takeIf { it.exists() }?.readText()?.toLongOrNull() ?: 0L
+
+ // Use a `fileTree` relative to the module's source directory.
+ val kotlinFiles = project.fileTree("src") { include("**/*.kt") }
+
+ // Determine if any files need to be formatted or linted and continue only if there is at least
+ // one file (otherwise Ktfmt will fail).
+ onlyIf { kotlinFiles.any { it.lastModified() > lastRunTime } }
+
+ inputs.files(kotlinFiles)
+
+ doFirst {
+ // Create the argument file and set the preferred formatting style.
+ argumentFile.parentFile.mkdirs()
+ argumentFile.writeText("--kotlinlang-style\n")
+
+ if (name == "lint") {
+ // For lint, do a dry run, so no files are modified. Set the exit code to 1 (instead of
+ // the default 0) if any files need to be formatted, indicating that linting has failed.
+ argumentFile.appendText("--dry-run\n")
+ argumentFile.appendText("--set-exit-if-changed\n")
+ }
+
+ // Write the modified files to the argument file.
+ kotlinFiles.filter { it.lastModified() > lastRunTime }
+ .forEach { argumentFile.appendText("${it.absolutePath}\n") }
+ }
+
+ doLast {
+ // Record the last execution time for later up-to-date checking.
+ lastRunTimeFile.writeText(System.currentTimeMillis().toString())
+ }
+
+ // Pass the argument file using the @ symbol
+ args = listOf("@${argumentFile.absolutePath}")
+
+ outputs.upToDateWhen { kotlinFiles.none { it.lastModified() > lastRunTime } }
+ }
+
+ tasks.named(name) {
+ dependsOn(tasks.named(kotlinName))
+ }
+}
+
+registerKtfmt(name = "format", description = "Formats all Kotlin source files.")
+registerKtfmt(name = "lint", description = "Verifies all Kotlin source files are formatted.")
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/core/ClientOptions.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/core/ClientOptions.kt
index 4412cdc0..6e4b2947 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/core/ClientOptions.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/core/ClientOptions.kt
@@ -437,11 +437,6 @@ private constructor(
headers.put("X-Stainless-Runtime", "JRE")
headers.put("X-Stainless-Runtime-Version", getJavaVersion())
headers.put("Finch-API-Version", "2020-09-17")
- accessToken?.let {
- if (!it.isEmpty()) {
- headers.put("Authorization", "Bearer $it")
- }
- }
clientId?.let { username ->
clientSecret?.let { password ->
if (!username.isEmpty() && !password.isEmpty()) {
@@ -452,6 +447,11 @@ private constructor(
}
}
}
+ accessToken?.let {
+ if (!it.isEmpty()) {
+ headers.put("Authorization", "Bearer $it")
+ }
+ }
headers.replaceAll(this.headers.build())
queryParams.replaceAll(this.queryParams.build())
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/core/Timeout.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/core/Timeout.kt
index eb2f4b95..d3d7c785 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/core/Timeout.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/core/Timeout.kt
@@ -157,10 +157,14 @@ private constructor(
return true
}
- return /* spotless:off */ other is Timeout && connect == other.connect && read == other.read && write == other.write && request == other.request /* spotless:on */
+ return other is Timeout &&
+ connect == other.connect &&
+ read == other.read &&
+ write == other.write &&
+ request == other.request
}
- override fun hashCode(): Int = /* spotless:off */ Objects.hash(connect, read, write, request) /* spotless:on */
+ override fun hashCode(): Int = Objects.hash(connect, read, write, request)
override fun toString() =
"Timeout{connect=$connect, read=$read, write=$write, request=$request}"
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/core/Utils.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/core/Utils.kt
index 3acb9ed3..7580ba7b 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/core/Utils.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/core/Utils.kt
@@ -6,6 +6,8 @@ import com.tryfinch.api.core.http.Headers
import com.tryfinch.api.errors.FinchInvalidDataException
import java.util.Collections
import java.util.SortedMap
+import java.util.concurrent.CompletableFuture
+import java.util.concurrent.locks.Lock
@JvmSynthetic
internal fun T?.getOrThrow(name: String): T =
@@ -95,3 +97,24 @@ internal fun Headers.getRequiredHeader(name: String): String =
values(name).firstOrNull() ?: throw FinchInvalidDataException("Could not find $name header")
internal interface Enum
+
+/**
+ * Executes the given [action] while holding the lock, returning a [CompletableFuture] with the
+ * result.
+ *
+ * @param action The asynchronous action to execute while holding the lock
+ * @return A [CompletableFuture] that completes with the result of the action
+ */
+@JvmSynthetic
+internal fun Lock.withLockAsync(action: () -> CompletableFuture): CompletableFuture {
+ lock()
+ val future =
+ try {
+ action()
+ } catch (e: Throwable) {
+ unlock()
+ throw e
+ }
+ future.whenComplete { _, _ -> unlock() }
+ return future
+}
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/core/http/RetryingHttpClient.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/core/http/RetryingHttpClient.kt
index c195f8aa..d4cb1e78 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/core/http/RetryingHttpClient.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/core/http/RetryingHttpClient.kt
@@ -3,6 +3,7 @@ package com.tryfinch.api.core.http
import com.tryfinch.api.core.RequestOptions
import com.tryfinch.api.core.checkRequired
import com.tryfinch.api.errors.FinchIoException
+import com.tryfinch.api.errors.FinchRetryableException
import java.io.IOException
import java.time.Clock
import java.time.Duration
@@ -176,9 +177,10 @@ private constructor(
}
private fun shouldRetry(throwable: Throwable): Boolean =
- // Only retry IOException and FinchIoException, other exceptions are not intended to be
- // retried.
- throwable is IOException || throwable is FinchIoException
+ // Only retry known retryable exceptions, other exceptions are not intended to be retried.
+ throwable is IOException ||
+ throwable is FinchIoException ||
+ throwable is FinchRetryableException
private fun getRetryBackoffDuration(retries: Int, response: HttpResponse?): Duration {
// About the Retry-After header:
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/errors/FinchRetryableException.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/errors/FinchRetryableException.kt
new file mode 100644
index 00000000..15708e4d
--- /dev/null
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/errors/FinchRetryableException.kt
@@ -0,0 +1,14 @@
+package com.tryfinch.api.errors
+
+/**
+ * Exception that indicates a transient error that can be retried.
+ *
+ * When this exception is thrown during an HTTP request, the SDK will automatically retry the
+ * request up to the maximum number of retries.
+ *
+ * @param message A descriptive error message
+ * @param cause The underlying cause of this exception, if any
+ */
+class FinchRetryableException
+@JvmOverloads
+constructor(message: String? = null, cause: Throwable? = null) : FinchException(message, cause)
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AccessTokenCreateParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AccessTokenCreateParams.kt
index 05e11284..2d1e6f32 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AccessTokenCreateParams.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AccessTokenCreateParams.kt
@@ -567,12 +567,17 @@ private constructor(
return true
}
- return /* spotless:off */ other is Body && code == other.code && clientId == other.clientId && clientSecret == other.clientSecret && redirectUri == other.redirectUri && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Body &&
+ code == other.code &&
+ clientId == other.clientId &&
+ clientSecret == other.clientSecret &&
+ redirectUri == other.redirectUri &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(code, clientId, clientSecret, redirectUri, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(code, clientId, clientSecret, redirectUri, additionalProperties)
+ }
override fun hashCode(): Int = hashCode
@@ -585,10 +590,13 @@ private constructor(
return true
}
- return /* spotless:off */ other is AccessTokenCreateParams && body == other.body && additionalHeaders == other.additionalHeaders && additionalQueryParams == other.additionalQueryParams /* spotless:on */
+ return other is AccessTokenCreateParams &&
+ body == other.body &&
+ additionalHeaders == other.additionalHeaders &&
+ additionalQueryParams == other.additionalQueryParams
}
- override fun hashCode(): Int = /* spotless:off */ Objects.hash(body, additionalHeaders, additionalQueryParams) /* spotless:on */
+ override fun hashCode(): Int = Objects.hash(body, additionalHeaders, additionalQueryParams)
override fun toString() =
"AccessTokenCreateParams{body=$body, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams}"
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AccountCreateResponse.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AccountCreateResponse.kt
index e54605fa..053aae24 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AccountCreateResponse.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AccountCreateResponse.kt
@@ -556,7 +556,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is AuthenticationType && value == other.value /* spotless:on */
+ return other is AuthenticationType && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -569,12 +569,29 @@ private constructor(
return true
}
- return /* spotless:off */ other is AccountCreateResponse && accessToken == other.accessToken && accountId == other.accountId && authenticationType == other.authenticationType && companyId == other.companyId && connectionId == other.connectionId && products == other.products && providerId == other.providerId && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is AccountCreateResponse &&
+ accessToken == other.accessToken &&
+ accountId == other.accountId &&
+ authenticationType == other.authenticationType &&
+ companyId == other.companyId &&
+ connectionId == other.connectionId &&
+ products == other.products &&
+ providerId == other.providerId &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(accessToken, accountId, authenticationType, companyId, connectionId, products, providerId, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(
+ accessToken,
+ accountId,
+ authenticationType,
+ companyId,
+ connectionId,
+ products,
+ providerId,
+ additionalProperties,
+ )
+ }
override fun hashCode(): Int = hashCode
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AccountDisconnectParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AccountDisconnectParams.kt
index 72e823e6..9b5add8a 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AccountDisconnectParams.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AccountDisconnectParams.kt
@@ -197,10 +197,14 @@ private constructor(
return true
}
- return /* spotless:off */ other is AccountDisconnectParams && additionalHeaders == other.additionalHeaders && additionalQueryParams == other.additionalQueryParams && additionalBodyProperties == other.additionalBodyProperties /* spotless:on */
+ return other is AccountDisconnectParams &&
+ additionalHeaders == other.additionalHeaders &&
+ additionalQueryParams == other.additionalQueryParams &&
+ additionalBodyProperties == other.additionalBodyProperties
}
- override fun hashCode(): Int = /* spotless:off */ Objects.hash(additionalHeaders, additionalQueryParams, additionalBodyProperties) /* spotless:on */
+ override fun hashCode(): Int =
+ Objects.hash(additionalHeaders, additionalQueryParams, additionalBodyProperties)
override fun toString() =
"AccountDisconnectParams{additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams, additionalBodyProperties=$additionalBodyProperties}"
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AccountIntrospectParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AccountIntrospectParams.kt
index c79e5862..6a07fb42 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AccountIntrospectParams.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AccountIntrospectParams.kt
@@ -158,10 +158,12 @@ private constructor(
return true
}
- return /* spotless:off */ other is AccountIntrospectParams && additionalHeaders == other.additionalHeaders && additionalQueryParams == other.additionalQueryParams /* spotless:on */
+ return other is AccountIntrospectParams &&
+ additionalHeaders == other.additionalHeaders &&
+ additionalQueryParams == other.additionalQueryParams
}
- override fun hashCode(): Int = /* spotless:off */ Objects.hash(additionalHeaders, additionalQueryParams) /* spotless:on */
+ override fun hashCode(): Int = Objects.hash(additionalHeaders, additionalQueryParams)
override fun toString() =
"AccountIntrospectParams{additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams}"
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AccountUpdateEvent.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AccountUpdateEvent.kt
index e6305b42..cb5a9c86 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AccountUpdateEvent.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AccountUpdateEvent.kt
@@ -1894,13 +1894,26 @@ private constructor(
return true
}
- return /* spotless:off */ other is Accounts && accountName == other.accountName && accountNumber == other.accountNumber && accountType == other.accountType && institutionName == other.institutionName && routingNumber == other.routingNumber && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Accounts &&
+ accountName == other.accountName &&
+ accountNumber == other.accountNumber &&
+ accountType == other.accountType &&
+ institutionName == other.institutionName &&
+ routingNumber == other.routingNumber &&
+ additionalProperties == other.additionalProperties
+ }
+
+ private val hashCode: Int by lazy {
+ Objects.hash(
+ accountName,
+ accountNumber,
+ accountType,
+ institutionName,
+ routingNumber,
+ additionalProperties,
+ )
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(accountName, accountNumber, accountType, institutionName, routingNumber, additionalProperties) }
- /* spotless:on */
-
override fun hashCode(): Int = hashCode
override fun toString() =
@@ -2217,12 +2230,14 @@ private constructor(
return true
}
- return /* spotless:off */ other is Parent && name == other.name && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Parent &&
+ name == other.name &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(name, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(name, additionalProperties)
+ }
override fun hashCode(): Int = hashCode
@@ -2235,12 +2250,15 @@ private constructor(
return true
}
- return /* spotless:off */ other is Departments && name == other.name && parent == other.parent && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Departments &&
+ name == other.name &&
+ parent == other.parent &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(name, parent, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(name, parent, additionalProperties)
+ }
override fun hashCode(): Int = hashCode
@@ -2422,12 +2440,15 @@ private constructor(
return true
}
- return /* spotless:off */ other is Entity && subtype == other.subtype && type == other.type && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Entity &&
+ subtype == other.subtype &&
+ type == other.type &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(subtype, type, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(subtype, type, additionalProperties)
+ }
override fun hashCode(): Int = hashCode
@@ -2761,13 +2782,28 @@ private constructor(
return true
}
- return /* spotless:off */ other is Locations && city == other.city && country == other.country && line1 == other.line1 && line2 == other.line2 && postalCode == other.postalCode && state == other.state && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Locations &&
+ city == other.city &&
+ country == other.country &&
+ line1 == other.line1 &&
+ line2 == other.line2 &&
+ postalCode == other.postalCode &&
+ state == other.state &&
+ additionalProperties == other.additionalProperties
+ }
+
+ private val hashCode: Int by lazy {
+ Objects.hash(
+ city,
+ country,
+ line1,
+ line2,
+ postalCode,
+ state,
+ additionalProperties,
+ )
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(city, country, line1, line2, postalCode, state, additionalProperties) }
- /* spotless:on */
-
override fun hashCode(): Int = hashCode
override fun toString() =
@@ -2779,12 +2815,33 @@ private constructor(
return true
}
- return /* spotless:off */ other is SupportedCompanyFields && id == other.id && accounts == other.accounts && departments == other.departments && ein == other.ein && entity == other.entity && legalName == other.legalName && locations == other.locations && primaryEmail == other.primaryEmail && primaryPhoneNumber == other.primaryPhoneNumber && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is SupportedCompanyFields &&
+ id == other.id &&
+ accounts == other.accounts &&
+ departments == other.departments &&
+ ein == other.ein &&
+ entity == other.entity &&
+ legalName == other.legalName &&
+ locations == other.locations &&
+ primaryEmail == other.primaryEmail &&
+ primaryPhoneNumber == other.primaryPhoneNumber &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(id, accounts, departments, ein, entity, legalName, locations, primaryEmail, primaryPhoneNumber, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(
+ id,
+ accounts,
+ departments,
+ ein,
+ entity,
+ legalName,
+ locations,
+ primaryEmail,
+ primaryPhoneNumber,
+ additionalProperties,
+ )
+ }
override fun hashCode(): Int = hashCode
@@ -3486,12 +3543,14 @@ private constructor(
return true
}
- return /* spotless:off */ other is Manager && id == other.id && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Manager &&
+ id == other.id &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(id, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(id, additionalProperties)
+ }
override fun hashCode(): Int = hashCode
@@ -3504,12 +3563,29 @@ private constructor(
return true
}
- return /* spotless:off */ other is Individuals && id == other.id && department == other.department && firstName == other.firstName && isActive == other.isActive && lastName == other.lastName && manager == other.manager && middleName == other.middleName && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Individuals &&
+ id == other.id &&
+ department == other.department &&
+ firstName == other.firstName &&
+ isActive == other.isActive &&
+ lastName == other.lastName &&
+ manager == other.manager &&
+ middleName == other.middleName &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(id, department, firstName, isActive, lastName, manager, middleName, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(
+ id,
+ department,
+ firstName,
+ isActive,
+ lastName,
+ manager,
+ middleName,
+ additionalProperties,
+ )
+ }
override fun hashCode(): Int = hashCode
@@ -3691,12 +3767,15 @@ private constructor(
return true
}
- return /* spotless:off */ other is Paging && count == other.count && offset == other.offset && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Paging &&
+ count == other.count &&
+ offset == other.offset &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(count, offset, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(count, offset, additionalProperties)
+ }
override fun hashCode(): Int = hashCode
@@ -3709,12 +3788,15 @@ private constructor(
return true
}
- return /* spotless:off */ other is SupportedDirectoryFields && individuals == other.individuals && paging == other.paging && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is SupportedDirectoryFields &&
+ individuals == other.individuals &&
+ paging == other.paging &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(individuals, paging, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(individuals, paging, additionalProperties)
+ }
override fun hashCode(): Int = hashCode
@@ -4622,12 +4704,14 @@ private constructor(
return true
}
- return /* spotless:off */ other is Department && name == other.name && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Department &&
+ name == other.name &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(name, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(name, additionalProperties)
+ }
override fun hashCode(): Int = hashCode
@@ -4811,12 +4895,15 @@ private constructor(
return true
}
- return /* spotless:off */ other is Employment && subtype == other.subtype && type == other.type && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Employment &&
+ subtype == other.subtype &&
+ type == other.type &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(subtype, type, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(subtype, type, additionalProperties)
+ }
override fun hashCode(): Int = hashCode
@@ -5033,12 +5120,16 @@ private constructor(
return true
}
- return /* spotless:off */ other is Income && amount == other.amount && currency == other.currency && unit == other.unit && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Income &&
+ amount == other.amount &&
+ currency == other.currency &&
+ unit == other.unit &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(amount, currency, unit, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(amount, currency, unit, additionalProperties)
+ }
override fun hashCode(): Int = hashCode
@@ -5371,13 +5462,28 @@ private constructor(
return true
}
- return /* spotless:off */ other is Location && city == other.city && country == other.country && line1 == other.line1 && line2 == other.line2 && postalCode == other.postalCode && state == other.state && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Location &&
+ city == other.city &&
+ country == other.country &&
+ line1 == other.line1 &&
+ line2 == other.line2 &&
+ postalCode == other.postalCode &&
+ state == other.state &&
+ additionalProperties == other.additionalProperties
+ }
+
+ private val hashCode: Int by lazy {
+ Objects.hash(
+ city,
+ country,
+ line1,
+ line2,
+ postalCode,
+ state,
+ additionalProperties,
+ )
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(city, country, line1, line2, postalCode, state, additionalProperties) }
- /* spotless:on */
-
override fun hashCode(): Int = hashCode
override fun toString() =
@@ -5519,12 +5625,12 @@ private constructor(
return true
}
- return /* spotless:off */ other is Manager && id == other.id && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Manager &&
+ id == other.id &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
private val hashCode: Int by lazy { Objects.hash(id, additionalProperties) }
- /* spotless:on */
override fun hashCode(): Int = hashCode
@@ -5537,12 +5643,49 @@ private constructor(
return true
}
- return /* spotless:off */ other is SupportedEmploymentFields && id == other.id && classCode == other.classCode && customFields == other.customFields && department == other.department && employment == other.employment && employmentStatus == other.employmentStatus && endDate == other.endDate && firstName == other.firstName && income == other.income && incomeHistory == other.incomeHistory && isActive == other.isActive && lastName == other.lastName && location == other.location && manager == other.manager && middleName == other.middleName && startDate == other.startDate && title == other.title && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is SupportedEmploymentFields &&
+ id == other.id &&
+ classCode == other.classCode &&
+ customFields == other.customFields &&
+ department == other.department &&
+ employment == other.employment &&
+ employmentStatus == other.employmentStatus &&
+ endDate == other.endDate &&
+ firstName == other.firstName &&
+ income == other.income &&
+ incomeHistory == other.incomeHistory &&
+ isActive == other.isActive &&
+ lastName == other.lastName &&
+ location == other.location &&
+ manager == other.manager &&
+ middleName == other.middleName &&
+ startDate == other.startDate &&
+ title == other.title &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(id, classCode, customFields, department, employment, employmentStatus, endDate, firstName, income, incomeHistory, isActive, lastName, location, manager, middleName, startDate, title, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(
+ id,
+ classCode,
+ customFields,
+ department,
+ employment,
+ employmentStatus,
+ endDate,
+ firstName,
+ income,
+ incomeHistory,
+ isActive,
+ lastName,
+ location,
+ manager,
+ middleName,
+ startDate,
+ title,
+ additionalProperties,
+ )
+ }
override fun hashCode(): Int = hashCode
@@ -6322,12 +6465,15 @@ private constructor(
return true
}
- return /* spotless:off */ other is Emails && data == other.data && type == other.type && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Emails &&
+ data == other.data &&
+ type == other.type &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(data, type, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(data, type, additionalProperties)
+ }
override fun hashCode(): Int = hashCode
@@ -6507,12 +6653,15 @@ private constructor(
return true
}
- return /* spotless:off */ other is PhoneNumbers && data == other.data && type == other.type && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is PhoneNumbers &&
+ data == other.data &&
+ type == other.type &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(data, type, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(data, type, additionalProperties)
+ }
override fun hashCode(): Int = hashCode
@@ -6846,13 +6995,28 @@ private constructor(
return true
}
- return /* spotless:off */ other is Residence && city == other.city && country == other.country && line1 == other.line1 && line2 == other.line2 && postalCode == other.postalCode && state == other.state && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Residence &&
+ city == other.city &&
+ country == other.country &&
+ line1 == other.line1 &&
+ line2 == other.line2 &&
+ postalCode == other.postalCode &&
+ state == other.state &&
+ additionalProperties == other.additionalProperties
+ }
+
+ private val hashCode: Int by lazy {
+ Objects.hash(
+ city,
+ country,
+ line1,
+ line2,
+ postalCode,
+ state,
+ additionalProperties,
+ )
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(city, country, line1, line2, postalCode, state, additionalProperties) }
- /* spotless:on */
-
override fun hashCode(): Int = hashCode
override fun toString() =
@@ -6864,12 +7028,41 @@ private constructor(
return true
}
- return /* spotless:off */ other is SupportedIndividualFields && id == other.id && dob == other.dob && emails == other.emails && encryptedSsn == other.encryptedSsn && ethnicity == other.ethnicity && firstName == other.firstName && gender == other.gender && lastName == other.lastName && middleName == other.middleName && phoneNumbers == other.phoneNumbers && preferredName == other.preferredName && residence == other.residence && ssn == other.ssn && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is SupportedIndividualFields &&
+ id == other.id &&
+ dob == other.dob &&
+ emails == other.emails &&
+ encryptedSsn == other.encryptedSsn &&
+ ethnicity == other.ethnicity &&
+ firstName == other.firstName &&
+ gender == other.gender &&
+ lastName == other.lastName &&
+ middleName == other.middleName &&
+ phoneNumbers == other.phoneNumbers &&
+ preferredName == other.preferredName &&
+ residence == other.residence &&
+ ssn == other.ssn &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(id, dob, emails, encryptedSsn, ethnicity, firstName, gender, lastName, middleName, phoneNumbers, preferredName, residence, ssn, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(
+ id,
+ dob,
+ emails,
+ encryptedSsn,
+ ethnicity,
+ firstName,
+ gender,
+ lastName,
+ middleName,
+ phoneNumbers,
+ preferredName,
+ residence,
+ ssn,
+ additionalProperties,
+ )
+ }
override fun hashCode(): Int = hashCode
@@ -7133,12 +7326,17 @@ private constructor(
return true
}
- return /* spotless:off */ other is SupportedPayGroupFields && id == other.id && individualIds == other.individualIds && name == other.name && payFrequencies == other.payFrequencies && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is SupportedPayGroupFields &&
+ id == other.id &&
+ individualIds == other.individualIds &&
+ name == other.name &&
+ payFrequencies == other.payFrequencies &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(id, individualIds, name, payFrequencies, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(id, individualIds, name, payFrequencies, additionalProperties)
+ }
override fun hashCode(): Int = hashCode
@@ -7520,12 +7718,15 @@ private constructor(
return true
}
- return /* spotless:off */ other is Paging && count == other.count && offset == other.offset && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Paging &&
+ count == other.count &&
+ offset == other.offset &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(count, offset, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(count, offset, additionalProperties)
+ }
override fun hashCode(): Int = hashCode
@@ -8294,12 +8495,17 @@ private constructor(
return true
}
- return /* spotless:off */ other is Earnings && amount == other.amount && currency == other.currency && name == other.name && type == other.type && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Earnings &&
+ amount == other.amount &&
+ currency == other.currency &&
+ name == other.name &&
+ type == other.type &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(amount, currency, name, type, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(amount, currency, name, type, additionalProperties)
+ }
override fun hashCode(): Int = hashCode
@@ -8602,13 +8808,26 @@ private constructor(
return true
}
- return /* spotless:off */ other is EmployeeDeductions && amount == other.amount && currency == other.currency && name == other.name && preTax == other.preTax && type == other.type && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is EmployeeDeductions &&
+ amount == other.amount &&
+ currency == other.currency &&
+ name == other.name &&
+ preTax == other.preTax &&
+ type == other.type &&
+ additionalProperties == other.additionalProperties
+ }
+
+ private val hashCode: Int by lazy {
+ Objects.hash(
+ amount,
+ currency,
+ name,
+ preTax,
+ type,
+ additionalProperties,
+ )
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(amount, currency, name, preTax, type, additionalProperties) }
- /* spotless:on */
-
override fun hashCode(): Int = hashCode
override fun toString() =
@@ -8838,12 +9057,16 @@ private constructor(
return true
}
- return /* spotless:off */ other is EmployerContributions && amount == other.amount && currency == other.currency && name == other.name && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is EmployerContributions &&
+ amount == other.amount &&
+ currency == other.currency &&
+ name == other.name &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(amount, currency, name, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(amount, currency, name, additionalProperties)
+ }
override fun hashCode(): Int = hashCode
@@ -9145,13 +9368,26 @@ private constructor(
return true
}
- return /* spotless:off */ other is Taxes && amount == other.amount && currency == other.currency && employer == other.employer && name == other.name && type == other.type && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Taxes &&
+ amount == other.amount &&
+ currency == other.currency &&
+ employer == other.employer &&
+ name == other.name &&
+ type == other.type &&
+ additionalProperties == other.additionalProperties
+ }
+
+ private val hashCode: Int by lazy {
+ Objects.hash(
+ amount,
+ currency,
+ employer,
+ name,
+ type,
+ additionalProperties,
+ )
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(amount, currency, employer, name, type, additionalProperties) }
- /* spotless:on */
-
override fun hashCode(): Int = hashCode
override fun toString() =
@@ -9163,13 +9399,36 @@ private constructor(
return true
}
- return /* spotless:off */ other is PayStatements && earnings == other.earnings && employeeDeductions == other.employeeDeductions && employerContributions == other.employerContributions && grossPay == other.grossPay && individualId == other.individualId && netPay == other.netPay && paymentMethod == other.paymentMethod && taxes == other.taxes && totalHours == other.totalHours && type == other.type && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is PayStatements &&
+ earnings == other.earnings &&
+ employeeDeductions == other.employeeDeductions &&
+ employerContributions == other.employerContributions &&
+ grossPay == other.grossPay &&
+ individualId == other.individualId &&
+ netPay == other.netPay &&
+ paymentMethod == other.paymentMethod &&
+ taxes == other.taxes &&
+ totalHours == other.totalHours &&
+ type == other.type &&
+ additionalProperties == other.additionalProperties
+ }
+
+ private val hashCode: Int by lazy {
+ Objects.hash(
+ earnings,
+ employeeDeductions,
+ employerContributions,
+ grossPay,
+ individualId,
+ netPay,
+ paymentMethod,
+ taxes,
+ totalHours,
+ type,
+ additionalProperties,
+ )
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(earnings, employeeDeductions, employerContributions, grossPay, individualId, netPay, paymentMethod, taxes, totalHours, type, additionalProperties) }
- /* spotless:on */
-
override fun hashCode(): Int = hashCode
override fun toString() =
@@ -9181,12 +9440,15 @@ private constructor(
return true
}
- return /* spotless:off */ other is SupportedPayStatementFields && paging == other.paging && payStatements == other.payStatements && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is SupportedPayStatementFields &&
+ paging == other.paging &&
+ payStatements == other.payStatements &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(paging, payStatements, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(paging, payStatements, additionalProperties)
+ }
override fun hashCode(): Int = hashCode
@@ -9948,12 +10210,15 @@ private constructor(
return true
}
- return /* spotless:off */ other is PayPeriod && endDate == other.endDate && startDate == other.startDate && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is PayPeriod &&
+ endDate == other.endDate &&
+ startDate == other.startDate &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(endDate, startDate, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(endDate, startDate, additionalProperties)
+ }
override fun hashCode(): Int = hashCode
@@ -9966,12 +10231,39 @@ private constructor(
return true
}
- return /* spotless:off */ other is SupportedPaymentFields && id == other.id && companyDebit == other.companyDebit && debitDate == other.debitDate && employeeTaxes == other.employeeTaxes && employerTaxes == other.employerTaxes && grossPay == other.grossPay && individualIds == other.individualIds && netPay == other.netPay && payDate == other.payDate && payFrequencies == other.payFrequencies && payGroupIds == other.payGroupIds && payPeriod == other.payPeriod && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is SupportedPaymentFields &&
+ id == other.id &&
+ companyDebit == other.companyDebit &&
+ debitDate == other.debitDate &&
+ employeeTaxes == other.employeeTaxes &&
+ employerTaxes == other.employerTaxes &&
+ grossPay == other.grossPay &&
+ individualIds == other.individualIds &&
+ netPay == other.netPay &&
+ payDate == other.payDate &&
+ payFrequencies == other.payFrequencies &&
+ payGroupIds == other.payGroupIds &&
+ payPeriod == other.payPeriod &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(id, companyDebit, debitDate, employeeTaxes, employerTaxes, grossPay, individualIds, netPay, payDate, payFrequencies, payGroupIds, payPeriod, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(
+ id,
+ companyDebit,
+ debitDate,
+ employeeTaxes,
+ employerTaxes,
+ grossPay,
+ individualIds,
+ netPay,
+ payDate,
+ payFrequencies,
+ payGroupIds,
+ payPeriod,
+ additionalProperties,
+ )
+ }
override fun hashCode(): Int = hashCode
@@ -9984,12 +10276,29 @@ private constructor(
return true
}
- return /* spotless:off */ other is SupportedFields && company == other.company && directory == other.directory && employment == other.employment && individual == other.individual && payGroup == other.payGroup && payStatement == other.payStatement && payment == other.payment && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is SupportedFields &&
+ company == other.company &&
+ directory == other.directory &&
+ employment == other.employment &&
+ individual == other.individual &&
+ payGroup == other.payGroup &&
+ payStatement == other.payStatement &&
+ payment == other.payment &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(company, directory, employment, individual, payGroup, payStatement, payment, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(
+ company,
+ directory,
+ employment,
+ individual,
+ payGroup,
+ payStatement,
+ payment,
+ additionalProperties,
+ )
+ }
override fun hashCode(): Int = hashCode
@@ -10138,7 +10447,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is Type && value == other.value /* spotless:on */
+ return other is Type && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -10151,12 +10460,16 @@ private constructor(
return true
}
- return /* spotless:off */ other is AuthenticationMethod && benefitsSupport == other.benefitsSupport && supportedFields == other.supportedFields && type == other.type && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is AuthenticationMethod &&
+ benefitsSupport == other.benefitsSupport &&
+ supportedFields == other.supportedFields &&
+ type == other.type &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(benefitsSupport, supportedFields, type, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(benefitsSupport, supportedFields, type, additionalProperties)
+ }
override fun hashCode(): Int = hashCode
@@ -10169,12 +10482,15 @@ private constructor(
return true
}
- return /* spotless:off */ other is Data && authenticationMethod == other.authenticationMethod && status == other.status && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Data &&
+ authenticationMethod == other.authenticationMethod &&
+ status == other.status &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(authenticationMethod, status, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(authenticationMethod, status, additionalProperties)
+ }
override fun hashCode(): Int = hashCode
@@ -10294,7 +10610,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is EventType && value == other.value /* spotless:on */
+ return other is EventType && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -10307,12 +10623,18 @@ private constructor(
return true
}
- return /* spotless:off */ other is AccountUpdateEvent && accountId == other.accountId && companyId == other.companyId && connectionId == other.connectionId && data == other.data && eventType == other.eventType && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is AccountUpdateEvent &&
+ accountId == other.accountId &&
+ companyId == other.companyId &&
+ connectionId == other.connectionId &&
+ data == other.data &&
+ eventType == other.eventType &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(accountId, companyId, connectionId, data, eventType, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(accountId, companyId, connectionId, data, eventType, additionalProperties)
+ }
override fun hashCode(): Int = hashCode
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AccountUpdateResponse.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AccountUpdateResponse.kt
index cbbb1e2d..1a6dadca 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AccountUpdateResponse.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AccountUpdateResponse.kt
@@ -517,7 +517,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is AuthenticationType && value == other.value /* spotless:on */
+ return other is AuthenticationType && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -530,12 +530,27 @@ private constructor(
return true
}
- return /* spotless:off */ other is AccountUpdateResponse && accountId == other.accountId && authenticationType == other.authenticationType && companyId == other.companyId && products == other.products && providerId == other.providerId && connectionId == other.connectionId && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is AccountUpdateResponse &&
+ accountId == other.accountId &&
+ authenticationType == other.authenticationType &&
+ companyId == other.companyId &&
+ products == other.products &&
+ providerId == other.providerId &&
+ connectionId == other.connectionId &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(accountId, authenticationType, companyId, products, providerId, connectionId, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(
+ accountId,
+ authenticationType,
+ companyId,
+ products,
+ providerId,
+ connectionId,
+ additionalProperties,
+ )
+ }
override fun hashCode(): Int = hashCode
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AutomatedAsyncJob.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AutomatedAsyncJob.kt
index d608907b..00b3d3a8 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AutomatedAsyncJob.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AutomatedAsyncJob.kt
@@ -108,7 +108,7 @@ private constructor(
/**
* The datetime a job is scheduled to be run. For scheduled jobs, this datetime can be in the
- * future if the job has not yet been enqueued. For ad-hoc jobs, this field will be null.
+ * future if the job has not yet been enqueued. For ad-hoc jobs, this field will be null.
*
* @throws FinchInvalidDataException if the JSON field has an unexpected type (e.g. if the
* server responded with an unexpected value).
@@ -342,8 +342,8 @@ private constructor(
/**
* The datetime a job is scheduled to be run. For scheduled jobs, this datetime can be in
- * the future if the job has not yet been enqueued. For ad-hoc jobs, this field will
- * be null.
+ * the future if the job has not yet been enqueued. For ad-hoc jobs, this field will be
+ * null.
*/
fun scheduledAt(scheduledAt: OffsetDateTime?) =
scheduledAt(JsonField.ofNullable(scheduledAt))
@@ -633,12 +633,12 @@ private constructor(
return true
}
- return /* spotless:off */ other is Params && individualId == other.individualId && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Params &&
+ individualId == other.individualId &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
private val hashCode: Int by lazy { Objects.hash(individualId, additionalProperties) }
- /* spotless:on */
override fun hashCode(): Int = hashCode
@@ -786,7 +786,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is Status && value == other.value /* spotless:on */
+ return other is Status && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -911,7 +911,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is Type && value == other.value /* spotless:on */
+ return other is Type && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -924,12 +924,33 @@ private constructor(
return true
}
- return /* spotless:off */ other is AutomatedAsyncJob && completedAt == other.completedAt && createdAt == other.createdAt && jobId == other.jobId && jobUrl == other.jobUrl && params == other.params && scheduledAt == other.scheduledAt && startedAt == other.startedAt && status == other.status && type == other.type && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is AutomatedAsyncJob &&
+ completedAt == other.completedAt &&
+ createdAt == other.createdAt &&
+ jobId == other.jobId &&
+ jobUrl == other.jobUrl &&
+ params == other.params &&
+ scheduledAt == other.scheduledAt &&
+ startedAt == other.startedAt &&
+ status == other.status &&
+ type == other.type &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(completedAt, createdAt, jobId, jobUrl, params, scheduledAt, startedAt, status, type, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(
+ completedAt,
+ createdAt,
+ jobId,
+ jobUrl,
+ params,
+ scheduledAt,
+ startedAt,
+ status,
+ type,
+ additionalProperties,
+ )
+ }
override fun hashCode(): Int = hashCode
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AutomatedCreateResponse.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AutomatedCreateResponse.kt
index a4273f99..4d246ec3 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AutomatedCreateResponse.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AutomatedCreateResponse.kt
@@ -313,12 +313,25 @@ private constructor(
return true
}
- return /* spotless:off */ other is AutomatedCreateResponse && allowedRefreshes == other.allowedRefreshes && remainingRefreshes == other.remainingRefreshes && jobId == other.jobId && jobUrl == other.jobUrl && retryAt == other.retryAt && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is AutomatedCreateResponse &&
+ allowedRefreshes == other.allowedRefreshes &&
+ remainingRefreshes == other.remainingRefreshes &&
+ jobId == other.jobId &&
+ jobUrl == other.jobUrl &&
+ retryAt == other.retryAt &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(allowedRefreshes, remainingRefreshes, jobId, jobUrl, retryAt, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(
+ allowedRefreshes,
+ remainingRefreshes,
+ jobId,
+ jobUrl,
+ retryAt,
+ additionalProperties,
+ )
+ }
override fun hashCode(): Int = hashCode
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AutomatedListResponse.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AutomatedListResponse.kt
index d93686fc..512ce448 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AutomatedListResponse.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/AutomatedListResponse.kt
@@ -650,12 +650,15 @@ private constructor(
return true
}
- return /* spotless:off */ other is DataSyncAll && allowedRefreshes == other.allowedRefreshes && remainingRefreshes == other.remainingRefreshes && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is DataSyncAll &&
+ allowedRefreshes == other.allowedRefreshes &&
+ remainingRefreshes == other.remainingRefreshes &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(allowedRefreshes, remainingRefreshes, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(allowedRefreshes, remainingRefreshes, additionalProperties)
+ }
override fun hashCode(): Int = hashCode
@@ -668,12 +671,12 @@ private constructor(
return true
}
- return /* spotless:off */ other is Quotas && dataSyncAll == other.dataSyncAll && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Quotas &&
+ dataSyncAll == other.dataSyncAll &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
private val hashCode: Int by lazy { Objects.hash(dataSyncAll, additionalProperties) }
- /* spotless:on */
override fun hashCode(): Int = hashCode
@@ -686,12 +689,12 @@ private constructor(
return true
}
- return /* spotless:off */ other is Meta && quotas == other.quotas && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Meta &&
+ quotas == other.quotas &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
private val hashCode: Int by lazy { Objects.hash(quotas, additionalProperties) }
- /* spotless:on */
override fun hashCode(): Int = hashCode
@@ -703,12 +706,13 @@ private constructor(
return true
}
- return /* spotless:off */ other is AutomatedListResponse && data == other.data && meta == other.meta && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is AutomatedListResponse &&
+ data == other.data &&
+ meta == other.meta &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
private val hashCode: Int by lazy { Objects.hash(data, meta, additionalProperties) }
- /* spotless:on */
override fun hashCode(): Int = hashCode
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/BaseWebhookEvent.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/BaseWebhookEvent.kt
index 509f3391..5b8d2c6d 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/BaseWebhookEvent.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/BaseWebhookEvent.kt
@@ -256,12 +256,16 @@ private constructor(
return true
}
- return /* spotless:off */ other is BaseWebhookEvent && accountId == other.accountId && companyId == other.companyId && connectionId == other.connectionId && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is BaseWebhookEvent &&
+ accountId == other.accountId &&
+ companyId == other.companyId &&
+ connectionId == other.connectionId &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(accountId, companyId, connectionId, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(accountId, companyId, connectionId, additionalProperties)
+ }
override fun hashCode(): Int = hashCode
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/BenefitContribution.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/BenefitContribution.kt
index 9d1e4808..17245a56 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/BenefitContribution.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/BenefitContribution.kt
@@ -322,7 +322,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is Type && value == other.value /* spotless:on */
+ return other is Type && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -335,12 +335,13 @@ private constructor(
return true
}
- return /* spotless:off */ other is BenefitContribution && amount == other.amount && type == other.type && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is BenefitContribution &&
+ amount == other.amount &&
+ type == other.type &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
private val hashCode: Int by lazy { Objects.hash(amount, type, additionalProperties) }
- /* spotless:on */
override fun hashCode(): Int = hashCode
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/BenefitFeaturesAndOperations.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/BenefitFeaturesAndOperations.kt
index b7429b6f..8eca9722 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/BenefitFeaturesAndOperations.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/BenefitFeaturesAndOperations.kt
@@ -196,12 +196,15 @@ private constructor(
return true
}
- return /* spotless:off */ other is BenefitFeaturesAndOperations && supportedFeatures == other.supportedFeatures && supportedOperations == other.supportedOperations && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is BenefitFeaturesAndOperations &&
+ supportedFeatures == other.supportedFeatures &&
+ supportedOperations == other.supportedOperations &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(supportedFeatures, supportedOperations, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(supportedFeatures, supportedOperations, additionalProperties)
+ }
override fun hashCode(): Int = hashCode
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/BenefitFrequency.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/BenefitFrequency.kt
index fcb26d32..e6bdb44f 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/BenefitFrequency.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/BenefitFrequency.kt
@@ -131,7 +131,7 @@ class BenefitFrequency @JsonCreator private constructor(private val value: JsonF
return true
}
- return /* spotless:off */ other is BenefitFrequency && value == other.value /* spotless:on */
+ return other is BenefitFrequency && value == other.value
}
override fun hashCode() = value.hashCode()
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/BenefitType.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/BenefitType.kt
index b8526345..e7edd423 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/BenefitType.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/BenefitType.kt
@@ -224,7 +224,7 @@ class BenefitType @JsonCreator private constructor(private val value: JsonField<
return true
}
- return /* spotless:off */ other is BenefitType && value == other.value /* spotless:on */
+ return other is BenefitType && value == other.value
}
override fun hashCode() = value.hashCode()
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/BenefitsSupport.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/BenefitsSupport.kt
index b0b0c886..bd48977c 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/BenefitsSupport.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/BenefitsSupport.kt
@@ -631,12 +631,39 @@ private constructor(
return true
}
- return /* spotless:off */ other is BenefitsSupport && commuter == other.commuter && customPostTax == other.customPostTax && customPreTax == other.customPreTax && fsaDependentCare == other.fsaDependentCare && fsaMedical == other.fsaMedical && hsaPost == other.hsaPost && hsaPre == other.hsaPre && s125Dental == other.s125Dental && s125Medical == other.s125Medical && s125Vision == other.s125Vision && simple == other.simple && simpleIra == other.simpleIra && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is BenefitsSupport &&
+ commuter == other.commuter &&
+ customPostTax == other.customPostTax &&
+ customPreTax == other.customPreTax &&
+ fsaDependentCare == other.fsaDependentCare &&
+ fsaMedical == other.fsaMedical &&
+ hsaPost == other.hsaPost &&
+ hsaPre == other.hsaPre &&
+ s125Dental == other.s125Dental &&
+ s125Medical == other.s125Medical &&
+ s125Vision == other.s125Vision &&
+ simple == other.simple &&
+ simpleIra == other.simpleIra &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(commuter, customPostTax, customPreTax, fsaDependentCare, fsaMedical, hsaPost, hsaPre, s125Dental, s125Medical, s125Vision, simple, simpleIra, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(
+ commuter,
+ customPostTax,
+ customPreTax,
+ fsaDependentCare,
+ fsaMedical,
+ hsaPost,
+ hsaPre,
+ s125Dental,
+ s125Medical,
+ s125Vision,
+ simple,
+ simpleIra,
+ additionalProperties,
+ )
+ }
override fun hashCode(): Int = hashCode
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Company.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Company.kt
index 647a3af3..e045475f 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Company.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Company.kt
@@ -1030,7 +1030,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is AccountType && value == other.value /* spotless:on */
+ return other is AccountType && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -1043,12 +1043,25 @@ private constructor(
return true
}
- return /* spotless:off */ other is Account && accountName == other.accountName && accountNumber == other.accountNumber && accountType == other.accountType && institutionName == other.institutionName && routingNumber == other.routingNumber && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Account &&
+ accountName == other.accountName &&
+ accountNumber == other.accountNumber &&
+ accountType == other.accountType &&
+ institutionName == other.institutionName &&
+ routingNumber == other.routingNumber &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(accountName, accountNumber, accountType, institutionName, routingNumber, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(
+ accountName,
+ accountNumber,
+ accountType,
+ institutionName,
+ routingNumber,
+ additionalProperties,
+ )
+ }
override fun hashCode(): Int = hashCode
@@ -1389,12 +1402,12 @@ private constructor(
return true
}
- return /* spotless:off */ other is Parent && name == other.name && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Parent &&
+ name == other.name &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
private val hashCode: Int by lazy { Objects.hash(name, additionalProperties) }
- /* spotless:on */
override fun hashCode(): Int = hashCode
@@ -1407,12 +1420,13 @@ private constructor(
return true
}
- return /* spotless:off */ other is Department && name == other.name && parent == other.parent && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Department &&
+ name == other.name &&
+ parent == other.parent &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
private val hashCode: Int by lazy { Objects.hash(name, parent, additionalProperties) }
- /* spotless:on */
override fun hashCode(): Int = hashCode
@@ -1734,7 +1748,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is Subtype && value == other.value /* spotless:on */
+ return other is Subtype && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -1892,7 +1906,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is Type && value == other.value /* spotless:on */
+ return other is Type && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -1905,12 +1919,13 @@ private constructor(
return true
}
- return /* spotless:off */ other is Entity && subtype == other.subtype && type == other.type && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Entity &&
+ subtype == other.subtype &&
+ type == other.type &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
private val hashCode: Int by lazy { Objects.hash(subtype, type, additionalProperties) }
- /* spotless:on */
override fun hashCode(): Int = hashCode
@@ -1923,12 +1938,33 @@ private constructor(
return true
}
- return /* spotless:off */ other is Company && id == other.id && accounts == other.accounts && departments == other.departments && ein == other.ein && entity == other.entity && legalName == other.legalName && locations == other.locations && primaryEmail == other.primaryEmail && primaryPhoneNumber == other.primaryPhoneNumber && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Company &&
+ id == other.id &&
+ accounts == other.accounts &&
+ departments == other.departments &&
+ ein == other.ein &&
+ entity == other.entity &&
+ legalName == other.legalName &&
+ locations == other.locations &&
+ primaryEmail == other.primaryEmail &&
+ primaryPhoneNumber == other.primaryPhoneNumber &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(id, accounts, departments, ein, entity, legalName, locations, primaryEmail, primaryPhoneNumber, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(
+ id,
+ accounts,
+ departments,
+ ein,
+ entity,
+ legalName,
+ locations,
+ primaryEmail,
+ primaryPhoneNumber,
+ additionalProperties,
+ )
+ }
override fun hashCode(): Int = hashCode
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/CompanyBenefit.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/CompanyBenefit.kt
index d9abb755..34a008e9 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/CompanyBenefit.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/CompanyBenefit.kt
@@ -707,12 +707,15 @@ private constructor(
return true
}
- return /* spotless:off */ other is Tier && match == other.match && threshold == other.threshold && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Tier &&
+ match == other.match &&
+ threshold == other.threshold &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(match, threshold, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(match, threshold, additionalProperties)
+ }
override fun hashCode(): Int = hashCode
@@ -833,7 +836,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is Type && value == other.value /* spotless:on */
+ return other is Type && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -846,12 +849,13 @@ private constructor(
return true
}
- return /* spotless:off */ other is BenefitCompanyMatchContribution && tiers == other.tiers && type == other.type && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is BenefitCompanyMatchContribution &&
+ tiers == other.tiers &&
+ type == other.type &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
private val hashCode: Int by lazy { Objects.hash(tiers, type, additionalProperties) }
- /* spotless:on */
override fun hashCode(): Int = hashCode
@@ -864,12 +868,25 @@ private constructor(
return true
}
- return /* spotless:off */ other is CompanyBenefit && benefitId == other.benefitId && description == other.description && frequency == other.frequency && type == other.type && companyContribution == other.companyContribution && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is CompanyBenefit &&
+ benefitId == other.benefitId &&
+ description == other.description &&
+ frequency == other.frequency &&
+ type == other.type &&
+ companyContribution == other.companyContribution &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(benefitId, description, frequency, type, companyContribution, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(
+ benefitId,
+ description,
+ frequency,
+ type,
+ companyContribution,
+ additionalProperties,
+ )
+ }
override fun hashCode(): Int = hashCode
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/CompanyEvent.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/CompanyEvent.kt
index ce97497c..f5ac8559 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/CompanyEvent.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/CompanyEvent.kt
@@ -416,12 +416,10 @@ private constructor(
return true
}
- return /* spotless:off */ other is Data && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Data && additionalProperties == other.additionalProperties
}
- /* spotless:off */
private val hashCode: Int by lazy { Objects.hash(additionalProperties) }
- /* spotless:on */
override fun hashCode(): Int = hashCode
@@ -540,7 +538,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is EventType && value == other.value /* spotless:on */
+ return other is EventType && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -553,12 +551,18 @@ private constructor(
return true
}
- return /* spotless:off */ other is CompanyEvent && accountId == other.accountId && companyId == other.companyId && connectionId == other.connectionId && data == other.data && eventType == other.eventType && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is CompanyEvent &&
+ accountId == other.accountId &&
+ companyId == other.companyId &&
+ connectionId == other.connectionId &&
+ data == other.data &&
+ eventType == other.eventType &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(accountId, companyId, connectionId, data, eventType, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(accountId, companyId, connectionId, data, eventType, additionalProperties)
+ }
override fun hashCode(): Int = hashCode
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/CompanyUpdateResponse.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/CompanyUpdateResponse.kt
index 7b15b8dd..e2e427f3 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/CompanyUpdateResponse.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/CompanyUpdateResponse.kt
@@ -972,7 +972,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is AccountType && value == other.value /* spotless:on */
+ return other is AccountType && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -985,12 +985,25 @@ private constructor(
return true
}
- return /* spotless:off */ other is Account && accountName == other.accountName && accountNumber == other.accountNumber && accountType == other.accountType && institutionName == other.institutionName && routingNumber == other.routingNumber && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Account &&
+ accountName == other.accountName &&
+ accountNumber == other.accountNumber &&
+ accountType == other.accountType &&
+ institutionName == other.institutionName &&
+ routingNumber == other.routingNumber &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(accountName, accountNumber, accountType, institutionName, routingNumber, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(
+ accountName,
+ accountNumber,
+ accountType,
+ institutionName,
+ routingNumber,
+ additionalProperties,
+ )
+ }
override fun hashCode(): Int = hashCode
@@ -1295,12 +1308,12 @@ private constructor(
return true
}
- return /* spotless:off */ other is Parent && name == other.name && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Parent &&
+ name == other.name &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
private val hashCode: Int by lazy { Objects.hash(name, additionalProperties) }
- /* spotless:on */
override fun hashCode(): Int = hashCode
@@ -1313,12 +1326,13 @@ private constructor(
return true
}
- return /* spotless:off */ other is Department && name == other.name && parent == other.parent && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Department &&
+ name == other.name &&
+ parent == other.parent &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
private val hashCode: Int by lazy { Objects.hash(name, parent, additionalProperties) }
- /* spotless:on */
override fun hashCode(): Int = hashCode
@@ -1619,7 +1633,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is Subtype && value == other.value /* spotless:on */
+ return other is Subtype && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -1777,7 +1791,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is Type && value == other.value /* spotless:on */
+ return other is Type && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -1790,12 +1804,13 @@ private constructor(
return true
}
- return /* spotless:off */ other is Entity && subtype == other.subtype && type == other.type && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Entity &&
+ subtype == other.subtype &&
+ type == other.type &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
private val hashCode: Int by lazy { Objects.hash(subtype, type, additionalProperties) }
- /* spotless:on */
override fun hashCode(): Int = hashCode
@@ -1808,12 +1823,31 @@ private constructor(
return true
}
- return /* spotless:off */ other is CompanyUpdateResponse && accounts == other.accounts && departments == other.departments && ein == other.ein && entity == other.entity && legalName == other.legalName && locations == other.locations && primaryEmail == other.primaryEmail && primaryPhoneNumber == other.primaryPhoneNumber && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is CompanyUpdateResponse &&
+ accounts == other.accounts &&
+ departments == other.departments &&
+ ein == other.ein &&
+ entity == other.entity &&
+ legalName == other.legalName &&
+ locations == other.locations &&
+ primaryEmail == other.primaryEmail &&
+ primaryPhoneNumber == other.primaryPhoneNumber &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(accounts, departments, ein, entity, legalName, locations, primaryEmail, primaryPhoneNumber, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(
+ accounts,
+ departments,
+ ein,
+ entity,
+ legalName,
+ locations,
+ primaryEmail,
+ primaryPhoneNumber,
+ additionalProperties,
+ )
+ }
override fun hashCode(): Int = hashCode
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ConnectSessionNewParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ConnectSessionNewParams.kt
index 4f01e4c2..7c557b64 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ConnectSessionNewParams.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ConnectSessionNewParams.kt
@@ -1006,12 +1006,33 @@ private constructor(
return true
}
- return /* spotless:off */ other is Body && customerId == other.customerId && customerName == other.customerName && products == other.products && customerEmail == other.customerEmail && integration == other.integration && manual == other.manual && minutesToExpire == other.minutesToExpire && redirectUri == other.redirectUri && sandbox == other.sandbox && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Body &&
+ customerId == other.customerId &&
+ customerName == other.customerName &&
+ products == other.products &&
+ customerEmail == other.customerEmail &&
+ integration == other.integration &&
+ manual == other.manual &&
+ minutesToExpire == other.minutesToExpire &&
+ redirectUri == other.redirectUri &&
+ sandbox == other.sandbox &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(customerId, customerName, products, customerEmail, integration, manual, minutesToExpire, redirectUri, sandbox, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(
+ customerId,
+ customerName,
+ products,
+ customerEmail,
+ integration,
+ manual,
+ minutesToExpire,
+ redirectUri,
+ sandbox,
+ additionalProperties,
+ )
+ }
override fun hashCode(): Int = hashCode
@@ -1188,7 +1209,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is ConnectProducts && value == other.value /* spotless:on */
+ return other is ConnectProducts && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -1495,7 +1516,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is AuthMethod && value == other.value /* spotless:on */
+ return other is AuthMethod && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -1508,12 +1529,15 @@ private constructor(
return true
}
- return /* spotless:off */ other is Integration && authMethod == other.authMethod && provider == other.provider && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Integration &&
+ authMethod == other.authMethod &&
+ provider == other.provider &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(authMethod, provider, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(authMethod, provider, additionalProperties)
+ }
override fun hashCode(): Int = hashCode
@@ -1637,7 +1661,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is Sandbox && value == other.value /* spotless:on */
+ return other is Sandbox && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -1650,10 +1674,13 @@ private constructor(
return true
}
- return /* spotless:off */ other is ConnectSessionNewParams && body == other.body && additionalHeaders == other.additionalHeaders && additionalQueryParams == other.additionalQueryParams /* spotless:on */
+ return other is ConnectSessionNewParams &&
+ body == other.body &&
+ additionalHeaders == other.additionalHeaders &&
+ additionalQueryParams == other.additionalQueryParams
}
- override fun hashCode(): Int = /* spotless:off */ Objects.hash(body, additionalHeaders, additionalQueryParams) /* spotless:on */
+ override fun hashCode(): Int = Objects.hash(body, additionalHeaders, additionalQueryParams)
override fun toString() =
"ConnectSessionNewParams{body=$body, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams}"
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ConnectSessionReauthenticateParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ConnectSessionReauthenticateParams.kt
index f005460b..8d695b3c 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ConnectSessionReauthenticateParams.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ConnectSessionReauthenticateParams.kt
@@ -675,12 +675,17 @@ private constructor(
return true
}
- return /* spotless:off */ other is Body && connectionId == other.connectionId && minutesToExpire == other.minutesToExpire && products == other.products && redirectUri == other.redirectUri && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Body &&
+ connectionId == other.connectionId &&
+ minutesToExpire == other.minutesToExpire &&
+ products == other.products &&
+ redirectUri == other.redirectUri &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(connectionId, minutesToExpire, products, redirectUri, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(connectionId, minutesToExpire, products, redirectUri, additionalProperties)
+ }
override fun hashCode(): Int = hashCode
@@ -857,7 +862,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is ConnectProducts && value == other.value /* spotless:on */
+ return other is ConnectProducts && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -870,10 +875,13 @@ private constructor(
return true
}
- return /* spotless:off */ other is ConnectSessionReauthenticateParams && body == other.body && additionalHeaders == other.additionalHeaders && additionalQueryParams == other.additionalQueryParams /* spotless:on */
+ return other is ConnectSessionReauthenticateParams &&
+ body == other.body &&
+ additionalHeaders == other.additionalHeaders &&
+ additionalQueryParams == other.additionalQueryParams
}
- override fun hashCode(): Int = /* spotless:off */ Objects.hash(body, additionalHeaders, additionalQueryParams) /* spotless:on */
+ override fun hashCode(): Int = Objects.hash(body, additionalHeaders, additionalQueryParams)
override fun toString() =
"ConnectSessionReauthenticateParams{body=$body, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams}"
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ConnectionCreateResponse.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ConnectionCreateResponse.kt
index 0bc05880..0049ee7b 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ConnectionCreateResponse.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ConnectionCreateResponse.kt
@@ -589,7 +589,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is AuthenticationType && value == other.value /* spotless:on */
+ return other is AuthenticationType && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -602,12 +602,31 @@ private constructor(
return true
}
- return /* spotless:off */ other is ConnectionCreateResponse && accessToken == other.accessToken && accountId == other.accountId && authenticationType == other.authenticationType && companyId == other.companyId && connectionId == other.connectionId && products == other.products && providerId == other.providerId && tokenType == other.tokenType && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is ConnectionCreateResponse &&
+ accessToken == other.accessToken &&
+ accountId == other.accountId &&
+ authenticationType == other.authenticationType &&
+ companyId == other.companyId &&
+ connectionId == other.connectionId &&
+ products == other.products &&
+ providerId == other.providerId &&
+ tokenType == other.tokenType &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(accessToken, accountId, authenticationType, companyId, connectionId, products, providerId, tokenType, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(
+ accessToken,
+ accountId,
+ authenticationType,
+ companyId,
+ connectionId,
+ products,
+ providerId,
+ tokenType,
+ additionalProperties,
+ )
+ }
override fun hashCode(): Int = hashCode
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ConnectionStatusType.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ConnectionStatusType.kt
index 08471c42..d6b4b286 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ConnectionStatusType.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ConnectionStatusType.kt
@@ -149,7 +149,7 @@ class ConnectionStatusType @JsonCreator private constructor(private val value: J
return true
}
- return /* spotless:off */ other is ConnectionStatusType && value == other.value /* spotless:on */
+ return other is ConnectionStatusType && value == other.value
}
override fun hashCode() = value.hashCode()
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/CreateAccessTokenResponse.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/CreateAccessTokenResponse.kt
index 02a73edf..1815b149 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/CreateAccessTokenResponse.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/CreateAccessTokenResponse.kt
@@ -686,7 +686,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is ClientType && value == other.value /* spotless:on */
+ return other is ClientType && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -819,7 +819,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is ConnectionType && value == other.value /* spotless:on */
+ return other is ConnectionType && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -832,12 +832,35 @@ private constructor(
return true
}
- return /* spotless:off */ other is CreateAccessTokenResponse && accessToken == other.accessToken && accountId == other.accountId && clientType == other.clientType && companyId == other.companyId && connectionId == other.connectionId && connectionType == other.connectionType && products == other.products && providerId == other.providerId && customerId == other.customerId && tokenType == other.tokenType && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is CreateAccessTokenResponse &&
+ accessToken == other.accessToken &&
+ accountId == other.accountId &&
+ clientType == other.clientType &&
+ companyId == other.companyId &&
+ connectionId == other.connectionId &&
+ connectionType == other.connectionType &&
+ products == other.products &&
+ providerId == other.providerId &&
+ customerId == other.customerId &&
+ tokenType == other.tokenType &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(accessToken, accountId, clientType, companyId, connectionId, connectionType, products, providerId, customerId, tokenType, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(
+ accessToken,
+ accountId,
+ clientType,
+ companyId,
+ connectionId,
+ connectionType,
+ products,
+ providerId,
+ customerId,
+ tokenType,
+ additionalProperties,
+ )
+ }
override fun hashCode(): Int = hashCode
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/CreateCompanyBenefitsResponse.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/CreateCompanyBenefitsResponse.kt
index a65b38d4..7a86b89a 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/CreateCompanyBenefitsResponse.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/CreateCompanyBenefitsResponse.kt
@@ -193,12 +193,13 @@ private constructor(
return true
}
- return /* spotless:off */ other is CreateCompanyBenefitsResponse && benefitId == other.benefitId && jobId == other.jobId && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is CreateCompanyBenefitsResponse &&
+ benefitId == other.benefitId &&
+ jobId == other.jobId &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
private val hashCode: Int by lazy { Objects.hash(benefitId, jobId, additionalProperties) }
- /* spotless:on */
override fun hashCode(): Int = hashCode
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/DirectoryCreateResponse.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/DirectoryCreateResponse.kt
index 0efe9871..0a8f737b 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/DirectoryCreateResponse.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/DirectoryCreateResponse.kt
@@ -102,12 +102,11 @@ private constructor(private val additionalProperties: MutableMap = Optional.ofNullable(entityId)
+
/** Number of items to return */
fun limit(): Optional = Optional.ofNullable(limit)
@@ -47,6 +55,7 @@ private constructor(
/** A builder for [JobAutomatedListParams]. */
class Builder internal constructor() {
+ private var entityId: String? = null
private var limit: Long? = null
private var offset: Long? = null
private var additionalHeaders: Headers.Builder = Headers.builder()
@@ -54,12 +63,23 @@ private constructor(
@JvmSynthetic
internal fun from(jobAutomatedListParams: JobAutomatedListParams) = apply {
+ entityId = jobAutomatedListParams.entityId
limit = jobAutomatedListParams.limit
offset = jobAutomatedListParams.offset
additionalHeaders = jobAutomatedListParams.additionalHeaders.toBuilder()
additionalQueryParams = jobAutomatedListParams.additionalQueryParams.toBuilder()
}
+ /**
+ * The entity ID to use when authenticating with a multi-account token. Required when using
+ * a multi-account token to specify which entity's data to access. Example:
+ * `123e4567-e89b-12d3-a456-426614174000`
+ */
+ fun entityId(entityId: String?) = apply { this.entityId = entityId }
+
+ /** Alias for calling [Builder.entityId] with `entityId.orElse(null)`. */
+ fun entityId(entityId: Optional) = entityId(entityId.getOrNull())
+
/** Number of items to return */
fun limit(limit: Long?) = apply { this.limit = limit }
@@ -191,6 +211,7 @@ private constructor(
*/
fun build(): JobAutomatedListParams =
JobAutomatedListParams(
+ entityId,
limit,
offset,
additionalHeaders.build(),
@@ -203,6 +224,7 @@ private constructor(
override fun _queryParams(): QueryParams =
QueryParams.builder()
.apply {
+ entityId?.let { put("entity_id", it) }
limit?.let { put("limit", it.toString()) }
offset?.let { put("offset", it.toString()) }
putAll(additionalQueryParams)
@@ -214,11 +236,17 @@ private constructor(
return true
}
- return /* spotless:off */ other is JobAutomatedListParams && limit == other.limit && offset == other.offset && additionalHeaders == other.additionalHeaders && additionalQueryParams == other.additionalQueryParams /* spotless:on */
+ return other is JobAutomatedListParams &&
+ entityId == other.entityId &&
+ limit == other.limit &&
+ offset == other.offset &&
+ additionalHeaders == other.additionalHeaders &&
+ additionalQueryParams == other.additionalQueryParams
}
- override fun hashCode(): Int = /* spotless:off */ Objects.hash(limit, offset, additionalHeaders, additionalQueryParams) /* spotless:on */
+ override fun hashCode(): Int =
+ Objects.hash(entityId, limit, offset, additionalHeaders, additionalQueryParams)
override fun toString() =
- "JobAutomatedListParams{limit=$limit, offset=$offset, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams}"
+ "JobAutomatedListParams{entityId=$entityId, limit=$limit, offset=$offset, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams}"
}
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/JobAutomatedRetrieveParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/JobAutomatedRetrieveParams.kt
index a5ccd582..86a9424f 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/JobAutomatedRetrieveParams.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/JobAutomatedRetrieveParams.kt
@@ -13,12 +13,20 @@ import kotlin.jvm.optionals.getOrNull
class JobAutomatedRetrieveParams
private constructor(
private val jobId: String?,
+ private val entityId: String?,
private val additionalHeaders: Headers,
private val additionalQueryParams: QueryParams,
) : Params {
fun jobId(): Optional = Optional.ofNullable(jobId)
+ /**
+ * The entity ID to use when authenticating with a multi-account token. Required when using a
+ * multi-account token to specify which entity's data to access. Example:
+ * `123e4567-e89b-12d3-a456-426614174000`
+ */
+ fun entityId(): Optional = Optional.ofNullable(entityId)
+
/** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
@@ -41,12 +49,14 @@ private constructor(
class Builder internal constructor() {
private var jobId: String? = null
+ private var entityId: String? = null
private var additionalHeaders: Headers.Builder = Headers.builder()
private var additionalQueryParams: QueryParams.Builder = QueryParams.builder()
@JvmSynthetic
internal fun from(jobAutomatedRetrieveParams: JobAutomatedRetrieveParams) = apply {
jobId = jobAutomatedRetrieveParams.jobId
+ entityId = jobAutomatedRetrieveParams.entityId
additionalHeaders = jobAutomatedRetrieveParams.additionalHeaders.toBuilder()
additionalQueryParams = jobAutomatedRetrieveParams.additionalQueryParams.toBuilder()
}
@@ -56,6 +66,16 @@ private constructor(
/** Alias for calling [Builder.jobId] with `jobId.orElse(null)`. */
fun jobId(jobId: Optional) = jobId(jobId.getOrNull())
+ /**
+ * The entity ID to use when authenticating with a multi-account token. Required when using
+ * a multi-account token to specify which entity's data to access. Example:
+ * `123e4567-e89b-12d3-a456-426614174000`
+ */
+ fun entityId(entityId: String?) = apply { this.entityId = entityId }
+
+ /** Alias for calling [Builder.entityId] with `entityId.orElse(null)`. */
+ fun entityId(entityId: Optional) = entityId(entityId.getOrNull())
+
fun additionalHeaders(additionalHeaders: Headers) = apply {
this.additionalHeaders.clear()
putAllAdditionalHeaders(additionalHeaders)
@@ -162,6 +182,7 @@ private constructor(
fun build(): JobAutomatedRetrieveParams =
JobAutomatedRetrieveParams(
jobId,
+ entityId,
additionalHeaders.build(),
additionalQueryParams.build(),
)
@@ -175,18 +196,29 @@ private constructor(
override fun _headers(): Headers = additionalHeaders
- override fun _queryParams(): QueryParams = additionalQueryParams
+ override fun _queryParams(): QueryParams =
+ QueryParams.builder()
+ .apply {
+ entityId?.let { put("entity_id", it) }
+ putAll(additionalQueryParams)
+ }
+ .build()
override fun equals(other: Any?): Boolean {
if (this === other) {
return true
}
- return /* spotless:off */ other is JobAutomatedRetrieveParams && jobId == other.jobId && additionalHeaders == other.additionalHeaders && additionalQueryParams == other.additionalQueryParams /* spotless:on */
+ return other is JobAutomatedRetrieveParams &&
+ jobId == other.jobId &&
+ entityId == other.entityId &&
+ additionalHeaders == other.additionalHeaders &&
+ additionalQueryParams == other.additionalQueryParams
}
- override fun hashCode(): Int = /* spotless:off */ Objects.hash(jobId, additionalHeaders, additionalQueryParams) /* spotless:on */
+ override fun hashCode(): Int =
+ Objects.hash(jobId, entityId, additionalHeaders, additionalQueryParams)
override fun toString() =
- "JobAutomatedRetrieveParams{jobId=$jobId, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams}"
+ "JobAutomatedRetrieveParams{jobId=$jobId, entityId=$entityId, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams}"
}
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/JobCompletionEvent.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/JobCompletionEvent.kt
index a8ee4168..52c576f5 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/JobCompletionEvent.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/JobCompletionEvent.kt
@@ -505,12 +505,13 @@ private constructor(
return true
}
- return /* spotless:off */ other is Data && jobId == other.jobId && jobUrl == other.jobUrl && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Data &&
+ jobId == other.jobId &&
+ jobUrl == other.jobUrl &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
private val hashCode: Int by lazy { Objects.hash(jobId, jobUrl, additionalProperties) }
- /* spotless:on */
override fun hashCode(): Int = hashCode
@@ -660,7 +661,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is EventType && value == other.value /* spotless:on */
+ return other is EventType && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -673,12 +674,18 @@ private constructor(
return true
}
- return /* spotless:off */ other is JobCompletionEvent && accountId == other.accountId && companyId == other.companyId && connectionId == other.connectionId && data == other.data && eventType == other.eventType && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is JobCompletionEvent &&
+ accountId == other.accountId &&
+ companyId == other.companyId &&
+ connectionId == other.connectionId &&
+ data == other.data &&
+ eventType == other.eventType &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(accountId, companyId, connectionId, data, eventType, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(accountId, companyId, connectionId, data, eventType, additionalProperties)
+ }
override fun hashCode(): Int = hashCode
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/JobCreateResponse.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/JobCreateResponse.kt
index 0899bd84..1af4be7a 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/JobCreateResponse.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/JobCreateResponse.kt
@@ -283,12 +283,17 @@ private constructor(
return true
}
- return /* spotless:off */ other is JobCreateResponse && allowedRefreshes == other.allowedRefreshes && jobId == other.jobId && jobUrl == other.jobUrl && remainingRefreshes == other.remainingRefreshes && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is JobCreateResponse &&
+ allowedRefreshes == other.allowedRefreshes &&
+ jobId == other.jobId &&
+ jobUrl == other.jobUrl &&
+ remainingRefreshes == other.remainingRefreshes &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(allowedRefreshes, jobId, jobUrl, remainingRefreshes, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(allowedRefreshes, jobId, jobUrl, remainingRefreshes, additionalProperties)
+ }
override fun hashCode(): Int = hashCode
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/JobManualRetrieveParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/JobManualRetrieveParams.kt
index 630bd34f..a1a4d175 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/JobManualRetrieveParams.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/JobManualRetrieveParams.kt
@@ -16,12 +16,20 @@ import kotlin.jvm.optionals.getOrNull
class JobManualRetrieveParams
private constructor(
private val jobId: String?,
+ private val entityId: String?,
private val additionalHeaders: Headers,
private val additionalQueryParams: QueryParams,
) : Params {
fun jobId(): Optional = Optional.ofNullable(jobId)
+ /**
+ * The entity ID to use when authenticating with a multi-account token. Required when using a
+ * multi-account token to specify which entity's data to access. Example:
+ * `123e4567-e89b-12d3-a456-426614174000`
+ */
+ fun entityId(): Optional = Optional.ofNullable(entityId)
+
/** Additional headers to send with the request. */
fun _additionalHeaders(): Headers = additionalHeaders
@@ -42,12 +50,14 @@ private constructor(
class Builder internal constructor() {
private var jobId: String? = null
+ private var entityId: String? = null
private var additionalHeaders: Headers.Builder = Headers.builder()
private var additionalQueryParams: QueryParams.Builder = QueryParams.builder()
@JvmSynthetic
internal fun from(jobManualRetrieveParams: JobManualRetrieveParams) = apply {
jobId = jobManualRetrieveParams.jobId
+ entityId = jobManualRetrieveParams.entityId
additionalHeaders = jobManualRetrieveParams.additionalHeaders.toBuilder()
additionalQueryParams = jobManualRetrieveParams.additionalQueryParams.toBuilder()
}
@@ -57,6 +67,16 @@ private constructor(
/** Alias for calling [Builder.jobId] with `jobId.orElse(null)`. */
fun jobId(jobId: Optional) = jobId(jobId.getOrNull())
+ /**
+ * The entity ID to use when authenticating with a multi-account token. Required when using
+ * a multi-account token to specify which entity's data to access. Example:
+ * `123e4567-e89b-12d3-a456-426614174000`
+ */
+ fun entityId(entityId: String?) = apply { this.entityId = entityId }
+
+ /** Alias for calling [Builder.entityId] with `entityId.orElse(null)`. */
+ fun entityId(entityId: Optional) = entityId(entityId.getOrNull())
+
fun additionalHeaders(additionalHeaders: Headers) = apply {
this.additionalHeaders.clear()
putAllAdditionalHeaders(additionalHeaders)
@@ -161,7 +181,12 @@ private constructor(
* Further updates to this [Builder] will not mutate the returned instance.
*/
fun build(): JobManualRetrieveParams =
- JobManualRetrieveParams(jobId, additionalHeaders.build(), additionalQueryParams.build())
+ JobManualRetrieveParams(
+ jobId,
+ entityId,
+ additionalHeaders.build(),
+ additionalQueryParams.build(),
+ )
}
fun _pathParam(index: Int): String =
@@ -172,18 +197,29 @@ private constructor(
override fun _headers(): Headers = additionalHeaders
- override fun _queryParams(): QueryParams = additionalQueryParams
+ override fun _queryParams(): QueryParams =
+ QueryParams.builder()
+ .apply {
+ entityId?.let { put("entity_id", it) }
+ putAll(additionalQueryParams)
+ }
+ .build()
override fun equals(other: Any?): Boolean {
if (this === other) {
return true
}
- return /* spotless:off */ other is JobManualRetrieveParams && jobId == other.jobId && additionalHeaders == other.additionalHeaders && additionalQueryParams == other.additionalQueryParams /* spotless:on */
+ return other is JobManualRetrieveParams &&
+ jobId == other.jobId &&
+ entityId == other.entityId &&
+ additionalHeaders == other.additionalHeaders &&
+ additionalQueryParams == other.additionalQueryParams
}
- override fun hashCode(): Int = /* spotless:off */ Objects.hash(jobId, additionalHeaders, additionalQueryParams) /* spotless:on */
+ override fun hashCode(): Int =
+ Objects.hash(jobId, entityId, additionalHeaders, additionalQueryParams)
override fun toString() =
- "JobManualRetrieveParams{jobId=$jobId, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams}"
+ "JobManualRetrieveParams{jobId=$jobId, entityId=$entityId, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams}"
}
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Location.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Location.kt
index e2c3a920..857bb56c 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Location.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Location.kt
@@ -424,12 +424,31 @@ private constructor(
return true
}
- return /* spotless:off */ other is Location && city == other.city && country == other.country && line1 == other.line1 && line2 == other.line2 && postalCode == other.postalCode && state == other.state && name == other.name && sourceId == other.sourceId && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Location &&
+ city == other.city &&
+ country == other.country &&
+ line1 == other.line1 &&
+ line2 == other.line2 &&
+ postalCode == other.postalCode &&
+ state == other.state &&
+ name == other.name &&
+ sourceId == other.sourceId &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(city, country, line1, line2, postalCode, state, name, sourceId, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(
+ city,
+ country,
+ line1,
+ line2,
+ postalCode,
+ state,
+ name,
+ sourceId,
+ additionalProperties,
+ )
+ }
override fun hashCode(): Int = hashCode
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ManualAsyncJob.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ManualAsyncJob.kt
index d76f84e3..18fb4cc8 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ManualAsyncJob.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ManualAsyncJob.kt
@@ -22,7 +22,7 @@ import kotlin.jvm.optionals.getOrNull
class ManualAsyncJob
private constructor(
- private val body: JsonField>,
+ private val body: JsonField>,
private val jobId: JsonField,
private val status: JsonField,
private val additionalProperties: MutableMap,
@@ -30,7 +30,7 @@ private constructor(
@JsonCreator
private constructor(
- @JsonProperty("body") @ExcludeMissing body: JsonField> = JsonMissing.of(),
+ @JsonProperty("body") @ExcludeMissing body: JsonField> = JsonMissing.of(),
@JsonProperty("job_id") @ExcludeMissing jobId: JsonField = JsonMissing.of(),
@JsonProperty("status") @ExcludeMissing status: JsonField = JsonMissing.of(),
) : this(body, jobId, status, mutableMapOf())
@@ -41,7 +41,7 @@ private constructor(
* @throws FinchInvalidDataException if the JSON field has an unexpected type (e.g. if the
* server responded with an unexpected value).
*/
- fun body(): Optional> = body.getOptional("body")
+ fun body(): Optional> = body.getOptional("body")
/**
* @throws FinchInvalidDataException if the JSON field has an unexpected type or is unexpectedly
@@ -60,7 +60,7 @@ private constructor(
*
* Unlike [body], this method doesn't throw if the JSON field has an unexpected type.
*/
- @JsonProperty("body") @ExcludeMissing fun _body(): JsonField> = body
+ @JsonProperty("body") @ExcludeMissing fun _body(): JsonField> = body
/**
* Returns the raw JSON value of [jobId].
@@ -106,7 +106,7 @@ private constructor(
/** A builder for [ManualAsyncJob]. */
class Builder internal constructor() {
- private var body: JsonField>? = null
+ private var body: JsonField>? = null
private var jobId: JsonField? = null
private var status: JsonField? = null
private var additionalProperties: MutableMap = mutableMapOf()
@@ -120,19 +120,19 @@ private constructor(
}
/** Specific information about the job, such as individual statuses for batch jobs. */
- fun body(body: List?) = body(JsonField.ofNullable(body))
+ fun body(body: List?) = body(JsonField.ofNullable(body))
/** Alias for calling [Builder.body] with `body.orElse(null)`. */
- fun body(body: Optional>) = body(body.getOrNull())
+ fun body(body: Optional>) = body(body.getOrNull())
/**
* Sets [Builder.body] to an arbitrary JSON value.
*
- * You should usually call [Builder.body] with a well-typed `List` value instead.
- * This method is primarily for setting the field to an undocumented or not yet supported
- * value.
+ * You should usually call [Builder.body] with a well-typed `List` value
+ * instead. This method is primarily for setting the field to an undocumented or not yet
+ * supported value.
*/
- fun body(body: JsonField>) = apply {
+ fun body(body: JsonField>) = apply {
this.body = body.map { it.toMutableList() }
}
@@ -238,7 +238,7 @@ private constructor(
*/
@JvmSynthetic
internal fun validity(): Int =
- (body.asKnown().getOrNull()?.size ?: 0) +
+ (body.asKnown().getOrNull()?.sumOf { (if (it == null) 0 else 1).toInt() } ?: 0) +
(if (jobId.asKnown().isPresent) 1 else 0) +
(status.asKnown().getOrNull()?.validity() ?: 0)
@@ -370,7 +370,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is Status && value == other.value /* spotless:on */
+ return other is Status && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -383,12 +383,14 @@ private constructor(
return true
}
- return /* spotless:off */ other is ManualAsyncJob && body == other.body && jobId == other.jobId && status == other.status && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is ManualAsyncJob &&
+ body == other.body &&
+ jobId == other.jobId &&
+ status == other.status &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
private val hashCode: Int by lazy { Objects.hash(body, jobId, status, additionalProperties) }
- /* spotless:on */
override fun hashCode(): Int = hashCode
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Money.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Money.kt
index 137e061e..89d954bd 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Money.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Money.kt
@@ -203,12 +203,13 @@ private constructor(
return true
}
- return /* spotless:off */ other is Money && amount == other.amount && currency == other.currency && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Money &&
+ amount == other.amount &&
+ currency == other.currency &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
private val hashCode: Int by lazy { Objects.hash(amount, currency, additionalProperties) }
- /* spotless:on */
override fun hashCode(): Int = hashCode
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/OperationSupport.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/OperationSupport.kt
index 170e62fd..86676752 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/OperationSupport.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/OperationSupport.kt
@@ -145,7 +145,7 @@ class OperationSupport @JsonCreator private constructor(private val value: JsonF
return true
}
- return /* spotless:off */ other is OperationSupport && value == other.value /* spotless:on */
+ return other is OperationSupport && value == other.value
}
override fun hashCode() = value.hashCode()
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/OperationSupportMatrix.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/OperationSupportMatrix.kt
index 67fbb130..237e66b5 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/OperationSupportMatrix.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/OperationSupportMatrix.kt
@@ -312,12 +312,17 @@ private constructor(
return true
}
- return /* spotless:off */ other is OperationSupportMatrix && create == other.create && delete == other.delete && read == other.read && update == other.update && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is OperationSupportMatrix &&
+ create == other.create &&
+ delete == other.delete &&
+ read == other.read &&
+ update == other.update &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(create, delete, read, update, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(create, delete, read, update, additionalProperties)
+ }
override fun hashCode(): Int = hashCode
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Paging.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Paging.kt
index afaf3a26..421a092e 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Paging.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Paging.kt
@@ -189,12 +189,13 @@ private constructor(
return true
}
- return /* spotless:off */ other is Paging && offset == other.offset && count == other.count && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Paging &&
+ offset == other.offset &&
+ count == other.count &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
private val hashCode: Int by lazy { Objects.hash(offset, count, additionalProperties) }
- /* spotless:on */
override fun hashCode(): Int = hashCode
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayGroupListResponse.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayGroupListResponse.kt
index a5826485..deb98373 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayGroupListResponse.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayGroupListResponse.kt
@@ -410,7 +410,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is PayFrequency && value == other.value /* spotless:on */
+ return other is PayFrequency && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -423,12 +423,16 @@ private constructor(
return true
}
- return /* spotless:off */ other is PayGroupListResponse && id == other.id && name == other.name && payFrequencies == other.payFrequencies && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is PayGroupListResponse &&
+ id == other.id &&
+ name == other.name &&
+ payFrequencies == other.payFrequencies &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(id, name, payFrequencies, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(id, name, payFrequencies, additionalProperties)
+ }
override fun hashCode(): Int = hashCode
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayGroupRetrieveResponse.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayGroupRetrieveResponse.kt
index 8e93a1cc..949a01fa 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayGroupRetrieveResponse.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayGroupRetrieveResponse.kt
@@ -461,7 +461,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is PayFrequency && value == other.value /* spotless:on */
+ return other is PayFrequency && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -474,12 +474,17 @@ private constructor(
return true
}
- return /* spotless:off */ other is PayGroupRetrieveResponse && id == other.id && individualIds == other.individualIds && name == other.name && payFrequencies == other.payFrequencies && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is PayGroupRetrieveResponse &&
+ id == other.id &&
+ individualIds == other.individualIds &&
+ name == other.name &&
+ payFrequencies == other.payFrequencies &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(id, individualIds, name, payFrequencies, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(id, individualIds, name, payFrequencies, additionalProperties)
+ }
override fun hashCode(): Int = hashCode
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayStatement.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayStatement.kt
index a30617de..c0d7a035 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayStatement.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayStatement.kt
@@ -1164,7 +1164,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is Type && value == other.value /* spotless:on */
+ return other is Type && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -1581,12 +1581,11 @@ private constructor(
return true
}
- return /* spotless:off */ other is InnerMetadata && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is InnerMetadata &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
private val hashCode: Int by lazy { Objects.hash(additionalProperties) }
- /* spotless:on */
override fun hashCode(): Int = hashCode
@@ -1599,12 +1598,12 @@ private constructor(
return true
}
- return /* spotless:off */ other is Metadata && metadata == other.metadata && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Metadata &&
+ metadata == other.metadata &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
private val hashCode: Int by lazy { Objects.hash(metadata, additionalProperties) }
- /* spotless:on */
override fun hashCode(): Int = hashCode
@@ -1617,12 +1616,12 @@ private constructor(
return true
}
- return /* spotless:off */ other is Attributes && metadata == other.metadata && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Attributes &&
+ metadata == other.metadata &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
private val hashCode: Int by lazy { Objects.hash(metadata, additionalProperties) }
- /* spotless:on */
override fun hashCode(): Int = hashCode
@@ -1635,12 +1634,19 @@ private constructor(
return true
}
- return /* spotless:off */ other is Earning && amount == other.amount && currency == other.currency && hours == other.hours && name == other.name && type == other.type && attributes == other.attributes && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Earning &&
+ amount == other.amount &&
+ currency == other.currency &&
+ hours == other.hours &&
+ name == other.name &&
+ type == other.type &&
+ attributes == other.attributes &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(amount, currency, hours, name, type, attributes, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(amount, currency, hours, name, type, attributes, additionalProperties)
+ }
override fun hashCode(): Int = hashCode
@@ -2414,12 +2420,11 @@ private constructor(
return true
}
- return /* spotless:off */ other is InnerMetadata && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is InnerMetadata &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
private val hashCode: Int by lazy { Objects.hash(additionalProperties) }
- /* spotless:on */
override fun hashCode(): Int = hashCode
@@ -2432,12 +2437,12 @@ private constructor(
return true
}
- return /* spotless:off */ other is Metadata && metadata == other.metadata && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Metadata &&
+ metadata == other.metadata &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
private val hashCode: Int by lazy { Objects.hash(metadata, additionalProperties) }
- /* spotless:on */
override fun hashCode(): Int = hashCode
@@ -2450,12 +2455,12 @@ private constructor(
return true
}
- return /* spotless:off */ other is Attributes && metadata == other.metadata && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Attributes &&
+ metadata == other.metadata &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
private val hashCode: Int by lazy { Objects.hash(metadata, additionalProperties) }
- /* spotless:on */
override fun hashCode(): Int = hashCode
@@ -2468,12 +2473,19 @@ private constructor(
return true
}
- return /* spotless:off */ other is EmployeeDeduction && amount == other.amount && currency == other.currency && name == other.name && preTax == other.preTax && type == other.type && attributes == other.attributes && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is EmployeeDeduction &&
+ amount == other.amount &&
+ currency == other.currency &&
+ name == other.name &&
+ preTax == other.preTax &&
+ type == other.type &&
+ attributes == other.attributes &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(amount, currency, name, preTax, type, attributes, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(amount, currency, name, preTax, type, attributes, additionalProperties)
+ }
override fun hashCode(): Int = hashCode
@@ -3199,12 +3211,11 @@ private constructor(
return true
}
- return /* spotless:off */ other is InnerMetadata && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is InnerMetadata &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
private val hashCode: Int by lazy { Objects.hash(additionalProperties) }
- /* spotless:on */
override fun hashCode(): Int = hashCode
@@ -3217,12 +3228,12 @@ private constructor(
return true
}
- return /* spotless:off */ other is Metadata && metadata == other.metadata && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Metadata &&
+ metadata == other.metadata &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
private val hashCode: Int by lazy { Objects.hash(metadata, additionalProperties) }
- /* spotless:on */
override fun hashCode(): Int = hashCode
@@ -3235,12 +3246,12 @@ private constructor(
return true
}
- return /* spotless:off */ other is Attributes && metadata == other.metadata && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Attributes &&
+ metadata == other.metadata &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
private val hashCode: Int by lazy { Objects.hash(metadata, additionalProperties) }
- /* spotless:on */
override fun hashCode(): Int = hashCode
@@ -3253,12 +3264,18 @@ private constructor(
return true
}
- return /* spotless:off */ other is EmployerContribution && currency == other.currency && name == other.name && type == other.type && amount == other.amount && attributes == other.attributes && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is EmployerContribution &&
+ currency == other.currency &&
+ name == other.name &&
+ type == other.type &&
+ amount == other.amount &&
+ attributes == other.attributes &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(currency, name, type, amount, attributes, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(currency, name, type, amount, attributes, additionalProperties)
+ }
override fun hashCode(): Int = hashCode
@@ -3393,7 +3410,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is PaymentMethod && value == other.value /* spotless:on */
+ return other is PaymentMethod && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -3890,7 +3907,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is Type && value == other.value /* spotless:on */
+ return other is Type && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -4307,12 +4324,11 @@ private constructor(
return true
}
- return /* spotless:off */ other is InnerMetadata && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is InnerMetadata &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
private val hashCode: Int by lazy { Objects.hash(additionalProperties) }
- /* spotless:on */
override fun hashCode(): Int = hashCode
@@ -4325,12 +4341,12 @@ private constructor(
return true
}
- return /* spotless:off */ other is Metadata && metadata == other.metadata && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Metadata &&
+ metadata == other.metadata &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
private val hashCode: Int by lazy { Objects.hash(metadata, additionalProperties) }
- /* spotless:on */
override fun hashCode(): Int = hashCode
@@ -4343,12 +4359,12 @@ private constructor(
return true
}
- return /* spotless:off */ other is Attributes && metadata == other.metadata && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Attributes &&
+ metadata == other.metadata &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
private val hashCode: Int by lazy { Objects.hash(metadata, additionalProperties) }
- /* spotless:on */
override fun hashCode(): Int = hashCode
@@ -4361,12 +4377,19 @@ private constructor(
return true
}
- return /* spotless:off */ other is Tax && currency == other.currency && employer == other.employer && name == other.name && type == other.type && amount == other.amount && attributes == other.attributes && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Tax &&
+ currency == other.currency &&
+ employer == other.employer &&
+ name == other.name &&
+ type == other.type &&
+ amount == other.amount &&
+ attributes == other.attributes &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(currency, employer, name, type, amount, attributes, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(currency, employer, name, type, amount, attributes, additionalProperties)
+ }
override fun hashCode(): Int = hashCode
@@ -4497,7 +4520,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is Type && value == other.value /* spotless:on */
+ return other is Type && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -4510,12 +4533,35 @@ private constructor(
return true
}
- return /* spotless:off */ other is PayStatement && earnings == other.earnings && employeeDeductions == other.employeeDeductions && employerContributions == other.employerContributions && grossPay == other.grossPay && individualId == other.individualId && netPay == other.netPay && paymentMethod == other.paymentMethod && taxes == other.taxes && totalHours == other.totalHours && type == other.type && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is PayStatement &&
+ earnings == other.earnings &&
+ employeeDeductions == other.employeeDeductions &&
+ employerContributions == other.employerContributions &&
+ grossPay == other.grossPay &&
+ individualId == other.individualId &&
+ netPay == other.netPay &&
+ paymentMethod == other.paymentMethod &&
+ taxes == other.taxes &&
+ totalHours == other.totalHours &&
+ type == other.type &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(earnings, employeeDeductions, employerContributions, grossPay, individualId, netPay, paymentMethod, taxes, totalHours, type, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(
+ earnings,
+ employeeDeductions,
+ employerContributions,
+ grossPay,
+ individualId,
+ netPay,
+ paymentMethod,
+ taxes,
+ totalHours,
+ type,
+ additionalProperties,
+ )
+ }
override fun hashCode(): Int = hashCode
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayStatementDataSyncInProgress.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayStatementDataSyncInProgress.kt
index e20da2e9..4a0f4e6d 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayStatementDataSyncInProgress.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayStatementDataSyncInProgress.kt
@@ -363,7 +363,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is Code && value == other.value /* spotless:on */
+ return other is Code && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -483,7 +483,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is FinchCode && value == other.value /* spotless:on */
+ return other is FinchCode && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -609,7 +609,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is Message && value == other.value /* spotless:on */
+ return other is Message && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -727,7 +727,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is Name && value == other.value /* spotless:on */
+ return other is Name && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -740,12 +740,17 @@ private constructor(
return true
}
- return /* spotless:off */ other is PayStatementDataSyncInProgress && code == other.code && finchCode == other.finchCode && message == other.message && name == other.name && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is PayStatementDataSyncInProgress &&
+ code == other.code &&
+ finchCode == other.finchCode &&
+ message == other.message &&
+ name == other.name &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(code, finchCode, message, name, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(code, finchCode, message, name, additionalProperties)
+ }
override fun hashCode(): Int = hashCode
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayStatementEvent.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayStatementEvent.kt
index 7adb6c95..fd55e536 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayStatementEvent.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayStatementEvent.kt
@@ -494,12 +494,15 @@ private constructor(
return true
}
- return /* spotless:off */ other is Data && individualId == other.individualId && paymentId == other.paymentId && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Data &&
+ individualId == other.individualId &&
+ paymentId == other.paymentId &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(individualId, paymentId, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(individualId, paymentId, additionalProperties)
+ }
override fun hashCode(): Int = hashCode
@@ -631,7 +634,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is EventType && value == other.value /* spotless:on */
+ return other is EventType && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -644,12 +647,18 @@ private constructor(
return true
}
- return /* spotless:off */ other is PayStatementEvent && accountId == other.accountId && companyId == other.companyId && connectionId == other.connectionId && data == other.data && eventType == other.eventType && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is PayStatementEvent &&
+ accountId == other.accountId &&
+ companyId == other.companyId &&
+ connectionId == other.connectionId &&
+ data == other.data &&
+ eventType == other.eventType &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(accountId, companyId, connectionId, data, eventType, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(accountId, companyId, connectionId, data, eventType, additionalProperties)
+ }
override fun hashCode(): Int = hashCode
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayStatementItemListResponse.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayStatementItemListResponse.kt
index 172c2ddf..156ac4c0 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayStatementItemListResponse.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayStatementItemListResponse.kt
@@ -617,12 +617,10 @@ private constructor(
return true
}
- return /* spotless:off */ other is Metadata && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Metadata && additionalProperties == other.additionalProperties
}
- /* spotless:off */
private val hashCode: Int by lazy { Objects.hash(additionalProperties) }
- /* spotless:on */
override fun hashCode(): Int = hashCode
@@ -634,12 +632,17 @@ private constructor(
return true
}
- return /* spotless:off */ other is Attributes && metadata == other.metadata && employer == other.employer && preTax == other.preTax && type == other.type && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Attributes &&
+ metadata == other.metadata &&
+ employer == other.employer &&
+ preTax == other.preTax &&
+ type == other.type &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(metadata, employer, preTax, type, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(metadata, employer, preTax, type, additionalProperties)
+ }
override fun hashCode(): Int = hashCode
@@ -776,7 +779,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is Category && value == other.value /* spotless:on */
+ return other is Category && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -789,12 +792,16 @@ private constructor(
return true
}
- return /* spotless:off */ other is PayStatementItemListResponse && attributes == other.attributes && category == other.category && name == other.name && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is PayStatementItemListResponse &&
+ attributes == other.attributes &&
+ category == other.category &&
+ name == other.name &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(attributes, category, name, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(attributes, category, name, additionalProperties)
+ }
override fun hashCode(): Int = hashCode
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayStatementResponse.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayStatementResponse.kt
index 04d0fa8a..506a7962 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayStatementResponse.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayStatementResponse.kt
@@ -354,10 +354,14 @@ private constructor(
return true
}
- return /* spotless:off */ other is Body && payStatementResponse == other.payStatementResponse && batchError == other.batchError && payStatementDataSyncInProgress == other.payStatementDataSyncInProgress /* spotless:on */
+ return other is Body &&
+ payStatementResponse == other.payStatementResponse &&
+ batchError == other.batchError &&
+ payStatementDataSyncInProgress == other.payStatementDataSyncInProgress
}
- override fun hashCode(): Int = /* spotless:off */ Objects.hash(payStatementResponse, batchError, payStatementDataSyncInProgress) /* spotless:on */
+ override fun hashCode(): Int =
+ Objects.hash(payStatementResponse, batchError, payStatementDataSyncInProgress)
override fun toString(): String =
when {
@@ -713,12 +717,17 @@ private constructor(
return true
}
- return /* spotless:off */ other is BatchError && code == other.code && message == other.message && name == other.name && finchCode == other.finchCode && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is BatchError &&
+ code == other.code &&
+ message == other.message &&
+ name == other.name &&
+ finchCode == other.finchCode &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(code, message, name, finchCode, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(code, message, name, finchCode, additionalProperties)
+ }
override fun hashCode(): Int = hashCode
@@ -732,12 +741,14 @@ private constructor(
return true
}
- return /* spotless:off */ other is PayStatementResponse && body == other.body && code == other.code && paymentId == other.paymentId && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is PayStatementResponse &&
+ body == other.body &&
+ code == other.code &&
+ paymentId == other.paymentId &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
private val hashCode: Int by lazy { Objects.hash(body, code, paymentId, additionalProperties) }
- /* spotless:on */
override fun hashCode(): Int = hashCode
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayStatementResponseBody.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayStatementResponseBody.kt
index 712d6020..4aea2be8 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayStatementResponseBody.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayStatementResponseBody.kt
@@ -384,12 +384,13 @@ private constructor(
return true
}
- return /* spotless:off */ other is Paging && offset == other.offset && count == other.count && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Paging &&
+ offset == other.offset &&
+ count == other.count &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
private val hashCode: Int by lazy { Objects.hash(offset, count, additionalProperties) }
- /* spotless:on */
override fun hashCode(): Int = hashCode
@@ -402,12 +403,13 @@ private constructor(
return true
}
- return /* spotless:off */ other is PayStatementResponseBody && paging == other.paging && payStatements == other.payStatements && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is PayStatementResponseBody &&
+ paging == other.paging &&
+ payStatements == other.payStatements &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
private val hashCode: Int by lazy { Objects.hash(paging, payStatements, additionalProperties) }
- /* spotless:on */
override fun hashCode(): Int = hashCode
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Payment.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Payment.kt
index c3dfdb32..b4b48b0e 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Payment.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Payment.kt
@@ -821,7 +821,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is PayFrequency && value == other.value /* spotless:on */
+ return other is PayFrequency && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -1015,12 +1015,13 @@ private constructor(
return true
}
- return /* spotless:off */ other is PayPeriod && endDate == other.endDate && startDate == other.startDate && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is PayPeriod &&
+ endDate == other.endDate &&
+ startDate == other.startDate &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
private val hashCode: Int by lazy { Objects.hash(endDate, startDate, additionalProperties) }
- /* spotless:on */
override fun hashCode(): Int = hashCode
@@ -1033,12 +1034,39 @@ private constructor(
return true
}
- return /* spotless:off */ other is Payment && id == other.id && companyDebit == other.companyDebit && debitDate == other.debitDate && employeeTaxes == other.employeeTaxes && employerTaxes == other.employerTaxes && grossPay == other.grossPay && individualIds == other.individualIds && netPay == other.netPay && payDate == other.payDate && payFrequencies == other.payFrequencies && payGroupIds == other.payGroupIds && payPeriod == other.payPeriod && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Payment &&
+ id == other.id &&
+ companyDebit == other.companyDebit &&
+ debitDate == other.debitDate &&
+ employeeTaxes == other.employeeTaxes &&
+ employerTaxes == other.employerTaxes &&
+ grossPay == other.grossPay &&
+ individualIds == other.individualIds &&
+ netPay == other.netPay &&
+ payDate == other.payDate &&
+ payFrequencies == other.payFrequencies &&
+ payGroupIds == other.payGroupIds &&
+ payPeriod == other.payPeriod &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(id, companyDebit, debitDate, employeeTaxes, employerTaxes, grossPay, individualIds, netPay, payDate, payFrequencies, payGroupIds, payPeriod, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(
+ id,
+ companyDebit,
+ debitDate,
+ employeeTaxes,
+ employerTaxes,
+ grossPay,
+ individualIds,
+ netPay,
+ payDate,
+ payFrequencies,
+ payGroupIds,
+ payPeriod,
+ additionalProperties,
+ )
+ }
override fun hashCode(): Int = hashCode
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PaymentCreateResponse.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PaymentCreateResponse.kt
index 9504615b..d03e5ab1 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PaymentCreateResponse.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PaymentCreateResponse.kt
@@ -195,12 +195,13 @@ private constructor(
return true
}
- return /* spotless:off */ other is PaymentCreateResponse && payDate == other.payDate && paymentId == other.paymentId && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is PaymentCreateResponse &&
+ payDate == other.payDate &&
+ paymentId == other.paymentId &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
private val hashCode: Int by lazy { Objects.hash(payDate, paymentId, additionalProperties) }
- /* spotless:on */
override fun hashCode(): Int = hashCode
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PaymentEvent.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PaymentEvent.kt
index aa2542ff..a187499b 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PaymentEvent.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PaymentEvent.kt
@@ -511,12 +511,13 @@ private constructor(
return true
}
- return /* spotless:off */ other is PaymentIdentifiers && payDate == other.payDate && paymentId == other.paymentId && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is PaymentIdentifiers &&
+ payDate == other.payDate &&
+ paymentId == other.paymentId &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
private val hashCode: Int by lazy { Objects.hash(payDate, paymentId, additionalProperties) }
- /* spotless:on */
override fun hashCode(): Int = hashCode
@@ -648,7 +649,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is EventType && value == other.value /* spotless:on */
+ return other is EventType && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -661,12 +662,18 @@ private constructor(
return true
}
- return /* spotless:off */ other is PaymentEvent && accountId == other.accountId && companyId == other.companyId && connectionId == other.connectionId && data == other.data && eventType == other.eventType && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is PaymentEvent &&
+ accountId == other.accountId &&
+ companyId == other.companyId &&
+ connectionId == other.connectionId &&
+ data == other.data &&
+ eventType == other.eventType &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(accountId, companyId, connectionId, data, eventType, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(accountId, companyId, connectionId, data, eventType, additionalProperties)
+ }
override fun hashCode(): Int = hashCode
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayrollPayGroupListPage.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayrollPayGroupListPage.kt
index fcb935a1..8dee39ba 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayrollPayGroupListPage.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayrollPayGroupListPage.kt
@@ -97,10 +97,13 @@ private constructor(
return true
}
- return /* spotless:off */ other is PayrollPayGroupListPage && service == other.service && params == other.params && items == other.items /* spotless:on */
+ return other is PayrollPayGroupListPage &&
+ service == other.service &&
+ params == other.params &&
+ items == other.items
}
- override fun hashCode(): Int = /* spotless:off */ Objects.hash(service, params, items) /* spotless:on */
+ override fun hashCode(): Int = Objects.hash(service, params, items)
override fun toString() =
"PayrollPayGroupListPage{service=$service, params=$params, items=$items}"
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayrollPayGroupListPageAsync.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayrollPayGroupListPageAsync.kt
index c5a7ed5c..5faaa4fd 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayrollPayGroupListPageAsync.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayrollPayGroupListPageAsync.kt
@@ -111,10 +111,14 @@ private constructor(
return true
}
- return /* spotless:off */ other is PayrollPayGroupListPageAsync && service == other.service && streamHandlerExecutor == other.streamHandlerExecutor && params == other.params && items == other.items /* spotless:on */
+ return other is PayrollPayGroupListPageAsync &&
+ service == other.service &&
+ streamHandlerExecutor == other.streamHandlerExecutor &&
+ params == other.params &&
+ items == other.items
}
- override fun hashCode(): Int = /* spotless:off */ Objects.hash(service, streamHandlerExecutor, params, items) /* spotless:on */
+ override fun hashCode(): Int = Objects.hash(service, streamHandlerExecutor, params, items)
override fun toString() =
"PayrollPayGroupListPageAsync{service=$service, streamHandlerExecutor=$streamHandlerExecutor, params=$params, items=$items}"
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayrollPayGroupListParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayrollPayGroupListParams.kt
index fadd5553..0c5f68b0 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayrollPayGroupListParams.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayrollPayGroupListParams.kt
@@ -207,10 +207,15 @@ private constructor(
return true
}
- return /* spotless:off */ other is PayrollPayGroupListParams && individualId == other.individualId && payFrequencies == other.payFrequencies && additionalHeaders == other.additionalHeaders && additionalQueryParams == other.additionalQueryParams /* spotless:on */
+ return other is PayrollPayGroupListParams &&
+ individualId == other.individualId &&
+ payFrequencies == other.payFrequencies &&
+ additionalHeaders == other.additionalHeaders &&
+ additionalQueryParams == other.additionalQueryParams
}
- override fun hashCode(): Int = /* spotless:off */ Objects.hash(individualId, payFrequencies, additionalHeaders, additionalQueryParams) /* spotless:on */
+ override fun hashCode(): Int =
+ Objects.hash(individualId, payFrequencies, additionalHeaders, additionalQueryParams)
override fun toString() =
"PayrollPayGroupListParams{individualId=$individualId, payFrequencies=$payFrequencies, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams}"
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayrollPayGroupRetrieveParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayrollPayGroupRetrieveParams.kt
index 283acea6..682fd48f 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayrollPayGroupRetrieveParams.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/PayrollPayGroupRetrieveParams.kt
@@ -183,10 +183,14 @@ private constructor(
return true
}
- return /* spotless:off */ other is PayrollPayGroupRetrieveParams && payGroupId == other.payGroupId && additionalHeaders == other.additionalHeaders && additionalQueryParams == other.additionalQueryParams /* spotless:on */
+ return other is PayrollPayGroupRetrieveParams &&
+ payGroupId == other.payGroupId &&
+ additionalHeaders == other.additionalHeaders &&
+ additionalQueryParams == other.additionalQueryParams
}
- override fun hashCode(): Int = /* spotless:off */ Objects.hash(payGroupId, additionalHeaders, additionalQueryParams) /* spotless:on */
+ override fun hashCode(): Int =
+ Objects.hash(payGroupId, additionalHeaders, additionalQueryParams)
override fun toString() =
"PayrollPayGroupRetrieveParams{payGroupId=$payGroupId, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams}"
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Provider.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Provider.kt
index 1c055bf2..a7a21494 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Provider.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Provider.kt
@@ -1868,13 +1868,26 @@ private constructor(
return true
}
- return /* spotless:off */ other is Accounts && accountName == other.accountName && accountNumber == other.accountNumber && accountType == other.accountType && institutionName == other.institutionName && routingNumber == other.routingNumber && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Accounts &&
+ accountName == other.accountName &&
+ accountNumber == other.accountNumber &&
+ accountType == other.accountType &&
+ institutionName == other.institutionName &&
+ routingNumber == other.routingNumber &&
+ additionalProperties == other.additionalProperties
+ }
+
+ private val hashCode: Int by lazy {
+ Objects.hash(
+ accountName,
+ accountNumber,
+ accountType,
+ institutionName,
+ routingNumber,
+ additionalProperties,
+ )
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(accountName, accountNumber, accountType, institutionName, routingNumber, additionalProperties) }
- /* spotless:on */
-
override fun hashCode(): Int = hashCode
override fun toString() =
@@ -2182,12 +2195,14 @@ private constructor(
return true
}
- return /* spotless:off */ other is Parent && name == other.name && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Parent &&
+ name == other.name &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(name, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(name, additionalProperties)
+ }
override fun hashCode(): Int = hashCode
@@ -2200,12 +2215,15 @@ private constructor(
return true
}
- return /* spotless:off */ other is Departments && name == other.name && parent == other.parent && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Departments &&
+ name == other.name &&
+ parent == other.parent &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(name, parent, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(name, parent, additionalProperties)
+ }
override fun hashCode(): Int = hashCode
@@ -2382,12 +2400,15 @@ private constructor(
return true
}
- return /* spotless:off */ other is Entity && subtype == other.subtype && type == other.type && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Entity &&
+ subtype == other.subtype &&
+ type == other.type &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(subtype, type, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(subtype, type, additionalProperties)
+ }
override fun hashCode(): Int = hashCode
@@ -2710,13 +2731,28 @@ private constructor(
return true
}
- return /* spotless:off */ other is Locations && city == other.city && country == other.country && line1 == other.line1 && line2 == other.line2 && postalCode == other.postalCode && state == other.state && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Locations &&
+ city == other.city &&
+ country == other.country &&
+ line1 == other.line1 &&
+ line2 == other.line2 &&
+ postalCode == other.postalCode &&
+ state == other.state &&
+ additionalProperties == other.additionalProperties
+ }
+
+ private val hashCode: Int by lazy {
+ Objects.hash(
+ city,
+ country,
+ line1,
+ line2,
+ postalCode,
+ state,
+ additionalProperties,
+ )
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(city, country, line1, line2, postalCode, state, additionalProperties) }
- /* spotless:on */
-
override fun hashCode(): Int = hashCode
override fun toString() =
@@ -2728,12 +2764,33 @@ private constructor(
return true
}
- return /* spotless:off */ other is SupportedCompanyFields && id == other.id && accounts == other.accounts && departments == other.departments && ein == other.ein && entity == other.entity && legalName == other.legalName && locations == other.locations && primaryEmail == other.primaryEmail && primaryPhoneNumber == other.primaryPhoneNumber && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is SupportedCompanyFields &&
+ id == other.id &&
+ accounts == other.accounts &&
+ departments == other.departments &&
+ ein == other.ein &&
+ entity == other.entity &&
+ legalName == other.legalName &&
+ locations == other.locations &&
+ primaryEmail == other.primaryEmail &&
+ primaryPhoneNumber == other.primaryPhoneNumber &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(id, accounts, departments, ein, entity, legalName, locations, primaryEmail, primaryPhoneNumber, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(
+ id,
+ accounts,
+ departments,
+ ein,
+ entity,
+ legalName,
+ locations,
+ primaryEmail,
+ primaryPhoneNumber,
+ additionalProperties,
+ )
+ }
override fun hashCode(): Int = hashCode
@@ -3419,12 +3476,12 @@ private constructor(
return true
}
- return /* spotless:off */ other is Manager && id == other.id && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Manager &&
+ id == other.id &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
private val hashCode: Int by lazy { Objects.hash(id, additionalProperties) }
- /* spotless:on */
override fun hashCode(): Int = hashCode
@@ -3437,12 +3494,29 @@ private constructor(
return true
}
- return /* spotless:off */ other is Individuals && id == other.id && department == other.department && firstName == other.firstName && isActive == other.isActive && lastName == other.lastName && manager == other.manager && middleName == other.middleName && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Individuals &&
+ id == other.id &&
+ department == other.department &&
+ firstName == other.firstName &&
+ isActive == other.isActive &&
+ lastName == other.lastName &&
+ manager == other.manager &&
+ middleName == other.middleName &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(id, department, firstName, isActive, lastName, manager, middleName, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(
+ id,
+ department,
+ firstName,
+ isActive,
+ lastName,
+ manager,
+ middleName,
+ additionalProperties,
+ )
+ }
override fun hashCode(): Int = hashCode
@@ -3619,12 +3693,15 @@ private constructor(
return true
}
- return /* spotless:off */ other is Paging && count == other.count && offset == other.offset && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Paging &&
+ count == other.count &&
+ offset == other.offset &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(count, offset, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(count, offset, additionalProperties)
+ }
override fun hashCode(): Int = hashCode
@@ -3637,12 +3714,15 @@ private constructor(
return true
}
- return /* spotless:off */ other is SupportedDirectoryFields && individuals == other.individuals && paging == other.paging && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is SupportedDirectoryFields &&
+ individuals == other.individuals &&
+ paging == other.paging &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(individuals, paging, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(individuals, paging, additionalProperties)
+ }
override fun hashCode(): Int = hashCode
@@ -4531,12 +4611,12 @@ private constructor(
return true
}
- return /* spotless:off */ other is Department && name == other.name && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Department &&
+ name == other.name &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
private val hashCode: Int by lazy { Objects.hash(name, additionalProperties) }
- /* spotless:on */
override fun hashCode(): Int = hashCode
@@ -4715,12 +4795,15 @@ private constructor(
return true
}
- return /* spotless:off */ other is Employment && subtype == other.subtype && type == other.type && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Employment &&
+ subtype == other.subtype &&
+ type == other.type &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(subtype, type, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(subtype, type, additionalProperties)
+ }
override fun hashCode(): Int = hashCode
@@ -4934,12 +5017,16 @@ private constructor(
return true
}
- return /* spotless:off */ other is Income && amount == other.amount && currency == other.currency && unit == other.unit && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Income &&
+ amount == other.amount &&
+ currency == other.currency &&
+ unit == other.unit &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(amount, currency, unit, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(amount, currency, unit, additionalProperties)
+ }
override fun hashCode(): Int = hashCode
@@ -5260,13 +5347,28 @@ private constructor(
return true
}
- return /* spotless:off */ other is Location && city == other.city && country == other.country && line1 == other.line1 && line2 == other.line2 && postalCode == other.postalCode && state == other.state && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Location &&
+ city == other.city &&
+ country == other.country &&
+ line1 == other.line1 &&
+ line2 == other.line2 &&
+ postalCode == other.postalCode &&
+ state == other.state &&
+ additionalProperties == other.additionalProperties
+ }
+
+ private val hashCode: Int by lazy {
+ Objects.hash(
+ city,
+ country,
+ line1,
+ line2,
+ postalCode,
+ state,
+ additionalProperties,
+ )
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(city, country, line1, line2, postalCode, state, additionalProperties) }
- /* spotless:on */
-
override fun hashCode(): Int = hashCode
override fun toString() =
@@ -5405,12 +5507,12 @@ private constructor(
return true
}
- return /* spotless:off */ other is Manager && id == other.id && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Manager &&
+ id == other.id &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
private val hashCode: Int by lazy { Objects.hash(id, additionalProperties) }
- /* spotless:on */
override fun hashCode(): Int = hashCode
@@ -5423,12 +5525,49 @@ private constructor(
return true
}
- return /* spotless:off */ other is SupportedEmploymentFields && id == other.id && classCode == other.classCode && customFields == other.customFields && department == other.department && employment == other.employment && employmentStatus == other.employmentStatus && endDate == other.endDate && firstName == other.firstName && income == other.income && incomeHistory == other.incomeHistory && isActive == other.isActive && lastName == other.lastName && location == other.location && manager == other.manager && middleName == other.middleName && startDate == other.startDate && title == other.title && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is SupportedEmploymentFields &&
+ id == other.id &&
+ classCode == other.classCode &&
+ customFields == other.customFields &&
+ department == other.department &&
+ employment == other.employment &&
+ employmentStatus == other.employmentStatus &&
+ endDate == other.endDate &&
+ firstName == other.firstName &&
+ income == other.income &&
+ incomeHistory == other.incomeHistory &&
+ isActive == other.isActive &&
+ lastName == other.lastName &&
+ location == other.location &&
+ manager == other.manager &&
+ middleName == other.middleName &&
+ startDate == other.startDate &&
+ title == other.title &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(id, classCode, customFields, department, employment, employmentStatus, endDate, firstName, income, incomeHistory, isActive, lastName, location, manager, middleName, startDate, title, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(
+ id,
+ classCode,
+ customFields,
+ department,
+ employment,
+ employmentStatus,
+ endDate,
+ firstName,
+ income,
+ incomeHistory,
+ isActive,
+ lastName,
+ location,
+ manager,
+ middleName,
+ startDate,
+ title,
+ additionalProperties,
+ )
+ }
override fun hashCode(): Int = hashCode
@@ -6187,12 +6326,15 @@ private constructor(
return true
}
- return /* spotless:off */ other is Emails && data == other.data && type == other.type && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Emails &&
+ data == other.data &&
+ type == other.type &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(data, type, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(data, type, additionalProperties)
+ }
override fun hashCode(): Int = hashCode
@@ -6369,12 +6511,15 @@ private constructor(
return true
}
- return /* spotless:off */ other is PhoneNumbers && data == other.data && type == other.type && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is PhoneNumbers &&
+ data == other.data &&
+ type == other.type &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(data, type, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(data, type, additionalProperties)
+ }
override fun hashCode(): Int = hashCode
@@ -6697,13 +6842,28 @@ private constructor(
return true
}
- return /* spotless:off */ other is Residence && city == other.city && country == other.country && line1 == other.line1 && line2 == other.line2 && postalCode == other.postalCode && state == other.state && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Residence &&
+ city == other.city &&
+ country == other.country &&
+ line1 == other.line1 &&
+ line2 == other.line2 &&
+ postalCode == other.postalCode &&
+ state == other.state &&
+ additionalProperties == other.additionalProperties
+ }
+
+ private val hashCode: Int by lazy {
+ Objects.hash(
+ city,
+ country,
+ line1,
+ line2,
+ postalCode,
+ state,
+ additionalProperties,
+ )
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(city, country, line1, line2, postalCode, state, additionalProperties) }
- /* spotless:on */
-
override fun hashCode(): Int = hashCode
override fun toString() =
@@ -6715,12 +6875,41 @@ private constructor(
return true
}
- return /* spotless:off */ other is SupportedIndividualFields && id == other.id && dob == other.dob && emails == other.emails && encryptedSsn == other.encryptedSsn && ethnicity == other.ethnicity && firstName == other.firstName && gender == other.gender && lastName == other.lastName && middleName == other.middleName && phoneNumbers == other.phoneNumbers && preferredName == other.preferredName && residence == other.residence && ssn == other.ssn && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is SupportedIndividualFields &&
+ id == other.id &&
+ dob == other.dob &&
+ emails == other.emails &&
+ encryptedSsn == other.encryptedSsn &&
+ ethnicity == other.ethnicity &&
+ firstName == other.firstName &&
+ gender == other.gender &&
+ lastName == other.lastName &&
+ middleName == other.middleName &&
+ phoneNumbers == other.phoneNumbers &&
+ preferredName == other.preferredName &&
+ residence == other.residence &&
+ ssn == other.ssn &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(id, dob, emails, encryptedSsn, ethnicity, firstName, gender, lastName, middleName, phoneNumbers, preferredName, residence, ssn, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(
+ id,
+ dob,
+ emails,
+ encryptedSsn,
+ ethnicity,
+ firstName,
+ gender,
+ lastName,
+ middleName,
+ phoneNumbers,
+ preferredName,
+ residence,
+ ssn,
+ additionalProperties,
+ )
+ }
override fun hashCode(): Int = hashCode
@@ -6978,12 +7167,17 @@ private constructor(
return true
}
- return /* spotless:off */ other is SupportedPayGroupFields && id == other.id && individualIds == other.individualIds && name == other.name && payFrequencies == other.payFrequencies && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is SupportedPayGroupFields &&
+ id == other.id &&
+ individualIds == other.individualIds &&
+ name == other.name &&
+ payFrequencies == other.payFrequencies &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(id, individualIds, name, payFrequencies, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(id, individualIds, name, payFrequencies, additionalProperties)
+ }
override fun hashCode(): Int = hashCode
@@ -7358,12 +7552,15 @@ private constructor(
return true
}
- return /* spotless:off */ other is Paging && count == other.count && offset == other.offset && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Paging &&
+ count == other.count &&
+ offset == other.offset &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(count, offset, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(count, offset, additionalProperties)
+ }
override fun hashCode(): Int = hashCode
@@ -8114,12 +8311,17 @@ private constructor(
return true
}
- return /* spotless:off */ other is Earnings && amount == other.amount && currency == other.currency && name == other.name && type == other.type && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Earnings &&
+ amount == other.amount &&
+ currency == other.currency &&
+ name == other.name &&
+ type == other.type &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(amount, currency, name, type, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(amount, currency, name, type, additionalProperties)
+ }
override fun hashCode(): Int = hashCode
@@ -8413,12 +8615,18 @@ private constructor(
return true
}
- return /* spotless:off */ other is EmployeeDeductions && amount == other.amount && currency == other.currency && name == other.name && preTax == other.preTax && type == other.type && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is EmployeeDeductions &&
+ amount == other.amount &&
+ currency == other.currency &&
+ name == other.name &&
+ preTax == other.preTax &&
+ type == other.type &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(amount, currency, name, preTax, type, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(amount, currency, name, preTax, type, additionalProperties)
+ }
override fun hashCode(): Int = hashCode
@@ -8643,12 +8851,16 @@ private constructor(
return true
}
- return /* spotless:off */ other is EmployerContributions && amount == other.amount && currency == other.currency && name == other.name && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is EmployerContributions &&
+ amount == other.amount &&
+ currency == other.currency &&
+ name == other.name &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(amount, currency, name, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(amount, currency, name, additionalProperties)
+ }
override fun hashCode(): Int = hashCode
@@ -8942,13 +9154,26 @@ private constructor(
return true
}
- return /* spotless:off */ other is Taxes && amount == other.amount && currency == other.currency && employer == other.employer && name == other.name && type == other.type && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Taxes &&
+ amount == other.amount &&
+ currency == other.currency &&
+ employer == other.employer &&
+ name == other.name &&
+ type == other.type &&
+ additionalProperties == other.additionalProperties
+ }
+
+ private val hashCode: Int by lazy {
+ Objects.hash(
+ amount,
+ currency,
+ employer,
+ name,
+ type,
+ additionalProperties,
+ )
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(amount, currency, employer, name, type, additionalProperties) }
- /* spotless:on */
-
override fun hashCode(): Int = hashCode
override fun toString() =
@@ -8960,13 +9185,36 @@ private constructor(
return true
}
- return /* spotless:off */ other is PayStatements && earnings == other.earnings && employeeDeductions == other.employeeDeductions && employerContributions == other.employerContributions && grossPay == other.grossPay && individualId == other.individualId && netPay == other.netPay && paymentMethod == other.paymentMethod && taxes == other.taxes && totalHours == other.totalHours && type == other.type && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is PayStatements &&
+ earnings == other.earnings &&
+ employeeDeductions == other.employeeDeductions &&
+ employerContributions == other.employerContributions &&
+ grossPay == other.grossPay &&
+ individualId == other.individualId &&
+ netPay == other.netPay &&
+ paymentMethod == other.paymentMethod &&
+ taxes == other.taxes &&
+ totalHours == other.totalHours &&
+ type == other.type &&
+ additionalProperties == other.additionalProperties
+ }
+
+ private val hashCode: Int by lazy {
+ Objects.hash(
+ earnings,
+ employeeDeductions,
+ employerContributions,
+ grossPay,
+ individualId,
+ netPay,
+ paymentMethod,
+ taxes,
+ totalHours,
+ type,
+ additionalProperties,
+ )
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(earnings, employeeDeductions, employerContributions, grossPay, individualId, netPay, paymentMethod, taxes, totalHours, type, additionalProperties) }
- /* spotless:on */
-
override fun hashCode(): Int = hashCode
override fun toString() =
@@ -8978,12 +9226,15 @@ private constructor(
return true
}
- return /* spotless:off */ other is SupportedPayStatementFields && paging == other.paging && payStatements == other.payStatements && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is SupportedPayStatementFields &&
+ paging == other.paging &&
+ payStatements == other.payStatements &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(paging, payStatements, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(paging, payStatements, additionalProperties)
+ }
override fun hashCode(): Int = hashCode
@@ -9728,12 +9979,15 @@ private constructor(
return true
}
- return /* spotless:off */ other is PayPeriod && endDate == other.endDate && startDate == other.startDate && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is PayPeriod &&
+ endDate == other.endDate &&
+ startDate == other.startDate &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(endDate, startDate, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(endDate, startDate, additionalProperties)
+ }
override fun hashCode(): Int = hashCode
@@ -9746,12 +10000,39 @@ private constructor(
return true
}
- return /* spotless:off */ other is SupportedPaymentFields && id == other.id && companyDebit == other.companyDebit && debitDate == other.debitDate && employeeTaxes == other.employeeTaxes && employerTaxes == other.employerTaxes && grossPay == other.grossPay && individualIds == other.individualIds && netPay == other.netPay && payDate == other.payDate && payFrequencies == other.payFrequencies && payGroupIds == other.payGroupIds && payPeriod == other.payPeriod && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is SupportedPaymentFields &&
+ id == other.id &&
+ companyDebit == other.companyDebit &&
+ debitDate == other.debitDate &&
+ employeeTaxes == other.employeeTaxes &&
+ employerTaxes == other.employerTaxes &&
+ grossPay == other.grossPay &&
+ individualIds == other.individualIds &&
+ netPay == other.netPay &&
+ payDate == other.payDate &&
+ payFrequencies == other.payFrequencies &&
+ payGroupIds == other.payGroupIds &&
+ payPeriod == other.payPeriod &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(id, companyDebit, debitDate, employeeTaxes, employerTaxes, grossPay, individualIds, netPay, payDate, payFrequencies, payGroupIds, payPeriod, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(
+ id,
+ companyDebit,
+ debitDate,
+ employeeTaxes,
+ employerTaxes,
+ grossPay,
+ individualIds,
+ netPay,
+ payDate,
+ payFrequencies,
+ payGroupIds,
+ payPeriod,
+ additionalProperties,
+ )
+ }
override fun hashCode(): Int = hashCode
@@ -9764,12 +10045,29 @@ private constructor(
return true
}
- return /* spotless:off */ other is SupportedFields && company == other.company && directory == other.directory && employment == other.employment && individual == other.individual && payGroup == other.payGroup && payStatement == other.payStatement && payment == other.payment && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is SupportedFields &&
+ company == other.company &&
+ directory == other.directory &&
+ employment == other.employment &&
+ individual == other.individual &&
+ payGroup == other.payGroup &&
+ payStatement == other.payStatement &&
+ payment == other.payment &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(company, directory, employment, individual, payGroup, payStatement, payment, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(
+ company,
+ directory,
+ employment,
+ individual,
+ payGroup,
+ payStatement,
+ payment,
+ additionalProperties,
+ )
+ }
override fun hashCode(): Int = hashCode
@@ -9915,7 +10213,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is Type && value == other.value /* spotless:on */
+ return other is Type && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -9928,12 +10226,16 @@ private constructor(
return true
}
- return /* spotless:off */ other is AuthenticationMethod && benefitsSupport == other.benefitsSupport && supportedFields == other.supportedFields && type == other.type && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is AuthenticationMethod &&
+ benefitsSupport == other.benefitsSupport &&
+ supportedFields == other.supportedFields &&
+ type == other.type &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(benefitsSupport, supportedFields, type, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(benefitsSupport, supportedFields, type, additionalProperties)
+ }
override fun hashCode(): Int = hashCode
@@ -9946,12 +10248,35 @@ private constructor(
return true
}
- return /* spotless:off */ other is Provider && id == other.id && authenticationMethods == other.authenticationMethods && beta == other.beta && displayName == other.displayName && icon == other.icon && logo == other.logo && manual == other.manual && mfaRequired == other.mfaRequired && primaryColor == other.primaryColor && products == other.products && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Provider &&
+ id == other.id &&
+ authenticationMethods == other.authenticationMethods &&
+ beta == other.beta &&
+ displayName == other.displayName &&
+ icon == other.icon &&
+ logo == other.logo &&
+ manual == other.manual &&
+ mfaRequired == other.mfaRequired &&
+ primaryColor == other.primaryColor &&
+ products == other.products &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(id, authenticationMethods, beta, displayName, icon, logo, manual, mfaRequired, primaryColor, products, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(
+ id,
+ authenticationMethods,
+ beta,
+ displayName,
+ icon,
+ logo,
+ manual,
+ mfaRequired,
+ primaryColor,
+ products,
+ additionalProperties,
+ )
+ }
override fun hashCode(): Int = hashCode
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ProviderListPage.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ProviderListPage.kt
index 403e725a..ac8d8314 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ProviderListPage.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ProviderListPage.kt
@@ -97,10 +97,13 @@ private constructor(
return true
}
- return /* spotless:off */ other is ProviderListPage && service == other.service && params == other.params && items == other.items /* spotless:on */
+ return other is ProviderListPage &&
+ service == other.service &&
+ params == other.params &&
+ items == other.items
}
- override fun hashCode(): Int = /* spotless:off */ Objects.hash(service, params, items) /* spotless:on */
+ override fun hashCode(): Int = Objects.hash(service, params, items)
override fun toString() = "ProviderListPage{service=$service, params=$params, items=$items}"
}
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ProviderListPageAsync.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ProviderListPageAsync.kt
index 2ed58902..8a02daf9 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ProviderListPageAsync.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ProviderListPageAsync.kt
@@ -110,10 +110,14 @@ private constructor(
return true
}
- return /* spotless:off */ other is ProviderListPageAsync && service == other.service && streamHandlerExecutor == other.streamHandlerExecutor && params == other.params && items == other.items /* spotless:on */
+ return other is ProviderListPageAsync &&
+ service == other.service &&
+ streamHandlerExecutor == other.streamHandlerExecutor &&
+ params == other.params &&
+ items == other.items
}
- override fun hashCode(): Int = /* spotless:off */ Objects.hash(service, streamHandlerExecutor, params, items) /* spotless:on */
+ override fun hashCode(): Int = Objects.hash(service, streamHandlerExecutor, params, items)
override fun toString() =
"ProviderListPageAsync{service=$service, streamHandlerExecutor=$streamHandlerExecutor, params=$params, items=$items}"
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ProviderListParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ProviderListParams.kt
index d7d76719..ae38da52 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ProviderListParams.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/ProviderListParams.kt
@@ -158,10 +158,12 @@ private constructor(
return true
}
- return /* spotless:off */ other is ProviderListParams && additionalHeaders == other.additionalHeaders && additionalQueryParams == other.additionalQueryParams /* spotless:on */
+ return other is ProviderListParams &&
+ additionalHeaders == other.additionalHeaders &&
+ additionalQueryParams == other.additionalQueryParams
}
- override fun hashCode(): Int = /* spotless:off */ Objects.hash(additionalHeaders, additionalQueryParams) /* spotless:on */
+ override fun hashCode(): Int = Objects.hash(additionalHeaders, additionalQueryParams)
override fun toString() =
"ProviderListParams{additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams}"
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/RequestForwardingForwardParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/RequestForwardingForwardParams.kt
index b2655961..9b283b05 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/RequestForwardingForwardParams.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/RequestForwardingForwardParams.kt
@@ -21,9 +21,9 @@ import java.util.Optional
import kotlin.jvm.optionals.getOrNull
/**
- * The Forward API allows you to make direct requests to an employment system. If Finch’s unified
- * API doesn’t have a data model that cleanly fits your needs, then Forward allows you to push or
- * pull data models directly against an integration’s API.
+ * The Forward API allows you to make direct requests to an employment system. If Finch's unified
+ * API doesn't have a data model that cleanly fits your needs, then Forward allows you to push or
+ * pull data models directly against an integration's API.
*/
class RequestForwardingForwardParams
private constructor(
@@ -618,12 +618,18 @@ private constructor(
return true
}
- return /* spotless:off */ other is Body && method == other.method && route == other.route && data == other.data && headers == other.headers && params == other.params && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Body &&
+ method == other.method &&
+ route == other.route &&
+ data == other.data &&
+ headers == other.headers &&
+ params == other.params &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(method, route, data, headers, params, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(method, route, data, headers, params, additionalProperties)
+ }
override fun hashCode(): Int = hashCode
@@ -636,10 +642,13 @@ private constructor(
return true
}
- return /* spotless:off */ other is RequestForwardingForwardParams && body == other.body && additionalHeaders == other.additionalHeaders && additionalQueryParams == other.additionalQueryParams /* spotless:on */
+ return other is RequestForwardingForwardParams &&
+ body == other.body &&
+ additionalHeaders == other.additionalHeaders &&
+ additionalQueryParams == other.additionalQueryParams
}
- override fun hashCode(): Int = /* spotless:off */ Objects.hash(body, additionalHeaders, additionalQueryParams) /* spotless:on */
+ override fun hashCode(): Int = Objects.hash(body, additionalHeaders, additionalQueryParams)
override fun toString() =
"RequestForwardingForwardParams{body=$body, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams}"
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/RequestForwardingForwardResponse.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/RequestForwardingForwardResponse.kt
index 975d9d29..3ba2bef7 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/RequestForwardingForwardResponse.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/RequestForwardingForwardResponse.kt
@@ -35,9 +35,9 @@ private constructor(
) : this(data, headers, request, statusCode, mutableMapOf())
/**
- * A string representation of the HTTP response body of the forwarded request’s response
- * received from the underlying integration’s API. This field may be null in the case where the
- * upstream system’s response is empty.
+ * A string representation of the HTTP response body of the forwarded request's response
+ * received from the underlying integration's API. This field may be null in the case where the
+ * upstream system's response is empty.
*
* @throws FinchInvalidDataException if the JSON field has an unexpected type (e.g. if the
* server responded with an unexpected value).
@@ -45,8 +45,8 @@ private constructor(
fun data(): Optional = data.getOptional("data")
/**
- * The HTTP headers of the forwarded request’s response, exactly as received from the underlying
- * integration’s API.
+ * The HTTP headers of the forwarded request's response, exactly as received from the underlying
+ * integration's API.
*/
@JsonProperty("headers") @ExcludeMissing fun _headers(): JsonValue = headers
@@ -59,8 +59,8 @@ private constructor(
fun request(): Request = request.getRequired("request")
/**
- * The HTTP status code of the forwarded request’s response, exactly received from the
- * underlying integration’s API. This value will be returned as an integer.
+ * The HTTP status code of the forwarded request's response, exactly received from the
+ * underlying integration's API. This value will be returned as an integer.
*
* @throws FinchInvalidDataException if the JSON field has an unexpected type or is unexpectedly
* missing or null (e.g. if the server responded with an unexpected value).
@@ -138,9 +138,9 @@ private constructor(
}
/**
- * A string representation of the HTTP response body of the forwarded request’s response
- * received from the underlying integration’s API. This field may be null in the case where
- * the upstream system’s response is empty.
+ * A string representation of the HTTP response body of the forwarded request's response
+ * received from the underlying integration's API. This field may be null in the case where
+ * the upstream system's response is empty.
*/
fun data(data: String?) = data(JsonField.ofNullable(data))
@@ -156,8 +156,8 @@ private constructor(
fun data(data: JsonField) = apply { this.data = data }
/**
- * The HTTP headers of the forwarded request’s response, exactly as received from the
- * underlying integration’s API.
+ * The HTTP headers of the forwarded request's response, exactly as received from the
+ * underlying integration's API.
*/
fun headers(headers: JsonValue) = apply { this.headers = headers }
@@ -176,8 +176,8 @@ private constructor(
fun request(request: JsonField) = apply { this.request = request }
/**
- * The HTTP status code of the forwarded request’s response, exactly received from the
- * underlying integration’s API. This value will be returned as an integer.
+ * The HTTP status code of the forwarded request's response, exactly received from the
+ * underlying integration's API. This value will be returned as an integer.
*/
fun statusCode(statusCode: Long) = statusCode(JsonField.of(statusCode))
@@ -538,12 +538,18 @@ private constructor(
return true
}
- return /* spotless:off */ other is Request && data == other.data && headers == other.headers && method == other.method && params == other.params && route == other.route && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Request &&
+ data == other.data &&
+ headers == other.headers &&
+ method == other.method &&
+ params == other.params &&
+ route == other.route &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(data, headers, method, params, route, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(data, headers, method, params, route, additionalProperties)
+ }
override fun hashCode(): Int = hashCode
@@ -556,12 +562,17 @@ private constructor(
return true
}
- return /* spotless:off */ other is RequestForwardingForwardResponse && data == other.data && headers == other.headers && request == other.request && statusCode == other.statusCode && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is RequestForwardingForwardResponse &&
+ data == other.data &&
+ headers == other.headers &&
+ request == other.request &&
+ statusCode == other.statusCode &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(data, headers, request, statusCode, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(data, headers, request, statusCode, additionalProperties)
+ }
override fun hashCode(): Int = hashCode
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/RuleCreateResponse.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/RuleCreateResponse.kt
index c2326d4a..63d2b949 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/RuleCreateResponse.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/RuleCreateResponse.kt
@@ -712,12 +712,10 @@ private constructor(
return true
}
- return /* spotless:off */ other is Metadata && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Metadata && additionalProperties == other.additionalProperties
}
- /* spotless:off */
private val hashCode: Int by lazy { Objects.hash(additionalProperties) }
- /* spotless:on */
override fun hashCode(): Int = hashCode
@@ -729,12 +727,12 @@ private constructor(
return true
}
- return /* spotless:off */ other is Attributes && metadata == other.metadata && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Attributes &&
+ metadata == other.metadata &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
private val hashCode: Int by lazy { Objects.hash(metadata, additionalProperties) }
- /* spotless:on */
override fun hashCode(): Int = hashCode
@@ -1052,7 +1050,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is Operator && value == other.value /* spotless:on */
+ return other is Operator && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -1065,12 +1063,16 @@ private constructor(
return true
}
- return /* spotless:off */ other is Condition && field == other.field && operator == other.operator && value == other.value && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Condition &&
+ field == other.field &&
+ operator == other.operator &&
+ value == other.value &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(field, operator, value, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(field, operator, value, additionalProperties)
+ }
override fun hashCode(): Int = hashCode
@@ -1191,7 +1193,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is EntityType && value == other.value /* spotless:on */
+ return other is EntityType && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -1204,12 +1206,33 @@ private constructor(
return true
}
- return /* spotless:off */ other is RuleCreateResponse && id == other.id && attributes == other.attributes && conditions == other.conditions && createdAt == other.createdAt && effectiveEndDate == other.effectiveEndDate && effectiveStartDate == other.effectiveStartDate && entityType == other.entityType && priority == other.priority && updatedAt == other.updatedAt && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is RuleCreateResponse &&
+ id == other.id &&
+ attributes == other.attributes &&
+ conditions == other.conditions &&
+ createdAt == other.createdAt &&
+ effectiveEndDate == other.effectiveEndDate &&
+ effectiveStartDate == other.effectiveStartDate &&
+ entityType == other.entityType &&
+ priority == other.priority &&
+ updatedAt == other.updatedAt &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(id, attributes, conditions, createdAt, effectiveEndDate, effectiveStartDate, entityType, priority, updatedAt, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(
+ id,
+ attributes,
+ conditions,
+ createdAt,
+ effectiveEndDate,
+ effectiveStartDate,
+ entityType,
+ priority,
+ updatedAt,
+ additionalProperties,
+ )
+ }
override fun hashCode(): Int = hashCode
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/RuleDeleteResponse.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/RuleDeleteResponse.kt
index 00f8fca9..65c5bef8 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/RuleDeleteResponse.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/RuleDeleteResponse.kt
@@ -751,12 +751,10 @@ private constructor(
return true
}
- return /* spotless:off */ other is Metadata && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Metadata && additionalProperties == other.additionalProperties
}
- /* spotless:off */
private val hashCode: Int by lazy { Objects.hash(additionalProperties) }
- /* spotless:on */
override fun hashCode(): Int = hashCode
@@ -768,12 +766,12 @@ private constructor(
return true
}
- return /* spotless:off */ other is Attributes && metadata == other.metadata && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Attributes &&
+ metadata == other.metadata &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
private val hashCode: Int by lazy { Objects.hash(metadata, additionalProperties) }
- /* spotless:on */
override fun hashCode(): Int = hashCode
@@ -1091,7 +1089,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is Operator && value == other.value /* spotless:on */
+ return other is Operator && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -1104,12 +1102,16 @@ private constructor(
return true
}
- return /* spotless:off */ other is Condition && field == other.field && operator == other.operator && value == other.value && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Condition &&
+ field == other.field &&
+ operator == other.operator &&
+ value == other.value &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(field, operator, value, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(field, operator, value, additionalProperties)
+ }
override fun hashCode(): Int = hashCode
@@ -1230,7 +1232,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is EntityType && value == other.value /* spotless:on */
+ return other is EntityType && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -1243,12 +1245,35 @@ private constructor(
return true
}
- return /* spotless:off */ other is RuleDeleteResponse && id == other.id && attributes == other.attributes && conditions == other.conditions && createdAt == other.createdAt && deletedAt == other.deletedAt && effectiveEndDate == other.effectiveEndDate && effectiveStartDate == other.effectiveStartDate && entityType == other.entityType && priority == other.priority && updatedAt == other.updatedAt && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is RuleDeleteResponse &&
+ id == other.id &&
+ attributes == other.attributes &&
+ conditions == other.conditions &&
+ createdAt == other.createdAt &&
+ deletedAt == other.deletedAt &&
+ effectiveEndDate == other.effectiveEndDate &&
+ effectiveStartDate == other.effectiveStartDate &&
+ entityType == other.entityType &&
+ priority == other.priority &&
+ updatedAt == other.updatedAt &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(id, attributes, conditions, createdAt, deletedAt, effectiveEndDate, effectiveStartDate, entityType, priority, updatedAt, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(
+ id,
+ attributes,
+ conditions,
+ createdAt,
+ deletedAt,
+ effectiveEndDate,
+ effectiveStartDate,
+ entityType,
+ priority,
+ updatedAt,
+ additionalProperties,
+ )
+ }
override fun hashCode(): Int = hashCode
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/RuleListResponse.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/RuleListResponse.kt
index 512f1b09..af31eea7 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/RuleListResponse.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/RuleListResponse.kt
@@ -712,12 +712,10 @@ private constructor(
return true
}
- return /* spotless:off */ other is Metadata && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Metadata && additionalProperties == other.additionalProperties
}
- /* spotless:off */
private val hashCode: Int by lazy { Objects.hash(additionalProperties) }
- /* spotless:on */
override fun hashCode(): Int = hashCode
@@ -729,12 +727,12 @@ private constructor(
return true
}
- return /* spotless:off */ other is Attributes && metadata == other.metadata && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Attributes &&
+ metadata == other.metadata &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
private val hashCode: Int by lazy { Objects.hash(metadata, additionalProperties) }
- /* spotless:on */
override fun hashCode(): Int = hashCode
@@ -1052,7 +1050,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is Operator && value == other.value /* spotless:on */
+ return other is Operator && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -1065,12 +1063,16 @@ private constructor(
return true
}
- return /* spotless:off */ other is Condition && field == other.field && operator == other.operator && value == other.value && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Condition &&
+ field == other.field &&
+ operator == other.operator &&
+ value == other.value &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(field, operator, value, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(field, operator, value, additionalProperties)
+ }
override fun hashCode(): Int = hashCode
@@ -1191,7 +1193,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is EntityType && value == other.value /* spotless:on */
+ return other is EntityType && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -1204,12 +1206,33 @@ private constructor(
return true
}
- return /* spotless:off */ other is RuleListResponse && id == other.id && attributes == other.attributes && conditions == other.conditions && createdAt == other.createdAt && effectiveEndDate == other.effectiveEndDate && effectiveStartDate == other.effectiveStartDate && entityType == other.entityType && priority == other.priority && updatedAt == other.updatedAt && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is RuleListResponse &&
+ id == other.id &&
+ attributes == other.attributes &&
+ conditions == other.conditions &&
+ createdAt == other.createdAt &&
+ effectiveEndDate == other.effectiveEndDate &&
+ effectiveStartDate == other.effectiveStartDate &&
+ entityType == other.entityType &&
+ priority == other.priority &&
+ updatedAt == other.updatedAt &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(id, attributes, conditions, createdAt, effectiveEndDate, effectiveStartDate, entityType, priority, updatedAt, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(
+ id,
+ attributes,
+ conditions,
+ createdAt,
+ effectiveEndDate,
+ effectiveStartDate,
+ entityType,
+ priority,
+ updatedAt,
+ additionalProperties,
+ )
+ }
override fun hashCode(): Int = hashCode
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/RuleUpdateResponse.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/RuleUpdateResponse.kt
index d8735c62..25f91bf6 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/RuleUpdateResponse.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/RuleUpdateResponse.kt
@@ -712,12 +712,10 @@ private constructor(
return true
}
- return /* spotless:off */ other is Metadata && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Metadata && additionalProperties == other.additionalProperties
}
- /* spotless:off */
private val hashCode: Int by lazy { Objects.hash(additionalProperties) }
- /* spotless:on */
override fun hashCode(): Int = hashCode
@@ -729,12 +727,12 @@ private constructor(
return true
}
- return /* spotless:off */ other is Attributes && metadata == other.metadata && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Attributes &&
+ metadata == other.metadata &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
private val hashCode: Int by lazy { Objects.hash(metadata, additionalProperties) }
- /* spotless:on */
override fun hashCode(): Int = hashCode
@@ -1052,7 +1050,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is Operator && value == other.value /* spotless:on */
+ return other is Operator && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -1065,12 +1063,16 @@ private constructor(
return true
}
- return /* spotless:off */ other is Condition && field == other.field && operator == other.operator && value == other.value && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Condition &&
+ field == other.field &&
+ operator == other.operator &&
+ value == other.value &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(field, operator, value, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(field, operator, value, additionalProperties)
+ }
override fun hashCode(): Int = hashCode
@@ -1191,7 +1193,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is EntityType && value == other.value /* spotless:on */
+ return other is EntityType && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -1204,12 +1206,33 @@ private constructor(
return true
}
- return /* spotless:off */ other is RuleUpdateResponse && id == other.id && attributes == other.attributes && conditions == other.conditions && createdAt == other.createdAt && effectiveEndDate == other.effectiveEndDate && effectiveStartDate == other.effectiveStartDate && entityType == other.entityType && priority == other.priority && updatedAt == other.updatedAt && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is RuleUpdateResponse &&
+ id == other.id &&
+ attributes == other.attributes &&
+ conditions == other.conditions &&
+ createdAt == other.createdAt &&
+ effectiveEndDate == other.effectiveEndDate &&
+ effectiveStartDate == other.effectiveStartDate &&
+ entityType == other.entityType &&
+ priority == other.priority &&
+ updatedAt == other.updatedAt &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(id, attributes, conditions, createdAt, effectiveEndDate, effectiveStartDate, entityType, priority, updatedAt, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(
+ id,
+ attributes,
+ conditions,
+ createdAt,
+ effectiveEndDate,
+ effectiveStartDate,
+ entityType,
+ priority,
+ updatedAt,
+ additionalProperties,
+ )
+ }
override fun hashCode(): Int = hashCode
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxCompanyUpdateParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxCompanyUpdateParams.kt
index 98835732..fd507a89 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxCompanyUpdateParams.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxCompanyUpdateParams.kt
@@ -1026,12 +1026,31 @@ private constructor(
return true
}
- return /* spotless:off */ other is CompanyWithoutId && accounts == other.accounts && departments == other.departments && ein == other.ein && entity == other.entity && legalName == other.legalName && locations == other.locations && primaryEmail == other.primaryEmail && primaryPhoneNumber == other.primaryPhoneNumber && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is CompanyWithoutId &&
+ accounts == other.accounts &&
+ departments == other.departments &&
+ ein == other.ein &&
+ entity == other.entity &&
+ legalName == other.legalName &&
+ locations == other.locations &&
+ primaryEmail == other.primaryEmail &&
+ primaryPhoneNumber == other.primaryPhoneNumber &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(accounts, departments, ein, entity, legalName, locations, primaryEmail, primaryPhoneNumber, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(
+ accounts,
+ departments,
+ ein,
+ entity,
+ legalName,
+ locations,
+ primaryEmail,
+ primaryPhoneNumber,
+ additionalProperties,
+ )
+ }
override fun hashCode(): Int = hashCode
@@ -1493,7 +1512,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is AccountType && value == other.value /* spotless:on */
+ return other is AccountType && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -1506,12 +1525,25 @@ private constructor(
return true
}
- return /* spotless:off */ other is Account && accountName == other.accountName && accountNumber == other.accountNumber && accountType == other.accountType && institutionName == other.institutionName && routingNumber == other.routingNumber && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Account &&
+ accountName == other.accountName &&
+ accountNumber == other.accountNumber &&
+ accountType == other.accountType &&
+ institutionName == other.institutionName &&
+ routingNumber == other.routingNumber &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(accountName, accountNumber, accountType, institutionName, routingNumber, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(
+ accountName,
+ accountNumber,
+ accountType,
+ institutionName,
+ routingNumber,
+ additionalProperties,
+ )
+ }
override fun hashCode(): Int = hashCode
@@ -1816,12 +1848,12 @@ private constructor(
return true
}
- return /* spotless:off */ other is Parent && name == other.name && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Parent &&
+ name == other.name &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
private val hashCode: Int by lazy { Objects.hash(name, additionalProperties) }
- /* spotless:on */
override fun hashCode(): Int = hashCode
@@ -1834,12 +1866,13 @@ private constructor(
return true
}
- return /* spotless:off */ other is Department && name == other.name && parent == other.parent && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Department &&
+ name == other.name &&
+ parent == other.parent &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
private val hashCode: Int by lazy { Objects.hash(name, parent, additionalProperties) }
- /* spotless:on */
override fun hashCode(): Int = hashCode
@@ -2140,7 +2173,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is Subtype && value == other.value /* spotless:on */
+ return other is Subtype && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -2298,7 +2331,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is Type && value == other.value /* spotless:on */
+ return other is Type && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -2311,12 +2344,13 @@ private constructor(
return true
}
- return /* spotless:off */ other is Entity && subtype == other.subtype && type == other.type && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Entity &&
+ subtype == other.subtype &&
+ type == other.type &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
private val hashCode: Int by lazy { Objects.hash(subtype, type, additionalProperties) }
- /* spotless:on */
override fun hashCode(): Int = hashCode
@@ -2329,10 +2363,13 @@ private constructor(
return true
}
- return /* spotless:off */ other is SandboxCompanyUpdateParams && body == other.body && additionalHeaders == other.additionalHeaders && additionalQueryParams == other.additionalQueryParams /* spotless:on */
+ return other is SandboxCompanyUpdateParams &&
+ body == other.body &&
+ additionalHeaders == other.additionalHeaders &&
+ additionalQueryParams == other.additionalQueryParams
}
- override fun hashCode(): Int = /* spotless:off */ Objects.hash(body, additionalHeaders, additionalQueryParams) /* spotless:on */
+ override fun hashCode(): Int = Objects.hash(body, additionalHeaders, additionalQueryParams)
override fun toString() =
"SandboxCompanyUpdateParams{body=$body, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams}"
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxConnectionAccountCreateParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxConnectionAccountCreateParams.kt
index e1a9ad67..e7b78e6c 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxConnectionAccountCreateParams.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxConnectionAccountCreateParams.kt
@@ -629,12 +629,17 @@ private constructor(
return true
}
- return /* spotless:off */ other is Body && companyId == other.companyId && providerId == other.providerId && authenticationType == other.authenticationType && products == other.products && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Body &&
+ companyId == other.companyId &&
+ providerId == other.providerId &&
+ authenticationType == other.authenticationType &&
+ products == other.products &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(companyId, providerId, authenticationType, products, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(companyId, providerId, authenticationType, products, additionalProperties)
+ }
override fun hashCode(): Int = hashCode
@@ -775,7 +780,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is AuthenticationType && value == other.value /* spotless:on */
+ return other is AuthenticationType && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -788,10 +793,13 @@ private constructor(
return true
}
- return /* spotless:off */ other is SandboxConnectionAccountCreateParams && body == other.body && additionalHeaders == other.additionalHeaders && additionalQueryParams == other.additionalQueryParams /* spotless:on */
+ return other is SandboxConnectionAccountCreateParams &&
+ body == other.body &&
+ additionalHeaders == other.additionalHeaders &&
+ additionalQueryParams == other.additionalQueryParams
}
- override fun hashCode(): Int = /* spotless:off */ Objects.hash(body, additionalHeaders, additionalQueryParams) /* spotless:on */
+ override fun hashCode(): Int = Objects.hash(body, additionalHeaders, additionalQueryParams)
override fun toString() =
"SandboxConnectionAccountCreateParams{body=$body, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams}"
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxConnectionAccountUpdateParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxConnectionAccountUpdateParams.kt
index 4fa41642..f380d654 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxConnectionAccountUpdateParams.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxConnectionAccountUpdateParams.kt
@@ -376,12 +376,12 @@ private constructor(
return true
}
- return /* spotless:off */ other is Body && connectionStatus == other.connectionStatus && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Body &&
+ connectionStatus == other.connectionStatus &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
private val hashCode: Int by lazy { Objects.hash(connectionStatus, additionalProperties) }
- /* spotless:on */
override fun hashCode(): Int = hashCode
@@ -394,10 +394,13 @@ private constructor(
return true
}
- return /* spotless:off */ other is SandboxConnectionAccountUpdateParams && body == other.body && additionalHeaders == other.additionalHeaders && additionalQueryParams == other.additionalQueryParams /* spotless:on */
+ return other is SandboxConnectionAccountUpdateParams &&
+ body == other.body &&
+ additionalHeaders == other.additionalHeaders &&
+ additionalQueryParams == other.additionalQueryParams
}
- override fun hashCode(): Int = /* spotless:off */ Objects.hash(body, additionalHeaders, additionalQueryParams) /* spotless:on */
+ override fun hashCode(): Int = Objects.hash(body, additionalHeaders, additionalQueryParams)
override fun toString() =
"SandboxConnectionAccountUpdateParams{body=$body, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams}"
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxConnectionCreateParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxConnectionCreateParams.kt
index e364914c..05e0ebdd 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxConnectionCreateParams.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxConnectionCreateParams.kt
@@ -631,13 +631,24 @@ private constructor(
return true
}
- return /* spotless:off */ other is Body && providerId == other.providerId && authenticationType == other.authenticationType && employeeSize == other.employeeSize && products == other.products && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Body &&
+ providerId == other.providerId &&
+ authenticationType == other.authenticationType &&
+ employeeSize == other.employeeSize &&
+ products == other.products &&
+ additionalProperties == other.additionalProperties
+ }
+
+ private val hashCode: Int by lazy {
+ Objects.hash(
+ providerId,
+ authenticationType,
+ employeeSize,
+ products,
+ additionalProperties,
+ )
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(providerId, authenticationType, employeeSize, products, additionalProperties) }
- /* spotless:on */
-
override fun hashCode(): Int = hashCode
override fun toString() =
@@ -777,7 +788,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is AuthenticationType && value == other.value /* spotless:on */
+ return other is AuthenticationType && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -790,10 +801,13 @@ private constructor(
return true
}
- return /* spotless:off */ other is SandboxConnectionCreateParams && body == other.body && additionalHeaders == other.additionalHeaders && additionalQueryParams == other.additionalQueryParams /* spotless:on */
+ return other is SandboxConnectionCreateParams &&
+ body == other.body &&
+ additionalHeaders == other.additionalHeaders &&
+ additionalQueryParams == other.additionalQueryParams
}
- override fun hashCode(): Int = /* spotless:off */ Objects.hash(body, additionalHeaders, additionalQueryParams) /* spotless:on */
+ override fun hashCode(): Int = Objects.hash(body, additionalHeaders, additionalQueryParams)
override fun toString() =
"SandboxConnectionCreateParams{body=$body, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams}"
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxDirectoryCreateParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxDirectoryCreateParams.kt
index 5dc978e5..85d38ba1 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxDirectoryCreateParams.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxDirectoryCreateParams.kt
@@ -1513,12 +1513,13 @@ private constructor(
return true
}
- return /* spotless:off */ other is CustomField && name == other.name && value == other.value && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is CustomField &&
+ name == other.name &&
+ value == other.value &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
private val hashCode: Int by lazy { Objects.hash(name, value, additionalProperties) }
- /* spotless:on */
override fun hashCode(): Int = hashCode
@@ -1660,12 +1661,12 @@ private constructor(
return true
}
- return /* spotless:off */ other is Department && name == other.name && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Department &&
+ name == other.name &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
private val hashCode: Int by lazy { Objects.hash(name, additionalProperties) }
- /* spotless:on */
override fun hashCode(): Int = hashCode
@@ -1952,7 +1953,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is Type && value == other.value /* spotless:on */
+ return other is Type && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -1965,12 +1966,13 @@ private constructor(
return true
}
- return /* spotless:off */ other is Email && data == other.data && type == other.type && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Email &&
+ data == other.data &&
+ type == other.type &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
private val hashCode: Int by lazy { Objects.hash(data, type, additionalProperties) }
- /* spotless:on */
override fun hashCode(): Int = hashCode
@@ -2303,7 +2305,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is Subtype && value == other.value /* spotless:on */
+ return other is Subtype && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -2434,7 +2436,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is Type && value == other.value /* spotless:on */
+ return other is Type && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -2447,12 +2449,13 @@ private constructor(
return true
}
- return /* spotless:off */ other is Employment && subtype == other.subtype && type == other.type && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Employment &&
+ subtype == other.subtype &&
+ type == other.type &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
private val hashCode: Int by lazy { Objects.hash(subtype, type, additionalProperties) }
- /* spotless:on */
override fun hashCode(): Int = hashCode
@@ -2619,7 +2622,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is EmploymentStatus && value == other.value /* spotless:on */
+ return other is EmploymentStatus && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -2789,7 +2792,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is Ethnicity && value == other.value /* spotless:on */
+ return other is Ethnicity && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -2931,7 +2934,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is Gender && value == other.value /* spotless:on */
+ return other is Gender && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -3070,12 +3073,12 @@ private constructor(
return true
}
- return /* spotless:off */ other is Manager && id == other.id && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Manager &&
+ id == other.id &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
private val hashCode: Int by lazy { Objects.hash(id, additionalProperties) }
- /* spotless:on */
override fun hashCode(): Int = hashCode
@@ -3365,7 +3368,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is Type && value == other.value /* spotless:on */
+ return other is Type && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -3378,12 +3381,13 @@ private constructor(
return true
}
- return /* spotless:off */ other is PhoneNumber && data == other.data && type == other.type && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is PhoneNumber &&
+ data == other.data &&
+ type == other.type &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
private val hashCode: Int by lazy { Objects.hash(data, type, additionalProperties) }
- /* spotless:on */
override fun hashCode(): Int = hashCode
@@ -3396,12 +3400,67 @@ private constructor(
return true
}
- return /* spotless:off */ other is IndividualOrEmployment && classCode == other.classCode && customFields == other.customFields && department == other.department && dob == other.dob && emails == other.emails && employment == other.employment && employmentStatus == other.employmentStatus && encryptedSsn == other.encryptedSsn && endDate == other.endDate && ethnicity == other.ethnicity && firstName == other.firstName && gender == other.gender && income == other.income && incomeHistory == other.incomeHistory && isActive == other.isActive && lastName == other.lastName && latestRehireDate == other.latestRehireDate && location == other.location && manager == other.manager && middleName == other.middleName && phoneNumbers == other.phoneNumbers && preferredName == other.preferredName && residence == other.residence && sourceId == other.sourceId && ssn == other.ssn && startDate == other.startDate && title == other.title /* spotless:on */
+ return other is IndividualOrEmployment &&
+ classCode == other.classCode &&
+ customFields == other.customFields &&
+ department == other.department &&
+ dob == other.dob &&
+ emails == other.emails &&
+ employment == other.employment &&
+ employmentStatus == other.employmentStatus &&
+ encryptedSsn == other.encryptedSsn &&
+ endDate == other.endDate &&
+ ethnicity == other.ethnicity &&
+ firstName == other.firstName &&
+ gender == other.gender &&
+ income == other.income &&
+ incomeHistory == other.incomeHistory &&
+ isActive == other.isActive &&
+ lastName == other.lastName &&
+ latestRehireDate == other.latestRehireDate &&
+ location == other.location &&
+ manager == other.manager &&
+ middleName == other.middleName &&
+ phoneNumbers == other.phoneNumbers &&
+ preferredName == other.preferredName &&
+ residence == other.residence &&
+ sourceId == other.sourceId &&
+ ssn == other.ssn &&
+ startDate == other.startDate &&
+ title == other.title
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(classCode, customFields, department, dob, emails, employment, employmentStatus, encryptedSsn, endDate, ethnicity, firstName, gender, income, incomeHistory, isActive, lastName, latestRehireDate, location, manager, middleName, phoneNumbers, preferredName, residence, sourceId, ssn, startDate, title) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(
+ classCode,
+ customFields,
+ department,
+ dob,
+ emails,
+ employment,
+ employmentStatus,
+ encryptedSsn,
+ endDate,
+ ethnicity,
+ firstName,
+ gender,
+ income,
+ incomeHistory,
+ isActive,
+ lastName,
+ latestRehireDate,
+ location,
+ manager,
+ middleName,
+ phoneNumbers,
+ preferredName,
+ residence,
+ sourceId,
+ ssn,
+ startDate,
+ title,
+ )
+ }
override fun hashCode(): Int = hashCode
@@ -3414,10 +3473,13 @@ private constructor(
return true
}
- return /* spotless:off */ other is SandboxDirectoryCreateParams && body == other.body && additionalHeaders == other.additionalHeaders && additionalQueryParams == other.additionalQueryParams /* spotless:on */
+ return other is SandboxDirectoryCreateParams &&
+ body == other.body &&
+ additionalHeaders == other.additionalHeaders &&
+ additionalQueryParams == other.additionalQueryParams
}
- override fun hashCode(): Int = /* spotless:off */ Objects.hash(body, additionalHeaders, additionalQueryParams) /* spotless:on */
+ override fun hashCode(): Int = Objects.hash(body, additionalHeaders, additionalQueryParams)
override fun toString() =
"SandboxDirectoryCreateParams{body=$body, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams}"
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxEmploymentUpdateParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxEmploymentUpdateParams.kt
index 8ea4defe..1adb5a13 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxEmploymentUpdateParams.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxEmploymentUpdateParams.kt
@@ -1702,13 +1702,52 @@ private constructor(
return true
}
- return /* spotless:off */ other is EmploymentWithoutId && classCode == other.classCode && customFields == other.customFields && department == other.department && employment == other.employment && employmentStatus == other.employmentStatus && endDate == other.endDate && firstName == other.firstName && income == other.income && incomeHistory == other.incomeHistory && isActive == other.isActive && lastName == other.lastName && latestRehireDate == other.latestRehireDate && location == other.location && manager == other.manager && middleName == other.middleName && sourceId == other.sourceId && startDate == other.startDate && title == other.title && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is EmploymentWithoutId &&
+ classCode == other.classCode &&
+ customFields == other.customFields &&
+ department == other.department &&
+ employment == other.employment &&
+ employmentStatus == other.employmentStatus &&
+ endDate == other.endDate &&
+ firstName == other.firstName &&
+ income == other.income &&
+ incomeHistory == other.incomeHistory &&
+ isActive == other.isActive &&
+ lastName == other.lastName &&
+ latestRehireDate == other.latestRehireDate &&
+ location == other.location &&
+ manager == other.manager &&
+ middleName == other.middleName &&
+ sourceId == other.sourceId &&
+ startDate == other.startDate &&
+ title == other.title &&
+ additionalProperties == other.additionalProperties
+ }
+
+ private val hashCode: Int by lazy {
+ Objects.hash(
+ classCode,
+ customFields,
+ department,
+ employment,
+ employmentStatus,
+ endDate,
+ firstName,
+ income,
+ incomeHistory,
+ isActive,
+ lastName,
+ latestRehireDate,
+ location,
+ manager,
+ middleName,
+ sourceId,
+ startDate,
+ title,
+ additionalProperties,
+ )
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(classCode, customFields, department, employment, employmentStatus, endDate, firstName, income, incomeHistory, isActive, lastName, latestRehireDate, location, manager, middleName, sourceId, startDate, title, additionalProperties) }
- /* spotless:on */
-
override fun hashCode(): Int = hashCode
override fun toString() =
@@ -1850,12 +1889,13 @@ private constructor(
return true
}
- return /* spotless:off */ other is CustomField && name == other.name && value == other.value && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is CustomField &&
+ name == other.name &&
+ value == other.value &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
private val hashCode: Int by lazy { Objects.hash(name, value, additionalProperties) }
- /* spotless:on */
override fun hashCode(): Int = hashCode
@@ -1994,12 +2034,12 @@ private constructor(
return true
}
- return /* spotless:off */ other is Department && name == other.name && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Department &&
+ name == other.name &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
private val hashCode: Int by lazy { Objects.hash(name, additionalProperties) }
- /* spotless:on */
override fun hashCode(): Int = hashCode
@@ -2325,7 +2365,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is Subtype && value == other.value /* spotless:on */
+ return other is Subtype && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -2453,7 +2493,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is Type && value == other.value /* spotless:on */
+ return other is Type && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -2466,12 +2506,13 @@ private constructor(
return true
}
- return /* spotless:off */ other is Employment && subtype == other.subtype && type == other.type && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Employment &&
+ subtype == other.subtype &&
+ type == other.type &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
private val hashCode: Int by lazy { Objects.hash(subtype, type, additionalProperties) }
- /* spotless:on */
override fun hashCode(): Int = hashCode
@@ -2633,7 +2674,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is EmploymentStatus && value == other.value /* spotless:on */
+ return other is EmploymentStatus && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -2769,12 +2810,12 @@ private constructor(
return true
}
- return /* spotless:off */ other is Manager && id == other.id && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Manager &&
+ id == other.id &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
private val hashCode: Int by lazy { Objects.hash(id, additionalProperties) }
- /* spotless:on */
override fun hashCode(): Int = hashCode
@@ -2786,10 +2827,15 @@ private constructor(
return true
}
- return /* spotless:off */ other is SandboxEmploymentUpdateParams && individualId == other.individualId && body == other.body && additionalHeaders == other.additionalHeaders && additionalQueryParams == other.additionalQueryParams /* spotless:on */
+ return other is SandboxEmploymentUpdateParams &&
+ individualId == other.individualId &&
+ body == other.body &&
+ additionalHeaders == other.additionalHeaders &&
+ additionalQueryParams == other.additionalQueryParams
}
- override fun hashCode(): Int = /* spotless:off */ Objects.hash(individualId, body, additionalHeaders, additionalQueryParams) /* spotless:on */
+ override fun hashCode(): Int =
+ Objects.hash(individualId, body, additionalHeaders, additionalQueryParams)
override fun toString() =
"SandboxEmploymentUpdateParams{individualId=$individualId, body=$body, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams}"
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxIndividualUpdateParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxIndividualUpdateParams.kt
index 5d950cd0..9c2d5143 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxIndividualUpdateParams.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxIndividualUpdateParams.kt
@@ -1238,12 +1238,39 @@ private constructor(
return true
}
- return /* spotless:off */ other is IndividualWithoutId && dob == other.dob && emails == other.emails && encryptedSsn == other.encryptedSsn && ethnicity == other.ethnicity && firstName == other.firstName && gender == other.gender && lastName == other.lastName && middleName == other.middleName && phoneNumbers == other.phoneNumbers && preferredName == other.preferredName && residence == other.residence && ssn == other.ssn && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is IndividualWithoutId &&
+ dob == other.dob &&
+ emails == other.emails &&
+ encryptedSsn == other.encryptedSsn &&
+ ethnicity == other.ethnicity &&
+ firstName == other.firstName &&
+ gender == other.gender &&
+ lastName == other.lastName &&
+ middleName == other.middleName &&
+ phoneNumbers == other.phoneNumbers &&
+ preferredName == other.preferredName &&
+ residence == other.residence &&
+ ssn == other.ssn &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(dob, emails, encryptedSsn, ethnicity, firstName, gender, lastName, middleName, phoneNumbers, preferredName, residence, ssn, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(
+ dob,
+ emails,
+ encryptedSsn,
+ ethnicity,
+ firstName,
+ gender,
+ lastName,
+ middleName,
+ phoneNumbers,
+ preferredName,
+ residence,
+ ssn,
+ additionalProperties,
+ )
+ }
override fun hashCode(): Int = hashCode
@@ -1523,7 +1550,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is Type && value == other.value /* spotless:on */
+ return other is Type && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -1536,12 +1563,13 @@ private constructor(
return true
}
- return /* spotless:off */ other is Email && data == other.data && type == other.type && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Email &&
+ data == other.data &&
+ type == other.type &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
private val hashCode: Int by lazy { Objects.hash(data, type, additionalProperties) }
- /* spotless:on */
override fun hashCode(): Int = hashCode
@@ -1705,7 +1733,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is Ethnicity && value == other.value /* spotless:on */
+ return other is Ethnicity && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -1842,7 +1870,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is Gender && value == other.value /* spotless:on */
+ return other is Gender && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -2125,7 +2153,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is Type && value == other.value /* spotless:on */
+ return other is Type && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -2138,12 +2166,13 @@ private constructor(
return true
}
- return /* spotless:off */ other is PhoneNumber && data == other.data && type == other.type && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is PhoneNumber &&
+ data == other.data &&
+ type == other.type &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
private val hashCode: Int by lazy { Objects.hash(data, type, additionalProperties) }
- /* spotless:on */
override fun hashCode(): Int = hashCode
@@ -2156,10 +2185,15 @@ private constructor(
return true
}
- return /* spotless:off */ other is SandboxIndividualUpdateParams && individualId == other.individualId && body == other.body && additionalHeaders == other.additionalHeaders && additionalQueryParams == other.additionalQueryParams /* spotless:on */
+ return other is SandboxIndividualUpdateParams &&
+ individualId == other.individualId &&
+ body == other.body &&
+ additionalHeaders == other.additionalHeaders &&
+ additionalQueryParams == other.additionalQueryParams
}
- override fun hashCode(): Int = /* spotless:off */ Objects.hash(individualId, body, additionalHeaders, additionalQueryParams) /* spotless:on */
+ override fun hashCode(): Int =
+ Objects.hash(individualId, body, additionalHeaders, additionalQueryParams)
override fun toString() =
"SandboxIndividualUpdateParams{individualId=$individualId, body=$body, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams}"
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxJobConfiguration.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxJobConfiguration.kt
index db95642a..3dc9a6ab 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxJobConfiguration.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxJobConfiguration.kt
@@ -327,7 +327,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is CompletionStatus && value == other.value /* spotless:on */
+ return other is CompletionStatus && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -445,7 +445,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is Type && value == other.value /* spotless:on */
+ return other is Type && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -458,12 +458,13 @@ private constructor(
return true
}
- return /* spotless:off */ other is SandboxJobConfiguration && completionStatus == other.completionStatus && type == other.type && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is SandboxJobConfiguration &&
+ completionStatus == other.completionStatus &&
+ type == other.type &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
private val hashCode: Int by lazy { Objects.hash(completionStatus, type, additionalProperties) }
- /* spotless:on */
override fun hashCode(): Int = hashCode
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxJobConfigurationRetrieveParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxJobConfigurationRetrieveParams.kt
index b85c72dd..55719752 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxJobConfigurationRetrieveParams.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxJobConfigurationRetrieveParams.kt
@@ -167,10 +167,12 @@ private constructor(
return true
}
- return /* spotless:off */ other is SandboxJobConfigurationRetrieveParams && additionalHeaders == other.additionalHeaders && additionalQueryParams == other.additionalQueryParams /* spotless:on */
+ return other is SandboxJobConfigurationRetrieveParams &&
+ additionalHeaders == other.additionalHeaders &&
+ additionalQueryParams == other.additionalQueryParams
}
- override fun hashCode(): Int = /* spotless:off */ Objects.hash(additionalHeaders, additionalQueryParams) /* spotless:on */
+ override fun hashCode(): Int = Objects.hash(additionalHeaders, additionalQueryParams)
override fun toString() =
"SandboxJobConfigurationRetrieveParams{additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams}"
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxJobConfigurationUpdateParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxJobConfigurationUpdateParams.kt
index 47faa27f..a8965ffb 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxJobConfigurationUpdateParams.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxJobConfigurationUpdateParams.kt
@@ -194,10 +194,14 @@ private constructor(
return true
}
- return /* spotless:off */ other is SandboxJobConfigurationUpdateParams && sandboxJobConfiguration == other.sandboxJobConfiguration && additionalHeaders == other.additionalHeaders && additionalQueryParams == other.additionalQueryParams /* spotless:on */
+ return other is SandboxJobConfigurationUpdateParams &&
+ sandboxJobConfiguration == other.sandboxJobConfiguration &&
+ additionalHeaders == other.additionalHeaders &&
+ additionalQueryParams == other.additionalQueryParams
}
- override fun hashCode(): Int = /* spotless:off */ Objects.hash(sandboxJobConfiguration, additionalHeaders, additionalQueryParams) /* spotless:on */
+ override fun hashCode(): Int =
+ Objects.hash(sandboxJobConfiguration, additionalHeaders, additionalQueryParams)
override fun toString() =
"SandboxJobConfigurationUpdateParams{sandboxJobConfiguration=$sandboxJobConfiguration, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams}"
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxJobCreateParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxJobCreateParams.kt
index bc749f79..47532a13 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxJobCreateParams.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxJobCreateParams.kt
@@ -385,12 +385,12 @@ private constructor(
return true
}
- return /* spotless:off */ other is Body && type == other.type && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Body &&
+ type == other.type &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
private val hashCode: Int by lazy { Objects.hash(type, additionalProperties) }
- /* spotless:on */
override fun hashCode(): Int = hashCode
@@ -508,7 +508,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is Type && value == other.value /* spotless:on */
+ return other is Type && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -521,10 +521,13 @@ private constructor(
return true
}
- return /* spotless:off */ other is SandboxJobCreateParams && body == other.body && additionalHeaders == other.additionalHeaders && additionalQueryParams == other.additionalQueryParams /* spotless:on */
+ return other is SandboxJobCreateParams &&
+ body == other.body &&
+ additionalHeaders == other.additionalHeaders &&
+ additionalQueryParams == other.additionalQueryParams
}
- override fun hashCode(): Int = /* spotless:off */ Objects.hash(body, additionalHeaders, additionalQueryParams) /* spotless:on */
+ override fun hashCode(): Int = Objects.hash(body, additionalHeaders, additionalQueryParams)
override fun toString() =
"SandboxJobCreateParams{body=$body, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams}"
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxPaymentCreateParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxPaymentCreateParams.kt
index c529782a..62c92824 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxPaymentCreateParams.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SandboxPaymentCreateParams.kt
@@ -532,12 +532,16 @@ private constructor(
return true
}
- return /* spotless:off */ other is CreateSandboxPaymentRequest && endDate == other.endDate && payStatements == other.payStatements && startDate == other.startDate && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is CreateSandboxPaymentRequest &&
+ endDate == other.endDate &&
+ payStatements == other.payStatements &&
+ startDate == other.startDate &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(endDate, payStatements, startDate, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(endDate, payStatements, startDate, additionalProperties)
+ }
override fun hashCode(): Int = hashCode
@@ -1482,7 +1486,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is Type && value == other.value /* spotless:on */
+ return other is Type && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -1495,12 +1499,17 @@ private constructor(
return true
}
- return /* spotless:off */ other is Earning && amount == other.amount && hours == other.hours && name == other.name && type == other.type && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Earning &&
+ amount == other.amount &&
+ hours == other.hours &&
+ name == other.name &&
+ type == other.type &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(amount, hours, name, type, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(amount, hours, name, type, additionalProperties)
+ }
override fun hashCode(): Int = hashCode
@@ -1957,7 +1966,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is Type && value == other.value /* spotless:on */
+ return other is Type && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -1970,12 +1979,17 @@ private constructor(
return true
}
- return /* spotless:off */ other is EmployeeDeduction && amount == other.amount && name == other.name && preTax == other.preTax && type == other.type && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is EmployeeDeduction &&
+ amount == other.amount &&
+ name == other.name &&
+ preTax == other.preTax &&
+ type == other.type &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(amount, name, preTax, type, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(amount, name, preTax, type, additionalProperties)
+ }
override fun hashCode(): Int = hashCode
@@ -2394,7 +2408,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is Type && value == other.value /* spotless:on */
+ return other is Type && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -2407,12 +2421,16 @@ private constructor(
return true
}
- return /* spotless:off */ other is EmployerContribution && amount == other.amount && name == other.name && type == other.type && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is EmployerContribution &&
+ amount == other.amount &&
+ name == other.name &&
+ type == other.type &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(amount, name, type, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(amount, name, type, additionalProperties)
+ }
override fun hashCode(): Int = hashCode
@@ -2549,7 +2567,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is PaymentMethod && value == other.value /* spotless:on */
+ return other is PaymentMethod && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -2909,7 +2927,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is Type && value == other.value /* spotless:on */
+ return other is Type && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -2922,12 +2940,17 @@ private constructor(
return true
}
- return /* spotless:off */ other is Tax && amount == other.amount && employer == other.employer && name == other.name && type == other.type && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Tax &&
+ amount == other.amount &&
+ employer == other.employer &&
+ name == other.name &&
+ type == other.type &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(amount, employer, name, type, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(amount, employer, name, type, additionalProperties)
+ }
override fun hashCode(): Int = hashCode
@@ -3060,7 +3083,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is Type && value == other.value /* spotless:on */
+ return other is Type && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -3073,12 +3096,35 @@ private constructor(
return true
}
- return /* spotless:off */ other is PayStatement && individualId == other.individualId && earnings == other.earnings && employeeDeductions == other.employeeDeductions && employerContributions == other.employerContributions && grossPay == other.grossPay && netPay == other.netPay && paymentMethod == other.paymentMethod && taxes == other.taxes && totalHours == other.totalHours && type == other.type && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is PayStatement &&
+ individualId == other.individualId &&
+ earnings == other.earnings &&
+ employeeDeductions == other.employeeDeductions &&
+ employerContributions == other.employerContributions &&
+ grossPay == other.grossPay &&
+ netPay == other.netPay &&
+ paymentMethod == other.paymentMethod &&
+ taxes == other.taxes &&
+ totalHours == other.totalHours &&
+ type == other.type &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(individualId, earnings, employeeDeductions, employerContributions, grossPay, netPay, paymentMethod, taxes, totalHours, type, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(
+ individualId,
+ earnings,
+ employeeDeductions,
+ employerContributions,
+ grossPay,
+ netPay,
+ paymentMethod,
+ taxes,
+ totalHours,
+ type,
+ additionalProperties,
+ )
+ }
override fun hashCode(): Int = hashCode
@@ -3091,10 +3137,13 @@ private constructor(
return true
}
- return /* spotless:off */ other is SandboxPaymentCreateParams && body == other.body && additionalHeaders == other.additionalHeaders && additionalQueryParams == other.additionalQueryParams /* spotless:on */
+ return other is SandboxPaymentCreateParams &&
+ body == other.body &&
+ additionalHeaders == other.additionalHeaders &&
+ additionalQueryParams == other.additionalQueryParams
}
- override fun hashCode(): Int = /* spotless:off */ Objects.hash(body, additionalHeaders, additionalQueryParams) /* spotless:on */
+ override fun hashCode(): Int = Objects.hash(body, additionalHeaders, additionalQueryParams)
override fun toString() =
"SandboxPaymentCreateParams{body=$body, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams}"
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SessionNewResponse.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SessionNewResponse.kt
index 621f3ceb..bd2bcdbe 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SessionNewResponse.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SessionNewResponse.kt
@@ -199,12 +199,13 @@ private constructor(
return true
}
- return /* spotless:off */ other is SessionNewResponse && connectUrl == other.connectUrl && sessionId == other.sessionId && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is SessionNewResponse &&
+ connectUrl == other.connectUrl &&
+ sessionId == other.sessionId &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
private val hashCode: Int by lazy { Objects.hash(connectUrl, sessionId, additionalProperties) }
- /* spotless:on */
override fun hashCode(): Int = hashCode
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SessionReauthenticateResponse.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SessionReauthenticateResponse.kt
index f3a6a435..060e9c11 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SessionReauthenticateResponse.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SessionReauthenticateResponse.kt
@@ -200,12 +200,13 @@ private constructor(
return true
}
- return /* spotless:off */ other is SessionReauthenticateResponse && connectUrl == other.connectUrl && sessionId == other.sessionId && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is SessionReauthenticateResponse &&
+ connectUrl == other.connectUrl &&
+ sessionId == other.sessionId &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
private val hashCode: Int by lazy { Objects.hash(connectUrl, sessionId, additionalProperties) }
- /* spotless:on */
override fun hashCode(): Int = hashCode
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SupportPerBenefitType.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SupportPerBenefitType.kt
index 03902715..e6f73fd3 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SupportPerBenefitType.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SupportPerBenefitType.kt
@@ -193,12 +193,15 @@ private constructor(
return true
}
- return /* spotless:off */ other is SupportPerBenefitType && companyBenefits == other.companyBenefits && individualBenefits == other.individualBenefits && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is SupportPerBenefitType &&
+ companyBenefits == other.companyBenefits &&
+ individualBenefits == other.individualBenefits &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(companyBenefits, individualBenefits, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(companyBenefits, individualBenefits, additionalProperties)
+ }
override fun hashCode(): Int = hashCode
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SupportedBenefit.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SupportedBenefit.kt
index 3e132efd..92af6a43 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SupportedBenefit.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/SupportedBenefit.kt
@@ -646,7 +646,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is CompanyContribution && value == other.value /* spotless:on */
+ return other is CompanyContribution && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -774,7 +774,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is EmployeeDeduction && value == other.value /* spotless:on */
+ return other is EmployeeDeduction && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -904,7 +904,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is HsaContributionLimit && value == other.value /* spotless:on */
+ return other is HsaContributionLimit && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -917,12 +917,29 @@ private constructor(
return true
}
- return /* spotless:off */ other is SupportedBenefit && annualMaximum == other.annualMaximum && companyContribution == other.companyContribution && description == other.description && employeeDeduction == other.employeeDeduction && frequencies == other.frequencies && catchUp == other.catchUp && hsaContributionLimit == other.hsaContributionLimit && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is SupportedBenefit &&
+ annualMaximum == other.annualMaximum &&
+ companyContribution == other.companyContribution &&
+ description == other.description &&
+ employeeDeduction == other.employeeDeduction &&
+ frequencies == other.frequencies &&
+ catchUp == other.catchUp &&
+ hsaContributionLimit == other.hsaContributionLimit &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(annualMaximum, companyContribution, description, employeeDeduction, frequencies, catchUp, hsaContributionLimit, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(
+ annualMaximum,
+ companyContribution,
+ description,
+ employeeDeduction,
+ frequencies,
+ catchUp,
+ hsaContributionLimit,
+ additionalProperties,
+ )
+ }
override fun hashCode(): Int = hashCode
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/UnenrolledIndividualBenefitResponse.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/UnenrolledIndividualBenefitResponse.kt
index 308a775e..dd8c3f24 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/UnenrolledIndividualBenefitResponse.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/UnenrolledIndividualBenefitResponse.kt
@@ -159,12 +159,12 @@ private constructor(
return true
}
- return /* spotless:off */ other is UnenrolledIndividualBenefitResponse && jobId == other.jobId && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is UnenrolledIndividualBenefitResponse &&
+ jobId == other.jobId &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
private val hashCode: Int by lazy { Objects.hash(jobId, additionalProperties) }
- /* spotless:on */
override fun hashCode(): Int = hashCode
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/UpdateCompanyBenefitResponse.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/UpdateCompanyBenefitResponse.kt
index 675a1d25..a1e68e89 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/UpdateCompanyBenefitResponse.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/UpdateCompanyBenefitResponse.kt
@@ -192,12 +192,13 @@ private constructor(
return true
}
- return /* spotless:off */ other is UpdateCompanyBenefitResponse && benefitId == other.benefitId && jobId == other.jobId && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is UpdateCompanyBenefitResponse &&
+ benefitId == other.benefitId &&
+ jobId == other.jobId &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
private val hashCode: Int by lazy { Objects.hash(benefitId, jobId, additionalProperties) }
- /* spotless:on */
override fun hashCode(): Int = hashCode
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/W42005.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/W42005.kt
index 84e386cd..f37045a6 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/W42005.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/W42005.kt
@@ -684,7 +684,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is Exemption && value == other.value /* spotless:on */
+ return other is Exemption && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -826,7 +826,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is FilingStatus && value == other.value /* spotless:on */
+ return other is FilingStatus && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -839,12 +839,25 @@ private constructor(
return true
}
- return /* spotless:off */ other is Data && additionalWithholding == other.additionalWithholding && exemption == other.exemption && filingStatus == other.filingStatus && individualId == other.individualId && totalNumberOfAllowances == other.totalNumberOfAllowances && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Data &&
+ additionalWithholding == other.additionalWithholding &&
+ exemption == other.exemption &&
+ filingStatus == other.filingStatus &&
+ individualId == other.individualId &&
+ totalNumberOfAllowances == other.totalNumberOfAllowances &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(additionalWithholding, exemption, filingStatus, individualId, totalNumberOfAllowances, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(
+ additionalWithholding,
+ exemption,
+ filingStatus,
+ individualId,
+ totalNumberOfAllowances,
+ additionalProperties,
+ )
+ }
override fun hashCode(): Int = hashCode
@@ -963,7 +976,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is Type && value == other.value /* spotless:on */
+ return other is Type && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -976,12 +989,14 @@ private constructor(
return true
}
- return /* spotless:off */ other is W42005 && data == other.data && type == other.type && year == other.year && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is W42005 &&
+ data == other.data &&
+ type == other.type &&
+ year == other.year &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
private val hashCode: Int by lazy { Objects.hash(data, type, year, additionalProperties) }
- /* spotless:on */
override fun hashCode(): Int = hashCode
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/W42020.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/W42020.kt
index b6eeffd2..98aa80b7 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/W42020.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/W42020.kt
@@ -884,7 +884,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is FilingStatus && value == other.value /* spotless:on */
+ return other is FilingStatus && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -897,12 +897,31 @@ private constructor(
return true
}
- return /* spotless:off */ other is Data && amountForOtherDependents == other.amountForOtherDependents && amountForQualifyingChildrenUnder17 == other.amountForQualifyingChildrenUnder17 && deductions == other.deductions && extraWithholding == other.extraWithholding && filingStatus == other.filingStatus && individualId == other.individualId && otherIncome == other.otherIncome && totalClaimDependentAndOtherCredits == other.totalClaimDependentAndOtherCredits && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is Data &&
+ amountForOtherDependents == other.amountForOtherDependents &&
+ amountForQualifyingChildrenUnder17 == other.amountForQualifyingChildrenUnder17 &&
+ deductions == other.deductions &&
+ extraWithholding == other.extraWithholding &&
+ filingStatus == other.filingStatus &&
+ individualId == other.individualId &&
+ otherIncome == other.otherIncome &&
+ totalClaimDependentAndOtherCredits == other.totalClaimDependentAndOtherCredits &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
- private val hashCode: Int by lazy { Objects.hash(amountForOtherDependents, amountForQualifyingChildrenUnder17, deductions, extraWithholding, filingStatus, individualId, otherIncome, totalClaimDependentAndOtherCredits, additionalProperties) }
- /* spotless:on */
+ private val hashCode: Int by lazy {
+ Objects.hash(
+ amountForOtherDependents,
+ amountForQualifyingChildrenUnder17,
+ deductions,
+ extraWithholding,
+ filingStatus,
+ individualId,
+ otherIncome,
+ totalClaimDependentAndOtherCredits,
+ additionalProperties,
+ )
+ }
override fun hashCode(): Int = hashCode
@@ -1021,7 +1040,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is Type && value == other.value /* spotless:on */
+ return other is Type && value == other.value
}
override fun hashCode() = value.hashCode()
@@ -1034,12 +1053,14 @@ private constructor(
return true
}
- return /* spotless:off */ other is W42020 && data == other.data && type == other.type && year == other.year && additionalProperties == other.additionalProperties /* spotless:on */
+ return other is W42020 &&
+ data == other.data &&
+ type == other.type &&
+ year == other.year &&
+ additionalProperties == other.additionalProperties
}
- /* spotless:off */
private val hashCode: Int by lazy { Objects.hash(data, type, year, additionalProperties) }
- /* spotless:on */
override fun hashCode(): Int = hashCode
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/WebhookEvent.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/WebhookEvent.kt
index 43d8873e..3c1b319a 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/WebhookEvent.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/WebhookEvent.kt
@@ -187,10 +187,28 @@ private constructor(
return true
}
- return /* spotless:off */ other is WebhookEvent && accountUpdated == other.accountUpdated && jobCompletion == other.jobCompletion && companyUpdated == other.companyUpdated && directory == other.directory && employment == other.employment && individual == other.individual && payment == other.payment && payStatement == other.payStatement /* spotless:on */
+ return other is WebhookEvent &&
+ accountUpdated == other.accountUpdated &&
+ jobCompletion == other.jobCompletion &&
+ companyUpdated == other.companyUpdated &&
+ directory == other.directory &&
+ employment == other.employment &&
+ individual == other.individual &&
+ payment == other.payment &&
+ payStatement == other.payStatement
}
- override fun hashCode(): Int = /* spotless:off */ Objects.hash(accountUpdated, jobCompletion, companyUpdated, directory, employment, individual, payment, payStatement) /* spotless:on */
+ override fun hashCode(): Int =
+ Objects.hash(
+ accountUpdated,
+ jobCompletion,
+ companyUpdated,
+ directory,
+ employment,
+ individual,
+ payment,
+ payStatement,
+ )
override fun toString(): String =
when {
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/RequestForwardingServiceAsync.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/RequestForwardingServiceAsync.kt
index 69fe6e0e..59b316a1 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/RequestForwardingServiceAsync.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/RequestForwardingServiceAsync.kt
@@ -25,9 +25,9 @@ interface RequestForwardingServiceAsync {
fun withOptions(modifier: Consumer): RequestForwardingServiceAsync
/**
- * The Forward API allows you to make direct requests to an employment system. If Finch’s
- * unified API doesn’t have a data model that cleanly fits your needs, then Forward allows you
- * to push or pull data models directly against an integration’s API.
+ * The Forward API allows you to make direct requests to an employment system. If Finch's
+ * unified API doesn't have a data model that cleanly fits your needs, then Forward allows you
+ * to push or pull data models directly against an integration's API.
*/
fun forward(
params: RequestForwardingForwardParams
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/RequestForwardingService.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/RequestForwardingService.kt
index a478ebc8..79c52495 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/RequestForwardingService.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/RequestForwardingService.kt
@@ -25,9 +25,9 @@ interface RequestForwardingService {
fun withOptions(modifier: Consumer): RequestForwardingService
/**
- * The Forward API allows you to make direct requests to an employment system. If Finch’s
- * unified API doesn’t have a data model that cleanly fits your needs, then Forward allows you
- * to push or pull data models directly against an integration’s API.
+ * The Forward API allows you to make direct requests to an employment system. If Finch's
+ * unified API doesn't have a data model that cleanly fits your needs, then Forward allows you
+ * to push or pull data models directly against an integration's API.
*/
fun forward(params: RequestForwardingForwardParams): RequestForwardingForwardResponse =
forward(params, RequestOptions.none())
diff --git a/finch-java-core/src/main/resources/META-INF/proguard/finch-java-core.pro b/finch-java-core/src/main/resources/META-INF/proguard/finch-java-core.pro
new file mode 100644
index 00000000..d0db10fb
--- /dev/null
+++ b/finch-java-core/src/main/resources/META-INF/proguard/finch-java-core.pro
@@ -0,0 +1,32 @@
+# Jackson uses reflection and depends heavily on runtime attributes.
+-keepattributes Exceptions,InnerClasses,Signature,Deprecated,*Annotation*
+
+# Jackson uses Kotlin reflection utilities, which themselves use reflection to access things.
+-keep class kotlin.reflect.** { *; }
+-keep class kotlin.Metadata { *; }
+
+# Jackson uses reflection to access enum members (e.g. via `java.lang.Class.getEnumConstants()`).
+-keepclassmembers class com.fasterxml.jackson.** extends java.lang.Enum {
+ ;
+ public static **[] values();
+ public static ** valueOf(java.lang.String);
+}
+
+# Jackson uses reflection to access annotation members.
+-keepclassmembers @interface com.fasterxml.jackson.annotation.** {
+ *;
+}
+
+# Jackson uses reified type information to serialize and deserialize our classes (via `TypeReference`).
+-keep class com.fasterxml.jackson.core.type.TypeReference { *; }
+-keep class * extends com.fasterxml.jackson.core.type.TypeReference { *; }
+
+# Jackson uses reflection to access our class serializers and deserializers.
+-keep @com.fasterxml.jackson.databind.annotation.JsonSerialize class com.tryfinch.api.** { *; }
+-keep @com.fasterxml.jackson.databind.annotation.JsonDeserialize class com.tryfinch.api.** { *; }
+
+# Jackson uses reflection to serialize and deserialize our classes based on their constructors and annotated members.
+-keepclassmembers class com.tryfinch.api.** {
+ (...);
+ @com.fasterxml.jackson.annotation.* *;
+}
\ No newline at end of file
diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/core/http/RetryingHttpClientTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/core/http/RetryingHttpClientTest.kt
index fd0f5b5f..c4a3af5b 100644
--- a/finch-java-core/src/test/kotlin/com/tryfinch/api/core/http/RetryingHttpClientTest.kt
+++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/core/http/RetryingHttpClientTest.kt
@@ -6,6 +6,7 @@ import com.github.tomakehurst.wiremock.junit5.WireMockTest
import com.github.tomakehurst.wiremock.stubbing.Scenario
import com.tryfinch.api.client.okhttp.OkHttpClient
import com.tryfinch.api.core.RequestOptions
+import com.tryfinch.api.errors.FinchRetryableException
import java.io.InputStream
import java.time.Duration
import java.util.concurrent.CompletableFuture
@@ -251,6 +252,82 @@ internal class RetryingHttpClientTest {
assertNoResponseLeaks()
}
+ @ParameterizedTest
+ @ValueSource(booleans = [false, true])
+ fun execute_withRetryableException(async: Boolean) {
+ stubFor(post(urlPathEqualTo("/something")).willReturn(ok()))
+
+ var callCount = 0
+ val failingHttpClient =
+ object : HttpClient {
+ override fun execute(
+ request: HttpRequest,
+ requestOptions: RequestOptions,
+ ): HttpResponse {
+ callCount++
+ if (callCount == 1) {
+ throw FinchRetryableException("Simulated retryable failure")
+ }
+ return httpClient.execute(request, requestOptions)
+ }
+
+ override fun executeAsync(
+ request: HttpRequest,
+ requestOptions: RequestOptions,
+ ): CompletableFuture {
+ callCount++
+ if (callCount == 1) {
+ val future = CompletableFuture()
+ future.completeExceptionally(
+ FinchRetryableException("Simulated retryable failure")
+ )
+ return future
+ }
+ return httpClient.executeAsync(request, requestOptions)
+ }
+
+ override fun close() = httpClient.close()
+ }
+
+ val retryingClient =
+ RetryingHttpClient.builder()
+ .httpClient(failingHttpClient)
+ .maxRetries(2)
+ .sleeper(
+ object : RetryingHttpClient.Sleeper {
+
+ override fun sleep(duration: Duration) {}
+
+ override fun sleepAsync(duration: Duration): CompletableFuture =
+ CompletableFuture.completedFuture(null)
+ }
+ )
+ .build()
+
+ val response =
+ retryingClient.execute(
+ HttpRequest.builder()
+ .method(HttpMethod.POST)
+ .baseUrl(baseUrl)
+ .addPathSegment("something")
+ .build(),
+ async,
+ )
+
+ assertThat(response.statusCode()).isEqualTo(200)
+ verify(
+ 1,
+ postRequestedFor(urlPathEqualTo("/something"))
+ .withHeader("x-stainless-retry-count", equalTo("1")),
+ )
+ verify(
+ 0,
+ postRequestedFor(urlPathEqualTo("/something"))
+ .withHeader("x-stainless-retry-count", equalTo("0")),
+ )
+ assertNoResponseLeaks()
+ }
+
private fun retryingHttpClientBuilder() =
RetryingHttpClient.builder()
.httpClient(httpClient)
diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/JobAutomatedListParamsTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/JobAutomatedListParamsTest.kt
index a6a42d5d..b88567a2 100644
--- a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/JobAutomatedListParamsTest.kt
+++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/JobAutomatedListParamsTest.kt
@@ -10,17 +10,32 @@ internal class JobAutomatedListParamsTest {
@Test
fun create() {
- JobAutomatedListParams.builder().limit(0L).offset(0L).build()
+ JobAutomatedListParams.builder()
+ .entityId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
+ .limit(0L)
+ .offset(0L)
+ .build()
}
@Test
fun queryParams() {
- val params = JobAutomatedListParams.builder().limit(0L).offset(0L).build()
+ val params =
+ JobAutomatedListParams.builder()
+ .entityId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
+ .limit(0L)
+ .offset(0L)
+ .build()
val queryParams = params._queryParams()
assertThat(queryParams)
- .isEqualTo(QueryParams.builder().put("limit", "0").put("offset", "0").build())
+ .isEqualTo(
+ QueryParams.builder()
+ .put("entity_id", "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
+ .put("limit", "0")
+ .put("offset", "0")
+ .build()
+ )
}
@Test
diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/JobAutomatedRetrieveParamsTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/JobAutomatedRetrieveParamsTest.kt
index d8c03a77..38985812 100644
--- a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/JobAutomatedRetrieveParamsTest.kt
+++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/JobAutomatedRetrieveParamsTest.kt
@@ -2,6 +2,7 @@
package com.tryfinch.api.models
+import com.tryfinch.api.core.http.QueryParams
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
@@ -9,7 +10,10 @@ internal class JobAutomatedRetrieveParamsTest {
@Test
fun create() {
- JobAutomatedRetrieveParams.builder().jobId("job_id").build()
+ JobAutomatedRetrieveParams.builder()
+ .jobId("job_id")
+ .entityId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
+ .build()
}
@Test
@@ -20,4 +24,31 @@ internal class JobAutomatedRetrieveParamsTest {
// out-of-bound path param
assertThat(params._pathParam(1)).isEqualTo("")
}
+
+ @Test
+ fun queryParams() {
+ val params =
+ JobAutomatedRetrieveParams.builder()
+ .jobId("job_id")
+ .entityId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
+ .build()
+
+ val queryParams = params._queryParams()
+
+ assertThat(queryParams)
+ .isEqualTo(
+ QueryParams.builder()
+ .put("entity_id", "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
+ .build()
+ )
+ }
+
+ @Test
+ fun queryParamsWithoutOptionalFields() {
+ val params = JobAutomatedRetrieveParams.builder().jobId("job_id").build()
+
+ val queryParams = params._queryParams()
+
+ assertThat(queryParams).isEqualTo(QueryParams.builder().build())
+ }
}
diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/JobManualRetrieveParamsTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/JobManualRetrieveParamsTest.kt
index 4d7590ce..42fee7d2 100644
--- a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/JobManualRetrieveParamsTest.kt
+++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/JobManualRetrieveParamsTest.kt
@@ -2,6 +2,7 @@
package com.tryfinch.api.models
+import com.tryfinch.api.core.http.QueryParams
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
@@ -9,7 +10,10 @@ internal class JobManualRetrieveParamsTest {
@Test
fun create() {
- JobManualRetrieveParams.builder().jobId("job_id").build()
+ JobManualRetrieveParams.builder()
+ .jobId("job_id")
+ .entityId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
+ .build()
}
@Test
@@ -20,4 +24,31 @@ internal class JobManualRetrieveParamsTest {
// out-of-bound path param
assertThat(params._pathParam(1)).isEqualTo("")
}
+
+ @Test
+ fun queryParams() {
+ val params =
+ JobManualRetrieveParams.builder()
+ .jobId("job_id")
+ .entityId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
+ .build()
+
+ val queryParams = params._queryParams()
+
+ assertThat(queryParams)
+ .isEqualTo(
+ QueryParams.builder()
+ .put("entity_id", "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
+ .build()
+ )
+ }
+
+ @Test
+ fun queryParamsWithoutOptionalFields() {
+ val params = JobManualRetrieveParams.builder().jobId("job_id").build()
+
+ val queryParams = params._queryParams()
+
+ assertThat(queryParams).isEqualTo(QueryParams.builder().build())
+ }
}
diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/async/jobs/AutomatedServiceAsyncTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/async/jobs/AutomatedServiceAsyncTest.kt
index 68909572..7dd78c56 100644
--- a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/async/jobs/AutomatedServiceAsyncTest.kt
+++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/async/jobs/AutomatedServiceAsyncTest.kt
@@ -6,6 +6,7 @@ import com.tryfinch.api.TestServerExtension
import com.tryfinch.api.client.okhttp.FinchOkHttpClientAsync
import com.tryfinch.api.models.JobAutomatedCreateParams
import com.tryfinch.api.models.JobAutomatedListParams
+import com.tryfinch.api.models.JobAutomatedRetrieveParams
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.extension.ExtendWith
@@ -39,7 +40,13 @@ internal class AutomatedServiceAsyncTest {
.build()
val automatedServiceAsync = client.jobs().automated()
- val automatedAsyncJobFuture = automatedServiceAsync.retrieve("job_id")
+ val automatedAsyncJobFuture =
+ automatedServiceAsync.retrieve(
+ JobAutomatedRetrieveParams.builder()
+ .jobId("job_id")
+ .entityId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
+ .build()
+ )
val automatedAsyncJob = automatedAsyncJobFuture.get()
automatedAsyncJob.validate()
@@ -56,7 +63,11 @@ internal class AutomatedServiceAsyncTest {
val automatedsFuture =
automatedServiceAsync.list(
- JobAutomatedListParams.builder().limit(0L).offset(0L).build()
+ JobAutomatedListParams.builder()
+ .entityId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
+ .limit(0L)
+ .offset(0L)
+ .build()
)
val automateds = automatedsFuture.get()
diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/async/jobs/ManualServiceAsyncTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/async/jobs/ManualServiceAsyncTest.kt
index 87d73cfa..f3aa0c98 100644
--- a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/async/jobs/ManualServiceAsyncTest.kt
+++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/async/jobs/ManualServiceAsyncTest.kt
@@ -4,6 +4,7 @@ package com.tryfinch.api.services.async.jobs
import com.tryfinch.api.TestServerExtension
import com.tryfinch.api.client.okhttp.FinchOkHttpClientAsync
+import com.tryfinch.api.models.JobManualRetrieveParams
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.extension.ExtendWith
@@ -19,7 +20,13 @@ internal class ManualServiceAsyncTest {
.build()
val manualServiceAsync = client.jobs().manual()
- val manualAsyncJobFuture = manualServiceAsync.retrieve("job_id")
+ val manualAsyncJobFuture =
+ manualServiceAsync.retrieve(
+ JobManualRetrieveParams.builder()
+ .jobId("job_id")
+ .entityId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
+ .build()
+ )
val manualAsyncJob = manualAsyncJobFuture.get()
manualAsyncJob.validate()
diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/jobs/AutomatedServiceTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/jobs/AutomatedServiceTest.kt
index e4121bc5..6b576c1e 100644
--- a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/jobs/AutomatedServiceTest.kt
+++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/jobs/AutomatedServiceTest.kt
@@ -6,6 +6,7 @@ import com.tryfinch.api.TestServerExtension
import com.tryfinch.api.client.okhttp.FinchOkHttpClient
import com.tryfinch.api.models.JobAutomatedCreateParams
import com.tryfinch.api.models.JobAutomatedListParams
+import com.tryfinch.api.models.JobAutomatedRetrieveParams
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.extension.ExtendWith
@@ -36,7 +37,13 @@ internal class AutomatedServiceTest {
.build()
val automatedService = client.jobs().automated()
- val automatedAsyncJob = automatedService.retrieve("job_id")
+ val automatedAsyncJob =
+ automatedService.retrieve(
+ JobAutomatedRetrieveParams.builder()
+ .jobId("job_id")
+ .entityId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
+ .build()
+ )
automatedAsyncJob.validate()
}
@@ -51,7 +58,13 @@ internal class AutomatedServiceTest {
val automatedService = client.jobs().automated()
val automateds =
- automatedService.list(JobAutomatedListParams.builder().limit(0L).offset(0L).build())
+ automatedService.list(
+ JobAutomatedListParams.builder()
+ .entityId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
+ .limit(0L)
+ .offset(0L)
+ .build()
+ )
automateds.validate()
}
diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/jobs/ManualServiceTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/jobs/ManualServiceTest.kt
index 3ee64260..b3d4fc55 100644
--- a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/jobs/ManualServiceTest.kt
+++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/jobs/ManualServiceTest.kt
@@ -4,6 +4,7 @@ package com.tryfinch.api.services.blocking.jobs
import com.tryfinch.api.TestServerExtension
import com.tryfinch.api.client.okhttp.FinchOkHttpClient
+import com.tryfinch.api.models.JobManualRetrieveParams
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.extension.ExtendWith
@@ -19,7 +20,13 @@ internal class ManualServiceTest {
.build()
val manualService = client.jobs().manual()
- val manualAsyncJob = manualService.retrieve("job_id")
+ val manualAsyncJob =
+ manualService.retrieve(
+ JobManualRetrieveParams.builder()
+ .jobId("job_id")
+ .entityId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
+ .build()
+ )
manualAsyncJob.validate()
}
diff --git a/finch-java-example/build.gradle.kts b/finch-java-example/build.gradle.kts
index 286061d0..25880799 100644
--- a/finch-java-example/build.gradle.kts
+++ b/finch-java-example/build.gradle.kts
@@ -18,7 +18,7 @@ tasks.withType().configureEach {
application {
// Use `./gradlew :finch-java-example:run` to run `Main`
- // Use `./gradlew :finch-java-example:run -Dexample=Something` to run `SomethingExample`
+ // Use `./gradlew :finch-java-example:run -Pexample=Something` to run `SomethingExample`
mainClass = "com.tryfinch.api.example.${
if (project.hasProperty("example"))
"${project.property("example")}Example"
diff --git a/finch-java-proguard-test/build.gradle.kts b/finch-java-proguard-test/build.gradle.kts
new file mode 100644
index 00000000..e7075df7
--- /dev/null
+++ b/finch-java-proguard-test/build.gradle.kts
@@ -0,0 +1,103 @@
+plugins {
+ id("finch.kotlin")
+ id("com.gradleup.shadow") version "8.3.8"
+}
+
+buildscript {
+ repositories {
+ google()
+ }
+
+ dependencies {
+ classpath("com.guardsquare:proguard-gradle:7.4.2")
+ classpath("com.android.tools:r8:8.3.37")
+ }
+}
+
+dependencies {
+ testImplementation(project(":finch-java"))
+ testImplementation(kotlin("test"))
+ testImplementation("org.junit.jupiter:junit-jupiter-api:5.9.3")
+ testImplementation("org.assertj:assertj-core:3.25.3")
+ testImplementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.13.4")
+}
+
+tasks.shadowJar {
+ from(sourceSets.test.get().output)
+ configurations = listOf(project.configurations.testRuntimeClasspath.get())
+}
+
+val proguardJarPath = "${layout.buildDirectory.get()}/libs/${project.name}-${project.version}-proguard.jar"
+val proguardJar by tasks.registering(proguard.gradle.ProGuardTask::class) {
+ group = "verification"
+ dependsOn(tasks.shadowJar)
+ notCompatibleWithConfigurationCache("ProGuard")
+
+ injars(tasks.shadowJar)
+ outjars(proguardJarPath)
+ printmapping("${layout.buildDirectory.get()}/proguard-mapping.txt")
+
+ dontwarn()
+
+ val javaHome = System.getProperty("java.home")
+ if (System.getProperty("java.version").startsWith("1.")) {
+ // Before Java 9, the runtime classes were packaged in a single jar file.
+ libraryjars("$javaHome/lib/rt.jar")
+ } else {
+ // As of Java 9, the runtime classes are packaged in modular jmod files.
+ libraryjars(
+ // Filters must be specified first, as a map.
+ mapOf("jarfilter" to "!**.jar", "filter" to "!module-info.class"),
+ "$javaHome/jmods/java.base.jmod"
+ )
+ }
+
+ configuration("./test.pro")
+ configuration("../finch-java-core/src/main/resources/META-INF/proguard/finch-java-core.pro")
+}
+
+val testProGuard by tasks.registering(JavaExec::class) {
+ group = "verification"
+ dependsOn(proguardJar)
+ notCompatibleWithConfigurationCache("ProGuard")
+
+ mainClass.set("com.tryfinch.api.proguard.ProGuardCompatibilityTest")
+ classpath = files(proguardJarPath)
+}
+
+val r8JarPath = "${layout.buildDirectory.get()}/libs/${project.name}-${project.version}-r8.jar"
+val r8Jar by tasks.registering(JavaExec::class) {
+ group = "verification"
+ dependsOn(tasks.shadowJar)
+ notCompatibleWithConfigurationCache("R8")
+
+ mainClass.set("com.android.tools.r8.R8")
+ classpath = buildscript.configurations["classpath"]
+
+ args = listOf(
+ "--release",
+ "--classfile",
+ "--output", r8JarPath,
+ "--lib", System.getProperty("java.home"),
+ "--pg-conf", "./test.pro",
+ "--pg-conf", "../finch-java-core/src/main/resources/META-INF/proguard/finch-java-core.pro",
+ "--pg-map-output", "${layout.buildDirectory.get()}/r8-mapping.txt",
+ tasks.shadowJar.get().archiveFile.get().asFile.absolutePath,
+ )
+}
+
+val testR8 by tasks.registering(JavaExec::class) {
+ group = "verification"
+ dependsOn(r8Jar)
+ notCompatibleWithConfigurationCache("R8")
+
+ mainClass.set("com.tryfinch.api.proguard.ProGuardCompatibilityTest")
+ classpath = files(r8JarPath)
+}
+
+tasks.test {
+ dependsOn(testProGuard)
+ dependsOn(testR8)
+ // We defer to the tests run via the ProGuard JAR.
+ enabled = false
+}
diff --git a/finch-java-proguard-test/src/test/kotlin/com/tryfinch/api/proguard/ProGuardCompatibilityTest.kt b/finch-java-proguard-test/src/test/kotlin/com/tryfinch/api/proguard/ProGuardCompatibilityTest.kt
new file mode 100644
index 00000000..3a0a0caf
--- /dev/null
+++ b/finch-java-proguard-test/src/test/kotlin/com/tryfinch/api/proguard/ProGuardCompatibilityTest.kt
@@ -0,0 +1,157 @@
+// File generated from our OpenAPI spec by Stainless.
+
+package com.tryfinch.api.proguard
+
+import com.fasterxml.jackson.module.kotlin.jacksonTypeRef
+import com.tryfinch.api.client.okhttp.FinchOkHttpClient
+import com.tryfinch.api.core.jsonMapper
+import com.tryfinch.api.models.ConnectionStatusType
+import com.tryfinch.api.models.Individual
+import com.tryfinch.api.models.IndividualInDirectory
+import com.tryfinch.api.models.Location
+import kotlin.reflect.full.memberFunctions
+import kotlin.reflect.jvm.javaMethod
+import org.assertj.core.api.Assertions.assertThat
+import org.junit.jupiter.api.Test
+
+internal class ProGuardCompatibilityTest {
+
+ companion object {
+
+ @JvmStatic
+ fun main(args: Array) {
+ // To debug that we're using the right JAR.
+ val jarPath = this::class.java.getProtectionDomain().codeSource.location
+ println("JAR being used: $jarPath")
+
+ // We have to manually run the test methods instead of using the JUnit runner because it
+ // seems impossible to get working with R8.
+ val test = ProGuardCompatibilityTest()
+ test::class
+ .memberFunctions
+ .asSequence()
+ .filter { function ->
+ function.javaMethod?.isAnnotationPresent(Test::class.java) == true
+ }
+ .forEach { it.call(test) }
+ }
+ }
+
+ @Test
+ fun proguardRules() {
+ val rulesFile =
+ javaClass.classLoader.getResourceAsStream("META-INF/proguard/finch-java-core.pro")
+
+ assertThat(rulesFile).isNotNull()
+ }
+
+ @Test
+ fun client() {
+ val client = FinchOkHttpClient.builder().accessToken("My Access Token").build()
+
+ assertThat(client).isNotNull()
+ assertThat(client.accessTokens()).isNotNull()
+ assertThat(client.hris()).isNotNull()
+ assertThat(client.providers()).isNotNull()
+ assertThat(client.account()).isNotNull()
+ assertThat(client.webhooks()).isNotNull()
+ assertThat(client.requestForwarding()).isNotNull()
+ assertThat(client.jobs()).isNotNull()
+ assertThat(client.sandbox()).isNotNull()
+ assertThat(client.payroll()).isNotNull()
+ assertThat(client.connect()).isNotNull()
+ }
+
+ @Test
+ fun individualInDirectoryRoundtrip() {
+ val jsonMapper = jsonMapper()
+ val individualInDirectory =
+ IndividualInDirectory.builder()
+ .id("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
+ .department(IndividualInDirectory.Department.builder().name("name").build())
+ .firstName("first_name")
+ .isActive(true)
+ .lastName("last_name")
+ .manager(
+ IndividualInDirectory.Manager.builder()
+ .id("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
+ .build()
+ )
+ .middleName("middle_name")
+ .build()
+
+ val roundtrippedIndividualInDirectory =
+ jsonMapper.readValue(
+ jsonMapper.writeValueAsString(individualInDirectory),
+ jacksonTypeRef(),
+ )
+
+ assertThat(roundtrippedIndividualInDirectory).isEqualTo(individualInDirectory)
+ }
+
+ @Test
+ fun individualRoundtrip() {
+ val jsonMapper = jsonMapper()
+ val individual =
+ Individual.ofUnionMember0(
+ Individual.UnionMember0.builder()
+ .id("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
+ .dob("dob")
+ .ethnicity(Individual.UnionMember0.Ethnicity.ASIAN)
+ .firstName("first_name")
+ .gender(Individual.UnionMember0.Gender.FEMALE)
+ .lastName("last_name")
+ .middleName("middle_name")
+ .addPhoneNumber(
+ Individual.UnionMember0.PhoneNumber.builder()
+ .data("data")
+ .type(Individual.UnionMember0.PhoneNumber.Type.WORK)
+ .build()
+ )
+ .preferredName("preferred_name")
+ .residence(
+ Location.builder()
+ .city("city")
+ .country("country")
+ .line1("line1")
+ .line2("line2")
+ .postalCode("postal_code")
+ .state("state")
+ .name("name")
+ .sourceId("source_id")
+ .build()
+ )
+ .addEmail(
+ Individual.UnionMember0.Email.builder()
+ .data("data")
+ .type(Individual.UnionMember0.Email.Type.WORK)
+ .build()
+ )
+ .encryptedSsn("encrypted_ssn")
+ .ssn("ssn")
+ .build()
+ )
+
+ val roundtrippedIndividual =
+ jsonMapper.readValue(
+ jsonMapper.writeValueAsString(individual),
+ jacksonTypeRef(),
+ )
+
+ assertThat(roundtrippedIndividual).isEqualTo(individual)
+ }
+
+ @Test
+ fun connectionStatusTypeRoundtrip() {
+ val jsonMapper = jsonMapper()
+ val connectionStatusType = ConnectionStatusType.PENDING
+
+ val roundtrippedConnectionStatusType =
+ jsonMapper.readValue(
+ jsonMapper.writeValueAsString(connectionStatusType),
+ jacksonTypeRef(),
+ )
+
+ assertThat(roundtrippedConnectionStatusType).isEqualTo(connectionStatusType)
+ }
+}
diff --git a/finch-java-proguard-test/test.pro b/finch-java-proguard-test/test.pro
new file mode 100644
index 00000000..b7d5198d
--- /dev/null
+++ b/finch-java-proguard-test/test.pro
@@ -0,0 +1,8 @@
+# Specify the entrypoint where ProGuard starts to determine what's reachable.
+-keep class com.tryfinch.api.proguard.** { *; }
+
+# For the testing framework.
+-keep class org.junit.** { *; }
+
+# Many warnings don't apply for our testing purposes.
+-dontwarn
\ No newline at end of file
diff --git a/gradle.properties b/gradle.properties
index ff76593f..6680f9ce 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -4,12 +4,13 @@ org.gradle.parallel=true
org.gradle.daemon=false
# These options improve our compilation and test performance. They are inherited by the Kotlin daemon.
org.gradle.jvmargs=\
- -Xms1g \
- -Xmx4g \
+ -Xms2g \
+ -Xmx8g \
-XX:+UseParallelGC \
-XX:InitialCodeCacheSize=256m \
-XX:ReservedCodeCacheSize=1G \
- -XX:MetaspaceSize=256m \
+ -XX:MetaspaceSize=512m \
+ -XX:MaxMetaspaceSize=2G \
-XX:TieredStopAtLevel=1 \
-XX:GCTimeRatio=4 \
-XX:CICompilerCount=4 \
diff --git a/scripts/build b/scripts/build
new file mode 100755
index 00000000..f4063482
--- /dev/null
+++ b/scripts/build
@@ -0,0 +1,8 @@
+#!/usr/bin/env bash
+
+set -e
+
+cd "$(dirname "$0")/.."
+
+echo "==> Building classes"
+./gradlew build testClasses -x test
diff --git a/scripts/format b/scripts/format
index 456a69db..7c0be4d5 100755
--- a/scripts/format
+++ b/scripts/format
@@ -4,5 +4,5 @@ set -e
cd "$(dirname "$0")/.."
-echo "==> Running spotlessApply"
-./gradlew spotlessApply
+echo "==> Running formatters"
+./gradlew format
diff --git a/scripts/lint b/scripts/lint
index e3a5f5e2..aea8af71 100755
--- a/scripts/lint
+++ b/scripts/lint
@@ -4,5 +4,5 @@ set -e
cd "$(dirname "$0")/.."
-echo "==> Build classes"
-./gradlew build testClasses -x test
+echo "==> Running lints"
+./gradlew lint
diff --git a/scripts/mock b/scripts/mock
index d2814ae6..0b28f6ea 100755
--- a/scripts/mock
+++ b/scripts/mock
@@ -21,7 +21,7 @@ echo "==> Starting mock server with URL ${URL}"
# Run prism mock on the given spec
if [ "$1" == "--daemon" ]; then
- npm exec --package=@stainless-api/prism-cli@5.8.5 -- prism mock "$URL" &> .prism.log &
+ npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism mock "$URL" &> .prism.log &
# Wait for server to come online
echo -n "Waiting for server"
@@ -37,5 +37,5 @@ if [ "$1" == "--daemon" ]; then
echo
else
- npm exec --package=@stainless-api/prism-cli@5.8.5 -- prism mock "$URL"
+ npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism mock "$URL"
fi
diff --git a/scripts/test b/scripts/test
index 6b750a74..047bc1db 100755
--- a/scripts/test
+++ b/scripts/test
@@ -43,7 +43,7 @@ elif ! prism_is_running ; then
echo -e "To run the server, pass in the path or url of your OpenAPI"
echo -e "spec to the prism command:"
echo
- echo -e " \$ ${YELLOW}npm exec --package=@stoplight/prism-cli@~5.3.2 -- prism mock path/to/your.openapi.yml${NC}"
+ echo -e " \$ ${YELLOW}npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism mock path/to/your.openapi.yml${NC}"
echo
exit 1
@@ -53,4 +53,4 @@ else
fi
echo "==> Running tests"
-./gradlew test
+./gradlew test "$@"
diff --git a/settings.gradle.kts b/settings.gradle.kts
index 9bb6bb45..0d8d4c7c 100644
--- a/settings.gradle.kts
+++ b/settings.gradle.kts
@@ -1,6 +1,14 @@
rootProject.name = "finch-java-root"
-include("finch-java")
-include("finch-java-client-okhttp")
-include("finch-java-core")
-include("finch-java-example")
+val projectNames = rootDir.listFiles()
+ ?.asSequence()
+ .orEmpty()
+ .filter { file ->
+ file.isDirectory &&
+ file.name.startsWith("finch-java") &&
+ file.listFiles()?.asSequence().orEmpty().any { it.name == "build.gradle.kts" }
+ }
+ .map { it.name }
+ .toList()
+println("projects: $projectNames")
+projectNames.forEach { include(it) }