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 @@
{
".": "2.2.0"
".": "2.3.0"
}
4 changes: 2 additions & 2 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-a6b05e51c46366a54466c2009f5fdde74e0fa40bbcc6568601a4e3342dd16937.yml
openapi_spec_hash: 084797c220144df17d98eb984dd4cba2
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch/finch-166cc05754d8591beda094f4ee6f438f55d5f65d490ab364ea130c5100134375.yml
openapi_spec_hash: 4582a35bbe9fb5404d1e4f804c877fa8
config_hash: 9ae56f40cec7304896138bfad5caf748
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 2.3.0 (2026-07-15)

Full Changelog: [v2.2.0...v2.3.0](https://github.com/Finch-API/finch-api-go/compare/v2.2.0...v2.3.0)

### Features

* **api:** api update ([045f63c](https://github.com/Finch-API/finch-api-go/commit/045f63c9bc0ba9b3dab9fa12f024774a46486211))

## 2.2.0 (2026-07-13)

Full Changelog: [v2.1.0...v2.2.0](https://github.com/Finch-API/finch-api-go/compare/v2.1.0...v2.2.0)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Or to pin the version:
<!-- x-release-please-start-version -->

```sh
go get -u 'github.com/Finch-API/finch-api-go@v2.2.0'
go get -u 'github.com/Finch-API/finch-api-go@v2.3.0'
```

<!-- x-release-please-end -->
Expand Down
5 changes: 1 addition & 4 deletions accesstoken.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,7 @@ type CreateAccessTokenResponse struct {
//
// Deprecated: deprecated
AccountID string `json:"account_id"`
// [DEPRECATED] Use `connection_id` to identify the connection instead of this
// company ID
//
// Deprecated: deprecated
// The Finch UUID of the company associated with the `access_token`.
CompanyID string `json:"company_id"`
// The ID of your customer you provided to Finch when a connect session was created
// for this connection
Expand Down
5 changes: 1 addition & 4 deletions account.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,7 @@ type Introspection struct {
// Deprecated: deprecated
AccountID string `json:"account_id"`
AuthenticationMethods []IntrospectionAuthenticationMethod `json:"authentication_methods"`
// [DEPRECATED] Use `connection_id` to associate tokens with a Finch connection
// instead of this company ID
//
// Deprecated: deprecated
// The Finch UUID of the company associated with the `access_token`.
CompanyID string `json:"company_id"`
// The email of your customer you provided to Finch when a connect session was
// created for this connection
Expand Down
18 changes: 12 additions & 6 deletions hrisbenefit.go
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,8 @@ func (r updateCompanyBenefitResponseJSON) RawJSON() string {
}

type HRISBenefitNewParams struct {
// The entity IDs to specify which entities' data to access.
// The entity IDs to specify which entities' data to access. Provide exactly one
// entity ID per request; a maximum of one is accepted.
EntityIDs param.Field[[]string] `query:"entity_ids" format:"uuid"`
// The company match for this benefit.
CompanyContribution param.Field[HRISBenefitNewParamsCompanyContribution] `json:"company_contribution"`
Expand Down Expand Up @@ -590,7 +591,8 @@ func (r HRISBenefitNewParamsCompanyContributionType) IsKnown() bool {
}

type HRISBenefitGetParams struct {
// The entity IDs to specify which entities' data to access.
// The entity IDs to specify which entities' data to access. Provide exactly one
// entity ID per request; a maximum of one is accepted.
EntityIDs param.Field[[]string] `query:"entity_ids" format:"uuid"`
}

Expand All @@ -603,7 +605,8 @@ func (r HRISBenefitGetParams) URLQuery() (v url.Values) {
}

type HRISBenefitUpdateParams struct {
// The entity IDs to specify which entities' data to access.
// The entity IDs to specify which entities' data to access. Provide exactly one
// entity ID per request; a maximum of one is accepted.
EntityIDs param.Field[[]string] `query:"entity_ids" format:"uuid"`
// Updated name or description.
Description param.Field[string] `json:"description"`
Expand All @@ -623,7 +626,8 @@ func (r HRISBenefitUpdateParams) URLQuery() (v url.Values) {
}

type HRISBenefitListParams struct {
// The entity IDs to specify which entities' data to access.
// The entity IDs to specify which entities' data to access. Provide exactly one
// entity ID per request; a maximum of one is accepted.
EntityIDs param.Field[[]string] `query:"entity_ids" format:"uuid"`
}

Expand All @@ -636,7 +640,8 @@ func (r HRISBenefitListParams) URLQuery() (v url.Values) {
}

type HRISBenefitListSupportedBenefitsParams struct {
// The entity IDs to specify which entities' data to access.
// The entity IDs to specify which entities' data to access. Provide exactly one
// entity ID per request; a maximum of one is accepted.
EntityIDs param.Field[[]string] `query:"entity_ids" format:"uuid"`
}

Expand All @@ -650,7 +655,8 @@ func (r HRISBenefitListSupportedBenefitsParams) URLQuery() (v url.Values) {
}

type HRISBenefitRegisterParams struct {
// The entity IDs to specify which entities' data to access.
// The entity IDs to specify which entities' data to access. Provide exactly one
// entity ID per request; a maximum of one is accepted.
EntityIDs param.Field[[]string] `query:"entity_ids" format:"uuid"`
Description param.Field[string] `json:"description"`
// The frequency of the benefit deduction/contribution.
Expand Down
12 changes: 8 additions & 4 deletions hrisbenefitindividual.go
Original file line number Diff line number Diff line change
Expand Up @@ -835,7 +835,8 @@ func (r hrisBenefitIndividualEnrolledIDsResponseJSON) RawJSON() string {
}

type HRISBenefitIndividualEnrollManyParams struct {
// The entity IDs to specify which entities' data to access.
// The entity IDs to specify which entities' data to access. Provide exactly one
// entity ID per request; a maximum of one is accepted.
EntityIDs param.Field[[]string] `query:"entity_ids" format:"uuid"`
// Array of the individual_id to enroll and a configuration object.
Individuals []HRISBenefitIndividualEnrollManyParamsIndividual `json:"individuals"`
Expand Down Expand Up @@ -967,7 +968,8 @@ func (r HRISBenefitIndividualEnrollManyParamsIndividualsConfigurationEmployeeDed
}

type HRISBenefitIndividualEnrolledIDsParams struct {
// The entity IDs to specify which entities' data to access.
// The entity IDs to specify which entities' data to access. Provide exactly one
// entity ID per request; a maximum of one is accepted.
EntityIDs param.Field[[]string] `query:"entity_ids" format:"uuid"`
}

Expand All @@ -981,7 +983,8 @@ func (r HRISBenefitIndividualEnrolledIDsParams) URLQuery() (v url.Values) {
}

type HRISBenefitIndividualGetManyBenefitsParams struct {
// The entity IDs to specify which entities' data to access.
// The entity IDs to specify which entities' data to access. Provide exactly one
// entity ID per request; a maximum of one is accepted.
EntityIDs param.Field[[]string] `query:"entity_ids" format:"uuid"`
// comma-delimited list of stable Finch uuids for each individual. If empty,
// defaults to all individuals
Expand All @@ -998,7 +1001,8 @@ func (r HRISBenefitIndividualGetManyBenefitsParams) URLQuery() (v url.Values) {
}

type HRISBenefitIndividualUnenrollManyParams struct {
// The entity IDs to specify which entities' data to access.
// The entity IDs to specify which entities' data to access. Provide exactly one
// entity ID per request; a maximum of one is accepted.
EntityIDs param.Field[[]string] `query:"entity_ids" format:"uuid"`
// Array of individual_ids to unenroll.
IndividualIDs param.Field[[]string] `json:"individual_ids"`
Expand Down
3 changes: 2 additions & 1 deletion hriscompany.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,8 @@ func (r CompanyEntityType) IsKnown() bool {
}

type HRISCompanyGetParams struct {
// The entity IDs to specify which entities' data to access.
// The entity IDs to specify which entities' data to access. Provide exactly one
// entity ID per request; a maximum of one is accepted.
EntityIDs param.Field[[]string] `query:"entity_ids" format:"uuid"`
}

Expand Down
6 changes: 4 additions & 2 deletions hrisdirectory.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,8 @@ func (r individualInDirectoryManagerJSON) RawJSON() string {
}

type HRISDirectoryListParams struct {
// The entity IDs to specify which entities' data to access.
// The entity IDs to specify which entities' data to access. Provide exactly one
// entity ID per request; a maximum of one is accepted.
EntityIDs param.Field[[]string] `query:"entity_ids" format:"uuid"`
// Number of employees to return (defaults to 100, maximum 10000)
Limit param.Field[int64] `query:"limit"`
Expand All @@ -302,7 +303,8 @@ func (r HRISDirectoryListParams) URLQuery() (v url.Values) {
}

type HRISDirectoryListIndividualsParams struct {
// The entity IDs to specify which entities' data to access.
// The entity IDs to specify which entities' data to access. Provide exactly one
// entity ID per request; a maximum of one is accepted.
EntityIDs param.Field[[]string] `query:"entity_ids" format:"uuid"`
// Number of employees to return (defaults to 100, maximum 10000)
Limit param.Field[int64] `query:"limit"`
Expand Down
6 changes: 4 additions & 2 deletions hrisdocument.go
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,8 @@ func (r HRISDocumentRetreiveResponseType) IsKnown() bool {
}

type HRISDocumentListParams struct {
// The entity IDs to specify which entities' data to access.
// The entity IDs to specify which entities' data to access. Provide exactly one
// entity ID per request; a maximum of one is accepted.
EntityIDs param.Field[[]string] `query:"entity_ids" format:"uuid"`
// Comma-delimited list of stable Finch uuids for each individual. If empty,
// defaults to all individuals
Expand Down Expand Up @@ -482,7 +483,8 @@ func (r HRISDocumentListParamsType) IsKnown() bool {
}

type HRISDocumentRetreiveParams struct {
// The entity IDs to specify which entities' data to access.
// The entity IDs to specify which entities' data to access. Provide exactly one
// entity ID per request; a maximum of one is accepted.
EntityIDs param.Field[[]string] `query:"entity_ids" format:"uuid"`
}

Expand Down
3 changes: 2 additions & 1 deletion hrisemployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,8 @@ func (r employmentDataResponseJSON) RawJSON() string {
type HRISEmploymentGetManyParams struct {
// The array of batch requests. Maximum 10000 items per request.
Requests param.Field[[]HRISEmploymentGetManyParamsRequest] `json:"requests" api:"required"`
// The entity IDs to specify which entities' data to access.
// The entity IDs to specify which entities' data to access. Provide exactly one
// entity ID per request; a maximum of one is accepted.
EntityIDs param.Field[[]string] `query:"entity_ids" format:"uuid"`
}

Expand Down
3 changes: 2 additions & 1 deletion hrisindividual.go
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,8 @@ func (r individualResponseJSON) RawJSON() string {
type HRISIndividualGetManyParams struct {
// The array of batch requests. Maximum 10000 items per request.
Requests param.Field[[]HRISIndividualGetManyParamsRequest] `json:"requests" api:"required"`
// The entity IDs to specify which entities' data to access.
// The entity IDs to specify which entities' data to access. Provide exactly one
// entity ID per request; a maximum of one is accepted.
EntityIDs param.Field[[]string] `query:"entity_ids" format:"uuid"`
Options param.Field[HRISIndividualGetManyParamsOptions] `json:"options"`
}
Expand Down
3 changes: 2 additions & 1 deletion hrispayment.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,8 @@ type HRISPaymentListParams struct {
// The start date to retrieve payments by a company (inclusive) in `YYYY-MM-DD`
// format. Filters payments by their **pay_date** field.
StartDate param.Field[time.Time] `query:"start_date" api:"required" format:"date"`
// The entity IDs to specify which entities' data to access.
// The entity IDs to specify which entities' data to access. Provide exactly one
// entity ID per request; a maximum of one is accepted.
EntityIDs param.Field[[]string] `query:"entity_ids" format:"uuid"`
}

Expand Down
3 changes: 2 additions & 1 deletion hrispaystatement.go
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,8 @@ func (r PayStatementResponseBodyBatchError) implementsPayStatementResponseBody()
type HRISPayStatementGetManyParams struct {
// The array of batch requests. Maximum 10 payment_ids per request.
Requests param.Field[[]HRISPayStatementGetManyParamsRequest] `json:"requests" api:"required"`
// The entity IDs to specify which entities' data to access.
// The entity IDs to specify which entities' data to access. Provide exactly one
// entity ID per request; a maximum of one is accepted.
EntityIDs param.Field[[]string] `query:"entity_ids" format:"uuid"`
}

Expand Down
3 changes: 2 additions & 1 deletion hrispaystatementitem.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ type HRISPayStatementItemListParams struct {
// The end date to retrieve pay statement items by via their last seen pay date in
// `YYYY-MM-DD` format.
EndDate param.Field[time.Time] `query:"end_date" format:"date"`
// The entity IDs to specify which entities' data to access.
// The entity IDs to specify which entities' data to access. Provide exactly one
// entity ID per request; a maximum of one is accepted.
EntityIDs param.Field[[]string] `query:"entity_ids" format:"uuid"`
// Case-insensitive partial match search by pay statement item name.
Name param.Field[string] `query:"name"`
Expand Down
12 changes: 8 additions & 4 deletions hrispaystatementitemrule.go
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,8 @@ func (r HRISPayStatementItemRuleDeleteResponseEntityType) IsKnown() bool {
}

type HRISPayStatementItemRuleNewParams struct {
// The entity IDs to create the rule for.
// The entity IDs to create the rule for. Provide exactly one entity ID per
// request; a maximum of one is accepted.
EntityIDs param.Field[[]string] `query:"entity_ids" format:"uuid"`
// Specifies the fields to be applied when the condition is met.
Attributes param.Field[HRISPayStatementItemRuleNewParamsAttributes] `json:"attributes"`
Expand Down Expand Up @@ -693,7 +694,8 @@ func (r HRISPayStatementItemRuleNewParamsEntityType) IsKnown() bool {
}

type HRISPayStatementItemRuleUpdateParams struct {
// The entity IDs to update the rule for.
// The entity IDs to update the rule for. Provide exactly one entity ID per
// request; a maximum of one is accepted.
EntityIDs param.Field[[]string] `query:"entity_ids" format:"uuid"`
OptionalProperty param.Field[interface{}] `json:"optionalProperty"`
}
Expand All @@ -712,7 +714,8 @@ func (r HRISPayStatementItemRuleUpdateParams) URLQuery() (v url.Values) {
}

type HRISPayStatementItemRuleListParams struct {
// The entity IDs to retrieve rules for.
// The entity IDs to retrieve rules for. Provide exactly one entity ID per request;
// a maximum of one is accepted.
EntityIDs param.Field[[]string] `query:"entity_ids" format:"uuid"`
}

Expand All @@ -726,7 +729,8 @@ func (r HRISPayStatementItemRuleListParams) URLQuery() (v url.Values) {
}

type HRISPayStatementItemRuleDeleteParams struct {
// The entity IDs to delete the rule for.
// The entity IDs to delete the rule for. Provide exactly one entity ID per
// request; a maximum of one is accepted.
EntityIDs param.Field[[]string] `query:"entity_ids" format:"uuid"`
}

Expand Down
2 changes: 1 addition & 1 deletion internal/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

package internal

const PackageVersion = "2.2.0" // x-release-please-version
const PackageVersion = "2.3.0" // x-release-please-version
6 changes: 4 additions & 2 deletions payrollpaygroup.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,8 @@ func (r PayrollPayGroupListResponsePayFrequency) IsKnown() bool {
}

type PayrollPayGroupGetParams struct {
// The entity IDs to specify which entities' data to access.
// The entity IDs to specify which entities' data to access. Provide exactly one
// entity ID per request; a maximum of one is accepted.
EntityIDs param.Field[[]string] `query:"entity_ids" format:"uuid"`
}

Expand All @@ -191,7 +192,8 @@ func (r PayrollPayGroupGetParams) URLQuery() (v url.Values) {
}

type PayrollPayGroupListParams struct {
// The entity IDs to specify which entities' data to access.
// The entity IDs to specify which entities' data to access. Provide exactly one
// entity ID per request; a maximum of one is accepted.
EntityIDs param.Field[[]string] `query:"entity_ids" format:"uuid"`
IndividualID param.Field[string] `query:"individual_id" format:"uuid"`
PayFrequencies param.Field[[]string] `query:"pay_frequencies"`
Expand Down
4 changes: 1 addition & 3 deletions sandboxconnection.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,7 @@ type SandboxConnectionNewResponse struct {
// Deprecated: deprecated
AccountID string `json:"account_id" api:"required" format:"uuid"`
AuthenticationType SandboxConnectionNewResponseAuthenticationType `json:"authentication_type" api:"required"`
// [DEPRECATED] Use `connection_id` to associate a connection with an access token
//
// Deprecated: deprecated
// The Finch UUID of the company associated with the `access_token`.
CompanyID string `json:"company_id" api:"required" format:"uuid"`
// The ID of the new connection
ConnectionID string `json:"connection_id" api:"required" format:"uuid"`
Expand Down
8 changes: 2 additions & 6 deletions sandboxconnectionaccount.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,7 @@ type SandboxConnectionAccountNewResponse struct {
// Deprecated: deprecated
AccountID string `json:"account_id" api:"required" format:"uuid"`
AuthenticationType SandboxConnectionAccountNewResponseAuthenticationType `json:"authentication_type" api:"required"`
// [DEPRECATED] Use `connection_id` to associate a connection with an access token
//
// Deprecated: deprecated
// The Finch UUID of the company associated with the `access_token`.
CompanyID string `json:"company_id" api:"required" format:"uuid"`
// The ID of the new connection
ConnectionID string `json:"connection_id" api:"required" format:"uuid"`
Expand Down Expand Up @@ -119,9 +117,7 @@ type SandboxConnectionAccountUpdateResponse struct {
// Deprecated: deprecated
AccountID string `json:"account_id" api:"required" format:"uuid"`
AuthenticationType SandboxConnectionAccountUpdateResponseAuthenticationType `json:"authentication_type" api:"required"`
// [DEPRECATED] Use `connection_id` to associate a connection with an access token
//
// Deprecated: deprecated
// The Finch UUID of the company associated with the `access_token`.
CompanyID string `json:"company_id" api:"required" format:"uuid"`
// The ID of the new connection
ConnectionID string `json:"connection_id" api:"required" format:"uuid"`
Expand Down
5 changes: 1 addition & 4 deletions webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -1147,10 +1147,7 @@ type BaseWebhookEvent struct {
//
// Deprecated: deprecated
AccountID string `json:"account_id" api:"required"`
// [DEPRECATED] Unique Finch ID of the company for which data has been updated. Use
// `connection_id` instead to identify the connection associated with this event.
//
// Deprecated: deprecated
// Unique Finch ID of the company for which data has been updated.
CompanyID string `json:"company_id" api:"required"`
// Unique Finch ID of the connection associated with the webhook event.
ConnectionID string `json:"connection_id"`
Expand Down
Loading