diff --git a/buildSrc/build.gradle.kts b/buildSrc/build.gradle.kts index 8a1d7a10..d1ed374d 100644 --- a/buildSrc/build.gradle.kts +++ b/buildSrc/build.gradle.kts @@ -1,6 +1,6 @@ plugins { `kotlin-dsl` - kotlin("jvm") version "2.1.0" + kotlin("jvm") version "2.1.10" id("com.vanniktech.maven.publish") version "0.28.0" } @@ -10,7 +10,7 @@ repositories { } dependencies { - implementation("com.diffplug.spotless:spotless-plugin-gradle:6.25.0") - implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.23") + implementation("com.diffplug.spotless:spotless-plugin-gradle:7.0.2") + implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:2.1.10") 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 a2c35b93..597b6e80 100644 --- a/buildSrc/src/main/kotlin/finch.java.gradle.kts +++ b/buildSrc/src/main/kotlin/finch.java.gradle.kts @@ -39,9 +39,13 @@ tasks.named("jar") { } } -tasks.named("test") { +tasks.withType().configureEach { useJUnitPlatform() + // Run tests in parallel to some degree. + maxParallelForks = (Runtime.getRuntime().availableProcessors() / 2).coerceAtLeast(1) + forkEvery = 100 + testLogging { exceptionFormat = TestExceptionFormat.FULL } diff --git a/buildSrc/src/main/kotlin/finch.kotlin.gradle.kts b/buildSrc/src/main/kotlin/finch.kotlin.gradle.kts index c431ae27..9bdebacd 100644 --- a/buildSrc/src/main/kotlin/finch.kotlin.gradle.kts +++ b/buildSrc/src/main/kotlin/finch.kotlin.gradle.kts @@ -1,4 +1,5 @@ import com.diffplug.gradle.spotless.SpotlessExtension +import org.jetbrains.kotlin.gradle.dsl.JvmTarget import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { @@ -20,13 +21,19 @@ configure { } tasks.withType().configureEach { - kotlinOptions { + compilerOptions { freeCompilerArgs = listOf( "-Xjvm-default=all", "-Xjdk-release=1.8", // Suppress deprecation warnings because we may still reference and test deprecated members. "-Xsuppress-warning=DEPRECATION" ) - jvmTarget = "1.8" + jvmTarget.set(JvmTarget.JVM_1_8) } } + +// Run tests in parallel to some degree. +tasks.withType().configureEach { + maxParallelForks = (Runtime.getRuntime().availableProcessors() / 2).coerceAtLeast(1) + forkEvery = 100 +} diff --git a/finch-java-client-okhttp/src/main/kotlin/com/tryfinch/api/client/okhttp/OkHttpClient.kt b/finch-java-client-okhttp/src/main/kotlin/com/tryfinch/api/client/okhttp/OkHttpClient.kt index cd06aa82..7c59fad7 100644 --- a/finch-java-client-okhttp/src/main/kotlin/com/tryfinch/api/client/okhttp/OkHttpClient.kt +++ b/finch-java-client-okhttp/src/main/kotlin/com/tryfinch/api/client/okhttp/OkHttpClient.kt @@ -31,10 +31,7 @@ class OkHttpClient private constructor(private val okHttpClient: okhttp3.OkHttpClient, private val baseUrl: HttpUrl) : HttpClient { - override fun execute( - request: HttpRequest, - requestOptions: RequestOptions, - ): HttpResponse { + override fun execute(request: HttpRequest, requestOptions: RequestOptions): HttpResponse { val call = newCall(request, requestOptions) return try { @@ -120,13 +117,13 @@ private constructor(private val okHttpClient: okhttp3.OkHttpClient, private val ) { builder.header( "X-Stainless-Read-Timeout", - Duration.ofMillis(client.readTimeoutMillis.toLong()).seconds.toString() + Duration.ofMillis(client.readTimeoutMillis.toLong()).seconds.toString(), ) } if (!headers.names().contains("X-Stainless-Timeout") && client.callTimeoutMillis != 0) { builder.header( "X-Stainless-Timeout", - Duration.ofMillis(client.callTimeoutMillis.toLong()).seconds.toString() + Duration.ofMillis(client.callTimeoutMillis.toLong()).seconds.toString(), ) } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/client/FinchClientAsyncImpl.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/client/FinchClientAsyncImpl.kt index 281355ec..4cdf4e25 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/client/FinchClientAsyncImpl.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/client/FinchClientAsyncImpl.kt @@ -25,9 +25,7 @@ import com.tryfinch.api.services.async.SandboxServiceAsyncImpl import com.tryfinch.api.services.async.WebhookServiceAsync import com.tryfinch.api.services.async.WebhookServiceAsyncImpl -class FinchClientAsyncImpl( - private val clientOptions: ClientOptions, -) : FinchClientAsync { +class FinchClientAsyncImpl(private val clientOptions: ClientOptions) : FinchClientAsync { private val clientOptionsWithUserAgent = if (clientOptions.headers.names().contains("User-Agent")) clientOptions diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/client/FinchClientImpl.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/client/FinchClientImpl.kt index 0a953667..85cf90fb 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/client/FinchClientImpl.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/client/FinchClientImpl.kt @@ -25,9 +25,7 @@ import com.tryfinch.api.services.blocking.SandboxServiceImpl import com.tryfinch.api.services.blocking.WebhookService import com.tryfinch.api.services.blocking.WebhookServiceImpl -class FinchClientImpl( - private val clientOptions: ClientOptions, -) : FinchClient { +class FinchClientImpl(private val clientOptions: ClientOptions) : FinchClient { private val clientOptionsWithUserAgent = if (clientOptions.headers.names().contains("User-Agent")) clientOptions diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/core/BaseDeserializer.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/core/BaseDeserializer.kt index cc970627..c850405c 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/core/BaseDeserializer.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/core/BaseDeserializer.kt @@ -18,7 +18,7 @@ abstract class BaseDeserializer(type: KClass) : override fun createContextual( context: DeserializationContext, - property: BeanProperty? + property: BeanProperty?, ): JsonDeserializer { return this } @@ -32,7 +32,7 @@ abstract class BaseDeserializer(type: KClass) : protected fun ObjectCodec.tryDeserialize( node: JsonNode, type: TypeReference, - validate: (T) -> Unit = {} + validate: (T) -> Unit = {}, ): T? { return try { readValue(treeAsTokens(node), type).apply(validate) @@ -46,7 +46,7 @@ abstract class BaseDeserializer(type: KClass) : protected fun ObjectCodec.tryDeserialize( node: JsonNode, type: JavaType, - validate: (T) -> Unit = {} + validate: (T) -> Unit = {}, ): T? { return try { readValue(treeAsTokens(node), type).apply(validate) 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 15542787..f34021de 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 @@ -212,7 +212,7 @@ private constructor( if (!username.isEmpty() && !password.isEmpty()) { headers.put( "Authorization", - "Basic ${Base64.getEncoder().encodeToString("$username:$password".toByteArray())}" + "Basic ${Base64.getEncoder().encodeToString("$username:$password".toByteArray())}", ) } } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/core/HttpRequestBodies.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/core/HttpRequestBodies.kt index 9361c66b..4d3d1862 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/core/HttpRequestBodies.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/core/HttpRequestBodies.kt @@ -10,10 +10,7 @@ import java.io.OutputStream import org.apache.hc.client5.http.entity.mime.MultipartEntityBuilder @JvmSynthetic -internal inline fun json( - jsonMapper: JsonMapper, - value: T, -): HttpRequestBody { +internal inline fun json(jsonMapper: JsonMapper, value: T): HttpRequestBody { return object : HttpRequestBody { private var cachedBytes: ByteArray? = null @@ -49,7 +46,7 @@ internal inline fun json( @JvmSynthetic internal fun multipartFormData( jsonMapper: JsonMapper, - parts: Array?> + parts: Array?>, ): HttpRequestBody { val builder = MultipartEntityBuilder.create() parts.forEach { part -> @@ -66,14 +63,14 @@ internal fun multipartFormData( part.name, buffer.toByteArray(), part.contentType, - part.filename + part.filename, ) } is Boolean -> builder.addTextBody( part.name, if (part.value) "true" else "false", - part.contentType + part.contentType, ) is Int -> builder.addTextBody(part.name, part.value.toString(), part.contentType) is Long -> builder.addTextBody(part.name, part.value.toString(), part.contentType) diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/core/PrepareRequest.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/core/PrepareRequest.kt index 974ae9d8..6e1aaafb 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/core/PrepareRequest.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/core/PrepareRequest.kt @@ -17,7 +17,7 @@ internal fun HttpRequest.prepare(clientOptions: ClientOptions, params: Params): @JvmSynthetic internal fun HttpRequest.prepareAsync( clientOptions: ClientOptions, - params: Params + params: Params, ): CompletableFuture = // This async version exists to make it easier to add async specific preparation logic in the // future. diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/core/RequestOptions.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/core/RequestOptions.kt index b31943e2..cee1a369 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/core/RequestOptions.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/core/RequestOptions.kt @@ -2,11 +2,7 @@ package com.tryfinch.api.core import java.time.Duration -class RequestOptions -private constructor( - val responseValidation: Boolean?, - val timeout: Duration?, -) { +class RequestOptions private constructor(val responseValidation: Boolean?, val timeout: Duration?) { fun applyDefaults(options: RequestOptions): RequestOptions { return RequestOptions( responseValidation = this.responseValidation ?: options.responseValidation, diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/core/Values.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/core/Values.kt index 16ad91e7..c4680e54 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/core/Values.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/core/Values.kt @@ -287,7 +287,7 @@ class JsonMissing : JsonValue() { override fun serialize( value: JsonMissing, generator: JsonGenerator, - provider: SerializerProvider + provider: SerializerProvider, ) { throw RuntimeException("JsonMissing cannot be serialized") } @@ -422,10 +422,7 @@ private constructor( } @JacksonAnnotationsInside -@JsonInclude( - JsonInclude.Include.CUSTOM, - valueFilter = JsonField.IsMissing::class, -) +@JsonInclude(JsonInclude.Include.CUSTOM, valueFilter = JsonField.IsMissing::class) annotation class ExcludeMissing @JacksonAnnotationsInside @@ -434,7 +431,7 @@ annotation class ExcludeMissing isGetterVisibility = Visibility.NONE, setterVisibility = Visibility.NONE, creatorVisibility = Visibility.NONE, - fieldVisibility = Visibility.NONE + fieldVisibility = Visibility.NONE, ) annotation class NoAutoDetect @@ -443,7 +440,7 @@ internal constructor( val name: String, val value: T, val contentType: ContentType, - val filename: String? = null + val filename: String? = null, ) { private var hashCode: Int = 0 @@ -462,7 +459,7 @@ internal constructor( is Long -> value is Double -> value else -> value?.hashCode() - } + }, ) } return hashCode @@ -496,7 +493,7 @@ internal constructor( internal fun fromString( name: String, value: String, - contentType: ContentType + contentType: ContentType, ): MultipartFormValue = MultipartFormValue(name, value, contentType) internal fun fromBoolean( @@ -520,14 +517,14 @@ internal constructor( internal fun fromEnum( name: String, value: T, - contentType: ContentType + contentType: ContentType, ): MultipartFormValue = MultipartFormValue(name, value, contentType) internal fun fromByteArray( name: String, value: ByteArray, contentType: ContentType, - filename: String? = null + filename: String? = null, ): MultipartFormValue = MultipartFormValue(name, value, contentType, filename) } } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/core/http/Headers.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/core/http/Headers.kt index 1a95b473..b3b56dec 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/core/http/Headers.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/core/http/Headers.kt @@ -6,7 +6,7 @@ import java.util.TreeMap class Headers private constructor( private val map: Map>, - @get:JvmName("size") val size: Int + @get:JvmName("size") val size: Int, ) { fun isEmpty(): Boolean = map.isEmpty() @@ -74,7 +74,7 @@ private constructor( values.toImmutable() } .toImmutable(), - size + size, ) } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/core/http/PhantomReachableClosingHttpClient.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/core/http/PhantomReachableClosingHttpClient.kt index 82a11397..c0fcdc44 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/core/http/PhantomReachableClosingHttpClient.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/core/http/PhantomReachableClosingHttpClient.kt @@ -19,7 +19,7 @@ internal class PhantomReachableClosingHttpClient(private val httpClient: HttpCli override fun executeAsync( request: HttpRequest, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): CompletableFuture = httpClient.executeAsync(request, requestOptions) override fun close() = httpClient.close() diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/core/http/QueryParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/core/http/QueryParams.kt index 73766d6a..e35ea929 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/core/http/QueryParams.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/core/http/QueryParams.kt @@ -5,7 +5,7 @@ import com.tryfinch.api.core.toImmutable class QueryParams private constructor( private val map: Map>, - @get:JvmName("size") val size: Int + @get:JvmName("size") val size: Int, ) { fun isEmpty(): Boolean = map.isEmpty() 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 29095887..77823c9b 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 @@ -28,10 +28,7 @@ private constructor( private val idempotencyHeader: String?, ) : HttpClient { - override fun execute( - request: HttpRequest, - requestOptions: RequestOptions, - ): HttpResponse { + override fun execute(request: HttpRequest, requestOptions: RequestOptions): HttpResponse { if (!isRetryable(request) || maxRetries <= 0) { return httpClient.execute(request, requestOptions) } @@ -100,7 +97,7 @@ private constructor( .handleAsync( fun( response: HttpResponse?, - throwable: Throwable? + throwable: Throwable?, ): CompletableFuture { if (response != null) { if (++retries > maxRetries || !shouldRetry(response)) { @@ -120,7 +117,7 @@ private constructor( return sleepAsync(backoffMillis.toMillis()).thenCompose { executeWithRetries(requestWithRetryCount, requestOptions) } - }, + } ) { // Run in the same thread. it.run() @@ -200,8 +197,8 @@ private constructor( OffsetDateTime.now(clock), OffsetDateTime.parse( retryAfter, - DateTimeFormatter.RFC_1123_DATE_TIME - ) + DateTimeFormatter.RFC_1123_DATE_TIME, + ), ) } catch (e: DateTimeParseException) { null @@ -239,7 +236,7 @@ private constructor( future.complete(null) } }, - millis + millis, ) return future } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/errors/BadRequestException.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/errors/BadRequestException.kt index c688913c..1375ba00 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/errors/BadRequestException.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/errors/BadRequestException.kt @@ -2,8 +2,5 @@ package com.tryfinch.api.errors import com.tryfinch.api.core.http.Headers -class BadRequestException( - headers: Headers, - body: String, - error: FinchError, -) : FinchServiceException(400, headers, body, error) +class BadRequestException(headers: Headers, body: String, error: FinchError) : + FinchServiceException(400, headers, body, error) diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/errors/FinchError.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/errors/FinchError.kt index 7a51327d..db1b299f 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/errors/FinchError.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/errors/FinchError.kt @@ -20,7 +20,7 @@ private constructor( @ExcludeMissing @JsonAnySetter @get:JvmName("additionalProperties") - val additionalProperties: Map = immutableEmptyMap(), + val additionalProperties: Map = immutableEmptyMap() ) { fun toBuilder() = Builder().from(this) diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/errors/FinchServiceException.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/errors/FinchServiceException.kt index 1a4c2000..9fa5ecc4 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/errors/FinchServiceException.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/errors/FinchServiceException.kt @@ -10,7 +10,7 @@ constructor( private val body: String, private val error: FinchError, message: String = "$statusCode: $error", - cause: Throwable? = null + cause: Throwable? = null, ) : FinchException(message, cause) { fun statusCode(): Int = statusCode diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/errors/InternalServerException.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/errors/InternalServerException.kt index 1b08ca2a..8701e4a7 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/errors/InternalServerException.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/errors/InternalServerException.kt @@ -2,9 +2,5 @@ package com.tryfinch.api.errors import com.tryfinch.api.core.http.Headers -class InternalServerException( - statusCode: Int, - headers: Headers, - body: String, - error: FinchError, -) : FinchServiceException(statusCode, headers, body, error) +class InternalServerException(statusCode: Int, headers: Headers, body: String, error: FinchError) : + FinchServiceException(statusCode, headers, body, error) diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/errors/NotFoundException.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/errors/NotFoundException.kt index 5a3bbcd9..370a60c4 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/errors/NotFoundException.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/errors/NotFoundException.kt @@ -2,8 +2,5 @@ package com.tryfinch.api.errors import com.tryfinch.api.core.http.Headers -class NotFoundException( - headers: Headers, - body: String, - error: FinchError, -) : FinchServiceException(404, headers, body, error) +class NotFoundException(headers: Headers, body: String, error: FinchError) : + FinchServiceException(404, headers, body, error) diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/errors/PermissionDeniedException.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/errors/PermissionDeniedException.kt index 5f50ddd5..36058d72 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/errors/PermissionDeniedException.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/errors/PermissionDeniedException.kt @@ -2,8 +2,5 @@ package com.tryfinch.api.errors import com.tryfinch.api.core.http.Headers -class PermissionDeniedException( - headers: Headers, - body: String, - error: FinchError, -) : FinchServiceException(403, headers, body, error) +class PermissionDeniedException(headers: Headers, body: String, error: FinchError) : + FinchServiceException(403, headers, body, error) diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/errors/RateLimitException.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/errors/RateLimitException.kt index 7a54435d..f14024da 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/errors/RateLimitException.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/errors/RateLimitException.kt @@ -2,8 +2,5 @@ package com.tryfinch.api.errors import com.tryfinch.api.core.http.Headers -class RateLimitException( - headers: Headers, - body: String, - error: FinchError, -) : FinchServiceException(429, headers, body, error) +class RateLimitException(headers: Headers, body: String, error: FinchError) : + FinchServiceException(429, headers, body, error) diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/errors/UnauthorizedException.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/errors/UnauthorizedException.kt index d762046f..a060f3d4 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/errors/UnauthorizedException.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/errors/UnauthorizedException.kt @@ -2,8 +2,5 @@ package com.tryfinch.api.errors import com.tryfinch.api.core.http.Headers -class UnauthorizedException( - headers: Headers, - body: String, - error: FinchError, -) : FinchServiceException(401, headers, body, error) +class UnauthorizedException(headers: Headers, body: String, error: FinchError) : + FinchServiceException(401, headers, body, error) diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/errors/UnprocessableEntityException.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/errors/UnprocessableEntityException.kt index 34f27cb7..6efe853c 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/errors/UnprocessableEntityException.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/errors/UnprocessableEntityException.kt @@ -2,8 +2,5 @@ package com.tryfinch.api.errors import com.tryfinch.api.core.http.Headers -class UnprocessableEntityException( - headers: Headers, - body: String, - error: FinchError, -) : FinchServiceException(422, headers, body, error) +class UnprocessableEntityException(headers: Headers, body: String, error: FinchError) : + FinchServiceException(422, headers, body, error) 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 030c0f24..ef2aee8b 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 @@ -241,9 +241,7 @@ private constructor( class AuthenticationType @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + private constructor(private val value: JsonField) : Enum { /** * Returns this class instance's raw value. 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 7b811c69..b47cd3a9 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 @@ -1218,11 +1218,7 @@ private constructor( } fun build(): Departments = - Departments( - name, - parent, - additionalProperties.toImmutable(), - ) + Departments(name, parent, additionalProperties.toImmutable()) } @NoAutoDetect @@ -1446,11 +1442,7 @@ private constructor( } fun build(): Entity = - Entity( - subtype, - type, - additionalProperties.toImmutable(), - ) + Entity(subtype, type, additionalProperties.toImmutable()) } override fun equals(other: Any?): Boolean { @@ -2221,11 +2213,7 @@ private constructor( } fun build(): Paging = - Paging( - count, - offset, - additionalProperties.toImmutable(), - ) + Paging(count, offset, additionalProperties.toImmutable()) } override fun equals(other: Any?): Boolean { @@ -2863,11 +2851,7 @@ private constructor( } fun build(): Employment = - Employment( - subtype, - type, - additionalProperties.toImmutable(), - ) + Employment(subtype, type, additionalProperties.toImmutable()) } override fun equals(other: Any?): Boolean { @@ -3003,12 +2987,7 @@ private constructor( } fun build(): Income = - Income( - amount, - currency, - unit, - additionalProperties.toImmutable(), - ) + Income(amount, currency, unit, additionalProperties.toImmutable()) } override fun equals(other: Any?): Boolean { @@ -3751,11 +3730,7 @@ private constructor( } fun build(): Emails = - Emails( - data, - type, - additionalProperties.toImmutable(), - ) + Emails(data, type, additionalProperties.toImmutable()) } override fun equals(other: Any?): Boolean { @@ -3871,11 +3846,7 @@ private constructor( } fun build(): PhoneNumbers = - PhoneNumbers( - data, - type, - additionalProperties.toImmutable(), - ) + PhoneNumbers(data, type, additionalProperties.toImmutable()) } override fun equals(other: Any?): Boolean { @@ -5912,11 +5883,7 @@ private constructor( } fun build(): PayPeriod = - PayPeriod( - endDate, - startDate, - additionalProperties.toImmutable(), - ) + PayPeriod(endDate, startDate, additionalProperties.toImmutable()) } override fun equals(other: Any?): Boolean { @@ -5974,11 +5941,8 @@ private constructor( } /** The type of authentication method. */ - class Type - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class Type @JsonCreator private constructor(private val value: JsonField) : + Enum { /** * Returns this class instance's raw value. @@ -6122,11 +6086,7 @@ private constructor( "Data{authenticationMethod=$authenticationMethod, status=$status, additionalProperties=$additionalProperties}" } - class EventType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class EventType @JsonCreator private constructor(private val value: JsonField) : Enum { /** * Returns this class instance's raw value. @@ -6147,7 +6107,7 @@ private constructor( /** An enum containing [EventType]'s known values. */ enum class Known { - ACCOUNT_UPDATED, + ACCOUNT_UPDATED } /** 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 0d82edfa..869a9686 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 @@ -226,9 +226,7 @@ private constructor( class AuthenticationType @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + private constructor(private val value: JsonField) : Enum { /** * Returns this class instance's raw value. 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 83f762e9..7f043a2d 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 @@ -412,11 +412,7 @@ private constructor( "Params{individualId=$individualId, additionalProperties=$additionalProperties}" } - class Status - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class Status @JsonCreator private constructor(private val value: JsonField) : Enum { /** * Returns this class instance's raw value. @@ -528,11 +524,7 @@ private constructor( } /** The type of automated job */ - class Type - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class Type @JsonCreator private constructor(private val value: JsonField) : Enum { /** * Returns this class instance's raw value. 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 dc207e16..a4be659e 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 @@ -118,19 +118,11 @@ private constructor( } fun build(): BenefitContribution = - BenefitContribution( - amount, - type, - additionalProperties.toImmutable(), - ) + BenefitContribution(amount, type, additionalProperties.toImmutable()) } /** Contribution type. */ - class Type - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class Type @JsonCreator private constructor(private val value: JsonField) : Enum { /** * Returns this class instance's raw value. 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 6a1b7702..11fe8c51 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 @@ -493,9 +493,7 @@ private constructor( class CompanyContribution @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + private constructor(private val value: JsonField) : Enum { /** * Returns this class instance's raw value. @@ -590,9 +588,7 @@ private constructor( class EmployeeDeduction @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + private constructor(private val value: JsonField) : Enum { /** * Returns this class instance's raw value. @@ -686,9 +682,7 @@ private constructor( class HsaContributionLimit @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + private constructor(private val value: JsonField) : Enum { /** * Returns this class instance's raw value. 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 a574a104..07c02684 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 @@ -7,11 +7,8 @@ import com.tryfinch.api.core.Enum import com.tryfinch.api.core.JsonField import com.tryfinch.api.errors.FinchInvalidDataException -class BenefitFrequency -@JsonCreator -private constructor( - private val value: JsonField, -) : Enum { +class BenefitFrequency @JsonCreator private constructor(private val value: JsonField) : + Enum { /** * Returns this class instance's raw value. 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 dd5abd4c..68849de4 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 @@ -8,11 +8,7 @@ import com.tryfinch.api.core.JsonField import com.tryfinch.api.errors.FinchInvalidDataException /** Type of benefit. */ -class BenefitType -@JsonCreator -private constructor( - private val value: JsonField, -) : Enum { +class BenefitType @JsonCreator private constructor(private val value: JsonField) : Enum { /** * Returns this class instance's raw value. 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 0314da32..2704e01c 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 @@ -556,11 +556,8 @@ private constructor( } /** The type of bank account. */ - class AccountType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class AccountType @JsonCreator private constructor(private val value: JsonField) : + Enum { /** * Returns this class instance's raw value. @@ -769,12 +766,7 @@ private constructor( keys.forEach(::removeAdditionalProperty) } - fun build(): Department = - Department( - name, - parent, - additionalProperties.toImmutable(), - ) + fun build(): Department = Department(name, parent, additionalProperties.toImmutable()) } /** The parent department, if present. */ @@ -998,20 +990,12 @@ private constructor( keys.forEach(::removeAdditionalProperty) } - fun build(): Entity = - Entity( - subtype, - type, - additionalProperties.toImmutable(), - ) + fun build(): Entity = Entity(subtype, type, additionalProperties.toImmutable()) } /** The tax payer subtype of the company. */ - class Subtype - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class Subtype @JsonCreator private constructor(private val value: JsonField) : + Enum { /** * Returns this class instance's raw value. @@ -1108,11 +1092,7 @@ private constructor( } /** The tax payer type of the company. */ - class Type - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class Type @JsonCreator private constructor(private val value: JsonField) : Enum { /** * Returns this class instance's raw value. 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 1b603827..5c0ecbf5 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 @@ -220,7 +220,7 @@ private constructor( @JsonCreator private constructor( @JsonAnySetter - private val additionalProperties: Map = immutableEmptyMap(), + private val additionalProperties: Map = immutableEmptyMap() ) { @JsonAnyGetter @@ -293,11 +293,7 @@ private constructor( override fun toString() = "Data{additionalProperties=$additionalProperties}" } - class EventType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class EventType @JsonCreator private constructor(private val value: JsonField) : Enum { /** * Returns this class instance's raw value. @@ -318,7 +314,7 @@ private constructor( /** An enum containing [EventType]'s known values. */ enum class Known { - COMPANY_UPDATED, + COMPANY_UPDATED } /** 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 94219b90..8c03fd72 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 @@ -539,11 +539,8 @@ private constructor( } /** The type of bank account. */ - class AccountType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class AccountType @JsonCreator private constructor(private val value: JsonField) : + Enum { /** * Returns this class instance's raw value. @@ -752,12 +749,7 @@ private constructor( keys.forEach(::removeAdditionalProperty) } - fun build(): Department = - Department( - name, - parent, - additionalProperties.toImmutable(), - ) + fun build(): Department = Department(name, parent, additionalProperties.toImmutable()) } /** The parent department, if present. */ @@ -981,20 +973,12 @@ private constructor( keys.forEach(::removeAdditionalProperty) } - fun build(): Entity = - Entity( - subtype, - type, - additionalProperties.toImmutable(), - ) + fun build(): Entity = Entity(subtype, type, additionalProperties.toImmutable()) } /** The tax payer subtype of the company. */ - class Subtype - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class Subtype @JsonCreator private constructor(private val value: JsonField) : + Enum { /** * Returns this class instance's raw value. @@ -1091,11 +1075,7 @@ private constructor( } /** The tax payer type of the company. */ - class Type - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class Type @JsonCreator private constructor(private val value: JsonField) : Enum { /** * Returns this class instance's raw value. 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 29c5f4e9..da8025e5 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 @@ -615,11 +615,8 @@ private constructor( } /** The Finch products that can be requested during the Connect flow. */ - class ConnectProducts - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class ConnectProducts @JsonCreator private constructor(private val value: JsonField) : + Enum { /** * Returns this class instance's raw value. @@ -841,18 +838,11 @@ private constructor( } fun build(): Integration = - Integration( - authMethod, - provider, - additionalProperties.toImmutable(), - ) + Integration(authMethod, provider, additionalProperties.toImmutable()) } - class AuthMethod - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class AuthMethod @JsonCreator private constructor(private val value: JsonField) : + Enum { /** * Returns this class instance's raw value. @@ -973,11 +963,7 @@ private constructor( "Integration{authMethod=$authMethod, provider=$provider, additionalProperties=$additionalProperties}" } - class Sandbox - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class Sandbox @JsonCreator private constructor(private val value: JsonField) : Enum { /** * Returns this class instance's raw value. 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 1073bff0..8483632b 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 @@ -498,11 +498,8 @@ private constructor( } /** The Finch products that can be requested during the Connect flow. */ - class ConnectProducts - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class ConnectProducts @JsonCreator private constructor(private val value: JsonField) : + Enum { /** * Returns this class instance's raw value. 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 49be8e42..d98a0dbe 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 @@ -257,9 +257,7 @@ private constructor( class AuthenticationType @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + private constructor(private val value: JsonField) : Enum { /** * Returns this class instance's raw value. 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 b87840e6..10a9db26 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 @@ -7,11 +7,8 @@ import com.tryfinch.api.core.Enum import com.tryfinch.api.core.JsonField import com.tryfinch.api.errors.FinchInvalidDataException -class ConnectionStatusType -@JsonCreator -private constructor( - private val value: JsonField, -) : Enum { +class ConnectionStatusType @JsonCreator private constructor(private val value: JsonField) : + Enum { /** * Returns this class instance's raw value. 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 312150e0..9893ffb1 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 @@ -354,11 +354,7 @@ private constructor( } /** The type of application associated with a token. */ - class ClientType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class ClientType @JsonCreator private constructor(private val value: JsonField) : Enum { /** * Returns this class instance's raw value. @@ -458,11 +454,8 @@ private constructor( * - `provider` - connection to an external provider * - `finch` - finch-generated data. */ - class ConnectionType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class ConnectionType @JsonCreator private constructor(private val value: JsonField) : + Enum { /** * Returns this class instance's raw value. 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 182bc3e7..c526676e 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 @@ -90,7 +90,7 @@ private constructor( fun build(): CreateCompanyBenefitsResponse = CreateCompanyBenefitsResponse( checkRequired("benefitId", benefitId), - additionalProperties.toImmutable() + additionalProperties.toImmutable(), ) } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/DirectoryEvent.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/DirectoryEvent.kt index 750c01b2..32d36987 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/DirectoryEvent.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/DirectoryEvent.kt @@ -315,11 +315,7 @@ private constructor( "Data{individualId=$individualId, additionalProperties=$additionalProperties}" } - class EventType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class EventType @JsonCreator private constructor(private val value: JsonField) : Enum { /** * Returns this class instance's raw value. diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/DocumentResponse.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/DocumentResponse.kt index 6d71abd4..d79cfa9a 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/DocumentResponse.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/DocumentResponse.kt @@ -200,22 +200,11 @@ private constructor( } fun build(): DocumentResponse = - DocumentResponse( - id, - individualId, - type, - url, - year, - additionalProperties.toImmutable(), - ) + DocumentResponse(id, individualId, type, url, year, additionalProperties.toImmutable()) } /** The type of document. */ - class Type - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class Type @JsonCreator private constructor(private val value: JsonField) : Enum { /** * Returns this class instance's raw value. diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/DocumentRetreiveResponse.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/DocumentRetreiveResponse.kt index 83153e62..4fa2026a 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/DocumentRetreiveResponse.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/DocumentRetreiveResponse.kt @@ -188,7 +188,7 @@ private constructor( override fun serialize( value: DocumentRetreiveResponse, generator: JsonGenerator, - provider: SerializerProvider + provider: SerializerProvider, ) { when { value.w42020 != null -> generator.writeObject(value.w42020) diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/EmploymentData.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/EmploymentData.kt index d0d6ea8d..5867cea9 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/EmploymentData.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/EmploymentData.kt @@ -697,12 +697,7 @@ private constructor( keys.forEach(::removeAdditionalProperty) } - fun build(): CustomField = - CustomField( - name, - value, - additionalProperties.toImmutable(), - ) + fun build(): CustomField = CustomField(name, value, additionalProperties.toImmutable()) } override fun equals(other: Any?): Boolean { @@ -938,23 +933,15 @@ private constructor( keys.forEach(::removeAdditionalProperty) } - fun build(): Employment = - Employment( - subtype, - type, - additionalProperties.toImmutable(), - ) + fun build(): Employment = Employment(subtype, type, additionalProperties.toImmutable()) } /** * The secondary employment type of the individual. Options: `full_time`, `part_time`, * `intern`, `temp`, `seasonal` and `individual_contractor`. */ - class Subtype - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class Subtype @JsonCreator private constructor(private val value: JsonField) : + Enum { /** * Returns this class instance's raw value. @@ -1069,11 +1056,7 @@ private constructor( } /** The main employment type of the individual. */ - class Type - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class Type @JsonCreator private constructor(private val value: JsonField) : Enum { /** * Returns this class instance's raw value. @@ -1183,11 +1166,8 @@ private constructor( * The detailed employment status of the individual. Available options: `active`, `deceased`, * `leave`, `onboarding`, `prehire`, `retired`, `terminated`. */ - class EmploymentStatus - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class EmploymentStatus @JsonCreator private constructor(private val value: JsonField) : + Enum { /** * Returns this class instance's raw value. diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/EmploymentDataResponse.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/EmploymentDataResponse.kt index 2b83375e..28da48df 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/EmploymentDataResponse.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/EmploymentDataResponse.kt @@ -119,12 +119,7 @@ private constructor( } fun build(): EmploymentDataResponse = - EmploymentDataResponse( - body, - code, - individualId, - additionalProperties.toImmutable(), - ) + EmploymentDataResponse(body, code, individualId, additionalProperties.toImmutable()) } override fun equals(other: Any?): Boolean { diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/EmploymentEvent.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/EmploymentEvent.kt index f9bd150a..424082ff 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/EmploymentEvent.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/EmploymentEvent.kt @@ -315,11 +315,7 @@ private constructor( "Data{individualId=$individualId, additionalProperties=$additionalProperties}" } - class EventType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class EventType @JsonCreator private constructor(private val value: JsonField) : Enum { /** * Returns this class instance's raw value. diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/EmploymentUpdateResponse.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/EmploymentUpdateResponse.kt index 4ea8b3f5..afaf2187 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/EmploymentUpdateResponse.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/EmploymentUpdateResponse.kt @@ -646,12 +646,7 @@ private constructor( keys.forEach(::removeAdditionalProperty) } - fun build(): CustomField = - CustomField( - name, - value, - additionalProperties.toImmutable(), - ) + fun build(): CustomField = CustomField(name, value, additionalProperties.toImmutable()) } override fun equals(other: Any?): Boolean { @@ -887,23 +882,15 @@ private constructor( keys.forEach(::removeAdditionalProperty) } - fun build(): Employment = - Employment( - subtype, - type, - additionalProperties.toImmutable(), - ) + fun build(): Employment = Employment(subtype, type, additionalProperties.toImmutable()) } /** * The secondary employment type of the individual. Options: `full_time`, `part_time`, * `intern`, `temp`, `seasonal` and `individual_contractor`. */ - class Subtype - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class Subtype @JsonCreator private constructor(private val value: JsonField) : + Enum { /** * Returns this class instance's raw value. @@ -1018,11 +1005,7 @@ private constructor( } /** The main employment type of the individual. */ - class Type - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class Type @JsonCreator private constructor(private val value: JsonField) : Enum { /** * Returns this class instance's raw value. @@ -1129,11 +1112,8 @@ private constructor( } /** The detailed employment status of the individual. */ - class EmploymentStatus - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class EmploymentStatus @JsonCreator private constructor(private val value: JsonField) : + Enum { /** * Returns this class instance's raw value. diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/EnrolledIndividual.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/EnrolledIndividual.kt index 7ac3fc5c..6b463cfa 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/EnrolledIndividual.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/EnrolledIndividual.kt @@ -123,12 +123,7 @@ private constructor( } fun build(): EnrolledIndividual = - EnrolledIndividual( - body, - code, - individualId, - additionalProperties.toImmutable(), - ) + EnrolledIndividual(body, code, individualId, additionalProperties.toImmutable()) } @NoAutoDetect @@ -252,13 +247,7 @@ private constructor( keys.forEach(::removeAdditionalProperty) } - fun build(): Body = - Body( - finchCode, - message, - name, - additionalProperties.toImmutable(), - ) + fun build(): Body = Body(finchCode, message, name, additionalProperties.toImmutable()) } override fun equals(other: Any?): Boolean { @@ -280,11 +269,7 @@ private constructor( } /** HTTP status code. Either 201 or 200 */ - class Code - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class Code @JsonCreator private constructor(private val value: JsonField) : Enum { /** * Returns this class instance's raw value. diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisBenefitIndividualRetrieveManyBenefitsPage.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisBenefitIndividualRetrieveManyBenefitsPage.kt index 8af049c0..d00f2f3a 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisBenefitIndividualRetrieveManyBenefitsPage.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisBenefitIndividualRetrieveManyBenefitsPage.kt @@ -64,13 +64,8 @@ private constructor( fun of( individualsService: IndividualService, params: HrisBenefitIndividualRetrieveManyBenefitsParams, - response: Response - ) = - HrisBenefitIndividualRetrieveManyBenefitsPage( - individualsService, - params, - response, - ) + response: Response, + ) = HrisBenefitIndividualRetrieveManyBenefitsPage(individualsService, params, response) } @NoAutoDetect @@ -146,9 +141,8 @@ private constructor( } } - class AutoPager( - private val firstPage: HrisBenefitIndividualRetrieveManyBenefitsPage, - ) : Iterable { + class AutoPager(private val firstPage: HrisBenefitIndividualRetrieveManyBenefitsPage) : + Iterable { override fun iterator(): Iterator = iterator { var page = firstPage diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisBenefitIndividualRetrieveManyBenefitsPageAsync.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisBenefitIndividualRetrieveManyBenefitsPageAsync.kt index 3b65576e..6c87b64f 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisBenefitIndividualRetrieveManyBenefitsPageAsync.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisBenefitIndividualRetrieveManyBenefitsPageAsync.kt @@ -68,13 +68,8 @@ private constructor( fun of( individualsService: IndividualServiceAsync, params: HrisBenefitIndividualRetrieveManyBenefitsParams, - response: Response - ) = - HrisBenefitIndividualRetrieveManyBenefitsPageAsync( - individualsService, - params, - response, - ) + response: Response, + ) = HrisBenefitIndividualRetrieveManyBenefitsPageAsync(individualsService, params, response) } @NoAutoDetect @@ -150,18 +145,16 @@ private constructor( } } - class AutoPager( - private val firstPage: HrisBenefitIndividualRetrieveManyBenefitsPageAsync, - ) { + class AutoPager(private val firstPage: HrisBenefitIndividualRetrieveManyBenefitsPageAsync) { fun forEach( action: Predicate, - executor: Executor + executor: Executor, ): CompletableFuture { fun CompletableFuture> .forEach( action: (IndividualBenefit) -> Boolean, - executor: Executor + executor: Executor, ): CompletableFuture = thenComposeAsync( { page -> @@ -170,7 +163,7 @@ private constructor( .map { it.getNextPage().forEach(action, executor) } .orElseGet { CompletableFuture.completedFuture(null) } }, - executor + executor, ) return CompletableFuture.completedFuture(Optional.of(firstPage)) .forEach(action::test, executor) diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisBenefitIndividualUnenrollManyPage.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisBenefitIndividualUnenrollManyPage.kt index cdb9f7ac..fbd19014 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisBenefitIndividualUnenrollManyPage.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisBenefitIndividualUnenrollManyPage.kt @@ -64,13 +64,8 @@ private constructor( fun of( individualsService: IndividualService, params: HrisBenefitIndividualUnenrollManyParams, - response: Response - ) = - HrisBenefitIndividualUnenrollManyPage( - individualsService, - params, - response, - ) + response: Response, + ) = HrisBenefitIndividualUnenrollManyPage(individualsService, params, response) } @NoAutoDetect @@ -146,9 +141,8 @@ private constructor( } } - class AutoPager( - private val firstPage: HrisBenefitIndividualUnenrollManyPage, - ) : Iterable { + class AutoPager(private val firstPage: HrisBenefitIndividualUnenrollManyPage) : + Iterable { override fun iterator(): Iterator = iterator { var page = firstPage diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisBenefitIndividualUnenrollManyPageAsync.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisBenefitIndividualUnenrollManyPageAsync.kt index fafba6a4..2540f64e 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisBenefitIndividualUnenrollManyPageAsync.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisBenefitIndividualUnenrollManyPageAsync.kt @@ -67,13 +67,8 @@ private constructor( fun of( individualsService: IndividualServiceAsync, params: HrisBenefitIndividualUnenrollManyParams, - response: Response - ) = - HrisBenefitIndividualUnenrollManyPageAsync( - individualsService, - params, - response, - ) + response: Response, + ) = HrisBenefitIndividualUnenrollManyPageAsync(individualsService, params, response) } @NoAutoDetect @@ -149,17 +144,15 @@ private constructor( } } - class AutoPager( - private val firstPage: HrisBenefitIndividualUnenrollManyPageAsync, - ) { + class AutoPager(private val firstPage: HrisBenefitIndividualUnenrollManyPageAsync) { fun forEach( action: Predicate, - executor: Executor + executor: Executor, ): CompletableFuture { fun CompletableFuture>.forEach( action: (UnenrolledIndividual) -> Boolean, - executor: Executor + executor: Executor, ): CompletableFuture = thenComposeAsync( { page -> @@ -168,7 +161,7 @@ private constructor( .map { it.getNextPage().forEach(action, executor) } .orElseGet { CompletableFuture.completedFuture(null) } }, - executor + executor, ) return CompletableFuture.completedFuture(Optional.of(firstPage)) .forEach(action::test, executor) diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisBenefitIndividualUnenrollManyParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisBenefitIndividualUnenrollManyParams.kt index 30914a92..17e72f0c 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisBenefitIndividualUnenrollManyParams.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisBenefitIndividualUnenrollManyParams.kt @@ -159,7 +159,7 @@ private constructor( fun build(): HrisBenefitIndividualUnenrollManyBody = HrisBenefitIndividualUnenrollManyBody( (individualIds ?: JsonMissing.of()).map { it.toImmutable() }, - additionalProperties.toImmutable() + additionalProperties.toImmutable(), ) } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisBenefitListPage.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisBenefitListPage.kt index dcfd510d..b2a4c5d6 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisBenefitListPage.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisBenefitListPage.kt @@ -62,11 +62,7 @@ private constructor( @JvmStatic fun of(benefitsService: BenefitService, params: HrisBenefitListParams, response: Response) = - HrisBenefitListPage( - benefitsService, - params, - response, - ) + HrisBenefitListPage(benefitsService, params, response) } @NoAutoDetect @@ -142,9 +138,7 @@ private constructor( } } - class AutoPager( - private val firstPage: HrisBenefitListPage, - ) : Iterable { + class AutoPager(private val firstPage: HrisBenefitListPage) : Iterable { override fun iterator(): Iterator = iterator { var page = firstPage diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisBenefitListPageAsync.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisBenefitListPageAsync.kt index 600505e0..fcd50f1f 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisBenefitListPageAsync.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisBenefitListPageAsync.kt @@ -67,13 +67,8 @@ private constructor( fun of( benefitsService: BenefitServiceAsync, params: HrisBenefitListParams, - response: Response - ) = - HrisBenefitListPageAsync( - benefitsService, - params, - response, - ) + response: Response, + ) = HrisBenefitListPageAsync(benefitsService, params, response) } @NoAutoDetect @@ -149,17 +144,15 @@ private constructor( } } - class AutoPager( - private val firstPage: HrisBenefitListPageAsync, - ) { + class AutoPager(private val firstPage: HrisBenefitListPageAsync) { fun forEach( action: Predicate, - executor: Executor + executor: Executor, ): CompletableFuture { fun CompletableFuture>.forEach( action: (CompanyBenefit) -> Boolean, - executor: Executor + executor: Executor, ): CompletableFuture = thenComposeAsync( { page -> @@ -168,7 +161,7 @@ private constructor( .map { it.getNextPage().forEach(action, executor) } .orElseGet { CompletableFuture.completedFuture(null) } }, - executor + executor, ) return CompletableFuture.completedFuture(Optional.of(firstPage)) .forEach(action::test, executor) diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisBenefitListSupportedBenefitsPage.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisBenefitListSupportedBenefitsPage.kt index 25e77547..5e65cc88 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisBenefitListSupportedBenefitsPage.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisBenefitListSupportedBenefitsPage.kt @@ -64,13 +64,8 @@ private constructor( fun of( benefitsService: BenefitService, params: HrisBenefitListSupportedBenefitsParams, - response: Response - ) = - HrisBenefitListSupportedBenefitsPage( - benefitsService, - params, - response, - ) + response: Response, + ) = HrisBenefitListSupportedBenefitsPage(benefitsService, params, response) } @NoAutoDetect @@ -146,9 +141,8 @@ private constructor( } } - class AutoPager( - private val firstPage: HrisBenefitListSupportedBenefitsPage, - ) : Iterable { + class AutoPager(private val firstPage: HrisBenefitListSupportedBenefitsPage) : + Iterable { override fun iterator(): Iterator = iterator { var page = firstPage diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisBenefitListSupportedBenefitsPageAsync.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisBenefitListSupportedBenefitsPageAsync.kt index add12868..e21eb7f7 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisBenefitListSupportedBenefitsPageAsync.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisBenefitListSupportedBenefitsPageAsync.kt @@ -67,13 +67,8 @@ private constructor( fun of( benefitsService: BenefitServiceAsync, params: HrisBenefitListSupportedBenefitsParams, - response: Response - ) = - HrisBenefitListSupportedBenefitsPageAsync( - benefitsService, - params, - response, - ) + response: Response, + ) = HrisBenefitListSupportedBenefitsPageAsync(benefitsService, params, response) } @NoAutoDetect @@ -149,17 +144,15 @@ private constructor( } } - class AutoPager( - private val firstPage: HrisBenefitListSupportedBenefitsPageAsync, - ) { + class AutoPager(private val firstPage: HrisBenefitListSupportedBenefitsPageAsync) { fun forEach( action: Predicate, - executor: Executor + executor: Executor, ): CompletableFuture { fun CompletableFuture>.forEach( action: (SupportedBenefit) -> Boolean, - executor: Executor + executor: Executor, ): CompletableFuture = thenComposeAsync( { page -> @@ -168,7 +161,7 @@ private constructor( .map { it.getNextPage().forEach(action, executor) } .orElseGet { CompletableFuture.completedFuture(null) } }, - executor + executor, ) return CompletableFuture.completedFuture(Optional.of(firstPage)) .forEach(action::test, executor) diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisBenefitListSupportedBenefitsParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisBenefitListSupportedBenefitsParams.kt index a5393797..0719a212 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisBenefitListSupportedBenefitsParams.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisBenefitListSupportedBenefitsParams.kt @@ -147,7 +147,7 @@ private constructor( fun build(): HrisBenefitListSupportedBenefitsParams = HrisBenefitListSupportedBenefitsParams( additionalHeaders.build(), - additionalQueryParams.build() + additionalQueryParams.build(), ) } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisDirectoryListIndividualsPage.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisDirectoryListIndividualsPage.kt index 5c83291a..4b994a9e 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisDirectoryListIndividualsPage.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisDirectoryListIndividualsPage.kt @@ -81,13 +81,8 @@ private constructor( fun of( directoryService: DirectoryService, params: HrisDirectoryListIndividualsParams, - response: Response - ) = - HrisDirectoryListIndividualsPage( - directoryService, - params, - response, - ) + response: Response, + ) = HrisDirectoryListIndividualsPage(directoryService, params, response) } @NoAutoDetect @@ -177,18 +172,12 @@ private constructor( this.additionalProperties.put(key, value) } - fun build() = - Response( - individuals, - paging, - additionalProperties.toImmutable(), - ) + fun build() = Response(individuals, paging, additionalProperties.toImmutable()) } } - class AutoPager( - private val firstPage: HrisDirectoryListIndividualsPage, - ) : Iterable { + class AutoPager(private val firstPage: HrisDirectoryListIndividualsPage) : + Iterable { override fun iterator(): Iterator = iterator { var page = firstPage diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisDirectoryListIndividualsPageAsync.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisDirectoryListIndividualsPageAsync.kt index e516e91e..ca3201d0 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisDirectoryListIndividualsPageAsync.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisDirectoryListIndividualsPageAsync.kt @@ -84,13 +84,8 @@ private constructor( fun of( directoryService: DirectoryServiceAsync, params: HrisDirectoryListIndividualsParams, - response: Response - ) = - HrisDirectoryListIndividualsPageAsync( - directoryService, - params, - response, - ) + response: Response, + ) = HrisDirectoryListIndividualsPageAsync(directoryService, params, response) } @NoAutoDetect @@ -180,26 +175,19 @@ private constructor( this.additionalProperties.put(key, value) } - fun build() = - Response( - individuals, - paging, - additionalProperties.toImmutable(), - ) + fun build() = Response(individuals, paging, additionalProperties.toImmutable()) } } - class AutoPager( - private val firstPage: HrisDirectoryListIndividualsPageAsync, - ) { + class AutoPager(private val firstPage: HrisDirectoryListIndividualsPageAsync) { fun forEach( action: Predicate, - executor: Executor + executor: Executor, ): CompletableFuture { fun CompletableFuture>.forEach( action: (IndividualInDirectory) -> Boolean, - executor: Executor + executor: Executor, ): CompletableFuture = thenComposeAsync( { page -> @@ -208,7 +196,7 @@ private constructor( .map { it.getNextPage().forEach(action, executor) } .orElseGet { CompletableFuture.completedFuture(null) } }, - executor + executor, ) return CompletableFuture.completedFuture(Optional.of(firstPage)) .forEach(action::test, executor) diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisDirectoryListPage.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisDirectoryListPage.kt index 1eb5dec5..4a31c2c6 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisDirectoryListPage.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisDirectoryListPage.kt @@ -80,13 +80,8 @@ private constructor( fun of( directoryService: DirectoryService, params: HrisDirectoryListParams, - response: Response - ) = - HrisDirectoryListPage( - directoryService, - params, - response, - ) + response: Response, + ) = HrisDirectoryListPage(directoryService, params, response) } @NoAutoDetect @@ -176,18 +171,12 @@ private constructor( this.additionalProperties.put(key, value) } - fun build() = - Response( - individuals, - paging, - additionalProperties.toImmutable(), - ) + fun build() = Response(individuals, paging, additionalProperties.toImmutable()) } } - class AutoPager( - private val firstPage: HrisDirectoryListPage, - ) : Iterable { + class AutoPager(private val firstPage: HrisDirectoryListPage) : + Iterable { override fun iterator(): Iterator = iterator { var page = firstPage diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisDirectoryListPageAsync.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisDirectoryListPageAsync.kt index a46ebda5..861ffde7 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisDirectoryListPageAsync.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisDirectoryListPageAsync.kt @@ -83,13 +83,8 @@ private constructor( fun of( directoryService: DirectoryServiceAsync, params: HrisDirectoryListParams, - response: Response - ) = - HrisDirectoryListPageAsync( - directoryService, - params, - response, - ) + response: Response, + ) = HrisDirectoryListPageAsync(directoryService, params, response) } @NoAutoDetect @@ -179,26 +174,19 @@ private constructor( this.additionalProperties.put(key, value) } - fun build() = - Response( - individuals, - paging, - additionalProperties.toImmutable(), - ) + fun build() = Response(individuals, paging, additionalProperties.toImmutable()) } } - class AutoPager( - private val firstPage: HrisDirectoryListPageAsync, - ) { + class AutoPager(private val firstPage: HrisDirectoryListPageAsync) { fun forEach( action: Predicate, - executor: Executor + executor: Executor, ): CompletableFuture { fun CompletableFuture>.forEach( action: (IndividualInDirectory) -> Boolean, - executor: Executor + executor: Executor, ): CompletableFuture = thenComposeAsync( { page -> @@ -207,7 +195,7 @@ private constructor( .map { it.getNextPage().forEach(action, executor) } .orElseGet { CompletableFuture.completedFuture(null) } }, - executor + executor, ) return CompletableFuture.completedFuture(Optional.of(firstPage)) .forEach(action::test, executor) diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisDocumentListParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisDocumentListParams.kt index 6d13fc3b..c7cb36e7 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisDocumentListParams.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisDocumentListParams.kt @@ -245,11 +245,7 @@ private constructor( ) } - class Type - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class Type @JsonCreator private constructor(private val value: JsonField) : Enum { /** * Returns this class instance's raw value. diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisEmploymentRetrieveManyPage.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisEmploymentRetrieveManyPage.kt index 1ef955e2..fb7c68c0 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisEmploymentRetrieveManyPage.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisEmploymentRetrieveManyPage.kt @@ -64,13 +64,8 @@ private constructor( fun of( employmentsService: EmploymentService, params: HrisEmploymentRetrieveManyParams, - response: Response - ) = - HrisEmploymentRetrieveManyPage( - employmentsService, - params, - response, - ) + response: Response, + ) = HrisEmploymentRetrieveManyPage(employmentsService, params, response) } @NoAutoDetect @@ -151,9 +146,8 @@ private constructor( } } - class AutoPager( - private val firstPage: HrisEmploymentRetrieveManyPage, - ) : Iterable { + class AutoPager(private val firstPage: HrisEmploymentRetrieveManyPage) : + Iterable { override fun iterator(): Iterator = iterator { var page = firstPage diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisEmploymentRetrieveManyPageAsync.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisEmploymentRetrieveManyPageAsync.kt index f3dc9330..16233a7b 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisEmploymentRetrieveManyPageAsync.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisEmploymentRetrieveManyPageAsync.kt @@ -67,13 +67,8 @@ private constructor( fun of( employmentsService: EmploymentServiceAsync, params: HrisEmploymentRetrieveManyParams, - response: Response - ) = - HrisEmploymentRetrieveManyPageAsync( - employmentsService, - params, - response, - ) + response: Response, + ) = HrisEmploymentRetrieveManyPageAsync(employmentsService, params, response) } @NoAutoDetect @@ -154,17 +149,15 @@ private constructor( } } - class AutoPager( - private val firstPage: HrisEmploymentRetrieveManyPageAsync, - ) { + class AutoPager(private val firstPage: HrisEmploymentRetrieveManyPageAsync) { fun forEach( action: Predicate, - executor: Executor + executor: Executor, ): CompletableFuture { fun CompletableFuture>.forEach( action: (EmploymentDataResponse) -> Boolean, - executor: Executor + executor: Executor, ): CompletableFuture = thenComposeAsync( { page -> @@ -173,7 +166,7 @@ private constructor( .map { it.getNextPage().forEach(action, executor) } .orElseGet { CompletableFuture.completedFuture(null) } }, - executor + executor, ) return CompletableFuture.completedFuture(Optional.of(firstPage)) .forEach(action::test, executor) diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisEmploymentRetrieveManyParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisEmploymentRetrieveManyParams.kt index 47a1156c..7151df11 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisEmploymentRetrieveManyParams.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisEmploymentRetrieveManyParams.kt @@ -145,7 +145,7 @@ private constructor( fun build(): HrisEmploymentRetrieveManyBody = HrisEmploymentRetrieveManyBody( checkRequired("requests", requests).map { it.toImmutable() }, - additionalProperties.toImmutable() + additionalProperties.toImmutable(), ) } @@ -425,7 +425,7 @@ private constructor( fun build(): Request = Request( checkRequired("individualId", individualId), - additionalProperties.toImmutable() + additionalProperties.toImmutable(), ) } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisIndividualRetrieveManyPage.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisIndividualRetrieveManyPage.kt index 30c5ab22..580aacb5 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisIndividualRetrieveManyPage.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisIndividualRetrieveManyPage.kt @@ -64,13 +64,8 @@ private constructor( fun of( individualsService: IndividualService, params: HrisIndividualRetrieveManyParams, - response: Response - ) = - HrisIndividualRetrieveManyPage( - individualsService, - params, - response, - ) + response: Response, + ) = HrisIndividualRetrieveManyPage(individualsService, params, response) } @NoAutoDetect @@ -149,9 +144,8 @@ private constructor( } } - class AutoPager( - private val firstPage: HrisIndividualRetrieveManyPage, - ) : Iterable { + class AutoPager(private val firstPage: HrisIndividualRetrieveManyPage) : + Iterable { override fun iterator(): Iterator = iterator { var page = firstPage diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisIndividualRetrieveManyPageAsync.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisIndividualRetrieveManyPageAsync.kt index 62e2a9c6..8693075d 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisIndividualRetrieveManyPageAsync.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisIndividualRetrieveManyPageAsync.kt @@ -67,13 +67,8 @@ private constructor( fun of( individualsService: IndividualServiceAsync, params: HrisIndividualRetrieveManyParams, - response: Response - ) = - HrisIndividualRetrieveManyPageAsync( - individualsService, - params, - response, - ) + response: Response, + ) = HrisIndividualRetrieveManyPageAsync(individualsService, params, response) } @NoAutoDetect @@ -152,17 +147,15 @@ private constructor( } } - class AutoPager( - private val firstPage: HrisIndividualRetrieveManyPageAsync, - ) { + class AutoPager(private val firstPage: HrisIndividualRetrieveManyPageAsync) { fun forEach( action: Predicate, - executor: Executor + executor: Executor, ): CompletableFuture { fun CompletableFuture>.forEach( action: (IndividualResponse) -> Boolean, - executor: Executor + executor: Executor, ): CompletableFuture = thenComposeAsync( { page -> @@ -171,7 +164,7 @@ private constructor( .map { it.getNextPage().forEach(action, executor) } .orElseGet { CompletableFuture.completedFuture(null) } }, - executor + executor, ) return CompletableFuture.completedFuture(Optional.of(firstPage)) .forEach(action::test, executor) diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisIndividualRetrieveManyParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisIndividualRetrieveManyParams.kt index c63cd80a..a99cbfc8 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisIndividualRetrieveManyParams.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisIndividualRetrieveManyParams.kt @@ -433,7 +433,7 @@ private constructor( fun build(): Options = Options( (include ?: JsonMissing.of()).map { it.toImmutable() }, - additionalProperties.toImmutable() + additionalProperties.toImmutable(), ) } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementRetrieveManyPage.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementRetrieveManyPage.kt index 3343773b..6e8a850e 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementRetrieveManyPage.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementRetrieveManyPage.kt @@ -68,13 +68,8 @@ private constructor( fun of( payStatementsService: PayStatementService, params: HrisPayStatementRetrieveManyParams, - response: Response - ) = - HrisPayStatementRetrieveManyPage( - payStatementsService, - params, - response, - ) + response: Response, + ) = HrisPayStatementRetrieveManyPage(payStatementsService, params, response) } @NoAutoDetect @@ -154,9 +149,8 @@ private constructor( } } - class AutoPager( - private val firstPage: HrisPayStatementRetrieveManyPage, - ) : Iterable { + class AutoPager(private val firstPage: HrisPayStatementRetrieveManyPage) : + Iterable { override fun iterator(): Iterator = iterator { var page = firstPage diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementRetrieveManyPageAsync.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementRetrieveManyPageAsync.kt index 8402cb89..e1e84e39 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementRetrieveManyPageAsync.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementRetrieveManyPageAsync.kt @@ -71,13 +71,8 @@ private constructor( fun of( payStatementsService: PayStatementServiceAsync, params: HrisPayStatementRetrieveManyParams, - response: Response - ) = - HrisPayStatementRetrieveManyPageAsync( - payStatementsService, - params, - response, - ) + response: Response, + ) = HrisPayStatementRetrieveManyPageAsync(payStatementsService, params, response) } @NoAutoDetect @@ -157,17 +152,15 @@ private constructor( } } - class AutoPager( - private val firstPage: HrisPayStatementRetrieveManyPageAsync, - ) { + class AutoPager(private val firstPage: HrisPayStatementRetrieveManyPageAsync) { fun forEach( action: Predicate, - executor: Executor + executor: Executor, ): CompletableFuture { fun CompletableFuture>.forEach( action: (PayStatementResponse) -> Boolean, - executor: Executor + executor: Executor, ): CompletableFuture = thenComposeAsync( { page -> @@ -176,7 +169,7 @@ private constructor( .map { it.getNextPage().forEach(action, executor) } .orElseGet { CompletableFuture.completedFuture(null) } }, - executor + executor, ) return CompletableFuture.completedFuture(Optional.of(firstPage)) .forEach(action::test, executor) diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementRetrieveManyParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementRetrieveManyParams.kt index 2bd05098..53571ac0 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementRetrieveManyParams.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementRetrieveManyParams.kt @@ -149,7 +149,7 @@ private constructor( fun build(): HrisPayStatementRetrieveManyBody = HrisPayStatementRetrieveManyBody( checkRequired("requests", requests).map { it.toImmutable() }, - additionalProperties.toImmutable() + additionalProperties.toImmutable(), ) } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisPaymentListPage.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisPaymentListPage.kt index 21e1d194..c321b38f 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisPaymentListPage.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisPaymentListPage.kt @@ -62,11 +62,7 @@ private constructor( @JvmStatic fun of(paymentsService: PaymentService, params: HrisPaymentListParams, response: Response) = - HrisPaymentListPage( - paymentsService, - params, - response, - ) + HrisPaymentListPage(paymentsService, params, response) } @NoAutoDetect @@ -141,9 +137,7 @@ private constructor( } } - class AutoPager( - private val firstPage: HrisPaymentListPage, - ) : Iterable { + class AutoPager(private val firstPage: HrisPaymentListPage) : Iterable { override fun iterator(): Iterator = iterator { var page = firstPage diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisPaymentListPageAsync.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisPaymentListPageAsync.kt index 90b5f23f..c2d3ad50 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisPaymentListPageAsync.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisPaymentListPageAsync.kt @@ -67,13 +67,8 @@ private constructor( fun of( paymentsService: PaymentServiceAsync, params: HrisPaymentListParams, - response: Response - ) = - HrisPaymentListPageAsync( - paymentsService, - params, - response, - ) + response: Response, + ) = HrisPaymentListPageAsync(paymentsService, params, response) } @NoAutoDetect @@ -148,14 +143,12 @@ private constructor( } } - class AutoPager( - private val firstPage: HrisPaymentListPageAsync, - ) { + class AutoPager(private val firstPage: HrisPaymentListPageAsync) { fun forEach(action: Predicate, executor: Executor): CompletableFuture { fun CompletableFuture>.forEach( action: (Payment) -> Boolean, - executor: Executor + executor: Executor, ): CompletableFuture = thenComposeAsync( { page -> @@ -164,7 +157,7 @@ private constructor( .map { it.getNextPage().forEach(action, executor) } .orElseGet { CompletableFuture.completedFuture(null) } }, - executor + executor, ) return CompletableFuture.completedFuture(Optional.of(firstPage)) .forEach(action::test, executor) diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Income.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Income.kt index 28c6cfb7..b83b95f6 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Income.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Income.kt @@ -187,24 +187,14 @@ private constructor( } fun build(): Income = - Income( - amount, - currency, - effectiveDate, - unit, - additionalProperties.toImmutable(), - ) + Income(amount, currency, effectiveDate, unit, additionalProperties.toImmutable()) } /** * The income unit of payment. Options: `yearly`, `quarterly`, `monthly`, `semi_monthly`, * `bi_weekly`, `weekly`, `daily`, `hourly`, and `fixed`. */ - class Unit - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class Unit @JsonCreator private constructor(private val value: JsonField) : Enum { /** * Returns this class instance's raw value. diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Individual.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Individual.kt index b26b4aba..3f7d3e4c 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Individual.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Individual.kt @@ -511,19 +511,10 @@ private constructor( keys.forEach(::removeAdditionalProperty) } - fun build(): Email = - Email( - data, - type, - additionalProperties.toImmutable(), - ) + fun build(): Email = Email(data, type, additionalProperties.toImmutable()) } - class Type - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class Type @JsonCreator private constructor(private val value: JsonField) : Enum { /** * Returns this class instance's raw value. @@ -630,11 +621,7 @@ private constructor( } /** The EEOC-defined ethnicity of the individual. */ - class Ethnicity - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class Ethnicity @JsonCreator private constructor(private val value: JsonField) : Enum { /** * Returns this class instance's raw value. @@ -761,11 +748,7 @@ private constructor( } /** The gender of the individual. */ - class Gender - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class Gender @JsonCreator private constructor(private val value: JsonField) : Enum { /** * Returns this class instance's raw value. @@ -952,19 +935,10 @@ private constructor( keys.forEach(::removeAdditionalProperty) } - fun build(): PhoneNumber = - PhoneNumber( - data, - type, - additionalProperties.toImmutable(), - ) + fun build(): PhoneNumber = PhoneNumber(data, type, additionalProperties.toImmutable()) } - class Type - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class Type @JsonCreator private constructor(private val value: JsonField) : Enum { /** * Returns this class instance's raw value. diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/IndividualBenefit.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/IndividualBenefit.kt index f0d60f8a..0f2e9a3a 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/IndividualBenefit.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/IndividualBenefit.kt @@ -119,12 +119,7 @@ private constructor( } fun build(): IndividualBenefit = - IndividualBenefit( - body, - code, - individualId, - additionalProperties.toImmutable(), - ) + IndividualBenefit(body, code, individualId, additionalProperties.toImmutable()) } @NoAutoDetect @@ -349,9 +344,7 @@ private constructor( /** Type for HSA contribution limit if the benefit is a HSA. */ class HsaContributionLimit @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + private constructor(private val value: JsonField) : Enum { /** * Returns this class instance's raw value. diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/IndividualEvent.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/IndividualEvent.kt index c380b159..3cebd63c 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/IndividualEvent.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/IndividualEvent.kt @@ -315,11 +315,7 @@ private constructor( "Data{individualId=$individualId, additionalProperties=$additionalProperties}" } - class EventType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class EventType @JsonCreator private constructor(private val value: JsonField) : Enum { /** * Returns this class instance's raw value. diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/IndividualResponse.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/IndividualResponse.kt index d4fb4462..c78a32ba 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/IndividualResponse.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/IndividualResponse.kt @@ -119,12 +119,7 @@ private constructor( } fun build(): IndividualResponse = - IndividualResponse( - body, - code, - individualId, - additionalProperties.toImmutable(), - ) + IndividualResponse(body, code, individualId, additionalProperties.toImmutable()) } override fun equals(other: Any?): Boolean { diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/IndividualUpdateResponse.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/IndividualUpdateResponse.kt index d1864f48..66f0ba75 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/IndividualUpdateResponse.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/IndividualUpdateResponse.kt @@ -511,19 +511,10 @@ private constructor( keys.forEach(::removeAdditionalProperty) } - fun build(): Email = - Email( - data, - type, - additionalProperties.toImmutable(), - ) + fun build(): Email = Email(data, type, additionalProperties.toImmutable()) } - class Type - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class Type @JsonCreator private constructor(private val value: JsonField) : Enum { /** * Returns this class instance's raw value. @@ -630,11 +621,7 @@ private constructor( } /** The EEOC-defined ethnicity of the individual. */ - class Ethnicity - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class Ethnicity @JsonCreator private constructor(private val value: JsonField) : Enum { /** * Returns this class instance's raw value. @@ -761,11 +748,7 @@ private constructor( } /** The gender of the individual. */ - class Gender - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class Gender @JsonCreator private constructor(private val value: JsonField) : Enum { /** * Returns this class instance's raw value. @@ -950,19 +933,10 @@ private constructor( keys.forEach(::removeAdditionalProperty) } - fun build(): PhoneNumber = - PhoneNumber( - data, - type, - additionalProperties.toImmutable(), - ) + fun build(): PhoneNumber = PhoneNumber(data, type, additionalProperties.toImmutable()) } - class Type - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class Type @JsonCreator private constructor(private val value: JsonField) : Enum { /** * Returns this class instance's raw value. diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Introspection.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Introspection.kt index 16b78e12..63379965 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Introspection.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/Introspection.kt @@ -812,11 +812,7 @@ private constructor( } fun build(): ConnectionStatus = - ConnectionStatus( - message, - status, - additionalProperties.toImmutable(), - ) + ConnectionStatus(message, status, additionalProperties.toImmutable()) } override fun equals(other: Any?): Boolean { @@ -838,11 +834,7 @@ private constructor( } /** The type of authentication method. */ - class Type - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class Type @JsonCreator private constructor(private val value: JsonField) : Enum { /** * Returns this class instance's raw value. @@ -967,11 +959,7 @@ private constructor( } /** The type of application associated with a token. */ - class ClientType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class ClientType @JsonCreator private constructor(private val value: JsonField) : Enum { /** * Returns this class instance's raw value. @@ -1156,11 +1144,7 @@ private constructor( } fun build(): ConnectionStatus = - ConnectionStatus( - message, - status, - additionalProperties.toImmutable(), - ) + ConnectionStatus(message, status, additionalProperties.toImmutable()) } override fun equals(other: Any?): Boolean { @@ -1186,11 +1170,8 @@ private constructor( * - `provider` - connection to an external provider * - `finch` - finch-generated data. */ - class ConnectionType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class ConnectionType @JsonCreator private constructor(private val value: JsonField) : + Enum { /** * Returns this class instance's raw value. diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/JobAutomatedCreateParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/JobAutomatedCreateParams.kt index 9e723312..84f9be5a 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/JobAutomatedCreateParams.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/JobAutomatedCreateParams.kt @@ -187,7 +187,7 @@ private constructor( override fun serialize( value: JobAutomatedCreateBody, generator: JsonGenerator, - provider: SerializerProvider + provider: SerializerProvider, ) { when { value.dataSyncAll != null -> generator.writeObject(value.dataSyncAll) @@ -415,11 +415,7 @@ private constructor( } /** The type of job to start. */ - class Type - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class Type @JsonCreator private constructor(private val value: JsonField) : Enum { /** * Returns this class instance's raw value. @@ -440,7 +436,7 @@ private constructor( /** An enum containing [Type]'s known values. */ enum class Known { - DATA_SYNC_ALL, + DATA_SYNC_ALL } /** @@ -701,7 +697,7 @@ private constructor( fun build(): Params = Params( checkRequired("individualId", individualId), - additionalProperties.toImmutable() + additionalProperties.toImmutable(), ) } @@ -724,11 +720,7 @@ private constructor( } /** The type of job to start. */ - class Type - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class Type @JsonCreator private constructor(private val value: JsonField) : Enum { /** * Returns this class instance's raw value. @@ -749,7 +741,7 @@ private constructor( /** An enum containing [Type]'s known values. */ enum class Known { - W4_FORM_EMPLOYEE_SYNC, + W4_FORM_EMPLOYEE_SYNC } /** diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/JobAutomatedListPage.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/JobAutomatedListPage.kt index 23663d9a..3774d28b 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/JobAutomatedListPage.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/JobAutomatedListPage.kt @@ -84,13 +84,8 @@ private constructor( fun of( automatedService: AutomatedService, params: JobAutomatedListParams, - response: Response - ) = - JobAutomatedListPage( - automatedService, - params, - response, - ) + response: Response, + ) = JobAutomatedListPage(automatedService, params, response) } @NoAutoDetect @@ -175,18 +170,11 @@ private constructor( this.additionalProperties.put(key, value) } - fun build() = - Response( - data, - paging, - additionalProperties.toImmutable(), - ) + fun build() = Response(data, paging, additionalProperties.toImmutable()) } } - class AutoPager( - private val firstPage: JobAutomatedListPage, - ) : Iterable { + class AutoPager(private val firstPage: JobAutomatedListPage) : Iterable { override fun iterator(): Iterator = iterator { var page = firstPage diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/JobAutomatedListPageAsync.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/JobAutomatedListPageAsync.kt index a89d64a1..f2ba3f01 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/JobAutomatedListPageAsync.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/JobAutomatedListPageAsync.kt @@ -87,13 +87,8 @@ private constructor( fun of( automatedService: AutomatedServiceAsync, params: JobAutomatedListParams, - response: Response - ) = - JobAutomatedListPageAsync( - automatedService, - params, - response, - ) + response: Response, + ) = JobAutomatedListPageAsync(automatedService, params, response) } @NoAutoDetect @@ -178,26 +173,19 @@ private constructor( this.additionalProperties.put(key, value) } - fun build() = - Response( - data, - paging, - additionalProperties.toImmutable(), - ) + fun build() = Response(data, paging, additionalProperties.toImmutable()) } } - class AutoPager( - private val firstPage: JobAutomatedListPageAsync, - ) { + class AutoPager(private val firstPage: JobAutomatedListPageAsync) { fun forEach( action: Predicate, - executor: Executor + executor: Executor, ): CompletableFuture { fun CompletableFuture>.forEach( action: (AutomatedAsyncJob) -> Boolean, - executor: Executor + executor: Executor, ): CompletableFuture = thenComposeAsync( { page -> @@ -206,7 +194,7 @@ private constructor( .map { it.getNextPage().forEach(action, executor) } .orElseGet { CompletableFuture.completedFuture(null) } }, - executor + executor, ) return CompletableFuture.completedFuture(Optional.of(firstPage)) .forEach(action::test, executor) 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 0e35e6bf..00294490 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 @@ -333,11 +333,7 @@ private constructor( "Data{jobId=$jobId, jobUrl=$jobUrl, additionalProperties=$additionalProperties}" } - class EventType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class EventType @JsonCreator private constructor(private val value: JsonField) : Enum { /** * Returns this class instance's raw value. 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 42a27152..65bc5869 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 @@ -148,11 +148,7 @@ private constructor( ) } - class Status - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class Status @JsonCreator private constructor(private val value: JsonField) : Enum { /** * Returns this class instance's raw value. 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 2aeaa697..547abdfa 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 @@ -110,12 +110,7 @@ private constructor( keys.forEach(::removeAdditionalProperty) } - fun build(): Money = - Money( - amount, - currency, - additionalProperties.toImmutable(), - ) + fun build(): Money = Money(amount, currency, additionalProperties.toImmutable()) } override fun equals(other: Any?): Boolean { 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 7ff857eb..13f54944 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 @@ -16,11 +16,8 @@ import com.tryfinch.api.errors.FinchInvalidDataException * - `client_access_only`: This behavior is supported by the provider, but only available to the * client and not to Finch */ -class OperationSupport -@JsonCreator -private constructor( - private val value: JsonField, -) : Enum { +class OperationSupport @JsonCreator private constructor(private val value: JsonField) : + Enum { /** * Returns this class instance's raw value. 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 28f0e217..56ac7c5f 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 @@ -274,13 +274,7 @@ private constructor( } fun build(): OperationSupportMatrix = - OperationSupportMatrix( - create, - delete, - read, - update, - additionalProperties.toImmutable(), - ) + OperationSupportMatrix(create, delete, read, update, additionalProperties.toImmutable()) } override fun equals(other: Any?): Boolean { 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 7775b803..d75f67c8 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 @@ -105,12 +105,7 @@ private constructor( keys.forEach(::removeAdditionalProperty) } - fun build(): Paging = - Paging( - count, - offset, - additionalProperties.toImmutable(), - ) + fun build(): Paging = Paging(count, offset, additionalProperties.toImmutable()) } override fun equals(other: Any?): Boolean { 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 157209b2..47a584fa 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 @@ -154,11 +154,8 @@ private constructor( ) } - class PayFrequency - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class PayFrequency @JsonCreator private constructor(private val value: JsonField) : + Enum { /** * Returns this class instance's raw value. 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 fbf23ba7..6eeb325e 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 @@ -185,11 +185,8 @@ private constructor( ) } - class PayFrequency - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class PayFrequency @JsonCreator private constructor(private val value: JsonField) : + Enum { /** * Returns this class instance's raw value. 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 d529522b..ebefdb09 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 @@ -560,22 +560,11 @@ private constructor( } fun build(): Earning = - Earning( - amount, - currency, - hours, - name, - type, - additionalProperties.toImmutable(), - ) + Earning(amount, currency, hours, name, type, additionalProperties.toImmutable()) } /** The type of earning. */ - class Type - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class Type @JsonCreator private constructor(private val value: JsonField) : Enum { /** * Returns this class instance's raw value. @@ -1122,11 +1111,8 @@ private constructor( } /** The payment method. */ - class PaymentMethod - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class PaymentMethod @JsonCreator private constructor(private val value: JsonField) : + Enum { /** * Returns this class instance's raw value. @@ -1386,22 +1372,11 @@ private constructor( } fun build(): Tax = - Tax( - amount, - currency, - employer, - name, - type, - additionalProperties.toImmutable(), - ) + Tax(amount, currency, employer, name, type, additionalProperties.toImmutable()) } /** The type of taxes. */ - class Type - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class Type @JsonCreator private constructor(private val value: JsonField) : Enum { /** * Returns this class instance's raw value. @@ -1520,11 +1495,7 @@ private constructor( } /** The type of the payment associated with the pay statement. */ - class Type - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class Type @JsonCreator private constructor(private val value: JsonField) : Enum { /** * Returns this class instance's raw value. 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 37ad59a8..6ed2b6a4 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 @@ -312,12 +312,7 @@ private constructor( keys.forEach(::removeAdditionalProperty) } - fun build(): Data = - Data( - individualId, - paymentId, - additionalProperties.toImmutable(), - ) + fun build(): Data = Data(individualId, paymentId, additionalProperties.toImmutable()) } override fun equals(other: Any?): Boolean { @@ -338,11 +333,7 @@ private constructor( "Data{individualId=$individualId, paymentId=$paymentId, additionalProperties=$additionalProperties}" } - class EventType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class EventType @JsonCreator private constructor(private val value: JsonField) : Enum { /** * Returns this class instance's raw value. 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 d2b73d6d..22aaf7fe 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 @@ -114,12 +114,7 @@ private constructor( } fun build(): PayStatementResponse = - PayStatementResponse( - body, - code, - paymentId, - additionalProperties.toImmutable(), - ) + PayStatementResponse(body, code, paymentId, additionalProperties.toImmutable()) } override fun equals(other: Any?): Boolean { 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 a98098da..49c187e4 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 @@ -385,11 +385,8 @@ private constructor( ) } - class PayFrequency - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class PayFrequency @JsonCreator private constructor(private val value: JsonField) : + Enum { /** * Returns this class instance's raw value. @@ -612,11 +609,7 @@ private constructor( } fun build(): PayPeriod = - PayPeriod( - endDate, - startDate, - additionalProperties.toImmutable(), - ) + PayPeriod(endDate, startDate, additionalProperties.toImmutable()) } override fun equals(other: Any?): Boolean { 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 020fc76d..51651333 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 @@ -335,11 +335,7 @@ private constructor( "PaymentIdentifiers{payDate=$payDate, paymentId=$paymentId, additionalProperties=$additionalProperties}" } - class EventType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class EventType @JsonCreator private constructor(private val value: JsonField) : Enum { /** * Returns this class instance's raw value. 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 51aa4989..aec5d816 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 @@ -64,13 +64,8 @@ private constructor( fun of( payGroupsService: PayGroupService, params: PayrollPayGroupListParams, - response: Response - ) = - PayrollPayGroupListPage( - payGroupsService, - params, - response, - ) + response: Response, + ) = PayrollPayGroupListPage(payGroupsService, params, response) } @NoAutoDetect @@ -146,9 +141,8 @@ private constructor( } } - class AutoPager( - private val firstPage: PayrollPayGroupListPage, - ) : Iterable { + class AutoPager(private val firstPage: PayrollPayGroupListPage) : + Iterable { override fun iterator(): Iterator = iterator { var page = firstPage 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 eb29f545..8e352508 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 @@ -67,13 +67,8 @@ private constructor( fun of( payGroupsService: PayGroupServiceAsync, params: PayrollPayGroupListParams, - response: Response - ) = - PayrollPayGroupListPageAsync( - payGroupsService, - params, - response, - ) + response: Response, + ) = PayrollPayGroupListPageAsync(payGroupsService, params, response) } @NoAutoDetect @@ -149,17 +144,15 @@ private constructor( } } - class AutoPager( - private val firstPage: PayrollPayGroupListPageAsync, - ) { + class AutoPager(private val firstPage: PayrollPayGroupListPageAsync) { fun forEach( action: Predicate, - executor: Executor + executor: Executor, ): CompletableFuture { fun CompletableFuture>.forEach( action: (PayGroupListResponse) -> Boolean, - executor: Executor + executor: Executor, ): CompletableFuture = thenComposeAsync( { page -> @@ -168,7 +161,7 @@ private constructor( .map { it.getNextPage().forEach(action, executor) } .orElseGet { CompletableFuture.completedFuture(null) } }, - executor + executor, ) return CompletableFuture.completedFuture(Optional.of(firstPage)) .forEach(action::test, executor) 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 75479ec8..6fcd5df1 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 @@ -1213,11 +1213,7 @@ private constructor( } fun build(): Departments = - Departments( - name, - parent, - additionalProperties.toImmutable(), - ) + Departments(name, parent, additionalProperties.toImmutable()) } @NoAutoDetect @@ -1431,11 +1427,7 @@ private constructor( } fun build(): Entity = - Entity( - subtype, - type, - additionalProperties.toImmutable(), - ) + Entity(subtype, type, additionalProperties.toImmutable()) } override fun equals(other: Any?): Boolean { @@ -2173,11 +2165,7 @@ private constructor( } fun build(): Paging = - Paging( - count, - offset, - additionalProperties.toImmutable(), - ) + Paging(count, offset, additionalProperties.toImmutable()) } override fun equals(other: Any?): Boolean { @@ -2795,11 +2783,7 @@ private constructor( } fun build(): Employment = - Employment( - subtype, - type, - additionalProperties.toImmutable(), - ) + Employment(subtype, type, additionalProperties.toImmutable()) } override fun equals(other: Any?): Boolean { @@ -2933,12 +2917,7 @@ private constructor( } fun build(): Income = - Income( - amount, - currency, - unit, - additionalProperties.toImmutable(), - ) + Income(amount, currency, unit, additionalProperties.toImmutable()) } override fun equals(other: Any?): Boolean { @@ -3653,12 +3632,7 @@ private constructor( keys.forEach(::removeAdditionalProperty) } - fun build(): Emails = - Emails( - data, - type, - additionalProperties.toImmutable(), - ) + fun build(): Emails = Emails(data, type, additionalProperties.toImmutable()) } override fun equals(other: Any?): Boolean { @@ -3770,11 +3744,7 @@ private constructor( } fun build(): PhoneNumbers = - PhoneNumbers( - data, - type, - additionalProperties.toImmutable(), - ) + PhoneNumbers(data, type, additionalProperties.toImmutable()) } override fun equals(other: Any?): Boolean { @@ -5733,11 +5703,7 @@ private constructor( } fun build(): PayPeriod = - PayPeriod( - endDate, - startDate, - additionalProperties.toImmutable(), - ) + PayPeriod(endDate, startDate, additionalProperties.toImmutable()) } override fun equals(other: Any?): Boolean { @@ -5795,11 +5761,7 @@ private constructor( } /** The type of authentication method. */ - class Type - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class Type @JsonCreator private constructor(private val value: JsonField) : Enum { /** * Returns this class instance's raw value. 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 9d818def..3d4f3975 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 @@ -62,11 +62,7 @@ private constructor( @JvmStatic fun of(providersService: ProviderService, params: ProviderListParams, response: Response) = - ProviderListPage( - providersService, - params, - response, - ) + ProviderListPage(providersService, params, response) } @NoAutoDetect @@ -141,9 +137,7 @@ private constructor( } } - class AutoPager( - private val firstPage: ProviderListPage, - ) : Iterable { + class AutoPager(private val firstPage: ProviderListPage) : Iterable { override fun iterator(): Iterator = iterator { var page = firstPage 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 92cdf968..37cf24fe 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 @@ -67,13 +67,8 @@ private constructor( fun of( providersService: ProviderServiceAsync, params: ProviderListParams, - response: Response - ) = - ProviderListPageAsync( - providersService, - params, - response, - ) + response: Response, + ) = ProviderListPageAsync(providersService, params, response) } @NoAutoDetect @@ -148,14 +143,12 @@ private constructor( } } - class AutoPager( - private val firstPage: ProviderListPageAsync, - ) { + class AutoPager(private val firstPage: ProviderListPageAsync) { fun forEach(action: Predicate, executor: Executor): CompletableFuture { fun CompletableFuture>.forEach( action: (Provider) -> Boolean, - executor: Executor + executor: Executor, ): CompletableFuture = thenComposeAsync( { page -> @@ -164,7 +157,7 @@ private constructor( .map { it.getNextPage().forEach(action, executor) } .orElseGet { CompletableFuture.completedFuture(null) } }, - executor + executor, ) return CompletableFuture.completedFuture(Optional.of(firstPage)) .forEach(action::test, executor) 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 1d725117..10f02d49 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 @@ -866,11 +866,8 @@ private constructor( } /** The type of bank account. */ - class AccountType - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class AccountType @JsonCreator private constructor(private val value: JsonField) : + Enum { /** * Returns this class instance's raw value. @@ -1079,12 +1076,7 @@ private constructor( keys.forEach(::removeAdditionalProperty) } - fun build(): Department = - Department( - name, - parent, - additionalProperties.toImmutable(), - ) + fun build(): Department = Department(name, parent, additionalProperties.toImmutable()) } /** The parent department, if present. */ @@ -1308,20 +1300,12 @@ private constructor( keys.forEach(::removeAdditionalProperty) } - fun build(): Entity = - Entity( - subtype, - type, - additionalProperties.toImmutable(), - ) + fun build(): Entity = Entity(subtype, type, additionalProperties.toImmutable()) } /** The tax payer subtype of the company. */ - class Subtype - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class Subtype @JsonCreator private constructor(private val value: JsonField) : + Enum { /** * Returns this class instance's raw value. @@ -1418,11 +1402,7 @@ private constructor( } /** The tax payer type of the company. */ - class Type - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class Type @JsonCreator private constructor(private val value: JsonField) : Enum { /** * Returns this class instance's raw value. 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 d212b752..c14fc852 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 @@ -452,9 +452,7 @@ private constructor( class AuthenticationType @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + private constructor(private val value: JsonField) : Enum { /** * Returns this class instance's raw value. 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 41bffb71..f5605cb7 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 @@ -130,7 +130,7 @@ private constructor( fun build(): SandboxConnectionAccountUpdateBody = SandboxConnectionAccountUpdateBody( connectionStatus, - additionalProperties.toImmutable() + additionalProperties.toImmutable(), ) } 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 9201ae74..9f0e6568 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 @@ -452,9 +452,7 @@ private constructor( class AuthenticationType @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + private constructor(private val value: JsonField) : Enum { /** * Returns this class instance's raw value. 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 da8089a4..a9399f8b 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 @@ -1081,11 +1081,7 @@ private constructor( } fun build(): CustomField = - CustomField( - name, - value, - additionalProperties.toImmutable(), - ) + CustomField(name, value, additionalProperties.toImmutable()) } override fun equals(other: Any?): Boolean { @@ -1301,19 +1297,11 @@ private constructor( keys.forEach(::removeAdditionalProperty) } - fun build(): Email = - Email( - data, - type, - additionalProperties.toImmutable(), - ) + fun build(): Email = Email(data, type, additionalProperties.toImmutable()) } - class Type - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class Type @JsonCreator private constructor(private val value: JsonField) : + Enum { /** * Returns this class instance's raw value. @@ -1541,22 +1529,15 @@ private constructor( } fun build(): Employment = - Employment( - subtype, - type, - additionalProperties.toImmutable(), - ) + Employment(subtype, type, additionalProperties.toImmutable()) } /** * The secondary employment type of the individual. Options: `full_time`, `part_time`, * `intern`, `temp`, `seasonal` and `individual_contractor`. */ - class Subtype - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class Subtype @JsonCreator private constructor(private val value: JsonField) : + Enum { /** * Returns this class instance's raw value. @@ -1672,11 +1653,8 @@ private constructor( } /** The main employment type of the individual. */ - class Type - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class Type @JsonCreator private constructor(private val value: JsonField) : + Enum { /** * Returns this class instance's raw value. @@ -1787,9 +1765,7 @@ private constructor( /** The detailed employment status of the individual. */ class EmploymentStatus @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + private constructor(private val value: JsonField) : Enum { /** * Returns this class instance's raw value. @@ -1912,11 +1888,8 @@ private constructor( } /** The EEOC-defined ethnicity of the individual. */ - class Ethnicity - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class Ethnicity @JsonCreator private constructor(private val value: JsonField) : + Enum { /** * Returns this class instance's raw value. @@ -2046,11 +2019,7 @@ private constructor( } /** The gender of the individual. */ - class Gender - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class Gender @JsonCreator private constructor(private val value: JsonField) : Enum { /** * Returns this class instance's raw value. @@ -2344,18 +2313,11 @@ private constructor( } fun build(): PhoneNumber = - PhoneNumber( - data, - type, - additionalProperties.toImmutable(), - ) + PhoneNumber(data, type, additionalProperties.toImmutable()) } - class Type - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class Type @JsonCreator private constructor(private val value: JsonField) : + Enum { /** * Returns this class instance's raw value. 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 251c39f9..d07a6db1 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 @@ -1154,12 +1154,7 @@ private constructor( keys.forEach(::removeAdditionalProperty) } - fun build(): CustomField = - CustomField( - name, - value, - additionalProperties.toImmutable(), - ) + fun build(): CustomField = CustomField(name, value, additionalProperties.toImmutable()) } override fun equals(other: Any?): Boolean { @@ -1395,23 +1390,15 @@ private constructor( keys.forEach(::removeAdditionalProperty) } - fun build(): Employment = - Employment( - subtype, - type, - additionalProperties.toImmutable(), - ) + fun build(): Employment = Employment(subtype, type, additionalProperties.toImmutable()) } /** * The secondary employment type of the individual. Options: `full_time`, `part_time`, * `intern`, `temp`, `seasonal` and `individual_contractor`. */ - class Subtype - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class Subtype @JsonCreator private constructor(private val value: JsonField) : + Enum { /** * Returns this class instance's raw value. @@ -1526,11 +1513,7 @@ private constructor( } /** The main employment type of the individual. */ - class Type - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class Type @JsonCreator private constructor(private val value: JsonField) : Enum { /** * Returns this class instance's raw value. @@ -1637,11 +1620,8 @@ private constructor( } /** The detailed employment status of the individual. */ - class EmploymentStatus - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class EmploymentStatus @JsonCreator private constructor(private val value: JsonField) : + Enum { /** * Returns this class instance's raw value. 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 694c9061..4df0b489 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 @@ -924,19 +924,10 @@ private constructor( keys.forEach(::removeAdditionalProperty) } - fun build(): Email = - Email( - data, - type, - additionalProperties.toImmutable(), - ) + fun build(): Email = Email(data, type, additionalProperties.toImmutable()) } - class Type - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class Type @JsonCreator private constructor(private val value: JsonField) : Enum { /** * Returns this class instance's raw value. @@ -1043,11 +1034,7 @@ private constructor( } /** The EEOC-defined ethnicity of the individual. */ - class Ethnicity - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class Ethnicity @JsonCreator private constructor(private val value: JsonField) : Enum { /** * Returns this class instance's raw value. @@ -1174,11 +1161,7 @@ private constructor( } /** The gender of the individual. */ - class Gender - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class Gender @JsonCreator private constructor(private val value: JsonField) : Enum { /** * Returns this class instance's raw value. @@ -1363,19 +1346,10 @@ private constructor( keys.forEach(::removeAdditionalProperty) } - fun build(): PhoneNumber = - PhoneNumber( - data, - type, - additionalProperties.toImmutable(), - ) + fun build(): PhoneNumber = PhoneNumber(data, type, additionalProperties.toImmutable()) } - class Type - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class Type @JsonCreator private constructor(private val value: JsonField) : Enum { /** * Returns this class instance's raw value. 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 874c66b6..a8b6125a 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 @@ -114,11 +114,8 @@ private constructor( ) } - class CompletionStatus - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class CompletionStatus @JsonCreator private constructor(private val value: JsonField) : + Enum { /** * Returns this class instance's raw value. @@ -220,11 +217,7 @@ private constructor( override fun toString() = value.toString() } - class Type - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class Type @JsonCreator private constructor(private val value: JsonField) : Enum { /** * Returns this class instance's raw value. @@ -245,7 +238,7 @@ private constructor( /** An enum containing [Type]'s known values. */ enum class Known { - DATA_SYNC_ALL, + DATA_SYNC_ALL } /** 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 0eeb3408..8bde74ca 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 @@ -147,7 +147,7 @@ private constructor( fun build(): SandboxJobConfigurationRetrieveParams = SandboxJobConfigurationRetrieveParams( additionalHeaders.build(), - additionalQueryParams.build() + additionalQueryParams.build(), ) } 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 6b54e4c1..f30d929d 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 @@ -330,11 +330,8 @@ private constructor( ) } - class CompletionStatus - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class CompletionStatus @JsonCreator private constructor(private val value: JsonField) : + Enum { /** * Returns this class instance's raw value. @@ -436,11 +433,7 @@ private constructor( override fun toString() = value.toString() } - class Type - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class Type @JsonCreator private constructor(private val value: JsonField) : Enum { /** * Returns this class instance's raw value. @@ -461,7 +454,7 @@ private constructor( /** An enum containing [Type]'s known values. */ enum class Known { - DATA_SYNC_ALL, + DATA_SYNC_ALL } /** 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 8babd659..71da1c0b 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 @@ -124,7 +124,7 @@ private constructor( fun build(): SandboxJobCreateBody = SandboxJobCreateBody( checkRequired("type", type), - additionalProperties.toImmutable() + additionalProperties.toImmutable(), ) } @@ -300,11 +300,7 @@ private constructor( } /** The type of job to start. Currently the only supported type is `data_sync_all` */ - class Type - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class Type @JsonCreator private constructor(private val value: JsonField) : Enum { /** * Returns this class instance's raw value. @@ -325,7 +321,7 @@ private constructor( /** An enum containing [Type]'s known values. */ enum class Known { - DATA_SYNC_ALL, + DATA_SYNC_ALL } /** 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 c0829f94..41673370 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 @@ -929,22 +929,12 @@ private constructor( } fun build(): Earning = - Earning( - amount, - currency, - hours, - name, - type, - additionalProperties.toImmutable(), - ) + Earning(amount, currency, hours, name, type, additionalProperties.toImmutable()) } /** The type of earning. */ - class Type - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class Type @JsonCreator private constructor(private val value: JsonField) : + Enum { /** * Returns this class instance's raw value. @@ -1499,11 +1489,8 @@ private constructor( } /** The payment method. */ - class PaymentMethod - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class PaymentMethod @JsonCreator private constructor(private val value: JsonField) : + Enum { /** * Returns this class instance's raw value. @@ -1771,22 +1758,12 @@ private constructor( } fun build(): Tax = - Tax( - amount, - currency, - employer, - name, - type, - additionalProperties.toImmutable(), - ) + Tax(amount, currency, employer, name, type, additionalProperties.toImmutable()) } /** The type of taxes. */ - class Type - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class Type @JsonCreator private constructor(private val value: JsonField) : + Enum { /** * Returns this class instance's raw value. @@ -1907,11 +1884,7 @@ private constructor( } /** The type of the payment associated with the pay statement. */ - class Type - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class Type @JsonCreator private constructor(private val value: JsonField) : Enum { /** * Returns this class instance's raw value. 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 174b02b1..c249b175 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 @@ -396,9 +396,7 @@ private constructor( class CompanyContribution @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + private constructor(private val value: JsonField) : Enum { /** * Returns this class instance's raw value. @@ -488,11 +486,8 @@ private constructor( override fun toString() = value.toString() } - class EmployeeDeduction - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class EmployeeDeduction @JsonCreator private constructor(private val value: JsonField) : + Enum { /** * Returns this class instance's raw value. @@ -584,9 +579,7 @@ private constructor( class HsaContributionLimit @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + private constructor(private val value: JsonField) : Enum { /** * Returns this class instance's raw value. diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/UnenrolledIndividual.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/UnenrolledIndividual.kt index ade72313..f5adb2ec 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/UnenrolledIndividual.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/UnenrolledIndividual.kt @@ -121,12 +121,7 @@ private constructor( } fun build(): UnenrolledIndividual = - UnenrolledIndividual( - body, - code, - individualId, - additionalProperties.toImmutable(), - ) + UnenrolledIndividual(body, code, individualId, additionalProperties.toImmutable()) } @NoAutoDetect @@ -250,13 +245,7 @@ private constructor( keys.forEach(::removeAdditionalProperty) } - fun build(): Body = - Body( - finchCode, - message, - name, - additionalProperties.toImmutable(), - ) + fun build(): Body = Body(finchCode, message, name, additionalProperties.toImmutable()) } override fun equals(other: Any?): Boolean { 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 d1a7e8ba..95463baa 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 @@ -90,7 +90,7 @@ private constructor( fun build(): UpdateCompanyBenefitResponse = UpdateCompanyBenefitResponse( checkRequired("benefitId", benefitId), - additionalProperties.toImmutable() + additionalProperties.toImmutable(), ) } 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 98111406..eabe083c 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 @@ -134,13 +134,7 @@ private constructor( keys.forEach(::removeAdditionalProperty) } - fun build(): W42005 = - W42005( - data, - type, - year, - additionalProperties.toImmutable(), - ) + fun build(): W42005 = W42005(data, type, year, additionalProperties.toImmutable()) } /** Detailed information specific to the 2005 W4 form. */ @@ -347,11 +341,8 @@ private constructor( } /** Indicates exemption status from federal tax withholding. */ - class Exemption - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class Exemption @JsonCreator private constructor(private val value: JsonField) : + Enum { /** * Returns this class instance's raw value. @@ -443,11 +434,8 @@ private constructor( } /** The individual's filing status for tax purposes. */ - class FilingStatus - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class FilingStatus @JsonCreator private constructor(private val value: JsonField) : + Enum { /** * Returns this class instance's raw value. @@ -567,11 +555,7 @@ private constructor( } /** Specifies the form type, indicating that this document is a 2005 W4 form. */ - class Type - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class Type @JsonCreator private constructor(private val value: JsonField) : Enum { /** * Returns this class instance's raw value. @@ -592,7 +576,7 @@ private constructor( /** An enum containing [Type]'s known values. */ enum class Known { - W4_2005, + W4_2005 } /** 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 91bf811e..980f4078 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 @@ -134,13 +134,7 @@ private constructor( keys.forEach(::removeAdditionalProperty) } - fun build(): W42020 = - W42020( - data, - type, - year, - additionalProperties.toImmutable(), - ) + fun build(): W42020 = W42020(data, type, year, additionalProperties.toImmutable()) } /** Detailed information specific to the 2020 W4 form. */ @@ -481,11 +475,8 @@ private constructor( } /** The individual's filing status for tax purposes. */ - class FilingStatus - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class FilingStatus @JsonCreator private constructor(private val value: JsonField) : + Enum { /** * Returns this class instance's raw value. @@ -606,11 +597,7 @@ private constructor( } /** Specifies the form type, indicating that this document is a 2020 W4 form. */ - class Type - @JsonCreator - private constructor( - private val value: JsonField, - ) : Enum { + class Type @JsonCreator private constructor(private val value: JsonField) : Enum { /** * Returns this class instance's raw value. @@ -631,7 +618,7 @@ private constructor( /** An enum containing [Type]'s known values. */ enum class Known { - W4_2020, + W4_2020 } /** 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 57c76c37..fd604b72 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 @@ -274,7 +274,7 @@ private constructor( override fun serialize( value: WebhookEvent, generator: JsonGenerator, - provider: SerializerProvider + provider: SerializerProvider, ) { when { value.accountUpdate != null -> generator.writeObject(value.accountUpdate) diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/AccessTokenServiceAsync.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/AccessTokenServiceAsync.kt index a335874c..42797f29 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/AccessTokenServiceAsync.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/AccessTokenServiceAsync.kt @@ -15,6 +15,6 @@ interface AccessTokenServiceAsync { @JvmOverloads fun create( params: AccessTokenCreateParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): CompletableFuture } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/AccessTokenServiceAsyncImpl.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/AccessTokenServiceAsyncImpl.kt index 9660317e..a505ef7a 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/AccessTokenServiceAsyncImpl.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/AccessTokenServiceAsyncImpl.kt @@ -17,10 +17,8 @@ import com.tryfinch.api.models.AccessTokenCreateParams import com.tryfinch.api.models.CreateAccessTokenResponse import java.util.concurrent.CompletableFuture -class AccessTokenServiceAsyncImpl -internal constructor( - private val clientOptions: ClientOptions, -) : AccessTokenServiceAsync { +class AccessTokenServiceAsyncImpl internal constructor(private val clientOptions: ClientOptions) : + AccessTokenServiceAsync { private val errorHandler: Handler = errorHandler(clientOptions.jsonMapper) @@ -31,7 +29,7 @@ internal constructor( /** Exchange the authorization code for an access token */ override fun create( params: AccessTokenCreateParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): CompletableFuture { val request = HttpRequest.builder() diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/AccountServiceAsync.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/AccountServiceAsync.kt index 1759239f..b602490d 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/AccountServiceAsync.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/AccountServiceAsync.kt @@ -17,13 +17,13 @@ interface AccountServiceAsync { @JvmOverloads fun disconnect( params: AccountDisconnectParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): CompletableFuture /** Read account information associated with an `access_token` */ @JvmOverloads fun introspect( params: AccountIntrospectParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): CompletableFuture } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/AccountServiceAsyncImpl.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/AccountServiceAsyncImpl.kt index 12fb92bd..218b9c5d 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/AccountServiceAsyncImpl.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/AccountServiceAsyncImpl.kt @@ -19,10 +19,8 @@ import com.tryfinch.api.models.DisconnectResponse import com.tryfinch.api.models.Introspection import java.util.concurrent.CompletableFuture -class AccountServiceAsyncImpl -internal constructor( - private val clientOptions: ClientOptions, -) : AccountServiceAsync { +class AccountServiceAsyncImpl internal constructor(private val clientOptions: ClientOptions) : + AccountServiceAsync { private val errorHandler: Handler = errorHandler(clientOptions.jsonMapper) @@ -32,7 +30,7 @@ internal constructor( /** Disconnect one or more `access_token`s from your application. */ override fun disconnect( params: AccountDisconnectParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): CompletableFuture { val request = HttpRequest.builder() @@ -60,7 +58,7 @@ internal constructor( /** Read account information associated with an `access_token` */ override fun introspect( params: AccountIntrospectParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): CompletableFuture { val request = HttpRequest.builder() diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/ConnectServiceAsyncImpl.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/ConnectServiceAsyncImpl.kt index f86fb285..a019a5c1 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/ConnectServiceAsyncImpl.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/ConnectServiceAsyncImpl.kt @@ -6,10 +6,8 @@ import com.tryfinch.api.core.ClientOptions import com.tryfinch.api.services.async.connect.SessionServiceAsync import com.tryfinch.api.services.async.connect.SessionServiceAsyncImpl -class ConnectServiceAsyncImpl -internal constructor( - private val clientOptions: ClientOptions, -) : ConnectServiceAsync { +class ConnectServiceAsyncImpl internal constructor(private val clientOptions: ClientOptions) : + ConnectServiceAsync { private val sessions: SessionServiceAsync by lazy { SessionServiceAsyncImpl(clientOptions) } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/HrisServiceAsyncImpl.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/HrisServiceAsyncImpl.kt index d39d2925..913a435f 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/HrisServiceAsyncImpl.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/HrisServiceAsyncImpl.kt @@ -20,10 +20,8 @@ import com.tryfinch.api.services.async.hris.PayStatementServiceAsyncImpl import com.tryfinch.api.services.async.hris.PaymentServiceAsync import com.tryfinch.api.services.async.hris.PaymentServiceAsyncImpl -class HrisServiceAsyncImpl -internal constructor( - private val clientOptions: ClientOptions, -) : HrisServiceAsync { +class HrisServiceAsyncImpl internal constructor(private val clientOptions: ClientOptions) : + HrisServiceAsync { private val company: CompanyServiceAsync by lazy { CompanyServiceAsyncImpl(clientOptions) } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/JobServiceAsyncImpl.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/JobServiceAsyncImpl.kt index a8a0006f..264fb526 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/JobServiceAsyncImpl.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/JobServiceAsyncImpl.kt @@ -8,10 +8,8 @@ import com.tryfinch.api.services.async.jobs.AutomatedServiceAsyncImpl import com.tryfinch.api.services.async.jobs.ManualServiceAsync import com.tryfinch.api.services.async.jobs.ManualServiceAsyncImpl -class JobServiceAsyncImpl -internal constructor( - private val clientOptions: ClientOptions, -) : JobServiceAsync { +class JobServiceAsyncImpl internal constructor(private val clientOptions: ClientOptions) : + JobServiceAsync { private val automated: AutomatedServiceAsync by lazy { AutomatedServiceAsyncImpl(clientOptions) diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/PayrollServiceAsyncImpl.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/PayrollServiceAsyncImpl.kt index 6431023a..a856537b 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/PayrollServiceAsyncImpl.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/PayrollServiceAsyncImpl.kt @@ -6,10 +6,8 @@ import com.tryfinch.api.core.ClientOptions import com.tryfinch.api.services.async.payroll.PayGroupServiceAsync import com.tryfinch.api.services.async.payroll.PayGroupServiceAsyncImpl -class PayrollServiceAsyncImpl -internal constructor( - private val clientOptions: ClientOptions, -) : PayrollServiceAsync { +class PayrollServiceAsyncImpl internal constructor(private val clientOptions: ClientOptions) : + PayrollServiceAsync { private val payGroups: PayGroupServiceAsync by lazy { PayGroupServiceAsyncImpl(clientOptions) } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/ProviderServiceAsync.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/ProviderServiceAsync.kt index a0c9d904..7fe3883c 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/ProviderServiceAsync.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/ProviderServiceAsync.kt @@ -15,6 +15,6 @@ interface ProviderServiceAsync { @JvmOverloads fun list( params: ProviderListParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): CompletableFuture } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/ProviderServiceAsyncImpl.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/ProviderServiceAsyncImpl.kt index ace4182b..08227c2a 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/ProviderServiceAsyncImpl.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/ProviderServiceAsyncImpl.kt @@ -17,10 +17,8 @@ import com.tryfinch.api.models.ProviderListPageAsync import com.tryfinch.api.models.ProviderListParams import java.util.concurrent.CompletableFuture -class ProviderServiceAsyncImpl -internal constructor( - private val clientOptions: ClientOptions, -) : ProviderServiceAsync { +class ProviderServiceAsyncImpl internal constructor(private val clientOptions: ClientOptions) : + ProviderServiceAsync { private val errorHandler: Handler = errorHandler(clientOptions.jsonMapper) @@ -30,7 +28,7 @@ internal constructor( /** Return details on all available payroll and HR systems. */ override fun list( params: ProviderListParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): CompletableFuture { val request = HttpRequest.builder() @@ -52,7 +50,7 @@ internal constructor( ProviderListPageAsync.of( this, params, - ProviderListPageAsync.Response.builder().items(it).build() + ProviderListPageAsync.Response.builder().items(it).build(), ) } } 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 074159d0..824ada2d 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 @@ -19,6 +19,6 @@ interface RequestForwardingServiceAsync { @JvmOverloads fun forward( params: RequestForwardingForwardParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): CompletableFuture } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/RequestForwardingServiceAsyncImpl.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/RequestForwardingServiceAsyncImpl.kt index 70742b77..bcc50f5c 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/RequestForwardingServiceAsyncImpl.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/RequestForwardingServiceAsyncImpl.kt @@ -18,9 +18,7 @@ import com.tryfinch.api.models.RequestForwardingForwardResponse import java.util.concurrent.CompletableFuture class RequestForwardingServiceAsyncImpl -internal constructor( - private val clientOptions: ClientOptions, -) : RequestForwardingServiceAsync { +internal constructor(private val clientOptions: ClientOptions) : RequestForwardingServiceAsync { private val errorHandler: Handler = errorHandler(clientOptions.jsonMapper) @@ -35,7 +33,7 @@ internal constructor( */ override fun forward( params: RequestForwardingForwardParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): CompletableFuture { val request = HttpRequest.builder() diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/SandboxServiceAsyncImpl.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/SandboxServiceAsyncImpl.kt index 1557fa1a..d68cb53a 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/SandboxServiceAsyncImpl.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/SandboxServiceAsyncImpl.kt @@ -18,10 +18,8 @@ import com.tryfinch.api.services.async.sandbox.JobServiceAsyncImpl import com.tryfinch.api.services.async.sandbox.PaymentServiceAsync import com.tryfinch.api.services.async.sandbox.PaymentServiceAsyncImpl -class SandboxServiceAsyncImpl -internal constructor( - private val clientOptions: ClientOptions, -) : SandboxServiceAsync { +class SandboxServiceAsyncImpl internal constructor(private val clientOptions: ClientOptions) : + SandboxServiceAsync { private val connections: ConnectionServiceAsync by lazy { ConnectionServiceAsyncImpl(clientOptions) diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/WebhookServiceAsyncImpl.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/WebhookServiceAsyncImpl.kt index 93c2e785..3ab573bf 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/WebhookServiceAsyncImpl.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/WebhookServiceAsyncImpl.kt @@ -4,7 +4,5 @@ package com.tryfinch.api.services.async import com.tryfinch.api.core.ClientOptions -class WebhookServiceAsyncImpl -internal constructor( - private val clientOptions: ClientOptions, -) : WebhookServiceAsync +class WebhookServiceAsyncImpl internal constructor(private val clientOptions: ClientOptions) : + WebhookServiceAsync diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/connect/SessionServiceAsync.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/connect/SessionServiceAsync.kt index 26af3b52..e79109d7 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/connect/SessionServiceAsync.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/connect/SessionServiceAsync.kt @@ -17,13 +17,13 @@ interface SessionServiceAsync { @JvmOverloads fun new_( params: ConnectSessionNewParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): CompletableFuture /** Create a new Connect session for reauthenticating an existing connection */ @JvmOverloads fun reauthenticate( params: ConnectSessionReauthenticateParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): CompletableFuture } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/connect/SessionServiceAsyncImpl.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/connect/SessionServiceAsyncImpl.kt index b2d06dbc..385c1cb5 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/connect/SessionServiceAsyncImpl.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/connect/SessionServiceAsyncImpl.kt @@ -19,10 +19,8 @@ import com.tryfinch.api.models.SessionNewResponse import com.tryfinch.api.models.SessionReauthenticateResponse import java.util.concurrent.CompletableFuture -class SessionServiceAsyncImpl -internal constructor( - private val clientOptions: ClientOptions, -) : SessionServiceAsync { +class SessionServiceAsyncImpl internal constructor(private val clientOptions: ClientOptions) : + SessionServiceAsync { private val errorHandler: Handler = errorHandler(clientOptions.jsonMapper) @@ -32,7 +30,7 @@ internal constructor( /** Create a new connect session for an employer */ override fun new_( params: ConnectSessionNewParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): CompletableFuture { val request = HttpRequest.builder() @@ -61,7 +59,7 @@ internal constructor( /** Create a new Connect session for reauthenticating an existing connection */ override fun reauthenticate( params: ConnectSessionReauthenticateParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): CompletableFuture { val request = HttpRequest.builder() diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/BenefitServiceAsync.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/BenefitServiceAsync.kt index 0805aad8..6f547577 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/BenefitServiceAsync.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/BenefitServiceAsync.kt @@ -29,34 +29,34 @@ interface BenefitServiceAsync { @JvmOverloads fun create( params: HrisBenefitCreateParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): CompletableFuture /** Lists deductions and contributions information for a given item */ @JvmOverloads fun retrieve( params: HrisBenefitRetrieveParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): CompletableFuture /** Updates an existing company-wide deduction or contribution */ @JvmOverloads fun update( params: HrisBenefitUpdateParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): CompletableFuture /** List all company-wide deductions and contributions. */ @JvmOverloads fun list( params: HrisBenefitListParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): CompletableFuture /** Get deductions metadata */ @JvmOverloads fun listSupportedBenefits( params: HrisBenefitListSupportedBenefitsParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): CompletableFuture } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/BenefitServiceAsyncImpl.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/BenefitServiceAsyncImpl.kt index cf6c3816..88f2f69f 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/BenefitServiceAsyncImpl.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/BenefitServiceAsyncImpl.kt @@ -28,10 +28,8 @@ import com.tryfinch.api.services.async.hris.benefits.IndividualServiceAsync import com.tryfinch.api.services.async.hris.benefits.IndividualServiceAsyncImpl import java.util.concurrent.CompletableFuture -class BenefitServiceAsyncImpl -internal constructor( - private val clientOptions: ClientOptions, -) : BenefitServiceAsync { +class BenefitServiceAsyncImpl internal constructor(private val clientOptions: ClientOptions) : + BenefitServiceAsync { private val errorHandler: Handler = errorHandler(clientOptions.jsonMapper) @@ -51,7 +49,7 @@ internal constructor( */ override fun create( params: HrisBenefitCreateParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): CompletableFuture { val request = HttpRequest.builder() @@ -79,7 +77,7 @@ internal constructor( /** Lists deductions and contributions information for a given item */ override fun retrieve( params: HrisBenefitRetrieveParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): CompletableFuture { val request = HttpRequest.builder() @@ -107,7 +105,7 @@ internal constructor( /** Updates an existing company-wide deduction or contribution */ override fun update( params: HrisBenefitUpdateParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): CompletableFuture { val request = HttpRequest.builder() @@ -135,7 +133,7 @@ internal constructor( /** List all company-wide deductions and contributions. */ override fun list( params: HrisBenefitListParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): CompletableFuture { val request = HttpRequest.builder() @@ -157,7 +155,7 @@ internal constructor( HrisBenefitListPageAsync.of( this, params, - HrisBenefitListPageAsync.Response.builder().items(it).build() + HrisBenefitListPageAsync.Response.builder().items(it).build(), ) } } @@ -169,7 +167,7 @@ internal constructor( /** Get deductions metadata */ override fun listSupportedBenefits( params: HrisBenefitListSupportedBenefitsParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): CompletableFuture { val request = HttpRequest.builder() @@ -193,7 +191,7 @@ internal constructor( params, HrisBenefitListSupportedBenefitsPageAsync.Response.builder() .items(it) - .build() + .build(), ) } } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/CompanyServiceAsync.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/CompanyServiceAsync.kt index 339bf081..250bddee 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/CompanyServiceAsync.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/CompanyServiceAsync.kt @@ -15,6 +15,6 @@ interface CompanyServiceAsync { @JvmOverloads fun retrieve( params: HrisCompanyRetrieveParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): CompletableFuture } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/CompanyServiceAsyncImpl.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/CompanyServiceAsyncImpl.kt index fe766f4a..36830f68 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/CompanyServiceAsyncImpl.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/CompanyServiceAsyncImpl.kt @@ -16,10 +16,8 @@ import com.tryfinch.api.models.Company import com.tryfinch.api.models.HrisCompanyRetrieveParams import java.util.concurrent.CompletableFuture -class CompanyServiceAsyncImpl -internal constructor( - private val clientOptions: ClientOptions, -) : CompanyServiceAsync { +class CompanyServiceAsyncImpl internal constructor(private val clientOptions: ClientOptions) : + CompanyServiceAsync { private val errorHandler: Handler = errorHandler(clientOptions.jsonMapper) @@ -29,7 +27,7 @@ internal constructor( /** Read basic company data */ override fun retrieve( params: HrisCompanyRetrieveParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): CompletableFuture { val request = HttpRequest.builder() diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/DirectoryServiceAsync.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/DirectoryServiceAsync.kt index 6c42d153..e0afdd7f 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/DirectoryServiceAsync.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/DirectoryServiceAsync.kt @@ -17,7 +17,7 @@ interface DirectoryServiceAsync { @JvmOverloads fun list( params: HrisDirectoryListParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): CompletableFuture /** Read company directory and organization structure */ @@ -25,6 +25,6 @@ interface DirectoryServiceAsync { @JvmOverloads fun listIndividuals( params: HrisDirectoryListIndividualsParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): CompletableFuture } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/DirectoryServiceAsyncImpl.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/DirectoryServiceAsyncImpl.kt index 2c864b2b..00b8c0bb 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/DirectoryServiceAsyncImpl.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/DirectoryServiceAsyncImpl.kt @@ -18,10 +18,8 @@ import com.tryfinch.api.models.HrisDirectoryListPageAsync import com.tryfinch.api.models.HrisDirectoryListParams import java.util.concurrent.CompletableFuture -class DirectoryServiceAsyncImpl -internal constructor( - private val clientOptions: ClientOptions, -) : DirectoryServiceAsync { +class DirectoryServiceAsyncImpl internal constructor(private val clientOptions: ClientOptions) : + DirectoryServiceAsync { private val errorHandler: Handler = errorHandler(clientOptions.jsonMapper) @@ -32,7 +30,7 @@ internal constructor( /** Read company directory and organization structure */ override fun list( params: HrisDirectoryListParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): CompletableFuture { val request = HttpRequest.builder() @@ -62,7 +60,7 @@ internal constructor( @Deprecated("use `list` instead") override fun listIndividuals( params: HrisDirectoryListIndividualsParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): CompletableFuture { val request = HttpRequest.builder() diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/DocumentServiceAsync.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/DocumentServiceAsync.kt index 182bca7f..80833114 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/DocumentServiceAsync.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/DocumentServiceAsync.kt @@ -19,7 +19,7 @@ interface DocumentServiceAsync { @JvmOverloads fun list( params: HrisDocumentListParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): CompletableFuture /** @@ -29,6 +29,6 @@ interface DocumentServiceAsync { @JvmOverloads fun retreive( params: HrisDocumentRetreiveParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): CompletableFuture } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/DocumentServiceAsyncImpl.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/DocumentServiceAsyncImpl.kt index ee9d305e..a3faa516 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/DocumentServiceAsyncImpl.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/DocumentServiceAsyncImpl.kt @@ -18,10 +18,8 @@ import com.tryfinch.api.models.HrisDocumentListParams import com.tryfinch.api.models.HrisDocumentRetreiveParams import java.util.concurrent.CompletableFuture -class DocumentServiceAsyncImpl -internal constructor( - private val clientOptions: ClientOptions, -) : DocumentServiceAsync { +class DocumentServiceAsyncImpl internal constructor(private val clientOptions: ClientOptions) : + DocumentServiceAsync { private val errorHandler: Handler = errorHandler(clientOptions.jsonMapper) @@ -33,7 +31,7 @@ internal constructor( */ override fun list( params: HrisDocumentListParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): CompletableFuture { val request = HttpRequest.builder() @@ -64,7 +62,7 @@ internal constructor( */ override fun retreive( params: HrisDocumentRetreiveParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): CompletableFuture { val request = HttpRequest.builder() diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/EmploymentServiceAsync.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/EmploymentServiceAsync.kt index 07dd2ccd..d12c27bc 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/EmploymentServiceAsync.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/EmploymentServiceAsync.kt @@ -15,6 +15,6 @@ interface EmploymentServiceAsync { @JvmOverloads fun retrieveMany( params: HrisEmploymentRetrieveManyParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): CompletableFuture } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/EmploymentServiceAsyncImpl.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/EmploymentServiceAsyncImpl.kt index 4641c6dc..07a11f84 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/EmploymentServiceAsyncImpl.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/EmploymentServiceAsyncImpl.kt @@ -17,10 +17,8 @@ import com.tryfinch.api.models.HrisEmploymentRetrieveManyPageAsync import com.tryfinch.api.models.HrisEmploymentRetrieveManyParams import java.util.concurrent.CompletableFuture -class EmploymentServiceAsyncImpl -internal constructor( - private val clientOptions: ClientOptions, -) : EmploymentServiceAsync { +class EmploymentServiceAsyncImpl internal constructor(private val clientOptions: ClientOptions) : + EmploymentServiceAsync { private val errorHandler: Handler = errorHandler(clientOptions.jsonMapper) @@ -31,7 +29,7 @@ internal constructor( /** Read individual employment and income data */ override fun retrieveMany( params: HrisEmploymentRetrieveManyParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): CompletableFuture { val request = HttpRequest.builder() diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/IndividualServiceAsync.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/IndividualServiceAsync.kt index 899ae063..c888eba6 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/IndividualServiceAsync.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/IndividualServiceAsync.kt @@ -15,6 +15,6 @@ interface IndividualServiceAsync { @JvmOverloads fun retrieveMany( params: HrisIndividualRetrieveManyParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): CompletableFuture } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/IndividualServiceAsyncImpl.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/IndividualServiceAsyncImpl.kt index 8ee3f4d5..a901d00d 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/IndividualServiceAsyncImpl.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/IndividualServiceAsyncImpl.kt @@ -17,10 +17,8 @@ import com.tryfinch.api.models.HrisIndividualRetrieveManyPageAsync import com.tryfinch.api.models.HrisIndividualRetrieveManyParams import java.util.concurrent.CompletableFuture -class IndividualServiceAsyncImpl -internal constructor( - private val clientOptions: ClientOptions, -) : IndividualServiceAsync { +class IndividualServiceAsyncImpl internal constructor(private val clientOptions: ClientOptions) : + IndividualServiceAsync { private val errorHandler: Handler = errorHandler(clientOptions.jsonMapper) @@ -31,7 +29,7 @@ internal constructor( /** Read individual data, excluding income and employment data */ override fun retrieveMany( params: HrisIndividualRetrieveManyParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): CompletableFuture { val request = HttpRequest.builder() diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/PayStatementServiceAsync.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/PayStatementServiceAsync.kt index 00bf54fb..6cb4e5d8 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/PayStatementServiceAsync.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/PayStatementServiceAsync.kt @@ -19,6 +19,6 @@ interface PayStatementServiceAsync { @JvmOverloads fun retrieveMany( params: HrisPayStatementRetrieveManyParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): CompletableFuture } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/PayStatementServiceAsyncImpl.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/PayStatementServiceAsyncImpl.kt index 92a73112..5b5ac320 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/PayStatementServiceAsyncImpl.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/PayStatementServiceAsyncImpl.kt @@ -17,10 +17,8 @@ import com.tryfinch.api.models.HrisPayStatementRetrieveManyPageAsync import com.tryfinch.api.models.HrisPayStatementRetrieveManyParams import java.util.concurrent.CompletableFuture -class PayStatementServiceAsyncImpl -internal constructor( - private val clientOptions: ClientOptions, -) : PayStatementServiceAsync { +class PayStatementServiceAsyncImpl internal constructor(private val clientOptions: ClientOptions) : + PayStatementServiceAsync { private val errorHandler: Handler = errorHandler(clientOptions.jsonMapper) @@ -35,7 +33,7 @@ internal constructor( */ override fun retrieveMany( params: HrisPayStatementRetrieveManyParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): CompletableFuture { val request = HttpRequest.builder() diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/PaymentServiceAsync.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/PaymentServiceAsync.kt index d734128c..98dee989 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/PaymentServiceAsync.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/PaymentServiceAsync.kt @@ -15,6 +15,6 @@ interface PaymentServiceAsync { @JvmOverloads fun list( params: HrisPaymentListParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): CompletableFuture } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/PaymentServiceAsyncImpl.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/PaymentServiceAsyncImpl.kt index d78ed34b..db387453 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/PaymentServiceAsyncImpl.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/PaymentServiceAsyncImpl.kt @@ -17,10 +17,8 @@ import com.tryfinch.api.models.HrisPaymentListParams import com.tryfinch.api.models.Payment import java.util.concurrent.CompletableFuture -class PaymentServiceAsyncImpl -internal constructor( - private val clientOptions: ClientOptions, -) : PaymentServiceAsync { +class PaymentServiceAsyncImpl internal constructor(private val clientOptions: ClientOptions) : + PaymentServiceAsync { private val errorHandler: Handler = errorHandler(clientOptions.jsonMapper) @@ -30,7 +28,7 @@ internal constructor( /** Read payroll and contractor related payments by the company. */ override fun list( params: HrisPaymentListParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): CompletableFuture { val request = HttpRequest.builder() @@ -52,7 +50,7 @@ internal constructor( HrisPaymentListPageAsync.of( this, params, - HrisPaymentListPageAsync.Response.builder().items(it).build() + HrisPaymentListPageAsync.Response.builder().items(it).build(), ) } } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/benefits/IndividualServiceAsync.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/benefits/IndividualServiceAsync.kt index 84a4f2d3..62575fe9 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/benefits/IndividualServiceAsync.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/benefits/IndividualServiceAsync.kt @@ -19,20 +19,20 @@ interface IndividualServiceAsync { @JvmOverloads fun enrolledIds( params: HrisBenefitIndividualEnrolledIdsParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): CompletableFuture /** Get enrollment information for the given individuals. */ @JvmOverloads fun retrieveManyBenefits( params: HrisBenefitIndividualRetrieveManyBenefitsParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): CompletableFuture /** Unenroll individuals from a deduction or contribution */ @JvmOverloads fun unenrollMany( params: HrisBenefitIndividualUnenrollManyParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): CompletableFuture } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/benefits/IndividualServiceAsyncImpl.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/benefits/IndividualServiceAsyncImpl.kt index b60550b9..db7f5262 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/benefits/IndividualServiceAsyncImpl.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/benefits/IndividualServiceAsyncImpl.kt @@ -23,10 +23,8 @@ import com.tryfinch.api.models.IndividualEnrolledIdsResponse import com.tryfinch.api.models.UnenrolledIndividual import java.util.concurrent.CompletableFuture -class IndividualServiceAsyncImpl -internal constructor( - private val clientOptions: ClientOptions, -) : IndividualServiceAsync { +class IndividualServiceAsyncImpl internal constructor(private val clientOptions: ClientOptions) : + IndividualServiceAsync { private val errorHandler: Handler = errorHandler(clientOptions.jsonMapper) @@ -37,7 +35,7 @@ internal constructor( /** Lists individuals currently enrolled in a given deduction. */ override fun enrolledIds( params: HrisBenefitIndividualEnrolledIdsParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): CompletableFuture { val request = HttpRequest.builder() @@ -65,7 +63,7 @@ internal constructor( /** Get enrollment information for the given individuals. */ override fun retrieveManyBenefits( params: HrisBenefitIndividualRetrieveManyBenefitsParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): CompletableFuture { val request = HttpRequest.builder() @@ -89,7 +87,7 @@ internal constructor( params, HrisBenefitIndividualRetrieveManyBenefitsPageAsync.Response.builder() .items(it) - .build() + .build(), ) } } @@ -102,7 +100,7 @@ internal constructor( /** Unenroll individuals from a deduction or contribution */ override fun unenrollMany( params: HrisBenefitIndividualUnenrollManyParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): CompletableFuture { val request = HttpRequest.builder() @@ -127,7 +125,7 @@ internal constructor( params, HrisBenefitIndividualUnenrollManyPageAsync.Response.builder() .items(it) - .build() + .build(), ) } } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/jobs/AutomatedServiceAsync.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/jobs/AutomatedServiceAsync.kt index 4489016e..aecaf07b 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/jobs/AutomatedServiceAsync.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/jobs/AutomatedServiceAsync.kt @@ -33,14 +33,14 @@ interface AutomatedServiceAsync { @JvmOverloads fun create( params: JobAutomatedCreateParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): CompletableFuture /** Get an automated job by `job_id`. */ @JvmOverloads fun retrieve( params: JobAutomatedRetrieveParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): CompletableFuture /** @@ -51,6 +51,6 @@ interface AutomatedServiceAsync { @JvmOverloads fun list( params: JobAutomatedListParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): CompletableFuture } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/jobs/AutomatedServiceAsyncImpl.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/jobs/AutomatedServiceAsyncImpl.kt index b40330e6..934af1b6 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/jobs/AutomatedServiceAsyncImpl.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/jobs/AutomatedServiceAsyncImpl.kt @@ -21,10 +21,8 @@ import com.tryfinch.api.models.JobAutomatedListParams import com.tryfinch.api.models.JobAutomatedRetrieveParams import java.util.concurrent.CompletableFuture -class AutomatedServiceAsyncImpl -internal constructor( - private val clientOptions: ClientOptions, -) : AutomatedServiceAsync { +class AutomatedServiceAsyncImpl internal constructor(private val clientOptions: ClientOptions) : + AutomatedServiceAsync { private val errorHandler: Handler = errorHandler(clientOptions.jsonMapper) @@ -49,7 +47,7 @@ internal constructor( */ override fun create( params: JobAutomatedCreateParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): CompletableFuture { val request = HttpRequest.builder() @@ -77,7 +75,7 @@ internal constructor( /** Get an automated job by `job_id`. */ override fun retrieve( params: JobAutomatedRetrieveParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): CompletableFuture { val request = HttpRequest.builder() @@ -109,7 +107,7 @@ internal constructor( */ override fun list( params: JobAutomatedListParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): CompletableFuture { val request = HttpRequest.builder() diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/jobs/ManualServiceAsync.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/jobs/ManualServiceAsync.kt index 4de2be8c..b3b9e674 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/jobs/ManualServiceAsync.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/jobs/ManualServiceAsync.kt @@ -18,6 +18,6 @@ interface ManualServiceAsync { @JvmOverloads fun retrieve( params: JobManualRetrieveParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): CompletableFuture } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/jobs/ManualServiceAsyncImpl.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/jobs/ManualServiceAsyncImpl.kt index bc85ac72..4b05c57a 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/jobs/ManualServiceAsyncImpl.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/jobs/ManualServiceAsyncImpl.kt @@ -16,10 +16,8 @@ import com.tryfinch.api.models.JobManualRetrieveParams import com.tryfinch.api.models.ManualAsyncJob import java.util.concurrent.CompletableFuture -class ManualServiceAsyncImpl -internal constructor( - private val clientOptions: ClientOptions, -) : ManualServiceAsync { +class ManualServiceAsyncImpl internal constructor(private val clientOptions: ClientOptions) : + ManualServiceAsync { private val errorHandler: Handler = errorHandler(clientOptions.jsonMapper) @@ -32,7 +30,7 @@ internal constructor( */ override fun retrieve( params: JobManualRetrieveParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): CompletableFuture { val request = HttpRequest.builder() diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/payroll/PayGroupServiceAsync.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/payroll/PayGroupServiceAsync.kt index 4761934d..92ee6590 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/payroll/PayGroupServiceAsync.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/payroll/PayGroupServiceAsync.kt @@ -17,13 +17,13 @@ interface PayGroupServiceAsync { @JvmOverloads fun retrieve( params: PayrollPayGroupRetrieveParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): CompletableFuture /** Read company pay groups and frequencies */ @JvmOverloads fun list( params: PayrollPayGroupListParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): CompletableFuture } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/payroll/PayGroupServiceAsyncImpl.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/payroll/PayGroupServiceAsyncImpl.kt index a62ed715..c9fa6c1a 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/payroll/PayGroupServiceAsyncImpl.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/payroll/PayGroupServiceAsyncImpl.kt @@ -19,10 +19,8 @@ import com.tryfinch.api.models.PayrollPayGroupListParams import com.tryfinch.api.models.PayrollPayGroupRetrieveParams import java.util.concurrent.CompletableFuture -class PayGroupServiceAsyncImpl -internal constructor( - private val clientOptions: ClientOptions, -) : PayGroupServiceAsync { +class PayGroupServiceAsyncImpl internal constructor(private val clientOptions: ClientOptions) : + PayGroupServiceAsync { private val errorHandler: Handler = errorHandler(clientOptions.jsonMapper) @@ -33,7 +31,7 @@ internal constructor( /** Read information from a single pay group */ override fun retrieve( params: PayrollPayGroupRetrieveParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): CompletableFuture { val request = HttpRequest.builder() @@ -61,7 +59,7 @@ internal constructor( /** Read company pay groups and frequencies */ override fun list( params: PayrollPayGroupListParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): CompletableFuture { val request = HttpRequest.builder() @@ -83,7 +81,7 @@ internal constructor( PayrollPayGroupListPageAsync.of( this, params, - PayrollPayGroupListPageAsync.Response.builder().items(it).build() + PayrollPayGroupListPageAsync.Response.builder().items(it).build(), ) } } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/sandbox/CompanyServiceAsync.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/sandbox/CompanyServiceAsync.kt index 8565c002..09dc9208 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/sandbox/CompanyServiceAsync.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/sandbox/CompanyServiceAsync.kt @@ -15,6 +15,6 @@ interface CompanyServiceAsync { @JvmOverloads fun update( params: SandboxCompanyUpdateParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): CompletableFuture } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/sandbox/CompanyServiceAsyncImpl.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/sandbox/CompanyServiceAsyncImpl.kt index f3a188cf..4ca29904 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/sandbox/CompanyServiceAsyncImpl.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/sandbox/CompanyServiceAsyncImpl.kt @@ -17,10 +17,8 @@ import com.tryfinch.api.models.CompanyUpdateResponse import com.tryfinch.api.models.SandboxCompanyUpdateParams import java.util.concurrent.CompletableFuture -class CompanyServiceAsyncImpl -internal constructor( - private val clientOptions: ClientOptions, -) : CompanyServiceAsync { +class CompanyServiceAsyncImpl internal constructor(private val clientOptions: ClientOptions) : + CompanyServiceAsync { private val errorHandler: Handler = errorHandler(clientOptions.jsonMapper) @@ -30,7 +28,7 @@ internal constructor( /** Update a sandbox company's data */ override fun update( params: SandboxCompanyUpdateParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): CompletableFuture { val request = HttpRequest.builder() diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/sandbox/ConnectionServiceAsync.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/sandbox/ConnectionServiceAsync.kt index cd3a9715..02284513 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/sandbox/ConnectionServiceAsync.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/sandbox/ConnectionServiceAsync.kt @@ -18,6 +18,6 @@ interface ConnectionServiceAsync { @JvmOverloads fun create( params: SandboxConnectionCreateParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): CompletableFuture } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/sandbox/ConnectionServiceAsyncImpl.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/sandbox/ConnectionServiceAsyncImpl.kt index f3fbb40c..aecc772e 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/sandbox/ConnectionServiceAsyncImpl.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/sandbox/ConnectionServiceAsyncImpl.kt @@ -19,10 +19,8 @@ import com.tryfinch.api.services.async.sandbox.connections.AccountServiceAsync import com.tryfinch.api.services.async.sandbox.connections.AccountServiceAsyncImpl import java.util.concurrent.CompletableFuture -class ConnectionServiceAsyncImpl -internal constructor( - private val clientOptions: ClientOptions, -) : ConnectionServiceAsync { +class ConnectionServiceAsyncImpl internal constructor(private val clientOptions: ClientOptions) : + ConnectionServiceAsync { private val errorHandler: Handler = errorHandler(clientOptions.jsonMapper) @@ -37,7 +35,7 @@ internal constructor( /** Create a new connection (new company/provider pair) with a new account */ override fun create( params: SandboxConnectionCreateParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): CompletableFuture { val request = HttpRequest.builder() diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/sandbox/DirectoryServiceAsync.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/sandbox/DirectoryServiceAsync.kt index 20741d7c..7802b965 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/sandbox/DirectoryServiceAsync.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/sandbox/DirectoryServiceAsync.kt @@ -15,6 +15,6 @@ interface DirectoryServiceAsync { @JvmOverloads fun create( params: SandboxDirectoryCreateParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): CompletableFuture> } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/sandbox/DirectoryServiceAsyncImpl.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/sandbox/DirectoryServiceAsyncImpl.kt index a85a58fc..43178f1f 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/sandbox/DirectoryServiceAsyncImpl.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/sandbox/DirectoryServiceAsyncImpl.kt @@ -17,10 +17,8 @@ import com.tryfinch.api.errors.FinchError import com.tryfinch.api.models.SandboxDirectoryCreateParams import java.util.concurrent.CompletableFuture -class DirectoryServiceAsyncImpl -internal constructor( - private val clientOptions: ClientOptions, -) : DirectoryServiceAsync { +class DirectoryServiceAsyncImpl internal constructor(private val clientOptions: ClientOptions) : + DirectoryServiceAsync { private val errorHandler: Handler = errorHandler(clientOptions.jsonMapper) @@ -30,7 +28,7 @@ internal constructor( /** Add new individuals to a sandbox company */ override fun create( params: SandboxDirectoryCreateParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): CompletableFuture> { val request = HttpRequest.builder() diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/sandbox/EmploymentServiceAsync.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/sandbox/EmploymentServiceAsync.kt index 4c8888aa..00219b33 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/sandbox/EmploymentServiceAsync.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/sandbox/EmploymentServiceAsync.kt @@ -15,6 +15,6 @@ interface EmploymentServiceAsync { @JvmOverloads fun update( params: SandboxEmploymentUpdateParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): CompletableFuture } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/sandbox/EmploymentServiceAsyncImpl.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/sandbox/EmploymentServiceAsyncImpl.kt index aa2c9d0b..11baffe9 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/sandbox/EmploymentServiceAsyncImpl.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/sandbox/EmploymentServiceAsyncImpl.kt @@ -17,10 +17,8 @@ import com.tryfinch.api.models.EmploymentUpdateResponse import com.tryfinch.api.models.SandboxEmploymentUpdateParams import java.util.concurrent.CompletableFuture -class EmploymentServiceAsyncImpl -internal constructor( - private val clientOptions: ClientOptions, -) : EmploymentServiceAsync { +class EmploymentServiceAsyncImpl internal constructor(private val clientOptions: ClientOptions) : + EmploymentServiceAsync { private val errorHandler: Handler = errorHandler(clientOptions.jsonMapper) @@ -31,7 +29,7 @@ internal constructor( /** Update sandbox employment */ override fun update( params: SandboxEmploymentUpdateParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): CompletableFuture { val request = HttpRequest.builder() diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/sandbox/IndividualServiceAsync.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/sandbox/IndividualServiceAsync.kt index eead5ee1..81695b1c 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/sandbox/IndividualServiceAsync.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/sandbox/IndividualServiceAsync.kt @@ -15,6 +15,6 @@ interface IndividualServiceAsync { @JvmOverloads fun update( params: SandboxIndividualUpdateParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): CompletableFuture } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/sandbox/IndividualServiceAsyncImpl.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/sandbox/IndividualServiceAsyncImpl.kt index f01dc64f..d194f2c1 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/sandbox/IndividualServiceAsyncImpl.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/sandbox/IndividualServiceAsyncImpl.kt @@ -17,10 +17,8 @@ import com.tryfinch.api.models.IndividualUpdateResponse import com.tryfinch.api.models.SandboxIndividualUpdateParams import java.util.concurrent.CompletableFuture -class IndividualServiceAsyncImpl -internal constructor( - private val clientOptions: ClientOptions, -) : IndividualServiceAsync { +class IndividualServiceAsyncImpl internal constructor(private val clientOptions: ClientOptions) : + IndividualServiceAsync { private val errorHandler: Handler = errorHandler(clientOptions.jsonMapper) @@ -31,7 +29,7 @@ internal constructor( /** Update sandbox individual */ override fun update( params: SandboxIndividualUpdateParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): CompletableFuture { val request = HttpRequest.builder() diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/sandbox/JobServiceAsync.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/sandbox/JobServiceAsync.kt index 40b1d48c..56612e5b 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/sandbox/JobServiceAsync.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/sandbox/JobServiceAsync.kt @@ -18,6 +18,6 @@ interface JobServiceAsync { @JvmOverloads fun create( params: SandboxJobCreateParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): CompletableFuture } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/sandbox/JobServiceAsyncImpl.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/sandbox/JobServiceAsyncImpl.kt index ec086214..ae344f6c 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/sandbox/JobServiceAsyncImpl.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/sandbox/JobServiceAsyncImpl.kt @@ -19,10 +19,8 @@ import com.tryfinch.api.services.async.sandbox.jobs.ConfigurationServiceAsync import com.tryfinch.api.services.async.sandbox.jobs.ConfigurationServiceAsyncImpl import java.util.concurrent.CompletableFuture -class JobServiceAsyncImpl -internal constructor( - private val clientOptions: ClientOptions, -) : JobServiceAsync { +class JobServiceAsyncImpl internal constructor(private val clientOptions: ClientOptions) : + JobServiceAsync { private val errorHandler: Handler = errorHandler(clientOptions.jsonMapper) @@ -38,7 +36,7 @@ internal constructor( /** Enqueue a new sandbox job */ override fun create( params: SandboxJobCreateParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): CompletableFuture { val request = HttpRequest.builder() diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/sandbox/PaymentServiceAsync.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/sandbox/PaymentServiceAsync.kt index 0cd953ff..00f99f4c 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/sandbox/PaymentServiceAsync.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/sandbox/PaymentServiceAsync.kt @@ -15,6 +15,6 @@ interface PaymentServiceAsync { @JvmOverloads fun create( params: SandboxPaymentCreateParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): CompletableFuture } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/sandbox/PaymentServiceAsyncImpl.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/sandbox/PaymentServiceAsyncImpl.kt index 6aa24d29..13b829d5 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/sandbox/PaymentServiceAsyncImpl.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/sandbox/PaymentServiceAsyncImpl.kt @@ -17,10 +17,8 @@ import com.tryfinch.api.models.PaymentCreateResponse import com.tryfinch.api.models.SandboxPaymentCreateParams import java.util.concurrent.CompletableFuture -class PaymentServiceAsyncImpl -internal constructor( - private val clientOptions: ClientOptions, -) : PaymentServiceAsync { +class PaymentServiceAsyncImpl internal constructor(private val clientOptions: ClientOptions) : + PaymentServiceAsync { private val errorHandler: Handler = errorHandler(clientOptions.jsonMapper) @@ -30,7 +28,7 @@ internal constructor( /** Add a new sandbox payment */ override fun create( params: SandboxPaymentCreateParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): CompletableFuture { val request = HttpRequest.builder() diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/sandbox/connections/AccountServiceAsync.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/sandbox/connections/AccountServiceAsync.kt index 40a4fb8a..9b1de597 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/sandbox/connections/AccountServiceAsync.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/sandbox/connections/AccountServiceAsync.kt @@ -17,7 +17,7 @@ interface AccountServiceAsync { @JvmOverloads fun create( params: SandboxConnectionAccountCreateParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): CompletableFuture /** @@ -27,6 +27,6 @@ interface AccountServiceAsync { @JvmOverloads fun update( params: SandboxConnectionAccountUpdateParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): CompletableFuture } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/sandbox/connections/AccountServiceAsyncImpl.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/sandbox/connections/AccountServiceAsyncImpl.kt index acaf2640..b84f6266 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/sandbox/connections/AccountServiceAsyncImpl.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/sandbox/connections/AccountServiceAsyncImpl.kt @@ -19,10 +19,8 @@ import com.tryfinch.api.models.SandboxConnectionAccountCreateParams import com.tryfinch.api.models.SandboxConnectionAccountUpdateParams import java.util.concurrent.CompletableFuture -class AccountServiceAsyncImpl -internal constructor( - private val clientOptions: ClientOptions, -) : AccountServiceAsync { +class AccountServiceAsyncImpl internal constructor(private val clientOptions: ClientOptions) : + AccountServiceAsync { private val errorHandler: Handler = errorHandler(clientOptions.jsonMapper) @@ -32,7 +30,7 @@ internal constructor( /** Create a new account for an existing connection (company/provider pair) */ override fun create( params: SandboxConnectionAccountCreateParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): CompletableFuture { val request = HttpRequest.builder() @@ -63,7 +61,7 @@ internal constructor( */ override fun update( params: SandboxConnectionAccountUpdateParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): CompletableFuture { val request = HttpRequest.builder() diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/sandbox/jobs/ConfigurationServiceAsync.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/sandbox/jobs/ConfigurationServiceAsync.kt index ba1dbde7..e9fa09f4 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/sandbox/jobs/ConfigurationServiceAsync.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/sandbox/jobs/ConfigurationServiceAsync.kt @@ -16,13 +16,13 @@ interface ConfigurationServiceAsync { @JvmOverloads fun retrieve( params: SandboxJobConfigurationRetrieveParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): CompletableFuture> /** Update configurations for sandbox jobs */ @JvmOverloads fun update( params: SandboxJobConfigurationUpdateParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): CompletableFuture } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/sandbox/jobs/ConfigurationServiceAsyncImpl.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/sandbox/jobs/ConfigurationServiceAsyncImpl.kt index 3929d315..b3ebe7aa 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/sandbox/jobs/ConfigurationServiceAsyncImpl.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/sandbox/jobs/ConfigurationServiceAsyncImpl.kt @@ -18,10 +18,8 @@ import com.tryfinch.api.models.SandboxJobConfigurationRetrieveParams import com.tryfinch.api.models.SandboxJobConfigurationUpdateParams import java.util.concurrent.CompletableFuture -class ConfigurationServiceAsyncImpl -internal constructor( - private val clientOptions: ClientOptions, -) : ConfigurationServiceAsync { +class ConfigurationServiceAsyncImpl internal constructor(private val clientOptions: ClientOptions) : + ConfigurationServiceAsync { private val errorHandler: Handler = errorHandler(clientOptions.jsonMapper) @@ -32,7 +30,7 @@ internal constructor( /** Get configurations for sandbox jobs */ override fun retrieve( params: SandboxJobConfigurationRetrieveParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): CompletableFuture> { val request = HttpRequest.builder() @@ -60,7 +58,7 @@ internal constructor( /** Update configurations for sandbox jobs */ override fun update( params: SandboxJobConfigurationUpdateParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): CompletableFuture { val request = HttpRequest.builder() diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/AccessTokenService.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/AccessTokenService.kt index ad4b8e53..5eb189ed 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/AccessTokenService.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/AccessTokenService.kt @@ -14,6 +14,6 @@ interface AccessTokenService { @JvmOverloads fun create( params: AccessTokenCreateParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): CreateAccessTokenResponse } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/AccessTokenServiceImpl.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/AccessTokenServiceImpl.kt index f7e58eed..60c5372b 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/AccessTokenServiceImpl.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/AccessTokenServiceImpl.kt @@ -16,10 +16,8 @@ import com.tryfinch.api.errors.FinchError import com.tryfinch.api.models.AccessTokenCreateParams import com.tryfinch.api.models.CreateAccessTokenResponse -class AccessTokenServiceImpl -internal constructor( - private val clientOptions: ClientOptions, -) : AccessTokenService { +class AccessTokenServiceImpl internal constructor(private val clientOptions: ClientOptions) : + AccessTokenService { private val errorHandler: Handler = errorHandler(clientOptions.jsonMapper) @@ -30,7 +28,7 @@ internal constructor( /** Exchange the authorization code for an access token */ override fun create( params: AccessTokenCreateParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): CreateAccessTokenResponse { val request = HttpRequest.builder() diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/AccountService.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/AccountService.kt index 917a0827..5cc0334d 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/AccountService.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/AccountService.kt @@ -16,13 +16,13 @@ interface AccountService { @JvmOverloads fun disconnect( params: AccountDisconnectParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): DisconnectResponse /** Read account information associated with an `access_token` */ @JvmOverloads fun introspect( params: AccountIntrospectParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): Introspection } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/AccountServiceImpl.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/AccountServiceImpl.kt index a636d599..45a7f120 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/AccountServiceImpl.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/AccountServiceImpl.kt @@ -18,10 +18,8 @@ import com.tryfinch.api.models.AccountIntrospectParams import com.tryfinch.api.models.DisconnectResponse import com.tryfinch.api.models.Introspection -class AccountServiceImpl -internal constructor( - private val clientOptions: ClientOptions, -) : AccountService { +class AccountServiceImpl internal constructor(private val clientOptions: ClientOptions) : + AccountService { private val errorHandler: Handler = errorHandler(clientOptions.jsonMapper) @@ -31,7 +29,7 @@ internal constructor( /** Disconnect one or more `access_token`s from your application. */ override fun disconnect( params: AccountDisconnectParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): DisconnectResponse { val request = HttpRequest.builder() @@ -56,7 +54,7 @@ internal constructor( /** Read account information associated with an `access_token` */ override fun introspect( params: AccountIntrospectParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): Introspection { val request = HttpRequest.builder() diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/ConnectServiceImpl.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/ConnectServiceImpl.kt index 33ad8280..52c64ab3 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/ConnectServiceImpl.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/ConnectServiceImpl.kt @@ -6,10 +6,8 @@ import com.tryfinch.api.core.ClientOptions import com.tryfinch.api.services.blocking.connect.SessionService import com.tryfinch.api.services.blocking.connect.SessionServiceImpl -class ConnectServiceImpl -internal constructor( - private val clientOptions: ClientOptions, -) : ConnectService { +class ConnectServiceImpl internal constructor(private val clientOptions: ClientOptions) : + ConnectService { private val sessions: SessionService by lazy { SessionServiceImpl(clientOptions) } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/HrisServiceImpl.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/HrisServiceImpl.kt index 7815bd7c..78b7de0a 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/HrisServiceImpl.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/HrisServiceImpl.kt @@ -20,10 +20,7 @@ import com.tryfinch.api.services.blocking.hris.PayStatementServiceImpl import com.tryfinch.api.services.blocking.hris.PaymentService import com.tryfinch.api.services.blocking.hris.PaymentServiceImpl -class HrisServiceImpl -internal constructor( - private val clientOptions: ClientOptions, -) : HrisService { +class HrisServiceImpl internal constructor(private val clientOptions: ClientOptions) : HrisService { private val company: CompanyService by lazy { CompanyServiceImpl(clientOptions) } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/JobServiceImpl.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/JobServiceImpl.kt index e66f9efc..29bdd632 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/JobServiceImpl.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/JobServiceImpl.kt @@ -8,10 +8,7 @@ import com.tryfinch.api.services.blocking.jobs.AutomatedServiceImpl import com.tryfinch.api.services.blocking.jobs.ManualService import com.tryfinch.api.services.blocking.jobs.ManualServiceImpl -class JobServiceImpl -internal constructor( - private val clientOptions: ClientOptions, -) : JobService { +class JobServiceImpl internal constructor(private val clientOptions: ClientOptions) : JobService { private val automated: AutomatedService by lazy { AutomatedServiceImpl(clientOptions) } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/PayrollServiceImpl.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/PayrollServiceImpl.kt index 574b007b..ca423f3d 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/PayrollServiceImpl.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/PayrollServiceImpl.kt @@ -6,10 +6,8 @@ import com.tryfinch.api.core.ClientOptions import com.tryfinch.api.services.blocking.payroll.PayGroupService import com.tryfinch.api.services.blocking.payroll.PayGroupServiceImpl -class PayrollServiceImpl -internal constructor( - private val clientOptions: ClientOptions, -) : PayrollService { +class PayrollServiceImpl internal constructor(private val clientOptions: ClientOptions) : + PayrollService { private val payGroups: PayGroupService by lazy { PayGroupServiceImpl(clientOptions) } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/ProviderService.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/ProviderService.kt index 5573b3a1..9c534a0d 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/ProviderService.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/ProviderService.kt @@ -14,6 +14,6 @@ interface ProviderService { @JvmOverloads fun list( params: ProviderListParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): ProviderListPage } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/ProviderServiceImpl.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/ProviderServiceImpl.kt index e27d7069..b74c1193 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/ProviderServiceImpl.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/ProviderServiceImpl.kt @@ -16,10 +16,8 @@ import com.tryfinch.api.models.Provider import com.tryfinch.api.models.ProviderListPage import com.tryfinch.api.models.ProviderListParams -class ProviderServiceImpl -internal constructor( - private val clientOptions: ClientOptions, -) : ProviderService { +class ProviderServiceImpl internal constructor(private val clientOptions: ClientOptions) : + ProviderService { private val errorHandler: Handler = errorHandler(clientOptions.jsonMapper) @@ -29,7 +27,7 @@ internal constructor( /** Return details on all available payroll and HR systems. */ override fun list( params: ProviderListParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): ProviderListPage { val request = HttpRequest.builder() @@ -49,7 +47,7 @@ internal constructor( ProviderListPage.of( this, params, - ProviderListPage.Response.builder().items(it).build() + ProviderListPage.Response.builder().items(it).build(), ) } } 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 db08ee9b..7bcd0174 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 @@ -18,6 +18,6 @@ interface RequestForwardingService { @JvmOverloads fun forward( params: RequestForwardingForwardParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): RequestForwardingForwardResponse } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/RequestForwardingServiceImpl.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/RequestForwardingServiceImpl.kt index 7b041fc3..8121df1d 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/RequestForwardingServiceImpl.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/RequestForwardingServiceImpl.kt @@ -16,10 +16,8 @@ import com.tryfinch.api.errors.FinchError import com.tryfinch.api.models.RequestForwardingForwardParams import com.tryfinch.api.models.RequestForwardingForwardResponse -class RequestForwardingServiceImpl -internal constructor( - private val clientOptions: ClientOptions, -) : RequestForwardingService { +class RequestForwardingServiceImpl internal constructor(private val clientOptions: ClientOptions) : + RequestForwardingService { private val errorHandler: Handler = errorHandler(clientOptions.jsonMapper) @@ -34,7 +32,7 @@ internal constructor( */ override fun forward( params: RequestForwardingForwardParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): RequestForwardingForwardResponse { val request = HttpRequest.builder() diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/SandboxServiceImpl.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/SandboxServiceImpl.kt index e93cb9d6..7eeca782 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/SandboxServiceImpl.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/SandboxServiceImpl.kt @@ -18,10 +18,8 @@ import com.tryfinch.api.services.blocking.sandbox.JobServiceImpl import com.tryfinch.api.services.blocking.sandbox.PaymentService import com.tryfinch.api.services.blocking.sandbox.PaymentServiceImpl -class SandboxServiceImpl -internal constructor( - private val clientOptions: ClientOptions, -) : SandboxService { +class SandboxServiceImpl internal constructor(private val clientOptions: ClientOptions) : + SandboxService { private val connections: ConnectionService by lazy { ConnectionServiceImpl(clientOptions) } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/WebhookServiceImpl.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/WebhookServiceImpl.kt index 87abc6a3..7931de57 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/WebhookServiceImpl.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/WebhookServiceImpl.kt @@ -4,7 +4,5 @@ package com.tryfinch.api.services.blocking import com.tryfinch.api.core.ClientOptions -class WebhookServiceImpl -internal constructor( - private val clientOptions: ClientOptions, -) : WebhookService +class WebhookServiceImpl internal constructor(private val clientOptions: ClientOptions) : + WebhookService diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/connect/SessionService.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/connect/SessionService.kt index 7c2dcf4b..dc3e860f 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/connect/SessionService.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/connect/SessionService.kt @@ -16,13 +16,13 @@ interface SessionService { @JvmOverloads fun new_( params: ConnectSessionNewParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): SessionNewResponse /** Create a new Connect session for reauthenticating an existing connection */ @JvmOverloads fun reauthenticate( params: ConnectSessionReauthenticateParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): SessionReauthenticateResponse } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/connect/SessionServiceImpl.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/connect/SessionServiceImpl.kt index 5bd2beaf..98ac5eb3 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/connect/SessionServiceImpl.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/connect/SessionServiceImpl.kt @@ -18,10 +18,8 @@ import com.tryfinch.api.models.ConnectSessionReauthenticateParams import com.tryfinch.api.models.SessionNewResponse import com.tryfinch.api.models.SessionReauthenticateResponse -class SessionServiceImpl -internal constructor( - private val clientOptions: ClientOptions, -) : SessionService { +class SessionServiceImpl internal constructor(private val clientOptions: ClientOptions) : + SessionService { private val errorHandler: Handler = errorHandler(clientOptions.jsonMapper) @@ -31,7 +29,7 @@ internal constructor( /** Create a new connect session for an employer */ override fun new_( params: ConnectSessionNewParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): SessionNewResponse { val request = HttpRequest.builder() @@ -57,7 +55,7 @@ internal constructor( /** Create a new Connect session for reauthenticating an existing connection */ override fun reauthenticate( params: ConnectSessionReauthenticateParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): SessionReauthenticateResponse { val request = HttpRequest.builder() diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/BenefitService.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/BenefitService.kt index 047a9412..1c6a96e2 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/BenefitService.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/BenefitService.kt @@ -28,34 +28,34 @@ interface BenefitService { @JvmOverloads fun create( params: HrisBenefitCreateParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): CreateCompanyBenefitsResponse /** Lists deductions and contributions information for a given item */ @JvmOverloads fun retrieve( params: HrisBenefitRetrieveParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): CompanyBenefit /** Updates an existing company-wide deduction or contribution */ @JvmOverloads fun update( params: HrisBenefitUpdateParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): UpdateCompanyBenefitResponse /** List all company-wide deductions and contributions. */ @JvmOverloads fun list( params: HrisBenefitListParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): HrisBenefitListPage /** Get deductions metadata */ @JvmOverloads fun listSupportedBenefits( params: HrisBenefitListSupportedBenefitsParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): HrisBenefitListSupportedBenefitsPage } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/BenefitServiceImpl.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/BenefitServiceImpl.kt index 2cd734de..212bc6bc 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/BenefitServiceImpl.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/BenefitServiceImpl.kt @@ -27,10 +27,8 @@ import com.tryfinch.api.models.UpdateCompanyBenefitResponse import com.tryfinch.api.services.blocking.hris.benefits.IndividualService import com.tryfinch.api.services.blocking.hris.benefits.IndividualServiceImpl -class BenefitServiceImpl -internal constructor( - private val clientOptions: ClientOptions, -) : BenefitService { +class BenefitServiceImpl internal constructor(private val clientOptions: ClientOptions) : + BenefitService { private val errorHandler: Handler = errorHandler(clientOptions.jsonMapper) @@ -48,7 +46,7 @@ internal constructor( */ override fun create( params: HrisBenefitCreateParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): CreateCompanyBenefitsResponse { val request = HttpRequest.builder() @@ -73,7 +71,7 @@ internal constructor( /** Lists deductions and contributions information for a given item */ override fun retrieve( params: HrisBenefitRetrieveParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): CompanyBenefit { val request = HttpRequest.builder() @@ -98,7 +96,7 @@ internal constructor( /** Updates an existing company-wide deduction or contribution */ override fun update( params: HrisBenefitUpdateParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): UpdateCompanyBenefitResponse { val request = HttpRequest.builder() @@ -123,7 +121,7 @@ internal constructor( /** List all company-wide deductions and contributions. */ override fun list( params: HrisBenefitListParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): HrisBenefitListPage { val request = HttpRequest.builder() @@ -143,7 +141,7 @@ internal constructor( HrisBenefitListPage.of( this, params, - HrisBenefitListPage.Response.builder().items(it).build() + HrisBenefitListPage.Response.builder().items(it).build(), ) } } @@ -154,7 +152,7 @@ internal constructor( /** Get deductions metadata */ override fun listSupportedBenefits( params: HrisBenefitListSupportedBenefitsParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): HrisBenefitListSupportedBenefitsPage { val request = HttpRequest.builder() @@ -174,7 +172,7 @@ internal constructor( HrisBenefitListSupportedBenefitsPage.of( this, params, - HrisBenefitListSupportedBenefitsPage.Response.builder().items(it).build() + HrisBenefitListSupportedBenefitsPage.Response.builder().items(it).build(), ) } } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/CompanyService.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/CompanyService.kt index 5597c793..e14f27cd 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/CompanyService.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/CompanyService.kt @@ -14,6 +14,6 @@ interface CompanyService { @JvmOverloads fun retrieve( params: HrisCompanyRetrieveParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): Company } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/CompanyServiceImpl.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/CompanyServiceImpl.kt index 46b695b3..f8642c39 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/CompanyServiceImpl.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/CompanyServiceImpl.kt @@ -15,10 +15,8 @@ import com.tryfinch.api.errors.FinchError import com.tryfinch.api.models.Company import com.tryfinch.api.models.HrisCompanyRetrieveParams -class CompanyServiceImpl -internal constructor( - private val clientOptions: ClientOptions, -) : CompanyService { +class CompanyServiceImpl internal constructor(private val clientOptions: ClientOptions) : + CompanyService { private val errorHandler: Handler = errorHandler(clientOptions.jsonMapper) @@ -28,7 +26,7 @@ internal constructor( /** Read basic company data */ override fun retrieve( params: HrisCompanyRetrieveParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): Company { val request = HttpRequest.builder() diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/DirectoryService.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/DirectoryService.kt index 8c8e64c0..5223328e 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/DirectoryService.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/DirectoryService.kt @@ -16,7 +16,7 @@ interface DirectoryService { @JvmOverloads fun list( params: HrisDirectoryListParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): HrisDirectoryListPage /** Read company directory and organization structure */ @@ -24,6 +24,6 @@ interface DirectoryService { @JvmOverloads fun listIndividuals( params: HrisDirectoryListIndividualsParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): HrisDirectoryListIndividualsPage } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/DirectoryServiceImpl.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/DirectoryServiceImpl.kt index 5d98caa5..d20b1bcf 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/DirectoryServiceImpl.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/DirectoryServiceImpl.kt @@ -17,10 +17,8 @@ import com.tryfinch.api.models.HrisDirectoryListIndividualsParams import com.tryfinch.api.models.HrisDirectoryListPage import com.tryfinch.api.models.HrisDirectoryListParams -class DirectoryServiceImpl -internal constructor( - private val clientOptions: ClientOptions, -) : DirectoryService { +class DirectoryServiceImpl internal constructor(private val clientOptions: ClientOptions) : + DirectoryService { private val errorHandler: Handler = errorHandler(clientOptions.jsonMapper) @@ -31,7 +29,7 @@ internal constructor( /** Read company directory and organization structure */ override fun list( params: HrisDirectoryListParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): HrisDirectoryListPage { val request = HttpRequest.builder() @@ -58,7 +56,7 @@ internal constructor( @Deprecated("use `list` instead") override fun listIndividuals( params: HrisDirectoryListIndividualsParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): HrisDirectoryListIndividualsPage { val request = HttpRequest.builder() diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/DocumentService.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/DocumentService.kt index fc30aa9a..3e06ad08 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/DocumentService.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/DocumentService.kt @@ -18,7 +18,7 @@ interface DocumentService { @JvmOverloads fun list( params: HrisDocumentListParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): DocumentListResponse /** @@ -28,6 +28,6 @@ interface DocumentService { @JvmOverloads fun retreive( params: HrisDocumentRetreiveParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): DocumentRetreiveResponse } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/DocumentServiceImpl.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/DocumentServiceImpl.kt index b823de32..fb50f412 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/DocumentServiceImpl.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/DocumentServiceImpl.kt @@ -17,10 +17,8 @@ import com.tryfinch.api.models.DocumentRetreiveResponse import com.tryfinch.api.models.HrisDocumentListParams import com.tryfinch.api.models.HrisDocumentRetreiveParams -class DocumentServiceImpl -internal constructor( - private val clientOptions: ClientOptions, -) : DocumentService { +class DocumentServiceImpl internal constructor(private val clientOptions: ClientOptions) : + DocumentService { private val errorHandler: Handler = errorHandler(clientOptions.jsonMapper) @@ -32,7 +30,7 @@ internal constructor( */ override fun list( params: HrisDocumentListParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): DocumentListResponse { val request = HttpRequest.builder() @@ -60,7 +58,7 @@ internal constructor( */ override fun retreive( params: HrisDocumentRetreiveParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): DocumentRetreiveResponse { val request = HttpRequest.builder() diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/EmploymentService.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/EmploymentService.kt index 6252358d..98beeb34 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/EmploymentService.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/EmploymentService.kt @@ -14,6 +14,6 @@ interface EmploymentService { @JvmOverloads fun retrieveMany( params: HrisEmploymentRetrieveManyParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): HrisEmploymentRetrieveManyPage } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/EmploymentServiceImpl.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/EmploymentServiceImpl.kt index caa1ddb0..1f65f3bc 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/EmploymentServiceImpl.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/EmploymentServiceImpl.kt @@ -16,10 +16,8 @@ import com.tryfinch.api.errors.FinchError import com.tryfinch.api.models.HrisEmploymentRetrieveManyPage import com.tryfinch.api.models.HrisEmploymentRetrieveManyParams -class EmploymentServiceImpl -internal constructor( - private val clientOptions: ClientOptions, -) : EmploymentService { +class EmploymentServiceImpl internal constructor(private val clientOptions: ClientOptions) : + EmploymentService { private val errorHandler: Handler = errorHandler(clientOptions.jsonMapper) @@ -30,7 +28,7 @@ internal constructor( /** Read individual employment and income data */ override fun retrieveMany( params: HrisEmploymentRetrieveManyParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): HrisEmploymentRetrieveManyPage { val request = HttpRequest.builder() diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/IndividualService.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/IndividualService.kt index 844f65c8..669e8aa9 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/IndividualService.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/IndividualService.kt @@ -14,6 +14,6 @@ interface IndividualService { @JvmOverloads fun retrieveMany( params: HrisIndividualRetrieveManyParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): HrisIndividualRetrieveManyPage } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/IndividualServiceImpl.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/IndividualServiceImpl.kt index 1c6acb60..55949402 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/IndividualServiceImpl.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/IndividualServiceImpl.kt @@ -16,10 +16,8 @@ import com.tryfinch.api.errors.FinchError import com.tryfinch.api.models.HrisIndividualRetrieveManyPage import com.tryfinch.api.models.HrisIndividualRetrieveManyParams -class IndividualServiceImpl -internal constructor( - private val clientOptions: ClientOptions, -) : IndividualService { +class IndividualServiceImpl internal constructor(private val clientOptions: ClientOptions) : + IndividualService { private val errorHandler: Handler = errorHandler(clientOptions.jsonMapper) @@ -30,7 +28,7 @@ internal constructor( /** Read individual data, excluding income and employment data */ override fun retrieveMany( params: HrisIndividualRetrieveManyParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): HrisIndividualRetrieveManyPage { val request = HttpRequest.builder() diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/PayStatementService.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/PayStatementService.kt index cf337107..aa04af04 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/PayStatementService.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/PayStatementService.kt @@ -18,6 +18,6 @@ interface PayStatementService { @JvmOverloads fun retrieveMany( params: HrisPayStatementRetrieveManyParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): HrisPayStatementRetrieveManyPage } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/PayStatementServiceImpl.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/PayStatementServiceImpl.kt index 38bd156c..129ec2f5 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/PayStatementServiceImpl.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/PayStatementServiceImpl.kt @@ -16,10 +16,8 @@ import com.tryfinch.api.errors.FinchError import com.tryfinch.api.models.HrisPayStatementRetrieveManyPage import com.tryfinch.api.models.HrisPayStatementRetrieveManyParams -class PayStatementServiceImpl -internal constructor( - private val clientOptions: ClientOptions, -) : PayStatementService { +class PayStatementServiceImpl internal constructor(private val clientOptions: ClientOptions) : + PayStatementService { private val errorHandler: Handler = errorHandler(clientOptions.jsonMapper) @@ -34,7 +32,7 @@ internal constructor( */ override fun retrieveMany( params: HrisPayStatementRetrieveManyParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): HrisPayStatementRetrieveManyPage { val request = HttpRequest.builder() diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/PaymentService.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/PaymentService.kt index 5b27a625..c1f5ea2d 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/PaymentService.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/PaymentService.kt @@ -14,6 +14,6 @@ interface PaymentService { @JvmOverloads fun list( params: HrisPaymentListParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): HrisPaymentListPage } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/PaymentServiceImpl.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/PaymentServiceImpl.kt index 4f20d692..3fc047c3 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/PaymentServiceImpl.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/PaymentServiceImpl.kt @@ -16,10 +16,8 @@ import com.tryfinch.api.models.HrisPaymentListPage import com.tryfinch.api.models.HrisPaymentListParams import com.tryfinch.api.models.Payment -class PaymentServiceImpl -internal constructor( - private val clientOptions: ClientOptions, -) : PaymentService { +class PaymentServiceImpl internal constructor(private val clientOptions: ClientOptions) : + PaymentService { private val errorHandler: Handler = errorHandler(clientOptions.jsonMapper) @@ -29,7 +27,7 @@ internal constructor( /** Read payroll and contractor related payments by the company. */ override fun list( params: HrisPaymentListParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): HrisPaymentListPage { val request = HttpRequest.builder() @@ -49,7 +47,7 @@ internal constructor( HrisPaymentListPage.of( this, params, - HrisPaymentListPage.Response.builder().items(it).build() + HrisPaymentListPage.Response.builder().items(it).build(), ) } } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/benefits/IndividualService.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/benefits/IndividualService.kt index 666da43e..4ca4e5f0 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/benefits/IndividualService.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/benefits/IndividualService.kt @@ -18,20 +18,20 @@ interface IndividualService { @JvmOverloads fun enrolledIds( params: HrisBenefitIndividualEnrolledIdsParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): IndividualEnrolledIdsResponse /** Get enrollment information for the given individuals. */ @JvmOverloads fun retrieveManyBenefits( params: HrisBenefitIndividualRetrieveManyBenefitsParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): HrisBenefitIndividualRetrieveManyBenefitsPage /** Unenroll individuals from a deduction or contribution */ @JvmOverloads fun unenrollMany( params: HrisBenefitIndividualUnenrollManyParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): HrisBenefitIndividualUnenrollManyPage } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/benefits/IndividualServiceImpl.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/benefits/IndividualServiceImpl.kt index 2de79b77..51cb9c63 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/benefits/IndividualServiceImpl.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/benefits/IndividualServiceImpl.kt @@ -22,10 +22,8 @@ import com.tryfinch.api.models.IndividualBenefit import com.tryfinch.api.models.IndividualEnrolledIdsResponse import com.tryfinch.api.models.UnenrolledIndividual -class IndividualServiceImpl -internal constructor( - private val clientOptions: ClientOptions, -) : IndividualService { +class IndividualServiceImpl internal constructor(private val clientOptions: ClientOptions) : + IndividualService { private val errorHandler: Handler = errorHandler(clientOptions.jsonMapper) @@ -36,7 +34,7 @@ internal constructor( /** Lists individuals currently enrolled in a given deduction. */ override fun enrolledIds( params: HrisBenefitIndividualEnrolledIdsParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): IndividualEnrolledIdsResponse { val request = HttpRequest.builder() @@ -61,7 +59,7 @@ internal constructor( /** Get enrollment information for the given individuals. */ override fun retrieveManyBenefits( params: HrisBenefitIndividualRetrieveManyBenefitsParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): HrisBenefitIndividualRetrieveManyBenefitsPage { val request = HttpRequest.builder() @@ -83,7 +81,7 @@ internal constructor( params, HrisBenefitIndividualRetrieveManyBenefitsPage.Response.builder() .items(it) - .build() + .build(), ) } } @@ -95,7 +93,7 @@ internal constructor( /** Unenroll individuals from a deduction or contribution */ override fun unenrollMany( params: HrisBenefitIndividualUnenrollManyParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): HrisBenefitIndividualUnenrollManyPage { val request = HttpRequest.builder() @@ -116,7 +114,7 @@ internal constructor( HrisBenefitIndividualUnenrollManyPage.of( this, params, - HrisBenefitIndividualUnenrollManyPage.Response.builder().items(it).build() + HrisBenefitIndividualUnenrollManyPage.Response.builder().items(it).build(), ) } } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/jobs/AutomatedService.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/jobs/AutomatedService.kt index 8f5dd094..dc4e6545 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/jobs/AutomatedService.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/jobs/AutomatedService.kt @@ -32,14 +32,14 @@ interface AutomatedService { @JvmOverloads fun create( params: JobAutomatedCreateParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): AutomatedCreateResponse /** Get an automated job by `job_id`. */ @JvmOverloads fun retrieve( params: JobAutomatedRetrieveParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): AutomatedAsyncJob /** @@ -50,6 +50,6 @@ interface AutomatedService { @JvmOverloads fun list( params: JobAutomatedListParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): JobAutomatedListPage } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/jobs/AutomatedServiceImpl.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/jobs/AutomatedServiceImpl.kt index ac866243..ed3b54cc 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/jobs/AutomatedServiceImpl.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/jobs/AutomatedServiceImpl.kt @@ -20,10 +20,8 @@ import com.tryfinch.api.models.JobAutomatedListPage import com.tryfinch.api.models.JobAutomatedListParams import com.tryfinch.api.models.JobAutomatedRetrieveParams -class AutomatedServiceImpl -internal constructor( - private val clientOptions: ClientOptions, -) : AutomatedService { +class AutomatedServiceImpl internal constructor(private val clientOptions: ClientOptions) : + AutomatedService { private val errorHandler: Handler = errorHandler(clientOptions.jsonMapper) @@ -48,7 +46,7 @@ internal constructor( */ override fun create( params: JobAutomatedCreateParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): AutomatedCreateResponse { val request = HttpRequest.builder() @@ -73,7 +71,7 @@ internal constructor( /** Get an automated job by `job_id`. */ override fun retrieve( params: JobAutomatedRetrieveParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): AutomatedAsyncJob { val request = HttpRequest.builder() @@ -102,7 +100,7 @@ internal constructor( */ override fun list( params: JobAutomatedListParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): JobAutomatedListPage { val request = HttpRequest.builder() diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/jobs/ManualService.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/jobs/ManualService.kt index 835a3702..b6b76e59 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/jobs/ManualService.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/jobs/ManualService.kt @@ -17,6 +17,6 @@ interface ManualService { @JvmOverloads fun retrieve( params: JobManualRetrieveParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): ManualAsyncJob } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/jobs/ManualServiceImpl.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/jobs/ManualServiceImpl.kt index 27291f16..9ce1917a 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/jobs/ManualServiceImpl.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/jobs/ManualServiceImpl.kt @@ -15,10 +15,8 @@ import com.tryfinch.api.errors.FinchError import com.tryfinch.api.models.JobManualRetrieveParams import com.tryfinch.api.models.ManualAsyncJob -class ManualServiceImpl -internal constructor( - private val clientOptions: ClientOptions, -) : ManualService { +class ManualServiceImpl internal constructor(private val clientOptions: ClientOptions) : + ManualService { private val errorHandler: Handler = errorHandler(clientOptions.jsonMapper) @@ -31,7 +29,7 @@ internal constructor( */ override fun retrieve( params: JobManualRetrieveParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): ManualAsyncJob { val request = HttpRequest.builder() diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/payroll/PayGroupService.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/payroll/PayGroupService.kt index f7ae892d..660dcb3a 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/payroll/PayGroupService.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/payroll/PayGroupService.kt @@ -16,13 +16,13 @@ interface PayGroupService { @JvmOverloads fun retrieve( params: PayrollPayGroupRetrieveParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): PayGroupRetrieveResponse /** Read company pay groups and frequencies */ @JvmOverloads fun list( params: PayrollPayGroupListParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): PayrollPayGroupListPage } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/payroll/PayGroupServiceImpl.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/payroll/PayGroupServiceImpl.kt index 6a494736..f4653cda 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/payroll/PayGroupServiceImpl.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/payroll/PayGroupServiceImpl.kt @@ -18,10 +18,8 @@ import com.tryfinch.api.models.PayrollPayGroupListPage import com.tryfinch.api.models.PayrollPayGroupListParams import com.tryfinch.api.models.PayrollPayGroupRetrieveParams -class PayGroupServiceImpl -internal constructor( - private val clientOptions: ClientOptions, -) : PayGroupService { +class PayGroupServiceImpl internal constructor(private val clientOptions: ClientOptions) : + PayGroupService { private val errorHandler: Handler = errorHandler(clientOptions.jsonMapper) @@ -32,7 +30,7 @@ internal constructor( /** Read information from a single pay group */ override fun retrieve( params: PayrollPayGroupRetrieveParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): PayGroupRetrieveResponse { val request = HttpRequest.builder() @@ -57,7 +55,7 @@ internal constructor( /** Read company pay groups and frequencies */ override fun list( params: PayrollPayGroupListParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): PayrollPayGroupListPage { val request = HttpRequest.builder() @@ -77,7 +75,7 @@ internal constructor( PayrollPayGroupListPage.of( this, params, - PayrollPayGroupListPage.Response.builder().items(it).build() + PayrollPayGroupListPage.Response.builder().items(it).build(), ) } } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/CompanyService.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/CompanyService.kt index a6b20bb3..7c7c7238 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/CompanyService.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/CompanyService.kt @@ -14,6 +14,6 @@ interface CompanyService { @JvmOverloads fun update( params: SandboxCompanyUpdateParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): CompanyUpdateResponse } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/CompanyServiceImpl.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/CompanyServiceImpl.kt index e2f62a1d..63e3b740 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/CompanyServiceImpl.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/CompanyServiceImpl.kt @@ -16,10 +16,8 @@ import com.tryfinch.api.errors.FinchError import com.tryfinch.api.models.CompanyUpdateResponse import com.tryfinch.api.models.SandboxCompanyUpdateParams -class CompanyServiceImpl -internal constructor( - private val clientOptions: ClientOptions, -) : CompanyService { +class CompanyServiceImpl internal constructor(private val clientOptions: ClientOptions) : + CompanyService { private val errorHandler: Handler = errorHandler(clientOptions.jsonMapper) @@ -29,7 +27,7 @@ internal constructor( /** Update a sandbox company's data */ override fun update( params: SandboxCompanyUpdateParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): CompanyUpdateResponse { val request = HttpRequest.builder() diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/ConnectionService.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/ConnectionService.kt index 79026f5e..c1bca965 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/ConnectionService.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/ConnectionService.kt @@ -17,6 +17,6 @@ interface ConnectionService { @JvmOverloads fun create( params: SandboxConnectionCreateParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): ConnectionCreateResponse } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/ConnectionServiceImpl.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/ConnectionServiceImpl.kt index c0ce13ef..8f8fdd38 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/ConnectionServiceImpl.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/ConnectionServiceImpl.kt @@ -18,10 +18,8 @@ import com.tryfinch.api.models.SandboxConnectionCreateParams import com.tryfinch.api.services.blocking.sandbox.connections.AccountService import com.tryfinch.api.services.blocking.sandbox.connections.AccountServiceImpl -class ConnectionServiceImpl -internal constructor( - private val clientOptions: ClientOptions, -) : ConnectionService { +class ConnectionServiceImpl internal constructor(private val clientOptions: ClientOptions) : + ConnectionService { private val errorHandler: Handler = errorHandler(clientOptions.jsonMapper) @@ -36,7 +34,7 @@ internal constructor( /** Create a new connection (new company/provider pair) with a new account */ override fun create( params: SandboxConnectionCreateParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): ConnectionCreateResponse { val request = HttpRequest.builder() diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/DirectoryService.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/DirectoryService.kt index cdeb0c1a..fd14c7da 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/DirectoryService.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/DirectoryService.kt @@ -14,6 +14,6 @@ interface DirectoryService { @JvmOverloads fun create( params: SandboxDirectoryCreateParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): List } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/DirectoryServiceImpl.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/DirectoryServiceImpl.kt index 1f992263..5213cce1 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/DirectoryServiceImpl.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/DirectoryServiceImpl.kt @@ -16,10 +16,8 @@ import com.tryfinch.api.core.prepare import com.tryfinch.api.errors.FinchError import com.tryfinch.api.models.SandboxDirectoryCreateParams -class DirectoryServiceImpl -internal constructor( - private val clientOptions: ClientOptions, -) : DirectoryService { +class DirectoryServiceImpl internal constructor(private val clientOptions: ClientOptions) : + DirectoryService { private val errorHandler: Handler = errorHandler(clientOptions.jsonMapper) @@ -29,7 +27,7 @@ internal constructor( /** Add new individuals to a sandbox company */ override fun create( params: SandboxDirectoryCreateParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): List { val request = HttpRequest.builder() diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/EmploymentService.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/EmploymentService.kt index c16beaa5..6d26b611 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/EmploymentService.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/EmploymentService.kt @@ -14,6 +14,6 @@ interface EmploymentService { @JvmOverloads fun update( params: SandboxEmploymentUpdateParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): EmploymentUpdateResponse } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/EmploymentServiceImpl.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/EmploymentServiceImpl.kt index 742a804c..a538224d 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/EmploymentServiceImpl.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/EmploymentServiceImpl.kt @@ -16,10 +16,8 @@ import com.tryfinch.api.errors.FinchError import com.tryfinch.api.models.EmploymentUpdateResponse import com.tryfinch.api.models.SandboxEmploymentUpdateParams -class EmploymentServiceImpl -internal constructor( - private val clientOptions: ClientOptions, -) : EmploymentService { +class EmploymentServiceImpl internal constructor(private val clientOptions: ClientOptions) : + EmploymentService { private val errorHandler: Handler = errorHandler(clientOptions.jsonMapper) @@ -30,7 +28,7 @@ internal constructor( /** Update sandbox employment */ override fun update( params: SandboxEmploymentUpdateParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): EmploymentUpdateResponse { val request = HttpRequest.builder() diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/IndividualService.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/IndividualService.kt index 227ed995..34657b8f 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/IndividualService.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/IndividualService.kt @@ -14,6 +14,6 @@ interface IndividualService { @JvmOverloads fun update( params: SandboxIndividualUpdateParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): IndividualUpdateResponse } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/IndividualServiceImpl.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/IndividualServiceImpl.kt index 3333a62a..feb15e1f 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/IndividualServiceImpl.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/IndividualServiceImpl.kt @@ -16,10 +16,8 @@ import com.tryfinch.api.errors.FinchError import com.tryfinch.api.models.IndividualUpdateResponse import com.tryfinch.api.models.SandboxIndividualUpdateParams -class IndividualServiceImpl -internal constructor( - private val clientOptions: ClientOptions, -) : IndividualService { +class IndividualServiceImpl internal constructor(private val clientOptions: ClientOptions) : + IndividualService { private val errorHandler: Handler = errorHandler(clientOptions.jsonMapper) @@ -30,7 +28,7 @@ internal constructor( /** Update sandbox individual */ override fun update( params: SandboxIndividualUpdateParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): IndividualUpdateResponse { val request = HttpRequest.builder() diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/JobService.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/JobService.kt index 524c0de0..65e3c055 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/JobService.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/JobService.kt @@ -17,6 +17,6 @@ interface JobService { @JvmOverloads fun create( params: SandboxJobCreateParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): JobCreateResponse } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/JobServiceImpl.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/JobServiceImpl.kt index 589c02eb..a2a60c9d 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/JobServiceImpl.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/JobServiceImpl.kt @@ -18,10 +18,7 @@ import com.tryfinch.api.models.SandboxJobCreateParams import com.tryfinch.api.services.blocking.sandbox.jobs.ConfigurationService import com.tryfinch.api.services.blocking.sandbox.jobs.ConfigurationServiceImpl -class JobServiceImpl -internal constructor( - private val clientOptions: ClientOptions, -) : JobService { +class JobServiceImpl internal constructor(private val clientOptions: ClientOptions) : JobService { private val errorHandler: Handler = errorHandler(clientOptions.jsonMapper) @@ -37,7 +34,7 @@ internal constructor( /** Enqueue a new sandbox job */ override fun create( params: SandboxJobCreateParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): JobCreateResponse { val request = HttpRequest.builder() diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/PaymentService.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/PaymentService.kt index 9097dc10..968cafd4 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/PaymentService.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/PaymentService.kt @@ -14,6 +14,6 @@ interface PaymentService { @JvmOverloads fun create( params: SandboxPaymentCreateParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): PaymentCreateResponse } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/PaymentServiceImpl.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/PaymentServiceImpl.kt index d8e902a1..61b5783b 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/PaymentServiceImpl.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/PaymentServiceImpl.kt @@ -16,10 +16,8 @@ import com.tryfinch.api.errors.FinchError import com.tryfinch.api.models.PaymentCreateResponse import com.tryfinch.api.models.SandboxPaymentCreateParams -class PaymentServiceImpl -internal constructor( - private val clientOptions: ClientOptions, -) : PaymentService { +class PaymentServiceImpl internal constructor(private val clientOptions: ClientOptions) : + PaymentService { private val errorHandler: Handler = errorHandler(clientOptions.jsonMapper) @@ -29,7 +27,7 @@ internal constructor( /** Add a new sandbox payment */ override fun create( params: SandboxPaymentCreateParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): PaymentCreateResponse { val request = HttpRequest.builder() diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/connections/AccountService.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/connections/AccountService.kt index 57d84f21..7fbb6b15 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/connections/AccountService.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/connections/AccountService.kt @@ -16,7 +16,7 @@ interface AccountService { @JvmOverloads fun create( params: SandboxConnectionAccountCreateParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): AccountCreateResponse /** @@ -26,6 +26,6 @@ interface AccountService { @JvmOverloads fun update( params: SandboxConnectionAccountUpdateParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): AccountUpdateResponse } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/connections/AccountServiceImpl.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/connections/AccountServiceImpl.kt index d42f5064..6f053eb8 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/connections/AccountServiceImpl.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/connections/AccountServiceImpl.kt @@ -18,10 +18,8 @@ import com.tryfinch.api.models.AccountUpdateResponse import com.tryfinch.api.models.SandboxConnectionAccountCreateParams import com.tryfinch.api.models.SandboxConnectionAccountUpdateParams -class AccountServiceImpl -internal constructor( - private val clientOptions: ClientOptions, -) : AccountService { +class AccountServiceImpl internal constructor(private val clientOptions: ClientOptions) : + AccountService { private val errorHandler: Handler = errorHandler(clientOptions.jsonMapper) @@ -31,7 +29,7 @@ internal constructor( /** Create a new account for an existing connection (company/provider pair) */ override fun create( params: SandboxConnectionAccountCreateParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): AccountCreateResponse { val request = HttpRequest.builder() @@ -59,7 +57,7 @@ internal constructor( */ override fun update( params: SandboxConnectionAccountUpdateParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): AccountUpdateResponse { val request = HttpRequest.builder() diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/jobs/ConfigurationService.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/jobs/ConfigurationService.kt index e40e3a80..393f230c 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/jobs/ConfigurationService.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/jobs/ConfigurationService.kt @@ -15,13 +15,13 @@ interface ConfigurationService { @JvmOverloads fun retrieve( params: SandboxJobConfigurationRetrieveParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): List /** Update configurations for sandbox jobs */ @JvmOverloads fun update( params: SandboxJobConfigurationUpdateParams, - requestOptions: RequestOptions = RequestOptions.none() + requestOptions: RequestOptions = RequestOptions.none(), ): SandboxJobConfiguration } diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/jobs/ConfigurationServiceImpl.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/jobs/ConfigurationServiceImpl.kt index 70a26346..08046405 100644 --- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/jobs/ConfigurationServiceImpl.kt +++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/sandbox/jobs/ConfigurationServiceImpl.kt @@ -17,10 +17,8 @@ import com.tryfinch.api.models.SandboxJobConfiguration import com.tryfinch.api.models.SandboxJobConfigurationRetrieveParams import com.tryfinch.api.models.SandboxJobConfigurationUpdateParams -class ConfigurationServiceImpl -internal constructor( - private val clientOptions: ClientOptions, -) : ConfigurationService { +class ConfigurationServiceImpl internal constructor(private val clientOptions: ClientOptions) : + ConfigurationService { private val errorHandler: Handler = errorHandler(clientOptions.jsonMapper) @@ -31,7 +29,7 @@ internal constructor( /** Get configurations for sandbox jobs */ override fun retrieve( params: SandboxJobConfigurationRetrieveParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): List { val request = HttpRequest.builder() @@ -56,7 +54,7 @@ internal constructor( /** Update configurations for sandbox jobs */ override fun update( params: SandboxJobConfigurationUpdateParams, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): SandboxJobConfiguration { val request = HttpRequest.builder() diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/TestServerExtension.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/TestServerExtension.kt index d9ec3cdf..5e740846 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/TestServerExtension.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/TestServerExtension.kt @@ -36,7 +36,7 @@ class TestServerExtension : BeforeAllCallback, ExecutionCondition { $ prism mock path/to/your.openapi.yml """ .trimIndent(), - e + e, ) } } diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/core/PhantomReachableTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/core/PhantomReachableTest.kt index b608618e..02dbac71 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/core/PhantomReachableTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/core/PhantomReachableTest.kt @@ -14,7 +14,7 @@ internal class PhantomReachableTest { // Pass an inline object for the object to observe so that it becomes immediately // unreachable. Any(), - closeable + closeable, ) assertThat(closed).isFalse() diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/core/http/HeadersTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/core/http/HeadersTest.kt index 9511f5f4..f1611438 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/core/http/HeadersTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/core/http/HeadersTest.kt @@ -11,28 +11,28 @@ internal class HeadersTest { enum class TestCase( val headers: Headers, val expectedMap: Map>, - val expectedSize: Int + val expectedSize: Int, ) { EMPTY(Headers.builder().build(), expectedMap = mapOf(), expectedSize = 0), PUT_ONE( Headers.builder().put("name", "value").build(), expectedMap = mapOf("name" to listOf("value")), - expectedSize = 1 + expectedSize = 1, ), PUT_MULTIPLE( Headers.builder().put("name", listOf("value1", "value2")).build(), expectedMap = mapOf("name" to listOf("value1", "value2")), - expectedSize = 2 + expectedSize = 2, ), MULTIPLE_PUT( Headers.builder().put("name1", "value").put("name2", "value").build(), expectedMap = mapOf("name1" to listOf("value"), "name2" to listOf("value")), - expectedSize = 2 + expectedSize = 2, ), MULTIPLE_PUT_SAME_NAME( Headers.builder().put("name", "value1").put("name", "value2").build(), expectedMap = mapOf("name" to listOf("value1", "value2")), - expectedSize = 2 + expectedSize = 2, ), MULTIPLE_PUT_MULTIPLE( Headers.builder() @@ -40,7 +40,7 @@ internal class HeadersTest { .put("name", listOf("value1", "value2")) .build(), expectedMap = mapOf("name" to listOf("value1", "value2", "value1", "value2")), - expectedSize = 4 + expectedSize = 4, ), PUT_CASE_INSENSITIVE( Headers.builder() @@ -49,25 +49,25 @@ internal class HeadersTest { .put("nAmE", "value3") .build(), expectedMap = mapOf("name" to listOf("value1", "value2", "value3")), - expectedSize = 3 + expectedSize = 3, ), PUT_ALL_MAP( Headers.builder() .putAll( mapOf( "name1" to listOf("value1", "value2"), - "name2" to listOf("value1", "value2") + "name2" to listOf("value1", "value2"), ) ) .build(), expectedMap = mapOf("name1" to listOf("value1", "value2"), "name2" to listOf("value1", "value2")), - expectedSize = 4 + expectedSize = 4, ), PUT_ALL_HEADERS( Headers.builder().putAll(Headers.builder().put("name", "value").build()).build(), expectedMap = mapOf("name" to listOf("value")), - expectedSize = 1 + expectedSize = 1, ), PUT_ALL_CASE_INSENSITIVE( Headers.builder() @@ -75,32 +75,32 @@ internal class HeadersTest { mapOf( "name" to listOf("value1"), "NAME" to listOf("value2"), - "nAmE" to listOf("value3") + "nAmE" to listOf("value3"), ) ) .build(), expectedMap = mapOf("name" to listOf("value1", "value2", "value3")), - expectedSize = 3 + expectedSize = 3, ), REMOVE_ABSENT( Headers.builder().remove("name").build(), expectedMap = mapOf(), - expectedSize = 0 + expectedSize = 0, ), REMOVE_PRESENT_ONE( Headers.builder().put("name", "value").remove("name").build(), expectedMap = mapOf(), - expectedSize = 0 + expectedSize = 0, ), REMOVE_PRESENT_MULTIPLE( Headers.builder().put("name", listOf("value1", "value2")).remove("name").build(), expectedMap = mapOf(), - expectedSize = 0 + expectedSize = 0, ), REMOVE_CASE_INSENSITIVE( Headers.builder().put("name", listOf("value1", "value2")).remove("NAME").build(), expectedMap = mapOf(), - expectedSize = 0 + expectedSize = 0, ), REMOVE_ALL( Headers.builder() @@ -109,7 +109,7 @@ internal class HeadersTest { .removeAll(setOf("name1", "name2", "name3")) .build(), expectedMap = mapOf(), - expectedSize = 0 + expectedSize = 0, ), REMOVE_ALL_CASE_INSENSITIVE( Headers.builder() @@ -118,22 +118,22 @@ internal class HeadersTest { .removeAll(setOf("NAME1", "nAmE3")) .build(), expectedMap = mapOf(), - expectedSize = 0 + expectedSize = 0, ), CLEAR( Headers.builder().put("name1", "value").put("name2", "value").clear().build(), expectedMap = mapOf(), - expectedSize = 0 + expectedSize = 0, ), REPLACE_ONE_ABSENT( Headers.builder().replace("name", "value").build(), expectedMap = mapOf("name" to listOf("value")), - expectedSize = 1 + expectedSize = 1, ), REPLACE_ONE_PRESENT_ONE( Headers.builder().put("name", "value1").replace("name", "value2").build(), expectedMap = mapOf("name" to listOf("value2")), - expectedSize = 1 + expectedSize = 1, ), REPLACE_ONE_PRESENT_MULTIPLE( Headers.builder() @@ -141,12 +141,12 @@ internal class HeadersTest { .replace("name", "value3") .build(), expectedMap = mapOf("name" to listOf("value3")), - expectedSize = 1 + expectedSize = 1, ), REPLACE_MULTIPLE_ABSENT( Headers.builder().replace("name", listOf("value1", "value2")).build(), expectedMap = mapOf("name" to listOf("value1", "value2")), - expectedSize = 2 + expectedSize = 2, ), REPLACE_MULTIPLE_PRESENT_ONE( Headers.builder() @@ -154,7 +154,7 @@ internal class HeadersTest { .replace("name", listOf("value2", "value3")) .build(), expectedMap = mapOf("name" to listOf("value2", "value3")), - expectedSize = 2 + expectedSize = 2, ), REPLACE_MULTIPLE_PRESENT_MULTIPLE( Headers.builder() @@ -162,7 +162,7 @@ internal class HeadersTest { .replace("name", listOf("value3", "value4")) .build(), expectedMap = mapOf("name" to listOf("value3", "value4")), - expectedSize = 2 + expectedSize = 2, ), REPLACE_CASE_INSENSITIVE( Headers.builder() @@ -170,7 +170,7 @@ internal class HeadersTest { .replace("NAME", listOf("value2", "value3")) .build(), expectedMap = mapOf("NAME" to listOf("value2", "value3")), - expectedSize = 2 + expectedSize = 2, ), REPLACE_ALL_MAP( Headers.builder() @@ -183,9 +183,9 @@ internal class HeadersTest { mapOf( "name1" to listOf("value2"), "name2" to listOf("value1"), - "name3" to listOf("value2") + "name3" to listOf("value2"), ), - expectedSize = 3 + expectedSize = 3, ), REPLACE_ALL_HEADERS( Headers.builder() @@ -198,9 +198,9 @@ internal class HeadersTest { mapOf( "name1" to listOf("value2"), "name2" to listOf("value1"), - "name3" to listOf("value2") + "name3" to listOf("value2"), ), - expectedSize = 3 + expectedSize = 3, ), REPLACE_ALL_CASE_INSENSITIVE( Headers.builder() @@ -209,8 +209,8 @@ internal class HeadersTest { .replaceAll(mapOf("NAME1" to listOf("value2"), "nAmE2" to listOf("value2"))) .build(), expectedMap = mapOf("NAME1" to listOf("value2"), "nAmE2" to listOf("value2")), - expectedSize = 2 - ) + expectedSize = 2, + ), } @ParameterizedTest diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/core/http/QueryParamsTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/core/http/QueryParamsTest.kt index 302bf7a0..2002ca28 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/core/http/QueryParamsTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/core/http/QueryParamsTest.kt @@ -11,28 +11,28 @@ internal class QueryParamsTest { enum class TestCase( val queryParams: QueryParams, val expectedMap: Map>, - val expectedSize: Int + val expectedSize: Int, ) { EMPTY(QueryParams.builder().build(), expectedMap = mapOf(), expectedSize = 0), PUT_ONE( QueryParams.builder().put("key", "value").build(), expectedMap = mapOf("key" to listOf("value")), - expectedSize = 1 + expectedSize = 1, ), PUT_MULTIPLE( QueryParams.builder().put("key", listOf("value1", "value2")).build(), expectedMap = mapOf("key" to listOf("value1", "value2")), - expectedSize = 2 + expectedSize = 2, ), MULTIPLE_PUT( QueryParams.builder().put("key1", "value").put("key2", "value").build(), expectedMap = mapOf("key1" to listOf("value"), "key2" to listOf("value")), - expectedSize = 2 + expectedSize = 2, ), MULTIPLE_PUT_SAME_NAME( QueryParams.builder().put("key", "value1").put("key", "value2").build(), expectedMap = mapOf("key" to listOf("value1", "value2")), - expectedSize = 2 + expectedSize = 2, ), MULTIPLE_PUT_MULTIPLE( QueryParams.builder() @@ -40,40 +40,40 @@ internal class QueryParamsTest { .put("key", listOf("value1", "value2")) .build(), expectedMap = mapOf("key" to listOf("value1", "value2", "value1", "value2")), - expectedSize = 4 + expectedSize = 4, ), PUT_ALL_MAP( QueryParams.builder() .putAll( mapOf( "key1" to listOf("value1", "value2"), - "key2" to listOf("value1", "value2") + "key2" to listOf("value1", "value2"), ) ) .build(), expectedMap = mapOf("key1" to listOf("value1", "value2"), "key2" to listOf("value1", "value2")), - expectedSize = 4 + expectedSize = 4, ), PUT_ALL_HEADERS( QueryParams.builder().putAll(QueryParams.builder().put("key", "value").build()).build(), expectedMap = mapOf("key" to listOf("value")), - expectedSize = 1 + expectedSize = 1, ), REMOVE_ABSENT( QueryParams.builder().remove("key").build(), expectedMap = mapOf(), - expectedSize = 0 + expectedSize = 0, ), REMOVE_PRESENT_ONE( QueryParams.builder().put("key", "value").remove("key").build(), expectedMap = mapOf(), - expectedSize = 0 + expectedSize = 0, ), REMOVE_PRESENT_MULTIPLE( QueryParams.builder().put("key", listOf("value1", "value2")).remove("key").build(), expectedMap = mapOf(), - expectedSize = 0 + expectedSize = 0, ), REMOVE_ALL( QueryParams.builder() @@ -82,22 +82,22 @@ internal class QueryParamsTest { .removeAll(setOf("key1", "key2", "key3")) .build(), expectedMap = mapOf(), - expectedSize = 0 + expectedSize = 0, ), CLEAR( QueryParams.builder().put("key1", "value").put("key2", "value").clear().build(), expectedMap = mapOf(), - expectedSize = 0 + expectedSize = 0, ), REPLACE_ONE_ABSENT( QueryParams.builder().replace("key", "value").build(), expectedMap = mapOf("key" to listOf("value")), - expectedSize = 1 + expectedSize = 1, ), REPLACE_ONE_PRESENT_ONE( QueryParams.builder().put("key", "value1").replace("key", "value2").build(), expectedMap = mapOf("key" to listOf("value2")), - expectedSize = 1 + expectedSize = 1, ), REPLACE_ONE_PRESENT_MULTIPLE( QueryParams.builder() @@ -105,12 +105,12 @@ internal class QueryParamsTest { .replace("key", "value3") .build(), expectedMap = mapOf("key" to listOf("value3")), - expectedSize = 1 + expectedSize = 1, ), REPLACE_MULTIPLE_ABSENT( QueryParams.builder().replace("key", listOf("value1", "value2")).build(), expectedMap = mapOf("key" to listOf("value1", "value2")), - expectedSize = 2 + expectedSize = 2, ), REPLACE_MULTIPLE_PRESENT_ONE( QueryParams.builder() @@ -118,7 +118,7 @@ internal class QueryParamsTest { .replace("key", listOf("value2", "value3")) .build(), expectedMap = mapOf("key" to listOf("value2", "value3")), - expectedSize = 2 + expectedSize = 2, ), REPLACE_MULTIPLE_PRESENT_MULTIPLE( QueryParams.builder() @@ -126,7 +126,7 @@ internal class QueryParamsTest { .replace("key", listOf("value3", "value4")) .build(), expectedMap = mapOf("key" to listOf("value3", "value4")), - expectedSize = 2 + expectedSize = 2, ), REPLACE_ALL_MAP( QueryParams.builder() @@ -139,9 +139,9 @@ internal class QueryParamsTest { mapOf( "key1" to listOf("value2"), "key2" to listOf("value1"), - "key3" to listOf("value2") + "key3" to listOf("value2"), ), - expectedSize = 3 + expectedSize = 3, ), REPLACE_ALL_HEADERS( QueryParams.builder() @@ -156,10 +156,10 @@ internal class QueryParamsTest { mapOf( "key1" to listOf("value2"), "key2" to listOf("value1"), - "key3" to listOf("value2") + "key3" to listOf("value2"), ), - expectedSize = 3 - ) + expectedSize = 3, + ), } @ParameterizedTest 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 40ab4321..ae5c8211 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 @@ -26,12 +26,12 @@ internal class RetryingHttpClientTest { object : HttpClient { override fun execute( request: HttpRequest, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): HttpResponse = trackClose(okHttpClient.execute(request, requestOptions)) override fun executeAsync( request: HttpRequest, - requestOptions: RequestOptions + requestOptions: RequestOptions, ): CompletableFuture = okHttpClient.executeAsync(request, requestOptions).thenApply { trackClose(it) } @@ -71,7 +71,7 @@ internal class RetryingHttpClientTest { val response = retryingClient.execute( HttpRequest.builder().method(HttpMethod.POST).addPathSegment("something").build(), - async + async, ) assertThat(response.statusCode()).isEqualTo(200) @@ -97,7 +97,7 @@ internal class RetryingHttpClientTest { val response = retryingClient.execute( HttpRequest.builder().method(HttpMethod.POST).addPathSegment("something").build(), - async + async, ) assertThat(response.statusCode()).isEqualTo(200) @@ -140,24 +140,24 @@ internal class RetryingHttpClientTest { val response = retryingClient.execute( HttpRequest.builder().method(HttpMethod.POST).addPathSegment("something").build(), - async + async, ) assertThat(response.statusCode()).isEqualTo(200) verify( 1, postRequestedFor(urlPathEqualTo("/something")) - .withHeader("x-stainless-retry-count", equalTo("0")) + .withHeader("x-stainless-retry-count", equalTo("0")), ) verify( 1, postRequestedFor(urlPathEqualTo("/something")) - .withHeader("x-stainless-retry-count", equalTo("1")) + .withHeader("x-stainless-retry-count", equalTo("1")), ) verify( 1, postRequestedFor(urlPathEqualTo("/something")) - .withHeader("x-stainless-retry-count", equalTo("2")) + .withHeader("x-stainless-retry-count", equalTo("2")), ) assertNoResponseLeaks() } @@ -191,14 +191,14 @@ internal class RetryingHttpClientTest { .addPathSegment("something") .putHeader("x-stainless-retry-count", "42") .build(), - async + async, ) assertThat(response.statusCode()).isEqualTo(200) verify( 2, postRequestedFor(urlPathEqualTo("/something")) - .withHeader("x-stainless-retry-count", equalTo("42")) + .withHeader("x-stainless-retry-count", equalTo("42")), ) assertNoResponseLeaks() } @@ -226,7 +226,7 @@ internal class RetryingHttpClientTest { val response = retryingClient.execute( HttpRequest.builder().method(HttpMethod.POST).addPathSegment("something").build(), - async + async, ) assertThat(response.statusCode()).isEqualTo(200) diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/core/http/SerializerTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/core/http/SerializerTest.kt index 59d8dece..159fc882 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/core/http/SerializerTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/core/http/SerializerTest.kt @@ -48,11 +48,7 @@ internal class SerializerTest { override fun hashCode(): Int { if (hashCode == 0) { - hashCode = - Objects.hash( - isActive, - additionalProperties, - ) + hashCode = Objects.hash(isActive, additionalProperties) } return hashCode } @@ -91,10 +87,7 @@ internal class SerializerTest { } fun build(): ClassWithBooleanFieldPrefixedWithIs = - ClassWithBooleanFieldPrefixedWithIs( - isActive, - additionalProperties.toImmutable(), - ) + ClassWithBooleanFieldPrefixedWithIs(isActive, additionalProperties.toImmutable()) } } diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisBenefitIndividualRetrieveManyBenefitsParamsTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisBenefitIndividualRetrieveManyBenefitsParamsTest.kt index 926ce855..5768f00c 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisBenefitIndividualRetrieveManyBenefitsParamsTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisBenefitIndividualRetrieveManyBenefitsParamsTest.kt @@ -30,7 +30,7 @@ class HrisBenefitIndividualRetrieveManyBenefitsParamsTest { val expected = QueryParams.builder() expected.put( "individual_ids", - "d675d2b7-6d7b-41a8-b2d3-001eb3fb88f6,d02a6346-1f08-4312-a064-49ff3cafaa7a" + "d675d2b7-6d7b-41a8-b2d3-001eb3fb88f6,d02a6346-1f08-4312-a064-49ff3cafaa7a", ) assertThat(params._queryParams()).isEqualTo(expected.build()) } diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/ErrorHandlingTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/ErrorHandlingTest.kt index c76df6e8..a51b273f 100644 --- a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/ErrorHandlingTest.kt +++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/ErrorHandlingTest.kt @@ -181,7 +181,7 @@ class ErrorHandlingTest { assertUnprocessableEntity( e, Headers.builder().put("Foo", "Bar").build(), - FINCH_ERROR + FINCH_ERROR, ) }) } @@ -231,7 +231,7 @@ class ErrorHandlingTest { e, 999, Headers.builder().put("Foo", "Bar").build(), - toJson(FINCH_ERROR) + toJson(FINCH_ERROR), ) }) } @@ -270,7 +270,7 @@ class ErrorHandlingTest { throwable: Throwable, statusCode: Int, headers: Headers, - responseBody: ByteArray + responseBody: ByteArray, ) { assertThat(throwable) .asInstanceOf( @@ -328,7 +328,7 @@ class ErrorHandlingTest { private fun assertUnprocessableEntity( throwable: Throwable, headers: Headers, - error: FinchError + error: FinchError, ) { assertThat(throwable) .asInstanceOf( diff --git a/gradle.properties b/gradle.properties index a3bc58f2..ec5c5092 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,6 @@ +org.gradle.configuration-cache=true org.gradle.caching=true -org.gradle.jvmargs=-Xmx4g org.gradle.parallel=true +org.gradle.daemon=false +org.gradle.jvmargs=-Xmx4g kotlin.daemon.jvmargs=-Xmx4g diff --git a/scripts/format b/scripts/format index c6239fab..456a69db 100755 --- a/scripts/format +++ b/scripts/format @@ -5,4 +5,4 @@ set -e cd "$(dirname "$0")/.." echo "==> Running spotlessApply" -./gradlew --build-cache --parallel --no-daemon spotlessApply +./gradlew spotlessApply diff --git a/scripts/lint b/scripts/lint index 58753d0b..e3a5f5e2 100755 --- a/scripts/lint +++ b/scripts/lint @@ -5,4 +5,4 @@ set -e cd "$(dirname "$0")/.." echo "==> Build classes" -./gradlew --build-cache --parallel --no-daemon build testClasses -x test +./gradlew build testClasses -x test diff --git a/scripts/test b/scripts/test index 72ed0333..6b750a74 100755 --- a/scripts/test +++ b/scripts/test @@ -53,4 +53,4 @@ else fi echo "==> Running tests" -./gradlew --build-cache --parallel --no-daemon test +./gradlew test