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 @@
{
".": "0.1.0"
".": "0.2.0"
}
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -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
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Or to pin the version:
<!-- x-release-please-start-version -->

```sh
go get -u 'github.com/Munchpass/checkbook@v0.1.0'
go get -u 'github.com/Munchpass/checkbook@v0.2.0'
```

<!-- x-release-please-end -->
Expand All @@ -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 {
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 = "0.1.0" // x-release-please-version
const PackageVersion = "0.2.0" // x-release-please-version
9 changes: 1 addition & 8 deletions option/requestoption.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 {
Expand Down