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.0.2"
".": "0.0.3"
}
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
configured_endpoints: 27
openapi_spec_hash: 96766c4efc6b4474a44caff9533c94f0
config_hash: 9a6ce08c8b87efb45fdbf07e323a6f82
config_hash: 58ecb7791515711079bc6418b8630e14
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.0.3 (2026-04-27)

Full Changelog: [v0.0.2...v0.0.3](https://github.com/fragment-dev/golang/compare/v0.0.2...v0.0.3)

### Chores

* update SDK settings ([8e62c75](https://github.com/fragment-dev/golang/commit/8e62c75c35bb5766306bfd3a3eb3e94d4e691ead))

## 0.0.2 (2026-04-27)

Full Changelog: [v0.0.1...v0.0.2](https://github.com/fragment-dev/fragment-billing-go/compare/v0.0.1...v0.0.2)
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ To use a local version of this library from source in another project, edit the
directive. This can be done through the CLI with the following:

```sh
$ go mod edit -replace github.com/fragment-dev/fragment-billing-go=/path/to/fragment-billing-go
$ go mod edit -replace github.com/fragment-dev/golang=/path/to/golang
```

## Running tests
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<!-- x-release-please-start-version -->

<a href="https://pkg.go.dev/github.com/fragment-dev/fragment-billing-go"><img src="https://pkg.go.dev/badge/github.com/fragment-dev/fragment-billing-go.svg" alt="Go Reference"></a>
<a href="https://pkg.go.dev/github.com/fragment-dev/golang"><img src="https://pkg.go.dev/badge/github.com/fragment-dev/golang.svg" alt="Go Reference"></a>

<!-- x-release-please-end -->

Expand All @@ -17,7 +17,7 @@ It is generated with [Stainless](https://www.stainless.com/).

```go
import (
"github.com/fragment-dev/fragment-billing-go" // imported as fragment
"github.com/fragment-dev/golang" // imported as fragment
)
```

Expand All @@ -28,7 +28,7 @@ Or to pin the version:
<!-- x-release-please-start-version -->

```sh
go get -u 'github.com/fragment-dev/fragment-billing-go@v0.0.2'
go get -u 'github.com/fragment-dev/golang@v0.0.3'
```

<!-- x-release-please-end -->
Expand All @@ -48,8 +48,8 @@ import (
"context"
"fmt"

"github.com/fragment-dev/fragment-billing-go"
"github.com/fragment-dev/fragment-billing-go/option"
"github.com/fragment-dev/golang"
"github.com/fragment-dev/golang/option"
)

func main() {
Expand Down Expand Up @@ -280,7 +280,7 @@ client.ExternalAccounts.New(context.TODO(), ...,

The request option `option.WithDebugLog(nil)` may be helpful while debugging.

See the [full list of request options](https://pkg.go.dev/github.com/fragment-dev/fragment-billing-go/option).
See the [full list of request options](https://pkg.go.dev/github.com/fragment-dev/golang/option).

### Pagination

Expand Down Expand Up @@ -498,7 +498,7 @@ This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) con

We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience.

We are keen for your feedback; please open an [issue](https://www.github.com/fragment-dev/fragment-billing-go/issues) with questions, bugs, or suggestions.
We are keen for your feedback; please open an [issue](https://www.github.com/fragment-dev/golang/issues) with questions, bugs, or suggestions.

## Contributing

Expand Down
4 changes: 2 additions & 2 deletions aliases.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
package fragment

import (
"github.com/fragment-dev/fragment-billing-go/internal/apierror"
"github.com/fragment-dev/fragment-billing-go/packages/param"
"github.com/fragment-dev/golang/internal/apierror"
"github.com/fragment-dev/golang/packages/param"
)

// aliased to make [param.APIUnion] private when embedding
Expand Down
124 changes: 62 additions & 62 deletions api.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"os"
"slices"

"github.com/fragment-dev/fragment-billing-go/internal/requestconfig"
"github.com/fragment-dev/fragment-billing-go/option"
"github.com/fragment-dev/golang/internal/requestconfig"
"github.com/fragment-dev/golang/option"
)

// Client creates a struct with services and top level methods that help with
Expand Down
6 changes: 3 additions & 3 deletions client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (
"testing"
"time"

"github.com/fragment-dev/fragment-billing-go"
"github.com/fragment-dev/fragment-billing-go/internal"
"github.com/fragment-dev/fragment-billing-go/option"
"github.com/fragment-dev/golang"
"github.com/fragment-dev/golang/internal"
"github.com/fragment-dev/golang/option"
)

type closureTransport struct {
Expand Down
2 changes: 1 addition & 1 deletion experimental.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
package fragment

import (
"github.com/fragment-dev/fragment-billing-go/option"
"github.com/fragment-dev/golang/option"
)

// ExperimentalService contains methods and other services that help with
Expand Down
10 changes: 5 additions & 5 deletions experimentalpayment.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ import (
"net/url"
"slices"

"github.com/fragment-dev/fragment-billing-go/internal/apijson"
"github.com/fragment-dev/fragment-billing-go/internal/requestconfig"
"github.com/fragment-dev/fragment-billing-go/option"
"github.com/fragment-dev/fragment-billing-go/packages/param"
"github.com/fragment-dev/fragment-billing-go/packages/respjson"
"github.com/fragment-dev/golang/internal/apijson"
"github.com/fragment-dev/golang/internal/requestconfig"
"github.com/fragment-dev/golang/option"
"github.com/fragment-dev/golang/packages/param"
"github.com/fragment-dev/golang/packages/respjson"
)

// Payment operations
Expand Down
6 changes: 3 additions & 3 deletions experimentalpayment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (
"os"
"testing"

"github.com/fragment-dev/fragment-billing-go"
"github.com/fragment-dev/fragment-billing-go/internal/testutil"
"github.com/fragment-dev/fragment-billing-go/option"
"github.com/fragment-dev/golang"
"github.com/fragment-dev/golang/internal/testutil"
"github.com/fragment-dev/golang/option"
)

func TestExperimentalPaymentGet(t *testing.T) {
Expand Down
10 changes: 5 additions & 5 deletions experimentalpaymentflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ import (
"net/url"
"slices"

"github.com/fragment-dev/fragment-billing-go/internal/apijson"
"github.com/fragment-dev/fragment-billing-go/internal/requestconfig"
"github.com/fragment-dev/fragment-billing-go/option"
"github.com/fragment-dev/fragment-billing-go/packages/param"
"github.com/fragment-dev/fragment-billing-go/packages/respjson"
"github.com/fragment-dev/golang/internal/apijson"
"github.com/fragment-dev/golang/internal/requestconfig"
"github.com/fragment-dev/golang/option"
"github.com/fragment-dev/golang/packages/param"
"github.com/fragment-dev/golang/packages/respjson"
)

// Payment flow operations
Expand Down
6 changes: 3 additions & 3 deletions experimentalpaymentflow_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (
"os"
"testing"

"github.com/fragment-dev/fragment-billing-go"
"github.com/fragment-dev/fragment-billing-go/internal/testutil"
"github.com/fragment-dev/fragment-billing-go/option"
"github.com/fragment-dev/golang"
"github.com/fragment-dev/golang/internal/testutil"
"github.com/fragment-dev/golang/option"
)

func TestExperimentalPaymentFlowNew(t *testing.T) {
Expand Down
10 changes: 5 additions & 5 deletions externalaccount.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import (
"net/http"
"slices"

"github.com/fragment-dev/fragment-billing-go/internal/apijson"
"github.com/fragment-dev/fragment-billing-go/internal/requestconfig"
"github.com/fragment-dev/fragment-billing-go/option"
"github.com/fragment-dev/fragment-billing-go/packages/param"
"github.com/fragment-dev/fragment-billing-go/packages/respjson"
"github.com/fragment-dev/golang/internal/apijson"
"github.com/fragment-dev/golang/internal/requestconfig"
"github.com/fragment-dev/golang/option"
"github.com/fragment-dev/golang/packages/param"
"github.com/fragment-dev/golang/packages/respjson"
)

// External account management operations
Expand Down
6 changes: 3 additions & 3 deletions externalaccount_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (
"os"
"testing"

"github.com/fragment-dev/fragment-billing-go"
"github.com/fragment-dev/fragment-billing-go/internal/testutil"
"github.com/fragment-dev/fragment-billing-go/option"
"github.com/fragment-dev/golang"
"github.com/fragment-dev/golang/internal/testutil"
"github.com/fragment-dev/golang/option"
)

func TestExternalAccountNew(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion field.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package fragment

import (
"github.com/fragment-dev/fragment-billing-go/packages/param"
"github.com/fragment-dev/golang/packages/param"
"io"
"time"
)
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/fragment-dev/fragment-billing-go
module github.com/fragment-dev/golang

go 1.22

Expand Down
4 changes: 2 additions & 2 deletions internal/apierror/apierror.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"net/http"
"net/http/httputil"

"github.com/fragment-dev/fragment-billing-go/internal/apijson"
"github.com/fragment-dev/fragment-billing-go/packages/respjson"
"github.com/fragment-dev/golang/internal/apijson"
"github.com/fragment-dev/golang/packages/respjson"
)

// Error represents an error that originates from the API, i.e. when a request is
Expand Down
2 changes: 1 addition & 1 deletion internal/apiform/encoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"sync"
"time"

"github.com/fragment-dev/fragment-billing-go/packages/param"
"github.com/fragment-dev/golang/packages/param"
)

var encoders sync.Map // map[encoderEntry]encoderFunc
Expand Down
2 changes: 1 addition & 1 deletion internal/apiform/form_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package apiform

import (
"bytes"
"github.com/fragment-dev/fragment-billing-go/packages/param"
"github.com/fragment-dev/golang/packages/param"
"io"
"mime/multipart"
"strings"
Expand Down
2 changes: 1 addition & 1 deletion internal/apiform/richparam.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package apiform

import (
"github.com/fragment-dev/fragment-billing-go/packages/param"
"github.com/fragment-dev/golang/packages/param"
"mime/multipart"
"reflect"
)
Expand Down
4 changes: 2 additions & 2 deletions internal/apijson/decodeparam_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package apijson_test
import (
"encoding/json"
"fmt"
"github.com/fragment-dev/fragment-billing-go/internal/apijson"
"github.com/fragment-dev/fragment-billing-go/packages/param"
"github.com/fragment-dev/golang/internal/apijson"
"github.com/fragment-dev/golang/packages/param"
"reflect"
"testing"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/apijson/decoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ package apijson
import (
"encoding/json"
"fmt"
"github.com/fragment-dev/fragment-billing-go/packages/param"
"github.com/fragment-dev/golang/packages/param"
"reflect"
"strconv"
"sync"
Expand Down
4 changes: 2 additions & 2 deletions internal/apijson/decoderesp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package apijson_test

import (
"encoding/json"
"github.com/fragment-dev/fragment-billing-go/internal/apijson"
"github.com/fragment-dev/fragment-billing-go/packages/respjson"
"github.com/fragment-dev/golang/internal/apijson"
"github.com/fragment-dev/golang/packages/respjson"
"testing"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/apijson/encoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (

"github.com/tidwall/sjson"

shimjson "github.com/fragment-dev/fragment-billing-go/internal/encoding/json"
shimjson "github.com/fragment-dev/golang/internal/encoding/json"
)

var encoders sync.Map // map[encoderEntry]encoderFunc
Expand Down
2 changes: 1 addition & 1 deletion internal/apijson/subfield.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package apijson

import (
"github.com/fragment-dev/fragment-billing-go/packages/respjson"
"github.com/fragment-dev/golang/packages/respjson"
"reflect"
)

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

import (
"errors"
"github.com/fragment-dev/fragment-billing-go/packages/param"
"github.com/fragment-dev/golang/packages/param"
"reflect"

"github.com/tidwall/gjson"
Expand Down
2 changes: 1 addition & 1 deletion internal/apiquery/encoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"sync"
"time"

"github.com/fragment-dev/fragment-billing-go/packages/param"
"github.com/fragment-dev/golang/packages/param"
)

var encoders sync.Map // map[reflect.Type]encoderFunc
Expand Down
2 changes: 1 addition & 1 deletion internal/apiquery/query_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package apiquery

import (
"github.com/fragment-dev/fragment-billing-go/packages/param"
"github.com/fragment-dev/golang/packages/param"
"net/url"
"testing"
"time"
Expand Down
2 changes: 1 addition & 1 deletion internal/apiquery/richparam.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package apiquery

import (
"github.com/fragment-dev/fragment-billing-go/packages/param"
"github.com/fragment-dev/golang/packages/param"
"reflect"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/encoding/json/decode.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"encoding"
"encoding/base64"
"fmt"
"github.com/fragment-dev/fragment-billing-go/internal/encoding/json/shims"
"github.com/fragment-dev/golang/internal/encoding/json/shims"
"reflect"
"strconv"
"strings"
Expand Down
4 changes: 2 additions & 2 deletions internal/encoding/json/encode.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ import (
"encoding"
"encoding/base64"
"fmt"
"github.com/fragment-dev/fragment-billing-go/internal/encoding/json/sentinel"
"github.com/fragment-dev/fragment-billing-go/internal/encoding/json/shims"
"github.com/fragment-dev/golang/internal/encoding/json/sentinel"
"github.com/fragment-dev/golang/internal/encoding/json/shims"
"math"
"reflect"
"slices"
Expand Down
2 changes: 1 addition & 1 deletion internal/encoding/json/sentinel/null.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package sentinel

import (
"github.com/fragment-dev/fragment-billing-go/internal/encoding/json/shims"
"github.com/fragment-dev/golang/internal/encoding/json/shims"
"reflect"
"sync"
)
Expand Down
Loading
Loading