diff --git a/.release-please-manifest.json b/.release-please-manifest.json
index 5fd9048a6..928566934 100644
--- a/.release-please-manifest.json
+++ b/.release-please-manifest.json
@@ -1,3 +1,3 @@
{
- ".": "8.7.0"
+ ".": "9.0.0"
}
diff --git a/.stats.yml b/.stats.yml
index b6643dc5a..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-a96dc8196c4f038d042fab2c73851166fcf491ec6a7e9bc76cae4661a8635afb.yml
-openapi_spec_hash: 8f65946452f62662cc72ce8cb2f88b76
-config_hash: 812b56df3e506bc2af056b2898327b8a
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch/finch-ecd3f6c28edae07dbe9f54d8040a6d7f2af5ac032b20f8df06065542478e4e73.yml
+openapi_spec_hash: 5e0e04e7274494062ff46ac85d358f5b
+config_hash: 9ae56f40cec7304896138bfad5caf748
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 44f1a19ad..472a75524 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,18 @@
# Changelog
+## 9.0.0 (2026-06-22)
+
+Full Changelog: [v8.7.0...v9.0.0](https://github.com/Finch-API/finch-api-kotlin/compare/v8.7.0...v9.0.0)
+
+### Features
+
+* **api:** manual updates ([7b00905](https://github.com/Finch-API/finch-api-kotlin/commit/7b00905235ecc69f4c4d2e899fa2a622b39dc4f4))
+
+
+### Bug Fixes
+
+* **payroll:** pay_statement_item is now a direct subresource of hris instead of company ([357dcc6](https://github.com/Finch-API/finch-api-kotlin/commit/357dcc63f772e099fab97b2326fdd25c23f7d217))
+
## 8.7.0 (2026-06-18)
Full Changelog: [v8.6.0...v8.7.0](https://github.com/Finch-API/finch-api-kotlin/compare/v8.6.0...v8.7.0)
diff --git a/README.md b/README.md
index a2309e29e..a6c5aefda 100644
--- a/README.md
+++ b/README.md
@@ -2,8 +2,8 @@
-[](https://central.sonatype.com/artifact/com.tryfinch.api/finch-kotlin/8.7.0)
-[](https://javadoc.io/doc/com.tryfinch.api/finch-kotlin/8.7.0)
+[](https://central.sonatype.com/artifact/com.tryfinch.api/finch-kotlin/9.0.0)
+[](https://javadoc.io/doc/com.tryfinch.api/finch-kotlin/9.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/). KDocs are available on [javadoc.io](https://javadoc.io/doc/com.tryfinch.api/finch-kotlin/8.7.0).
+The REST API documentation can be found on [developer.tryfinch.com](https://developer.tryfinch.com/). KDocs are available on [javadoc.io](https://javadoc.io/doc/com.tryfinch.api/finch-kotlin/9.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-kotlin:8.7.0")
+implementation("com.tryfinch.api:finch-kotlin:9.0.0")
```
### Maven
@@ -44,7 +44,7 @@ implementation("com.tryfinch.api:finch-kotlin:8.7.0")
com.tryfinch.api
finch-kotlin
- 8.7.0
+ 9.0.0
```
diff --git a/build.gradle.kts b/build.gradle.kts
index ebff0096c..ba768ac8d 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -8,7 +8,7 @@ repositories {
allprojects {
group = "com.tryfinch.api"
- version = "8.7.0" // x-release-please-version
+ version = "9.0.0" // x-release-please-version
}
subprojects {
diff --git a/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemListPage.kt b/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementItemListPage.kt
similarity index 57%
rename from finch-kotlin-core/src/main/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemListPage.kt
rename to finch-kotlin-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementItemListPage.kt
index 76863fad7..790d05d1a 100644
--- a/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemListPage.kt
+++ b/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementItemListPage.kt
@@ -5,22 +5,21 @@ 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
/** @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().getNullable("responses") ?: emptyList()
@@ -29,26 +28,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:
* ```kotlin
@@ -60,33 +58,31 @@ private constructor(
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
-
- internal fun from(
- hrisCompanyPayStatementItemListPage: HrisCompanyPayStatementItemListPage
- ) = apply {
- service = hrisCompanyPayStatementItemListPage.service
- params = hrisCompanyPayStatementItemListPage.params
- response = hrisCompanyPayStatementItemListPage.response
+ private var params: HrisPayStatementItemListParams? = null
+ private var response: HrisPayStatementItemListPageResponse? = null
+
+ 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.
*
@@ -99,8 +95,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),
@@ -112,7 +108,7 @@ private constructor(
return true
}
- return other is HrisCompanyPayStatementItemListPage &&
+ return other is HrisPayStatementItemListPage &&
service == other.service &&
params == other.params &&
response == other.response
@@ -121,5 +117,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-kotlin-core/src/main/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemListPageAsync.kt b/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementItemListPageAsync.kt
similarity index 57%
rename from finch-kotlin-core/src/main/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemListPageAsync.kt
rename to finch-kotlin-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementItemListPageAsync.kt
index c7e4be9fb..87225bc50 100644
--- a/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemListPageAsync.kt
+++ b/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementItemListPageAsync.kt
@@ -5,22 +5,21 @@ 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
/** @see PayStatementItemServiceAsync.list */
-class HrisCompanyPayStatementItemListPageAsync
+class HrisPayStatementItemListPageAsync
private constructor(
private val service: PayStatementItemServiceAsync,
- 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().getNullable("responses") ?: emptyList()
@@ -29,19 +28,19 @@ private constructor(
override fun hasNextPage(): Boolean = false
- fun nextPageParams(): HrisCompanyPayStatementItemListParams =
+ fun nextPageParams(): HrisPayStatementItemListParams =
throw IllegalStateException("Cannot construct next page params")
- override suspend fun nextPage(): HrisCompanyPayStatementItemListPageAsync =
+ override suspend fun nextPage(): HrisPayStatementItemListPageAsync =
service.list(nextPageParams())
fun autoPager(): AutoPagerAsync = AutoPagerAsync.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)
@@ -49,7 +48,7 @@ private constructor(
/**
* Returns a mutable builder for constructing an instance of
- * [HrisCompanyPayStatementItemListPageAsync].
+ * [HrisPayStatementItemListPageAsync].
*
* The following fields are required:
* ```kotlin
@@ -61,33 +60,32 @@ private constructor(
fun builder() = Builder()
}
- /** A builder for [HrisCompanyPayStatementItemListPageAsync]. */
+ /** A builder for [HrisPayStatementItemListPageAsync]. */
class Builder internal constructor() {
private var service: PayStatementItemServiceAsync? = null
- private var params: HrisCompanyPayStatementItemListParams? = null
- private var response: HrisCompanyPayStatementItemListPageResponse? = null
-
- internal fun from(
- hrisCompanyPayStatementItemListPageAsync: HrisCompanyPayStatementItemListPageAsync
- ) = apply {
- service = hrisCompanyPayStatementItemListPageAsync.service
- params = hrisCompanyPayStatementItemListPageAsync.params
- response = hrisCompanyPayStatementItemListPageAsync.response
- }
+ private var params: HrisPayStatementItemListParams? = null
+ private var response: HrisPayStatementItemListPageResponse? = null
+
+ internal fun from(hrisPayStatementItemListPageAsync: HrisPayStatementItemListPageAsync) =
+ apply {
+ service = hrisPayStatementItemListPageAsync.service
+ params = hrisPayStatementItemListPageAsync.params
+ response = hrisPayStatementItemListPageAsync.response
+ }
fun service(service: PayStatementItemServiceAsync) = 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 [HrisCompanyPayStatementItemListPageAsync].
+ * Returns an immutable instance of [HrisPayStatementItemListPageAsync].
*
* Further updates to this [Builder] will not mutate the returned instance.
*
@@ -100,8 +98,8 @@ private constructor(
*
* @throws IllegalStateException if any required field is unset.
*/
- fun build(): HrisCompanyPayStatementItemListPageAsync =
- HrisCompanyPayStatementItemListPageAsync(
+ fun build(): HrisPayStatementItemListPageAsync =
+ HrisPayStatementItemListPageAsync(
checkRequired("service", service),
checkRequired("params", params),
checkRequired("response", response),
@@ -113,7 +111,7 @@ private constructor(
return true
}
- return other is HrisCompanyPayStatementItemListPageAsync &&
+ return other is HrisPayStatementItemListPageAsync &&
service == other.service &&
params == other.params &&
response == other.response
@@ -122,5 +120,5 @@ private constructor(
override fun hashCode(): Int = Objects.hash(service, params, response)
override fun toString() =
- "HrisCompanyPayStatementItemListPageAsync{service=$service, params=$params, response=$response}"
+ "HrisPayStatementItemListPageAsync{service=$service, params=$params, response=$response}"
}
diff --git a/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemListPageResponse.kt b/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementItemListPageResponse.kt
similarity index 86%
rename from finch-kotlin-core/src/main/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemListPageResponse.kt
rename to finch-kotlin-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementItemListPageResponse.kt
index d6a33b730..c235a1a31 100644
--- a/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemListPageResponse.kt
+++ b/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementItemListPageResponse.kt
@@ -17,7 +17,7 @@ import com.tryfinch.api.errors.FinchInvalidDataException
import java.util.Collections
import java.util.Objects
-class HrisCompanyPayStatementItemListPageResponse
+class HrisPayStatementItemListPageResponse
@JsonCreator(mode = JsonCreator.Mode.DISABLED)
private constructor(
private val responses: JsonField>,
@@ -62,7 +62,7 @@ private constructor(
/**
* Returns a mutable builder for constructing an instance of
- * [HrisCompanyPayStatementItemListPageResponse].
+ * [HrisPayStatementItemListPageResponse].
*
* The following fields are required:
* ```kotlin
@@ -72,19 +72,18 @@ private constructor(
fun builder() = Builder()
}
- /** A builder for [HrisCompanyPayStatementItemListPageResponse]. */
+ /** A builder for [HrisPayStatementItemListPageResponse]. */
class Builder internal constructor() {
private var responses: JsonField>? = null
private var additionalProperties: MutableMap = mutableMapOf()
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) =
@@ -133,7 +132,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.
*
@@ -144,8 +143,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(),
)
@@ -161,7 +160,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
}
@@ -190,7 +189,7 @@ private constructor(
return true
}
- return other is HrisCompanyPayStatementItemListPageResponse &&
+ return other is HrisPayStatementItemListPageResponse &&
responses == other.responses &&
additionalProperties == other.additionalProperties
}
@@ -200,5 +199,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-kotlin-core/src/main/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemListParams.kt b/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementItemListParams.kt
similarity index 90%
rename from finch-kotlin-core/src/main/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemListParams.kt
rename to finch-kotlin-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementItemListParams.kt
index d59e9a7aa..8a0f832dc 100644
--- a/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemListParams.kt
+++ b/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementItemListParams.kt
@@ -14,7 +14,7 @@ import java.time.LocalDate
import java.util.Objects
/** 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?,
@@ -63,16 +63,16 @@ private constructor(
companion object {
- fun none(): HrisCompanyPayStatementItemListParams = builder().build()
+ fun none(): HrisPayStatementItemListParams = builder().build()
/**
* Returns a mutable builder for constructing an instance of
- * [HrisCompanyPayStatementItemListParams].
+ * [HrisPayStatementItemListParams].
*/
fun builder() = Builder()
}
- /** A builder for [HrisCompanyPayStatementItemListParams]. */
+ /** A builder for [HrisPayStatementItemListParams]. */
class Builder internal constructor() {
private var categories: MutableList? = null
@@ -84,18 +84,15 @@ private constructor(
private var additionalHeaders: Headers.Builder = Headers.builder()
private var additionalQueryParams: QueryParams.Builder = QueryParams.builder()
- 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()
}
/**
@@ -246,12 +243,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(),
@@ -428,7 +425,7 @@ private constructor(
return true
}
- return other is HrisCompanyPayStatementItemListParams &&
+ return other is HrisPayStatementItemListParams &&
categories == other.categories &&
endDate == other.endDate &&
entityIds == other.entityIds &&
@@ -452,5 +449,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-kotlin-core/src/main/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemRuleCreateParams.kt b/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementItemRuleCreateParams.kt
similarity index 97%
rename from finch-kotlin-core/src/main/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemRuleCreateParams.kt
rename to finch-kotlin-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementItemRuleCreateParams.kt
index 28d838ba5..3abbd340f 100644
--- a/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemRuleCreateParams.kt
+++ b/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementItemRuleCreateParams.kt
@@ -25,7 +25,7 @@ import java.util.Objects
* 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,
@@ -123,16 +123,16 @@ private constructor(
companion object {
- fun none(): HrisCompanyPayStatementItemRuleCreateParams = builder().build()
+ fun none(): HrisPayStatementItemRuleCreateParams = builder().build()
/**
* Returns a mutable builder for constructing an instance of
- * [HrisCompanyPayStatementItemRuleCreateParams].
+ * [HrisPayStatementItemRuleCreateParams].
*/
fun builder() = Builder()
}
- /** A builder for [HrisCompanyPayStatementItemRuleCreateParams]. */
+ /** A builder for [HrisPayStatementItemRuleCreateParams]. */
class Builder internal constructor() {
private var entityIds: MutableList? = null
@@ -141,14 +141,13 @@ private constructor(
private var additionalQueryParams: QueryParams.Builder = QueryParams.builder()
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. */
@@ -373,12 +372,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(),
@@ -1512,7 +1511,7 @@ private constructor(
return true
}
- return other is HrisCompanyPayStatementItemRuleCreateParams &&
+ return other is HrisPayStatementItemRuleCreateParams &&
entityIds == other.entityIds &&
body == other.body &&
additionalHeaders == other.additionalHeaders &&
@@ -1523,5 +1522,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-kotlin-core/src/main/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemRuleDeleteParams.kt b/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementItemRuleDeleteParams.kt
similarity index 86%
rename from finch-kotlin-core/src/main/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemRuleDeleteParams.kt
rename to finch-kotlin-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementItemRuleDeleteParams.kt
index 3da2ae7e4..49fd39c73 100644
--- a/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemRuleDeleteParams.kt
+++ b/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementItemRuleDeleteParams.kt
@@ -10,7 +10,7 @@ import com.tryfinch.api.core.toImmutable
import java.util.Objects
/** Delete a rule for a pay statement item. */
-class HrisCompanyPayStatementItemRuleDeleteParams
+class HrisPayStatementItemRuleDeleteParams
private constructor(
private val ruleId: String?,
private val entityIds: List?,
@@ -37,16 +37,16 @@ private constructor(
companion object {
- fun none(): HrisCompanyPayStatementItemRuleDeleteParams = builder().build()
+ fun none(): HrisPayStatementItemRuleDeleteParams = builder().build()
/**
* Returns a mutable builder for constructing an instance of
- * [HrisCompanyPayStatementItemRuleDeleteParams].
+ * [HrisPayStatementItemRuleDeleteParams].
*/
fun builder() = Builder()
}
- /** A builder for [HrisCompanyPayStatementItemRuleDeleteParams]. */
+ /** A builder for [HrisPayStatementItemRuleDeleteParams]. */
class Builder internal constructor() {
private var ruleId: String? = null
@@ -56,16 +56,15 @@ private constructor(
private var additionalBodyProperties: MutableMap = mutableMapOf()
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 }
@@ -205,12 +204,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(),
@@ -242,7 +241,7 @@ private constructor(
return true
}
- return other is HrisCompanyPayStatementItemRuleDeleteParams &&
+ return other is HrisPayStatementItemRuleDeleteParams &&
ruleId == other.ruleId &&
entityIds == other.entityIds &&
additionalHeaders == other.additionalHeaders &&
@@ -260,5 +259,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-kotlin-core/src/main/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemRuleListPage.kt b/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementItemRuleListPage.kt
similarity index 55%
rename from finch-kotlin-core/src/main/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemRuleListPage.kt
rename to finch-kotlin-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementItemRuleListPage.kt
index 99ff67f40..e47335781 100644
--- a/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemRuleListPage.kt
+++ b/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementItemRuleListPage.kt
@@ -5,22 +5,21 @@ 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
/** @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().getNullable("responses") ?: emptyList()
@@ -29,19 +28,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)
@@ -49,7 +47,7 @@ private constructor(
/**
* Returns a mutable builder for constructing an instance of
- * [HrisCompanyPayStatementItemRuleListPage].
+ * [HrisPayStatementItemRuleListPage].
*
* The following fields are required:
* ```kotlin
@@ -61,35 +59,32 @@ private constructor(
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
-
- internal fun from(
- hrisCompanyPayStatementItemRuleListPage: HrisCompanyPayStatementItemRuleListPage
- ) = apply {
- service = hrisCompanyPayStatementItemRuleListPage.service
- params = hrisCompanyPayStatementItemRuleListPage.params
- response = hrisCompanyPayStatementItemRuleListPage.response
- }
+ private var params: HrisPayStatementItemRuleListParams? = null
+ private var response: HrisPayStatementItemRuleListPageResponse? = null
+
+ 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.
*
@@ -102,8 +97,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),
@@ -115,7 +110,7 @@ private constructor(
return true
}
- return other is HrisCompanyPayStatementItemRuleListPage &&
+ return other is HrisPayStatementItemRuleListPage &&
service == other.service &&
params == other.params &&
response == other.response
@@ -124,5 +119,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-kotlin-core/src/main/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemRuleListPageAsync.kt b/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementItemRuleListPageAsync.kt
similarity index 56%
rename from finch-kotlin-core/src/main/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemRuleListPageAsync.kt
rename to finch-kotlin-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementItemRuleListPageAsync.kt
index 5b1f24b01..bec13c791 100644
--- a/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemRuleListPageAsync.kt
+++ b/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementItemRuleListPageAsync.kt
@@ -5,22 +5,21 @@ 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
/** @see RuleServiceAsync.list */
-class HrisCompanyPayStatementItemRuleListPageAsync
+class HrisPayStatementItemRuleListPageAsync
private constructor(
private val service: RuleServiceAsync,
- 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().getNullable("responses") ?: emptyList()
@@ -29,19 +28,19 @@ private constructor(
override fun hasNextPage(): Boolean = false
- fun nextPageParams(): HrisCompanyPayStatementItemRuleListParams =
+ fun nextPageParams(): HrisPayStatementItemRuleListParams =
throw IllegalStateException("Cannot construct next page params")
- override suspend fun nextPage(): HrisCompanyPayStatementItemRuleListPageAsync =
+ override suspend fun nextPage(): HrisPayStatementItemRuleListPageAsync =
service.list(nextPageParams())
fun autoPager(): AutoPagerAsync = AutoPagerAsync.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)
@@ -49,7 +48,7 @@ private constructor(
/**
* Returns a mutable builder for constructing an instance of
- * [HrisCompanyPayStatementItemRuleListPageAsync].
+ * [HrisPayStatementItemRuleListPageAsync].
*
* The following fields are required:
* ```kotlin
@@ -61,36 +60,33 @@ private constructor(
fun builder() = Builder()
}
- /** A builder for [HrisCompanyPayStatementItemRuleListPageAsync]. */
+ /** A builder for [HrisPayStatementItemRuleListPageAsync]. */
class Builder internal constructor() {
private var service: RuleServiceAsync? = null
- private var params: HrisCompanyPayStatementItemRuleListParams? = null
- private var response: HrisCompanyPayStatementItemRuleListPageResponse? = null
+ private var params: HrisPayStatementItemRuleListParams? = null
+ private var response: HrisPayStatementItemRuleListPageResponse? = null
internal fun from(
- hrisCompanyPayStatementItemRuleListPageAsync:
- HrisCompanyPayStatementItemRuleListPageAsync
+ hrisPayStatementItemRuleListPageAsync: HrisPayStatementItemRuleListPageAsync
) = apply {
- service = hrisCompanyPayStatementItemRuleListPageAsync.service
- params = hrisCompanyPayStatementItemRuleListPageAsync.params
- response = hrisCompanyPayStatementItemRuleListPageAsync.response
+ service = hrisPayStatementItemRuleListPageAsync.service
+ params = hrisPayStatementItemRuleListPageAsync.params
+ response = hrisPayStatementItemRuleListPageAsync.response
}
fun service(service: RuleServiceAsync) = 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 [HrisCompanyPayStatementItemRuleListPageAsync].
+ * Returns an immutable instance of [HrisPayStatementItemRuleListPageAsync].
*
* Further updates to this [Builder] will not mutate the returned instance.
*
@@ -103,8 +99,8 @@ private constructor(
*
* @throws IllegalStateException if any required field is unset.
*/
- fun build(): HrisCompanyPayStatementItemRuleListPageAsync =
- HrisCompanyPayStatementItemRuleListPageAsync(
+ fun build(): HrisPayStatementItemRuleListPageAsync =
+ HrisPayStatementItemRuleListPageAsync(
checkRequired("service", service),
checkRequired("params", params),
checkRequired("response", response),
@@ -116,7 +112,7 @@ private constructor(
return true
}
- return other is HrisCompanyPayStatementItemRuleListPageAsync &&
+ return other is HrisPayStatementItemRuleListPageAsync &&
service == other.service &&
params == other.params &&
response == other.response
@@ -125,5 +121,5 @@ private constructor(
override fun hashCode(): Int = Objects.hash(service, params, response)
override fun toString() =
- "HrisCompanyPayStatementItemRuleListPageAsync{service=$service, params=$params, response=$response}"
+ "HrisPayStatementItemRuleListPageAsync{service=$service, params=$params, response=$response}"
}
diff --git a/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemRuleListPageResponse.kt b/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementItemRuleListPageResponse.kt
similarity index 85%
rename from finch-kotlin-core/src/main/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemRuleListPageResponse.kt
rename to finch-kotlin-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementItemRuleListPageResponse.kt
index 7f208334f..9942d73bb 100644
--- a/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemRuleListPageResponse.kt
+++ b/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementItemRuleListPageResponse.kt
@@ -17,7 +17,7 @@ import com.tryfinch.api.errors.FinchInvalidDataException
import java.util.Collections
import java.util.Objects
-class HrisCompanyPayStatementItemRuleListPageResponse
+class HrisPayStatementItemRuleListPageResponse
@JsonCreator(mode = JsonCreator.Mode.DISABLED)
private constructor(
private val responses: JsonField>,
@@ -62,7 +62,7 @@ private constructor(
/**
* Returns a mutable builder for constructing an instance of
- * [HrisCompanyPayStatementItemRuleListPageResponse].
+ * [HrisPayStatementItemRuleListPageResponse].
*
* The following fields are required:
* ```kotlin
@@ -72,20 +72,19 @@ private constructor(
fun builder() = Builder()
}
- /** A builder for [HrisCompanyPayStatementItemRuleListPageResponse]. */
+ /** A builder for [HrisPayStatementItemRuleListPageResponse]. */
class Builder internal constructor() {
private var responses: JsonField>? = null
private var additionalProperties: MutableMap = mutableMapOf()
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))
@@ -133,7 +132,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.
*
@@ -144,8 +143,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(),
)
@@ -161,7 +160,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
}
@@ -190,7 +189,7 @@ private constructor(
return true
}
- return other is HrisCompanyPayStatementItemRuleListPageResponse &&
+ return other is HrisPayStatementItemRuleListPageResponse &&
responses == other.responses &&
additionalProperties == other.additionalProperties
}
@@ -200,5 +199,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-kotlin-core/src/main/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemRuleListParams.kt b/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementItemRuleListParams.kt
similarity index 84%
rename from finch-kotlin-core/src/main/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemRuleListParams.kt
rename to finch-kotlin-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementItemRuleListParams.kt
index e856f6205..e346c9af5 100644
--- a/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemRuleListParams.kt
+++ b/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementItemRuleListParams.kt
@@ -9,7 +9,7 @@ import com.tryfinch.api.core.toImmutable
import java.util.Objects
/** List all rules of a connection account. */
-class HrisCompanyPayStatementItemRuleListParams
+class HrisPayStatementItemRuleListParams
private constructor(
private val entityIds: List?,
private val additionalHeaders: Headers,
@@ -29,31 +29,29 @@ private constructor(
companion object {
- fun none(): HrisCompanyPayStatementItemRuleListParams = builder().build()
+ fun none(): HrisPayStatementItemRuleListParams = builder().build()
/**
* Returns a mutable builder for constructing an instance of
- * [HrisCompanyPayStatementItemRuleListParams].
+ * [HrisPayStatementItemRuleListParams].
*/
fun builder() = Builder()
}
- /** A builder for [HrisCompanyPayStatementItemRuleListParams]. */
+ /** A builder for [HrisPayStatementItemRuleListParams]. */
class Builder internal constructor() {
private var entityIds: MutableList? = null
private var additionalHeaders: Headers.Builder = Headers.builder()
private var additionalQueryParams: QueryParams.Builder = QueryParams.builder()
- 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 {
@@ -168,12 +166,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(),
@@ -195,7 +193,7 @@ private constructor(
return true
}
- return other is HrisCompanyPayStatementItemRuleListParams &&
+ return other is HrisPayStatementItemRuleListParams &&
entityIds == other.entityIds &&
additionalHeaders == other.additionalHeaders &&
additionalQueryParams == other.additionalQueryParams
@@ -204,5 +202,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-kotlin-core/src/main/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemRuleUpdateParams.kt b/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementItemRuleUpdateParams.kt
similarity index 90%
rename from finch-kotlin-core/src/main/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemRuleUpdateParams.kt
rename to finch-kotlin-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementItemRuleUpdateParams.kt
index 92c97a95a..d340909c2 100644
--- a/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemRuleUpdateParams.kt
+++ b/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/models/HrisPayStatementItemRuleUpdateParams.kt
@@ -18,7 +18,7 @@ import java.util.Collections
import java.util.Objects
/** Update a rule for a pay statement item. */
-class HrisCompanyPayStatementItemRuleUpdateParams
+class HrisPayStatementItemRuleUpdateParams
private constructor(
private val ruleId: String?,
private val entityIds: List?,
@@ -35,7 +35,7 @@ private constructor(
/**
* This arbitrary value can be deserialized into a custom type using the `convert` method:
* ```kotlin
- * val myObject: MyClass = hrisCompanyPayStatementItemRuleUpdateParams.optionalProperty().convert(MyClass::class.java)
+ * val myObject: MyClass = hrisPayStatementItemRuleUpdateParams.optionalProperty().convert(MyClass::class.java)
* ```
*/
fun _optionalProperty(): JsonValue = body._optionalProperty()
@@ -52,16 +52,16 @@ private constructor(
companion object {
- fun none(): HrisCompanyPayStatementItemRuleUpdateParams = builder().build()
+ fun none(): HrisPayStatementItemRuleUpdateParams = builder().build()
/**
* Returns a mutable builder for constructing an instance of
- * [HrisCompanyPayStatementItemRuleUpdateParams].
+ * [HrisPayStatementItemRuleUpdateParams].
*/
fun builder() = Builder()
}
- /** A builder for [HrisCompanyPayStatementItemRuleUpdateParams]. */
+ /** A builder for [HrisPayStatementItemRuleUpdateParams]. */
class Builder internal constructor() {
private var ruleId: String? = null
@@ -71,15 +71,14 @@ private constructor(
private var additionalQueryParams: QueryParams.Builder = QueryParams.builder()
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 }
@@ -229,12 +228,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(),
@@ -404,7 +403,7 @@ private constructor(
return true
}
- return other is HrisCompanyPayStatementItemRuleUpdateParams &&
+ return other is HrisPayStatementItemRuleUpdateParams &&
ruleId == other.ruleId &&
entityIds == other.entityIds &&
body == other.body &&
@@ -416,5 +415,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-kotlin-core/src/main/kotlin/com/tryfinch/api/models/PayStatementResponseBody.kt b/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/models/PayStatementData.kt
similarity index 94%
rename from finch-kotlin-core/src/main/kotlin/com/tryfinch/api/models/PayStatementResponseBody.kt
rename to finch-kotlin-core/src/main/kotlin/com/tryfinch/api/models/PayStatementData.kt
index 1b897bdce..aee0de22e 100644
--- a/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/models/PayStatementResponseBody.kt
+++ b/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/models/PayStatementData.kt
@@ -17,7 +17,7 @@ import com.tryfinch.api.errors.FinchInvalidDataException
import java.util.Collections
import java.util.Objects
-class PayStatementResponseBody
+class PayStatementData
@JsonCreator(mode = JsonCreator.Mode.DISABLED)
private constructor(
private val paging: JsonField,
@@ -76,7 +76,7 @@ private constructor(
companion object {
/**
- * Returns a mutable builder for constructing an instance of [PayStatementResponseBody].
+ * Returns a mutable builder for constructing an instance of [PayStatementData].
*
* The following fields are required:
* ```kotlin
@@ -87,17 +87,17 @@ private constructor(
fun builder() = Builder()
}
- /** A builder for [PayStatementResponseBody]. */
+ /** A builder for [PayStatementData]. */
class Builder internal constructor() {
private var paging: JsonField? = null
private var payStatements: JsonField>? = null
private var additionalProperties: MutableMap = mutableMapOf()
- internal fun from(payStatementResponseBody: PayStatementResponseBody) = apply {
- paging = payStatementResponseBody.paging
- payStatements = payStatementResponseBody.payStatements.map { it.toMutableList() }
- additionalProperties = payStatementResponseBody.additionalProperties.toMutableMap()
+ internal fun from(payStatementData: PayStatementData) = apply {
+ paging = payStatementData.paging
+ payStatements = payStatementData.payStatements.map { it.toMutableList() }
+ additionalProperties = payStatementData.additionalProperties.toMutableMap()
}
fun paging(paging: Paging) = paging(JsonField.of(paging))
@@ -156,7 +156,7 @@ private constructor(
}
/**
- * Returns an immutable instance of [PayStatementResponseBody].
+ * Returns an immutable instance of [PayStatementData].
*
* Further updates to this [Builder] will not mutate the returned instance.
*
@@ -168,8 +168,8 @@ private constructor(
*
* @throws IllegalStateException if any required field is unset.
*/
- fun build(): PayStatementResponseBody =
- PayStatementResponseBody(
+ fun build(): PayStatementData =
+ PayStatementData(
checkRequired("paging", paging),
checkRequired("payStatements", payStatements).map { it.toImmutable() },
additionalProperties.toMutableMap(),
@@ -186,7 +186,7 @@ private constructor(
* @throws FinchInvalidDataException if any value type in this object doesn't match its expected
* type.
*/
- fun validate(): PayStatementResponseBody = apply {
+ fun validate(): PayStatementData = apply {
if (validated) {
return@apply
}
@@ -416,7 +416,7 @@ private constructor(
return true
}
- return other is PayStatementResponseBody &&
+ return other is PayStatementData &&
paging == other.paging &&
payStatements == other.payStatements &&
additionalProperties == other.additionalProperties
@@ -427,5 +427,5 @@ private constructor(
override fun hashCode(): Int = hashCode
override fun toString() =
- "PayStatementResponseBody{paging=$paging, payStatements=$payStatements, additionalProperties=$additionalProperties}"
+ "PayStatementData{paging=$paging, payStatements=$payStatements, additionalProperties=$additionalProperties}"
}
diff --git a/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/models/PayStatementResponse.kt b/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/models/PayStatementResponse.kt
index bbe9b23c0..4f1f5e1e0 100644
--- a/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/models/PayStatementResponse.kt
+++ b/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/models/PayStatementResponse.kt
@@ -133,9 +133,9 @@ private constructor(
*/
fun body(body: JsonField) = apply { this.body = body }
- /** Alias for calling [body] with `Body.ofPayStatementResponse(payStatementResponse)`. */
- fun body(payStatementResponse: PayStatementResponseBody) =
- body(Body.ofPayStatementResponse(payStatementResponse))
+ /** Alias for calling [body] with `Body.ofPayStatementData(payStatementData)`. */
+ fun body(payStatementData: PayStatementData) =
+ body(Body.ofPayStatementData(payStatementData))
/** Alias for calling [body] with `Body.ofBatchError(batchError)`. */
fun body(batchError: Body.BatchError) = body(Body.ofBatchError(batchError))
@@ -253,27 +253,26 @@ private constructor(
@JsonSerialize(using = Body.Serializer::class)
class Body
private constructor(
- private val payStatementResponse: PayStatementResponseBody? = null,
+ private val payStatementData: PayStatementData? = null,
private val batchError: BatchError? = null,
private val payStatementDataSyncInProgress: PayStatementDataSyncInProgress? = null,
private val _json: JsonValue? = null,
) {
- fun payStatementResponse(): PayStatementResponseBody? = payStatementResponse
+ fun payStatementData(): PayStatementData? = payStatementData
fun batchError(): BatchError? = batchError
fun payStatementDataSyncInProgress(): PayStatementDataSyncInProgress? =
payStatementDataSyncInProgress
- fun isPayStatementResponse(): Boolean = payStatementResponse != null
+ fun isPayStatementData(): Boolean = payStatementData != null
fun isBatchError(): Boolean = batchError != null
fun isPayStatementDataSyncInProgress(): Boolean = payStatementDataSyncInProgress != null
- fun asPayStatementResponse(): PayStatementResponseBody =
- payStatementResponse.getOrThrow("payStatementResponse")
+ fun asPayStatementData(): PayStatementData = payStatementData.getOrThrow("payStatementData")
fun asBatchError(): BatchError = batchError.getOrThrow("batchError")
@@ -292,7 +291,7 @@ private constructor(
* import com.tryfinch.api.core.JsonValue
*
* val result: String? = body.accept(object : Body.Visitor {
- * override fun visitPayStatementResponse(payStatementResponse: PayStatementResponseBody): String? = payStatementResponse.toString()
+ * override fun visitPayStatementData(payStatementData: PayStatementData): String? = payStatementData.toString()
*
* // ...
*
@@ -308,8 +307,7 @@ private constructor(
*/
fun accept(visitor: Visitor): T =
when {
- payStatementResponse != null ->
- visitor.visitPayStatementResponse(payStatementResponse)
+ payStatementData != null -> visitor.visitPayStatementData(payStatementData)
batchError != null -> visitor.visitBatchError(batchError)
payStatementDataSyncInProgress != null ->
visitor.visitPayStatementDataSyncInProgress(payStatementDataSyncInProgress)
@@ -334,10 +332,8 @@ private constructor(
accept(
object : Visitor {
- override fun visitPayStatementResponse(
- payStatementResponse: PayStatementResponseBody
- ) {
- payStatementResponse.validate()
+ override fun visitPayStatementData(payStatementData: PayStatementData) {
+ payStatementData.validate()
}
override fun visitBatchError(batchError: BatchError) {
@@ -371,9 +367,8 @@ private constructor(
internal fun validity(): Int =
accept(
object : Visitor {
- override fun visitPayStatementResponse(
- payStatementResponse: PayStatementResponseBody
- ) = payStatementResponse.validity()
+ override fun visitPayStatementData(payStatementData: PayStatementData) =
+ payStatementData.validity()
override fun visitBatchError(batchError: BatchError) = batchError.validity()
@@ -391,17 +386,17 @@ private constructor(
}
return other is Body &&
- payStatementResponse == other.payStatementResponse &&
+ payStatementData == other.payStatementData &&
batchError == other.batchError &&
payStatementDataSyncInProgress == other.payStatementDataSyncInProgress
}
override fun hashCode(): Int =
- Objects.hash(payStatementResponse, batchError, payStatementDataSyncInProgress)
+ Objects.hash(payStatementData, batchError, payStatementDataSyncInProgress)
override fun toString(): String =
when {
- payStatementResponse != null -> "Body{payStatementResponse=$payStatementResponse}"
+ payStatementData != null -> "Body{payStatementData=$payStatementData}"
batchError != null -> "Body{batchError=$batchError}"
payStatementDataSyncInProgress != null ->
"Body{payStatementDataSyncInProgress=$payStatementDataSyncInProgress}"
@@ -411,8 +406,8 @@ private constructor(
companion object {
- fun ofPayStatementResponse(payStatementResponse: PayStatementResponseBody) =
- Body(payStatementResponse = payStatementResponse)
+ fun ofPayStatementData(payStatementData: PayStatementData) =
+ Body(payStatementData = payStatementData)
fun ofBatchError(batchError: BatchError) = Body(batchError = batchError)
@@ -424,7 +419,7 @@ private constructor(
/** An interface that defines how to map each variant of [Body] to a value of type [T]. */
interface Visitor {
- fun visitPayStatementResponse(payStatementResponse: PayStatementResponseBody): T
+ fun visitPayStatementData(payStatementData: PayStatementData): T
fun visitBatchError(batchError: BatchError): T
@@ -453,8 +448,8 @@ private constructor(
val bestMatches =
sequenceOf(
- tryDeserialize(node, jacksonTypeRef())?.let {
- Body(payStatementResponse = it, _json = json)
+ tryDeserialize(node, jacksonTypeRef())?.let {
+ Body(payStatementData = it, _json = json)
},
tryDeserialize(node, jacksonTypeRef())?.let {
Body(batchError = it, _json = json)
@@ -486,8 +481,7 @@ private constructor(
provider: SerializerProvider,
) {
when {
- value.payStatementResponse != null ->
- generator.writeObject(value.payStatementResponse)
+ value.payStatementData != null -> generator.writeObject(value.payStatementData)
value.batchError != null -> generator.writeObject(value.batchError)
value.payStatementDataSyncInProgress != null ->
generator.writeObject(value.payStatementDataSyncInProgress)
diff --git a/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/services/async/HrisServiceAsync.kt b/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/services/async/HrisServiceAsync.kt
index a5a1237e3..fd848c05d 100644
--- a/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/services/async/HrisServiceAsync.kt
+++ b/finch-kotlin-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
@@ -28,6 +29,8 @@ interface HrisServiceAsync {
fun company(): CompanyServiceAsync
+ fun payStatementItem(): PayStatementItemServiceAsync
+
fun directory(): DirectoryServiceAsync
fun individuals(): IndividualServiceAsync
@@ -54,6 +57,8 @@ interface HrisServiceAsync {
fun company(): CompanyServiceAsync.WithRawResponse
+ fun payStatementItem(): PayStatementItemServiceAsync.WithRawResponse
+
fun directory(): DirectoryServiceAsync.WithRawResponse
fun individuals(): IndividualServiceAsync.WithRawResponse
diff --git a/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/services/async/HrisServiceAsyncImpl.kt b/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/services/async/HrisServiceAsyncImpl.kt
index ea259aa03..b0856a054 100644
--- a/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/services/async/HrisServiceAsyncImpl.kt
+++ b/finch-kotlin-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
@@ -29,6 +31,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)
}
@@ -58,6 +64,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
@@ -79,6 +87,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)
}
@@ -116,6 +128,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-kotlin-core/src/main/kotlin/com/tryfinch/api/services/async/hris/CompanyServiceAsync.kt b/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/services/async/hris/CompanyServiceAsync.kt
index 51eea5de3..4781516e0 100644
--- a/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/services/async/hris/CompanyServiceAsync.kt
+++ b/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/services/async/hris/CompanyServiceAsync.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.async.hris.company.PayStatementItemServiceAsync
interface CompanyServiceAsync {
@@ -24,8 +23,6 @@ interface CompanyServiceAsync {
*/
fun withOptions(modifier: (ClientOptions.Builder) -> Unit): CompanyServiceAsync
- fun payStatementItem(): PayStatementItemServiceAsync
-
/** Read basic company data */
suspend fun retrieve(
params: HrisCompanyRetrieveParams = HrisCompanyRetrieveParams.none(),
@@ -50,8 +47,6 @@ interface CompanyServiceAsync {
modifier: (ClientOptions.Builder) -> Unit
): 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-kotlin-core/src/main/kotlin/com/tryfinch/api/services/async/hris/CompanyServiceAsyncImpl.kt b/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/services/async/hris/CompanyServiceAsyncImpl.kt
index 94ce29845..5e1ced0ae 100644
--- a/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/services/async/hris/CompanyServiceAsyncImpl.kt
+++ b/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/services/async/hris/CompanyServiceAsyncImpl.kt
@@ -16,8 +16,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
class CompanyServiceAsyncImpl internal constructor(private val clientOptions: ClientOptions) :
CompanyServiceAsync {
@@ -26,17 +24,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: (ClientOptions.Builder) -> Unit): CompanyServiceAsync =
CompanyServiceAsyncImpl(clientOptions.toBuilder().apply(modifier).build())
- override fun payStatementItem(): PayStatementItemServiceAsync = payStatementItem
-
override suspend fun retrieve(
params: HrisCompanyRetrieveParams,
requestOptions: RequestOptions,
@@ -50,10 +42,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: (ClientOptions.Builder) -> Unit
): CompanyServiceAsync.WithRawResponse =
@@ -61,9 +49,6 @@ class CompanyServiceAsyncImpl internal constructor(private val clientOptions: Cl
clientOptions.toBuilder().apply(modifier).build()
)
- override fun payStatementItem(): PayStatementItemServiceAsync.WithRawResponse =
- payStatementItem
-
private val retrieveHandler: Handler =
jsonHandler(clientOptions.jsonMapper)
diff --git a/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/services/async/hris/company/PayStatementItemServiceAsync.kt b/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/services/async/hris/PayStatementItemServiceAsync.kt
similarity index 66%
rename from finch-kotlin-core/src/main/kotlin/com/tryfinch/api/services/async/hris/company/PayStatementItemServiceAsync.kt
rename to finch-kotlin-core/src/main/kotlin/com/tryfinch/api/services/async/hris/PayStatementItemServiceAsync.kt
index 20ecebbb7..b3cce52c8 100644
--- a/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/services/async/hris/company/PayStatementItemServiceAsync.kt
+++ b/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/services/async/hris/PayStatementItemServiceAsync.kt
@@ -1,14 +1,14 @@
// 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.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.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
interface PayStatementItemServiceAsync {
@@ -30,14 +30,13 @@ interface PayStatementItemServiceAsync {
* Retrieve a list of detailed pay statement items for the access token's connection account.
*/
suspend fun list(
- params: HrisCompanyPayStatementItemListParams =
- HrisCompanyPayStatementItemListParams.none(),
+ params: HrisPayStatementItemListParams = HrisPayStatementItemListParams.none(),
requestOptions: RequestOptions = RequestOptions.none(),
- ): HrisCompanyPayStatementItemListPageAsync
+ ): HrisPayStatementItemListPageAsync
/** @see list */
- suspend fun list(requestOptions: RequestOptions): HrisCompanyPayStatementItemListPageAsync =
- list(HrisCompanyPayStatementItemListParams.none(), requestOptions)
+ suspend fun list(requestOptions: RequestOptions): HrisPayStatementItemListPageAsync =
+ list(HrisPayStatementItemListParams.none(), requestOptions)
/**
* A view of [PayStatementItemServiceAsync] that provides access to raw HTTP responses for each
@@ -62,16 +61,15 @@ interface PayStatementItemServiceAsync {
*/
@MustBeClosed
suspend fun list(
- params: HrisCompanyPayStatementItemListParams =
- HrisCompanyPayStatementItemListParams.none(),
+ params: HrisPayStatementItemListParams = HrisPayStatementItemListParams.none(),
requestOptions: RequestOptions = RequestOptions.none(),
- ): HttpResponseFor
+ ): HttpResponseFor
/** @see list */
@MustBeClosed
suspend fun list(
requestOptions: RequestOptions
- ): HttpResponseFor =
- list(HrisCompanyPayStatementItemListParams.none(), requestOptions)
+ ): HttpResponseFor =
+ list(HrisPayStatementItemListParams.none(), requestOptions)
}
}
diff --git a/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/services/async/hris/company/PayStatementItemServiceAsyncImpl.kt b/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/services/async/hris/PayStatementItemServiceAsyncImpl.kt
similarity index 78%
rename from finch-kotlin-core/src/main/kotlin/com/tryfinch/api/services/async/hris/company/PayStatementItemServiceAsyncImpl.kt
rename to finch-kotlin-core/src/main/kotlin/com/tryfinch/api/services/async/hris/PayStatementItemServiceAsyncImpl.kt
index 5cf35d4dc..3f071ec94 100644
--- a/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/services/async/hris/company/PayStatementItemServiceAsyncImpl.kt
+++ b/finch-kotlin-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
@@ -14,11 +14,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
class PayStatementItemServiceAsyncImpl
internal constructor(private val clientOptions: ClientOptions) : PayStatementItemServiceAsync {
@@ -39,9 +39,9 @@ internal constructor(private val clientOptions: ClientOptions) : PayStatementIte
override fun rules(): RuleServiceAsync = rules
override suspend fun list(
- params: HrisCompanyPayStatementItemListParams,
+ params: HrisPayStatementItemListParams,
requestOptions: RequestOptions,
- ): HrisCompanyPayStatementItemListPageAsync =
+ ): HrisPayStatementItemListPageAsync =
// get /employer/pay-statement-item
withRawResponse().list(params, requestOptions).parse()
@@ -64,13 +64,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 suspend fun list(
- params: HrisCompanyPayStatementItemListParams,
+ params: HrisPayStatementItemListParams,
requestOptions: RequestOptions,
- ): HttpResponseFor {
+ ): HttpResponseFor {
val request =
HttpRequest.builder()
.method(HttpMethod.GET)
@@ -89,7 +89,7 @@ internal constructor(private val clientOptions: ClientOptions) : PayStatementIte
}
}
.let {
- HrisCompanyPayStatementItemListPageAsync.builder()
+ HrisPayStatementItemListPageAsync.builder()
.service(PayStatementItemServiceAsyncImpl(clientOptions))
.params(params)
.response(it)
diff --git a/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/services/async/hris/company/payStatementItem/RuleServiceAsync.kt b/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/services/async/hris/payStatementItem/RuleServiceAsync.kt
similarity index 67%
rename from finch-kotlin-core/src/main/kotlin/com/tryfinch/api/services/async/hris/company/payStatementItem/RuleServiceAsync.kt
rename to finch-kotlin-core/src/main/kotlin/com/tryfinch/api/services/async/hris/payStatementItem/RuleServiceAsync.kt
index 676c8af4a..654318e5a 100644
--- a/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/services/async/hris/company/payStatementItem/RuleServiceAsync.kt
+++ b/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/services/async/hris/payStatementItem/RuleServiceAsync.kt
@@ -1,16 +1,16 @@
// 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.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.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
@@ -36,61 +36,57 @@ interface RuleServiceAsync {
* available.
*/
suspend fun create(
- params: HrisCompanyPayStatementItemRuleCreateParams =
- HrisCompanyPayStatementItemRuleCreateParams.none(),
+ params: HrisPayStatementItemRuleCreateParams = HrisPayStatementItemRuleCreateParams.none(),
requestOptions: RequestOptions = RequestOptions.none(),
): RuleCreateResponse
/** @see create */
suspend fun create(requestOptions: RequestOptions): RuleCreateResponse =
- create(HrisCompanyPayStatementItemRuleCreateParams.none(), requestOptions)
+ create(HrisPayStatementItemRuleCreateParams.none(), requestOptions)
/** Update a rule for a pay statement item. */
suspend 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 */
suspend fun update(
- params: HrisCompanyPayStatementItemRuleUpdateParams,
+ params: HrisPayStatementItemRuleUpdateParams,
requestOptions: RequestOptions = RequestOptions.none(),
): RuleUpdateResponse
/** @see update */
suspend fun update(ruleId: String, requestOptions: RequestOptions): RuleUpdateResponse =
- update(ruleId, HrisCompanyPayStatementItemRuleUpdateParams.none(), requestOptions)
+ update(ruleId, HrisPayStatementItemRuleUpdateParams.none(), requestOptions)
/** List all rules of a connection account. */
suspend fun list(
- params: HrisCompanyPayStatementItemRuleListParams =
- HrisCompanyPayStatementItemRuleListParams.none(),
+ params: HrisPayStatementItemRuleListParams = HrisPayStatementItemRuleListParams.none(),
requestOptions: RequestOptions = RequestOptions.none(),
- ): HrisCompanyPayStatementItemRuleListPageAsync
+ ): HrisPayStatementItemRuleListPageAsync
/** @see list */
- suspend fun list(requestOptions: RequestOptions): HrisCompanyPayStatementItemRuleListPageAsync =
- list(HrisCompanyPayStatementItemRuleListParams.none(), requestOptions)
+ suspend fun list(requestOptions: RequestOptions): HrisPayStatementItemRuleListPageAsync =
+ list(HrisPayStatementItemRuleListParams.none(), requestOptions)
/** Delete a rule for a pay statement item. */
suspend 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 */
suspend fun delete(
- params: HrisCompanyPayStatementItemRuleDeleteParams,
+ params: HrisPayStatementItemRuleDeleteParams,
requestOptions: RequestOptions = RequestOptions.none(),
): RuleDeleteResponse
/** @see delete */
suspend fun delete(ruleId: String, requestOptions: RequestOptions): RuleDeleteResponse =
- 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 {
@@ -108,15 +104,15 @@ interface RuleServiceAsync {
*/
@MustBeClosed
suspend fun create(
- params: HrisCompanyPayStatementItemRuleCreateParams =
- HrisCompanyPayStatementItemRuleCreateParams.none(),
+ params: HrisPayStatementItemRuleCreateParams =
+ HrisPayStatementItemRuleCreateParams.none(),
requestOptions: RequestOptions = RequestOptions.none(),
): HttpResponseFor
/** @see create */
@MustBeClosed
suspend 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
@@ -125,8 +121,8 @@ interface RuleServiceAsync {
@MustBeClosed
suspend fun update(
ruleId: String,
- params: HrisCompanyPayStatementItemRuleUpdateParams =
- HrisCompanyPayStatementItemRuleUpdateParams.none(),
+ params: HrisPayStatementItemRuleUpdateParams =
+ HrisPayStatementItemRuleUpdateParams.none(),
requestOptions: RequestOptions = RequestOptions.none(),
): HttpResponseFor =
update(params.toBuilder().ruleId(ruleId).build(), requestOptions)
@@ -134,7 +130,7 @@ interface RuleServiceAsync {
/** @see update */
@MustBeClosed
suspend fun update(
- params: HrisCompanyPayStatementItemRuleUpdateParams,
+ params: HrisPayStatementItemRuleUpdateParams,
requestOptions: RequestOptions = RequestOptions.none(),
): HttpResponseFor
@@ -144,7 +140,7 @@ interface RuleServiceAsync {
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
@@ -152,17 +148,16 @@ interface RuleServiceAsync {
*/
@MustBeClosed
suspend fun list(
- params: HrisCompanyPayStatementItemRuleListParams =
- HrisCompanyPayStatementItemRuleListParams.none(),
+ params: HrisPayStatementItemRuleListParams = HrisPayStatementItemRuleListParams.none(),
requestOptions: RequestOptions = RequestOptions.none(),
- ): HttpResponseFor
+ ): HttpResponseFor
/** @see list */
@MustBeClosed
suspend 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
@@ -171,8 +166,8 @@ interface RuleServiceAsync {
@MustBeClosed
suspend fun delete(
ruleId: String,
- params: HrisCompanyPayStatementItemRuleDeleteParams =
- HrisCompanyPayStatementItemRuleDeleteParams.none(),
+ params: HrisPayStatementItemRuleDeleteParams =
+ HrisPayStatementItemRuleDeleteParams.none(),
requestOptions: RequestOptions = RequestOptions.none(),
): HttpResponseFor =
delete(params.toBuilder().ruleId(ruleId).build(), requestOptions)
@@ -180,7 +175,7 @@ interface RuleServiceAsync {
/** @see delete */
@MustBeClosed
suspend fun delete(
- params: HrisCompanyPayStatementItemRuleDeleteParams,
+ params: HrisPayStatementItemRuleDeleteParams,
requestOptions: RequestOptions = RequestOptions.none(),
): HttpResponseFor
@@ -190,6 +185,6 @@ interface RuleServiceAsync {
ruleId: String,
requestOptions: RequestOptions,
): HttpResponseFor =
- delete(ruleId, HrisCompanyPayStatementItemRuleDeleteParams.none(), requestOptions)
+ delete(ruleId, HrisPayStatementItemRuleDeleteParams.none(), requestOptions)
}
}
diff --git a/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/services/async/hris/company/payStatementItem/RuleServiceAsyncImpl.kt b/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/services/async/hris/payStatementItem/RuleServiceAsyncImpl.kt
similarity index 84%
rename from finch-kotlin-core/src/main/kotlin/com/tryfinch/api/services/async/hris/company/payStatementItem/RuleServiceAsyncImpl.kt
rename to finch-kotlin-core/src/main/kotlin/com/tryfinch/api/services/async/hris/payStatementItem/RuleServiceAsyncImpl.kt
index 4553aa73b..9329334c6 100644
--- a/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/services/async/hris/company/payStatementItem/RuleServiceAsyncImpl.kt
+++ b/finch-kotlin-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
@@ -16,12 +16,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
@@ -39,28 +39,28 @@ class RuleServiceAsyncImpl internal constructor(private val clientOptions: Clien
RuleServiceAsyncImpl(clientOptions.toBuilder().apply(modifier).build())
override suspend fun create(
- params: HrisCompanyPayStatementItemRuleCreateParams,
+ params: HrisPayStatementItemRuleCreateParams,
requestOptions: RequestOptions,
): RuleCreateResponse =
// post /employer/pay-statement-item/rule
withRawResponse().create(params, requestOptions).parse()
override suspend fun update(
- params: HrisCompanyPayStatementItemRuleUpdateParams,
+ params: HrisPayStatementItemRuleUpdateParams,
requestOptions: RequestOptions,
): RuleUpdateResponse =
// put /employer/pay-statement-item/rule/{rule_id}
withRawResponse().update(params, requestOptions).parse()
override suspend fun list(
- params: HrisCompanyPayStatementItemRuleListParams,
+ params: HrisPayStatementItemRuleListParams,
requestOptions: RequestOptions,
- ): HrisCompanyPayStatementItemRuleListPageAsync =
+ ): HrisPayStatementItemRuleListPageAsync =
// get /employer/pay-statement-item/rule
withRawResponse().list(params, requestOptions).parse()
override suspend fun delete(
- params: HrisCompanyPayStatementItemRuleDeleteParams,
+ params: HrisPayStatementItemRuleDeleteParams,
requestOptions: RequestOptions,
): RuleDeleteResponse =
// delete /employer/pay-statement-item/rule/{rule_id}
@@ -83,7 +83,7 @@ class RuleServiceAsyncImpl internal constructor(private val clientOptions: Clien
jsonHandler(clientOptions.jsonMapper)
override suspend fun create(
- params: HrisCompanyPayStatementItemRuleCreateParams,
+ params: HrisPayStatementItemRuleCreateParams,
requestOptions: RequestOptions,
): HttpResponseFor {
val request =
@@ -111,7 +111,7 @@ class RuleServiceAsyncImpl internal constructor(private val clientOptions: Clien
jsonHandler(clientOptions.jsonMapper)
override suspend fun update(
- params: HrisCompanyPayStatementItemRuleUpdateParams,
+ params: HrisPayStatementItemRuleUpdateParams,
requestOptions: RequestOptions,
): HttpResponseFor {
// We check here instead of in the params builder because this can be specified
@@ -138,13 +138,13 @@ class RuleServiceAsyncImpl internal constructor(private val clientOptions: Clien
}
}
- private val listHandler: Handler =
- jsonHandler(clientOptions.jsonMapper)
+ private val listHandler: Handler =
+ jsonHandler(clientOptions.jsonMapper)
override suspend fun list(
- params: HrisCompanyPayStatementItemRuleListParams,
+ params: HrisPayStatementItemRuleListParams,
requestOptions: RequestOptions,
- ): HttpResponseFor {
+ ): HttpResponseFor {
val request =
HttpRequest.builder()
.method(HttpMethod.GET)
@@ -163,7 +163,7 @@ class RuleServiceAsyncImpl internal constructor(private val clientOptions: Clien
}
}
.let {
- HrisCompanyPayStatementItemRuleListPageAsync.builder()
+ HrisPayStatementItemRuleListPageAsync.builder()
.service(RuleServiceAsyncImpl(clientOptions))
.params(params)
.response(it)
@@ -176,7 +176,7 @@ class RuleServiceAsyncImpl internal constructor(private val clientOptions: Clien
jsonHandler(clientOptions.jsonMapper)
override suspend 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-kotlin-core/src/main/kotlin/com/tryfinch/api/services/blocking/HrisService.kt b/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/services/blocking/HrisService.kt
index cc96b8c1e..01f0b0056 100644
--- a/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/services/blocking/HrisService.kt
+++ b/finch-kotlin-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
@@ -28,6 +29,8 @@ interface HrisService {
fun company(): CompanyService
+ fun payStatementItem(): PayStatementItemService
+
fun directory(): DirectoryService
fun individuals(): IndividualService
@@ -54,6 +57,8 @@ interface HrisService {
fun company(): CompanyService.WithRawResponse
+ fun payStatementItem(): PayStatementItemService.WithRawResponse
+
fun directory(): DirectoryService.WithRawResponse
fun individuals(): IndividualService.WithRawResponse
diff --git a/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/services/blocking/HrisServiceImpl.kt b/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/services/blocking/HrisServiceImpl.kt
index addd65949..ed25a05f8 100644
--- a/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/services/blocking/HrisServiceImpl.kt
+++ b/finch-kotlin-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
@@ -28,6 +30,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) }
@@ -51,6 +57,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
@@ -72,6 +80,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)
}
@@ -107,6 +119,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-kotlin-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/CompanyService.kt b/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/CompanyService.kt
index e787fcd3a..f8d60c9fd 100644
--- a/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/CompanyService.kt
+++ b/finch-kotlin-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
interface CompanyService {
@@ -24,8 +23,6 @@ interface CompanyService {
*/
fun withOptions(modifier: (ClientOptions.Builder) -> Unit): CompanyService
- fun payStatementItem(): PayStatementItemService
-
/** Read basic company data */
fun retrieve(
params: HrisCompanyRetrieveParams = HrisCompanyRetrieveParams.none(),
@@ -46,8 +43,6 @@ interface CompanyService {
*/
fun withOptions(modifier: (ClientOptions.Builder) -> Unit): 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-kotlin-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/CompanyServiceImpl.kt b/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/CompanyServiceImpl.kt
index b7bc98153..03e2d24c6 100644
--- a/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/CompanyServiceImpl.kt
+++ b/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/CompanyServiceImpl.kt
@@ -16,8 +16,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
class CompanyServiceImpl internal constructor(private val clientOptions: ClientOptions) :
CompanyService {
@@ -26,17 +24,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: (ClientOptions.Builder) -> Unit): CompanyService =
CompanyServiceImpl(clientOptions.toBuilder().apply(modifier).build())
- override fun payStatementItem(): PayStatementItemService = payStatementItem
-
override fun retrieve(
params: HrisCompanyRetrieveParams,
requestOptions: RequestOptions,
@@ -50,10 +42,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: (ClientOptions.Builder) -> Unit
): CompanyService.WithRawResponse =
@@ -61,8 +49,6 @@ class CompanyServiceImpl internal constructor(private val clientOptions: ClientO
clientOptions.toBuilder().apply(modifier).build()
)
- override fun payStatementItem(): PayStatementItemService.WithRawResponse = payStatementItem
-
private val retrieveHandler: Handler =
jsonHandler(clientOptions.jsonMapper)
diff --git a/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/company/PayStatementItemService.kt b/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/PayStatementItemService.kt
similarity index 64%
rename from finch-kotlin-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/company/PayStatementItemService.kt
rename to finch-kotlin-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/PayStatementItemService.kt
index ae3a0f8f7..d0820069c 100644
--- a/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/company/PayStatementItemService.kt
+++ b/finch-kotlin-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
interface PayStatementItemService {
@@ -30,14 +30,13 @@ interface PayStatementItemService {
* Retrieve a list of detailed pay statement items for the access token's connection account.
*/
fun list(
- params: HrisCompanyPayStatementItemListParams =
- HrisCompanyPayStatementItemListParams.none(),
+ params: HrisPayStatementItemListParams = HrisPayStatementItemListParams.none(),
requestOptions: RequestOptions = RequestOptions.none(),
- ): HrisCompanyPayStatementItemListPage
+ ): HrisPayStatementItemListPage
/** @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
@@ -62,16 +61,13 @@ interface PayStatementItemService {
*/
@MustBeClosed
fun list(
- params: HrisCompanyPayStatementItemListParams =
- HrisCompanyPayStatementItemListParams.none(),
+ params: HrisPayStatementItemListParams = HrisPayStatementItemListParams.none(),
requestOptions: RequestOptions = RequestOptions.none(),
- ): HttpResponseFor
+ ): HttpResponseFor
/** @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-kotlin-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/company/PayStatementItemServiceImpl.kt b/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/PayStatementItemServiceImpl.kt
similarity index 78%
rename from finch-kotlin-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/company/PayStatementItemServiceImpl.kt
rename to finch-kotlin-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/PayStatementItemServiceImpl.kt
index 22cd1eedc..d980ae825 100644
--- a/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/company/PayStatementItemServiceImpl.kt
+++ b/finch-kotlin-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
@@ -14,11 +14,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
class PayStatementItemServiceImpl internal constructor(private val clientOptions: ClientOptions) :
PayStatementItemService {
@@ -37,9 +37,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()
@@ -62,13 +62,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)
@@ -87,7 +87,7 @@ class PayStatementItemServiceImpl internal constructor(private val clientOptions
}
}
.let {
- HrisCompanyPayStatementItemListPage.builder()
+ HrisPayStatementItemListPage.builder()
.service(PayStatementItemServiceImpl(clientOptions))
.params(params)
.response(it)
diff --git a/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/company/payStatementItem/RuleService.kt b/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/payStatementItem/RuleService.kt
similarity index 66%
rename from finch-kotlin-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/company/payStatementItem/RuleService.kt
rename to finch-kotlin-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/payStatementItem/RuleService.kt
index 506ce961a..37f5feecd 100644
--- a/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/company/payStatementItem/RuleService.kt
+++ b/finch-kotlin-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,61 +36,57 @@ interface RuleService {
* available.
*/
fun create(
- params: HrisCompanyPayStatementItemRuleCreateParams =
- HrisCompanyPayStatementItemRuleCreateParams.none(),
+ params: HrisPayStatementItemRuleCreateParams = HrisPayStatementItemRuleCreateParams.none(),
requestOptions: RequestOptions = RequestOptions.none(),
): RuleCreateResponse
/** @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,
- params: HrisCompanyPayStatementItemRuleUpdateParams =
- HrisCompanyPayStatementItemRuleUpdateParams.none(),
+ params: HrisPayStatementItemRuleUpdateParams = HrisPayStatementItemRuleUpdateParams.none(),
requestOptions: RequestOptions = RequestOptions.none(),
): RuleUpdateResponse = update(params.toBuilder().ruleId(ruleId).build(), requestOptions)
/** @see update */
fun update(
- params: HrisCompanyPayStatementItemRuleUpdateParams,
+ params: HrisPayStatementItemRuleUpdateParams,
requestOptions: RequestOptions = RequestOptions.none(),
): RuleUpdateResponse
/** @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(
- params: HrisCompanyPayStatementItemRuleListParams =
- HrisCompanyPayStatementItemRuleListParams.none(),
+ params: HrisPayStatementItemRuleListParams = HrisPayStatementItemRuleListParams.none(),
requestOptions: RequestOptions = RequestOptions.none(),
- ): HrisCompanyPayStatementItemRuleListPage
+ ): HrisPayStatementItemRuleListPage
/** @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,
- params: HrisCompanyPayStatementItemRuleDeleteParams =
- HrisCompanyPayStatementItemRuleDeleteParams.none(),
+ params: HrisPayStatementItemRuleDeleteParams = HrisPayStatementItemRuleDeleteParams.none(),
requestOptions: RequestOptions = RequestOptions.none(),
): RuleDeleteResponse = delete(params.toBuilder().ruleId(ruleId).build(), requestOptions)
/** @see delete */
fun delete(
- params: HrisCompanyPayStatementItemRuleDeleteParams,
+ params: HrisPayStatementItemRuleDeleteParams,
requestOptions: RequestOptions = RequestOptions.none(),
): RuleDeleteResponse
/** @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 {
@@ -108,15 +104,15 @@ interface RuleService {
*/
@MustBeClosed
fun create(
- params: HrisCompanyPayStatementItemRuleCreateParams =
- HrisCompanyPayStatementItemRuleCreateParams.none(),
+ params: HrisPayStatementItemRuleCreateParams =
+ HrisPayStatementItemRuleCreateParams.none(),
requestOptions: RequestOptions = RequestOptions.none(),
): HttpResponseFor
/** @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
@@ -125,8 +121,8 @@ interface RuleService {
@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)
@@ -134,7 +130,7 @@ interface RuleService {
/** @see update */
@MustBeClosed
fun update(
- params: HrisCompanyPayStatementItemRuleUpdateParams,
+ params: HrisPayStatementItemRuleUpdateParams,
requestOptions: RequestOptions = RequestOptions.none(),
): HttpResponseFor
@@ -144,7 +140,7 @@ 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
@@ -152,17 +148,16 @@ interface RuleService {
*/
@MustBeClosed
fun list(
- params: HrisCompanyPayStatementItemRuleListParams =
- HrisCompanyPayStatementItemRuleListParams.none(),
+ params: HrisPayStatementItemRuleListParams = HrisPayStatementItemRuleListParams.none(),
requestOptions: RequestOptions = RequestOptions.none(),
- ): HttpResponseFor
+ ): HttpResponseFor
/** @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
@@ -171,8 +166,8 @@ interface RuleService {
@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)
@@ -180,7 +175,7 @@ interface RuleService {
/** @see delete */
@MustBeClosed
fun delete(
- params: HrisCompanyPayStatementItemRuleDeleteParams,
+ params: HrisPayStatementItemRuleDeleteParams,
requestOptions: RequestOptions = RequestOptions.none(),
): HttpResponseFor
@@ -190,6 +185,6 @@ interface RuleService {
ruleId: String,
requestOptions: RequestOptions,
): HttpResponseFor =
- delete(ruleId, HrisCompanyPayStatementItemRuleDeleteParams.none(), requestOptions)
+ delete(ruleId, HrisPayStatementItemRuleDeleteParams.none(), requestOptions)
}
}
diff --git a/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/company/payStatementItem/RuleServiceImpl.kt b/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/payStatementItem/RuleServiceImpl.kt
similarity index 84%
rename from finch-kotlin-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/company/payStatementItem/RuleServiceImpl.kt
rename to finch-kotlin-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/payStatementItem/RuleServiceImpl.kt
index 269ef1485..9df5a8b04 100644
--- a/finch-kotlin-core/src/main/kotlin/com/tryfinch/api/services/blocking/hris/company/payStatementItem/RuleServiceImpl.kt
+++ b/finch-kotlin-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
@@ -16,12 +16,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
@@ -38,28 +38,28 @@ class RuleServiceImpl internal constructor(private val clientOptions: ClientOpti
RuleServiceImpl(clientOptions.toBuilder().apply(modifier).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}
@@ -80,7 +80,7 @@ class RuleServiceImpl internal constructor(private val clientOptions: ClientOpti
jsonHandler(clientOptions.jsonMapper)
override fun create(
- params: HrisCompanyPayStatementItemRuleCreateParams,
+ params: HrisPayStatementItemRuleCreateParams,
requestOptions: RequestOptions,
): HttpResponseFor {
val request =
@@ -108,7 +108,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
@@ -135,13 +135,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)
@@ -160,7 +160,7 @@ class RuleServiceImpl internal constructor(private val clientOptions: ClientOpti
}
}
.let {
- HrisCompanyPayStatementItemRuleListPage.builder()
+ HrisPayStatementItemRuleListPage.builder()
.service(RuleServiceImpl(clientOptions))
.params(params)
.response(it)
@@ -173,7 +173,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-kotlin-core/src/test/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemListPageResponseTest.kt b/finch-kotlin-core/src/test/kotlin/com/tryfinch/api/models/HrisPayStatementItemListPageResponseTest.kt
similarity index 80%
rename from finch-kotlin-core/src/test/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemListPageResponseTest.kt
rename to finch-kotlin-core/src/test/kotlin/com/tryfinch/api/models/HrisPayStatementItemListPageResponseTest.kt
index aca870bd6..5288f7135 100644
--- a/finch-kotlin-core/src/test/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemListPageResponseTest.kt
+++ b/finch-kotlin-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-kotlin-core/src/test/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemListParamsTest.kt b/finch-kotlin-core/src/test/kotlin/com/tryfinch/api/models/HrisPayStatementItemListParamsTest.kt
similarity index 79%
rename from finch-kotlin-core/src/test/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemListParamsTest.kt
rename to finch-kotlin-core/src/test/kotlin/com/tryfinch/api/models/HrisPayStatementItemListParamsTest.kt
index 89f7a40a1..b3f711d40 100644
--- a/finch-kotlin-core/src/test/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemListParamsTest.kt
+++ b/finch-kotlin-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-kotlin-core/src/test/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemRuleCreateParamsTest.kt b/finch-kotlin-core/src/test/kotlin/com/tryfinch/api/models/HrisPayStatementItemRuleCreateParamsTest.kt
similarity index 57%
rename from finch-kotlin-core/src/test/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemRuleCreateParamsTest.kt
rename to finch-kotlin-core/src/test/kotlin/com/tryfinch/api/models/HrisPayStatementItemRuleCreateParamsTest.kt
index 91e91b5a4..d4a190b50 100644
--- a/finch-kotlin-core/src/test/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemRuleCreateParamsTest.kt
+++ b/finch-kotlin-core/src/test/kotlin/com/tryfinch/api/models/HrisPayStatementItemRuleCreateParamsTest.kt
@@ -7,63 +7,58 @@ import com.tryfinch.api.core.http.QueryParams
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()
@@ -78,7 +73,7 @@ internal class HrisCompanyPayStatementItemRuleCreateParamsTest {
@Test
fun queryParamsWithoutOptionalFields() {
- val params = HrisCompanyPayStatementItemRuleCreateParams.builder().build()
+ val params = HrisPayStatementItemRuleCreateParams.builder().build()
val queryParams = params._queryParams()
@@ -88,41 +83,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())
.isEqualTo(
- HrisCompanyPayStatementItemRuleCreateParams.Attributes.builder()
+ HrisPayStatementItemRuleCreateParams.Attributes.builder()
.metadata(
- HrisCompanyPayStatementItemRuleCreateParams.Attributes.Metadata.builder()
+ HrisPayStatementItemRuleCreateParams.Attributes.Metadata.builder()
.putAdditionalProperty("foo", JsonValue.from("bar"))
.build()
)
@@ -130,21 +120,21 @@ internal class HrisCompanyPayStatementItemRuleCreateParamsTest {
)
assertThat(body.conditions())
.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()).isEqualTo("effective_end_date")
assertThat(body.effectiveStartDate()).isEqualTo("effective_start_date")
assertThat(body.entityType())
- .isEqualTo(HrisCompanyPayStatementItemRuleCreateParams.EntityType.PAY_STATEMENT_ITEM)
+ .isEqualTo(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-kotlin-core/src/test/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemRuleDeleteParamsTest.kt b/finch-kotlin-core/src/test/kotlin/com/tryfinch/api/models/HrisPayStatementItemRuleDeleteParamsTest.kt
similarity index 75%
rename from finch-kotlin-core/src/test/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemRuleDeleteParamsTest.kt
rename to finch-kotlin-core/src/test/kotlin/com/tryfinch/api/models/HrisPayStatementItemRuleDeleteParamsTest.kt
index c397df019..4de7c7749 100644
--- a/finch-kotlin-core/src/test/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemRuleDeleteParamsTest.kt
+++ b/finch-kotlin-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-kotlin-core/src/test/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemRuleListPageResponseTest.kt b/finch-kotlin-core/src/test/kotlin/com/tryfinch/api/models/HrisPayStatementItemRuleListPageResponseTest.kt
similarity index 85%
rename from finch-kotlin-core/src/test/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemRuleListPageResponseTest.kt
rename to finch-kotlin-core/src/test/kotlin/com/tryfinch/api/models/HrisPayStatementItemRuleListPageResponseTest.kt
index ef8efe329..dc869a430 100644
--- a/finch-kotlin-core/src/test/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemRuleListPageResponseTest.kt
+++ b/finch-kotlin-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-kotlin-core/src/test/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemRuleListParamsTest.kt b/finch-kotlin-core/src/test/kotlin/com/tryfinch/api/models/HrisPayStatementItemRuleListParamsTest.kt
similarity index 78%
rename from finch-kotlin-core/src/test/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemRuleListParamsTest.kt
rename to finch-kotlin-core/src/test/kotlin/com/tryfinch/api/models/HrisPayStatementItemRuleListParamsTest.kt
index 1caa42db2..09d939335 100644
--- a/finch-kotlin-core/src/test/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemRuleListParamsTest.kt
+++ b/finch-kotlin-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-kotlin-core/src/test/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemRuleUpdateParamsTest.kt b/finch-kotlin-core/src/test/kotlin/com/tryfinch/api/models/HrisPayStatementItemRuleUpdateParamsTest.kt
similarity index 76%
rename from finch-kotlin-core/src/test/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemRuleUpdateParamsTest.kt
rename to finch-kotlin-core/src/test/kotlin/com/tryfinch/api/models/HrisPayStatementItemRuleUpdateParamsTest.kt
index 9c0687455..210fb9337 100644
--- a/finch-kotlin-core/src/test/kotlin/com/tryfinch/api/models/HrisCompanyPayStatementItemRuleUpdateParamsTest.kt
+++ b/finch-kotlin-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-kotlin-core/src/test/kotlin/com/tryfinch/api/models/HrisPayStatementRetrieveManyPageResponseTest.kt b/finch-kotlin-core/src/test/kotlin/com/tryfinch/api/models/HrisPayStatementRetrieveManyPageResponseTest.kt
index 59c255592..f7aba2216 100644
--- a/finch-kotlin-core/src/test/kotlin/com/tryfinch/api/models/HrisPayStatementRetrieveManyPageResponseTest.kt
+++ b/finch-kotlin-core/src/test/kotlin/com/tryfinch/api/models/HrisPayStatementRetrieveManyPageResponseTest.kt
@@ -17,12 +17,9 @@ internal class HrisPayStatementRetrieveManyPageResponseTest {
.addResponse(
PayStatementResponse.builder()
.body(
- PayStatementResponseBody.builder()
+ PayStatementData.builder()
.paging(
- PayStatementResponseBody.Paging.builder()
- .offset(0L)
- .count(0L)
- .build()
+ PayStatementData.Paging.builder().offset(0L).count(0L).build()
)
.addPayStatement(
PayStatement.builder()
@@ -151,13 +148,8 @@ internal class HrisPayStatementRetrieveManyPageResponseTest {
.containsExactly(
PayStatementResponse.builder()
.body(
- PayStatementResponseBody.builder()
- .paging(
- PayStatementResponseBody.Paging.builder()
- .offset(0L)
- .count(0L)
- .build()
- )
+ PayStatementData.builder()
+ .paging(PayStatementData.Paging.builder().offset(0L).count(0L).build())
.addPayStatement(
PayStatement.builder()
.addEarning(
@@ -276,12 +268,9 @@ internal class HrisPayStatementRetrieveManyPageResponseTest {
.addResponse(
PayStatementResponse.builder()
.body(
- PayStatementResponseBody.builder()
+ PayStatementData.builder()
.paging(
- PayStatementResponseBody.Paging.builder()
- .offset(0L)
- .count(0L)
- .build()
+ PayStatementData.Paging.builder().offset(0L).count(0L).build()
)
.addPayStatement(
PayStatement.builder()
diff --git a/finch-kotlin-core/src/test/kotlin/com/tryfinch/api/models/PayStatementResponseBodyTest.kt b/finch-kotlin-core/src/test/kotlin/com/tryfinch/api/models/PayStatementDataTest.kt
similarity index 94%
rename from finch-kotlin-core/src/test/kotlin/com/tryfinch/api/models/PayStatementResponseBodyTest.kt
rename to finch-kotlin-core/src/test/kotlin/com/tryfinch/api/models/PayStatementDataTest.kt
index af1498eac..5deb38efc 100644
--- a/finch-kotlin-core/src/test/kotlin/com/tryfinch/api/models/PayStatementResponseBodyTest.kt
+++ b/finch-kotlin-core/src/test/kotlin/com/tryfinch/api/models/PayStatementDataTest.kt
@@ -8,13 +8,13 @@ import com.tryfinch.api.core.jsonMapper
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
-internal class PayStatementResponseBodyTest {
+internal class PayStatementDataTest {
@Test
fun create() {
- val payStatementResponseBody =
- PayStatementResponseBody.builder()
- .paging(PayStatementResponseBody.Paging.builder().offset(0L).count(0L).build())
+ val payStatementData =
+ PayStatementData.builder()
+ .paging(PayStatementData.Paging.builder().offset(0L).count(0L).build())
.addPayStatement(
PayStatement.builder()
.addEarning(
@@ -112,9 +112,9 @@ internal class PayStatementResponseBodyTest {
)
.build()
- assertThat(payStatementResponseBody.paging())
- .isEqualTo(PayStatementResponseBody.Paging.builder().offset(0L).count(0L).build())
- assertThat(payStatementResponseBody.payStatements())
+ assertThat(payStatementData.paging())
+ .isEqualTo(PayStatementData.Paging.builder().offset(0L).count(0L).build())
+ assertThat(payStatementData.payStatements())
.containsExactly(
PayStatement.builder()
.addEarning(
@@ -214,9 +214,9 @@ internal class PayStatementResponseBodyTest {
@Test
fun roundtrip() {
val jsonMapper = jsonMapper()
- val payStatementResponseBody =
- PayStatementResponseBody.builder()
- .paging(PayStatementResponseBody.Paging.builder().offset(0L).count(0L).build())
+ val payStatementData =
+ PayStatementData.builder()
+ .paging(PayStatementData.Paging.builder().offset(0L).count(0L).build())
.addPayStatement(
PayStatement.builder()
.addEarning(
@@ -314,12 +314,12 @@ internal class PayStatementResponseBodyTest {
)
.build()
- val roundtrippedPayStatementResponseBody =
+ val roundtrippedPayStatementData =
jsonMapper.readValue(
- jsonMapper.writeValueAsString(payStatementResponseBody),
- jacksonTypeRef(),
+ jsonMapper.writeValueAsString(payStatementData),
+ jacksonTypeRef(),
)
- assertThat(roundtrippedPayStatementResponseBody).isEqualTo(payStatementResponseBody)
+ assertThat(roundtrippedPayStatementData).isEqualTo(payStatementData)
}
}
diff --git a/finch-kotlin-core/src/test/kotlin/com/tryfinch/api/models/PayStatementResponseTest.kt b/finch-kotlin-core/src/test/kotlin/com/tryfinch/api/models/PayStatementResponseTest.kt
index 720031e29..73ec9a515 100644
--- a/finch-kotlin-core/src/test/kotlin/com/tryfinch/api/models/PayStatementResponseTest.kt
+++ b/finch-kotlin-core/src/test/kotlin/com/tryfinch/api/models/PayStatementResponseTest.kt
@@ -15,10 +15,8 @@ internal class PayStatementResponseTest {
val payStatementResponse =
PayStatementResponse.builder()
.body(
- PayStatementResponseBody.builder()
- .paging(
- PayStatementResponseBody.Paging.builder().offset(0L).count(0L).build()
- )
+ PayStatementData.builder()
+ .paging(PayStatementData.Paging.builder().offset(0L).count(0L).build())
.addPayStatement(
PayStatement.builder()
.addEarning(
@@ -125,11 +123,9 @@ internal class PayStatementResponseTest {
assertThat(payStatementResponse.body())
.isEqualTo(
- PayStatementResponse.Body.ofPayStatementResponse(
- PayStatementResponseBody.builder()
- .paging(
- PayStatementResponseBody.Paging.builder().offset(0L).count(0L).build()
- )
+ PayStatementResponse.Body.ofPayStatementData(
+ PayStatementData.builder()
+ .paging(PayStatementData.Paging.builder().offset(0L).count(0L).build())
.addPayStatement(
PayStatement.builder()
.addEarning(
@@ -241,10 +237,8 @@ internal class PayStatementResponseTest {
val payStatementResponse =
PayStatementResponse.builder()
.body(
- PayStatementResponseBody.builder()
- .paging(
- PayStatementResponseBody.Paging.builder().offset(0L).count(0L).build()
- )
+ PayStatementData.builder()
+ .paging(PayStatementData.Paging.builder().offset(0L).count(0L).build())
.addPayStatement(
PayStatement.builder()
.addEarning(
diff --git a/finch-kotlin-core/src/test/kotlin/com/tryfinch/api/services/async/hris/company/PayStatementItemServiceAsyncTest.kt b/finch-kotlin-core/src/test/kotlin/com/tryfinch/api/services/async/hris/PayStatementItemServiceAsyncTest.kt
similarity index 82%
rename from finch-kotlin-core/src/test/kotlin/com/tryfinch/api/services/async/hris/company/PayStatementItemServiceAsyncTest.kt
rename to finch-kotlin-core/src/test/kotlin/com/tryfinch/api/services/async/hris/PayStatementItemServiceAsyncTest.kt
index aeb9d4772..c21be2bd2 100644
--- a/finch-kotlin-core/src/test/kotlin/com/tryfinch/api/services/async/hris/company/PayStatementItemServiceAsyncTest.kt
+++ b/finch-kotlin-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 page = payStatementItemServiceAsync.list()
diff --git a/finch-kotlin-core/src/test/kotlin/com/tryfinch/api/services/async/hris/company/payStatementItem/RuleServiceAsyncTest.kt b/finch-kotlin-core/src/test/kotlin/com/tryfinch/api/services/async/hris/payStatementItem/RuleServiceAsyncTest.kt
similarity index 66%
rename from finch-kotlin-core/src/test/kotlin/com/tryfinch/api/services/async/hris/company/payStatementItem/RuleServiceAsyncTest.kt
rename to finch-kotlin-core/src/test/kotlin/com/tryfinch/api/services/async/hris/payStatementItem/RuleServiceAsyncTest.kt
index 0c4f4aa5e..17091889f 100644
--- a/finch-kotlin-core/src/test/kotlin/com/tryfinch/api/services/async/hris/company/payStatementItem/RuleServiceAsyncTest.kt
+++ b/finch-kotlin-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 rule =
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()
)
@@ -65,11 +61,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 rule =
ruleServiceAsync.update(
- HrisCompanyPayStatementItemRuleUpdateParams.builder()
+ HrisPayStatementItemRuleUpdateParams.builder()
.ruleId("rule_id")
.addEntityId("550e8400-e29b-41d4-a716-446655440000")
.optionalProperty(JsonValue.from(mapOf()))
@@ -86,7 +82,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 page = ruleServiceAsync.list()
@@ -100,11 +96,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 rule =
ruleServiceAsync.delete(
- HrisCompanyPayStatementItemRuleDeleteParams.builder()
+ HrisPayStatementItemRuleDeleteParams.builder()
.ruleId("rule_id")
.addEntityId("550e8400-e29b-41d4-a716-446655440000")
.build()
diff --git a/finch-kotlin-core/src/test/kotlin/com/tryfinch/api/services/blocking/hris/company/PayStatementItemServiceTest.kt b/finch-kotlin-core/src/test/kotlin/com/tryfinch/api/services/blocking/hris/PayStatementItemServiceTest.kt
similarity index 82%
rename from finch-kotlin-core/src/test/kotlin/com/tryfinch/api/services/blocking/hris/company/PayStatementItemServiceTest.kt
rename to finch-kotlin-core/src/test/kotlin/com/tryfinch/api/services/blocking/hris/PayStatementItemServiceTest.kt
index f5a32058f..086e1024c 100644
--- a/finch-kotlin-core/src/test/kotlin/com/tryfinch/api/services/blocking/hris/company/PayStatementItemServiceTest.kt
+++ b/finch-kotlin-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-kotlin-core/src/test/kotlin/com/tryfinch/api/services/blocking/hris/company/payStatementItem/RuleServiceTest.kt b/finch-kotlin-core/src/test/kotlin/com/tryfinch/api/services/blocking/hris/payStatementItem/RuleServiceTest.kt
similarity index 65%
rename from finch-kotlin-core/src/test/kotlin/com/tryfinch/api/services/blocking/hris/company/payStatementItem/RuleServiceTest.kt
rename to finch-kotlin-core/src/test/kotlin/com/tryfinch/api/services/blocking/hris/payStatementItem/RuleServiceTest.kt
index 3d0fbb77a..c1a9d4921 100644
--- a/finch-kotlin-core/src/test/kotlin/com/tryfinch/api/services/blocking/hris/company/payStatementItem/RuleServiceTest.kt
+++ b/finch-kotlin-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()