Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "8.7.0"
".": "9.0.0"
}
6 changes: 3 additions & 3 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -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
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

<!-- x-release-please-start-version -->

[![Maven Central](https://img.shields.io/maven-central/v/com.tryfinch.api/finch-kotlin)](https://central.sonatype.com/artifact/com.tryfinch.api/finch-kotlin/8.7.0)
[![javadoc](https://javadoc.io/badge2/com.tryfinch.api/finch-kotlin/8.7.0/javadoc.svg)](https://javadoc.io/doc/com.tryfinch.api/finch-kotlin/8.7.0)
[![Maven Central](https://img.shields.io/maven-central/v/com.tryfinch.api/finch-kotlin)](https://central.sonatype.com/artifact/com.tryfinch.api/finch-kotlin/9.0.0)
[![javadoc](https://javadoc.io/badge2/com.tryfinch.api/finch-kotlin/9.0.0/javadoc.svg)](https://javadoc.io/doc/com.tryfinch.api/finch-kotlin/9.0.0)

<!-- x-release-please-end -->

Expand All @@ -24,7 +24,7 @@ Use the Finch MCP Server to enable AI assistants to interact with this API, allo

<!-- x-release-please-start-version -->

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).

<!-- x-release-please-end -->

Expand All @@ -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
Expand All @@ -44,7 +44,7 @@ implementation("com.tryfinch.api:finch-kotlin:8.7.0")
<dependency>
<groupId>com.tryfinch.api</groupId>
<artifactId>finch-kotlin</artifactId>
<version>8.7.0</version>
<version>9.0.0</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<PayStatementItemListResponse> {

/**
* 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<PayStatementItemListResponse> =
response._responses().getNullable("responses") ?: emptyList()
Expand All @@ -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<PayStatementItemListResponse> = 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
Expand All @@ -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.
*
Expand All @@ -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),
Expand All @@ -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
Expand All @@ -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}"
}
Original file line number Diff line number Diff line change
Expand Up @@ -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<PayStatementItemListResponse> {

/**
* 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<PayStatementItemListResponse> =
response._responses().getNullable("responses") ?: emptyList()
Expand All @@ -29,27 +28,27 @@ 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<PayStatementItemListResponse> = 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)

companion object {

/**
* Returns a mutable builder for constructing an instance of
* [HrisCompanyPayStatementItemListPageAsync].
* [HrisPayStatementItemListPageAsync].
*
* The following fields are required:
* ```kotlin
Expand All @@ -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.
*
Expand All @@ -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),
Expand All @@ -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
Expand All @@ -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}"
}
Loading
Loading