From 09e7fca53d025128242e88aa1a7a20e592c87222 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Mon, 22 Jun 2026 16:32:45 +0000
Subject: [PATCH 1/3] codegen metadata
---
.stats.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index b6643dc..0b1be7f 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
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch/finch-71d6c5fd2762ac6e9ebef43a0c2983cc27cdb71e9ab517316e8bd7771871b9f3.yml
+openapi_spec_hash: 5e0e04e7274494062ff46ac85d358f5b
config_hash: 812b56df3e506bc2af056b2898327b8a
From 3e2a8b06273904d622812915dce70b7338009360 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Mon, 22 Jun 2026 17:30:25 +0000
Subject: [PATCH 2/3] feat(api): manual updates
fix type mapping for go sdks
---
.stats.yml | 4 +--
api.md | 2 +-
hrispaystatement.go | 60 +++++++++++++++++++++++++++++++++++++++++----
3 files changed, 58 insertions(+), 8 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index 0b1be7f..b7a7420 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-71d6c5fd2762ac6e9ebef43a0c2983cc27cdb71e9ab517316e8bd7771871b9f3.yml
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch/finch-7e39b6a20bf3e1f23ad832300b73ae92b6f6ce7c9d86eaa8fcc0710b51455f17.yml
openapi_spec_hash: 5e0e04e7274494062ff46ac85d358f5b
-config_hash: 812b56df3e506bc2af056b2898327b8a
+config_hash: 8b3c2a32014346513c18d98cbb752d2c
diff --git a/api.md b/api.md
index 7f3b6c2..bf23d2b 100644
--- a/api.md
+++ b/api.md
@@ -123,9 +123,9 @@ Methods:
Response Types:
- finchgo.PayStatement
+- finchgo.PayStatementData
- finchgo.PayStatementDataSyncInProgress
- finchgo.PayStatementResponse
-- finchgo.PayStatementResponseBody
Methods:
diff --git a/hrispaystatement.go b/hrispaystatement.go
index 18ed750..c55d399 100644
--- a/hrispaystatement.go
+++ b/hrispaystatement.go
@@ -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"`
@@ -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"`
@@ -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()
}
@@ -598,7 +648,7 @@ func init() {
"",
apijson.UnionVariant{
TypeFilter: gjson.JSON,
- Type: reflect.TypeOf(PayStatementResponseBody{}),
+ Type: reflect.TypeOf(PayStatementData{}),
},
apijson.UnionVariant{
TypeFilter: gjson.JSON,
From 7c8f3f6d52ba89fdbf462ca50c2e05d0523e2958 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Mon, 22 Jun 2026 17:30:46 +0000
Subject: [PATCH 3/3] release: 1.38.0
---
.release-please-manifest.json | 2 +-
CHANGELOG.md | 8 ++++++++
README.md | 2 +-
internal/version.go | 2 +-
4 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/.release-please-manifest.json b/.release-please-manifest.json
index 36116e1..b90a705 100644
--- a/.release-please-manifest.json
+++ b/.release-please-manifest.json
@@ -1,3 +1,3 @@
{
- ".": "1.37.0"
+ ".": "1.38.0"
}
\ No newline at end of file
diff --git a/CHANGELOG.md b/CHANGELOG.md
index f854931..f72d0fa 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -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)
diff --git a/README.md b/README.md
index 6d97ea7..c47b364 100644
--- a/README.md
+++ b/README.md
@@ -33,7 +33,7 @@ Or to pin the 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'
```
diff --git a/internal/version.go b/internal/version.go
index 5549d4b..be0140e 100644
--- a/internal/version.go
+++ b/internal/version.go
@@ -2,4 +2,4 @@
package internal
-const PackageVersion = "1.37.0" // x-release-please-version
+const PackageVersion = "1.38.0" // x-release-please-version