Skip to content

Commit

Permalink
adjust v12 to v13 for re-release
Browse files Browse the repository at this point in the history
  • Loading branch information
DjoykeAbyah committed Oct 21, 2024
1 parent 0e63cfa commit e03af3e
Show file tree
Hide file tree
Showing 1,205 changed files with 1,291 additions and 1,291 deletions.
30 changes: 15 additions & 15 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,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/v12@v13.0.0
go get github.com/adyen/adyen-go-api-library/v13@v13.0.0
```

## Usage examples
Expand All @@ -79,9 +79,9 @@ go get github.com/adyen/adyen-go-api-library/[email protected]
```go
import (
"context"
"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"
"github.com/adyen/adyen-go-api-library/v13/src/checkout"
"github.com/adyen/adyen-go-api-library/v13/src/common"
"github.com/adyen/adyen-go-api-library/v13/src/adyen"
)

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

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

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

```go
import (
"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"
"github.com/adyen/adyen-go-api-library/v13/src/recurring"
"github.com/adyen/adyen-go-api-library/v13/src/common"
"github.com/adyen/adyen-go-api-library/v13/src/adyen"
)

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

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

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

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

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

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

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

Please sign in to comment.