Skip to content

Commit

Permalink
update v11 to v12
Browse files Browse the repository at this point in the history
  • Loading branch information
DjoykeAbyah committed Aug 15, 2024
1 parent 93cec59 commit 045e75a
Show file tree
Hide file tree
Showing 1,192 changed files with 1,278 additions and 1,278 deletions.
30 changes: 15 additions & 15 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,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/v11@v11.0.0
go get github.com/adyen/adyen-go-api-library/v12@v11.0.0
```

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

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

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

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

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

client := adyen.NewClient(&common.Config{
Expand Down Expand Up @@ -153,7 +153,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/v11/src/checkout"
"github.com/adyen/adyen-go-api-library/v12/src/checkout"
)
paymentRequest := checkout.PaymentRequest{}
error := json.Unmarshal([]byte("YOUR_JSON_STRING"), &paymentRequest)
Expand All @@ -164,7 +164,7 @@ error := json.Unmarshal([]byte("YOUR_JSON_STRING"), &paymentRequest)

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

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

```go
import (
"github.com/adyen/adyen-go-api-library/v11/src/common"
"github.com/adyen/adyen-go-api-library/v11/src/checkout"
"github.com/adyen/adyen-go-api-library/v11/src/adyen"
"github.com/adyen/adyen-go-api-library/v12/src/common"
"github.com/adyen/adyen-go-api-library/v12/src/checkout"
"github.com/adyen/adyen-go-api-library/v12/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/v11
module github.com/adyen/adyen-go-api-library/v12

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/v11/src/adyen"
"github.com/adyen/adyen-go-api-library/v11/src/common"
"github.com/adyen/adyen-go-api-library/v12/src/adyen"
"github.com/adyen/adyen-go-api-library/v12/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/v11/src/adyen"
"github.com/adyen/adyen-go-api-library/v11/src/checkout"
"github.com/adyen/adyen-go-api-library/v11/src/common"
"github.com/adyen/adyen-go-api-library/v12/src/adyen"
"github.com/adyen/adyen-go-api-library/v12/src/checkout"
"github.com/adyen/adyen-go-api-library/v12/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.

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

"github.com/adyen/adyen-go-api-library/v11/src/paymentsapp"

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

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

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

"github.com/adyen/adyen-go-api-library/v12/src/balancecontrol"
"github.com/adyen/adyen-go-api-library/v12/src/balanceplatform"
"github.com/adyen/adyen-go-api-library/v12/src/binlookup"
"github.com/adyen/adyen-go-api-library/v12/src/checkout"
"github.com/adyen/adyen-go-api-library/v12/src/common"
"github.com/adyen/adyen-go-api-library/v12/src/disputes"
"github.com/adyen/adyen-go-api-library/v12/src/legalentity"
"github.com/adyen/adyen-go-api-library/v12/src/management"
"github.com/adyen/adyen-go-api-library/v12/src/payments"
"github.com/adyen/adyen-go-api-library/v12/src/payout"
"github.com/adyen/adyen-go-api-library/v12/src/platformsaccount"
"github.com/adyen/adyen-go-api-library/v12/src/platformsfund"
"github.com/adyen/adyen-go-api-library/v12/src/platformshostedonboardingpage"
"github.com/adyen/adyen-go-api-library/v12/src/platformsnotificationconfiguration"
"github.com/adyen/adyen-go-api-library/v12/src/posterminalmanagement"
"github.com/adyen/adyen-go-api-library/v12/src/recurring"
"github.com/adyen/adyen-go-api-library/v12/src/storedvalue"
"github.com/adyen/adyen-go-api-library/v12/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/v11/src/checkout"
"github.com/adyen/adyen-go-api-library/v11/src/common"
"github.com/adyen/adyen-go-api-library/v11/src/recurring"
"github.com/adyen/adyen-go-api-library/v12/src/checkout"
"github.com/adyen/adyen-go-api-library/v12/src/common"
"github.com/adyen/adyen-go-api-library/v12/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_manage_card_pin.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_manage_sca_devices.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.

Loading

0 comments on commit 045e75a

Please sign in to comment.