Skip to content

Commit

Permalink
Rename paths to match new repo
Browse files Browse the repository at this point in the history
  • Loading branch information
naisuuuu committed Jun 4, 2024
1 parent 05014f1 commit 244aa93
Show file tree
Hide file tree
Showing 51 changed files with 62 additions and 62 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Recurly Client for Go

[![Build Status](https://travis-ci.org/togglhire/recurly.svg?branch=master)](https://travis-ci.org/togglhire/recurly) [![GoDoc](https://godoc.org/github.com/togglhire/recurly?status.svg)](https://godoc.org/github.com/togglhire/recurly/)
[![Build Status](https://travis-ci.org/togglhire/recurly.svg?branch=master)](https://travis-ci.org/togglhire/recurly) [![GoDoc](https://godoc.org/github.com/toggl/recurly?status.svg)](https://godoc.org/github.com/toggl/recurly/)

Recurly is a Go (golang) API Client for the [Recurly](https://recurly.com/) API. It is actively maintained, unit tested, and uses no external dependencies. The vast majority of the API is implemented.

Expand All @@ -27,23 +27,23 @@ Supports:
Install:

```shell
go get github.com/togglhire/recurly
go get github.com/toggl/recurly
```

Import:

```go
import "github.com/togglhire/recurly"
import "github.com/toggl/recurly"
```

Resources:

- [API Docs](https://godoc.org/github.com/togglhire/recurly/)
- [Examples](https://godoc.org/github.com/togglhire/recurly/#pkg-examples)
- [API Docs](https://godoc.org/github.com/toggl/recurly/)
- [Examples](https://godoc.org/github.com/toggl/recurly/#pkg-examples)

## Note on v1 and breaking changes

If migrating from a previous version of the library, there was a large refactor with breaking changes released to address some design issues with the library. See the [migration guide](https://github.com/togglhire/recurly/wiki/v1-Migration-Guide) for steps on how to migrate to the latest version.
If migrating from a previous version of the library, there was a large refactor with breaking changes released to address some design issues with the library. See the [migration guide](https://github.com/toggl/recurly/wiki/v1-Migration-Guide) for steps on how to migrate to the latest version.

This is recommended for all users.

Expand All @@ -60,7 +60,7 @@ a, err := client.Accounts.Get(context.Background(), "1")

## Examples and How To

Please go through [examples](https://godoc.org/github.com/togglhire/recurly/#pkg-examples) for detailed examples of using this package.
Please go through [examples](https://godoc.org/github.com/toggl/recurly/#pkg-examples) for detailed examples of using this package.

The examples explain important cases like:

Expand Down Expand Up @@ -165,7 +165,7 @@ The usage is to parse the webhook from a reader, then use a switch statement
to determine the type of webhook received.

```go
// import "github.com/togglhire/recurly/webhooks"
// import "github.com/toggl/recurly/webhooks"

hook, err := webhooks.Parse(r)
if e, ok := err.(*webhooks.ErrUnknownNotification); ok {
Expand Down Expand Up @@ -200,7 +200,7 @@ when testing your own code that uses this library.
Instead we recommend using the `mock` package. The `mock` package provides mocks
for all of the different services in this library.

For examples of how to test your code using mocks, visit the [GoDoc examples](https://godoc.org/github.com/togglhire/recurly/mock/).
For examples of how to test your code using mocks, visit the [GoDoc examples](https://godoc.org/github.com/toggl/recurly/mock/).

> **NOTE**: If you need to go beyond mocks and test requests/responses, `testing.go` exports `TestServer`. This is how the library tests itself. See the GoDoc or the `*_test.go` files for usage examples.
Expand Down
2 changes: 1 addition & 1 deletion accounts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"testing"

"github.com/google/go-cmp/cmp"
"github.com/togglhire/recurly"
"github.com/toggl/recurly"
)

// Ensure structs are encoded to XML properly.
Expand Down
2 changes: 1 addition & 1 deletion add_ons_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"testing"

"github.com/google/go-cmp/cmp"
"github.com/togglhire/recurly"
"github.com/toggl/recurly"
)

// Ensure structs are encoded to XML properly.
Expand Down
2 changes: 1 addition & 1 deletion adjustments_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"time"

"github.com/google/go-cmp/cmp"
"github.com/togglhire/recurly"
"github.com/toggl/recurly"
)

// Ensure structs are encoded to XML properly.
Expand Down
2 changes: 1 addition & 1 deletion automated_exports_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"time"

"github.com/google/go-cmp/cmp"
"github.com/togglhire/recurly"
"github.com/toggl/recurly"
)

// Ensure structs are encoded to XML properly.
Expand Down
2 changes: 1 addition & 1 deletion billing_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"testing"

"github.com/google/go-cmp/cmp"
"github.com/togglhire/recurly"
"github.com/toggl/recurly"
)

// Ensure structs are encoded to XML properly.
Expand Down
2 changes: 1 addition & 1 deletion coupons_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"time"

"github.com/google/go-cmp/cmp"
"github.com/togglhire/recurly"
"github.com/toggl/recurly"
)

// Ensure structs are encoded to XML properly.
Expand Down
2 changes: 1 addition & 1 deletion credit_payments_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"testing"

"github.com/google/go-cmp/cmp"
"github.com/togglhire/recurly"
"github.com/toggl/recurly"
)

func TestCreditPayments_List(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Package recurly provides a client for using the Recurly API.
Construct a new Recurly client, then use the various services on the client to
access different parts of the Recurly API. For example:
import "github.com/togglhire/recurly"
import "github.com/toggl/recurly"
func main() {
client := recurly.NewClient("your-subdomain", "APIKEY")
Expand Down
2 changes: 1 addition & 1 deletion doc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"net/http"
"time"

"github.com/togglhire/recurly"
"github.com/toggl/recurly"
)

var client *recurly.Client
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/togglhire/recurly
module github.com/toggl/recurly

go 1.19

Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
github.com/togglhire/recurly v2.0.0+incompatible h1:6AKOc/8ocaAalNWcwiV6aEkeGFcjGRZDDRvcR9WcrZk=
github.com/togglhire/recurly v2.0.0+incompatible/go.mod h1:EkFu4RfxshuQOLAm3n2et9QANHQStCGP6SVC4BNOWOU=
github.com/toggl/recurly v2.0.0+incompatible h1:6AKOc/8ocaAalNWcwiV6aEkeGFcjGRZDDRvcR9WcrZk=
github.com/toggl/recurly v2.0.0+incompatible/go.mod h1:EkFu4RfxshuQOLAm3n2et9QANHQStCGP6SVC4BNOWOU=
github.com/google/go-cmp v0.2.0 h1:+dTQ8DZQJz0Mb/HjFlkptS1FeQ4cWSnN941F8aEG4SQ=
github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M=
2 changes: 1 addition & 1 deletion invoices_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"testing"

"github.com/google/go-cmp/cmp"
"github.com/togglhire/recurly"
"github.com/toggl/recurly"
)

func TestInvoices_Encoding(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion items_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"testing"

"github.com/google/go-cmp/cmp"
"github.com/togglhire/recurly"
"github.com/toggl/recurly"
)

// Ensure structs are encoded to XML properly.
Expand Down
2 changes: 1 addition & 1 deletion mock/accounts.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package mock
import (
"context"

"github.com/togglhire/recurly"
"github.com/toggl/recurly"
)

var _ recurly.AccountsService = &AccountsService{}
Expand Down
2 changes: 1 addition & 1 deletion mock/add_ons.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package mock
import (
"context"

"github.com/togglhire/recurly"
"github.com/toggl/recurly"
)

var _ recurly.AddOnsService = &AddOnsService{}
Expand Down
2 changes: 1 addition & 1 deletion mock/adjustments.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package mock
import (
"context"

"github.com/togglhire/recurly"
"github.com/toggl/recurly"
)

var _ recurly.AdjustmentsService = &AdjustmentsService{}
Expand Down
2 changes: 1 addition & 1 deletion mock/automated_exports.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"time"

"github.com/togglhire/recurly"
"github.com/toggl/recurly"
)

var _ recurly.AutomatedExportsService = &AutomatedExportsService{}
Expand Down
2 changes: 1 addition & 1 deletion mock/billing.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package mock
import (
"context"

"github.com/togglhire/recurly"
"github.com/toggl/recurly"
)

var _ recurly.BillingService = &BillingService{}
Expand Down
2 changes: 1 addition & 1 deletion mock/client.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package mock

import (
"github.com/togglhire/recurly"
"github.com/toggl/recurly"
)

// Client is a test wrapper for recurly.Client holding mocks for
Expand Down
2 changes: 1 addition & 1 deletion mock/coupons.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package mock
import (
"context"

"github.com/togglhire/recurly"
"github.com/toggl/recurly"
)

var _ recurly.CouponsService = &CouponsService{}
Expand Down
2 changes: 1 addition & 1 deletion mock/credit_payments.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package mock
import (
"context"

"github.com/togglhire/recurly"
"github.com/toggl/recurly"
)

var _ recurly.CreditPaymentsService = &CreditPaymentsService{}
Expand Down
2 changes: 1 addition & 1 deletion mock/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ Then in your test suite you might configure your own wrapper similar to mock.Cli
"context"
"github.com/your-project/foo"
"github.com/togglhire/recurly/mock"
"github.com/toggl/recurly/mock"
)
// Provider is a test wrapper for foo.Provider.
Expand Down
4 changes: 2 additions & 2 deletions mock/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"testing"

"github.com/google/go-cmp/cmp"
"github.com/togglhire/recurly"
"github.com/togglhire/recurly/mock"
"github.com/toggl/recurly"
"github.com/toggl/recurly/mock"
)

func ExampleNewClient(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion mock/invoices.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"bytes"
"context"

"github.com/togglhire/recurly"
"github.com/toggl/recurly"
)

var _ recurly.InvoicesService = &InvoicesService{}
Expand Down
2 changes: 1 addition & 1 deletion mock/pager.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package mock
import (
"context"

"github.com/togglhire/recurly"
"github.com/toggl/recurly"
)

var _ recurly.Pager = &Pager{}
Expand Down
2 changes: 1 addition & 1 deletion mock/plans.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package mock
import (
"context"

"github.com/togglhire/recurly"
"github.com/toggl/recurly"
)

var _ recurly.PlansService = &PlansService{}
Expand Down
2 changes: 1 addition & 1 deletion mock/purchases.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package mock
import (
"context"

"github.com/togglhire/recurly"
"github.com/toggl/recurly"
)

var _ recurly.PurchasesService = &PurchasesService{}
Expand Down
2 changes: 1 addition & 1 deletion mock/redemptions.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package mock
import (
"context"

"github.com/togglhire/recurly"
"github.com/toggl/recurly"
)

var _ recurly.RedemptionsService = &RedemptionsService{}
Expand Down
2 changes: 1 addition & 1 deletion mock/shipping_address.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package mock
import (
"context"

"github.com/togglhire/recurly"
"github.com/toggl/recurly"
)

var _ recurly.ShippingAddressesService = &ShippingAddressesService{}
Expand Down
2 changes: 1 addition & 1 deletion mock/shipping_methods.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package mock
import (
"context"

"github.com/togglhire/recurly"
"github.com/toggl/recurly"
)

var _ recurly.ShippingMethodsService = &ShippingMethodsService{}
Expand Down
2 changes: 1 addition & 1 deletion mock/subscriptions.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"time"

"github.com/togglhire/recurly"
"github.com/toggl/recurly"
)

var _ recurly.SubscriptionsService = &SubscriptionsService{}
Expand Down
2 changes: 1 addition & 1 deletion mock/transactions.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package mock
import (
"context"

"github.com/togglhire/recurly"
"github.com/toggl/recurly"
)

var _ recurly.TransactionsService = &TransactionsService{}
Expand Down
2 changes: 1 addition & 1 deletion pager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"testing"

"github.com/google/go-cmp/cmp"
"github.com/togglhire/recurly"
"github.com/toggl/recurly"
)

func TestPager(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion plans_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"testing"

"github.com/google/go-cmp/cmp"
"github.com/togglhire/recurly"
"github.com/toggl/recurly"
)

// Ensure structs are encoded to XML properly.
Expand Down
2 changes: 1 addition & 1 deletion purchases_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"testing"

"github.com/google/go-cmp/cmp"
"github.com/togglhire/recurly"
"github.com/toggl/recurly"
)

// Ensure structs are encoded to XML properly.
Expand Down
2 changes: 1 addition & 1 deletion recurly.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ type Client struct {

// userAgent sets the User-Agent header for requests so Recurly can
// track usage of the client.
// See https://github.com/togglhire/recurly/issues/41
// See https://github.com/toggl/recurly/issues/41
userAgent string

// Client is the HTTP Client used to communicate with the API.
Expand Down
2 changes: 1 addition & 1 deletion recurly_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"time"

"github.com/google/go-cmp/cmp"
"github.com/togglhire/recurly"
"github.com/toggl/recurly"
)

// MustOpenFile opens a file in the testdata directory.
Expand Down
Loading

0 comments on commit 244aa93

Please sign in to comment.