From 244aa93315401a5b2e9d42bb54c829da5c53babf Mon Sep 17 00:00:00 2001 From: ryszard <47899783+naisuuuu@users.noreply.github.com> Date: Tue, 4 Jun 2024 14:34:29 +0200 Subject: [PATCH] Rename paths to match new repo --- README.md | 18 +++++++++--------- accounts_test.go | 2 +- add_ons_test.go | 2 +- adjustments_test.go | 2 +- automated_exports_test.go | 2 +- billing_test.go | 2 +- coupons_test.go | 2 +- credit_payments_test.go | 2 +- doc.go | 2 +- doc_test.go | 2 +- go.mod | 2 +- go.sum | 4 ++-- invoices_test.go | 2 +- items_test.go | 2 +- mock/accounts.go | 2 +- mock/add_ons.go | 2 +- mock/adjustments.go | 2 +- mock/automated_exports.go | 2 +- mock/billing.go | 2 +- mock/client.go | 2 +- mock/coupons.go | 2 +- mock/credit_payments.go | 2 +- mock/doc.go | 2 +- mock/example_test.go | 4 ++-- mock/invoices.go | 2 +- mock/pager.go | 2 +- mock/plans.go | 2 +- mock/purchases.go | 2 +- mock/redemptions.go | 2 +- mock/shipping_address.go | 2 +- mock/shipping_methods.go | 2 +- mock/subscriptions.go | 2 +- mock/transactions.go | 2 +- pager_test.go | 2 +- plans_test.go | 2 +- purchases_test.go | 2 +- recurly.go | 2 +- recurly_test.go | 2 +- redemptions_test.go | 2 +- shipping_addresses_test.go | 2 +- shipping_methods_test.go | 2 +- subscriptions_test.go | 2 +- transactions_test.go | 2 +- webhooks/charge_invoices.go | 2 +- webhooks/credit_invoices.go | 2 +- webhooks/credit_payments.go | 2 +- webhooks/dunning_events.go | 2 +- webhooks/payments.go | 2 +- webhooks/subscriptions.go | 2 +- webhooks/webhooks_test.go | 4 ++-- xml_test.go | 2 +- 51 files changed, 62 insertions(+), 62 deletions(-) diff --git a/README.md b/README.md index 9b7f69f..b8df89b 100644 --- a/README.md +++ b/README.md @@ -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. @@ -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. @@ -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: @@ -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 { @@ -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. diff --git a/accounts_test.go b/accounts_test.go index 33721e8..489988a 100644 --- a/accounts_test.go +++ b/accounts_test.go @@ -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. diff --git a/add_ons_test.go b/add_ons_test.go index 77aef85..ef53bfb 100644 --- a/add_ons_test.go +++ b/add_ons_test.go @@ -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. diff --git a/adjustments_test.go b/adjustments_test.go index 5513f25..56ffe35 100644 --- a/adjustments_test.go +++ b/adjustments_test.go @@ -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. diff --git a/automated_exports_test.go b/automated_exports_test.go index df6cbde..7e2ba62 100644 --- a/automated_exports_test.go +++ b/automated_exports_test.go @@ -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. diff --git a/billing_test.go b/billing_test.go index 35c15a8..9a06cd1 100644 --- a/billing_test.go +++ b/billing_test.go @@ -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. diff --git a/coupons_test.go b/coupons_test.go index a52d300..e968145 100644 --- a/coupons_test.go +++ b/coupons_test.go @@ -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. diff --git a/credit_payments_test.go b/credit_payments_test.go index 41c1a20..7bfad3b 100644 --- a/credit_payments_test.go +++ b/credit_payments_test.go @@ -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) { diff --git a/doc.go b/doc.go index 2c12c13..ee6155b 100644 --- a/doc.go +++ b/doc.go @@ -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") diff --git a/doc_test.go b/doc_test.go index 671ceab..bc99957 100644 --- a/doc_test.go +++ b/doc_test.go @@ -6,7 +6,7 @@ import ( "net/http" "time" - "github.com/togglhire/recurly" + "github.com/toggl/recurly" ) var client *recurly.Client diff --git a/go.mod b/go.mod index 19b572d..b2a329b 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/togglhire/recurly +module github.com/toggl/recurly go 1.19 diff --git a/go.sum b/go.sum index a1ba6b1..21adb9f 100644 --- a/go.sum +++ b/go.sum @@ -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= diff --git a/invoices_test.go b/invoices_test.go index eb8dbd9..542e16e 100644 --- a/invoices_test.go +++ b/invoices_test.go @@ -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) { diff --git a/items_test.go b/items_test.go index 26aa996..b0ed375 100644 --- a/items_test.go +++ b/items_test.go @@ -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. diff --git a/mock/accounts.go b/mock/accounts.go index e88414b..83516b7 100644 --- a/mock/accounts.go +++ b/mock/accounts.go @@ -3,7 +3,7 @@ package mock import ( "context" - "github.com/togglhire/recurly" + "github.com/toggl/recurly" ) var _ recurly.AccountsService = &AccountsService{} diff --git a/mock/add_ons.go b/mock/add_ons.go index e14f772..a5bb4da 100644 --- a/mock/add_ons.go +++ b/mock/add_ons.go @@ -3,7 +3,7 @@ package mock import ( "context" - "github.com/togglhire/recurly" + "github.com/toggl/recurly" ) var _ recurly.AddOnsService = &AddOnsService{} diff --git a/mock/adjustments.go b/mock/adjustments.go index c1cfd35..1569332 100644 --- a/mock/adjustments.go +++ b/mock/adjustments.go @@ -3,7 +3,7 @@ package mock import ( "context" - "github.com/togglhire/recurly" + "github.com/toggl/recurly" ) var _ recurly.AdjustmentsService = &AdjustmentsService{} diff --git a/mock/automated_exports.go b/mock/automated_exports.go index 2364c58..d01df10 100644 --- a/mock/automated_exports.go +++ b/mock/automated_exports.go @@ -4,7 +4,7 @@ import ( "context" "time" - "github.com/togglhire/recurly" + "github.com/toggl/recurly" ) var _ recurly.AutomatedExportsService = &AutomatedExportsService{} diff --git a/mock/billing.go b/mock/billing.go index 1995fb1..6392279 100644 --- a/mock/billing.go +++ b/mock/billing.go @@ -3,7 +3,7 @@ package mock import ( "context" - "github.com/togglhire/recurly" + "github.com/toggl/recurly" ) var _ recurly.BillingService = &BillingService{} diff --git a/mock/client.go b/mock/client.go index 72656f8..875e064 100644 --- a/mock/client.go +++ b/mock/client.go @@ -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 diff --git a/mock/coupons.go b/mock/coupons.go index c210bd2..77b4033 100644 --- a/mock/coupons.go +++ b/mock/coupons.go @@ -3,7 +3,7 @@ package mock import ( "context" - "github.com/togglhire/recurly" + "github.com/toggl/recurly" ) var _ recurly.CouponsService = &CouponsService{} diff --git a/mock/credit_payments.go b/mock/credit_payments.go index 5d2200d..9560bf9 100644 --- a/mock/credit_payments.go +++ b/mock/credit_payments.go @@ -3,7 +3,7 @@ package mock import ( "context" - "github.com/togglhire/recurly" + "github.com/toggl/recurly" ) var _ recurly.CreditPaymentsService = &CreditPaymentsService{} diff --git a/mock/doc.go b/mock/doc.go index 27a7d24..47cdd56 100644 --- a/mock/doc.go +++ b/mock/doc.go @@ -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. diff --git a/mock/example_test.go b/mock/example_test.go index cbb6687..2328433 100644 --- a/mock/example_test.go +++ b/mock/example_test.go @@ -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) { diff --git a/mock/invoices.go b/mock/invoices.go index 10ca3e7..ab8dafe 100644 --- a/mock/invoices.go +++ b/mock/invoices.go @@ -4,7 +4,7 @@ import ( "bytes" "context" - "github.com/togglhire/recurly" + "github.com/toggl/recurly" ) var _ recurly.InvoicesService = &InvoicesService{} diff --git a/mock/pager.go b/mock/pager.go index bf8a8bf..6a95ff7 100644 --- a/mock/pager.go +++ b/mock/pager.go @@ -3,7 +3,7 @@ package mock import ( "context" - "github.com/togglhire/recurly" + "github.com/toggl/recurly" ) var _ recurly.Pager = &Pager{} diff --git a/mock/plans.go b/mock/plans.go index 6168f62..c623583 100644 --- a/mock/plans.go +++ b/mock/plans.go @@ -3,7 +3,7 @@ package mock import ( "context" - "github.com/togglhire/recurly" + "github.com/toggl/recurly" ) var _ recurly.PlansService = &PlansService{} diff --git a/mock/purchases.go b/mock/purchases.go index 24ac153..519cb88 100644 --- a/mock/purchases.go +++ b/mock/purchases.go @@ -3,7 +3,7 @@ package mock import ( "context" - "github.com/togglhire/recurly" + "github.com/toggl/recurly" ) var _ recurly.PurchasesService = &PurchasesService{} diff --git a/mock/redemptions.go b/mock/redemptions.go index abe377c..8b024a3 100644 --- a/mock/redemptions.go +++ b/mock/redemptions.go @@ -3,7 +3,7 @@ package mock import ( "context" - "github.com/togglhire/recurly" + "github.com/toggl/recurly" ) var _ recurly.RedemptionsService = &RedemptionsService{} diff --git a/mock/shipping_address.go b/mock/shipping_address.go index 5a11f63..5e65fad 100644 --- a/mock/shipping_address.go +++ b/mock/shipping_address.go @@ -3,7 +3,7 @@ package mock import ( "context" - "github.com/togglhire/recurly" + "github.com/toggl/recurly" ) var _ recurly.ShippingAddressesService = &ShippingAddressesService{} diff --git a/mock/shipping_methods.go b/mock/shipping_methods.go index 7d53dbd..5ff3b0f 100644 --- a/mock/shipping_methods.go +++ b/mock/shipping_methods.go @@ -3,7 +3,7 @@ package mock import ( "context" - "github.com/togglhire/recurly" + "github.com/toggl/recurly" ) var _ recurly.ShippingMethodsService = &ShippingMethodsService{} diff --git a/mock/subscriptions.go b/mock/subscriptions.go index 50cb4d8..767b82d 100644 --- a/mock/subscriptions.go +++ b/mock/subscriptions.go @@ -4,7 +4,7 @@ import ( "context" "time" - "github.com/togglhire/recurly" + "github.com/toggl/recurly" ) var _ recurly.SubscriptionsService = &SubscriptionsService{} diff --git a/mock/transactions.go b/mock/transactions.go index 2f7583a..ef62837 100644 --- a/mock/transactions.go +++ b/mock/transactions.go @@ -3,7 +3,7 @@ package mock import ( "context" - "github.com/togglhire/recurly" + "github.com/toggl/recurly" ) var _ recurly.TransactionsService = &TransactionsService{} diff --git a/pager_test.go b/pager_test.go index 9198c9c..70dbce0 100644 --- a/pager_test.go +++ b/pager_test.go @@ -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) { diff --git a/plans_test.go b/plans_test.go index f049388..2c5c526 100644 --- a/plans_test.go +++ b/plans_test.go @@ -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. diff --git a/purchases_test.go b/purchases_test.go index 7051443..614526e 100644 --- a/purchases_test.go +++ b/purchases_test.go @@ -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. diff --git a/recurly.go b/recurly.go index 87557c0..8f0a0fb 100644 --- a/recurly.go +++ b/recurly.go @@ -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. diff --git a/recurly_test.go b/recurly_test.go index fcf0757..c89a0d0 100644 --- a/recurly_test.go +++ b/recurly_test.go @@ -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. diff --git a/redemptions_test.go b/redemptions_test.go index cf1366e..541735b 100644 --- a/redemptions_test.go +++ b/redemptions_test.go @@ -6,7 +6,7 @@ import ( "testing" "github.com/google/go-cmp/cmp" - "github.com/togglhire/recurly" + "github.com/toggl/recurly" ) func TestRedemptions_ListAccount(t *testing.T) { diff --git a/shipping_addresses_test.go b/shipping_addresses_test.go index 82cdf30..10b6a24 100644 --- a/shipping_addresses_test.go +++ b/shipping_addresses_test.go @@ -7,7 +7,7 @@ import ( "testing" "github.com/google/go-cmp/cmp" - "github.com/togglhire/recurly" + "github.com/toggl/recurly" ) func TestShippingAddresses_ListAccount(t *testing.T) { diff --git a/shipping_methods_test.go b/shipping_methods_test.go index 669322b..e5d12ff 100644 --- a/shipping_methods_test.go +++ b/shipping_methods_test.go @@ -7,7 +7,7 @@ import ( "testing" "github.com/google/go-cmp/cmp" - "github.com/togglhire/recurly" + "github.com/toggl/recurly" ) func TestShippingMethods_Get(t *testing.T) { diff --git a/subscriptions_test.go b/subscriptions_test.go index 0f85b35..79a17af 100644 --- a/subscriptions_test.go +++ b/subscriptions_test.go @@ -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. diff --git a/transactions_test.go b/transactions_test.go index 0ef4bf5..1f63d04 100644 --- a/transactions_test.go +++ b/transactions_test.go @@ -9,7 +9,7 @@ import ( "time" "github.com/google/go-cmp/cmp" - "github.com/togglhire/recurly" + "github.com/toggl/recurly" ) func TestTransactions_List(t *testing.T) { diff --git a/webhooks/charge_invoices.go b/webhooks/charge_invoices.go index 680ca41..d02d237 100644 --- a/webhooks/charge_invoices.go +++ b/webhooks/charge_invoices.go @@ -3,7 +3,7 @@ package webhooks import ( "encoding/xml" - "github.com/togglhire/recurly" + "github.com/toggl/recurly" ) // Charge invoice notifications. diff --git a/webhooks/credit_invoices.go b/webhooks/credit_invoices.go index b62edb9..c7f105c 100644 --- a/webhooks/credit_invoices.go +++ b/webhooks/credit_invoices.go @@ -3,7 +3,7 @@ package webhooks import ( "encoding/xml" - "github.com/togglhire/recurly" + "github.com/toggl/recurly" ) // Credit invoice notifications. diff --git a/webhooks/credit_payments.go b/webhooks/credit_payments.go index 2c0b45e..423a34b 100644 --- a/webhooks/credit_payments.go +++ b/webhooks/credit_payments.go @@ -3,7 +3,7 @@ package webhooks import ( "encoding/xml" - "github.com/togglhire/recurly" + "github.com/toggl/recurly" ) // Credit payment notifications. diff --git a/webhooks/dunning_events.go b/webhooks/dunning_events.go index 9e19557..f86e05f 100644 --- a/webhooks/dunning_events.go +++ b/webhooks/dunning_events.go @@ -1,6 +1,6 @@ package webhooks -import "github.com/togglhire/recurly" +import "github.com/toggl/recurly" // Dunning event constants. const ( diff --git a/webhooks/payments.go b/webhooks/payments.go index ba7a6bb..89b6a3a 100644 --- a/webhooks/payments.go +++ b/webhooks/payments.go @@ -3,7 +3,7 @@ package webhooks import ( "encoding/xml" - "github.com/togglhire/recurly" + "github.com/toggl/recurly" ) // Payment notifications. diff --git a/webhooks/subscriptions.go b/webhooks/subscriptions.go index 0b69af1..85fef63 100644 --- a/webhooks/subscriptions.go +++ b/webhooks/subscriptions.go @@ -1,6 +1,6 @@ package webhooks -import "github.com/togglhire/recurly" +import "github.com/toggl/recurly" // Subscription notifications. // https://dev.recurly.com/page/webhooks#subscription-notifications diff --git a/webhooks/webhooks_test.go b/webhooks/webhooks_test.go index bc16080..93ddd31 100644 --- a/webhooks/webhooks_test.go +++ b/webhooks/webhooks_test.go @@ -7,8 +7,8 @@ import ( "time" "github.com/google/go-cmp/cmp" - "github.com/togglhire/recurly" - "github.com/togglhire/recurly/webhooks" + "github.com/toggl/recurly" + "github.com/toggl/recurly/webhooks" ) func TestParse_BillingInfoUpdatedNotification(t *testing.T) { diff --git a/xml_test.go b/xml_test.go index 05c29de..4711b7a 100644 --- a/xml_test.go +++ b/xml_test.go @@ -6,7 +6,7 @@ import ( "testing" "github.com/google/go-cmp/cmp" - "github.com/togglhire/recurly" + "github.com/toggl/recurly" ) func TestXML_NullBool(t *testing.T) {