From b671d126ac1a212d3c1fcccd7454481efff82caf Mon Sep 17 00:00:00 2001 From: Peter Ojo Date: Wed, 10 Feb 2021 16:25:34 +0100 Subject: [PATCH] [PW-3895] update checkout API version (#638) * [PW-3895] update checkout API version * add peterojo to code owners * [PW-3895] fix broken test --- .github/CODEOWNERS | 2 +- package.json | 2 +- src/__tests__/checkout.spec.ts | 2 -- src/client.ts | 2 +- 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 222da37..4c54f91 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1 +1 @@ -* @KadoBOT @zaiddreakh @maassenbas @msilvagarcia @AlexandrosMor +* @zaiddreakh @maassenbas @msilvagarcia @AlexandrosMor @peterojo diff --git a/package.json b/package.json index 8fcfbd8..5ee95b0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@adyen/api-library", - "version": "6.0.3", + "version": "7.0.0", "description": "The Adyen API Library for NodeJS enables you to work with Adyen APIs.", "main": "lib/src/index.js", "types": "lib/src/index.d.ts", diff --git a/src/__tests__/checkout.spec.ts b/src/__tests__/checkout.spec.ts index 74056cb..e5bf7ea 100644 --- a/src/__tests__/checkout.spec.ts +++ b/src/__tests__/checkout.spec.ts @@ -67,8 +67,6 @@ export function createPaymentsCheckoutRequest(): ICheckout.PaymentRequest { paymentMethod: paymentMethodDetails, reference, returnUrl: "https://your-company.com/...", - enableRecurring: true, - enableOneClick: true, shopperReference: "shopperReference", storePaymentMethod: true }; diff --git a/src/client.ts b/src/client.ts index 27513be..240ab0b 100644 --- a/src/client.ts +++ b/src/client.ts @@ -52,6 +52,7 @@ class Client { public static HPP_LIVE = "https://live.adyen.com/hpp"; public static MARKETPAY_ENDPOINT_TEST = "https://cal-test.adyen.com/cal/services"; public static MARKETPAY_ENDPOINT_LIVE = "https://cal-live.adyen.com/cal/services"; + public static CHECKOUT_API_VERSION = "v66"; public static API_VERSION = "v64"; public static RECURRING_API_VERSION = "v49"; public static MARKETPAY_ACCOUNT_API_VERSION = "v6"; @@ -63,7 +64,6 @@ class Client { public static LIB_VERSION: string = version; public static CHECKOUT_ENDPOINT_TEST = "https://checkout-test.adyen.com/checkout"; public static CHECKOUT_ENDPOINT_LIVE_SUFFIX = "-checkout-live.adyenpayments.com/checkout"; - public static CHECKOUT_API_VERSION = "v64"; public static BIN_LOOKUP_PAL_SUFFIX = "/pal/servlet/BinLookup/"; public static BIN_LOOKUP_API_VERSION = "v50"; public static TERMINAL_API_ENDPOINT_TEST = "https://terminal-api-test.adyen.com";