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 @@
{
".": "1.37.0"
".": "1.38.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-7e39b6a20bf3e1f23ad832300b73ae92b6f6ce7c9d86eaa8fcc0710b51455f17.yml
openapi_spec_hash: 5e0e04e7274494062ff46ac85d358f5b
config_hash: 8b3c2a32014346513c18d98cbb752d2c
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 1.38.0 (2026-06-22)

Full Changelog: [v1.37.0...v1.38.0](https://github.com/Finch-API/finch-api-go/compare/v1.37.0...v1.38.0)

### Features

* **api:** manual updates ([3e2a8b0](https://github.com/Finch-API/finch-api-go/commit/3e2a8b06273904d622812915dce70b7338009360))

## 1.37.0 (2026-06-09)

Full Changelog: [v1.36.0...v1.37.0](https://github.com/Finch-API/finch-api-go/compare/v1.36.0...v1.37.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@v1.37.0'
go get -u 'github.com/Finch-API/finch-api-go@v1.38.0'
```

<!-- x-release-please-end -->
Expand Down
2 changes: 1 addition & 1 deletion api.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,9 @@ Methods:
Response Types:

- <a href="https://pkg.go.dev/github.com/Finch-API/finch-api-go">finchgo</a>.<a href="https://pkg.go.dev/github.com/Finch-API/finch-api-go#PayStatement">PayStatement</a>
- <a href="https://pkg.go.dev/github.com/Finch-API/finch-api-go">finchgo</a>.<a href="https://pkg.go.dev/github.com/Finch-API/finch-api-go#PayStatementData">PayStatementData</a>
- <a href="https://pkg.go.dev/github.com/Finch-API/finch-api-go">finchgo</a>.<a href="https://pkg.go.dev/github.com/Finch-API/finch-api-go#PayStatementDataSyncInProgress">PayStatementDataSyncInProgress</a>
- <a href="https://pkg.go.dev/github.com/Finch-API/finch-api-go">finchgo</a>.<a href="https://pkg.go.dev/github.com/Finch-API/finch-api-go#PayStatementResponse">PayStatementResponse</a>
- <a href="https://pkg.go.dev/github.com/Finch-API/finch-api-go">finchgo</a>.<a href="https://pkg.go.dev/github.com/Finch-API/finch-api-go#PayStatementResponseBody">PayStatementResponseBody</a>

Methods:

Expand Down
60 changes: 55 additions & 5 deletions hrispaystatement.go
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,56 @@ func (r PayStatementType) IsKnown() bool {
return false
}

type PayStatementData struct {
Paging PayStatementDataPaging `json:"paging" api:"required"`
PayStatements []PayStatement `json:"pay_statements" api:"required"`
JSON payStatementDataJSON `json:"-"`
}

// payStatementDataJSON contains the JSON metadata for the struct
// [PayStatementData]
type payStatementDataJSON struct {
Paging apijson.Field
PayStatements apijson.Field
raw string
ExtraFields map[string]apijson.Field
}

func (r *PayStatementData) UnmarshalJSON(data []byte) (err error) {
return apijson.UnmarshalRoot(data, r)
}

func (r payStatementDataJSON) RawJSON() string {
return r.raw
}

func (r PayStatementData) implementsPayStatementResponseBody() {}

type PayStatementDataPaging struct {
// The current start index of the returned list of elements
Offset int64 `json:"offset" api:"required"`
// The total number of elements for the entire query (not just the given page)
Count int64 `json:"count"`
JSON payStatementDataPagingJSON `json:"-"`
}

// payStatementDataPagingJSON contains the JSON metadata for the struct
// [PayStatementDataPaging]
type payStatementDataPagingJSON struct {
Offset apijson.Field
Count apijson.Field
raw string
ExtraFields map[string]apijson.Field
}

func (r *PayStatementDataPaging) UnmarshalJSON(data []byte) (err error) {
return apijson.UnmarshalRoot(data, r)
}

func (r payStatementDataPagingJSON) RawJSON() string {
return r.raw
}

type PayStatementDataSyncInProgress struct {
Code PayStatementDataSyncInProgressCode `json:"code" api:"required"`
FinchCode PayStatementDataSyncInProgressFinchCode `json:"finch_code" api:"required"`
Expand Down Expand Up @@ -543,7 +593,7 @@ type PayStatementResponseBody struct {
FinchCode string `json:"finch_code"`
Message string `json:"message"`
Name string `json:"name"`
// This field can have the runtime type of [PayStatementResponseBodyPaging].
// This field can have the runtime type of [PayStatementDataPaging].
Paging interface{} `json:"paging"`
// This field can have the runtime type of [[]PayStatement].
PayStatements interface{} `json:"pay_statements"`
Expand Down Expand Up @@ -580,14 +630,14 @@ func (r *PayStatementResponseBody) UnmarshalJSON(data []byte) (err error) {
// AsUnion returns a [PayStatementResponseBodyUnion] interface which you can cast
// to the specific types for more type safety.
//
// Possible runtime types of the union are [PayStatementResponseBody],
// Possible runtime types of the union are [PayStatementData],
// [PayStatementResponseBodyBatchError], [PayStatementDataSyncInProgress].
func (r PayStatementResponseBody) AsUnion() PayStatementResponseBodyUnion {
return r.union
}

// Union satisfied by [PayStatementResponseBody],
// [PayStatementResponseBodyBatchError] or [PayStatementDataSyncInProgress].
// Union satisfied by [PayStatementData], [PayStatementResponseBodyBatchError] or
// [PayStatementDataSyncInProgress].
type PayStatementResponseBodyUnion interface {
implementsPayStatementResponseBody()
}
Expand All @@ -598,7 +648,7 @@ func init() {
"",
apijson.UnionVariant{
TypeFilter: gjson.JSON,
Type: reflect.TypeOf(PayStatementResponseBody{}),
Type: reflect.TypeOf(PayStatementData{}),
},
apijson.UnionVariant{
TypeFilter: gjson.JSON,
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 = "1.37.0" // x-release-please-version
const PackageVersion = "1.38.0" // x-release-please-version
Loading