diff --git a/.release-please-manifest.json b/.release-please-manifest.json index c7159c1..28e831b 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.0.2" + ".": "0.0.3" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 31ab152..4f3b0f3 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,3 +1,3 @@ configured_endpoints: 27 openapi_spec_hash: 96766c4efc6b4474a44caff9533c94f0 -config_hash: 9a6ce08c8b87efb45fdbf07e323a6f82 +config_hash: 58ecb7791515711079bc6418b8630e14 diff --git a/CHANGELOG.md b/CHANGELOG.md index 0ad99ba..b331781 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 4e93f4b..8037864 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -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 diff --git a/README.md b/README.md index 01dcfa5..236090a 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ -Go Reference +Go Reference @@ -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 ) ``` @@ -28,7 +28,7 @@ Or to pin the 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' ``` @@ -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() { @@ -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 @@ -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 diff --git a/aliases.go b/aliases.go index 5dfc6f1..cd4ce18 100644 --- a/aliases.go +++ b/aliases.go @@ -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 diff --git a/api.md b/api.md index b7cca4b..1b41b18 100644 --- a/api.md +++ b/api.md @@ -4,124 +4,124 @@ Response Types: -- fragment.PaymentFlow -- fragment.ExperimentalPaymentFlowNewResponse -- fragment.ExperimentalPaymentFlowGetResponse -- fragment.ExperimentalPaymentFlowSearchResponse +- fragment.PaymentFlow +- fragment.ExperimentalPaymentFlowNewResponse +- fragment.ExperimentalPaymentFlowGetResponse +- fragment.ExperimentalPaymentFlowSearchResponse Methods: -- client.Experimental.PaymentFlows.New(ctx context.Context, body fragment.ExperimentalPaymentFlowNewParams) (\*fragment.ExperimentalPaymentFlowNewResponse, error) -- client.Experimental.PaymentFlows.Get(ctx context.Context, paymentFlowRef string) (\*fragment.ExperimentalPaymentFlowGetResponse, error) -- client.Experimental.PaymentFlows.Search(ctx context.Context, body fragment.ExperimentalPaymentFlowSearchParams) (\*fragment.ExperimentalPaymentFlowSearchResponse, error) +- client.Experimental.PaymentFlows.New(ctx context.Context, body fragment.ExperimentalPaymentFlowNewParams) (\*fragment.ExperimentalPaymentFlowNewResponse, error) +- client.Experimental.PaymentFlows.Get(ctx context.Context, paymentFlowRef string) (\*fragment.ExperimentalPaymentFlowGetResponse, error) +- client.Experimental.PaymentFlows.Search(ctx context.Context, body fragment.ExperimentalPaymentFlowSearchParams) (\*fragment.ExperimentalPaymentFlowSearchResponse, error) ## Payments Response Types: -- fragment.Payment -- fragment.ExperimentalPaymentGetResponse -- fragment.ExperimentalPaymentSearchResponse +- fragment.Payment +- fragment.ExperimentalPaymentGetResponse +- fragment.ExperimentalPaymentSearchResponse Methods: -- client.Experimental.Payments.Get(ctx context.Context, paymentRef string) (\*fragment.ExperimentalPaymentGetResponse, error) -- client.Experimental.Payments.Search(ctx context.Context, body fragment.ExperimentalPaymentSearchParams) (\*fragment.ExperimentalPaymentSearchResponse, error) +- client.Experimental.Payments.Get(ctx context.Context, paymentRef string) (\*fragment.ExperimentalPaymentGetResponse, error) +- client.Experimental.Payments.Search(ctx context.Context, body fragment.ExperimentalPaymentSearchParams) (\*fragment.ExperimentalPaymentSearchResponse, error) # ExternalAccounts Response Types: -- fragment.ExternalAccount -- fragment.ExternalAccountNewResponse -- fragment.ExternalAccountListResponse +- fragment.ExternalAccount +- fragment.ExternalAccountNewResponse +- fragment.ExternalAccountListResponse Methods: -- client.ExternalAccounts.New(ctx context.Context, body fragment.ExternalAccountNewParams) (\*fragment.ExternalAccountNewResponse, error) -- client.ExternalAccounts.List(ctx context.Context) (\*fragment.ExternalAccountListResponse, error) +- client.ExternalAccounts.New(ctx context.Context, body fragment.ExternalAccountNewParams) (\*fragment.ExternalAccountNewResponse, error) +- client.ExternalAccounts.List(ctx context.Context) (\*fragment.ExternalAccountListResponse, error) # Invoices Response Types: -- fragment.Invoice -- fragment.InvoiceNewResponse -- fragment.InvoiceGetResponse -- fragment.InvoiceUpdateResponse -- fragment.InvoiceListResponse -- fragment.InvoiceListHistoryResponse -- fragment.InvoiceSearchResponse +- fragment.Invoice +- fragment.InvoiceNewResponse +- fragment.InvoiceGetResponse +- fragment.InvoiceUpdateResponse +- fragment.InvoiceListResponse +- fragment.InvoiceListHistoryResponse +- fragment.InvoiceSearchResponse Methods: -- client.Invoices.New(ctx context.Context, body fragment.InvoiceNewParams) (\*fragment.InvoiceNewResponse, error) -- client.Invoices.Get(ctx context.Context, id string) (\*fragment.InvoiceGetResponse, error) -- client.Invoices.Update(ctx context.Context, id string, body fragment.InvoiceUpdateParams) (\*fragment.InvoiceUpdateResponse, error) -- client.Invoices.List(ctx context.Context) (\*fragment.InvoiceListResponse, error) -- client.Invoices.ListHistory(ctx context.Context, id string) (\*fragment.InvoiceListHistoryResponse, error) -- client.Invoices.Search(ctx context.Context, body fragment.InvoiceSearchParams) (\*fragment.InvoiceSearchResponse, error) +- client.Invoices.New(ctx context.Context, body fragment.InvoiceNewParams) (\*fragment.InvoiceNewResponse, error) +- client.Invoices.Get(ctx context.Context, id string) (\*fragment.InvoiceGetResponse, error) +- client.Invoices.Update(ctx context.Context, id string, body fragment.InvoiceUpdateParams) (\*fragment.InvoiceUpdateResponse, error) +- client.Invoices.List(ctx context.Context) (\*fragment.InvoiceListResponse, error) +- client.Invoices.ListHistory(ctx context.Context, id string) (\*fragment.InvoiceListHistoryResponse, error) +- client.Invoices.Search(ctx context.Context, body fragment.InvoiceSearchParams) (\*fragment.InvoiceSearchResponse, error) # Products Response Types: -- fragment.Product -- fragment.ProductNewResponse -- fragment.ProductGetResponse -- fragment.ProductListResponse +- fragment.Product +- fragment.ProductNewResponse +- fragment.ProductGetResponse +- fragment.ProductListResponse Methods: -- client.Products.New(ctx context.Context, body fragment.ProductNewParams) (\*fragment.ProductNewResponse, error) -- client.Products.Get(ctx context.Context, code string) (\*fragment.ProductGetResponse, error) -- client.Products.List(ctx context.Context) (\*fragment.ProductListResponse, error) +- client.Products.New(ctx context.Context, body fragment.ProductNewParams) (\*fragment.ProductNewResponse, error) +- client.Products.Get(ctx context.Context, code string) (\*fragment.ProductGetResponse, error) +- client.Products.List(ctx context.Context) (\*fragment.ProductListResponse, error) # Roles Response Types: -- fragment.Role -- fragment.RoleNewResponse -- fragment.RoleListResponse +- fragment.Role +- fragment.RoleNewResponse +- fragment.RoleListResponse Methods: -- client.Roles.New(ctx context.Context, body fragment.RoleNewParams) (\*fragment.RoleNewResponse, error) -- client.Roles.List(ctx context.Context) (\*fragment.RoleListResponse, error) +- client.Roles.New(ctx context.Context, body fragment.RoleNewParams) (\*fragment.RoleNewResponse, error) +- client.Roles.List(ctx context.Context) (\*fragment.RoleListResponse, error) # Transactions Response Types: -- fragment.Transaction -- fragment.TransactionNewResponse -- fragment.TransactionGetResponse -- fragment.TransactionUpdateResponse -- fragment.TransactionListResponse -- fragment.TransactionListHistoryResponse -- fragment.TransactionSearchResponse -- fragment.TransactionSearchAllocationsResponse +- fragment.Transaction +- fragment.TransactionNewResponse +- fragment.TransactionGetResponse +- fragment.TransactionUpdateResponse +- fragment.TransactionListResponse +- fragment.TransactionListHistoryResponse +- fragment.TransactionSearchResponse +- fragment.TransactionSearchAllocationsResponse Methods: -- client.Transactions.New(ctx context.Context, body fragment.TransactionNewParams) (\*fragment.TransactionNewResponse, error) -- client.Transactions.Get(ctx context.Context, transactionRef string) (\*fragment.TransactionGetResponse, error) -- client.Transactions.Update(ctx context.Context, transactionRef string, body fragment.TransactionUpdateParams) (\*fragment.TransactionUpdateResponse, error) -- client.Transactions.List(ctx context.Context, query fragment.TransactionListParams) (\*fragment.TransactionListResponse, error) -- client.Transactions.ListHistory(ctx context.Context, transactionRef string) (\*fragment.TransactionListHistoryResponse, error) -- client.Transactions.Search(ctx context.Context, body fragment.TransactionSearchParams) (\*fragment.TransactionSearchResponse, error) -- client.Transactions.SearchAllocations(ctx context.Context, body fragment.TransactionSearchAllocationsParams) (\*fragment.TransactionSearchAllocationsResponse, error) +- client.Transactions.New(ctx context.Context, body fragment.TransactionNewParams) (\*fragment.TransactionNewResponse, error) +- client.Transactions.Get(ctx context.Context, transactionRef string) (\*fragment.TransactionGetResponse, error) +- client.Transactions.Update(ctx context.Context, transactionRef string, body fragment.TransactionUpdateParams) (\*fragment.TransactionUpdateResponse, error) +- client.Transactions.List(ctx context.Context, query fragment.TransactionListParams) (\*fragment.TransactionListResponse, error) +- client.Transactions.ListHistory(ctx context.Context, transactionRef string) (\*fragment.TransactionListHistoryResponse, error) +- client.Transactions.Search(ctx context.Context, body fragment.TransactionSearchParams) (\*fragment.TransactionSearchResponse, error) +- client.Transactions.SearchAllocations(ctx context.Context, body fragment.TransactionSearchAllocationsParams) (\*fragment.TransactionSearchAllocationsResponse, error) # Users Response Types: -- fragment.User -- fragment.UserNewResponse -- fragment.UserListResponse +- fragment.User +- fragment.UserNewResponse +- fragment.UserListResponse Methods: -- client.Users.New(ctx context.Context, body fragment.UserNewParams) (\*fragment.UserNewResponse, error) -- client.Users.List(ctx context.Context) (\*fragment.UserListResponse, error) +- client.Users.New(ctx context.Context, body fragment.UserNewParams) (\*fragment.UserNewResponse, error) +- client.Users.List(ctx context.Context) (\*fragment.UserListResponse, error) diff --git a/client.go b/client.go index 1001e93..9185379 100644 --- a/client.go +++ b/client.go @@ -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 diff --git a/client_test.go b/client_test.go index 03f92bc..aa1fbe7 100644 --- a/client_test.go +++ b/client_test.go @@ -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 { diff --git a/experimental.go b/experimental.go index 5fd02fc..3f48b35 100644 --- a/experimental.go +++ b/experimental.go @@ -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 diff --git a/experimentalpayment.go b/experimentalpayment.go index 1e9b188..7f8a734 100644 --- a/experimentalpayment.go +++ b/experimentalpayment.go @@ -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 diff --git a/experimentalpayment_test.go b/experimentalpayment_test.go index 53e89fc..a02c278 100644 --- a/experimentalpayment_test.go +++ b/experimentalpayment_test.go @@ -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) { diff --git a/experimentalpaymentflow.go b/experimentalpaymentflow.go index c19610a..6fccc45 100644 --- a/experimentalpaymentflow.go +++ b/experimentalpaymentflow.go @@ -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 diff --git a/experimentalpaymentflow_test.go b/experimentalpaymentflow_test.go index 7aee36e..59f2e3a 100644 --- a/experimentalpaymentflow_test.go +++ b/experimentalpaymentflow_test.go @@ -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) { diff --git a/externalaccount.go b/externalaccount.go index cc3ec21..5d663c8 100644 --- a/externalaccount.go +++ b/externalaccount.go @@ -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 diff --git a/externalaccount_test.go b/externalaccount_test.go index 4c8bd04..81fe3f1 100644 --- a/externalaccount_test.go +++ b/externalaccount_test.go @@ -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) { diff --git a/field.go b/field.go index 754382d..b13e777 100644 --- a/field.go +++ b/field.go @@ -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" ) diff --git a/go.mod b/go.mod index 00b0e8c..a6e9906 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/fragment-dev/fragment-billing-go +module github.com/fragment-dev/golang go 1.22 diff --git a/internal/apierror/apierror.go b/internal/apierror/apierror.go index d9b458e..54eb86a 100644 --- a/internal/apierror/apierror.go +++ b/internal/apierror/apierror.go @@ -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 diff --git a/internal/apiform/encoder.go b/internal/apiform/encoder.go index 83b4f30..29f7243 100644 --- a/internal/apiform/encoder.go +++ b/internal/apiform/encoder.go @@ -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 diff --git a/internal/apiform/form_test.go b/internal/apiform/form_test.go index 44b2d11..f89f2b5 100644 --- a/internal/apiform/form_test.go +++ b/internal/apiform/form_test.go @@ -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" diff --git a/internal/apiform/richparam.go b/internal/apiform/richparam.go index 9ea0bfe..efa0156 100644 --- a/internal/apiform/richparam.go +++ b/internal/apiform/richparam.go @@ -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" ) diff --git a/internal/apijson/decodeparam_test.go b/internal/apijson/decodeparam_test.go index 2b171de..1cf762a 100644 --- a/internal/apijson/decodeparam_test.go +++ b/internal/apijson/decodeparam_test.go @@ -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" ) diff --git a/internal/apijson/decoder.go b/internal/apijson/decoder.go index 091ac53..313c29b 100644 --- a/internal/apijson/decoder.go +++ b/internal/apijson/decoder.go @@ -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" diff --git a/internal/apijson/decoderesp_test.go b/internal/apijson/decoderesp_test.go index 6acf5a1..7629752 100644 --- a/internal/apijson/decoderesp_test.go +++ b/internal/apijson/decoderesp_test.go @@ -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" ) diff --git a/internal/apijson/encoder.go b/internal/apijson/encoder.go index 4e15649..ffe1b88 100644 --- a/internal/apijson/encoder.go +++ b/internal/apijson/encoder.go @@ -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 diff --git a/internal/apijson/subfield.go b/internal/apijson/subfield.go index 750943b..1b990ce 100644 --- a/internal/apijson/subfield.go +++ b/internal/apijson/subfield.go @@ -1,7 +1,7 @@ package apijson import ( - "github.com/fragment-dev/fragment-billing-go/packages/respjson" + "github.com/fragment-dev/golang/packages/respjson" "reflect" ) diff --git a/internal/apijson/union.go b/internal/apijson/union.go index 0c29d54..a600d45 100644 --- a/internal/apijson/union.go +++ b/internal/apijson/union.go @@ -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" diff --git a/internal/apiquery/encoder.go b/internal/apiquery/encoder.go index 9b5c5d6..242cb8c 100644 --- a/internal/apiquery/encoder.go +++ b/internal/apiquery/encoder.go @@ -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 diff --git a/internal/apiquery/query_test.go b/internal/apiquery/query_test.go index 34f6bc0..5fc0bf2 100644 --- a/internal/apiquery/query_test.go +++ b/internal/apiquery/query_test.go @@ -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" diff --git a/internal/apiquery/richparam.go b/internal/apiquery/richparam.go index 96b9595..18d71ce 100644 --- a/internal/apiquery/richparam.go +++ b/internal/apiquery/richparam.go @@ -1,7 +1,7 @@ package apiquery import ( - "github.com/fragment-dev/fragment-billing-go/packages/param" + "github.com/fragment-dev/golang/packages/param" "reflect" ) diff --git a/internal/encoding/json/decode.go b/internal/encoding/json/decode.go index c72c3bd..efdb6c4 100644 --- a/internal/encoding/json/decode.go +++ b/internal/encoding/json/decode.go @@ -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" diff --git a/internal/encoding/json/encode.go b/internal/encoding/json/encode.go index b1a0586..51c08e6 100644 --- a/internal/encoding/json/encode.go +++ b/internal/encoding/json/encode.go @@ -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" diff --git a/internal/encoding/json/sentinel/null.go b/internal/encoding/json/sentinel/null.go index 3960695..bcdeaf8 100644 --- a/internal/encoding/json/sentinel/null.go +++ b/internal/encoding/json/sentinel/null.go @@ -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" ) diff --git a/internal/encoding/json/sentinel/sentinel_test.go b/internal/encoding/json/sentinel/sentinel_test.go index 31b5bfd..4721622 100644 --- a/internal/encoding/json/sentinel/sentinel_test.go +++ b/internal/encoding/json/sentinel/sentinel_test.go @@ -1,8 +1,8 @@ package sentinel_test import ( - "github.com/fragment-dev/fragment-billing-go/internal/encoding/json/sentinel" - "github.com/fragment-dev/fragment-billing-go/packages/param" + "github.com/fragment-dev/golang/internal/encoding/json/sentinel" + "github.com/fragment-dev/golang/packages/param" "reflect" "slices" "testing" diff --git a/internal/encoding/json/time.go b/internal/encoding/json/time.go index 6cabe49..cdd482f 100644 --- a/internal/encoding/json/time.go +++ b/internal/encoding/json/time.go @@ -2,7 +2,7 @@ package json import ( - "github.com/fragment-dev/fragment-billing-go/internal/encoding/json/shims" + "github.com/fragment-dev/golang/internal/encoding/json/shims" "reflect" "time" ) diff --git a/internal/paramutil/field.go b/internal/paramutil/field.go index 856fe41..c5fd6f8 100644 --- a/internal/paramutil/field.go +++ b/internal/paramutil/field.go @@ -1,8 +1,8 @@ package paramutil import ( - "github.com/fragment-dev/fragment-billing-go/packages/param" - "github.com/fragment-dev/fragment-billing-go/packages/respjson" + "github.com/fragment-dev/golang/packages/param" + "github.com/fragment-dev/golang/packages/respjson" ) func AddrIfPresent[T comparable](v param.Opt[T]) *T { diff --git a/internal/paramutil/union.go b/internal/paramutil/union.go index 21b4ed0..7d5e282 100644 --- a/internal/paramutil/union.go +++ b/internal/paramutil/union.go @@ -2,7 +2,7 @@ package paramutil import ( "fmt" - "github.com/fragment-dev/fragment-billing-go/packages/param" + "github.com/fragment-dev/golang/packages/param" "reflect" ) diff --git a/internal/requestconfig/requestconfig.go b/internal/requestconfig/requestconfig.go index f5bb29c..3879779 100644 --- a/internal/requestconfig/requestconfig.go +++ b/internal/requestconfig/requestconfig.go @@ -18,10 +18,10 @@ import ( "strings" "time" - "github.com/fragment-dev/fragment-billing-go/internal" - "github.com/fragment-dev/fragment-billing-go/internal/apierror" - "github.com/fragment-dev/fragment-billing-go/internal/apiform" - "github.com/fragment-dev/fragment-billing-go/internal/apiquery" + "github.com/fragment-dev/golang/internal" + "github.com/fragment-dev/golang/internal/apierror" + "github.com/fragment-dev/golang/internal/apiform" + "github.com/fragment-dev/golang/internal/apiquery" ) func getDefaultHeaders() map[string]string { diff --git a/internal/version.go b/internal/version.go index 9b92696..b5b3e63 100644 --- a/internal/version.go +++ b/internal/version.go @@ -2,4 +2,4 @@ package internal -const PackageVersion = "0.0.2" // x-release-please-version +const PackageVersion = "0.0.3" // x-release-please-version diff --git a/invoice.go b/invoice.go index 6635da9..44f1813 100644 --- a/invoice.go +++ b/invoice.go @@ -11,11 +11,11 @@ import ( "slices" "time" - "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" ) // Invoice management operations diff --git a/invoice_test.go b/invoice_test.go index 7917fb3..7a2aa35 100644 --- a/invoice_test.go +++ b/invoice_test.go @@ -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 TestInvoiceNewWithOptionalParams(t *testing.T) { diff --git a/option/requestoption.go b/option/requestoption.go index a27b046..fa2fb89 100644 --- a/option/requestoption.go +++ b/option/requestoption.go @@ -11,7 +11,7 @@ import ( "strings" "time" - "github.com/fragment-dev/fragment-billing-go/internal/requestconfig" + "github.com/fragment-dev/golang/internal/requestconfig" "github.com/tidwall/sjson" ) @@ -19,7 +19,7 @@ import ( // which can be supplied to clients, services, and methods. You can read more about this functional // options pattern in our [README]. // -// [README]: https://pkg.go.dev/github.com/fragment-dev/fragment-billing-go#readme-requestoptions +// [README]: https://pkg.go.dev/github.com/fragment-dev/golang#readme-requestoptions type RequestOption = requestconfig.RequestOption // WithBaseURL returns a RequestOption that sets the BaseURL for the client. diff --git a/packages/param/encoder.go b/packages/param/encoder.go index c179017..a2e224f 100644 --- a/packages/param/encoder.go +++ b/packages/param/encoder.go @@ -7,7 +7,7 @@ import ( "strings" "time" - shimjson "github.com/fragment-dev/fragment-billing-go/internal/encoding/json" + shimjson "github.com/fragment-dev/golang/internal/encoding/json" "github.com/tidwall/sjson" ) diff --git a/packages/param/encoder_test.go b/packages/param/encoder_test.go index 82ae180..9e8b436 100644 --- a/packages/param/encoder_test.go +++ b/packages/param/encoder_test.go @@ -5,7 +5,7 @@ import ( "testing" "time" - "github.com/fragment-dev/fragment-billing-go/packages/param" + "github.com/fragment-dev/golang/packages/param" ) type Struct struct { diff --git a/packages/param/null.go b/packages/param/null.go index 76c77e4..2fc1b1c 100644 --- a/packages/param/null.go +++ b/packages/param/null.go @@ -1,6 +1,6 @@ package param -import "github.com/fragment-dev/fragment-billing-go/internal/encoding/json/sentinel" +import "github.com/fragment-dev/golang/internal/encoding/json/sentinel" // NullMap returns a non-nil map with a length of 0. // When used with [MarshalObject] or [MarshalUnion], it will be marshaled as null. diff --git a/packages/param/null_test.go b/packages/param/null_test.go index 3c072c3..b224b58 100644 --- a/packages/param/null_test.go +++ b/packages/param/null_test.go @@ -2,7 +2,7 @@ package param_test import ( "encoding/json" - "github.com/fragment-dev/fragment-billing-go/packages/param" + "github.com/fragment-dev/golang/packages/param" "testing" ) diff --git a/packages/param/option.go b/packages/param/option.go index ec0ab48..9cd5266 100644 --- a/packages/param/option.go +++ b/packages/param/option.go @@ -3,7 +3,7 @@ package param import ( "encoding/json" "fmt" - shimjson "github.com/fragment-dev/fragment-billing-go/internal/encoding/json" + shimjson "github.com/fragment-dev/golang/internal/encoding/json" "time" ) diff --git a/packages/param/param.go b/packages/param/param.go index e1bc4fb..69c5a33 100644 --- a/packages/param/param.go +++ b/packages/param/param.go @@ -2,7 +2,7 @@ package param import ( "encoding/json" - "github.com/fragment-dev/fragment-billing-go/internal/encoding/json/sentinel" + "github.com/fragment-dev/golang/internal/encoding/json/sentinel" "reflect" ) diff --git a/packages/respjson/decoder_test.go b/packages/respjson/decoder_test.go index 02688f1..e538ab1 100644 --- a/packages/respjson/decoder_test.go +++ b/packages/respjson/decoder_test.go @@ -3,8 +3,8 @@ package respjson_test import ( "encoding/json" "fmt" - "github.com/fragment-dev/fragment-billing-go/internal/apijson" - rj "github.com/fragment-dev/fragment-billing-go/packages/respjson" + "github.com/fragment-dev/golang/internal/apijson" + rj "github.com/fragment-dev/golang/packages/respjson" "reflect" "testing" ) diff --git a/product.go b/product.go index 9817828..2022b3d 100644 --- a/product.go +++ b/product.go @@ -11,11 +11,11 @@ import ( "slices" "time" - "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" ) // Product management operations diff --git a/product_test.go b/product_test.go index 1a2ffa1..ff03d18 100644 --- a/product_test.go +++ b/product_test.go @@ -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 TestProductNewWithOptionalParams(t *testing.T) { diff --git a/role.go b/role.go index 6f6d6ac..e2bc524 100644 --- a/role.go +++ b/role.go @@ -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" ) // Role management operations diff --git a/role_test.go b/role_test.go index 6b6b7dc..73b1593 100644 --- a/role_test.go +++ b/role_test.go @@ -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 TestRoleNew(t *testing.T) { diff --git a/scripts/utils/upload-artifact.sh b/scripts/utils/upload-artifact.sh index 8a48c87..3a319a4 100755 --- a/scripts/utils/upload-artifact.sh +++ b/scripts/utils/upload-artifact.sh @@ -43,7 +43,7 @@ UPLOAD_RESPONSE=$(curl -v -X PUT \ if echo "$UPLOAD_RESPONSE" | grep -q "HTTP/[0-9.]* 200"; then echo -e "\033[32mUploaded build to Stainless storage.\033[0m" - echo -e "\033[32mInstallation: Download and unzip: 'https://pkg.stainless.com/s/fragment-go/$SHA'. Run 'go mod edit -replace github.com/fragment-dev/fragment-billing-go=/path/to/unzipped_directory'.\033[0m" + echo -e "\033[32mInstallation: Download and unzip: 'https://pkg.stainless.com/s/fragment-go/$SHA'. Run 'go mod edit -replace github.com/fragment-dev/golang=/path/to/unzipped_directory'.\033[0m" else echo -e "\033[31mFailed to upload artifact.\033[0m" exit 1 diff --git a/shared/constant/constants.go b/shared/constant/constants.go index 7ab7858..b2ceb9d 100644 --- a/shared/constant/constants.go +++ b/shared/constant/constants.go @@ -3,7 +3,7 @@ package constant import ( - shimjson "github.com/fragment-dev/fragment-billing-go/internal/encoding/json" + shimjson "github.com/fragment-dev/golang/internal/encoding/json" ) type Constant[T any] interface { diff --git a/transaction.go b/transaction.go index dbf55a5..78e823f 100644 --- a/transaction.go +++ b/transaction.go @@ -11,12 +11,12 @@ import ( "slices" "time" - "github.com/fragment-dev/fragment-billing-go/internal/apijson" - "github.com/fragment-dev/fragment-billing-go/internal/apiquery" - "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/apiquery" + "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" ) // Transaction sync operations diff --git a/transaction_test.go b/transaction_test.go index 9b169eb..4861af3 100644 --- a/transaction_test.go +++ b/transaction_test.go @@ -9,9 +9,9 @@ import ( "testing" "time" - "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 TestTransactionNewWithOptionalParams(t *testing.T) { diff --git a/usage_test.go b/usage_test.go index 72ac87d..e65ea14 100644 --- a/usage_test.go +++ b/usage_test.go @@ -7,9 +7,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 TestUsage(t *testing.T) { diff --git a/user.go b/user.go index 51765e7..0b5ec75 100644 --- a/user.go +++ b/user.go @@ -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" ) // User management operations diff --git a/user_test.go b/user_test.go index 2ab93f0..f07bf2e 100644 --- a/user_test.go +++ b/user_test.go @@ -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 TestUserNewWithOptionalParams(t *testing.T) {