From 852ef45d42120027b854e5ba672766fb4d879898 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 5 Sep 2025 03:31:13 +0000 Subject: [PATCH 1/2] feat(api): proper prod url --- .stats.yml | 2 +- README.md | 2 +- option/requestoption.go | 9 +-------- 3 files changed, 3 insertions(+), 10 deletions(-) diff --git a/.stats.yml b/.stats.yml index 39c3a33..8c11678 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 97 openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/munch-insights%2Fcheckbook-ab0f804ffc9125f73ed0f8653c76ce05cb5e31c0aaf104725214739dce81a583.yml openapi_spec_hash: 31198da39dfc49c4d1b7fa0be132c6b9 -config_hash: b00b12a36a9bdbb732aa36142e477942 +config_hash: c8f780399e9857ab4ef571737fa57d37 diff --git a/README.md b/README.md index b7af44d..15e3a82 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,7 @@ import ( func main() { client := checkbook.NewClient( option.WithAPIKey("My API Key"), // defaults to os.LookupEnv("CHECKBOOK_API_KEY") - option.WithEnvironmentSandbox(), // or option.WithEnvironmentProduction() | option.WithEnvironmentEnvironment2(); defaults to option.WithEnvironmentProduction() + option.WithEnvironmentSandbox(), // defaults to option.WithEnvironmentProduction() ) banks, err := client.Account.Bank.List(context.TODO()) if err != nil { diff --git a/option/requestoption.go b/option/requestoption.go index fc2a031..16f5659 100644 --- a/option/requestoption.go +++ b/option/requestoption.go @@ -263,7 +263,7 @@ func WithRequestTimeout(dur time.Duration) RequestOption { // environment to be the "production" environment. An environment specifies which base URL // to use by default. func WithEnvironmentProduction() RequestOption { - return requestconfig.WithDefaultBaseURL("https://demo.checkbook.io/") + return requestconfig.WithDefaultBaseURL("https://api.checkbook.io/") } // WithEnvironmentSandbox returns a RequestOption that sets the current @@ -273,13 +273,6 @@ func WithEnvironmentSandbox() RequestOption { return requestconfig.WithDefaultBaseURL("https://api.sandbox.checkbook.io/") } -// WithEnvironmentEnvironment2 returns a RequestOption that sets the current -// environment to be the "environment_2" environment. An environment specifies which base URL -// to use by default. -func WithEnvironmentEnvironment2() RequestOption { - return requestconfig.WithDefaultBaseURL("https://api.checkbook.io/") -} - // WithAPIKey returns a RequestOption that sets the client setting "api_key". func WithAPIKey(value string) RequestOption { return requestconfig.RequestOptionFunc(func(r *requestconfig.RequestConfig) error { From ac965dd1a72a125f3cdfe9ed084b83df61351df9 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 5 Sep 2025 03:31:24 +0000 Subject: [PATCH 2/2] release: 0.2.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 3d2ac0b..10f3091 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.1.0" + ".": "0.2.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 2c02698..6bb449f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.2.0 (2025-09-05) + +Full Changelog: [v0.1.0...v0.2.0](https://github.com/Munchpass/checkbook/compare/v0.1.0...v0.2.0) + +### Features + +* **api:** proper prod url ([852ef45](https://github.com/Munchpass/checkbook/commit/852ef45d42120027b854e5ba672766fb4d879898)) + ## 0.1.0 (2025-09-05) Full Changelog: [v0.0.1...v0.1.0](https://github.com/Munchpass/checkbook/compare/v0.0.1...v0.1.0) diff --git a/README.md b/README.md index 15e3a82..9b2e7da 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ Or to pin the version: ```sh -go get -u 'github.com/Munchpass/checkbook@v0.1.0' +go get -u 'github.com/Munchpass/checkbook@v0.2.0' ``` diff --git a/internal/version.go b/internal/version.go index 02eac73..774c6c4 100644 --- a/internal/version.go +++ b/internal/version.go @@ -2,4 +2,4 @@ package internal -const PackageVersion = "0.1.0" // x-release-please-version +const PackageVersion = "0.2.0" // x-release-please-version