From 197afa14fba87a69e6ee36f3d81cca1a98af2623 Mon Sep 17 00:00:00 2001 From: KadoBOT Date: Wed, 16 Sep 2020 11:16:07 +0200 Subject: [PATCH] Release v3.0.0 --- Readme.md | 30 +++++++++---------- go.mod | 2 +- main.go | 4 +-- main_test.go | 6 ++-- src/adyen/api.go | 24 +++++++-------- src/adyen/api_test.go | 6 ++-- src/binlookup/api_default.go | 2 +- src/checkout/api_default.go | 2 +- src/checkout/model_payment_response.go | 2 +- .../model_payment_verification_response.go | 2 +- src/checkoututility/api_default.go | 2 +- src/common/client.go | 8 ++--- src/common/configuration.go | 2 +- src/hmacvalidator/hmacvalidator.go | 2 +- src/hmacvalidator/hmacvalidator_test.go | 2 +- src/notification/notification_handler.go | 2 +- src/payments/api_default.go | 2 +- src/payments/model_payment_result.go | 2 +- src/payouts/api_default.go | 2 +- src/payouts/model_payout_response.go | 2 +- src/platformsaccount/api_default.go | 2 +- src/platformsfund/api_default.go | 2 +- .../api_default.go | 2 +- .../api_default.go | 2 +- src/recurring/api_default.go | 2 +- templates/go/api.mustache | 2 +- tests/binlookup_test.go | 6 ++-- tests/checkout_test.go | 6 ++-- tests/checkoutidempotency_test.go | 6 ++-- tests/checkoututility_test.go | 6 ++-- tests/notification_handler_test.go | 6 ++-- tests/payment_test.go | 6 ++-- tests/payouts_test.go | 8 ++--- tests/platforms_test.go | 10 +++---- tests/recurring_test.go | 6 ++-- 35 files changed, 88 insertions(+), 90 deletions(-) diff --git a/Readme.md b/Readme.md index eda6a71bf..c7104093e 100644 --- a/Readme.md +++ b/Readme.md @@ -26,7 +26,7 @@ You can use go modules to add our library to your project ### Go module ```bash -go get github.com/adyen/adyen-go-api-library/v2 +go get github.com/adyen/adyen-go-api-library/v3 ``` ## Documentation @@ -40,9 +40,9 @@ go get github.com/adyen/adyen-go-api-library/v2 ```go import ( - "github.com/adyen/adyen-go-api-library/v2/src/checkout" - "github.com/adyen/adyen-go-api-library/v2/src/common" - "github.com/adyen/adyen-go-api-library/v2/src/adyen" + "github.com/adyen/adyen-go-api-library/v3/src/checkout" + "github.com/adyen/adyen-go-api-library/v3/src/common" + "github.com/adyen/adyen-go-api-library/v3/src/adyen" ) client := adyen.NewClient(&common.Config{ @@ -59,9 +59,9 @@ res, httpRes, err := client.Checkout.PaymentMethods(&checkout.PaymentMethodsRequ ```go import ( - "github.com/adyen/adyen-go-api-library/v2/src/checkout" - "github.com/adyen/adyen-go-api-library/v2/src/common" - "github.com/adyen/adyen-go-api-library/v2/src/adyen" + "github.com/adyen/adyen-go-api-library/v3/src/checkout" + "github.com/adyen/adyen-go-api-library/v3/src/common" + "github.com/adyen/adyen-go-api-library/v3/src/adyen" ) client := adyen.NewClient(&common.Config{ @@ -79,9 +79,9 @@ res, httpRes, err := client.Checkout.PaymentMethods(&checkout.PaymentMethodsRequ ```go import ( - "github.com/adyen/adyen-go-api-library/v2/src/recurring" - "github.com/adyen/adyen-go-api-library/v2/src/common" - "github.com/adyen/adyen-go-api-library/v2/src/adyen" + "github.com/adyen/adyen-go-api-library/v3/src/recurring" + "github.com/adyen/adyen-go-api-library/v3/src/common" + "github.com/adyen/adyen-go-api-library/v3/src/adyen" ) client := adyen.NewClient(&common.Config{ @@ -104,8 +104,8 @@ res, httpRes, err := client.Recurring.ListRecurringDetails(&recurring.RecurringD ```go import ( - "github.com/adyen/adyen-go-api-library/v2/src/adyen" - "github.com/adyen/adyen-go-api-library/v2/src/common" + "github.com/adyen/adyen-go-api-library/v3/src/adyen" + "github.com/adyen/adyen-go-api-library/v3/src/common" ) client := adyen.NewClient(&common.Config{ @@ -120,9 +120,9 @@ notification, err := client.Notification.HandleNotificationRequest(jsonRequestSt ```go import ( - "github.com/adyen/adyen-go-api-library/v2/src/common" - "github.com/adyen/adyen-go-api-library/v2/src/checkout" - "github.com/adyen/adyen-go-api-library/v2/src/adyen" + "github.com/adyen/adyen-go-api-library/v3/src/common" + "github.com/adyen/adyen-go-api-library/v3/src/checkout" + "github.com/adyen/adyen-go-api-library/v3/src/adyen" ) client := adyen.NewClient(&common.Config{ diff --git a/go.mod b/go.mod index ab4226e91..8e05d1a4c 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/adyen/adyen-go-api-library/v2 +module github.com/adyen/adyen-go-api-library/v3 go 1.13 diff --git a/main.go b/main.go index abad68684..1306722b9 100644 --- a/main.go +++ b/main.go @@ -9,8 +9,8 @@ package main import ( "fmt" - "github.com/adyen/adyen-go-api-library/v2/src/adyen" - "github.com/adyen/adyen-go-api-library/v2/src/common" + "github.com/adyen/adyen-go-api-library/v3/src/adyen" + "github.com/adyen/adyen-go-api-library/v3/src/common" ) func main() { diff --git a/main_test.go b/main_test.go index f260b47d2..d51c6f070 100644 --- a/main_test.go +++ b/main_test.go @@ -10,9 +10,9 @@ import ( "strings" "testing" - "github.com/adyen/adyen-go-api-library/v2/src/adyen" - "github.com/adyen/adyen-go-api-library/v2/src/checkout" - "github.com/adyen/adyen-go-api-library/v2/src/common" + "github.com/adyen/adyen-go-api-library/v3/src/adyen" + "github.com/adyen/adyen-go-api-library/v3/src/checkout" + "github.com/adyen/adyen-go-api-library/v3/src/common" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/src/adyen/api.go b/src/adyen/api.go index 76c148936..27bcb3d5e 100644 --- a/src/adyen/api.go +++ b/src/adyen/api.go @@ -10,18 +10,18 @@ import ( "fmt" "net/http" - binlookup "github.com/adyen/adyen-go-api-library/v2/src/binlookup" - checkout "github.com/adyen/adyen-go-api-library/v2/src/checkout" - checkoututility "github.com/adyen/adyen-go-api-library/v2/src/checkoututility" - common "github.com/adyen/adyen-go-api-library/v2/src/common" - notification "github.com/adyen/adyen-go-api-library/v2/src/notification" - payments "github.com/adyen/adyen-go-api-library/v2/src/payments" - payouts "github.com/adyen/adyen-go-api-library/v2/src/payouts" - platformsaccount "github.com/adyen/adyen-go-api-library/v2/src/platformsaccount" - platformsfund "github.com/adyen/adyen-go-api-library/v2/src/platformsfund" - platformshostedonboardingpage "github.com/adyen/adyen-go-api-library/v2/src/platformshostedonboardingpage" - platformsnotificationconfiguration "github.com/adyen/adyen-go-api-library/v2/src/platformsnotificationconfiguration" - recurring "github.com/adyen/adyen-go-api-library/v2/src/recurring" + binlookup "github.com/adyen/adyen-go-api-library/v3/src/binlookup" + checkout "github.com/adyen/adyen-go-api-library/v3/src/checkout" + checkoututility "github.com/adyen/adyen-go-api-library/v3/src/checkoututility" + common "github.com/adyen/adyen-go-api-library/v3/src/common" + notification "github.com/adyen/adyen-go-api-library/v3/src/notification" + payments "github.com/adyen/adyen-go-api-library/v3/src/payments" + payouts "github.com/adyen/adyen-go-api-library/v3/src/payouts" + platformsaccount "github.com/adyen/adyen-go-api-library/v3/src/platformsaccount" + platformsfund "github.com/adyen/adyen-go-api-library/v3/src/platformsfund" + platformshostedonboardingpage "github.com/adyen/adyen-go-api-library/v3/src/platformshostedonboardingpage" + platformsnotificationconfiguration "github.com/adyen/adyen-go-api-library/v3/src/platformsnotificationconfiguration" + recurring "github.com/adyen/adyen-go-api-library/v3/src/recurring" ) // Constants used for the client API diff --git a/src/adyen/api_test.go b/src/adyen/api_test.go index 0d4baadbf..17c477e24 100644 --- a/src/adyen/api_test.go +++ b/src/adyen/api_test.go @@ -12,9 +12,9 @@ import ( "testing" "time" - "github.com/adyen/adyen-go-api-library/v2/src/checkout" - "github.com/adyen/adyen-go-api-library/v2/src/common" - "github.com/adyen/adyen-go-api-library/v2/src/recurring" + "github.com/adyen/adyen-go-api-library/v3/src/checkout" + "github.com/adyen/adyen-go-api-library/v3/src/common" + "github.com/adyen/adyen-go-api-library/v3/src/recurring" "github.com/joho/godotenv" "github.com/stretchr/testify/assert" diff --git a/src/binlookup/api_default.go b/src/binlookup/api_default.go index 4c8b94b0f..59a52846a 100644 --- a/src/binlookup/api_default.go +++ b/src/binlookup/api_default.go @@ -14,7 +14,7 @@ import ( _context "context" _nethttp "net/http" - "github.com/adyen/adyen-go-api-library/v2/src/common" + "github.com/adyen/adyen-go-api-library/v3/src/common" ) // BinLookup BinLookup service diff --git a/src/checkout/api_default.go b/src/checkout/api_default.go index 2b3805a04..a0cc7c7cc 100644 --- a/src/checkout/api_default.go +++ b/src/checkout/api_default.go @@ -14,7 +14,7 @@ import ( _context "context" _nethttp "net/http" - "github.com/adyen/adyen-go-api-library/v2/src/common" + "github.com/adyen/adyen-go-api-library/v3/src/common" ) // Checkout Checkout service diff --git a/src/checkout/model_payment_response.go b/src/checkout/model_payment_response.go index 34aeec41c..c87e5b28d 100644 --- a/src/checkout/model_payment_response.go +++ b/src/checkout/model_payment_response.go @@ -11,7 +11,7 @@ package checkout import ( - "github.com/adyen/adyen-go-api-library/v2/src/common" + "github.com/adyen/adyen-go-api-library/v3/src/common" ) // PaymentResponse struct for PaymentResponse diff --git a/src/checkout/model_payment_verification_response.go b/src/checkout/model_payment_verification_response.go index 2ad6f500d..6679cf35b 100644 --- a/src/checkout/model_payment_verification_response.go +++ b/src/checkout/model_payment_verification_response.go @@ -10,7 +10,7 @@ package checkout -import "github.com/adyen/adyen-go-api-library/v2/src/common" +import "github.com/adyen/adyen-go-api-library/v3/src/common" // PaymentVerificationResponse struct for PaymentVerificationResponse type PaymentVerificationResponse struct { diff --git a/src/checkoututility/api_default.go b/src/checkoututility/api_default.go index b3d250860..c6025066d 100644 --- a/src/checkoututility/api_default.go +++ b/src/checkoututility/api_default.go @@ -14,7 +14,7 @@ import ( _context "context" _nethttp "net/http" - "github.com/adyen/adyen-go-api-library/v2/src/common" + "github.com/adyen/adyen-go-api-library/v3/src/common" ) // CheckoutUtility CheckoutUtility service diff --git a/src/common/client.go b/src/common/client.go index 6858c9603..406acfb56 100644 --- a/src/common/client.go +++ b/src/common/client.go @@ -531,17 +531,15 @@ func (e APIError) Error() string { return e.Err } -type ctxKey int - -var ctxKeyIdempotencyKey ctxKey = 1 +var ctxKeyIdempotencyKey = 1 /* WithIdempotencyKey returns a context with an Idempotency-Key added to the provided context. Pass this context as the first context to a call to Adyen, and the idempotency key will be added to the header */ -func WithIdempotencyKey(ctx context.Context, i string) context.Context { - return context.WithValue(ctx, ctxKeyIdempotencyKey, i) +func WithIdempotencyKey(ctx context.Context, idempotencyKey string) context.Context { + return context.WithValue(ctx, ctxKeyIdempotencyKey, idempotencyKey) } func IdempotencyKey(ctx context.Context) (string, bool) { diff --git a/src/common/configuration.go b/src/common/configuration.go index b0462d3d6..31b3c6142 100644 --- a/src/common/configuration.go +++ b/src/common/configuration.go @@ -61,7 +61,7 @@ const ( const ( LibName = "adyen-go-api-library" - LibVersion = "2.2.0" + LibVersion = "3.0.0" ) // Config stores the configuration of the API client diff --git a/src/hmacvalidator/hmacvalidator.go b/src/hmacvalidator/hmacvalidator.go index 0b5c20ed3..832364e43 100644 --- a/src/hmacvalidator/hmacvalidator.go +++ b/src/hmacvalidator/hmacvalidator.go @@ -11,7 +11,7 @@ import ( "strconv" "strings" - "github.com/adyen/adyen-go-api-library/v2/src/notification" + "github.com/adyen/adyen-go-api-library/v3/src/notification" ) // CalculateHmac calculates the SHA-256 HMAC for the given data and key diff --git a/src/hmacvalidator/hmacvalidator_test.go b/src/hmacvalidator/hmacvalidator_test.go index 101cd46e6..a18089d41 100644 --- a/src/hmacvalidator/hmacvalidator_test.go +++ b/src/hmacvalidator/hmacvalidator_test.go @@ -4,7 +4,7 @@ import ( "testing" "time" - "github.com/adyen/adyen-go-api-library/v2/src/notification" + "github.com/adyen/adyen-go-api-library/v3/src/notification" "github.com/stretchr/testify/assert" ) diff --git a/src/notification/notification_handler.go b/src/notification/notification_handler.go index 7a9654958..a2fa04144 100644 --- a/src/notification/notification_handler.go +++ b/src/notification/notification_handler.go @@ -3,7 +3,7 @@ package notification import ( "encoding/json" - "github.com/adyen/adyen-go-api-library/v2/src/common" + "github.com/adyen/adyen-go-api-library/v3/src/common" ) // NotificationService used to namespace this util under the client for consistency and for future prooffing if this ever requires api access diff --git a/src/payments/api_default.go b/src/payments/api_default.go index ff0d5f465..3a7bc461f 100644 --- a/src/payments/api_default.go +++ b/src/payments/api_default.go @@ -14,7 +14,7 @@ import ( _context "context" _nethttp "net/http" - "github.com/adyen/adyen-go-api-library/v2/src/common" + "github.com/adyen/adyen-go-api-library/v3/src/common" ) // Payments Payments service diff --git a/src/payments/model_payment_result.go b/src/payments/model_payment_result.go index f4bcdc0a5..8f4c8d0e2 100644 --- a/src/payments/model_payment_result.go +++ b/src/payments/model_payment_result.go @@ -10,7 +10,7 @@ package payments -import "github.com/adyen/adyen-go-api-library/v2/src/common" +import "github.com/adyen/adyen-go-api-library/v3/src/common" // PaymentResult struct for PaymentResult type PaymentResult struct { diff --git a/src/payouts/api_default.go b/src/payouts/api_default.go index fa9196047..3519169a5 100644 --- a/src/payouts/api_default.go +++ b/src/payouts/api_default.go @@ -14,7 +14,7 @@ import ( _context "context" _nethttp "net/http" - "github.com/adyen/adyen-go-api-library/v2/src/common" + "github.com/adyen/adyen-go-api-library/v3/src/common" ) // Payouts Payouts service diff --git a/src/payouts/model_payout_response.go b/src/payouts/model_payout_response.go index 8790fec85..8c9bcbc8a 100644 --- a/src/payouts/model_payout_response.go +++ b/src/payouts/model_payout_response.go @@ -10,7 +10,7 @@ package payouts -import "github.com/adyen/adyen-go-api-library/v2/src/common" +import "github.com/adyen/adyen-go-api-library/v3/src/common" // PayoutResponse struct for PayoutResponse type PayoutResponse struct { diff --git a/src/platformsaccount/api_default.go b/src/platformsaccount/api_default.go index 080e43286..a76e3d6fc 100644 --- a/src/platformsaccount/api_default.go +++ b/src/platformsaccount/api_default.go @@ -14,7 +14,7 @@ import ( _context "context" _nethttp "net/http" - "github.com/adyen/adyen-go-api-library/v2/src/common" + "github.com/adyen/adyen-go-api-library/v3/src/common" ) // PlatformsAccount PlatformsAccount service diff --git a/src/platformsfund/api_default.go b/src/platformsfund/api_default.go index 9b304c85f..60c4e646f 100644 --- a/src/platformsfund/api_default.go +++ b/src/platformsfund/api_default.go @@ -14,7 +14,7 @@ import ( _context "context" _nethttp "net/http" - "github.com/adyen/adyen-go-api-library/v2/src/common" + "github.com/adyen/adyen-go-api-library/v3/src/common" ) // PlatformsFund PlatformsFund service diff --git a/src/platformshostedonboardingpage/api_default.go b/src/platformshostedonboardingpage/api_default.go index 6881dc6f8..fe86ff34e 100644 --- a/src/platformshostedonboardingpage/api_default.go +++ b/src/platformshostedonboardingpage/api_default.go @@ -14,7 +14,7 @@ import ( _context "context" _nethttp "net/http" - "github.com/adyen/adyen-go-api-library/v2/src/common" + "github.com/adyen/adyen-go-api-library/v3/src/common" ) // PlatformsHostedOnboardingPage PlatformsHostedOnboardingPage service diff --git a/src/platformsnotificationconfiguration/api_default.go b/src/platformsnotificationconfiguration/api_default.go index 67b4178f1..1c98e02d4 100644 --- a/src/platformsnotificationconfiguration/api_default.go +++ b/src/platformsnotificationconfiguration/api_default.go @@ -14,7 +14,7 @@ import ( _context "context" _nethttp "net/http" - "github.com/adyen/adyen-go-api-library/v2/src/common" + "github.com/adyen/adyen-go-api-library/v3/src/common" ) // PlatformsNotificationConfiguration PlatformsNotificationConfiguration service diff --git a/src/recurring/api_default.go b/src/recurring/api_default.go index aee359e2a..fe5efcd7c 100644 --- a/src/recurring/api_default.go +++ b/src/recurring/api_default.go @@ -14,7 +14,7 @@ import ( _context "context" _nethttp "net/http" - "github.com/adyen/adyen-go-api-library/v2/src/common" + "github.com/adyen/adyen-go-api-library/v3/src/common" ) // Recurring Recurring service diff --git a/templates/go/api.mustache b/templates/go/api.mustache index 9666855cd..27105b591 100644 --- a/templates/go/api.mustache +++ b/templates/go/api.mustache @@ -8,7 +8,7 @@ import ( _context "context" _nethttp "net/http" - "github.com/adyen/adyen-go-api-library/v2/src/common" + "github.com/adyen/adyen-go-api-library/v3/src/common" ) // {{packageName}} {{packageName}} service diff --git a/tests/binlookup_test.go b/tests/binlookup_test.go index d25ece82e..47b4984f4 100644 --- a/tests/binlookup_test.go +++ b/tests/binlookup_test.go @@ -10,9 +10,9 @@ import ( "os" "testing" - "github.com/adyen/adyen-go-api-library/v2/src/adyen" - "github.com/adyen/adyen-go-api-library/v2/src/binlookup" - "github.com/adyen/adyen-go-api-library/v2/src/common" + "github.com/adyen/adyen-go-api-library/v3/src/adyen" + "github.com/adyen/adyen-go-api-library/v3/src/binlookup" + "github.com/adyen/adyen-go-api-library/v3/src/common" "github.com/joho/godotenv" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/checkout_test.go b/tests/checkout_test.go index c5b0eb08b..e282a00e5 100644 --- a/tests/checkout_test.go +++ b/tests/checkout_test.go @@ -14,9 +14,9 @@ import ( "github.com/google/uuid" - "github.com/adyen/adyen-go-api-library/v2/src/adyen" - "github.com/adyen/adyen-go-api-library/v2/src/checkout" - "github.com/adyen/adyen-go-api-library/v2/src/common" + "github.com/adyen/adyen-go-api-library/v3/src/adyen" + "github.com/adyen/adyen-go-api-library/v3/src/checkout" + "github.com/adyen/adyen-go-api-library/v3/src/common" "github.com/joho/godotenv" diff --git a/tests/checkoutidempotency_test.go b/tests/checkoutidempotency_test.go index e8432a925..4bd6d56f0 100644 --- a/tests/checkoutidempotency_test.go +++ b/tests/checkoutidempotency_test.go @@ -11,9 +11,9 @@ import ( "testing" "time" - "github.com/adyen/adyen-go-api-library/v2/src/adyen" - "github.com/adyen/adyen-go-api-library/v2/src/checkout" - "github.com/adyen/adyen-go-api-library/v2/src/common" + "github.com/adyen/adyen-go-api-library/v3/src/adyen" + "github.com/adyen/adyen-go-api-library/v3/src/checkout" + "github.com/adyen/adyen-go-api-library/v3/src/common" "github.com/google/uuid" "github.com/stretchr/testify/require" ) diff --git a/tests/checkoututility_test.go b/tests/checkoututility_test.go index c428262cf..1c1c5e953 100644 --- a/tests/checkoututility_test.go +++ b/tests/checkoututility_test.go @@ -11,9 +11,9 @@ import ( "strings" "testing" - "github.com/adyen/adyen-go-api-library/v2/src/adyen" - "github.com/adyen/adyen-go-api-library/v2/src/checkoututility" - "github.com/adyen/adyen-go-api-library/v2/src/common" + "github.com/adyen/adyen-go-api-library/v3/src/adyen" + "github.com/adyen/adyen-go-api-library/v3/src/checkoututility" + "github.com/adyen/adyen-go-api-library/v3/src/common" "github.com/joho/godotenv" "github.com/stretchr/testify/assert" diff --git a/tests/notification_handler_test.go b/tests/notification_handler_test.go index a79f4c69a..cc03a1beb 100644 --- a/tests/notification_handler_test.go +++ b/tests/notification_handler_test.go @@ -6,9 +6,9 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/adyen/adyen-go-api-library/v2/src/adyen" - "github.com/adyen/adyen-go-api-library/v2/src/common" - "github.com/adyen/adyen-go-api-library/v2/src/notification" + "github.com/adyen/adyen-go-api-library/v3/src/adyen" + "github.com/adyen/adyen-go-api-library/v3/src/common" + "github.com/adyen/adyen-go-api-library/v3/src/notification" ) func TestNotificationService_HandleNotificationRequest(t *testing.T) { diff --git a/tests/payment_test.go b/tests/payment_test.go index ff945658f..4d4f4202a 100644 --- a/tests/payment_test.go +++ b/tests/payment_test.go @@ -6,9 +6,9 @@ import ( "testing" "time" - "github.com/adyen/adyen-go-api-library/v2/src/adyen" - "github.com/adyen/adyen-go-api-library/v2/src/common" - "github.com/adyen/adyen-go-api-library/v2/src/payments" + "github.com/adyen/adyen-go-api-library/v3/src/adyen" + "github.com/adyen/adyen-go-api-library/v3/src/common" + "github.com/adyen/adyen-go-api-library/v3/src/payments" "github.com/joho/godotenv" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/tests/payouts_test.go b/tests/payouts_test.go index 3fc8dbc5b..aba02e0dc 100644 --- a/tests/payouts_test.go +++ b/tests/payouts_test.go @@ -13,10 +13,10 @@ import ( "testing" "time" - "github.com/adyen/adyen-go-api-library/v2/src/adyen" - "github.com/adyen/adyen-go-api-library/v2/src/checkout" - "github.com/adyen/adyen-go-api-library/v2/src/common" - "github.com/adyen/adyen-go-api-library/v2/src/payouts" + "github.com/adyen/adyen-go-api-library/v3/src/adyen" + "github.com/adyen/adyen-go-api-library/v3/src/checkout" + "github.com/adyen/adyen-go-api-library/v3/src/common" + "github.com/adyen/adyen-go-api-library/v3/src/payouts" "github.com/joho/godotenv" "github.com/stretchr/testify/assert" diff --git a/tests/platforms_test.go b/tests/platforms_test.go index dd533bb58..c5501859d 100644 --- a/tests/platforms_test.go +++ b/tests/platforms_test.go @@ -15,11 +15,11 @@ import ( "os" "testing" - "github.com/adyen/adyen-go-api-library/v2/src/adyen" - "github.com/adyen/adyen-go-api-library/v2/src/common" - "github.com/adyen/adyen-go-api-library/v2/src/platformsaccount" - "github.com/adyen/adyen-go-api-library/v2/src/platformsfund" - "github.com/adyen/adyen-go-api-library/v2/src/platformsnotificationconfiguration" + "github.com/adyen/adyen-go-api-library/v3/src/adyen" + "github.com/adyen/adyen-go-api-library/v3/src/common" + "github.com/adyen/adyen-go-api-library/v3/src/platformsaccount" + "github.com/adyen/adyen-go-api-library/v3/src/platformsfund" + "github.com/adyen/adyen-go-api-library/v3/src/platformsnotificationconfiguration" "github.com/google/uuid" "github.com/joho/godotenv" "github.com/stretchr/testify/assert" diff --git a/tests/recurring_test.go b/tests/recurring_test.go index 16829938d..2d347de11 100644 --- a/tests/recurring_test.go +++ b/tests/recurring_test.go @@ -11,10 +11,10 @@ import ( "strings" "testing" - "github.com/adyen/adyen-go-api-library/v2/src/adyen" - "github.com/adyen/adyen-go-api-library/v2/src/common" + "github.com/adyen/adyen-go-api-library/v3/src/adyen" + "github.com/adyen/adyen-go-api-library/v3/src/common" - "github.com/adyen/adyen-go-api-library/v2/src/recurring" + "github.com/adyen/adyen-go-api-library/v3/src/recurring" "github.com/joho/godotenv" "github.com/stretchr/testify/assert"