Skip to content

Commit

Permalink
update v8->v9 paths (#293)
Browse files Browse the repository at this point in the history
  • Loading branch information
jillingk authored Feb 5, 2024
1 parent a3e98f0 commit 00f9a01
Show file tree
Hide file tree
Showing 1,100 changed files with 1,274 additions and 1,244 deletions.
30 changes: 15 additions & 15 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ The library supports all webhooks under the following model directories:
You can use go modules to add our library to your project

```bash
go get github.com/adyen/adyen-go-api-library/v8@v9.0.0
go get github.com/adyen/adyen-go-api-library/v9@v9.0.0
```

## Usage examples
Expand All @@ -76,9 +76,9 @@ go get github.com/adyen/adyen-go-api-library/[email protected]
```go
import (
"context"
"github.com/adyen/adyen-go-api-library/v8/src/checkout"
"github.com/adyen/adyen-go-api-library/v8/src/common"
"github.com/adyen/adyen-go-api-library/v8/src/adyen"
"github.com/adyen/adyen-go-api-library/v9/src/checkout"
"github.com/adyen/adyen-go-api-library/v9/src/common"
"github.com/adyen/adyen-go-api-library/v9/src/adyen"
)

client := adyen.NewClient(&common.Config{
Expand All @@ -98,9 +98,9 @@ res, httpRes, err := service.PaymentsApi.PaymentMethods(context.Background(), re

```go
import (
"github.com/adyen/adyen-go-api-library/v8/src/checkout"
"github.com/adyen/adyen-go-api-library/v8/src/common"
"github.com/adyen/adyen-go-api-library/v8/src/adyen"
"github.com/adyen/adyen-go-api-library/v9/src/checkout"
"github.com/adyen/adyen-go-api-library/v9/src/common"
"github.com/adyen/adyen-go-api-library/v9/src/adyen"
)

client := adyen.NewClient(&common.Config{
Expand All @@ -121,9 +121,9 @@ res, httpRes, err := service.PaymentsApi.PaymentMethods(context.Background(), re

```go
import (
"github.com/adyen/adyen-go-api-library/v8/src/recurring"
"github.com/adyen/adyen-go-api-library/v8/src/common"
"github.com/adyen/adyen-go-api-library/v8/src/adyen"
"github.com/adyen/adyen-go-api-library/v9/src/recurring"
"github.com/adyen/adyen-go-api-library/v9/src/common"
"github.com/adyen/adyen-go-api-library/v9/src/adyen"
)

client := adyen.NewClient(&common.Config{
Expand Down Expand Up @@ -151,7 +151,7 @@ In some setups you might need to unmarshal JSON strings to request objects. For
```go
import (
"encoding/json"
"github.com/adyen/adyen-go-api-library/v8/src/checkout"
"github.com/adyen/adyen-go-api-library/v9/src/checkout"
)
paymentRequest := checkout.PaymentRequest{}
error := json.Unmarshal([]byte("YOUR_JSON_STRING"), &paymentRequest)
Expand All @@ -162,7 +162,7 @@ error := json.Unmarshal([]byte("YOUR_JSON_STRING"), &paymentRequest)

```go
import (
"github.com/adyen/adyen-go-api-library/v8/src/webhook"
"github.com/adyen/adyen-go-api-library/v9/src/webhook"
)

msg, err := webhook.HandleRequest(`{"live": "false", "notificationItems": []}`)
Expand All @@ -172,9 +172,9 @@ msg, err := webhook.HandleRequest(`{"live": "false", "notificationItems": []}`)

```go
import (
"github.com/adyen/adyen-go-api-library/v8/src/common"
"github.com/adyen/adyen-go-api-library/v8/src/checkout"
"github.com/adyen/adyen-go-api-library/v8/src/adyen"
"github.com/adyen/adyen-go-api-library/v9/src/common"
"github.com/adyen/adyen-go-api-library/v9/src/checkout"
"github.com/adyen/adyen-go-api-library/v9/src/adyen"
)

client := adyen.NewClient(&common.Config{
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/adyen/adyen-go-api-library/v8
module github.com/adyen/adyen-go-api-library/v9

go 1.13

Expand Down
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ package main
import (
"fmt"

"github.com/adyen/adyen-go-api-library/v8/src/adyen"
"github.com/adyen/adyen-go-api-library/v8/src/common"
"github.com/adyen/adyen-go-api-library/v9/src/adyen"
"github.com/adyen/adyen-go-api-library/v9/src/common"
)

func main() {
Expand Down
6 changes: 3 additions & 3 deletions main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"strings"
"testing"

"github.com/adyen/adyen-go-api-library/v8/src/adyen"
"github.com/adyen/adyen-go-api-library/v8/src/checkout"
"github.com/adyen/adyen-go-api-library/v8/src/common"
"github.com/adyen/adyen-go-api-library/v9/src/adyen"
"github.com/adyen/adyen-go-api-library/v9/src/checkout"
"github.com/adyen/adyen-go-api-library/v9/src/common"

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
Expand Down
2 changes: 1 addition & 1 deletion src/acswebhook/model_amount.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/acswebhook/model_authentication_info.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/acswebhook/model_authentication_notification_data.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/acswebhook/model_challenge_info.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/acswebhook/model_purchase_info.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/acswebhook/model_resource.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

40 changes: 20 additions & 20 deletions src/adyen/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,26 @@ import (
"fmt"
"net/http"

"github.com/adyen/adyen-go-api-library/v8/src/dataprotection"

"github.com/adyen/adyen-go-api-library/v8/src/balancecontrol"
"github.com/adyen/adyen-go-api-library/v8/src/balanceplatform"
"github.com/adyen/adyen-go-api-library/v8/src/binlookup"
"github.com/adyen/adyen-go-api-library/v8/src/checkout"
"github.com/adyen/adyen-go-api-library/v8/src/common"
"github.com/adyen/adyen-go-api-library/v8/src/disputes"
"github.com/adyen/adyen-go-api-library/v8/src/legalentity"
"github.com/adyen/adyen-go-api-library/v8/src/management"
"github.com/adyen/adyen-go-api-library/v8/src/payments"
"github.com/adyen/adyen-go-api-library/v8/src/payout"
"github.com/adyen/adyen-go-api-library/v8/src/platformsaccount"
"github.com/adyen/adyen-go-api-library/v8/src/platformsfund"
"github.com/adyen/adyen-go-api-library/v8/src/platformshostedonboardingpage"
"github.com/adyen/adyen-go-api-library/v8/src/platformsnotificationconfiguration"
"github.com/adyen/adyen-go-api-library/v8/src/posterminalmanagement"
"github.com/adyen/adyen-go-api-library/v8/src/recurring"
"github.com/adyen/adyen-go-api-library/v8/src/storedvalue"
"github.com/adyen/adyen-go-api-library/v8/src/transfers"
"github.com/adyen/adyen-go-api-library/v9/src/dataprotection"

"github.com/adyen/adyen-go-api-library/v9/src/balancecontrol"
"github.com/adyen/adyen-go-api-library/v9/src/balanceplatform"
"github.com/adyen/adyen-go-api-library/v9/src/binlookup"
"github.com/adyen/adyen-go-api-library/v9/src/checkout"
"github.com/adyen/adyen-go-api-library/v9/src/common"
"github.com/adyen/adyen-go-api-library/v9/src/disputes"
"github.com/adyen/adyen-go-api-library/v9/src/legalentity"
"github.com/adyen/adyen-go-api-library/v9/src/management"
"github.com/adyen/adyen-go-api-library/v9/src/payments"
"github.com/adyen/adyen-go-api-library/v9/src/payout"
"github.com/adyen/adyen-go-api-library/v9/src/platformsaccount"
"github.com/adyen/adyen-go-api-library/v9/src/platformsfund"
"github.com/adyen/adyen-go-api-library/v9/src/platformshostedonboardingpage"
"github.com/adyen/adyen-go-api-library/v9/src/platformsnotificationconfiguration"
"github.com/adyen/adyen-go-api-library/v9/src/posterminalmanagement"
"github.com/adyen/adyen-go-api-library/v9/src/recurring"
"github.com/adyen/adyen-go-api-library/v9/src/storedvalue"
"github.com/adyen/adyen-go-api-library/v9/src/transfers"
)

// Constants used for the client API
Expand Down
6 changes: 3 additions & 3 deletions src/adyen/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (
"testing"
"time"

"github.com/adyen/adyen-go-api-library/v8/src/checkout"
"github.com/adyen/adyen-go-api-library/v8/src/common"
"github.com/adyen/adyen-go-api-library/v8/src/recurring"
"github.com/adyen/adyen-go-api-library/v9/src/checkout"
"github.com/adyen/adyen-go-api-library/v9/src/common"
"github.com/adyen/adyen-go-api-library/v9/src/recurring"
"github.com/joho/godotenv"

"github.com/stretchr/testify/assert"
Expand Down
2 changes: 1 addition & 1 deletion src/balancecontrol/api_general.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/balancecontrol/model_amount.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/balancecontrol/model_balance_transfer_request.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/balancecontrol/model_balance_transfer_response.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/balanceplatform/api_account_holders.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/balanceplatform/api_balance_accounts.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/balanceplatform/api_bank_account_validation.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/balanceplatform/api_card_orders.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/balanceplatform/api_grant_accounts.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/balanceplatform/api_grant_offers.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/balanceplatform/api_network_tokens.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/balanceplatform/api_payment_instrument_groups.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/balanceplatform/api_payment_instruments.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/balanceplatform/api_pin_functionality.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/balanceplatform/api_platform.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/balanceplatform/api_transaction_rules.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/balanceplatform/api_transfer_routes.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 00f9a01

Please sign in to comment.