diff --git a/.release-please-manifest.json b/.release-please-manifest.json
index cef642694..c81709678 100644
--- a/.release-please-manifest.json
+++ b/.release-please-manifest.json
@@ -1,3 +1,3 @@
{
- ".": "7.10.0"
+ ".": "8.0.0"
}
\ No newline at end of file
diff --git a/.stats.yml b/.stats.yml
index b7a7420d1..431aa1d46 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 48
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch/finch-7e39b6a20bf3e1f23ad832300b73ae92b6f6ce7c9d86eaa8fcc0710b51455f17.yml
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch/finch-ecd3f6c28edae07dbe9f54d8040a6d7f2af5ac032b20f8df06065542478e4e73.yml
openapi_spec_hash: 5e0e04e7274494062ff46ac85d358f5b
-config_hash: 8b3c2a32014346513c18d98cbb752d2c
+config_hash: 9ae56f40cec7304896138bfad5caf748
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 759ffce18..bf445bdad 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,13 @@
# Changelog
+## 8.0.0 (2026-06-22)
+
+Full Changelog: [v7.10.0...v8.0.0](https://github.com/Finch-API/finch-api-java/compare/v7.10.0...v8.0.0)
+
+### Bug Fixes
+
+* **payroll:** pay_statement_item is now a direct subresource of hris instead of company ([d5a0907](https://github.com/Finch-API/finch-api-java/commit/d5a09070b404bdd5ba5bbaf85e91d8112b094328))
+
## 7.10.0 (2026-06-22)
Full Changelog: [v7.9.0...v7.10.0](https://github.com/Finch-API/finch-api-java/compare/v7.9.0...v7.10.0)
diff --git a/README.md b/README.md
index 84e289963..991bd3026 100644
--- a/README.md
+++ b/README.md
@@ -2,8 +2,8 @@
-[](https://central.sonatype.com/artifact/com.tryfinch.api/finch-java/7.10.0)
-[](https://javadoc.io/doc/com.tryfinch.api/finch-java/7.10.0)
+[](https://central.sonatype.com/artifact/com.tryfinch.api/finch-java/8.0.0)
+[](https://javadoc.io/doc/com.tryfinch.api/finch-java/8.0.0)
@@ -24,7 +24,7 @@ Use the Finch MCP Server to enable AI assistants to interact with this API, allo
-The REST API documentation can be found on [developer.tryfinch.com](https://developer.tryfinch.com/). Javadocs are available on [javadoc.io](https://javadoc.io/doc/com.tryfinch.api/finch-java/7.10.0).
+The REST API documentation can be found on [developer.tryfinch.com](https://developer.tryfinch.com/). Javadocs are available on [javadoc.io](https://javadoc.io/doc/com.tryfinch.api/finch-java/8.0.0).
@@ -35,7 +35,7 @@ The REST API documentation can be found on [developer.tryfinch.com](https://deve
### Gradle
```kotlin
-implementation("com.tryfinch.api:finch-java:7.10.0")
+implementation("com.tryfinch.api:finch-java:8.0.0")
```
### Maven
@@ -44,7 +44,7 @@ implementation("com.tryfinch.api:finch-java:7.10.0")
com.tryfinch.api
finch-java
- 7.10.0
+ 8.0.0
```
diff --git a/build.gradle.kts b/build.gradle.kts
index 8ae139d9a..b984d1f90 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -8,7 +8,7 @@ repositories {
allprojects {
group = "com.tryfinch.api"
- version = "7.10.0" // x-release-please-version
+ version = "8.0.0" // x-release-please-version
}
subprojects {
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemListPage.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementItemListPage.kt
similarity index 58%
rename from finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemListPage.kt
rename to finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementItemListPage.kt
index 94abdaf01..6f9df6959 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemListPage.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementItemListPage.kt
@@ -5,23 +5,22 @@ package com.tryfinch.api.models
import com.tryfinch.api.core.AutoPager
import com.tryfinch.api.core.Page
import com.tryfinch.api.core.checkRequired
-import com.tryfinch.api.services.blocking.hris.company.PayStatementItemService
+import com.tryfinch.api.services.blocking.hris.PayStatementItemService
import java.util.Objects
import kotlin.jvm.optionals.getOrNull
/** @see PayStatementItemService.list */
-class HrisCompanyPayStatementItemListPage
+class HrisPayStatementItemListPage
private constructor(
private val service: PayStatementItemService,
- private val params: HrisCompanyPayStatementItemListParams,
- private val response: HrisCompanyPayStatementItemListPageResponse,
+ private val params: HrisPayStatementItemListParams,
+ private val response: HrisPayStatementItemListPageResponse,
) : Page {
/**
- * Delegates to [HrisCompanyPayStatementItemListPageResponse], but gracefully handles missing
- * data.
+ * Delegates to [HrisPayStatementItemListPageResponse], but gracefully handles missing data.
*
- * @see HrisCompanyPayStatementItemListPageResponse.responses
+ * @see HrisPayStatementItemListPageResponse.responses
*/
fun responses(): List =
response._responses().getOptional("responses").getOrNull() ?: emptyList()
@@ -30,26 +29,25 @@ private constructor(
override fun hasNextPage(): Boolean = false
- fun nextPageParams(): HrisCompanyPayStatementItemListParams =
+ fun nextPageParams(): HrisPayStatementItemListParams =
throw IllegalStateException("Cannot construct next page params")
- override fun nextPage(): HrisCompanyPayStatementItemListPage = service.list(nextPageParams())
+ override fun nextPage(): HrisPayStatementItemListPage = service.list(nextPageParams())
fun autoPager(): AutoPager = AutoPager.from(this)
/** The parameters that were used to request this page. */
- fun params(): HrisCompanyPayStatementItemListParams = params
+ fun params(): HrisPayStatementItemListParams = params
/** The response that this page was parsed from. */
- fun response(): HrisCompanyPayStatementItemListPageResponse = response
+ fun response(): HrisPayStatementItemListPageResponse = response
fun toBuilder() = Builder().from(this)
companion object {
/**
- * Returns a mutable builder for constructing an instance of
- * [HrisCompanyPayStatementItemListPage].
+ * Returns a mutable builder for constructing an instance of [HrisPayStatementItemListPage].
*
* The following fields are required:
* ```java
@@ -61,34 +59,32 @@ private constructor(
@JvmStatic fun builder() = Builder()
}
- /** A builder for [HrisCompanyPayStatementItemListPage]. */
+ /** A builder for [HrisPayStatementItemListPage]. */
class Builder internal constructor() {
private var service: PayStatementItemService? = null
- private var params: HrisCompanyPayStatementItemListParams? = null
- private var response: HrisCompanyPayStatementItemListPageResponse? = null
+ private var params: HrisPayStatementItemListParams? = null
+ private var response: HrisPayStatementItemListPageResponse? = null
@JvmSynthetic
- internal fun from(
- hrisCompanyPayStatementItemListPage: HrisCompanyPayStatementItemListPage
- ) = apply {
- service = hrisCompanyPayStatementItemListPage.service
- params = hrisCompanyPayStatementItemListPage.params
- response = hrisCompanyPayStatementItemListPage.response
+ internal fun from(hrisPayStatementItemListPage: HrisPayStatementItemListPage) = apply {
+ service = hrisPayStatementItemListPage.service
+ params = hrisPayStatementItemListPage.params
+ response = hrisPayStatementItemListPage.response
}
fun service(service: PayStatementItemService) = apply { this.service = service }
/** The parameters that were used to request this page. */
- fun params(params: HrisCompanyPayStatementItemListParams) = apply { this.params = params }
+ fun params(params: HrisPayStatementItemListParams) = apply { this.params = params }
/** The response that this page was parsed from. */
- fun response(response: HrisCompanyPayStatementItemListPageResponse) = apply {
+ fun response(response: HrisPayStatementItemListPageResponse) = apply {
this.response = response
}
/**
- * Returns an immutable instance of [HrisCompanyPayStatementItemListPage].
+ * Returns an immutable instance of [HrisPayStatementItemListPage].
*
* Further updates to this [Builder] will not mutate the returned instance.
*
@@ -101,8 +97,8 @@ private constructor(
*
* @throws IllegalStateException if any required field is unset.
*/
- fun build(): HrisCompanyPayStatementItemListPage =
- HrisCompanyPayStatementItemListPage(
+ fun build(): HrisPayStatementItemListPage =
+ HrisPayStatementItemListPage(
checkRequired("service", service),
checkRequired("params", params),
checkRequired("response", response),
@@ -114,7 +110,7 @@ private constructor(
return true
}
- return other is HrisCompanyPayStatementItemListPage &&
+ return other is HrisPayStatementItemListPage &&
service == other.service &&
params == other.params &&
response == other.response
@@ -123,5 +119,5 @@ private constructor(
override fun hashCode(): Int = Objects.hash(service, params, response)
override fun toString() =
- "HrisCompanyPayStatementItemListPage{service=$service, params=$params, response=$response}"
+ "HrisPayStatementItemListPage{service=$service, params=$params, response=$response}"
}
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemListPageAsync.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementItemListPageAsync.kt
similarity index 61%
rename from finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemListPageAsync.kt
rename to finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementItemListPageAsync.kt
index 1fff61b70..8a6582dc5 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemListPageAsync.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementItemListPageAsync.kt
@@ -5,26 +5,25 @@ package com.tryfinch.api.models
import com.tryfinch.api.core.AutoPagerAsync
import com.tryfinch.api.core.PageAsync
import com.tryfinch.api.core.checkRequired
-import com.tryfinch.api.services.async.hris.company.PayStatementItemServiceAsync
+import com.tryfinch.api.services.async.hris.PayStatementItemServiceAsync
import java.util.Objects
import java.util.concurrent.CompletableFuture
import java.util.concurrent.Executor
import kotlin.jvm.optionals.getOrNull
/** @see PayStatementItemServiceAsync.list */
-class HrisCompanyPayStatementItemListPageAsync
+class HrisPayStatementItemListPageAsync
private constructor(
private val service: PayStatementItemServiceAsync,
private val streamHandlerExecutor: Executor,
- private val params: HrisCompanyPayStatementItemListParams,
- private val response: HrisCompanyPayStatementItemListPageResponse,
+ private val params: HrisPayStatementItemListParams,
+ private val response: HrisPayStatementItemListPageResponse,
) : PageAsync {
/**
- * Delegates to [HrisCompanyPayStatementItemListPageResponse], but gracefully handles missing
- * data.
+ * Delegates to [HrisPayStatementItemListPageResponse], but gracefully handles missing data.
*
- * @see HrisCompanyPayStatementItemListPageResponse.responses
+ * @see HrisPayStatementItemListPageResponse.responses
*/
fun responses(): List =
response._responses().getOptional("responses").getOrNull() ?: emptyList()
@@ -33,20 +32,20 @@ private constructor(
override fun hasNextPage(): Boolean = false
- fun nextPageParams(): HrisCompanyPayStatementItemListParams =
+ fun nextPageParams(): HrisPayStatementItemListParams =
throw IllegalStateException("Cannot construct next page params")
- override fun nextPage(): CompletableFuture =
+ override fun nextPage(): CompletableFuture =
service.list(nextPageParams())
fun autoPager(): AutoPagerAsync =
AutoPagerAsync.from(this, streamHandlerExecutor)
/** The parameters that were used to request this page. */
- fun params(): HrisCompanyPayStatementItemListParams = params
+ fun params(): HrisPayStatementItemListParams = params
/** The response that this page was parsed from. */
- fun response(): HrisCompanyPayStatementItemListPageResponse = response
+ fun response(): HrisPayStatementItemListPageResponse = response
fun toBuilder() = Builder().from(this)
@@ -54,7 +53,7 @@ private constructor(
/**
* Returns a mutable builder for constructing an instance of
- * [HrisCompanyPayStatementItemListPageAsync].
+ * [HrisPayStatementItemListPageAsync].
*
* The following fields are required:
* ```java
@@ -67,23 +66,22 @@ private constructor(
@JvmStatic fun builder() = Builder()
}
- /** A builder for [HrisCompanyPayStatementItemListPageAsync]. */
+ /** A builder for [HrisPayStatementItemListPageAsync]. */
class Builder internal constructor() {
private var service: PayStatementItemServiceAsync? = null
private var streamHandlerExecutor: Executor? = null
- private var params: HrisCompanyPayStatementItemListParams? = null
- private var response: HrisCompanyPayStatementItemListPageResponse? = null
+ private var params: HrisPayStatementItemListParams? = null
+ private var response: HrisPayStatementItemListPageResponse? = null
@JvmSynthetic
- internal fun from(
- hrisCompanyPayStatementItemListPageAsync: HrisCompanyPayStatementItemListPageAsync
- ) = apply {
- service = hrisCompanyPayStatementItemListPageAsync.service
- streamHandlerExecutor = hrisCompanyPayStatementItemListPageAsync.streamHandlerExecutor
- params = hrisCompanyPayStatementItemListPageAsync.params
- response = hrisCompanyPayStatementItemListPageAsync.response
- }
+ internal fun from(hrisPayStatementItemListPageAsync: HrisPayStatementItemListPageAsync) =
+ apply {
+ service = hrisPayStatementItemListPageAsync.service
+ streamHandlerExecutor = hrisPayStatementItemListPageAsync.streamHandlerExecutor
+ params = hrisPayStatementItemListPageAsync.params
+ response = hrisPayStatementItemListPageAsync.response
+ }
fun service(service: PayStatementItemServiceAsync) = apply { this.service = service }
@@ -92,15 +90,15 @@ private constructor(
}
/** The parameters that were used to request this page. */
- fun params(params: HrisCompanyPayStatementItemListParams) = apply { this.params = params }
+ fun params(params: HrisPayStatementItemListParams) = apply { this.params = params }
/** The response that this page was parsed from. */
- fun response(response: HrisCompanyPayStatementItemListPageResponse) = apply {
+ fun response(response: HrisPayStatementItemListPageResponse) = apply {
this.response = response
}
/**
- * Returns an immutable instance of [HrisCompanyPayStatementItemListPageAsync].
+ * Returns an immutable instance of [HrisPayStatementItemListPageAsync].
*
* Further updates to this [Builder] will not mutate the returned instance.
*
@@ -114,8 +112,8 @@ private constructor(
*
* @throws IllegalStateException if any required field is unset.
*/
- fun build(): HrisCompanyPayStatementItemListPageAsync =
- HrisCompanyPayStatementItemListPageAsync(
+ fun build(): HrisPayStatementItemListPageAsync =
+ HrisPayStatementItemListPageAsync(
checkRequired("service", service),
checkRequired("streamHandlerExecutor", streamHandlerExecutor),
checkRequired("params", params),
@@ -128,7 +126,7 @@ private constructor(
return true
}
- return other is HrisCompanyPayStatementItemListPageAsync &&
+ return other is HrisPayStatementItemListPageAsync &&
service == other.service &&
streamHandlerExecutor == other.streamHandlerExecutor &&
params == other.params &&
@@ -138,5 +136,5 @@ private constructor(
override fun hashCode(): Int = Objects.hash(service, streamHandlerExecutor, params, response)
override fun toString() =
- "HrisCompanyPayStatementItemListPageAsync{service=$service, streamHandlerExecutor=$streamHandlerExecutor, params=$params, response=$response}"
+ "HrisPayStatementItemListPageAsync{service=$service, streamHandlerExecutor=$streamHandlerExecutor, params=$params, response=$response}"
}
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemListPageResponse.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementItemListPageResponse.kt
similarity index 86%
rename from finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemListPageResponse.kt
rename to finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementItemListPageResponse.kt
index bcc140651..a5e35e681 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemListPageResponse.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementItemListPageResponse.kt
@@ -18,7 +18,7 @@ import java.util.Collections
import java.util.Objects
import kotlin.jvm.optionals.getOrNull
-class HrisCompanyPayStatementItemListPageResponse
+class HrisPayStatementItemListPageResponse
@JsonCreator(mode = JsonCreator.Mode.DISABLED)
private constructor(
private val responses: JsonField>,
@@ -63,7 +63,7 @@ private constructor(
/**
* Returns a mutable builder for constructing an instance of
- * [HrisCompanyPayStatementItemListPageResponse].
+ * [HrisPayStatementItemListPageResponse].
*
* The following fields are required:
* ```java
@@ -73,7 +73,7 @@ private constructor(
@JvmStatic fun builder() = Builder()
}
- /** A builder for [HrisCompanyPayStatementItemListPageResponse]. */
+ /** A builder for [HrisPayStatementItemListPageResponse]. */
class Builder internal constructor() {
private var responses: JsonField>? = null
@@ -81,12 +81,11 @@ private constructor(
@JvmSynthetic
internal fun from(
- hrisCompanyPayStatementItemListPageResponse: HrisCompanyPayStatementItemListPageResponse
+ hrisPayStatementItemListPageResponse: HrisPayStatementItemListPageResponse
) = apply {
- responses =
- hrisCompanyPayStatementItemListPageResponse.responses.map { it.toMutableList() }
+ responses = hrisPayStatementItemListPageResponse.responses.map { it.toMutableList() }
additionalProperties =
- hrisCompanyPayStatementItemListPageResponse.additionalProperties.toMutableMap()
+ hrisPayStatementItemListPageResponse.additionalProperties.toMutableMap()
}
fun responses(responses: List) =
@@ -135,7 +134,7 @@ private constructor(
}
/**
- * Returns an immutable instance of [HrisCompanyPayStatementItemListPageResponse].
+ * Returns an immutable instance of [HrisPayStatementItemListPageResponse].
*
* Further updates to this [Builder] will not mutate the returned instance.
*
@@ -146,8 +145,8 @@ private constructor(
*
* @throws IllegalStateException if any required field is unset.
*/
- fun build(): HrisCompanyPayStatementItemListPageResponse =
- HrisCompanyPayStatementItemListPageResponse(
+ fun build(): HrisPayStatementItemListPageResponse =
+ HrisPayStatementItemListPageResponse(
checkRequired("responses", responses).map { it.toImmutable() },
additionalProperties.toMutableMap(),
)
@@ -163,7 +162,7 @@ private constructor(
* @throws FinchInvalidDataException if any value type in this object doesn't match its expected
* type.
*/
- fun validate(): HrisCompanyPayStatementItemListPageResponse = apply {
+ fun validate(): HrisPayStatementItemListPageResponse = apply {
if (validated) {
return@apply
}
@@ -194,7 +193,7 @@ private constructor(
return true
}
- return other is HrisCompanyPayStatementItemListPageResponse &&
+ return other is HrisPayStatementItemListPageResponse &&
responses == other.responses &&
additionalProperties == other.additionalProperties
}
@@ -204,5 +203,5 @@ private constructor(
override fun hashCode(): Int = hashCode
override fun toString() =
- "HrisCompanyPayStatementItemListPageResponse{responses=$responses, additionalProperties=$additionalProperties}"
+ "HrisPayStatementItemListPageResponse{responses=$responses, additionalProperties=$additionalProperties}"
}
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemListParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementItemListParams.kt
similarity index 91%
rename from finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemListParams.kt
rename to finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementItemListParams.kt
index 27380a67d..bde40613c 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemListParams.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementItemListParams.kt
@@ -16,7 +16,7 @@ import java.util.Optional
import kotlin.jvm.optionals.getOrNull
/** Retrieve a list of detailed pay statement items for the access token's connection account. */
-class HrisCompanyPayStatementItemListParams
+class HrisPayStatementItemListParams
private constructor(
private val categories: List?,
private val endDate: LocalDate?,
@@ -65,16 +65,16 @@ private constructor(
companion object {
- @JvmStatic fun none(): HrisCompanyPayStatementItemListParams = builder().build()
+ @JvmStatic fun none(): HrisPayStatementItemListParams = builder().build()
/**
* Returns a mutable builder for constructing an instance of
- * [HrisCompanyPayStatementItemListParams].
+ * [HrisPayStatementItemListParams].
*/
@JvmStatic fun builder() = Builder()
}
- /** A builder for [HrisCompanyPayStatementItemListParams]. */
+ /** A builder for [HrisPayStatementItemListParams]. */
class Builder internal constructor() {
private var categories: MutableList? = null
@@ -87,18 +87,15 @@ private constructor(
private var additionalQueryParams: QueryParams.Builder = QueryParams.builder()
@JvmSynthetic
- internal fun from(
- hrisCompanyPayStatementItemListParams: HrisCompanyPayStatementItemListParams
- ) = apply {
- categories = hrisCompanyPayStatementItemListParams.categories?.toMutableList()
- endDate = hrisCompanyPayStatementItemListParams.endDate
- entityIds = hrisCompanyPayStatementItemListParams.entityIds?.toMutableList()
- name = hrisCompanyPayStatementItemListParams.name
- startDate = hrisCompanyPayStatementItemListParams.startDate
- type = hrisCompanyPayStatementItemListParams.type
- additionalHeaders = hrisCompanyPayStatementItemListParams.additionalHeaders.toBuilder()
- additionalQueryParams =
- hrisCompanyPayStatementItemListParams.additionalQueryParams.toBuilder()
+ internal fun from(hrisPayStatementItemListParams: HrisPayStatementItemListParams) = apply {
+ categories = hrisPayStatementItemListParams.categories?.toMutableList()
+ endDate = hrisPayStatementItemListParams.endDate
+ entityIds = hrisPayStatementItemListParams.entityIds?.toMutableList()
+ name = hrisPayStatementItemListParams.name
+ startDate = hrisPayStatementItemListParams.startDate
+ type = hrisPayStatementItemListParams.type
+ additionalHeaders = hrisPayStatementItemListParams.additionalHeaders.toBuilder()
+ additionalQueryParams = hrisPayStatementItemListParams.additionalQueryParams.toBuilder()
}
/**
@@ -267,12 +264,12 @@ private constructor(
}
/**
- * Returns an immutable instance of [HrisCompanyPayStatementItemListParams].
+ * Returns an immutable instance of [HrisPayStatementItemListParams].
*
* Further updates to this [Builder] will not mutate the returned instance.
*/
- fun build(): HrisCompanyPayStatementItemListParams =
- HrisCompanyPayStatementItemListParams(
+ fun build(): HrisPayStatementItemListParams =
+ HrisPayStatementItemListParams(
categories?.toImmutable(),
endDate,
entityIds?.toImmutable(),
@@ -449,7 +446,7 @@ private constructor(
return true
}
- return other is HrisCompanyPayStatementItemListParams &&
+ return other is HrisPayStatementItemListParams &&
categories == other.categories &&
endDate == other.endDate &&
entityIds == other.entityIds &&
@@ -473,5 +470,5 @@ private constructor(
)
override fun toString() =
- "HrisCompanyPayStatementItemListParams{categories=$categories, endDate=$endDate, entityIds=$entityIds, name=$name, startDate=$startDate, type=$type, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams}"
+ "HrisPayStatementItemListParams{categories=$categories, endDate=$endDate, entityIds=$entityIds, name=$name, startDate=$startDate, type=$type, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams}"
}
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemRuleCreateParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementItemRuleCreateParams.kt
similarity index 97%
rename from finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemRuleCreateParams.kt
rename to finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementItemRuleCreateParams.kt
index 3d6dc31a1..6df6e3e7e 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemRuleCreateParams.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementItemRuleCreateParams.kt
@@ -27,7 +27,7 @@ import kotlin.jvm.optionals.getOrNull
* the use case. For example, pay statement items that meet certain conditions can be labeled as a
* pre-tax 401k. This metadata can be retrieved where pay statement item information is available.
*/
-class HrisCompanyPayStatementItemRuleCreateParams
+class HrisPayStatementItemRuleCreateParams
private constructor(
private val entityIds: List?,
private val body: CreateRuleRequest,
@@ -125,16 +125,16 @@ private constructor(
companion object {
- @JvmStatic fun none(): HrisCompanyPayStatementItemRuleCreateParams = builder().build()
+ @JvmStatic fun none(): HrisPayStatementItemRuleCreateParams = builder().build()
/**
* Returns a mutable builder for constructing an instance of
- * [HrisCompanyPayStatementItemRuleCreateParams].
+ * [HrisPayStatementItemRuleCreateParams].
*/
@JvmStatic fun builder() = Builder()
}
- /** A builder for [HrisCompanyPayStatementItemRuleCreateParams]. */
+ /** A builder for [HrisPayStatementItemRuleCreateParams]. */
class Builder internal constructor() {
private var entityIds: MutableList? = null
@@ -144,14 +144,13 @@ private constructor(
@JvmSynthetic
internal fun from(
- hrisCompanyPayStatementItemRuleCreateParams: HrisCompanyPayStatementItemRuleCreateParams
+ hrisPayStatementItemRuleCreateParams: HrisPayStatementItemRuleCreateParams
) = apply {
- entityIds = hrisCompanyPayStatementItemRuleCreateParams.entityIds?.toMutableList()
- body = hrisCompanyPayStatementItemRuleCreateParams.body.toBuilder()
- additionalHeaders =
- hrisCompanyPayStatementItemRuleCreateParams.additionalHeaders.toBuilder()
+ entityIds = hrisPayStatementItemRuleCreateParams.entityIds?.toMutableList()
+ body = hrisPayStatementItemRuleCreateParams.body.toBuilder()
+ additionalHeaders = hrisPayStatementItemRuleCreateParams.additionalHeaders.toBuilder()
additionalQueryParams =
- hrisCompanyPayStatementItemRuleCreateParams.additionalQueryParams.toBuilder()
+ hrisPayStatementItemRuleCreateParams.additionalQueryParams.toBuilder()
}
/** The entity IDs to create the rule for. */
@@ -389,12 +388,12 @@ private constructor(
}
/**
- * Returns an immutable instance of [HrisCompanyPayStatementItemRuleCreateParams].
+ * Returns an immutable instance of [HrisPayStatementItemRuleCreateParams].
*
* Further updates to this [Builder] will not mutate the returned instance.
*/
- fun build(): HrisCompanyPayStatementItemRuleCreateParams =
- HrisCompanyPayStatementItemRuleCreateParams(
+ fun build(): HrisPayStatementItemRuleCreateParams =
+ HrisPayStatementItemRuleCreateParams(
entityIds?.toImmutable(),
body.build(),
additionalHeaders.build(),
@@ -1553,7 +1552,7 @@ private constructor(
return true
}
- return other is HrisCompanyPayStatementItemRuleCreateParams &&
+ return other is HrisPayStatementItemRuleCreateParams &&
entityIds == other.entityIds &&
body == other.body &&
additionalHeaders == other.additionalHeaders &&
@@ -1564,5 +1563,5 @@ private constructor(
Objects.hash(entityIds, body, additionalHeaders, additionalQueryParams)
override fun toString() =
- "HrisCompanyPayStatementItemRuleCreateParams{entityIds=$entityIds, body=$body, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams}"
+ "HrisPayStatementItemRuleCreateParams{entityIds=$entityIds, body=$body, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams}"
}
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemRuleDeleteParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementItemRuleDeleteParams.kt
similarity index 86%
rename from finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemRuleDeleteParams.kt
rename to finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementItemRuleDeleteParams.kt
index 300751acf..a2b586437 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemRuleDeleteParams.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementItemRuleDeleteParams.kt
@@ -12,7 +12,7 @@ import java.util.Optional
import kotlin.jvm.optionals.getOrNull
/** Delete a rule for a pay statement item. */
-class HrisCompanyPayStatementItemRuleDeleteParams
+class HrisPayStatementItemRuleDeleteParams
private constructor(
private val ruleId: String?,
private val entityIds: List?,
@@ -39,16 +39,16 @@ private constructor(
companion object {
- @JvmStatic fun none(): HrisCompanyPayStatementItemRuleDeleteParams = builder().build()
+ @JvmStatic fun none(): HrisPayStatementItemRuleDeleteParams = builder().build()
/**
* Returns a mutable builder for constructing an instance of
- * [HrisCompanyPayStatementItemRuleDeleteParams].
+ * [HrisPayStatementItemRuleDeleteParams].
*/
@JvmStatic fun builder() = Builder()
}
- /** A builder for [HrisCompanyPayStatementItemRuleDeleteParams]. */
+ /** A builder for [HrisPayStatementItemRuleDeleteParams]. */
class Builder internal constructor() {
private var ruleId: String? = null
@@ -59,16 +59,15 @@ private constructor(
@JvmSynthetic
internal fun from(
- hrisCompanyPayStatementItemRuleDeleteParams: HrisCompanyPayStatementItemRuleDeleteParams
+ hrisPayStatementItemRuleDeleteParams: HrisPayStatementItemRuleDeleteParams
) = apply {
- ruleId = hrisCompanyPayStatementItemRuleDeleteParams.ruleId
- entityIds = hrisCompanyPayStatementItemRuleDeleteParams.entityIds?.toMutableList()
- additionalHeaders =
- hrisCompanyPayStatementItemRuleDeleteParams.additionalHeaders.toBuilder()
+ ruleId = hrisPayStatementItemRuleDeleteParams.ruleId
+ entityIds = hrisPayStatementItemRuleDeleteParams.entityIds?.toMutableList()
+ additionalHeaders = hrisPayStatementItemRuleDeleteParams.additionalHeaders.toBuilder()
additionalQueryParams =
- hrisCompanyPayStatementItemRuleDeleteParams.additionalQueryParams.toBuilder()
+ hrisPayStatementItemRuleDeleteParams.additionalQueryParams.toBuilder()
additionalBodyProperties =
- hrisCompanyPayStatementItemRuleDeleteParams.additionalBodyProperties.toMutableMap()
+ hrisPayStatementItemRuleDeleteParams.additionalBodyProperties.toMutableMap()
}
fun ruleId(ruleId: String?) = apply { this.ruleId = ruleId }
@@ -214,12 +213,12 @@ private constructor(
}
/**
- * Returns an immutable instance of [HrisCompanyPayStatementItemRuleDeleteParams].
+ * Returns an immutable instance of [HrisPayStatementItemRuleDeleteParams].
*
* Further updates to this [Builder] will not mutate the returned instance.
*/
- fun build(): HrisCompanyPayStatementItemRuleDeleteParams =
- HrisCompanyPayStatementItemRuleDeleteParams(
+ fun build(): HrisPayStatementItemRuleDeleteParams =
+ HrisPayStatementItemRuleDeleteParams(
ruleId,
entityIds?.toImmutable(),
additionalHeaders.build(),
@@ -252,7 +251,7 @@ private constructor(
return true
}
- return other is HrisCompanyPayStatementItemRuleDeleteParams &&
+ return other is HrisPayStatementItemRuleDeleteParams &&
ruleId == other.ruleId &&
entityIds == other.entityIds &&
additionalHeaders == other.additionalHeaders &&
@@ -270,5 +269,5 @@ private constructor(
)
override fun toString() =
- "HrisCompanyPayStatementItemRuleDeleteParams{ruleId=$ruleId, entityIds=$entityIds, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams, additionalBodyProperties=$additionalBodyProperties}"
+ "HrisPayStatementItemRuleDeleteParams{ruleId=$ruleId, entityIds=$entityIds, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams, additionalBodyProperties=$additionalBodyProperties}"
}
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemRuleListPage.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementItemRuleListPage.kt
similarity index 55%
rename from finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemRuleListPage.kt
rename to finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementItemRuleListPage.kt
index 5ff7432dd..d837b49c7 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemRuleListPage.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementItemRuleListPage.kt
@@ -5,23 +5,22 @@ package com.tryfinch.api.models
import com.tryfinch.api.core.AutoPager
import com.tryfinch.api.core.Page
import com.tryfinch.api.core.checkRequired
-import com.tryfinch.api.services.blocking.hris.company.payStatementItem.RuleService
+import com.tryfinch.api.services.blocking.hris.payStatementItem.RuleService
import java.util.Objects
import kotlin.jvm.optionals.getOrNull
/** @see RuleService.list */
-class HrisCompanyPayStatementItemRuleListPage
+class HrisPayStatementItemRuleListPage
private constructor(
private val service: RuleService,
- private val params: HrisCompanyPayStatementItemRuleListParams,
- private val response: HrisCompanyPayStatementItemRuleListPageResponse,
+ private val params: HrisPayStatementItemRuleListParams,
+ private val response: HrisPayStatementItemRuleListPageResponse,
) : Page {
/**
- * Delegates to [HrisCompanyPayStatementItemRuleListPageResponse], but gracefully handles
- * missing data.
+ * Delegates to [HrisPayStatementItemRuleListPageResponse], but gracefully handles missing data.
*
- * @see HrisCompanyPayStatementItemRuleListPageResponse.responses
+ * @see HrisPayStatementItemRuleListPageResponse.responses
*/
fun responses(): List =
response._responses().getOptional("responses").getOrNull() ?: emptyList()
@@ -30,19 +29,18 @@ private constructor(
override fun hasNextPage(): Boolean = false
- fun nextPageParams(): HrisCompanyPayStatementItemRuleListParams =
+ fun nextPageParams(): HrisPayStatementItemRuleListParams =
throw IllegalStateException("Cannot construct next page params")
- override fun nextPage(): HrisCompanyPayStatementItemRuleListPage =
- service.list(nextPageParams())
+ override fun nextPage(): HrisPayStatementItemRuleListPage = service.list(nextPageParams())
fun autoPager(): AutoPager = AutoPager.from(this)
/** The parameters that were used to request this page. */
- fun params(): HrisCompanyPayStatementItemRuleListParams = params
+ fun params(): HrisPayStatementItemRuleListParams = params
/** The response that this page was parsed from. */
- fun response(): HrisCompanyPayStatementItemRuleListPageResponse = response
+ fun response(): HrisPayStatementItemRuleListPageResponse = response
fun toBuilder() = Builder().from(this)
@@ -50,7 +48,7 @@ private constructor(
/**
* Returns a mutable builder for constructing an instance of
- * [HrisCompanyPayStatementItemRuleListPage].
+ * [HrisPayStatementItemRuleListPage].
*
* The following fields are required:
* ```java
@@ -62,36 +60,33 @@ private constructor(
@JvmStatic fun builder() = Builder()
}
- /** A builder for [HrisCompanyPayStatementItemRuleListPage]. */
+ /** A builder for [HrisPayStatementItemRuleListPage]. */
class Builder internal constructor() {
private var service: RuleService? = null
- private var params: HrisCompanyPayStatementItemRuleListParams? = null
- private var response: HrisCompanyPayStatementItemRuleListPageResponse? = null
+ private var params: HrisPayStatementItemRuleListParams? = null
+ private var response: HrisPayStatementItemRuleListPageResponse? = null
@JvmSynthetic
- internal fun from(
- hrisCompanyPayStatementItemRuleListPage: HrisCompanyPayStatementItemRuleListPage
- ) = apply {
- service = hrisCompanyPayStatementItemRuleListPage.service
- params = hrisCompanyPayStatementItemRuleListPage.params
- response = hrisCompanyPayStatementItemRuleListPage.response
- }
+ internal fun from(hrisPayStatementItemRuleListPage: HrisPayStatementItemRuleListPage) =
+ apply {
+ service = hrisPayStatementItemRuleListPage.service
+ params = hrisPayStatementItemRuleListPage.params
+ response = hrisPayStatementItemRuleListPage.response
+ }
fun service(service: RuleService) = apply { this.service = service }
/** The parameters that were used to request this page. */
- fun params(params: HrisCompanyPayStatementItemRuleListParams) = apply {
- this.params = params
- }
+ fun params(params: HrisPayStatementItemRuleListParams) = apply { this.params = params }
/** The response that this page was parsed from. */
- fun response(response: HrisCompanyPayStatementItemRuleListPageResponse) = apply {
+ fun response(response: HrisPayStatementItemRuleListPageResponse) = apply {
this.response = response
}
/**
- * Returns an immutable instance of [HrisCompanyPayStatementItemRuleListPage].
+ * Returns an immutable instance of [HrisPayStatementItemRuleListPage].
*
* Further updates to this [Builder] will not mutate the returned instance.
*
@@ -104,8 +99,8 @@ private constructor(
*
* @throws IllegalStateException if any required field is unset.
*/
- fun build(): HrisCompanyPayStatementItemRuleListPage =
- HrisCompanyPayStatementItemRuleListPage(
+ fun build(): HrisPayStatementItemRuleListPage =
+ HrisPayStatementItemRuleListPage(
checkRequired("service", service),
checkRequired("params", params),
checkRequired("response", response),
@@ -117,7 +112,7 @@ private constructor(
return true
}
- return other is HrisCompanyPayStatementItemRuleListPage &&
+ return other is HrisPayStatementItemRuleListPage &&
service == other.service &&
params == other.params &&
response == other.response
@@ -126,5 +121,5 @@ private constructor(
override fun hashCode(): Int = Objects.hash(service, params, response)
override fun toString() =
- "HrisCompanyPayStatementItemRuleListPage{service=$service, params=$params, response=$response}"
+ "HrisPayStatementItemRuleListPage{service=$service, params=$params, response=$response}"
}
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemRuleListPageAsync.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementItemRuleListPageAsync.kt
similarity index 60%
rename from finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemRuleListPageAsync.kt
rename to finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementItemRuleListPageAsync.kt
index 823e4635b..31f089db0 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemRuleListPageAsync.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementItemRuleListPageAsync.kt
@@ -5,26 +5,25 @@ package com.tryfinch.api.models
import com.tryfinch.api.core.AutoPagerAsync
import com.tryfinch.api.core.PageAsync
import com.tryfinch.api.core.checkRequired
-import com.tryfinch.api.services.async.hris.company.payStatementItem.RuleServiceAsync
+import com.tryfinch.api.services.async.hris.payStatementItem.RuleServiceAsync
import java.util.Objects
import java.util.concurrent.CompletableFuture
import java.util.concurrent.Executor
import kotlin.jvm.optionals.getOrNull
/** @see RuleServiceAsync.list */
-class HrisCompanyPayStatementItemRuleListPageAsync
+class HrisPayStatementItemRuleListPageAsync
private constructor(
private val service: RuleServiceAsync,
private val streamHandlerExecutor: Executor,
- private val params: HrisCompanyPayStatementItemRuleListParams,
- private val response: HrisCompanyPayStatementItemRuleListPageResponse,
+ private val params: HrisPayStatementItemRuleListParams,
+ private val response: HrisPayStatementItemRuleListPageResponse,
) : PageAsync {
/**
- * Delegates to [HrisCompanyPayStatementItemRuleListPageResponse], but gracefully handles
- * missing data.
+ * Delegates to [HrisPayStatementItemRuleListPageResponse], but gracefully handles missing data.
*
- * @see HrisCompanyPayStatementItemRuleListPageResponse.responses
+ * @see HrisPayStatementItemRuleListPageResponse.responses
*/
fun responses(): List =
response._responses().getOptional("responses").getOrNull() ?: emptyList()
@@ -33,20 +32,20 @@ private constructor(
override fun hasNextPage(): Boolean = false
- fun nextPageParams(): HrisCompanyPayStatementItemRuleListParams =
+ fun nextPageParams(): HrisPayStatementItemRuleListParams =
throw IllegalStateException("Cannot construct next page params")
- override fun nextPage(): CompletableFuture =
+ override fun nextPage(): CompletableFuture =
service.list(nextPageParams())
fun autoPager(): AutoPagerAsync =
AutoPagerAsync.from(this, streamHandlerExecutor)
/** The parameters that were used to request this page. */
- fun params(): HrisCompanyPayStatementItemRuleListParams = params
+ fun params(): HrisPayStatementItemRuleListParams = params
/** The response that this page was parsed from. */
- fun response(): HrisCompanyPayStatementItemRuleListPageResponse = response
+ fun response(): HrisPayStatementItemRuleListPageResponse = response
fun toBuilder() = Builder().from(this)
@@ -54,7 +53,7 @@ private constructor(
/**
* Returns a mutable builder for constructing an instance of
- * [HrisCompanyPayStatementItemRuleListPageAsync].
+ * [HrisPayStatementItemRuleListPageAsync].
*
* The following fields are required:
* ```java
@@ -67,24 +66,22 @@ private constructor(
@JvmStatic fun builder() = Builder()
}
- /** A builder for [HrisCompanyPayStatementItemRuleListPageAsync]. */
+ /** A builder for [HrisPayStatementItemRuleListPageAsync]. */
class Builder internal constructor() {
private var service: RuleServiceAsync? = null
private var streamHandlerExecutor: Executor? = null
- private var params: HrisCompanyPayStatementItemRuleListParams? = null
- private var response: HrisCompanyPayStatementItemRuleListPageResponse? = null
+ private var params: HrisPayStatementItemRuleListParams? = null
+ private var response: HrisPayStatementItemRuleListPageResponse? = null
@JvmSynthetic
internal fun from(
- hrisCompanyPayStatementItemRuleListPageAsync:
- HrisCompanyPayStatementItemRuleListPageAsync
+ hrisPayStatementItemRuleListPageAsync: HrisPayStatementItemRuleListPageAsync
) = apply {
- service = hrisCompanyPayStatementItemRuleListPageAsync.service
- streamHandlerExecutor =
- hrisCompanyPayStatementItemRuleListPageAsync.streamHandlerExecutor
- params = hrisCompanyPayStatementItemRuleListPageAsync.params
- response = hrisCompanyPayStatementItemRuleListPageAsync.response
+ service = hrisPayStatementItemRuleListPageAsync.service
+ streamHandlerExecutor = hrisPayStatementItemRuleListPageAsync.streamHandlerExecutor
+ params = hrisPayStatementItemRuleListPageAsync.params
+ response = hrisPayStatementItemRuleListPageAsync.response
}
fun service(service: RuleServiceAsync) = apply { this.service = service }
@@ -94,17 +91,15 @@ private constructor(
}
/** The parameters that were used to request this page. */
- fun params(params: HrisCompanyPayStatementItemRuleListParams) = apply {
- this.params = params
- }
+ fun params(params: HrisPayStatementItemRuleListParams) = apply { this.params = params }
/** The response that this page was parsed from. */
- fun response(response: HrisCompanyPayStatementItemRuleListPageResponse) = apply {
+ fun response(response: HrisPayStatementItemRuleListPageResponse) = apply {
this.response = response
}
/**
- * Returns an immutable instance of [HrisCompanyPayStatementItemRuleListPageAsync].
+ * Returns an immutable instance of [HrisPayStatementItemRuleListPageAsync].
*
* Further updates to this [Builder] will not mutate the returned instance.
*
@@ -118,8 +113,8 @@ private constructor(
*
* @throws IllegalStateException if any required field is unset.
*/
- fun build(): HrisCompanyPayStatementItemRuleListPageAsync =
- HrisCompanyPayStatementItemRuleListPageAsync(
+ fun build(): HrisPayStatementItemRuleListPageAsync =
+ HrisPayStatementItemRuleListPageAsync(
checkRequired("service", service),
checkRequired("streamHandlerExecutor", streamHandlerExecutor),
checkRequired("params", params),
@@ -132,7 +127,7 @@ private constructor(
return true
}
- return other is HrisCompanyPayStatementItemRuleListPageAsync &&
+ return other is HrisPayStatementItemRuleListPageAsync &&
service == other.service &&
streamHandlerExecutor == other.streamHandlerExecutor &&
params == other.params &&
@@ -142,5 +137,5 @@ private constructor(
override fun hashCode(): Int = Objects.hash(service, streamHandlerExecutor, params, response)
override fun toString() =
- "HrisCompanyPayStatementItemRuleListPageAsync{service=$service, streamHandlerExecutor=$streamHandlerExecutor, params=$params, response=$response}"
+ "HrisPayStatementItemRuleListPageAsync{service=$service, streamHandlerExecutor=$streamHandlerExecutor, params=$params, response=$response}"
}
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemRuleListPageResponse.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementItemRuleListPageResponse.kt
similarity index 86%
rename from finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemRuleListPageResponse.kt
rename to finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementItemRuleListPageResponse.kt
index f80d78965..32a610be6 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemRuleListPageResponse.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementItemRuleListPageResponse.kt
@@ -18,7 +18,7 @@ import java.util.Collections
import java.util.Objects
import kotlin.jvm.optionals.getOrNull
-class HrisCompanyPayStatementItemRuleListPageResponse
+class HrisPayStatementItemRuleListPageResponse
@JsonCreator(mode = JsonCreator.Mode.DISABLED)
private constructor(
private val responses: JsonField>,
@@ -63,7 +63,7 @@ private constructor(
/**
* Returns a mutable builder for constructing an instance of
- * [HrisCompanyPayStatementItemRuleListPageResponse].
+ * [HrisPayStatementItemRuleListPageResponse].
*
* The following fields are required:
* ```java
@@ -73,7 +73,7 @@ private constructor(
@JvmStatic fun builder() = Builder()
}
- /** A builder for [HrisCompanyPayStatementItemRuleListPageResponse]. */
+ /** A builder for [HrisPayStatementItemRuleListPageResponse]. */
class Builder internal constructor() {
private var responses: JsonField>? = null
@@ -81,13 +81,12 @@ private constructor(
@JvmSynthetic
internal fun from(
- hrisCompanyPayStatementItemRuleListPageResponse:
- HrisCompanyPayStatementItemRuleListPageResponse
+ hrisPayStatementItemRuleListPageResponse: HrisPayStatementItemRuleListPageResponse
) = apply {
responses =
- hrisCompanyPayStatementItemRuleListPageResponse.responses.map { it.toMutableList() }
+ hrisPayStatementItemRuleListPageResponse.responses.map { it.toMutableList() }
additionalProperties =
- hrisCompanyPayStatementItemRuleListPageResponse.additionalProperties.toMutableMap()
+ hrisPayStatementItemRuleListPageResponse.additionalProperties.toMutableMap()
}
fun responses(responses: List) = responses(JsonField.of(responses))
@@ -135,7 +134,7 @@ private constructor(
}
/**
- * Returns an immutable instance of [HrisCompanyPayStatementItemRuleListPageResponse].
+ * Returns an immutable instance of [HrisPayStatementItemRuleListPageResponse].
*
* Further updates to this [Builder] will not mutate the returned instance.
*
@@ -146,8 +145,8 @@ private constructor(
*
* @throws IllegalStateException if any required field is unset.
*/
- fun build(): HrisCompanyPayStatementItemRuleListPageResponse =
- HrisCompanyPayStatementItemRuleListPageResponse(
+ fun build(): HrisPayStatementItemRuleListPageResponse =
+ HrisPayStatementItemRuleListPageResponse(
checkRequired("responses", responses).map { it.toImmutable() },
additionalProperties.toMutableMap(),
)
@@ -163,7 +162,7 @@ private constructor(
* @throws FinchInvalidDataException if any value type in this object doesn't match its expected
* type.
*/
- fun validate(): HrisCompanyPayStatementItemRuleListPageResponse = apply {
+ fun validate(): HrisPayStatementItemRuleListPageResponse = apply {
if (validated) {
return@apply
}
@@ -194,7 +193,7 @@ private constructor(
return true
}
- return other is HrisCompanyPayStatementItemRuleListPageResponse &&
+ return other is HrisPayStatementItemRuleListPageResponse &&
responses == other.responses &&
additionalProperties == other.additionalProperties
}
@@ -204,5 +203,5 @@ private constructor(
override fun hashCode(): Int = hashCode
override fun toString() =
- "HrisCompanyPayStatementItemRuleListPageResponse{responses=$responses, additionalProperties=$additionalProperties}"
+ "HrisPayStatementItemRuleListPageResponse{responses=$responses, additionalProperties=$additionalProperties}"
}
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemRuleListParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementItemRuleListParams.kt
similarity index 85%
rename from finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemRuleListParams.kt
rename to finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementItemRuleListParams.kt
index 3e56fa319..e4c3ff2be 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemRuleListParams.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementItemRuleListParams.kt
@@ -11,7 +11,7 @@ import java.util.Optional
import kotlin.jvm.optionals.getOrNull
/** List all rules of a connection account. */
-class HrisCompanyPayStatementItemRuleListParams
+class HrisPayStatementItemRuleListParams
private constructor(
private val entityIds: List?,
private val additionalHeaders: Headers,
@@ -31,16 +31,16 @@ private constructor(
companion object {
- @JvmStatic fun none(): HrisCompanyPayStatementItemRuleListParams = builder().build()
+ @JvmStatic fun none(): HrisPayStatementItemRuleListParams = builder().build()
/**
* Returns a mutable builder for constructing an instance of
- * [HrisCompanyPayStatementItemRuleListParams].
+ * [HrisPayStatementItemRuleListParams].
*/
@JvmStatic fun builder() = Builder()
}
- /** A builder for [HrisCompanyPayStatementItemRuleListParams]. */
+ /** A builder for [HrisPayStatementItemRuleListParams]. */
class Builder internal constructor() {
private var entityIds: MutableList? = null
@@ -48,15 +48,13 @@ private constructor(
private var additionalQueryParams: QueryParams.Builder = QueryParams.builder()
@JvmSynthetic
- internal fun from(
- hrisCompanyPayStatementItemRuleListParams: HrisCompanyPayStatementItemRuleListParams
- ) = apply {
- entityIds = hrisCompanyPayStatementItemRuleListParams.entityIds?.toMutableList()
- additionalHeaders =
- hrisCompanyPayStatementItemRuleListParams.additionalHeaders.toBuilder()
- additionalQueryParams =
- hrisCompanyPayStatementItemRuleListParams.additionalQueryParams.toBuilder()
- }
+ internal fun from(hrisPayStatementItemRuleListParams: HrisPayStatementItemRuleListParams) =
+ apply {
+ entityIds = hrisPayStatementItemRuleListParams.entityIds?.toMutableList()
+ additionalHeaders = hrisPayStatementItemRuleListParams.additionalHeaders.toBuilder()
+ additionalQueryParams =
+ hrisPayStatementItemRuleListParams.additionalQueryParams.toBuilder()
+ }
/** The entity IDs to retrieve rules for. */
fun entityIds(entityIds: List?) = apply {
@@ -174,12 +172,12 @@ private constructor(
}
/**
- * Returns an immutable instance of [HrisCompanyPayStatementItemRuleListParams].
+ * Returns an immutable instance of [HrisPayStatementItemRuleListParams].
*
* Further updates to this [Builder] will not mutate the returned instance.
*/
- fun build(): HrisCompanyPayStatementItemRuleListParams =
- HrisCompanyPayStatementItemRuleListParams(
+ fun build(): HrisPayStatementItemRuleListParams =
+ HrisPayStatementItemRuleListParams(
entityIds?.toImmutable(),
additionalHeaders.build(),
additionalQueryParams.build(),
@@ -201,7 +199,7 @@ private constructor(
return true
}
- return other is HrisCompanyPayStatementItemRuleListParams &&
+ return other is HrisPayStatementItemRuleListParams &&
entityIds == other.entityIds &&
additionalHeaders == other.additionalHeaders &&
additionalQueryParams == other.additionalQueryParams
@@ -210,5 +208,5 @@ private constructor(
override fun hashCode(): Int = Objects.hash(entityIds, additionalHeaders, additionalQueryParams)
override fun toString() =
- "HrisCompanyPayStatementItemRuleListParams{entityIds=$entityIds, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams}"
+ "HrisPayStatementItemRuleListParams{entityIds=$entityIds, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams}"
}
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemRuleUpdateParams.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementItemRuleUpdateParams.kt
similarity index 91%
rename from finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemRuleUpdateParams.kt
rename to finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementItemRuleUpdateParams.kt
index b75a20e03..8c9148259 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemRuleUpdateParams.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementItemRuleUpdateParams.kt
@@ -20,7 +20,7 @@ import java.util.Optional
import kotlin.jvm.optionals.getOrNull
/** Update a rule for a pay statement item. */
-class HrisCompanyPayStatementItemRuleUpdateParams
+class HrisPayStatementItemRuleUpdateParams
private constructor(
private val ruleId: String?,
private val entityIds: List?,
@@ -37,7 +37,7 @@ private constructor(
/**
* This arbitrary value can be deserialized into a custom type using the `convert` method:
* ```java
- * MyClass myObject = hrisCompanyPayStatementItemRuleUpdateParams.optionalProperty().convert(MyClass.class);
+ * MyClass myObject = hrisPayStatementItemRuleUpdateParams.optionalProperty().convert(MyClass.class);
* ```
*/
fun _optionalProperty(): JsonValue = body._optionalProperty()
@@ -54,16 +54,16 @@ private constructor(
companion object {
- @JvmStatic fun none(): HrisCompanyPayStatementItemRuleUpdateParams = builder().build()
+ @JvmStatic fun none(): HrisPayStatementItemRuleUpdateParams = builder().build()
/**
* Returns a mutable builder for constructing an instance of
- * [HrisCompanyPayStatementItemRuleUpdateParams].
+ * [HrisPayStatementItemRuleUpdateParams].
*/
@JvmStatic fun builder() = Builder()
}
- /** A builder for [HrisCompanyPayStatementItemRuleUpdateParams]. */
+ /** A builder for [HrisPayStatementItemRuleUpdateParams]. */
class Builder internal constructor() {
private var ruleId: String? = null
@@ -74,15 +74,14 @@ private constructor(
@JvmSynthetic
internal fun from(
- hrisCompanyPayStatementItemRuleUpdateParams: HrisCompanyPayStatementItemRuleUpdateParams
+ hrisPayStatementItemRuleUpdateParams: HrisPayStatementItemRuleUpdateParams
) = apply {
- ruleId = hrisCompanyPayStatementItemRuleUpdateParams.ruleId
- entityIds = hrisCompanyPayStatementItemRuleUpdateParams.entityIds?.toMutableList()
- body = hrisCompanyPayStatementItemRuleUpdateParams.body.toBuilder()
- additionalHeaders =
- hrisCompanyPayStatementItemRuleUpdateParams.additionalHeaders.toBuilder()
+ ruleId = hrisPayStatementItemRuleUpdateParams.ruleId
+ entityIds = hrisPayStatementItemRuleUpdateParams.entityIds?.toMutableList()
+ body = hrisPayStatementItemRuleUpdateParams.body.toBuilder()
+ additionalHeaders = hrisPayStatementItemRuleUpdateParams.additionalHeaders.toBuilder()
additionalQueryParams =
- hrisCompanyPayStatementItemRuleUpdateParams.additionalQueryParams.toBuilder()
+ hrisPayStatementItemRuleUpdateParams.additionalQueryParams.toBuilder()
}
fun ruleId(ruleId: String?) = apply { this.ruleId = ruleId }
@@ -238,12 +237,12 @@ private constructor(
}
/**
- * Returns an immutable instance of [HrisCompanyPayStatementItemRuleUpdateParams].
+ * Returns an immutable instance of [HrisPayStatementItemRuleUpdateParams].
*
* Further updates to this [Builder] will not mutate the returned instance.
*/
- fun build(): HrisCompanyPayStatementItemRuleUpdateParams =
- HrisCompanyPayStatementItemRuleUpdateParams(
+ fun build(): HrisPayStatementItemRuleUpdateParams =
+ HrisPayStatementItemRuleUpdateParams(
ruleId,
entityIds?.toImmutable(),
body.build(),
@@ -414,7 +413,7 @@ private constructor(
return true
}
- return other is HrisCompanyPayStatementItemRuleUpdateParams &&
+ return other is HrisPayStatementItemRuleUpdateParams &&
ruleId == other.ruleId &&
entityIds == other.entityIds &&
body == other.body &&
@@ -426,5 +425,5 @@ private constructor(
Objects.hash(ruleId, entityIds, body, additionalHeaders, additionalQueryParams)
override fun toString() =
- "HrisCompanyPayStatementItemRuleUpdateParams{ruleId=$ruleId, entityIds=$entityIds, body=$body, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams}"
+ "HrisPayStatementItemRuleUpdateParams{ruleId=$ruleId, entityIds=$entityIds, body=$body, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams}"
}
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/HrisServiceAsync.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/HrisServiceAsync.kt
index 0093242bf..2d5464fca 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/HrisServiceAsync.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/HrisServiceAsync.kt
@@ -9,6 +9,7 @@ import com.tryfinch.api.services.async.hris.DirectoryServiceAsync
import com.tryfinch.api.services.async.hris.DocumentServiceAsync
import com.tryfinch.api.services.async.hris.EmploymentServiceAsync
import com.tryfinch.api.services.async.hris.IndividualServiceAsync
+import com.tryfinch.api.services.async.hris.PayStatementItemServiceAsync
import com.tryfinch.api.services.async.hris.PayStatementServiceAsync
import com.tryfinch.api.services.async.hris.PaymentServiceAsync
import java.util.function.Consumer
@@ -29,6 +30,8 @@ interface HrisServiceAsync {
fun company(): CompanyServiceAsync
+ fun payStatementItem(): PayStatementItemServiceAsync
+
fun directory(): DirectoryServiceAsync
fun individuals(): IndividualServiceAsync
@@ -55,6 +58,8 @@ interface HrisServiceAsync {
fun company(): CompanyServiceAsync.WithRawResponse
+ fun payStatementItem(): PayStatementItemServiceAsync.WithRawResponse
+
fun directory(): DirectoryServiceAsync.WithRawResponse
fun individuals(): IndividualServiceAsync.WithRawResponse
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 afccc63ce..8e12bcabd 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
@@ -15,6 +15,8 @@ import com.tryfinch.api.services.async.hris.EmploymentServiceAsync
import com.tryfinch.api.services.async.hris.EmploymentServiceAsyncImpl
import com.tryfinch.api.services.async.hris.IndividualServiceAsync
import com.tryfinch.api.services.async.hris.IndividualServiceAsyncImpl
+import com.tryfinch.api.services.async.hris.PayStatementItemServiceAsync
+import com.tryfinch.api.services.async.hris.PayStatementItemServiceAsyncImpl
import com.tryfinch.api.services.async.hris.PayStatementServiceAsync
import com.tryfinch.api.services.async.hris.PayStatementServiceAsyncImpl
import com.tryfinch.api.services.async.hris.PaymentServiceAsync
@@ -30,6 +32,10 @@ class HrisServiceAsyncImpl internal constructor(private val clientOptions: Clien
private val company: CompanyServiceAsync by lazy { CompanyServiceAsyncImpl(clientOptions) }
+ private val payStatementItem: PayStatementItemServiceAsync by lazy {
+ PayStatementItemServiceAsyncImpl(clientOptions)
+ }
+
private val directory: DirectoryServiceAsync by lazy {
DirectoryServiceAsyncImpl(clientOptions)
}
@@ -59,6 +65,8 @@ class HrisServiceAsyncImpl internal constructor(private val clientOptions: Clien
override fun company(): CompanyServiceAsync = company
+ override fun payStatementItem(): PayStatementItemServiceAsync = payStatementItem
+
override fun directory(): DirectoryServiceAsync = directory
override fun individuals(): IndividualServiceAsync = individuals
@@ -80,6 +88,10 @@ class HrisServiceAsyncImpl internal constructor(private val clientOptions: Clien
CompanyServiceAsyncImpl.WithRawResponseImpl(clientOptions)
}
+ private val payStatementItem: PayStatementItemServiceAsync.WithRawResponse by lazy {
+ PayStatementItemServiceAsyncImpl.WithRawResponseImpl(clientOptions)
+ }
+
private val directory: DirectoryServiceAsync.WithRawResponse by lazy {
DirectoryServiceAsyncImpl.WithRawResponseImpl(clientOptions)
}
@@ -117,6 +129,9 @@ class HrisServiceAsyncImpl internal constructor(private val clientOptions: Clien
override fun company(): CompanyServiceAsync.WithRawResponse = company
+ override fun payStatementItem(): PayStatementItemServiceAsync.WithRawResponse =
+ payStatementItem
+
override fun directory(): DirectoryServiceAsync.WithRawResponse = directory
override fun individuals(): IndividualServiceAsync.WithRawResponse = individuals
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 051498a69..5bae265e1 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
@@ -7,7 +7,6 @@ import com.tryfinch.api.core.RequestOptions
import com.tryfinch.api.core.http.HttpResponseFor
import com.tryfinch.api.models.Company
import com.tryfinch.api.models.HrisCompanyRetrieveParams
-import com.tryfinch.api.services.async.hris.company.PayStatementItemServiceAsync
import java.util.concurrent.CompletableFuture
import java.util.function.Consumer
@@ -25,8 +24,6 @@ interface CompanyServiceAsync {
*/
fun withOptions(modifier: Consumer): CompanyServiceAsync
- fun payStatementItem(): PayStatementItemServiceAsync
-
/** Read basic company data */
fun retrieve(): CompletableFuture = retrieve(HrisCompanyRetrieveParams.none())
@@ -59,8 +56,6 @@ interface CompanyServiceAsync {
modifier: Consumer
): CompanyServiceAsync.WithRawResponse
- fun payStatementItem(): PayStatementItemServiceAsync.WithRawResponse
-
/**
* Returns a raw HTTP response for `get /employer/company`, but is otherwise the same as
* [CompanyServiceAsync.retrieve].
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 625ab9155..a56e0de96 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
@@ -17,8 +17,6 @@ import com.tryfinch.api.core.http.parseable
import com.tryfinch.api.core.prepareAsync
import com.tryfinch.api.models.Company
import com.tryfinch.api.models.HrisCompanyRetrieveParams
-import com.tryfinch.api.services.async.hris.company.PayStatementItemServiceAsync
-import com.tryfinch.api.services.async.hris.company.PayStatementItemServiceAsyncImpl
import java.util.concurrent.CompletableFuture
import java.util.function.Consumer
@@ -29,17 +27,11 @@ class CompanyServiceAsyncImpl internal constructor(private val clientOptions: Cl
WithRawResponseImpl(clientOptions)
}
- private val payStatementItem: PayStatementItemServiceAsync by lazy {
- PayStatementItemServiceAsyncImpl(clientOptions)
- }
-
override fun withRawResponse(): CompanyServiceAsync.WithRawResponse = withRawResponse
override fun withOptions(modifier: Consumer): CompanyServiceAsync =
CompanyServiceAsyncImpl(clientOptions.toBuilder().apply(modifier::accept).build())
- override fun payStatementItem(): PayStatementItemServiceAsync = payStatementItem
-
override fun retrieve(
params: HrisCompanyRetrieveParams,
requestOptions: RequestOptions,
@@ -53,10 +45,6 @@ class CompanyServiceAsyncImpl internal constructor(private val clientOptions: Cl
private val errorHandler: Handler =
errorHandler(errorBodyHandler(clientOptions.jsonMapper))
- private val payStatementItem: PayStatementItemServiceAsync.WithRawResponse by lazy {
- PayStatementItemServiceAsyncImpl.WithRawResponseImpl(clientOptions)
- }
-
override fun withOptions(
modifier: Consumer
): CompanyServiceAsync.WithRawResponse =
@@ -64,9 +52,6 @@ class CompanyServiceAsyncImpl internal constructor(private val clientOptions: Cl
clientOptions.toBuilder().apply(modifier::accept).build()
)
- override fun payStatementItem(): PayStatementItemServiceAsync.WithRawResponse =
- payStatementItem
-
private val retrieveHandler: Handler =
jsonHandler(clientOptions.jsonMapper)
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/company/PayStatementItemServiceAsync.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/PayStatementItemServiceAsync.kt
similarity index 53%
rename from finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/company/PayStatementItemServiceAsync.kt
rename to finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/PayStatementItemServiceAsync.kt
index 2d8aa91e9..ee036078f 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/company/PayStatementItemServiceAsync.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/PayStatementItemServiceAsync.kt
@@ -1,13 +1,13 @@
// File generated from our OpenAPI spec by Stainless.
-package com.tryfinch.api.services.async.hris.company
+package com.tryfinch.api.services.async.hris
import com.tryfinch.api.core.ClientOptions
import com.tryfinch.api.core.RequestOptions
import com.tryfinch.api.core.http.HttpResponseFor
-import com.tryfinch.api.models.HrisCompanyPayStatementItemListPageAsync
-import com.tryfinch.api.models.HrisCompanyPayStatementItemListParams
-import com.tryfinch.api.services.async.hris.company.payStatementItem.RuleServiceAsync
+import com.tryfinch.api.models.HrisPayStatementItemListPageAsync
+import com.tryfinch.api.models.HrisPayStatementItemListParams
+import com.tryfinch.api.services.async.hris.payStatementItem.RuleServiceAsync
import java.util.concurrent.CompletableFuture
import java.util.function.Consumer
@@ -30,27 +30,23 @@ interface PayStatementItemServiceAsync {
/**
* Retrieve a list of detailed pay statement items for the access token's connection account.
*/
- fun list(): CompletableFuture =
- list(HrisCompanyPayStatementItemListParams.none())
+ fun list(): CompletableFuture =
+ list(HrisPayStatementItemListParams.none())
/** @see list */
fun list(
- params: HrisCompanyPayStatementItemListParams =
- HrisCompanyPayStatementItemListParams.none(),
+ params: HrisPayStatementItemListParams = HrisPayStatementItemListParams.none(),
requestOptions: RequestOptions = RequestOptions.none(),
- ): CompletableFuture
+ ): CompletableFuture
/** @see list */
fun list(
- params: HrisCompanyPayStatementItemListParams = HrisCompanyPayStatementItemListParams.none()
- ): CompletableFuture =
- list(params, RequestOptions.none())
+ params: HrisPayStatementItemListParams = HrisPayStatementItemListParams.none()
+ ): CompletableFuture = list(params, RequestOptions.none())
/** @see list */
- fun list(
- requestOptions: RequestOptions
- ): CompletableFuture =
- list(HrisCompanyPayStatementItemListParams.none(), requestOptions)
+ fun list(requestOptions: RequestOptions): CompletableFuture =
+ list(HrisPayStatementItemListParams.none(), requestOptions)
/**
* A view of [PayStatementItemServiceAsync] that provides access to raw HTTP responses for each
@@ -73,27 +69,25 @@ interface PayStatementItemServiceAsync {
* Returns a raw HTTP response for `get /employer/pay-statement-item`, but is otherwise the
* same as [PayStatementItemServiceAsync.list].
*/
- fun list(): CompletableFuture> =
- list(HrisCompanyPayStatementItemListParams.none())
+ fun list(): CompletableFuture> =
+ list(HrisPayStatementItemListParams.none())
/** @see list */
fun list(
- params: HrisCompanyPayStatementItemListParams =
- HrisCompanyPayStatementItemListParams.none(),
+ params: HrisPayStatementItemListParams = HrisPayStatementItemListParams.none(),
requestOptions: RequestOptions = RequestOptions.none(),
- ): CompletableFuture>
+ ): CompletableFuture>
/** @see list */
fun list(
- params: HrisCompanyPayStatementItemListParams =
- HrisCompanyPayStatementItemListParams.none()
- ): CompletableFuture> =
+ params: HrisPayStatementItemListParams = HrisPayStatementItemListParams.none()
+ ): CompletableFuture> =
list(params, RequestOptions.none())
/** @see list */
fun list(
requestOptions: RequestOptions
- ): CompletableFuture> =
- list(HrisCompanyPayStatementItemListParams.none(), requestOptions)
+ ): CompletableFuture> =
+ list(HrisPayStatementItemListParams.none(), requestOptions)
}
}
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/company/PayStatementItemServiceAsyncImpl.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/PayStatementItemServiceAsyncImpl.kt
similarity index 80%
rename from finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/company/PayStatementItemServiceAsyncImpl.kt
rename to finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/PayStatementItemServiceAsyncImpl.kt
index 896b0943f..de74309ad 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/company/PayStatementItemServiceAsyncImpl.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/PayStatementItemServiceAsyncImpl.kt
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package com.tryfinch.api.services.async.hris.company
+package com.tryfinch.api.services.async.hris
import com.tryfinch.api.core.ClientOptions
import com.tryfinch.api.core.RequestOptions
@@ -15,11 +15,11 @@ import com.tryfinch.api.core.http.HttpResponse.Handler
import com.tryfinch.api.core.http.HttpResponseFor
import com.tryfinch.api.core.http.parseable
import com.tryfinch.api.core.prepareAsync
-import com.tryfinch.api.models.HrisCompanyPayStatementItemListPageAsync
-import com.tryfinch.api.models.HrisCompanyPayStatementItemListPageResponse
-import com.tryfinch.api.models.HrisCompanyPayStatementItemListParams
-import com.tryfinch.api.services.async.hris.company.payStatementItem.RuleServiceAsync
-import com.tryfinch.api.services.async.hris.company.payStatementItem.RuleServiceAsyncImpl
+import com.tryfinch.api.models.HrisPayStatementItemListPageAsync
+import com.tryfinch.api.models.HrisPayStatementItemListPageResponse
+import com.tryfinch.api.models.HrisPayStatementItemListParams
+import com.tryfinch.api.services.async.hris.payStatementItem.RuleServiceAsync
+import com.tryfinch.api.services.async.hris.payStatementItem.RuleServiceAsyncImpl
import java.util.concurrent.CompletableFuture
import java.util.function.Consumer
@@ -42,9 +42,9 @@ internal constructor(private val clientOptions: ClientOptions) : PayStatementIte
override fun rules(): RuleServiceAsync = rules
override fun list(
- params: HrisCompanyPayStatementItemListParams,
+ params: HrisPayStatementItemListParams,
requestOptions: RequestOptions,
- ): CompletableFuture =
+ ): CompletableFuture =
// get /employer/pay-statement-item
withRawResponse().list(params, requestOptions).thenApply { it.parse() }
@@ -67,13 +67,13 @@ internal constructor(private val clientOptions: ClientOptions) : PayStatementIte
override fun rules(): RuleServiceAsync.WithRawResponse = rules
- private val listHandler: Handler =
- jsonHandler(clientOptions.jsonMapper)
+ private val listHandler: Handler =
+ jsonHandler(clientOptions.jsonMapper)
override fun list(
- params: HrisCompanyPayStatementItemListParams,
+ params: HrisPayStatementItemListParams,
requestOptions: RequestOptions,
- ): CompletableFuture> {
+ ): CompletableFuture> {
val request =
HttpRequest.builder()
.method(HttpMethod.GET)
@@ -98,7 +98,7 @@ internal constructor(private val clientOptions: ClientOptions) : PayStatementIte
}
}
.let {
- HrisCompanyPayStatementItemListPageAsync.builder()
+ HrisPayStatementItemListPageAsync.builder()
.service(PayStatementItemServiceAsyncImpl(clientOptions))
.streamHandlerExecutor(clientOptions.streamHandlerExecutor)
.params(params)
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/company/payStatementItem/RuleServiceAsync.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/payStatementItem/RuleServiceAsync.kt
similarity index 61%
rename from finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/company/payStatementItem/RuleServiceAsync.kt
rename to finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/payStatementItem/RuleServiceAsync.kt
index 5c9a97464..a10b66552 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/company/payStatementItem/RuleServiceAsync.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/payStatementItem/RuleServiceAsync.kt
@@ -1,15 +1,15 @@
// File generated from our OpenAPI spec by Stainless.
-package com.tryfinch.api.services.async.hris.company.payStatementItem
+package com.tryfinch.api.services.async.hris.payStatementItem
import com.tryfinch.api.core.ClientOptions
import com.tryfinch.api.core.RequestOptions
import com.tryfinch.api.core.http.HttpResponseFor
-import com.tryfinch.api.models.HrisCompanyPayStatementItemRuleCreateParams
-import com.tryfinch.api.models.HrisCompanyPayStatementItemRuleDeleteParams
-import com.tryfinch.api.models.HrisCompanyPayStatementItemRuleListPageAsync
-import com.tryfinch.api.models.HrisCompanyPayStatementItemRuleListParams
-import com.tryfinch.api.models.HrisCompanyPayStatementItemRuleUpdateParams
+import com.tryfinch.api.models.HrisPayStatementItemRuleCreateParams
+import com.tryfinch.api.models.HrisPayStatementItemRuleDeleteParams
+import com.tryfinch.api.models.HrisPayStatementItemRuleListPageAsync
+import com.tryfinch.api.models.HrisPayStatementItemRuleListParams
+import com.tryfinch.api.models.HrisPayStatementItemRuleUpdateParams
import com.tryfinch.api.models.RuleCreateResponse
import com.tryfinch.api.models.RuleDeleteResponse
import com.tryfinch.api.models.RuleUpdateResponse
@@ -37,34 +37,31 @@ interface RuleServiceAsync {
* available.
*/
fun create(): CompletableFuture =
- create(HrisCompanyPayStatementItemRuleCreateParams.none())
+ create(HrisPayStatementItemRuleCreateParams.none())
/** @see create */
fun create(
- params: HrisCompanyPayStatementItemRuleCreateParams =
- HrisCompanyPayStatementItemRuleCreateParams.none(),
+ params: HrisPayStatementItemRuleCreateParams = HrisPayStatementItemRuleCreateParams.none(),
requestOptions: RequestOptions = RequestOptions.none(),
): CompletableFuture
/** @see create */
fun create(
- params: HrisCompanyPayStatementItemRuleCreateParams =
- HrisCompanyPayStatementItemRuleCreateParams.none()
+ params: HrisPayStatementItemRuleCreateParams = HrisPayStatementItemRuleCreateParams.none()
): CompletableFuture = create(params, RequestOptions.none())
/** @see create */
fun create(requestOptions: RequestOptions): CompletableFuture =
- create(HrisCompanyPayStatementItemRuleCreateParams.none(), requestOptions)
+ create(HrisPayStatementItemRuleCreateParams.none(), requestOptions)
/** Update a rule for a pay statement item. */
fun update(ruleId: String): CompletableFuture =
- update(ruleId, HrisCompanyPayStatementItemRuleUpdateParams.none())
+ update(ruleId, HrisPayStatementItemRuleUpdateParams.none())
/** @see update */
fun update(
ruleId: String,
- params: HrisCompanyPayStatementItemRuleUpdateParams =
- HrisCompanyPayStatementItemRuleUpdateParams.none(),
+ params: HrisPayStatementItemRuleUpdateParams = HrisPayStatementItemRuleUpdateParams.none(),
requestOptions: RequestOptions = RequestOptions.none(),
): CompletableFuture =
update(params.toBuilder().ruleId(ruleId).build(), requestOptions)
@@ -72,19 +69,18 @@ interface RuleServiceAsync {
/** @see update */
fun update(
ruleId: String,
- params: HrisCompanyPayStatementItemRuleUpdateParams =
- HrisCompanyPayStatementItemRuleUpdateParams.none(),
+ params: HrisPayStatementItemRuleUpdateParams = HrisPayStatementItemRuleUpdateParams.none(),
): CompletableFuture = update(ruleId, params, RequestOptions.none())
/** @see update */
fun update(
- params: HrisCompanyPayStatementItemRuleUpdateParams,
+ params: HrisPayStatementItemRuleUpdateParams,
requestOptions: RequestOptions = RequestOptions.none(),
): CompletableFuture
/** @see update */
fun update(
- params: HrisCompanyPayStatementItemRuleUpdateParams
+ params: HrisPayStatementItemRuleUpdateParams
): CompletableFuture = update(params, RequestOptions.none())
/** @see update */
@@ -92,41 +88,38 @@ interface RuleServiceAsync {
ruleId: String,
requestOptions: RequestOptions,
): CompletableFuture =
- update(ruleId, HrisCompanyPayStatementItemRuleUpdateParams.none(), requestOptions)
+ update(ruleId, HrisPayStatementItemRuleUpdateParams.none(), requestOptions)
/** List all rules of a connection account. */
- fun list(): CompletableFuture =
- list(HrisCompanyPayStatementItemRuleListParams.none())
+ fun list(): CompletableFuture =
+ list(HrisPayStatementItemRuleListParams.none())
/** @see list */
fun list(
- params: HrisCompanyPayStatementItemRuleListParams =
- HrisCompanyPayStatementItemRuleListParams.none(),
+ params: HrisPayStatementItemRuleListParams = HrisPayStatementItemRuleListParams.none(),
requestOptions: RequestOptions = RequestOptions.none(),
- ): CompletableFuture
+ ): CompletableFuture
/** @see list */
fun list(
- params: HrisCompanyPayStatementItemRuleListParams =
- HrisCompanyPayStatementItemRuleListParams.none()
- ): CompletableFuture =
+ params: HrisPayStatementItemRuleListParams = HrisPayStatementItemRuleListParams.none()
+ ): CompletableFuture =
list(params, RequestOptions.none())
/** @see list */
fun list(
requestOptions: RequestOptions
- ): CompletableFuture =
- list(HrisCompanyPayStatementItemRuleListParams.none(), requestOptions)
+ ): CompletableFuture =
+ list(HrisPayStatementItemRuleListParams.none(), requestOptions)
/** Delete a rule for a pay statement item. */
fun delete(ruleId: String): CompletableFuture =
- delete(ruleId, HrisCompanyPayStatementItemRuleDeleteParams.none())
+ delete(ruleId, HrisPayStatementItemRuleDeleteParams.none())
/** @see delete */
fun delete(
ruleId: String,
- params: HrisCompanyPayStatementItemRuleDeleteParams =
- HrisCompanyPayStatementItemRuleDeleteParams.none(),
+ params: HrisPayStatementItemRuleDeleteParams = HrisPayStatementItemRuleDeleteParams.none(),
requestOptions: RequestOptions = RequestOptions.none(),
): CompletableFuture =
delete(params.toBuilder().ruleId(ruleId).build(), requestOptions)
@@ -134,19 +127,18 @@ interface RuleServiceAsync {
/** @see delete */
fun delete(
ruleId: String,
- params: HrisCompanyPayStatementItemRuleDeleteParams =
- HrisCompanyPayStatementItemRuleDeleteParams.none(),
+ params: HrisPayStatementItemRuleDeleteParams = HrisPayStatementItemRuleDeleteParams.none(),
): CompletableFuture = delete(ruleId, params, RequestOptions.none())
/** @see delete */
fun delete(
- params: HrisCompanyPayStatementItemRuleDeleteParams,
+ params: HrisPayStatementItemRuleDeleteParams,
requestOptions: RequestOptions = RequestOptions.none(),
): CompletableFuture
/** @see delete */
fun delete(
- params: HrisCompanyPayStatementItemRuleDeleteParams
+ params: HrisPayStatementItemRuleDeleteParams
): CompletableFuture = delete(params, RequestOptions.none())
/** @see delete */
@@ -154,7 +146,7 @@ interface RuleServiceAsync {
ruleId: String,
requestOptions: RequestOptions,
): CompletableFuture =
- delete(ruleId, HrisCompanyPayStatementItemRuleDeleteParams.none(), requestOptions)
+ delete(ruleId, HrisPayStatementItemRuleDeleteParams.none(), requestOptions)
/** A view of [RuleServiceAsync] that provides access to raw HTTP responses for each method. */
interface WithRawResponse {
@@ -171,19 +163,19 @@ interface RuleServiceAsync {
* otherwise the same as [RuleServiceAsync.create].
*/
fun create(): CompletableFuture> =
- create(HrisCompanyPayStatementItemRuleCreateParams.none())
+ create(HrisPayStatementItemRuleCreateParams.none())
/** @see create */
fun create(
- params: HrisCompanyPayStatementItemRuleCreateParams =
- HrisCompanyPayStatementItemRuleCreateParams.none(),
+ params: HrisPayStatementItemRuleCreateParams =
+ HrisPayStatementItemRuleCreateParams.none(),
requestOptions: RequestOptions = RequestOptions.none(),
): CompletableFuture>
/** @see create */
fun create(
- params: HrisCompanyPayStatementItemRuleCreateParams =
- HrisCompanyPayStatementItemRuleCreateParams.none()
+ params: HrisPayStatementItemRuleCreateParams =
+ HrisPayStatementItemRuleCreateParams.none()
): CompletableFuture> =
create(params, RequestOptions.none())
@@ -191,20 +183,20 @@ interface RuleServiceAsync {
fun create(
requestOptions: RequestOptions
): CompletableFuture> =
- create(HrisCompanyPayStatementItemRuleCreateParams.none(), requestOptions)
+ create(HrisPayStatementItemRuleCreateParams.none(), requestOptions)
/**
* Returns a raw HTTP response for `put /employer/pay-statement-item/rule/{rule_id}`, but is
* otherwise the same as [RuleServiceAsync.update].
*/
fun update(ruleId: String): CompletableFuture> =
- update(ruleId, HrisCompanyPayStatementItemRuleUpdateParams.none())
+ update(ruleId, HrisPayStatementItemRuleUpdateParams.none())
/** @see update */
fun update(
ruleId: String,
- params: HrisCompanyPayStatementItemRuleUpdateParams =
- HrisCompanyPayStatementItemRuleUpdateParams.none(),
+ params: HrisPayStatementItemRuleUpdateParams =
+ HrisPayStatementItemRuleUpdateParams.none(),
requestOptions: RequestOptions = RequestOptions.none(),
): CompletableFuture> =
update(params.toBuilder().ruleId(ruleId).build(), requestOptions)
@@ -212,20 +204,20 @@ interface RuleServiceAsync {
/** @see update */
fun update(
ruleId: String,
- params: HrisCompanyPayStatementItemRuleUpdateParams =
- HrisCompanyPayStatementItemRuleUpdateParams.none(),
+ params: HrisPayStatementItemRuleUpdateParams =
+ HrisPayStatementItemRuleUpdateParams.none(),
): CompletableFuture> =
update(ruleId, params, RequestOptions.none())
/** @see update */
fun update(
- params: HrisCompanyPayStatementItemRuleUpdateParams,
+ params: HrisPayStatementItemRuleUpdateParams,
requestOptions: RequestOptions = RequestOptions.none(),
): CompletableFuture>
/** @see update */
fun update(
- params: HrisCompanyPayStatementItemRuleUpdateParams
+ params: HrisPayStatementItemRuleUpdateParams
): CompletableFuture> =
update(params, RequestOptions.none())
@@ -234,48 +226,45 @@ interface RuleServiceAsync {
ruleId: String,
requestOptions: RequestOptions,
): CompletableFuture> =
- update(ruleId, HrisCompanyPayStatementItemRuleUpdateParams.none(), requestOptions)
+ update(ruleId, HrisPayStatementItemRuleUpdateParams.none(), requestOptions)
/**
* Returns a raw HTTP response for `get /employer/pay-statement-item/rule`, but is otherwise
* the same as [RuleServiceAsync.list].
*/
- fun list():
- CompletableFuture> =
- list(HrisCompanyPayStatementItemRuleListParams.none())
+ fun list(): CompletableFuture> =
+ list(HrisPayStatementItemRuleListParams.none())
/** @see list */
fun list(
- params: HrisCompanyPayStatementItemRuleListParams =
- HrisCompanyPayStatementItemRuleListParams.none(),
+ params: HrisPayStatementItemRuleListParams = HrisPayStatementItemRuleListParams.none(),
requestOptions: RequestOptions = RequestOptions.none(),
- ): CompletableFuture>
+ ): CompletableFuture>
/** @see list */
fun list(
- params: HrisCompanyPayStatementItemRuleListParams =
- HrisCompanyPayStatementItemRuleListParams.none()
- ): CompletableFuture> =
+ params: HrisPayStatementItemRuleListParams = HrisPayStatementItemRuleListParams.none()
+ ): CompletableFuture> =
list(params, RequestOptions.none())
/** @see list */
fun list(
requestOptions: RequestOptions
- ): CompletableFuture> =
- list(HrisCompanyPayStatementItemRuleListParams.none(), requestOptions)
+ ): CompletableFuture> =
+ list(HrisPayStatementItemRuleListParams.none(), requestOptions)
/**
* Returns a raw HTTP response for `delete /employer/pay-statement-item/rule/{rule_id}`, but
* is otherwise the same as [RuleServiceAsync.delete].
*/
fun delete(ruleId: String): CompletableFuture> =
- delete(ruleId, HrisCompanyPayStatementItemRuleDeleteParams.none())
+ delete(ruleId, HrisPayStatementItemRuleDeleteParams.none())
/** @see delete */
fun delete(
ruleId: String,
- params: HrisCompanyPayStatementItemRuleDeleteParams =
- HrisCompanyPayStatementItemRuleDeleteParams.none(),
+ params: HrisPayStatementItemRuleDeleteParams =
+ HrisPayStatementItemRuleDeleteParams.none(),
requestOptions: RequestOptions = RequestOptions.none(),
): CompletableFuture> =
delete(params.toBuilder().ruleId(ruleId).build(), requestOptions)
@@ -283,20 +272,20 @@ interface RuleServiceAsync {
/** @see delete */
fun delete(
ruleId: String,
- params: HrisCompanyPayStatementItemRuleDeleteParams =
- HrisCompanyPayStatementItemRuleDeleteParams.none(),
+ params: HrisPayStatementItemRuleDeleteParams =
+ HrisPayStatementItemRuleDeleteParams.none(),
): CompletableFuture> =
delete(ruleId, params, RequestOptions.none())
/** @see delete */
fun delete(
- params: HrisCompanyPayStatementItemRuleDeleteParams,
+ params: HrisPayStatementItemRuleDeleteParams,
requestOptions: RequestOptions = RequestOptions.none(),
): CompletableFuture>
/** @see delete */
fun delete(
- params: HrisCompanyPayStatementItemRuleDeleteParams
+ params: HrisPayStatementItemRuleDeleteParams
): CompletableFuture> =
delete(params, RequestOptions.none())
@@ -305,6 +294,6 @@ interface RuleServiceAsync {
ruleId: String,
requestOptions: RequestOptions,
): CompletableFuture> =
- delete(ruleId, HrisCompanyPayStatementItemRuleDeleteParams.none(), requestOptions)
+ delete(ruleId, HrisPayStatementItemRuleDeleteParams.none(), requestOptions)
}
}
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/company/payStatementItem/RuleServiceAsyncImpl.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/payStatementItem/RuleServiceAsyncImpl.kt
similarity index 86%
rename from finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/company/payStatementItem/RuleServiceAsyncImpl.kt
rename to finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/payStatementItem/RuleServiceAsyncImpl.kt
index d3a72353f..4679fd3c9 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/company/payStatementItem/RuleServiceAsyncImpl.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/async/hris/payStatementItem/RuleServiceAsyncImpl.kt
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package com.tryfinch.api.services.async.hris.company.payStatementItem
+package com.tryfinch.api.services.async.hris.payStatementItem
import com.tryfinch.api.core.ClientOptions
import com.tryfinch.api.core.RequestOptions
@@ -17,12 +17,12 @@ import com.tryfinch.api.core.http.HttpResponseFor
import com.tryfinch.api.core.http.json
import com.tryfinch.api.core.http.parseable
import com.tryfinch.api.core.prepareAsync
-import com.tryfinch.api.models.HrisCompanyPayStatementItemRuleCreateParams
-import com.tryfinch.api.models.HrisCompanyPayStatementItemRuleDeleteParams
-import com.tryfinch.api.models.HrisCompanyPayStatementItemRuleListPageAsync
-import com.tryfinch.api.models.HrisCompanyPayStatementItemRuleListPageResponse
-import com.tryfinch.api.models.HrisCompanyPayStatementItemRuleListParams
-import com.tryfinch.api.models.HrisCompanyPayStatementItemRuleUpdateParams
+import com.tryfinch.api.models.HrisPayStatementItemRuleCreateParams
+import com.tryfinch.api.models.HrisPayStatementItemRuleDeleteParams
+import com.tryfinch.api.models.HrisPayStatementItemRuleListPageAsync
+import com.tryfinch.api.models.HrisPayStatementItemRuleListPageResponse
+import com.tryfinch.api.models.HrisPayStatementItemRuleListParams
+import com.tryfinch.api.models.HrisPayStatementItemRuleUpdateParams
import com.tryfinch.api.models.RuleCreateResponse
import com.tryfinch.api.models.RuleDeleteResponse
import com.tryfinch.api.models.RuleUpdateResponse
@@ -43,28 +43,28 @@ class RuleServiceAsyncImpl internal constructor(private val clientOptions: Clien
RuleServiceAsyncImpl(clientOptions.toBuilder().apply(modifier::accept).build())
override fun create(
- params: HrisCompanyPayStatementItemRuleCreateParams,
+ params: HrisPayStatementItemRuleCreateParams,
requestOptions: RequestOptions,
): CompletableFuture =
// post /employer/pay-statement-item/rule
withRawResponse().create(params, requestOptions).thenApply { it.parse() }
override fun update(
- params: HrisCompanyPayStatementItemRuleUpdateParams,
+ params: HrisPayStatementItemRuleUpdateParams,
requestOptions: RequestOptions,
): CompletableFuture =
// put /employer/pay-statement-item/rule/{rule_id}
withRawResponse().update(params, requestOptions).thenApply { it.parse() }
override fun list(
- params: HrisCompanyPayStatementItemRuleListParams,
+ params: HrisPayStatementItemRuleListParams,
requestOptions: RequestOptions,
- ): CompletableFuture =
+ ): CompletableFuture =
// get /employer/pay-statement-item/rule
withRawResponse().list(params, requestOptions).thenApply { it.parse() }
override fun delete(
- params: HrisCompanyPayStatementItemRuleDeleteParams,
+ params: HrisPayStatementItemRuleDeleteParams,
requestOptions: RequestOptions,
): CompletableFuture =
// delete /employer/pay-statement-item/rule/{rule_id}
@@ -87,7 +87,7 @@ class RuleServiceAsyncImpl internal constructor(private val clientOptions: Clien
jsonHandler(clientOptions.jsonMapper)
override fun create(
- params: HrisCompanyPayStatementItemRuleCreateParams,
+ params: HrisPayStatementItemRuleCreateParams,
requestOptions: RequestOptions,
): CompletableFuture> {
val request =
@@ -122,7 +122,7 @@ class RuleServiceAsyncImpl internal constructor(private val clientOptions: Clien
jsonHandler(clientOptions.jsonMapper)
override fun update(
- params: HrisCompanyPayStatementItemRuleUpdateParams,
+ params: HrisPayStatementItemRuleUpdateParams,
requestOptions: RequestOptions,
): CompletableFuture> {
// We check here instead of in the params builder because this can be specified
@@ -156,13 +156,13 @@ class RuleServiceAsyncImpl internal constructor(private val clientOptions: Clien
}
}
- private val listHandler: Handler =
- jsonHandler(clientOptions.jsonMapper)
+ private val listHandler: Handler =
+ jsonHandler(clientOptions.jsonMapper)
override fun list(
- params: HrisCompanyPayStatementItemRuleListParams,
+ params: HrisPayStatementItemRuleListParams,
requestOptions: RequestOptions,
- ): CompletableFuture> {
+ ): CompletableFuture> {
val request =
HttpRequest.builder()
.method(HttpMethod.GET)
@@ -187,7 +187,7 @@ class RuleServiceAsyncImpl internal constructor(private val clientOptions: Clien
}
}
.let {
- HrisCompanyPayStatementItemRuleListPageAsync.builder()
+ HrisPayStatementItemRuleListPageAsync.builder()
.service(RuleServiceAsyncImpl(clientOptions))
.streamHandlerExecutor(clientOptions.streamHandlerExecutor)
.params(params)
@@ -202,7 +202,7 @@ class RuleServiceAsyncImpl internal constructor(private val clientOptions: Clien
jsonHandler(clientOptions.jsonMapper)
override fun delete(
- params: HrisCompanyPayStatementItemRuleDeleteParams,
+ params: HrisPayStatementItemRuleDeleteParams,
requestOptions: RequestOptions,
): CompletableFuture> {
// We check here instead of in the params builder because this can be specified
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/HrisService.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/HrisService.kt
index b8fc7d38d..3f5cb9b34 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/HrisService.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/HrisService.kt
@@ -9,6 +9,7 @@ import com.tryfinch.api.services.blocking.hris.DirectoryService
import com.tryfinch.api.services.blocking.hris.DocumentService
import com.tryfinch.api.services.blocking.hris.EmploymentService
import com.tryfinch.api.services.blocking.hris.IndividualService
+import com.tryfinch.api.services.blocking.hris.PayStatementItemService
import com.tryfinch.api.services.blocking.hris.PayStatementService
import com.tryfinch.api.services.blocking.hris.PaymentService
import java.util.function.Consumer
@@ -29,6 +30,8 @@ interface HrisService {
fun company(): CompanyService
+ fun payStatementItem(): PayStatementItemService
+
fun directory(): DirectoryService
fun individuals(): IndividualService
@@ -55,6 +58,8 @@ interface HrisService {
fun company(): CompanyService.WithRawResponse
+ fun payStatementItem(): PayStatementItemService.WithRawResponse
+
fun directory(): DirectoryService.WithRawResponse
fun individuals(): IndividualService.WithRawResponse
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 0ace050bf..a006ab960 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
@@ -15,6 +15,8 @@ import com.tryfinch.api.services.blocking.hris.EmploymentService
import com.tryfinch.api.services.blocking.hris.EmploymentServiceImpl
import com.tryfinch.api.services.blocking.hris.IndividualService
import com.tryfinch.api.services.blocking.hris.IndividualServiceImpl
+import com.tryfinch.api.services.blocking.hris.PayStatementItemService
+import com.tryfinch.api.services.blocking.hris.PayStatementItemServiceImpl
import com.tryfinch.api.services.blocking.hris.PayStatementService
import com.tryfinch.api.services.blocking.hris.PayStatementServiceImpl
import com.tryfinch.api.services.blocking.hris.PaymentService
@@ -29,6 +31,10 @@ class HrisServiceImpl internal constructor(private val clientOptions: ClientOpti
private val company: CompanyService by lazy { CompanyServiceImpl(clientOptions) }
+ private val payStatementItem: PayStatementItemService by lazy {
+ PayStatementItemServiceImpl(clientOptions)
+ }
+
private val directory: DirectoryService by lazy { DirectoryServiceImpl(clientOptions) }
private val individuals: IndividualService by lazy { IndividualServiceImpl(clientOptions) }
@@ -52,6 +58,8 @@ class HrisServiceImpl internal constructor(private val clientOptions: ClientOpti
override fun company(): CompanyService = company
+ override fun payStatementItem(): PayStatementItemService = payStatementItem
+
override fun directory(): DirectoryService = directory
override fun individuals(): IndividualService = individuals
@@ -73,6 +81,10 @@ class HrisServiceImpl internal constructor(private val clientOptions: ClientOpti
CompanyServiceImpl.WithRawResponseImpl(clientOptions)
}
+ private val payStatementItem: PayStatementItemService.WithRawResponse by lazy {
+ PayStatementItemServiceImpl.WithRawResponseImpl(clientOptions)
+ }
+
private val directory: DirectoryService.WithRawResponse by lazy {
DirectoryServiceImpl.WithRawResponseImpl(clientOptions)
}
@@ -110,6 +122,8 @@ class HrisServiceImpl internal constructor(private val clientOptions: ClientOpti
override fun company(): CompanyService.WithRawResponse = company
+ override fun payStatementItem(): PayStatementItemService.WithRawResponse = payStatementItem
+
override fun directory(): DirectoryService.WithRawResponse = directory
override fun individuals(): IndividualService.WithRawResponse = individuals
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 eeed98c1e..fde188f1e 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
@@ -8,7 +8,6 @@ import com.tryfinch.api.core.RequestOptions
import com.tryfinch.api.core.http.HttpResponseFor
import com.tryfinch.api.models.Company
import com.tryfinch.api.models.HrisCompanyRetrieveParams
-import com.tryfinch.api.services.blocking.hris.company.PayStatementItemService
import java.util.function.Consumer
interface CompanyService {
@@ -25,8 +24,6 @@ interface CompanyService {
*/
fun withOptions(modifier: Consumer): CompanyService
- fun payStatementItem(): PayStatementItemService
-
/** Read basic company data */
fun retrieve(): Company = retrieve(HrisCompanyRetrieveParams.none())
@@ -54,8 +51,6 @@ interface CompanyService {
*/
fun withOptions(modifier: Consumer): CompanyService.WithRawResponse
- fun payStatementItem(): PayStatementItemService.WithRawResponse
-
/**
* Returns a raw HTTP response for `get /employer/company`, but is otherwise the same as
* [CompanyService.retrieve].
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 5ea58bc6d..3cec644ef 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
@@ -17,8 +17,6 @@ import com.tryfinch.api.core.http.parseable
import com.tryfinch.api.core.prepare
import com.tryfinch.api.models.Company
import com.tryfinch.api.models.HrisCompanyRetrieveParams
-import com.tryfinch.api.services.blocking.hris.company.PayStatementItemService
-import com.tryfinch.api.services.blocking.hris.company.PayStatementItemServiceImpl
import java.util.function.Consumer
class CompanyServiceImpl internal constructor(private val clientOptions: ClientOptions) :
@@ -28,17 +26,11 @@ class CompanyServiceImpl internal constructor(private val clientOptions: ClientO
WithRawResponseImpl(clientOptions)
}
- private val payStatementItem: PayStatementItemService by lazy {
- PayStatementItemServiceImpl(clientOptions)
- }
-
override fun withRawResponse(): CompanyService.WithRawResponse = withRawResponse
override fun withOptions(modifier: Consumer): CompanyService =
CompanyServiceImpl(clientOptions.toBuilder().apply(modifier::accept).build())
- override fun payStatementItem(): PayStatementItemService = payStatementItem
-
override fun retrieve(
params: HrisCompanyRetrieveParams,
requestOptions: RequestOptions,
@@ -52,10 +44,6 @@ class CompanyServiceImpl internal constructor(private val clientOptions: ClientO
private val errorHandler: Handler =
errorHandler(errorBodyHandler(clientOptions.jsonMapper))
- private val payStatementItem: PayStatementItemService.WithRawResponse by lazy {
- PayStatementItemServiceImpl.WithRawResponseImpl(clientOptions)
- }
-
override fun withOptions(
modifier: Consumer
): CompanyService.WithRawResponse =
@@ -63,8 +51,6 @@ class CompanyServiceImpl internal constructor(private val clientOptions: ClientO
clientOptions.toBuilder().apply(modifier::accept).build()
)
- override fun payStatementItem(): PayStatementItemService.WithRawResponse = payStatementItem
-
private val retrieveHandler: Handler =
jsonHandler(clientOptions.jsonMapper)
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/company/PayStatementItemService.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/PayStatementItemService.kt
similarity index 54%
rename from finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/company/PayStatementItemService.kt
rename to finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/PayStatementItemService.kt
index d99795e39..91c9462a9 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/company/PayStatementItemService.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/PayStatementItemService.kt
@@ -1,14 +1,14 @@
// File generated from our OpenAPI spec by Stainless.
-package com.tryfinch.api.services.blocking.hris.company
+package com.tryfinch.api.services.blocking.hris
import com.google.errorprone.annotations.MustBeClosed
import com.tryfinch.api.core.ClientOptions
import com.tryfinch.api.core.RequestOptions
import com.tryfinch.api.core.http.HttpResponseFor
-import com.tryfinch.api.models.HrisCompanyPayStatementItemListPage
-import com.tryfinch.api.models.HrisCompanyPayStatementItemListParams
-import com.tryfinch.api.services.blocking.hris.company.payStatementItem.RuleService
+import com.tryfinch.api.models.HrisPayStatementItemListPage
+import com.tryfinch.api.models.HrisPayStatementItemListParams
+import com.tryfinch.api.services.blocking.hris.payStatementItem.RuleService
import java.util.function.Consumer
interface PayStatementItemService {
@@ -30,24 +30,22 @@ interface PayStatementItemService {
/**
* Retrieve a list of detailed pay statement items for the access token's connection account.
*/
- fun list(): HrisCompanyPayStatementItemListPage =
- list(HrisCompanyPayStatementItemListParams.none())
+ fun list(): HrisPayStatementItemListPage = list(HrisPayStatementItemListParams.none())
/** @see list */
fun list(
- params: HrisCompanyPayStatementItemListParams =
- HrisCompanyPayStatementItemListParams.none(),
+ params: HrisPayStatementItemListParams = HrisPayStatementItemListParams.none(),
requestOptions: RequestOptions = RequestOptions.none(),
- ): HrisCompanyPayStatementItemListPage
+ ): HrisPayStatementItemListPage
/** @see list */
fun list(
- params: HrisCompanyPayStatementItemListParams = HrisCompanyPayStatementItemListParams.none()
- ): HrisCompanyPayStatementItemListPage = list(params, RequestOptions.none())
+ params: HrisPayStatementItemListParams = HrisPayStatementItemListParams.none()
+ ): HrisPayStatementItemListPage = list(params, RequestOptions.none())
/** @see list */
- fun list(requestOptions: RequestOptions): HrisCompanyPayStatementItemListPage =
- list(HrisCompanyPayStatementItemListParams.none(), requestOptions)
+ fun list(requestOptions: RequestOptions): HrisPayStatementItemListPage =
+ list(HrisPayStatementItemListParams.none(), requestOptions)
/**
* A view of [PayStatementItemService] that provides access to raw HTTP responses for each
@@ -71,30 +69,25 @@ interface PayStatementItemService {
* same as [PayStatementItemService.list].
*/
@MustBeClosed
- fun list(): HttpResponseFor =
- list(HrisCompanyPayStatementItemListParams.none())
+ fun list(): HttpResponseFor =
+ list(HrisPayStatementItemListParams.none())
/** @see list */
@MustBeClosed
fun list(
- params: HrisCompanyPayStatementItemListParams =
- HrisCompanyPayStatementItemListParams.none(),
+ params: HrisPayStatementItemListParams = HrisPayStatementItemListParams.none(),
requestOptions: RequestOptions = RequestOptions.none(),
- ): HttpResponseFor
+ ): HttpResponseFor
/** @see list */
@MustBeClosed
fun list(
- params: HrisCompanyPayStatementItemListParams =
- HrisCompanyPayStatementItemListParams.none()
- ): HttpResponseFor =
- list(params, RequestOptions.none())
+ params: HrisPayStatementItemListParams = HrisPayStatementItemListParams.none()
+ ): HttpResponseFor = list(params, RequestOptions.none())
/** @see list */
@MustBeClosed
- fun list(
- requestOptions: RequestOptions
- ): HttpResponseFor =
- list(HrisCompanyPayStatementItemListParams.none(), requestOptions)
+ fun list(requestOptions: RequestOptions): HttpResponseFor =
+ list(HrisPayStatementItemListParams.none(), requestOptions)
}
}
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/company/PayStatementItemServiceImpl.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/PayStatementItemServiceImpl.kt
similarity index 79%
rename from finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/company/PayStatementItemServiceImpl.kt
rename to finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/PayStatementItemServiceImpl.kt
index 5cc9916b3..06fed3875 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/company/PayStatementItemServiceImpl.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/PayStatementItemServiceImpl.kt
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package com.tryfinch.api.services.blocking.hris.company
+package com.tryfinch.api.services.blocking.hris
import com.tryfinch.api.core.ClientOptions
import com.tryfinch.api.core.RequestOptions
@@ -15,11 +15,11 @@ import com.tryfinch.api.core.http.HttpResponse.Handler
import com.tryfinch.api.core.http.HttpResponseFor
import com.tryfinch.api.core.http.parseable
import com.tryfinch.api.core.prepare
-import com.tryfinch.api.models.HrisCompanyPayStatementItemListPage
-import com.tryfinch.api.models.HrisCompanyPayStatementItemListPageResponse
-import com.tryfinch.api.models.HrisCompanyPayStatementItemListParams
-import com.tryfinch.api.services.blocking.hris.company.payStatementItem.RuleService
-import com.tryfinch.api.services.blocking.hris.company.payStatementItem.RuleServiceImpl
+import com.tryfinch.api.models.HrisPayStatementItemListPage
+import com.tryfinch.api.models.HrisPayStatementItemListPageResponse
+import com.tryfinch.api.models.HrisPayStatementItemListParams
+import com.tryfinch.api.services.blocking.hris.payStatementItem.RuleService
+import com.tryfinch.api.services.blocking.hris.payStatementItem.RuleServiceImpl
import java.util.function.Consumer
class PayStatementItemServiceImpl internal constructor(private val clientOptions: ClientOptions) :
@@ -39,9 +39,9 @@ class PayStatementItemServiceImpl internal constructor(private val clientOptions
override fun rules(): RuleService = rules
override fun list(
- params: HrisCompanyPayStatementItemListParams,
+ params: HrisPayStatementItemListParams,
requestOptions: RequestOptions,
- ): HrisCompanyPayStatementItemListPage =
+ ): HrisPayStatementItemListPage =
// get /employer/pay-statement-item
withRawResponse().list(params, requestOptions).parse()
@@ -64,13 +64,13 @@ class PayStatementItemServiceImpl internal constructor(private val clientOptions
override fun rules(): RuleService.WithRawResponse = rules
- private val listHandler: Handler =
- jsonHandler(clientOptions.jsonMapper)
+ private val listHandler: Handler =
+ jsonHandler(clientOptions.jsonMapper)
override fun list(
- params: HrisCompanyPayStatementItemListParams,
+ params: HrisPayStatementItemListParams,
requestOptions: RequestOptions,
- ): HttpResponseFor {
+ ): HttpResponseFor {
val request =
HttpRequest.builder()
.method(HttpMethod.GET)
@@ -93,7 +93,7 @@ class PayStatementItemServiceImpl internal constructor(private val clientOptions
}
}
.let {
- HrisCompanyPayStatementItemListPage.builder()
+ HrisPayStatementItemListPage.builder()
.service(PayStatementItemServiceImpl(clientOptions))
.params(params)
.response(it)
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/company/payStatementItem/RuleService.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/payStatementItem/RuleService.kt
similarity index 60%
rename from finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/company/payStatementItem/RuleService.kt
rename to finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/payStatementItem/RuleService.kt
index 6e08f61e4..19b2eee6e 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/company/payStatementItem/RuleService.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/payStatementItem/RuleService.kt
@@ -1,16 +1,16 @@
// File generated from our OpenAPI spec by Stainless.
-package com.tryfinch.api.services.blocking.hris.company.payStatementItem
+package com.tryfinch.api.services.blocking.hris.payStatementItem
import com.google.errorprone.annotations.MustBeClosed
import com.tryfinch.api.core.ClientOptions
import com.tryfinch.api.core.RequestOptions
import com.tryfinch.api.core.http.HttpResponseFor
-import com.tryfinch.api.models.HrisCompanyPayStatementItemRuleCreateParams
-import com.tryfinch.api.models.HrisCompanyPayStatementItemRuleDeleteParams
-import com.tryfinch.api.models.HrisCompanyPayStatementItemRuleListPage
-import com.tryfinch.api.models.HrisCompanyPayStatementItemRuleListParams
-import com.tryfinch.api.models.HrisCompanyPayStatementItemRuleUpdateParams
+import com.tryfinch.api.models.HrisPayStatementItemRuleCreateParams
+import com.tryfinch.api.models.HrisPayStatementItemRuleDeleteParams
+import com.tryfinch.api.models.HrisPayStatementItemRuleListPage
+import com.tryfinch.api.models.HrisPayStatementItemRuleListParams
+import com.tryfinch.api.models.HrisPayStatementItemRuleUpdateParams
import com.tryfinch.api.models.RuleCreateResponse
import com.tryfinch.api.models.RuleDeleteResponse
import com.tryfinch.api.models.RuleUpdateResponse
@@ -36,111 +36,102 @@ interface RuleService {
* as a pre-tax 401k. This metadata can be retrieved where pay statement item information is
* available.
*/
- fun create(): RuleCreateResponse = create(HrisCompanyPayStatementItemRuleCreateParams.none())
+ fun create(): RuleCreateResponse = create(HrisPayStatementItemRuleCreateParams.none())
/** @see create */
fun create(
- params: HrisCompanyPayStatementItemRuleCreateParams =
- HrisCompanyPayStatementItemRuleCreateParams.none(),
+ params: HrisPayStatementItemRuleCreateParams = HrisPayStatementItemRuleCreateParams.none(),
requestOptions: RequestOptions = RequestOptions.none(),
): RuleCreateResponse
/** @see create */
fun create(
- params: HrisCompanyPayStatementItemRuleCreateParams =
- HrisCompanyPayStatementItemRuleCreateParams.none()
+ params: HrisPayStatementItemRuleCreateParams = HrisPayStatementItemRuleCreateParams.none()
): RuleCreateResponse = create(params, RequestOptions.none())
/** @see create */
fun create(requestOptions: RequestOptions): RuleCreateResponse =
- create(HrisCompanyPayStatementItemRuleCreateParams.none(), requestOptions)
+ create(HrisPayStatementItemRuleCreateParams.none(), requestOptions)
/** Update a rule for a pay statement item. */
fun update(ruleId: String): RuleUpdateResponse =
- update(ruleId, HrisCompanyPayStatementItemRuleUpdateParams.none())
+ update(ruleId, HrisPayStatementItemRuleUpdateParams.none())
/** @see update */
fun update(
ruleId: String,
- params: HrisCompanyPayStatementItemRuleUpdateParams =
- HrisCompanyPayStatementItemRuleUpdateParams.none(),
+ params: HrisPayStatementItemRuleUpdateParams = HrisPayStatementItemRuleUpdateParams.none(),
requestOptions: RequestOptions = RequestOptions.none(),
): RuleUpdateResponse = update(params.toBuilder().ruleId(ruleId).build(), requestOptions)
/** @see update */
fun update(
ruleId: String,
- params: HrisCompanyPayStatementItemRuleUpdateParams =
- HrisCompanyPayStatementItemRuleUpdateParams.none(),
+ params: HrisPayStatementItemRuleUpdateParams = HrisPayStatementItemRuleUpdateParams.none(),
): RuleUpdateResponse = update(ruleId, params, RequestOptions.none())
/** @see update */
fun update(
- params: HrisCompanyPayStatementItemRuleUpdateParams,
+ params: HrisPayStatementItemRuleUpdateParams,
requestOptions: RequestOptions = RequestOptions.none(),
): RuleUpdateResponse
/** @see update */
- fun update(params: HrisCompanyPayStatementItemRuleUpdateParams): RuleUpdateResponse =
+ fun update(params: HrisPayStatementItemRuleUpdateParams): RuleUpdateResponse =
update(params, RequestOptions.none())
/** @see update */
fun update(ruleId: String, requestOptions: RequestOptions): RuleUpdateResponse =
- update(ruleId, HrisCompanyPayStatementItemRuleUpdateParams.none(), requestOptions)
+ update(ruleId, HrisPayStatementItemRuleUpdateParams.none(), requestOptions)
/** List all rules of a connection account. */
- fun list(): HrisCompanyPayStatementItemRuleListPage =
- list(HrisCompanyPayStatementItemRuleListParams.none())
+ fun list(): HrisPayStatementItemRuleListPage = list(HrisPayStatementItemRuleListParams.none())
/** @see list */
fun list(
- params: HrisCompanyPayStatementItemRuleListParams =
- HrisCompanyPayStatementItemRuleListParams.none(),
+ params: HrisPayStatementItemRuleListParams = HrisPayStatementItemRuleListParams.none(),
requestOptions: RequestOptions = RequestOptions.none(),
- ): HrisCompanyPayStatementItemRuleListPage
+ ): HrisPayStatementItemRuleListPage
/** @see list */
fun list(
- params: HrisCompanyPayStatementItemRuleListParams =
- HrisCompanyPayStatementItemRuleListParams.none()
- ): HrisCompanyPayStatementItemRuleListPage = list(params, RequestOptions.none())
+ params: HrisPayStatementItemRuleListParams = HrisPayStatementItemRuleListParams.none()
+ ): HrisPayStatementItemRuleListPage = list(params, RequestOptions.none())
/** @see list */
- fun list(requestOptions: RequestOptions): HrisCompanyPayStatementItemRuleListPage =
- list(HrisCompanyPayStatementItemRuleListParams.none(), requestOptions)
+ fun list(requestOptions: RequestOptions): HrisPayStatementItemRuleListPage =
+ list(HrisPayStatementItemRuleListParams.none(), requestOptions)
/** Delete a rule for a pay statement item. */
fun delete(ruleId: String): RuleDeleteResponse =
- delete(ruleId, HrisCompanyPayStatementItemRuleDeleteParams.none())
+ delete(ruleId, HrisPayStatementItemRuleDeleteParams.none())
/** @see delete */
fun delete(
ruleId: String,
- params: HrisCompanyPayStatementItemRuleDeleteParams =
- HrisCompanyPayStatementItemRuleDeleteParams.none(),
+ params: HrisPayStatementItemRuleDeleteParams = HrisPayStatementItemRuleDeleteParams.none(),
requestOptions: RequestOptions = RequestOptions.none(),
): RuleDeleteResponse = delete(params.toBuilder().ruleId(ruleId).build(), requestOptions)
/** @see delete */
fun delete(
ruleId: String,
- params: HrisCompanyPayStatementItemRuleDeleteParams =
- HrisCompanyPayStatementItemRuleDeleteParams.none(),
+ params: HrisPayStatementItemRuleDeleteParams = HrisPayStatementItemRuleDeleteParams.none(),
): RuleDeleteResponse = delete(ruleId, params, RequestOptions.none())
/** @see delete */
fun delete(
- params: HrisCompanyPayStatementItemRuleDeleteParams,
+ params: HrisPayStatementItemRuleDeleteParams,
requestOptions: RequestOptions = RequestOptions.none(),
): RuleDeleteResponse
/** @see delete */
- fun delete(params: HrisCompanyPayStatementItemRuleDeleteParams): RuleDeleteResponse =
+ fun delete(params: HrisPayStatementItemRuleDeleteParams): RuleDeleteResponse =
delete(params, RequestOptions.none())
/** @see delete */
fun delete(ruleId: String, requestOptions: RequestOptions): RuleDeleteResponse =
- delete(ruleId, HrisCompanyPayStatementItemRuleDeleteParams.none(), requestOptions)
+ delete(ruleId, HrisPayStatementItemRuleDeleteParams.none(), requestOptions)
/** A view of [RuleService] that provides access to raw HTTP responses for each method. */
interface WithRawResponse {
@@ -158,27 +149,27 @@ interface RuleService {
*/
@MustBeClosed
fun create(): HttpResponseFor =
- create(HrisCompanyPayStatementItemRuleCreateParams.none())
+ create(HrisPayStatementItemRuleCreateParams.none())
/** @see create */
@MustBeClosed
fun create(
- params: HrisCompanyPayStatementItemRuleCreateParams =
- HrisCompanyPayStatementItemRuleCreateParams.none(),
+ params: HrisPayStatementItemRuleCreateParams =
+ HrisPayStatementItemRuleCreateParams.none(),
requestOptions: RequestOptions = RequestOptions.none(),
): HttpResponseFor
/** @see create */
@MustBeClosed
fun create(
- params: HrisCompanyPayStatementItemRuleCreateParams =
- HrisCompanyPayStatementItemRuleCreateParams.none()
+ params: HrisPayStatementItemRuleCreateParams =
+ HrisPayStatementItemRuleCreateParams.none()
): HttpResponseFor = create(params, RequestOptions.none())
/** @see create */
@MustBeClosed
fun create(requestOptions: RequestOptions): HttpResponseFor =
- create(HrisCompanyPayStatementItemRuleCreateParams.none(), requestOptions)
+ create(HrisPayStatementItemRuleCreateParams.none(), requestOptions)
/**
* Returns a raw HTTP response for `put /employer/pay-statement-item/rule/{rule_id}`, but is
@@ -186,14 +177,14 @@ interface RuleService {
*/
@MustBeClosed
fun update(ruleId: String): HttpResponseFor =
- update(ruleId, HrisCompanyPayStatementItemRuleUpdateParams.none())
+ update(ruleId, HrisPayStatementItemRuleUpdateParams.none())
/** @see update */
@MustBeClosed
fun update(
ruleId: String,
- params: HrisCompanyPayStatementItemRuleUpdateParams =
- HrisCompanyPayStatementItemRuleUpdateParams.none(),
+ params: HrisPayStatementItemRuleUpdateParams =
+ HrisPayStatementItemRuleUpdateParams.none(),
requestOptions: RequestOptions = RequestOptions.none(),
): HttpResponseFor =
update(params.toBuilder().ruleId(ruleId).build(), requestOptions)
@@ -202,21 +193,21 @@ interface RuleService {
@MustBeClosed
fun update(
ruleId: String,
- params: HrisCompanyPayStatementItemRuleUpdateParams =
- HrisCompanyPayStatementItemRuleUpdateParams.none(),
+ params: HrisPayStatementItemRuleUpdateParams =
+ HrisPayStatementItemRuleUpdateParams.none(),
): HttpResponseFor = update(ruleId, params, RequestOptions.none())
/** @see update */
@MustBeClosed
fun update(
- params: HrisCompanyPayStatementItemRuleUpdateParams,
+ params: HrisPayStatementItemRuleUpdateParams,
requestOptions: RequestOptions = RequestOptions.none(),
): HttpResponseFor
/** @see update */
@MustBeClosed
fun update(
- params: HrisCompanyPayStatementItemRuleUpdateParams
+ params: HrisPayStatementItemRuleUpdateParams
): HttpResponseFor = update(params, RequestOptions.none())
/** @see update */
@@ -225,38 +216,35 @@ interface RuleService {
ruleId: String,
requestOptions: RequestOptions,
): HttpResponseFor =
- update(ruleId, HrisCompanyPayStatementItemRuleUpdateParams.none(), requestOptions)
+ update(ruleId, HrisPayStatementItemRuleUpdateParams.none(), requestOptions)
/**
* Returns a raw HTTP response for `get /employer/pay-statement-item/rule`, but is otherwise
* the same as [RuleService.list].
*/
@MustBeClosed
- fun list(): HttpResponseFor =
- list(HrisCompanyPayStatementItemRuleListParams.none())
+ fun list(): HttpResponseFor =
+ list(HrisPayStatementItemRuleListParams.none())
/** @see list */
@MustBeClosed
fun list(
- params: HrisCompanyPayStatementItemRuleListParams =
- HrisCompanyPayStatementItemRuleListParams.none(),
+ params: HrisPayStatementItemRuleListParams = HrisPayStatementItemRuleListParams.none(),
requestOptions: RequestOptions = RequestOptions.none(),
- ): HttpResponseFor
+ ): HttpResponseFor
/** @see list */
@MustBeClosed
fun list(
- params: HrisCompanyPayStatementItemRuleListParams =
- HrisCompanyPayStatementItemRuleListParams.none()
- ): HttpResponseFor =
- list(params, RequestOptions.none())
+ params: HrisPayStatementItemRuleListParams = HrisPayStatementItemRuleListParams.none()
+ ): HttpResponseFor = list(params, RequestOptions.none())
/** @see list */
@MustBeClosed
fun list(
requestOptions: RequestOptions
- ): HttpResponseFor =
- list(HrisCompanyPayStatementItemRuleListParams.none(), requestOptions)
+ ): HttpResponseFor =
+ list(HrisPayStatementItemRuleListParams.none(), requestOptions)
/**
* Returns a raw HTTP response for `delete /employer/pay-statement-item/rule/{rule_id}`, but
@@ -264,14 +252,14 @@ interface RuleService {
*/
@MustBeClosed
fun delete(ruleId: String): HttpResponseFor =
- delete(ruleId, HrisCompanyPayStatementItemRuleDeleteParams.none())
+ delete(ruleId, HrisPayStatementItemRuleDeleteParams.none())
/** @see delete */
@MustBeClosed
fun delete(
ruleId: String,
- params: HrisCompanyPayStatementItemRuleDeleteParams =
- HrisCompanyPayStatementItemRuleDeleteParams.none(),
+ params: HrisPayStatementItemRuleDeleteParams =
+ HrisPayStatementItemRuleDeleteParams.none(),
requestOptions: RequestOptions = RequestOptions.none(),
): HttpResponseFor =
delete(params.toBuilder().ruleId(ruleId).build(), requestOptions)
@@ -280,21 +268,21 @@ interface RuleService {
@MustBeClosed
fun delete(
ruleId: String,
- params: HrisCompanyPayStatementItemRuleDeleteParams =
- HrisCompanyPayStatementItemRuleDeleteParams.none(),
+ params: HrisPayStatementItemRuleDeleteParams =
+ HrisPayStatementItemRuleDeleteParams.none(),
): HttpResponseFor = delete(ruleId, params, RequestOptions.none())
/** @see delete */
@MustBeClosed
fun delete(
- params: HrisCompanyPayStatementItemRuleDeleteParams,
+ params: HrisPayStatementItemRuleDeleteParams,
requestOptions: RequestOptions = RequestOptions.none(),
): HttpResponseFor
/** @see delete */
@MustBeClosed
fun delete(
- params: HrisCompanyPayStatementItemRuleDeleteParams
+ params: HrisPayStatementItemRuleDeleteParams
): HttpResponseFor = delete(params, RequestOptions.none())
/** @see delete */
@@ -303,6 +291,6 @@ interface RuleService {
ruleId: String,
requestOptions: RequestOptions,
): HttpResponseFor =
- delete(ruleId, HrisCompanyPayStatementItemRuleDeleteParams.none(), requestOptions)
+ delete(ruleId, HrisPayStatementItemRuleDeleteParams.none(), requestOptions)
}
}
diff --git a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/company/payStatementItem/RuleServiceImpl.kt b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/payStatementItem/RuleServiceImpl.kt
similarity index 85%
rename from finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/company/payStatementItem/RuleServiceImpl.kt
rename to finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/payStatementItem/RuleServiceImpl.kt
index 5c9d084ae..e18f41cbf 100644
--- a/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/company/payStatementItem/RuleServiceImpl.kt
+++ b/finch-java-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/payStatementItem/RuleServiceImpl.kt
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package com.tryfinch.api.services.blocking.hris.company.payStatementItem
+package com.tryfinch.api.services.blocking.hris.payStatementItem
import com.tryfinch.api.core.ClientOptions
import com.tryfinch.api.core.RequestOptions
@@ -17,12 +17,12 @@ import com.tryfinch.api.core.http.HttpResponseFor
import com.tryfinch.api.core.http.json
import com.tryfinch.api.core.http.parseable
import com.tryfinch.api.core.prepare
-import com.tryfinch.api.models.HrisCompanyPayStatementItemRuleCreateParams
-import com.tryfinch.api.models.HrisCompanyPayStatementItemRuleDeleteParams
-import com.tryfinch.api.models.HrisCompanyPayStatementItemRuleListPage
-import com.tryfinch.api.models.HrisCompanyPayStatementItemRuleListPageResponse
-import com.tryfinch.api.models.HrisCompanyPayStatementItemRuleListParams
-import com.tryfinch.api.models.HrisCompanyPayStatementItemRuleUpdateParams
+import com.tryfinch.api.models.HrisPayStatementItemRuleCreateParams
+import com.tryfinch.api.models.HrisPayStatementItemRuleDeleteParams
+import com.tryfinch.api.models.HrisPayStatementItemRuleListPage
+import com.tryfinch.api.models.HrisPayStatementItemRuleListPageResponse
+import com.tryfinch.api.models.HrisPayStatementItemRuleListParams
+import com.tryfinch.api.models.HrisPayStatementItemRuleUpdateParams
import com.tryfinch.api.models.RuleCreateResponse
import com.tryfinch.api.models.RuleDeleteResponse
import com.tryfinch.api.models.RuleUpdateResponse
@@ -41,28 +41,28 @@ class RuleServiceImpl internal constructor(private val clientOptions: ClientOpti
RuleServiceImpl(clientOptions.toBuilder().apply(modifier::accept).build())
override fun create(
- params: HrisCompanyPayStatementItemRuleCreateParams,
+ params: HrisPayStatementItemRuleCreateParams,
requestOptions: RequestOptions,
): RuleCreateResponse =
// post /employer/pay-statement-item/rule
withRawResponse().create(params, requestOptions).parse()
override fun update(
- params: HrisCompanyPayStatementItemRuleUpdateParams,
+ params: HrisPayStatementItemRuleUpdateParams,
requestOptions: RequestOptions,
): RuleUpdateResponse =
// put /employer/pay-statement-item/rule/{rule_id}
withRawResponse().update(params, requestOptions).parse()
override fun list(
- params: HrisCompanyPayStatementItemRuleListParams,
+ params: HrisPayStatementItemRuleListParams,
requestOptions: RequestOptions,
- ): HrisCompanyPayStatementItemRuleListPage =
+ ): HrisPayStatementItemRuleListPage =
// get /employer/pay-statement-item/rule
withRawResponse().list(params, requestOptions).parse()
override fun delete(
- params: HrisCompanyPayStatementItemRuleDeleteParams,
+ params: HrisPayStatementItemRuleDeleteParams,
requestOptions: RequestOptions,
): RuleDeleteResponse =
// delete /employer/pay-statement-item/rule/{rule_id}
@@ -85,7 +85,7 @@ class RuleServiceImpl internal constructor(private val clientOptions: ClientOpti
jsonHandler(clientOptions.jsonMapper)
override fun create(
- params: HrisCompanyPayStatementItemRuleCreateParams,
+ params: HrisPayStatementItemRuleCreateParams,
requestOptions: RequestOptions,
): HttpResponseFor {
val request =
@@ -117,7 +117,7 @@ class RuleServiceImpl internal constructor(private val clientOptions: ClientOpti
jsonHandler(clientOptions.jsonMapper)
override fun update(
- params: HrisCompanyPayStatementItemRuleUpdateParams,
+ params: HrisPayStatementItemRuleUpdateParams,
requestOptions: RequestOptions,
): HttpResponseFor {
// We check here instead of in the params builder because this can be specified
@@ -148,13 +148,13 @@ class RuleServiceImpl internal constructor(private val clientOptions: ClientOpti
}
}
- private val listHandler: Handler =
- jsonHandler(clientOptions.jsonMapper)
+ private val listHandler: Handler =
+ jsonHandler(clientOptions.jsonMapper)
override fun list(
- params: HrisCompanyPayStatementItemRuleListParams,
+ params: HrisPayStatementItemRuleListParams,
requestOptions: RequestOptions,
- ): HttpResponseFor {
+ ): HttpResponseFor {
val request =
HttpRequest.builder()
.method(HttpMethod.GET)
@@ -177,7 +177,7 @@ class RuleServiceImpl internal constructor(private val clientOptions: ClientOpti
}
}
.let {
- HrisCompanyPayStatementItemRuleListPage.builder()
+ HrisPayStatementItemRuleListPage.builder()
.service(RuleServiceImpl(clientOptions))
.params(params)
.response(it)
@@ -190,7 +190,7 @@ class RuleServiceImpl internal constructor(private val clientOptions: ClientOpti
jsonHandler(clientOptions.jsonMapper)
override fun delete(
- params: HrisCompanyPayStatementItemRuleDeleteParams,
+ params: HrisPayStatementItemRuleDeleteParams,
requestOptions: RequestOptions,
): HttpResponseFor {
// We check here instead of in the params builder because this can be specified
diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemListPageResponseTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisPayStatementItemListPageResponseTest.kt
similarity index 80%
rename from finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemListPageResponseTest.kt
rename to finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisPayStatementItemListPageResponseTest.kt
index aca870bd6..5288f7135 100644
--- a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemListPageResponseTest.kt
+++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisPayStatementItemListPageResponseTest.kt
@@ -8,12 +8,12 @@ import com.tryfinch.api.core.jsonMapper
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
-internal class HrisCompanyPayStatementItemListPageResponseTest {
+internal class HrisPayStatementItemListPageResponseTest {
@Test
fun create() {
- val hrisCompanyPayStatementItemListPageResponse =
- HrisCompanyPayStatementItemListPageResponse.builder()
+ val hrisPayStatementItemListPageResponse =
+ HrisPayStatementItemListPageResponse.builder()
.addResponse(
PayStatementItemListResponse.builder()
.attributes(
@@ -34,7 +34,7 @@ internal class HrisCompanyPayStatementItemListPageResponseTest {
)
.build()
- assertThat(hrisCompanyPayStatementItemListPageResponse.responses())
+ assertThat(hrisPayStatementItemListPageResponse.responses())
.containsExactly(
PayStatementItemListResponse.builder()
.attributes(
@@ -58,8 +58,8 @@ internal class HrisCompanyPayStatementItemListPageResponseTest {
@Test
fun roundtrip() {
val jsonMapper = jsonMapper()
- val hrisCompanyPayStatementItemListPageResponse =
- HrisCompanyPayStatementItemListPageResponse.builder()
+ val hrisPayStatementItemListPageResponse =
+ HrisPayStatementItemListPageResponse.builder()
.addResponse(
PayStatementItemListResponse.builder()
.attributes(
@@ -80,13 +80,13 @@ internal class HrisCompanyPayStatementItemListPageResponseTest {
)
.build()
- val roundtrippedHrisCompanyPayStatementItemListPageResponse =
+ val roundtrippedHrisPayStatementItemListPageResponse =
jsonMapper.readValue(
- jsonMapper.writeValueAsString(hrisCompanyPayStatementItemListPageResponse),
- jacksonTypeRef(),
+ jsonMapper.writeValueAsString(hrisPayStatementItemListPageResponse),
+ jacksonTypeRef(),
)
- assertThat(roundtrippedHrisCompanyPayStatementItemListPageResponse)
- .isEqualTo(hrisCompanyPayStatementItemListPageResponse)
+ assertThat(roundtrippedHrisPayStatementItemListPageResponse)
+ .isEqualTo(hrisPayStatementItemListPageResponse)
}
}
diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemListParamsTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisPayStatementItemListParamsTest.kt
similarity index 79%
rename from finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemListParamsTest.kt
rename to finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisPayStatementItemListParamsTest.kt
index 89f7a40a1..b3f711d40 100644
--- a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemListParamsTest.kt
+++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisPayStatementItemListParamsTest.kt
@@ -7,12 +7,12 @@ import java.time.LocalDate
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
-internal class HrisCompanyPayStatementItemListParamsTest {
+internal class HrisPayStatementItemListParamsTest {
@Test
fun create() {
- HrisCompanyPayStatementItemListParams.builder()
- .addCategory(HrisCompanyPayStatementItemListParams.Category.EARNINGS)
+ HrisPayStatementItemListParams.builder()
+ .addCategory(HrisPayStatementItemListParams.Category.EARNINGS)
.endDate(LocalDate.parse("2024-07-01"))
.addEntityId("550e8400-e29b-41d4-a716-446655440000")
.name("name")
@@ -24,8 +24,8 @@ internal class HrisCompanyPayStatementItemListParamsTest {
@Test
fun queryParams() {
val params =
- HrisCompanyPayStatementItemListParams.builder()
- .addCategory(HrisCompanyPayStatementItemListParams.Category.EARNINGS)
+ HrisPayStatementItemListParams.builder()
+ .addCategory(HrisPayStatementItemListParams.Category.EARNINGS)
.endDate(LocalDate.parse("2024-07-01"))
.addEntityId("550e8400-e29b-41d4-a716-446655440000")
.name("name")
@@ -50,7 +50,7 @@ internal class HrisCompanyPayStatementItemListParamsTest {
@Test
fun queryParamsWithoutOptionalFields() {
- val params = HrisCompanyPayStatementItemListParams.builder().build()
+ val params = HrisPayStatementItemListParams.builder().build()
val queryParams = params._queryParams()
diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemRuleCreateParamsTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisPayStatementItemRuleCreateParamsTest.kt
similarity index 58%
rename from finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemRuleCreateParamsTest.kt
rename to finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisPayStatementItemRuleCreateParamsTest.kt
index 887152951..a9ca91d30 100644
--- a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemRuleCreateParamsTest.kt
+++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisPayStatementItemRuleCreateParamsTest.kt
@@ -8,63 +8,58 @@ import kotlin.jvm.optionals.getOrNull
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
-internal class HrisCompanyPayStatementItemRuleCreateParamsTest {
+internal class HrisPayStatementItemRuleCreateParamsTest {
@Test
fun create() {
- HrisCompanyPayStatementItemRuleCreateParams.builder()
+ HrisPayStatementItemRuleCreateParams.builder()
.addEntityId("550e8400-e29b-41d4-a716-446655440000")
.attributes(
- HrisCompanyPayStatementItemRuleCreateParams.Attributes.builder()
+ HrisPayStatementItemRuleCreateParams.Attributes.builder()
.metadata(
- HrisCompanyPayStatementItemRuleCreateParams.Attributes.Metadata.builder()
+ HrisPayStatementItemRuleCreateParams.Attributes.Metadata.builder()
.putAdditionalProperty("foo", JsonValue.from("bar"))
.build()
)
.build()
)
.addCondition(
- HrisCompanyPayStatementItemRuleCreateParams.Condition.builder()
+ HrisPayStatementItemRuleCreateParams.Condition.builder()
.field("field")
- .operator(HrisCompanyPayStatementItemRuleCreateParams.Condition.Operator.EQUALS)
+ .operator(HrisPayStatementItemRuleCreateParams.Condition.Operator.EQUALS)
.value("value")
.build()
)
.effectiveEndDate("effective_end_date")
.effectiveStartDate("effective_start_date")
- .entityType(HrisCompanyPayStatementItemRuleCreateParams.EntityType.PAY_STATEMENT_ITEM)
+ .entityType(HrisPayStatementItemRuleCreateParams.EntityType.PAY_STATEMENT_ITEM)
.build()
}
@Test
fun queryParams() {
val params =
- HrisCompanyPayStatementItemRuleCreateParams.builder()
+ HrisPayStatementItemRuleCreateParams.builder()
.addEntityId("550e8400-e29b-41d4-a716-446655440000")
.attributes(
- HrisCompanyPayStatementItemRuleCreateParams.Attributes.builder()
+ HrisPayStatementItemRuleCreateParams.Attributes.builder()
.metadata(
- HrisCompanyPayStatementItemRuleCreateParams.Attributes.Metadata
- .builder()
+ HrisPayStatementItemRuleCreateParams.Attributes.Metadata.builder()
.putAdditionalProperty("foo", JsonValue.from("bar"))
.build()
)
.build()
)
.addCondition(
- HrisCompanyPayStatementItemRuleCreateParams.Condition.builder()
+ HrisPayStatementItemRuleCreateParams.Condition.builder()
.field("field")
- .operator(
- HrisCompanyPayStatementItemRuleCreateParams.Condition.Operator.EQUALS
- )
+ .operator(HrisPayStatementItemRuleCreateParams.Condition.Operator.EQUALS)
.value("value")
.build()
)
.effectiveEndDate("effective_end_date")
.effectiveStartDate("effective_start_date")
- .entityType(
- HrisCompanyPayStatementItemRuleCreateParams.EntityType.PAY_STATEMENT_ITEM
- )
+ .entityType(HrisPayStatementItemRuleCreateParams.EntityType.PAY_STATEMENT_ITEM)
.build()
val queryParams = params._queryParams()
@@ -79,7 +74,7 @@ internal class HrisCompanyPayStatementItemRuleCreateParamsTest {
@Test
fun queryParamsWithoutOptionalFields() {
- val params = HrisCompanyPayStatementItemRuleCreateParams.builder().build()
+ val params = HrisPayStatementItemRuleCreateParams.builder().build()
val queryParams = params._queryParams()
@@ -89,41 +84,36 @@ internal class HrisCompanyPayStatementItemRuleCreateParamsTest {
@Test
fun body() {
val params =
- HrisCompanyPayStatementItemRuleCreateParams.builder()
+ HrisPayStatementItemRuleCreateParams.builder()
.addEntityId("550e8400-e29b-41d4-a716-446655440000")
.attributes(
- HrisCompanyPayStatementItemRuleCreateParams.Attributes.builder()
+ HrisPayStatementItemRuleCreateParams.Attributes.builder()
.metadata(
- HrisCompanyPayStatementItemRuleCreateParams.Attributes.Metadata
- .builder()
+ HrisPayStatementItemRuleCreateParams.Attributes.Metadata.builder()
.putAdditionalProperty("foo", JsonValue.from("bar"))
.build()
)
.build()
)
.addCondition(
- HrisCompanyPayStatementItemRuleCreateParams.Condition.builder()
+ HrisPayStatementItemRuleCreateParams.Condition.builder()
.field("field")
- .operator(
- HrisCompanyPayStatementItemRuleCreateParams.Condition.Operator.EQUALS
- )
+ .operator(HrisPayStatementItemRuleCreateParams.Condition.Operator.EQUALS)
.value("value")
.build()
)
.effectiveEndDate("effective_end_date")
.effectiveStartDate("effective_start_date")
- .entityType(
- HrisCompanyPayStatementItemRuleCreateParams.EntityType.PAY_STATEMENT_ITEM
- )
+ .entityType(HrisPayStatementItemRuleCreateParams.EntityType.PAY_STATEMENT_ITEM)
.build()
val body = params._body()
assertThat(body.attributes())
.contains(
- HrisCompanyPayStatementItemRuleCreateParams.Attributes.builder()
+ HrisPayStatementItemRuleCreateParams.Attributes.builder()
.metadata(
- HrisCompanyPayStatementItemRuleCreateParams.Attributes.Metadata.builder()
+ HrisPayStatementItemRuleCreateParams.Attributes.Metadata.builder()
.putAdditionalProperty("foo", JsonValue.from("bar"))
.build()
)
@@ -131,21 +121,21 @@ internal class HrisCompanyPayStatementItemRuleCreateParamsTest {
)
assertThat(body.conditions().getOrNull())
.containsExactly(
- HrisCompanyPayStatementItemRuleCreateParams.Condition.builder()
+ HrisPayStatementItemRuleCreateParams.Condition.builder()
.field("field")
- .operator(HrisCompanyPayStatementItemRuleCreateParams.Condition.Operator.EQUALS)
+ .operator(HrisPayStatementItemRuleCreateParams.Condition.Operator.EQUALS)
.value("value")
.build()
)
assertThat(body.effectiveEndDate()).contains("effective_end_date")
assertThat(body.effectiveStartDate()).contains("effective_start_date")
assertThat(body.entityType())
- .contains(HrisCompanyPayStatementItemRuleCreateParams.EntityType.PAY_STATEMENT_ITEM)
+ .contains(HrisPayStatementItemRuleCreateParams.EntityType.PAY_STATEMENT_ITEM)
}
@Test
fun bodyWithoutOptionalFields() {
- val params = HrisCompanyPayStatementItemRuleCreateParams.builder().build()
+ val params = HrisPayStatementItemRuleCreateParams.builder().build()
val body = params._body()
}
diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemRuleDeleteParamsTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisPayStatementItemRuleDeleteParamsTest.kt
similarity index 75%
rename from finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemRuleDeleteParamsTest.kt
rename to finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisPayStatementItemRuleDeleteParamsTest.kt
index c397df019..4de7c7749 100644
--- a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemRuleDeleteParamsTest.kt
+++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisPayStatementItemRuleDeleteParamsTest.kt
@@ -6,11 +6,11 @@ import com.tryfinch.api.core.http.QueryParams
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
-internal class HrisCompanyPayStatementItemRuleDeleteParamsTest {
+internal class HrisPayStatementItemRuleDeleteParamsTest {
@Test
fun create() {
- HrisCompanyPayStatementItemRuleDeleteParams.builder()
+ HrisPayStatementItemRuleDeleteParams.builder()
.ruleId("rule_id")
.addEntityId("550e8400-e29b-41d4-a716-446655440000")
.build()
@@ -18,7 +18,7 @@ internal class HrisCompanyPayStatementItemRuleDeleteParamsTest {
@Test
fun pathParams() {
- val params = HrisCompanyPayStatementItemRuleDeleteParams.builder().ruleId("rule_id").build()
+ val params = HrisPayStatementItemRuleDeleteParams.builder().ruleId("rule_id").build()
assertThat(params._pathParam(0)).isEqualTo("rule_id")
// out-of-bound path param
@@ -28,7 +28,7 @@ internal class HrisCompanyPayStatementItemRuleDeleteParamsTest {
@Test
fun queryParams() {
val params =
- HrisCompanyPayStatementItemRuleDeleteParams.builder()
+ HrisPayStatementItemRuleDeleteParams.builder()
.ruleId("rule_id")
.addEntityId("550e8400-e29b-41d4-a716-446655440000")
.build()
@@ -45,7 +45,7 @@ internal class HrisCompanyPayStatementItemRuleDeleteParamsTest {
@Test
fun queryParamsWithoutOptionalFields() {
- val params = HrisCompanyPayStatementItemRuleDeleteParams.builder().ruleId("rule_id").build()
+ val params = HrisPayStatementItemRuleDeleteParams.builder().ruleId("rule_id").build()
val queryParams = params._queryParams()
diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemRuleListPageResponseTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisPayStatementItemRuleListPageResponseTest.kt
similarity index 85%
rename from finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemRuleListPageResponseTest.kt
rename to finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisPayStatementItemRuleListPageResponseTest.kt
index ef8efe329..dc869a430 100644
--- a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemRuleListPageResponseTest.kt
+++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisPayStatementItemRuleListPageResponseTest.kt
@@ -9,12 +9,12 @@ import java.time.OffsetDateTime
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
-internal class HrisCompanyPayStatementItemRuleListPageResponseTest {
+internal class HrisPayStatementItemRuleListPageResponseTest {
@Test
fun create() {
- val hrisCompanyPayStatementItemRuleListPageResponse =
- HrisCompanyPayStatementItemRuleListPageResponse.builder()
+ val hrisPayStatementItemRuleListPageResponse =
+ HrisPayStatementItemRuleListPageResponse.builder()
.addResponse(
RuleListResponse.builder()
.id("id")
@@ -44,7 +44,7 @@ internal class HrisCompanyPayStatementItemRuleListPageResponseTest {
)
.build()
- assertThat(hrisCompanyPayStatementItemRuleListPageResponse.responses())
+ assertThat(hrisPayStatementItemRuleListPageResponse.responses())
.containsExactly(
RuleListResponse.builder()
.id("id")
@@ -77,8 +77,8 @@ internal class HrisCompanyPayStatementItemRuleListPageResponseTest {
@Test
fun roundtrip() {
val jsonMapper = jsonMapper()
- val hrisCompanyPayStatementItemRuleListPageResponse =
- HrisCompanyPayStatementItemRuleListPageResponse.builder()
+ val hrisPayStatementItemRuleListPageResponse =
+ HrisPayStatementItemRuleListPageResponse.builder()
.addResponse(
RuleListResponse.builder()
.id("id")
@@ -108,13 +108,13 @@ internal class HrisCompanyPayStatementItemRuleListPageResponseTest {
)
.build()
- val roundtrippedHrisCompanyPayStatementItemRuleListPageResponse =
+ val roundtrippedHrisPayStatementItemRuleListPageResponse =
jsonMapper.readValue(
- jsonMapper.writeValueAsString(hrisCompanyPayStatementItemRuleListPageResponse),
- jacksonTypeRef(),
+ jsonMapper.writeValueAsString(hrisPayStatementItemRuleListPageResponse),
+ jacksonTypeRef(),
)
- assertThat(roundtrippedHrisCompanyPayStatementItemRuleListPageResponse)
- .isEqualTo(hrisCompanyPayStatementItemRuleListPageResponse)
+ assertThat(roundtrippedHrisPayStatementItemRuleListPageResponse)
+ .isEqualTo(hrisPayStatementItemRuleListPageResponse)
}
}
diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemRuleListParamsTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisPayStatementItemRuleListParamsTest.kt
similarity index 78%
rename from finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemRuleListParamsTest.kt
rename to finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisPayStatementItemRuleListParamsTest.kt
index 1caa42db2..09d939335 100644
--- a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemRuleListParamsTest.kt
+++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisPayStatementItemRuleListParamsTest.kt
@@ -6,11 +6,11 @@ import com.tryfinch.api.core.http.QueryParams
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
-internal class HrisCompanyPayStatementItemRuleListParamsTest {
+internal class HrisPayStatementItemRuleListParamsTest {
@Test
fun create() {
- HrisCompanyPayStatementItemRuleListParams.builder()
+ HrisPayStatementItemRuleListParams.builder()
.addEntityId("550e8400-e29b-41d4-a716-446655440000")
.build()
}
@@ -18,7 +18,7 @@ internal class HrisCompanyPayStatementItemRuleListParamsTest {
@Test
fun queryParams() {
val params =
- HrisCompanyPayStatementItemRuleListParams.builder()
+ HrisPayStatementItemRuleListParams.builder()
.addEntityId("550e8400-e29b-41d4-a716-446655440000")
.build()
@@ -34,7 +34,7 @@ internal class HrisCompanyPayStatementItemRuleListParamsTest {
@Test
fun queryParamsWithoutOptionalFields() {
- val params = HrisCompanyPayStatementItemRuleListParams.builder().build()
+ val params = HrisPayStatementItemRuleListParams.builder().build()
val queryParams = params._queryParams()
diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemRuleUpdateParamsTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisPayStatementItemRuleUpdateParamsTest.kt
similarity index 76%
rename from finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemRuleUpdateParamsTest.kt
rename to finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisPayStatementItemRuleUpdateParamsTest.kt
index 9c0687455..210fb9337 100644
--- a/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemRuleUpdateParamsTest.kt
+++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/models/HrisPayStatementItemRuleUpdateParamsTest.kt
@@ -7,11 +7,11 @@ import com.tryfinch.api.core.http.QueryParams
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
-internal class HrisCompanyPayStatementItemRuleUpdateParamsTest {
+internal class HrisPayStatementItemRuleUpdateParamsTest {
@Test
fun create() {
- HrisCompanyPayStatementItemRuleUpdateParams.builder()
+ HrisPayStatementItemRuleUpdateParams.builder()
.ruleId("rule_id")
.addEntityId("550e8400-e29b-41d4-a716-446655440000")
.optionalProperty(JsonValue.from(mapOf()))
@@ -20,7 +20,7 @@ internal class HrisCompanyPayStatementItemRuleUpdateParamsTest {
@Test
fun pathParams() {
- val params = HrisCompanyPayStatementItemRuleUpdateParams.builder().ruleId("rule_id").build()
+ val params = HrisPayStatementItemRuleUpdateParams.builder().ruleId("rule_id").build()
assertThat(params._pathParam(0)).isEqualTo("rule_id")
// out-of-bound path param
@@ -30,7 +30,7 @@ internal class HrisCompanyPayStatementItemRuleUpdateParamsTest {
@Test
fun queryParams() {
val params =
- HrisCompanyPayStatementItemRuleUpdateParams.builder()
+ HrisPayStatementItemRuleUpdateParams.builder()
.ruleId("rule_id")
.addEntityId("550e8400-e29b-41d4-a716-446655440000")
.optionalProperty(JsonValue.from(mapOf()))
@@ -48,7 +48,7 @@ internal class HrisCompanyPayStatementItemRuleUpdateParamsTest {
@Test
fun queryParamsWithoutOptionalFields() {
- val params = HrisCompanyPayStatementItemRuleUpdateParams.builder().ruleId("rule_id").build()
+ val params = HrisPayStatementItemRuleUpdateParams.builder().ruleId("rule_id").build()
val queryParams = params._queryParams()
@@ -58,7 +58,7 @@ internal class HrisCompanyPayStatementItemRuleUpdateParamsTest {
@Test
fun body() {
val params =
- HrisCompanyPayStatementItemRuleUpdateParams.builder()
+ HrisPayStatementItemRuleUpdateParams.builder()
.ruleId("rule_id")
.addEntityId("550e8400-e29b-41d4-a716-446655440000")
.optionalProperty(JsonValue.from(mapOf()))
@@ -71,7 +71,7 @@ internal class HrisCompanyPayStatementItemRuleUpdateParamsTest {
@Test
fun bodyWithoutOptionalFields() {
- val params = HrisCompanyPayStatementItemRuleUpdateParams.builder().ruleId("rule_id").build()
+ val params = HrisPayStatementItemRuleUpdateParams.builder().ruleId("rule_id").build()
val body = params._body()
}
diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/async/hris/company/PayStatementItemServiceAsyncTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/async/hris/PayStatementItemServiceAsyncTest.kt
similarity index 83%
rename from finch-java-core/src/test/kotlin/com/tryfinch/api/services/async/hris/company/PayStatementItemServiceAsyncTest.kt
rename to finch-java-core/src/test/kotlin/com/tryfinch/api/services/async/hris/PayStatementItemServiceAsyncTest.kt
index 2e3dfe28b..60c9d5d53 100644
--- a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/async/hris/company/PayStatementItemServiceAsyncTest.kt
+++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/async/hris/PayStatementItemServiceAsyncTest.kt
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package com.tryfinch.api.services.async.hris.company
+package com.tryfinch.api.services.async.hris
import com.tryfinch.api.TestServerExtension
import com.tryfinch.api.client.okhttp.FinchOkHttpClientAsync
@@ -17,7 +17,7 @@ internal class PayStatementItemServiceAsyncTest {
.baseUrl(TestServerExtension.BASE_URL)
.accessToken("My Access Token")
.build()
- val payStatementItemServiceAsync = client.hris().company().payStatementItem()
+ val payStatementItemServiceAsync = client.hris().payStatementItem()
val pageFuture = payStatementItemServiceAsync.list()
diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/async/hris/company/payStatementItem/RuleServiceAsyncTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/async/hris/payStatementItem/RuleServiceAsyncTest.kt
similarity index 67%
rename from finch-java-core/src/test/kotlin/com/tryfinch/api/services/async/hris/company/payStatementItem/RuleServiceAsyncTest.kt
rename to finch-java-core/src/test/kotlin/com/tryfinch/api/services/async/hris/payStatementItem/RuleServiceAsyncTest.kt
index 6739ffe22..51af5bacb 100644
--- a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/async/hris/company/payStatementItem/RuleServiceAsyncTest.kt
+++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/async/hris/payStatementItem/RuleServiceAsyncTest.kt
@@ -1,13 +1,13 @@
// File generated from our OpenAPI spec by Stainless.
-package com.tryfinch.api.services.async.hris.company.payStatementItem
+package com.tryfinch.api.services.async.hris.payStatementItem
import com.tryfinch.api.TestServerExtension
import com.tryfinch.api.client.okhttp.FinchOkHttpClientAsync
import com.tryfinch.api.core.JsonValue
-import com.tryfinch.api.models.HrisCompanyPayStatementItemRuleCreateParams
-import com.tryfinch.api.models.HrisCompanyPayStatementItemRuleDeleteParams
-import com.tryfinch.api.models.HrisCompanyPayStatementItemRuleUpdateParams
+import com.tryfinch.api.models.HrisPayStatementItemRuleCreateParams
+import com.tryfinch.api.models.HrisPayStatementItemRuleDeleteParams
+import com.tryfinch.api.models.HrisPayStatementItemRuleUpdateParams
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.extension.ExtendWith
@@ -21,37 +21,33 @@ internal class RuleServiceAsyncTest {
.baseUrl(TestServerExtension.BASE_URL)
.accessToken("My Access Token")
.build()
- val ruleServiceAsync = client.hris().company().payStatementItem().rules()
+ val ruleServiceAsync = client.hris().payStatementItem().rules()
val ruleFuture =
ruleServiceAsync.create(
- HrisCompanyPayStatementItemRuleCreateParams.builder()
+ HrisPayStatementItemRuleCreateParams.builder()
.addEntityId("550e8400-e29b-41d4-a716-446655440000")
.attributes(
- HrisCompanyPayStatementItemRuleCreateParams.Attributes.builder()
+ HrisPayStatementItemRuleCreateParams.Attributes.builder()
.metadata(
- HrisCompanyPayStatementItemRuleCreateParams.Attributes.Metadata
- .builder()
+ HrisPayStatementItemRuleCreateParams.Attributes.Metadata.builder()
.putAdditionalProperty("foo", JsonValue.from("bar"))
.build()
)
.build()
)
.addCondition(
- HrisCompanyPayStatementItemRuleCreateParams.Condition.builder()
+ HrisPayStatementItemRuleCreateParams.Condition.builder()
.field("field")
.operator(
- HrisCompanyPayStatementItemRuleCreateParams.Condition.Operator
- .EQUALS
+ HrisPayStatementItemRuleCreateParams.Condition.Operator.EQUALS
)
.value("value")
.build()
)
.effectiveEndDate("effective_end_date")
.effectiveStartDate("effective_start_date")
- .entityType(
- HrisCompanyPayStatementItemRuleCreateParams.EntityType.PAY_STATEMENT_ITEM
- )
+ .entityType(HrisPayStatementItemRuleCreateParams.EntityType.PAY_STATEMENT_ITEM)
.build()
)
@@ -66,11 +62,11 @@ internal class RuleServiceAsyncTest {
.baseUrl(TestServerExtension.BASE_URL)
.accessToken("My Access Token")
.build()
- val ruleServiceAsync = client.hris().company().payStatementItem().rules()
+ val ruleServiceAsync = client.hris().payStatementItem().rules()
val ruleFuture =
ruleServiceAsync.update(
- HrisCompanyPayStatementItemRuleUpdateParams.builder()
+ HrisPayStatementItemRuleUpdateParams.builder()
.ruleId("rule_id")
.addEntityId("550e8400-e29b-41d4-a716-446655440000")
.optionalProperty(JsonValue.from(mapOf()))
@@ -88,7 +84,7 @@ internal class RuleServiceAsyncTest {
.baseUrl(TestServerExtension.BASE_URL)
.accessToken("My Access Token")
.build()
- val ruleServiceAsync = client.hris().company().payStatementItem().rules()
+ val ruleServiceAsync = client.hris().payStatementItem().rules()
val pageFuture = ruleServiceAsync.list()
@@ -103,11 +99,11 @@ internal class RuleServiceAsyncTest {
.baseUrl(TestServerExtension.BASE_URL)
.accessToken("My Access Token")
.build()
- val ruleServiceAsync = client.hris().company().payStatementItem().rules()
+ val ruleServiceAsync = client.hris().payStatementItem().rules()
val ruleFuture =
ruleServiceAsync.delete(
- HrisCompanyPayStatementItemRuleDeleteParams.builder()
+ HrisPayStatementItemRuleDeleteParams.builder()
.ruleId("rule_id")
.addEntityId("550e8400-e29b-41d4-a716-446655440000")
.build()
diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/hris/company/PayStatementItemServiceTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/hris/PayStatementItemServiceTest.kt
similarity index 82%
rename from finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/hris/company/PayStatementItemServiceTest.kt
rename to finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/hris/PayStatementItemServiceTest.kt
index f5a32058f..086e1024c 100644
--- a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/hris/company/PayStatementItemServiceTest.kt
+++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/hris/PayStatementItemServiceTest.kt
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package com.tryfinch.api.services.blocking.hris.company
+package com.tryfinch.api.services.blocking.hris
import com.tryfinch.api.TestServerExtension
import com.tryfinch.api.client.okhttp.FinchOkHttpClient
@@ -17,7 +17,7 @@ internal class PayStatementItemServiceTest {
.baseUrl(TestServerExtension.BASE_URL)
.accessToken("My Access Token")
.build()
- val payStatementItemService = client.hris().company().payStatementItem()
+ val payStatementItemService = client.hris().payStatementItem()
val page = payStatementItemService.list()
diff --git a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/hris/company/payStatementItem/RuleServiceTest.kt b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/hris/payStatementItem/RuleServiceTest.kt
similarity index 65%
rename from finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/hris/company/payStatementItem/RuleServiceTest.kt
rename to finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/hris/payStatementItem/RuleServiceTest.kt
index 3d0fbb77a..c1a9d4921 100644
--- a/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/hris/company/payStatementItem/RuleServiceTest.kt
+++ b/finch-java-core/src/test/kotlin/com/tryfinch/api/services/blocking/hris/payStatementItem/RuleServiceTest.kt
@@ -1,13 +1,13 @@
// File generated from our OpenAPI spec by Stainless.
-package com.tryfinch.api.services.blocking.hris.company.payStatementItem
+package com.tryfinch.api.services.blocking.hris.payStatementItem
import com.tryfinch.api.TestServerExtension
import com.tryfinch.api.client.okhttp.FinchOkHttpClient
import com.tryfinch.api.core.JsonValue
-import com.tryfinch.api.models.HrisCompanyPayStatementItemRuleCreateParams
-import com.tryfinch.api.models.HrisCompanyPayStatementItemRuleDeleteParams
-import com.tryfinch.api.models.HrisCompanyPayStatementItemRuleUpdateParams
+import com.tryfinch.api.models.HrisPayStatementItemRuleCreateParams
+import com.tryfinch.api.models.HrisPayStatementItemRuleDeleteParams
+import com.tryfinch.api.models.HrisPayStatementItemRuleUpdateParams
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.extension.ExtendWith
@@ -21,37 +21,33 @@ internal class RuleServiceTest {
.baseUrl(TestServerExtension.BASE_URL)
.accessToken("My Access Token")
.build()
- val ruleService = client.hris().company().payStatementItem().rules()
+ val ruleService = client.hris().payStatementItem().rules()
val rule =
ruleService.create(
- HrisCompanyPayStatementItemRuleCreateParams.builder()
+ HrisPayStatementItemRuleCreateParams.builder()
.addEntityId("550e8400-e29b-41d4-a716-446655440000")
.attributes(
- HrisCompanyPayStatementItemRuleCreateParams.Attributes.builder()
+ HrisPayStatementItemRuleCreateParams.Attributes.builder()
.metadata(
- HrisCompanyPayStatementItemRuleCreateParams.Attributes.Metadata
- .builder()
+ HrisPayStatementItemRuleCreateParams.Attributes.Metadata.builder()
.putAdditionalProperty("foo", JsonValue.from("bar"))
.build()
)
.build()
)
.addCondition(
- HrisCompanyPayStatementItemRuleCreateParams.Condition.builder()
+ HrisPayStatementItemRuleCreateParams.Condition.builder()
.field("field")
.operator(
- HrisCompanyPayStatementItemRuleCreateParams.Condition.Operator
- .EQUALS
+ HrisPayStatementItemRuleCreateParams.Condition.Operator.EQUALS
)
.value("value")
.build()
)
.effectiveEndDate("effective_end_date")
.effectiveStartDate("effective_start_date")
- .entityType(
- HrisCompanyPayStatementItemRuleCreateParams.EntityType.PAY_STATEMENT_ITEM
- )
+ .entityType(HrisPayStatementItemRuleCreateParams.EntityType.PAY_STATEMENT_ITEM)
.build()
)
@@ -65,11 +61,11 @@ internal class RuleServiceTest {
.baseUrl(TestServerExtension.BASE_URL)
.accessToken("My Access Token")
.build()
- val ruleService = client.hris().company().payStatementItem().rules()
+ val ruleService = client.hris().payStatementItem().rules()
val rule =
ruleService.update(
- HrisCompanyPayStatementItemRuleUpdateParams.builder()
+ HrisPayStatementItemRuleUpdateParams.builder()
.ruleId("rule_id")
.addEntityId("550e8400-e29b-41d4-a716-446655440000")
.optionalProperty(JsonValue.from(mapOf()))
@@ -86,7 +82,7 @@ internal class RuleServiceTest {
.baseUrl(TestServerExtension.BASE_URL)
.accessToken("My Access Token")
.build()
- val ruleService = client.hris().company().payStatementItem().rules()
+ val ruleService = client.hris().payStatementItem().rules()
val page = ruleService.list()
@@ -100,11 +96,11 @@ internal class RuleServiceTest {
.baseUrl(TestServerExtension.BASE_URL)
.accessToken("My Access Token")
.build()
- val ruleService = client.hris().company().payStatementItem().rules()
+ val ruleService = client.hris().payStatementItem().rules()
val rule =
ruleService.delete(
- HrisCompanyPayStatementItemRuleDeleteParams.builder()
+ HrisPayStatementItemRuleDeleteParams.builder()
.ruleId("rule_id")
.addEntityId("550e8400-e29b-41d4-a716-446655440000")
.build()